mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(payouts): apple pay decrypt payout (#9857)
This commit is contained in:
@ -209,6 +209,8 @@ pub enum WalletAdditionalData {
|
||||
Paypal(Box<PaypalAdditionalData>),
|
||||
/// Additional data for venmo wallet payout method
|
||||
Venmo(Box<VenmoAdditionalData>),
|
||||
/// Additional data for Apple pay decrypt wallet payout method
|
||||
ApplePayDecrypt(Box<ApplePayDecryptAdditionalData>),
|
||||
}
|
||||
|
||||
/// Masked payout method details for paypal wallet payout method
|
||||
@ -241,6 +243,25 @@ pub struct VenmoAdditionalData {
|
||||
pub telephone_number: Option<MaskedPhoneNumber>,
|
||||
}
|
||||
|
||||
/// Masked payout method details for Apple pay decrypt wallet payout method
|
||||
#[derive(
|
||||
Default, Eq, PartialEq, Clone, Debug, Deserialize, Serialize, FromSqlRow, AsExpression, ToSchema,
|
||||
)]
|
||||
#[diesel(sql_type = Jsonb)]
|
||||
pub struct ApplePayDecryptAdditionalData {
|
||||
/// Card expiry month
|
||||
#[schema(value_type = String, example = "01")]
|
||||
pub card_exp_month: Secret<String>,
|
||||
|
||||
/// Card expiry year
|
||||
#[schema(value_type = String, example = "2026")]
|
||||
pub card_exp_year: Secret<String>,
|
||||
|
||||
/// Card holder name
|
||||
#[schema(value_type = String, example = "John Doe")]
|
||||
pub card_holder_name: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
/// Masked payout method details for wallet payout method
|
||||
#[derive(
|
||||
Eq, PartialEq, Clone, Debug, Deserialize, Serialize, FromSqlRow, AsExpression, ToSchema,
|
||||
|
||||
Reference in New Issue
Block a user