mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(connector): [Stripe] implement Bancontact Bank Redirect for stripe (#1169)
Co-authored-by: Jagan <jaganelavarasan@gmail.com>
This commit is contained in:
@ -590,18 +590,21 @@ pub enum BankRedirectData {
|
||||
BancontactCard {
|
||||
/// The card number
|
||||
#[schema(value_type = String, example = "4242424242424242")]
|
||||
card_number: CardNumber,
|
||||
card_number: Option<CardNumber>,
|
||||
/// The card's expiry month
|
||||
#[schema(value_type = String, example = "24")]
|
||||
card_exp_month: Secret<String>,
|
||||
card_exp_month: Option<Secret<String>>,
|
||||
|
||||
/// The card's expiry year
|
||||
#[schema(value_type = String, example = "24")]
|
||||
card_exp_year: Secret<String>,
|
||||
card_exp_year: Option<Secret<String>>,
|
||||
|
||||
/// The card holder's name
|
||||
#[schema(value_type = String, example = "John Test")]
|
||||
card_holder_name: Secret<String>,
|
||||
card_holder_name: Option<Secret<String>>,
|
||||
|
||||
//Required by Stripes
|
||||
billing_details: Option<BankRedirectBilling>,
|
||||
},
|
||||
Blik {
|
||||
// Blik Code
|
||||
@ -698,7 +701,7 @@ pub struct BankRedirectBilling {
|
||||
pub billing_name: Option<Secret<String>>,
|
||||
/// The billing email for bank redirect
|
||||
#[schema(value_type = String, example = "example@example.com")]
|
||||
pub email: Email,
|
||||
pub email: Option<Email>,
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone, ToSchema, Eq, PartialEq)]
|
||||
|
||||
Reference in New Issue
Block a user