feat(pm_list): add pm list support for bank_debits (#1120)

This commit is contained in:
Narayan Bhat
2023-05-11 16:01:27 +05:30
committed by GitHub
parent a2527b5b2a
commit dfc6be4e4f
2 changed files with 78 additions and 6 deletions

View File

@ -183,6 +183,11 @@ pub struct CardNetworkTypes {
pub eligible_connectors: Vec<String>,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema, PartialEq, Eq)]
pub struct BankDebitTypes {
pub eligible_connectors: Vec<String>,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema, PartialEq, Eq)]
pub struct ResponsePaymentMethodTypes {
/// The payment method type enabled
@ -197,6 +202,9 @@ pub struct ResponsePaymentMethodTypes {
/// The list of banks enabled, if applicable for a payment method type
pub bank_names: Option<Vec<BankCodeResponse>>,
/// The Bank debit payment method information, if applicable for a payment method type.
pub bank_debits: Option<BankDebitTypes>,
}
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize, ToSchema)]