mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix(connector): Paypal BankRedirects (Ideal/EPS) (#6864)
This commit is contained in:
@ -469,6 +469,21 @@ pub struct PaypalRedirectionResponse {
|
||||
attributes: Option<AttributeResponse>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct EpsRedirectionResponse {
|
||||
name: Option<Secret<String>>,
|
||||
country_code: Option<enums::CountryAlpha2>,
|
||||
bic: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct IdealRedirectionResponse {
|
||||
name: Option<Secret<String>>,
|
||||
country_code: Option<enums::CountryAlpha2>,
|
||||
bic: Option<Secret<String>>,
|
||||
iban_last_chars: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct AttributeResponse {
|
||||
vault: PaypalVaultResponse,
|
||||
@ -518,6 +533,8 @@ pub struct CardVaultResponse {
|
||||
pub enum PaymentSourceItemResponse {
|
||||
Card(CardVaultResponse),
|
||||
Paypal(PaypalRedirectionResponse),
|
||||
Eps(EpsRedirectionResponse),
|
||||
Ideal(IdealRedirectionResponse),
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
@ -1826,6 +1843,8 @@ impl<F, T>
|
||||
PaymentSourceItemResponse::Card(card) => {
|
||||
card.attributes.map(|attr| attr.vault.id)
|
||||
}
|
||||
PaymentSourceItemResponse::Eps(_)
|
||||
| PaymentSourceItemResponse::Ideal(_) => None,
|
||||
},
|
||||
None => None,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user