From 7623ea93bee61b0bb22b68e86f44de17f04f876b Mon Sep 17 00:00:00 2001
From: AkshayaFoiger <131388445+AkshayaFoiger@users.noreply.github.com>
Date: Wed, 8 Nov 2023 15:49:49 +0530
Subject: [PATCH] refactor(router): add parameter connectors to
get_request_body function (#2708)
---
connector-template/mod.rs | 13 +++--
crates/router/src/connector/aci.rs | 19 +++++--
crates/router/src/connector/adyen.rs | 57 +++++++++++++++----
crates/router/src/connector/airwallex.rs | 36 +++++++++---
.../router/src/connector/authorizedotnet.rs | 33 ++++++++---
crates/router/src/connector/bambora.rs | 23 ++++++--
crates/router/src/connector/bankofamerica.rs | 19 +++++--
crates/router/src/connector/bitpay.rs | 5 +-
crates/router/src/connector/bluesnap.rs | 28 +++++++--
crates/router/src/connector/boku.rs | 25 ++++++--
crates/router/src/connector/braintree.rs | 47 +++++++++++----
crates/router/src/connector/cashtocode.rs | 5 +-
crates/router/src/connector/checkout.rs | 38 ++++++++++---
crates/router/src/connector/coinbase.rs | 5 +-
crates/router/src/connector/cryptopay.rs | 7 ++-
crates/router/src/connector/cybersource.rs | 21 +++++--
crates/router/src/connector/dlocal.rs | 19 +++++--
crates/router/src/connector/dummyconnector.rs | 15 ++++-
crates/router/src/connector/fiserv.rs | 34 ++++++++---
crates/router/src/connector/forte.rs | 20 +++++--
crates/router/src/connector/globalpay.rs | 32 ++++++++---
crates/router/src/connector/globepay.rs | 10 +++-
crates/router/src/connector/gocardless.rs | 25 ++++++--
crates/router/src/connector/helcim.rs | 29 ++++++++--
crates/router/src/connector/iatapay.rs | 19 +++++--
crates/router/src/connector/klarna.rs | 10 +++-
crates/router/src/connector/mollie.rs | 15 ++++-
crates/router/src/connector/multisafepay.rs | 14 ++++-
crates/router/src/connector/nexinets.rs | 20 +++++--
crates/router/src/connector/nmi.rs | 35 +++++++++---
crates/router/src/connector/noon.rs | 24 ++++++--
crates/router/src/connector/nuvei.rs | 36 +++++++++---
crates/router/src/connector/opayo.rs | 19 +++++--
crates/router/src/connector/opennode.rs | 5 +-
crates/router/src/connector/payeezy.rs | 24 ++++++--
crates/router/src/connector/payme.rs | 36 +++++++++---
crates/router/src/connector/paypal.rs | 27 +++++++--
crates/router/src/connector/payu.rs | 20 +++++--
crates/router/src/connector/powertranz.rs | 23 ++++++--
crates/router/src/connector/prophetpay.rs | 19 +++++--
crates/router/src/connector/rapyd.rs | 21 +++++--
crates/router/src/connector/shift4.rs | 22 +++++--
crates/router/src/connector/square.rs | 15 ++++-
crates/router/src/connector/stax.rs | 25 ++++++--
crates/router/src/connector/stripe.rs | 49 ++++++++++++----
crates/router/src/connector/trustpay.rs | 18 ++++--
crates/router/src/connector/tsys.rs | 30 ++++++++--
crates/router/src/connector/volt.rs | 20 +++++--
crates/router/src/connector/wise.rs | 20 +++++--
crates/router/src/connector/worldline.rs | 15 ++++-
crates/router/src/connector/worldpay.rs | 18 ++++--
crates/router/src/connector/zen.rs | 14 ++++-
crates/router/src/services/api.rs | 1 +
53 files changed, 920 insertions(+), 259 deletions(-)
diff --git a/connector-template/mod.rs b/connector-template/mod.rs
index b27a0774e714..7f21962109de 100644
--- a/connector-template/mod.rs
+++ b/connector-template/mod.rs
@@ -157,7 +157,7 @@ impl
Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
}
- fn get_request_body(&self, req: &types::PaymentsAuthorizeRouterData) -> CustomResult