mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
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:
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user