From 022c112688bced69f7b23b6b1a58a16e104f302b Mon Sep 17 00:00:00 2001 From: Jasmine Ning Date: Fri, 1 Dec 2023 14:53:14 -0500 Subject: [PATCH] Fix pr review --- lib/bambora/bank/batch_report_resource.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/bambora/bank/batch_report_resource.rb b/lib/bambora/bank/batch_report_resource.rb index a1f992b..bd19b37 100644 --- a/lib/bambora/bank/batch_report_resource.rb +++ b/lib/bambora/bank/batch_report_resource.rb @@ -79,14 +79,11 @@ def add_messages_to_response(response) end def batch_report_body(request_data) - additional_data = { + DEFAULT_REQUEST_PARAMS.merge(request_data).merge( merchant_id: client.merchant_id, pass_code: api_key, - } - - params = DEFAULT_REQUEST_PARAMS.merge(additional_data).merge(request_data) - - client.sub_merchant_id.nil? ? params : params.merge(sub_merchant_id: client.sub_merchant_id) + sub_merchant_id: client.sub_merchant_id, + ).compact end end end