mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(connector): [Loonio] implement payouts (#9718)
This commit is contained in:
@ -23,6 +23,8 @@ pub enum AdditionalPayoutMethodData {
|
||||
Bank(Box<BankAdditionalData>),
|
||||
/// Additional data for wallet payout method
|
||||
Wallet(Box<WalletAdditionalData>),
|
||||
/// Additional data for Bank Redirect payout method
|
||||
BankRedirect(Box<BankRedirectAdditionalData>),
|
||||
}
|
||||
|
||||
crate::impl_to_sql_from_sql_json!(AdditionalPayoutMethodData);
|
||||
@ -238,3 +240,25 @@ pub struct VenmoAdditionalData {
|
||||
#[schema(value_type = Option<String>, example = "******* 3349")]
|
||||
pub telephone_number: Option<MaskedPhoneNumber>,
|
||||
}
|
||||
|
||||
/// Masked payout method details for wallet payout method
|
||||
#[derive(
|
||||
Eq, PartialEq, Clone, Debug, Deserialize, Serialize, FromSqlRow, AsExpression, ToSchema,
|
||||
)]
|
||||
#[diesel(sql_type = Jsonb)]
|
||||
#[serde(untagged)]
|
||||
pub enum BankRedirectAdditionalData {
|
||||
/// Additional data for interac bank redirect payout method
|
||||
Interac(Box<InteracAdditionalData>),
|
||||
}
|
||||
|
||||
/// Masked payout method details for interac bank redirect payout method
|
||||
#[derive(
|
||||
Default, Eq, PartialEq, Clone, Debug, Deserialize, Serialize, FromSqlRow, AsExpression, ToSchema,
|
||||
)]
|
||||
#[diesel(sql_type = Jsonb)]
|
||||
pub struct InteracAdditionalData {
|
||||
/// Email linked with interac account
|
||||
#[schema(value_type = Option<String>, example = "john.doe@example.com")]
|
||||
pub email: Option<MaskedEmail>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user