mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
refactor(api_models): follow naming convention for wallets & paylater payment method data enums (#1338)
Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -504,8 +504,8 @@ pub enum PayLaterData {
|
||||
#[schema(value_type = String)]
|
||||
billing_name: Secret<String>,
|
||||
},
|
||||
PayBright {},
|
||||
Walley {},
|
||||
PayBrightRedirect {},
|
||||
WalleyRedirect {},
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone, ToSchema, Eq, PartialEq)]
|
||||
@ -809,16 +809,16 @@ pub struct BankDebitBilling {
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum WalletData {
|
||||
/// The wallet data for Ali Pay redirect
|
||||
AliPay(AliPayRedirection),
|
||||
AliPayRedirect(AliPayRedirection),
|
||||
/// The wallet data for Apple pay
|
||||
ApplePay(ApplePayWalletData),
|
||||
/// Wallet data for apple pay redirect flow
|
||||
ApplePayRedirect(Box<ApplePayRedirectData>),
|
||||
/// The wallet data for Google pay
|
||||
GooglePay(GooglePayWalletData),
|
||||
MbWay(Box<MbWayRedirection>),
|
||||
MbWayRedirect(Box<MbWayRedirection>),
|
||||
/// The wallet data for MobilePay redirect
|
||||
MobilePay(Box<MobilePayRedirection>),
|
||||
MobilePayRedirect(Box<MobilePayRedirection>),
|
||||
/// This is for paypal redirection
|
||||
PaypalRedirect(PaypalRedirection),
|
||||
/// The wallet data for Paypal
|
||||
|
||||
Reference in New Issue
Block a user