feat(connector): [Adyen] implement PaySafe (#1805)

Co-authored-by: Sangamesh <sangamesh.kulkarni@juspay.in>
Co-authored-by: Sk Sakil Mostak <skmahim71@gmail.com>
Co-authored-by: Pa1NarK <69745008+pixincreate@users.noreply.github.com>
This commit is contained in:
AkshayaFoiger
2023-08-03 12:16:37 +05:30
committed by GitHub
parent 44e479a9b0
commit 0f0919963f
10 changed files with 130 additions and 25 deletions

View File

@ -725,14 +725,19 @@ pub enum PaymentMethodData {
GiftCard(Box<GiftCardData>),
}
#[derive(Debug, Clone, Eq, PartialEq, serde::Deserialize, serde::Serialize, ToSchema)]
pub struct GiftCardData {
/// The gift card number
#[schema(value_type = String)]
pub number: Secret<String>,
/// The card verification code.
#[schema(value_type = String)]
pub cvc: Secret<String>,
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone, ToSchema, Eq, PartialEq)]
#[serde(rename_all = "snake_case")]
pub enum GiftCardData {
BabyGiftCard {
/// The gift card number
#[schema(value_type = String)]
number: Secret<String>,
/// The card verification code.
#[schema(value_type = String)]
cvc: Secret<String>,
},
PaySafeCard {},
}
#[derive(Default, Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]