feat(connector): [Adyen] Implement Boleto Bancario in Vouchers and Add support for Voucher in Next Action (#1657)

Co-authored-by: Pa1NarK <69745008+pixincreate@users.noreply.github.com>
This commit is contained in:
Sakil Mostak
2023-08-01 18:27:56 +05:30
committed by GitHub
parent e3a33bb5c2
commit 801946f29f
9 changed files with 246 additions and 3 deletions

View File

@ -770,6 +770,9 @@ pub enum StripeNextAction {
QrCodeInformation {
image_data_url: url::Url,
},
DisplayVoucherInformation {
voucher_details: payments::VoucherNextStepData,
},
}
pub(crate) fn into_stripe_next_action(
@ -796,6 +799,9 @@ pub(crate) fn into_stripe_next_action(
payments::NextActionData::QrCodeInformation { image_data_url } => {
StripeNextAction::QrCodeInformation { image_data_url }
}
payments::NextActionData::DisplayVoucherInformation { voucher_details } => {
StripeNextAction::DisplayVoucherInformation { voucher_details }
}
})
}

View File

@ -371,6 +371,9 @@ pub enum StripeNextAction {
QrCodeInformation {
image_data_url: url::Url,
},
DisplayVoucherInformation {
voucher_details: payments::VoucherNextStepData,
},
}
pub(crate) fn into_stripe_next_action(
@ -397,6 +400,9 @@ pub(crate) fn into_stripe_next_action(
payments::NextActionData::QrCodeInformation { image_data_url } => {
StripeNextAction::QrCodeInformation { image_data_url }
}
payments::NextActionData::DisplayVoucherInformation { voucher_details } => {
StripeNextAction::DisplayVoucherInformation { voucher_details }
}
})
}