feat(connector): [Paypal] Add payout flow for wallet(Paypal and Venmo) (#4406)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sakil Mostak
2024-05-02 15:45:17 +05:30
committed by GitHub
parent be44447c09
commit e4ed1e6395
20 changed files with 421 additions and 8 deletions

View File

@ -89,6 +89,7 @@ pub enum WalletType {
TouchNGo,
Swish,
Cashapp,
Venmo,
}
#[derive(

View File

@ -56,6 +56,7 @@ impl From<enums::WalletType> for global_enums::PaymentMethodType {
enums::WalletType::TouchNGo => Self::TouchNGo,
enums::WalletType::Swish => Self::Swish,
enums::WalletType::Cashapp => Self::Cashapp,
enums::WalletType::Venmo => Self::Venmo,
}
}
}

View File

@ -167,6 +167,7 @@ impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::PaymentMet
global_enums::PaymentMethodType::CardRedirect => {
Ok(dirval!(CardRedirectType = CardRedirect))
}
global_enums::PaymentMethodType::Venmo => Ok(dirval!(WalletType = Venmo)),
}
}
}