mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
Co-authored-by: Sangamesh Kulkarni <59434228+Sangamesh26@users.noreply.github.com> Co-authored-by: ItsMeShashank <shashank.attarde@juspay.in> Co-authored-by: Abhishek <abhishek.marrivagu@juspay.in> Co-authored-by: Jagan <jaganelavarasan@gmail.com> Co-authored-by: SamraatBansal <55536657+SamraatBansal@users.noreply.github.com> Co-authored-by: Sampras Lopes <lsampras@protonmail.com>
This commit is contained in:
@ -11,6 +11,7 @@ use utoipa::ToSchema;
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
frunk::LabelledGeneric,
|
||||
)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
@ -572,8 +573,10 @@ pub enum MandateStatus {
|
||||
pub enum Connector {
|
||||
Aci,
|
||||
Adyen,
|
||||
Airwallex,
|
||||
Applepay,
|
||||
Authorizedotnet,
|
||||
Bluesnap,
|
||||
Braintree,
|
||||
Checkout,
|
||||
Cybersource,
|
||||
@ -583,6 +586,7 @@ pub enum Connector {
|
||||
Fiserv,
|
||||
Globalpay,
|
||||
Klarna,
|
||||
Nuvei,
|
||||
Payu,
|
||||
Rapyd,
|
||||
Shift4,
|
||||
@ -593,7 +597,7 @@ pub enum Connector {
|
||||
|
||||
impl Connector {
|
||||
pub fn supports_access_token(&self) -> bool {
|
||||
matches!(self, Self::Globalpay | Self::Payu)
|
||||
matches!(self, Self::Airwallex | Self::Globalpay | Self::Payu)
|
||||
}
|
||||
}
|
||||
|
||||
@ -614,7 +618,9 @@ impl Connector {
|
||||
pub enum RoutableConnectors {
|
||||
Aci,
|
||||
Adyen,
|
||||
Airwallex,
|
||||
Authorizedotnet,
|
||||
Bluesnap,
|
||||
Braintree,
|
||||
Checkout,
|
||||
Cybersource,
|
||||
@ -622,6 +628,7 @@ pub enum RoutableConnectors {
|
||||
Fiserv,
|
||||
Globalpay,
|
||||
Klarna,
|
||||
Nuvei,
|
||||
Payu,
|
||||
Rapyd,
|
||||
Shift4,
|
||||
|
||||
Reference in New Issue
Block a user