feat(connector): [Adyen] Add pix support for adyen (#1703)

Co-authored-by: Abhishek Marrivagu <68317979+Abhicodes-crypto@users.noreply.github.com>
This commit is contained in:
Sangamesh Kulkarni
2023-07-25 19:40:45 +05:30
committed by GitHub
parent 1f8e790b14
commit 33a1368e8a
10 changed files with 280 additions and 181 deletions

View File

@ -952,6 +952,7 @@ pub enum BankTransferData {
/// The billing details for Multibanco
billing_details: MultibancoBillingDetails,
},
Pix {},
}
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone, ToSchema, Eq, PartialEq)]
@ -1331,8 +1332,12 @@ pub enum NextActionData {
ThirdPartySdkSessionToken { session_token: Option<SessionToken> },
/// Contains url for Qr code image, this qr code has to be shown in sdk
QrCodeInformation {
/// Hyperswitch generated image data source url
#[schema(value_type = String)]
image_data_url: Url,
image_data_url: Option<Url>,
/// The url for Qr code given by the connector
#[schema(value_type = String)]
qr_code_url: Option<Url>,
},
}
@ -1347,7 +1352,10 @@ pub struct BankTransferNextStepsData {
#[derive(Clone, Debug, serde::Deserialize)]
pub struct QrCodeNextStepsInstruction {
pub image_data_url: Url,
/// Hyperswitch generated image data source url
pub image_data_url: Option<Url>,
/// The url for Qr code given by the connector
pub qr_code_url: Option<Url>,
}
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]