mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(connector): add support for bank redirect for Paypal (#1107)
This commit is contained in:
@ -665,3 +665,13 @@ pub struct TokenizedBankTransferValue1 {
|
||||
pub struct TokenizedBankTransferValue2 {
|
||||
pub customer_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct TokenizedBankRedirectValue1 {
|
||||
pub data: payments::BankRedirectData,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct TokenizedBankRedirectValue2 {
|
||||
pub customer_id: Option<String>,
|
||||
}
|
||||
|
||||
@ -803,6 +803,10 @@ pub enum BankRedirectData {
|
||||
/// The hyperswitch bank code for eps
|
||||
#[schema(value_type = BankNames, example = "triodos_bank")]
|
||||
bank_name: Option<api_enums::BankNames>,
|
||||
|
||||
/// The country for bank payment
|
||||
#[schema(value_type = CountryAlpha2, example = "US")]
|
||||
country: Option<api_enums::CountryAlpha2>,
|
||||
},
|
||||
Giropay {
|
||||
/// The billing details for bank redirection
|
||||
@ -816,6 +820,10 @@ pub enum BankRedirectData {
|
||||
/// Bank account iban
|
||||
#[schema(value_type = Option<String>)]
|
||||
bank_account_iban: Option<Secret<String>>,
|
||||
|
||||
/// The country for bank payment
|
||||
#[schema(value_type = CountryAlpha2, example = "US")]
|
||||
country: Option<api_enums::CountryAlpha2>,
|
||||
},
|
||||
Ideal {
|
||||
/// The billing details for bank redirection
|
||||
@ -824,6 +832,10 @@ pub enum BankRedirectData {
|
||||
/// The hyperswitch bank code for ideal
|
||||
#[schema(value_type = BankNames, example = "abn_amro")]
|
||||
bank_name: Option<api_enums::BankNames>,
|
||||
|
||||
/// The country for bank payment
|
||||
#[schema(value_type = CountryAlpha2, example = "US")]
|
||||
country: Option<api_enums::CountryAlpha2>,
|
||||
},
|
||||
Interac {
|
||||
/// The country for bank payment
|
||||
|
||||
Reference in New Issue
Block a user