Skip to content

Commit

Permalink
Refactor(compatibility): revert add multiuse mandates support in stri…
Browse files Browse the repository at this point in the history
…pe compatibility (#3436)
  • Loading branch information
AkshayaFoiger authored Jan 24, 2024
1 parent 3f343d3 commit 8a019f0
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions crates/router/src/compatibility/stripe/payment_intents/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,25 +738,9 @@ impl ForeignTryFrom<(Option<MandateData>, Option<String>)> for Option<payments::
metadata: None,
},
)),
StripeMandateType::MultiUse => 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,
Expand Down

0 comments on commit 8a019f0

Please sign in to comment.