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

@ -1187,7 +1187,7 @@ pub struct RewardData {
pub struct BoletoVoucherData {
/// The shopper's social security number
#[schema(value_type = Option<String>)]
social_security_number: Option<Secret<String>>,
pub social_security_number: Option<Secret<String>>,
}
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
@ -1371,6 +1371,11 @@ pub enum NextActionData {
#[schema(value_type = String)]
image_data_url: Url,
},
/// Contains the download url and the reference number for transaction
DisplayVoucherInformation {
#[schema(value_type = String)]
voucher_details: VoucherNextStepData,
},
}
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
@ -1382,6 +1387,14 @@ pub struct BankTransferNextStepsData {
pub receiver: ReceiverDetails,
}
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
pub struct VoucherNextStepData {
/// Reference number required for the transaction
pub reference: String,
/// Url to download the payment instruction
pub download_url: Option<Url>,
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct QrCodeNextStepsInstruction {
pub image_data_url: Url,