From 6c995b24af012cef38d89ef28c71f359f00f583a Mon Sep 17 00:00:00 2001 From: Bonflintstone Date: Mon, 19 May 2025 11:25:40 +0200 Subject: [PATCH 1/2] Fix typo and description --- box/apis/v2/credit_transfers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/box/apis/v2/credit_transfers.rb b/box/apis/v2/credit_transfers.rb index 8ebd1cd4..465c8829 100644 --- a/box/apis/v2/credit_transfers.rb +++ b/box/apis/v2/credit_transfers.rb @@ -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 @@ -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[bic 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 From df368840108086d74f867efe2cbed02efc7fb55d Mon Sep 17 00:00:00 2001 From: Bonflintstone Date: Mon, 19 May 2025 16:35:04 +0200 Subject: [PATCH 2/2] Remove bic from param filtering cause it is used --- box/apis/v2/credit_transfers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box/apis/v2/credit_transfers.rb b/box/apis/v2/credit_transfers.rb index 465c8829..66f14e20 100644 --- a/box/apis/v2/credit_transfers.rb +++ b/box/apis/v2/credit_transfers.rb @@ -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[bic 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