@@ -1129,6 +1129,7 @@ pub struct AdditionalCardInfo {
1129
1129
pub bank_code : Option < String > ,
1130
1130
pub last4 : Option < String > ,
1131
1131
pub card_isin : Option < String > ,
1132
+ pub card_extended_bin : Option < String > ,
1132
1133
pub card_exp_month : Option < Secret < String > > ,
1133
1134
pub card_exp_year : Option < Secret < String > > ,
1134
1135
pub card_holder_name : Option < Secret < String > > ,
@@ -1665,6 +1666,7 @@ pub struct CardResponse {
1665
1666
pub card_issuer : Option < String > ,
1666
1667
pub card_issuing_country : Option < String > ,
1667
1668
pub card_isin : Option < String > ,
1669
+ pub card_extended_bin : Option < String > ,
1668
1670
pub card_exp_month : Option < Secret < String > > ,
1669
1671
pub card_exp_year : Option < Secret < String > > ,
1670
1672
pub card_holder_name : Option < Secret < String > > ,
@@ -1707,7 +1709,7 @@ pub enum VoucherData {
1707
1709
#[ serde( rename_all = "snake_case" ) ]
1708
1710
pub enum PaymentMethodDataResponse {
1709
1711
#[ serde( rename = "card" ) ]
1710
- Card ( CardResponse ) ,
1712
+ Card ( Box < CardResponse > ) ,
1711
1713
BankTransfer ,
1712
1714
Wallet ,
1713
1715
PayLater ,
@@ -2037,7 +2039,7 @@ pub struct PaymentsResponse {
2037
2039
#[ schema( example = 100 ) ]
2038
2040
pub amount : i64 ,
2039
2041
2040
- /// The payment net amount. net_amount = amount + surcharge_details.surcharge_amount + surcharge_details.tax_amount,
2042
+ /// The payment net amount. net_amount = amount + surcharge_details.surcharge_amount + surcharge_details.tax_amount,
2041
2043
/// If no surcharge_details, net_amount = amount
2042
2044
#[ schema( example = 110 ) ]
2043
2045
pub net_amount : i64 ,
@@ -2528,6 +2530,7 @@ impl From<AdditionalCardInfo> for CardResponse {
2528
2530
card_issuer : card. card_issuer ,
2529
2531
card_issuing_country : card. card_issuing_country ,
2530
2532
card_isin : card. card_isin ,
2533
+ card_extended_bin : card. card_extended_bin ,
2531
2534
card_exp_month : card. card_exp_month ,
2532
2535
card_exp_year : card. card_exp_year ,
2533
2536
card_holder_name : card. card_holder_name ,
@@ -2538,7 +2541,7 @@ impl From<AdditionalCardInfo> for CardResponse {
2538
2541
impl From < AdditionalPaymentData > for PaymentMethodDataResponse {
2539
2542
fn from ( payment_method_data : AdditionalPaymentData ) -> Self {
2540
2543
match payment_method_data {
2541
- AdditionalPaymentData :: Card ( card) => Self :: Card ( CardResponse :: from ( * card) ) ,
2544
+ AdditionalPaymentData :: Card ( card) => Self :: Card ( Box :: new ( CardResponse :: from ( * card) ) ) ,
2542
2545
AdditionalPaymentData :: PayLater { } => Self :: PayLater ,
2543
2546
AdditionalPaymentData :: Wallet { } => Self :: Wallet ,
2544
2547
AdditionalPaymentData :: BankRedirect { .. } => Self :: BankRedirect ,
0 commit comments