From 6494e8a6e4a195ecc9ca5b2f6ac0a636f06b03f7 Mon Sep 17 00:00:00 2001 From: HeetVekariya <91054457+HeetVekariya@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:48:50 +0530 Subject: [PATCH] refactor(connector): [Iatapay] remove default case handling (#2587) Co-authored-by: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com> --- crates/router/src/connector/iatapay/transformers.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/crates/router/src/connector/iatapay/transformers.rs b/crates/router/src/connector/iatapay/transformers.rs index 9d4ecdff197f..f98798fe5be4 100644 --- a/crates/router/src/connector/iatapay/transformers.rs +++ b/crates/router/src/connector/iatapay/transformers.rs @@ -86,7 +86,18 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for IatapayPaymentsRequest { let payment_method = item.payment_method; let country = match payment_method { PaymentMethod::Upi => "IN".to_string(), - _ => item.get_billing_country()?.to_string(), + + PaymentMethod::Card + | PaymentMethod::CardRedirect + | PaymentMethod::PayLater + | PaymentMethod::Wallet + | PaymentMethod::BankRedirect + | PaymentMethod::BankTransfer + | PaymentMethod::Crypto + | PaymentMethod::BankDebit + | PaymentMethod::Reward + | PaymentMethod::Voucher + | PaymentMethod::GiftCard => item.get_billing_country()?.to_string(), }; let return_url = item.get_return_url()?; let payer_info = match item.request.payment_method_data.clone() {