mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
feat(payouts): Add Wallet to Payouts (#3502)
This commit is contained in:
@ -157,6 +157,7 @@ pub struct PayoutCreateRequest {
|
||||
pub enum PayoutMethodData {
|
||||
Card(Card),
|
||||
Bank(Bank),
|
||||
Wallet(Wallet),
|
||||
}
|
||||
|
||||
impl Default for PayoutMethodData {
|
||||
@ -262,6 +263,19 @@ pub struct SepaBankTransfer {
|
||||
pub bic: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, Deserialize, Serialize, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum Wallet {
|
||||
Paypal(Paypal),
|
||||
}
|
||||
|
||||
#[derive(Default, Eq, PartialEq, Clone, Debug, Deserialize, Serialize, ToSchema)]
|
||||
pub struct Paypal {
|
||||
/// Email linked with paypal account
|
||||
#[schema(value_type = String, example = "john.doe@example.com")]
|
||||
pub email: Option<Email>,
|
||||
}
|
||||
|
||||
#[derive(Debug, ToSchema, Clone, Serialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct PayoutCreateResponse {
|
||||
|
||||
Reference in New Issue
Block a user