mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(connector): [trustpay] introduce instant bank_transfer, finland and poland (#7925)
Co-authored-by: PiX <69745008+pixincreate@users.noreply.github.com>
This commit is contained in:
@ -2770,6 +2770,12 @@ impl GetPaymentMethodType for BankTransferData {
|
||||
Self::Pse {} => api_enums::PaymentMethodType::Pse,
|
||||
Self::LocalBankTransfer { .. } => api_enums::PaymentMethodType::LocalBankTransfer,
|
||||
Self::InstantBankTransfer {} => api_enums::PaymentMethodType::InstantBankTransfer,
|
||||
Self::InstantBankTransferFinland {} => {
|
||||
api_enums::PaymentMethodType::InstantBankTransferFinland
|
||||
}
|
||||
Self::InstantBankTransferPoland {} => {
|
||||
api_enums::PaymentMethodType::InstantBankTransferPoland
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3435,6 +3441,8 @@ pub enum BankTransferData {
|
||||
bank_code: Option<String>,
|
||||
},
|
||||
InstantBankTransfer {},
|
||||
InstantBankTransferFinland {},
|
||||
InstantBankTransferPoland {},
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
@ -3505,7 +3513,9 @@ impl GetAddressFromPaymentMethodData for BankTransferData {
|
||||
Self::LocalBankTransfer { .. }
|
||||
| Self::Pix { .. }
|
||||
| Self::Pse {}
|
||||
| Self::InstantBankTransfer {} => None,
|
||||
| Self::InstantBankTransfer {}
|
||||
| Self::InstantBankTransferFinland {}
|
||||
| Self::InstantBankTransferPoland {} => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -152,6 +152,8 @@ pub enum BankTransferAdditionalData {
|
||||
Pse {},
|
||||
LocalBankTransfer(Box<LocalBankTransferAdditionalData>),
|
||||
InstantBankTransfer {},
|
||||
InstantBankTransferFinland {},
|
||||
InstantBankTransferPoland {},
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user