Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions box/apis/v2/credit_transfers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class CreditTransfers < Grape::API
end

given currency: ->(val) { val == "EUR" } do
optional :urgent, type: Boolean, desc: "requested execution date", default: false
optional :urgent, type: Boolean, desc: "use SEPA instant payment", default: false
end

requires :end_to_end_reference, type: String, desc: "unique end to end reference", unique_transaction_eref: true, length_transaction_eref: true
Expand All @@ -99,7 +99,7 @@ class CreditTransfers < Grape::API
sanitized_params = declared(params)

if sanitized_params[:currency] == "EUR"
sanitized_params.reject! { |k, _v| k.in? %w[big country_code fee_handling] } # still related to workaround
sanitized_params.reject! { |k, _v| k.in? %w[country_code fee_handling] } # still related to workaround
BusinessProcesses::Credit.v2_create!(current_user, account, sanitized_params)
else
sanitized_params.reject! { |k, _v| k.in? %w[urgent] } # still related to workaround
Expand Down