Skip to content

Commit

Permalink
Fix pr review
Browse files Browse the repository at this point in the history
  • Loading branch information
jazziining committed Dec 1, 2023
1 parent 5eb1707 commit 022c112
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/bambora/bank/batch_report_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 022c112

Please sign in to comment.