diff --git a/crates/router/src/connector/paypal/transformers.rs b/crates/router/src/connector/paypal/transformers.rs index 600b7ab0e221..67204d9673c8 100644 --- a/crates/router/src/connector/paypal/transformers.rs +++ b/crates/router/src/connector/paypal/transformers.rs @@ -469,6 +469,21 @@ pub struct PaypalRedirectionResponse { attributes: Option, } +#[derive(Debug, Serialize, Deserialize, Clone)] +pub struct EpsRedirectionResponse { + name: Option>, + country_code: Option, + bic: Option>, +} + +#[derive(Debug, Serialize, Deserialize, Clone)] +pub struct IdealRedirectionResponse { + name: Option>, + country_code: Option, + bic: Option>, + iban_last_chars: Option>, +} + #[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 PaymentSourceItemResponse::Card(card) => { card.attributes.map(|attr| attr.vault.id) } + PaymentSourceItemResponse::Eps(_) + | PaymentSourceItemResponse::Ideal(_) => None, }, None => None, },