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:
chikke srujan
2023-08-01 10:51:26 +05:30
committed by GitHub
parent f1886595be
commit 208d619409
4 changed files with 3 additions and 16 deletions

View File

@ -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>),
}

View File

@ -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),

View File

@ -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,

View File

@ -10261,17 +10261,6 @@
}
}
},
{
"type": "object",
"required": [
"we_chat_pay"
],
"properties": {
"we_chat_pay": {
"$ref": "#/components/schemas/WeChatPay"
}
}
},
{
"type": "object",
"required": [