mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
fix(connector): [Stripe] change payment_method name Wechatpay to wechatpayqr (#1813)
Signed-off-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com>
This commit is contained in:
@ -1030,8 +1030,6 @@ pub enum WalletData {
|
||||
TouchNGoRedirect(Box<TouchNGoRedirection>),
|
||||
/// The wallet data for WeChat Pay Redirection
|
||||
WeChatPayRedirect(Box<WeChatPayRedirection>),
|
||||
/// The wallet data for WeChat Pay
|
||||
WeChatPay(Box<WeChatPay>),
|
||||
/// The wallet data for WeChat Pay Display QrCode
|
||||
WeChatPayQr(Box<WeChatPayQr>),
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ impl TryFrom<api_models::payments::WalletData> for DummyConnectorWallet {
|
||||
match value {
|
||||
api_models::payments::WalletData::GooglePayRedirect(_) => Ok(Self::GooglePay),
|
||||
api_models::payments::WalletData::PaypalRedirect(_) => Ok(Self::Paypal),
|
||||
api_models::payments::WalletData::WeChatPay(_) => Ok(Self::WeChatPay),
|
||||
api_models::payments::WalletData::WeChatPayRedirect(_) => Ok(Self::WeChatPay),
|
||||
api_models::payments::WalletData::MbWayRedirect(_) => Ok(Self::MbWay),
|
||||
api_models::payments::WalletData::AliPayRedirect(_) => Ok(Self::AliPay),
|
||||
api_models::payments::WalletData::AliPayHkRedirect(_) => Ok(Self::AliPayHK),
|
||||
|
||||
@ -1128,7 +1128,7 @@ fn create_stripe_payment_method(
|
||||
None,
|
||||
StripeBillingAddress::default(),
|
||||
)),
|
||||
payments::WalletData::WeChatPay(_) => Ok((
|
||||
payments::WalletData::WeChatPayQr(_) => Ok((
|
||||
StripePaymentMethodData::Wallet(StripeWallet::WechatpayPayment(WechatpayPayment {
|
||||
client: WechatClient::Web,
|
||||
payment_method_data_type: StripePaymentMethodType::Wechatpay,
|
||||
@ -2846,7 +2846,7 @@ impl
|
||||
Ok(Self::Wallet(wallet_info))
|
||||
}
|
||||
|
||||
payments::WalletData::WeChatPayRedirect(_) => {
|
||||
payments::WalletData::WeChatPayQr(_) => {
|
||||
let wallet_info = StripeWallet::WechatpayPayment(WechatpayPayment {
|
||||
client: WechatClient::Web,
|
||||
payment_method_data_type: StripePaymentMethodType::Wechatpay,
|
||||
|
||||
@ -10261,17 +10261,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"we_chat_pay"
|
||||
],
|
||||
"properties": {
|
||||
"we_chat_pay": {
|
||||
"$ref": "#/components/schemas/WeChatPay"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
Reference in New Issue
Block a user