From 8a019f08acf74e04c3ae9c8790dd481301bdcfee Mon Sep 17 00:00:00 2001 From: AkshayaFoiger <131388445+AkshayaFoiger@users.noreply.github.com> Date: Wed, 24 Jan 2024 15:46:29 +0530 Subject: [PATCH] Refactor(compatibility): revert add multiuse mandates support in stripe compatibility (#3436) --- .../stripe/payment_intents/types.rs | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/crates/router/src/compatibility/stripe/payment_intents/types.rs b/crates/router/src/compatibility/stripe/payment_intents/types.rs index 51f938d445c4..38007a3110d6 100644 --- a/crates/router/src/compatibility/stripe/payment_intents/types.rs +++ b/crates/router/src/compatibility/stripe/payment_intents/types.rs @@ -738,25 +738,9 @@ impl ForeignTryFrom<(Option, Option)> for Option Some(payments::MandateType::MultiUse(Some( - payments::MandateAmountData { - amount: mandate.amount.unwrap_or_default(), - currency, - start_date: mandate.start_date, - end_date: mandate.end_date, - metadata: None, - }, - ))), + StripeMandateType::MultiUse => Some(payments::MandateType::MultiUse(None)), }, - None => Some(api_models::payments::MandateType::MultiUse(Some( - payments::MandateAmountData { - amount: mandate.amount.unwrap_or_default(), - currency, - start_date: mandate.start_date, - end_date: mandate.end_date, - metadata: None, - }, - ))), + None => Some(api_models::payments::MandateType::MultiUse(None)), }, customer_acceptance: Some(payments::CustomerAcceptance { acceptance_type: payments::AcceptanceType::Online,