mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat: add payout service (#1665)
Co-authored-by: Kashif <mohammed.kashif@juspay.in> Co-authored-by: Manoj Ghorela <manoj.ghorela@juspay.in> Co-authored-by: Manoj Ghorela <118727120+manoj-juspay@users.noreply.github.com>
This commit is contained in:
@ -43,19 +43,6 @@ pub enum RoutingAlgorithm {
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum Connector {
|
||||
Aci,
|
||||
Adyen,
|
||||
Airwallex,
|
||||
Authorizedotnet,
|
||||
Bitpay,
|
||||
Bluesnap,
|
||||
Braintree,
|
||||
Cashtocode,
|
||||
Checkout,
|
||||
Coinbase,
|
||||
Cryptopay,
|
||||
Cybersource,
|
||||
Iatapay,
|
||||
#[cfg(feature = "dummy_connector")]
|
||||
#[serde(rename = "phonypay")]
|
||||
#[strum(serialize = "phonypay")]
|
||||
@ -84,12 +71,25 @@ pub enum Connector {
|
||||
#[serde(rename = "paypal_test")]
|
||||
#[strum(serialize = "paypal_test")]
|
||||
DummyConnector7,
|
||||
Aci,
|
||||
Adyen,
|
||||
Airwallex,
|
||||
Authorizedotnet,
|
||||
Bitpay,
|
||||
Bambora,
|
||||
Bluesnap,
|
||||
Braintree,
|
||||
Cashtocode,
|
||||
Checkout,
|
||||
Coinbase,
|
||||
Cryptopay,
|
||||
Cybersource,
|
||||
Dlocal,
|
||||
Fiserv,
|
||||
Forte,
|
||||
Globalpay,
|
||||
Globepay,
|
||||
Globepay, // added as template code for future usage
|
||||
Iatapay,
|
||||
Klarna,
|
||||
Mollie,
|
||||
Multisafepay,
|
||||
@ -109,7 +109,9 @@ pub enum Connector {
|
||||
Stax,
|
||||
Stripe,
|
||||
Trustpay,
|
||||
// Tsys,
|
||||
Tsys,
|
||||
Wise,
|
||||
Worldline,
|
||||
Worldpay,
|
||||
Zen,
|
||||
@ -218,12 +220,45 @@ pub enum RoutableConnectors {
|
||||
Shift4,
|
||||
Stripe,
|
||||
Trustpay,
|
||||
// Tsys,
|
||||
Tsys,
|
||||
Wise,
|
||||
Worldline,
|
||||
Worldpay,
|
||||
Zen,
|
||||
}
|
||||
|
||||
#[cfg(feature = "payouts")]
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Eq,
|
||||
Hash,
|
||||
PartialEq,
|
||||
serde::Serialize,
|
||||
serde::Deserialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
ToSchema,
|
||||
)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum PayoutConnectors {
|
||||
Adyen,
|
||||
Wise,
|
||||
}
|
||||
|
||||
#[cfg(feature = "payouts")]
|
||||
impl From<PayoutConnectors> for RoutableConnectors {
|
||||
fn from(value: PayoutConnectors) -> Self {
|
||||
match value {
|
||||
PayoutConnectors::Adyen => Self::Adyen,
|
||||
PayoutConnectors::Wise => Self::Wise,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Name of banks supported by Hyperswitch
|
||||
#[derive(
|
||||
Clone,
|
||||
|
||||
Reference in New Issue
Block a user