mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user