mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(connectors): [Iatapay] add payment methods (#4968)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: SamraatBansal <55536657+SamraatBansal@users.noreply.github.com>
This commit is contained in:
		| @ -98,6 +98,7 @@ impl IntoDirValue for api_enums::PaymentMethod { | ||||
|             Self::BankDebit => Ok(dirval!(PaymentMethod = BankDebit)), | ||||
|             Self::BankTransfer => Ok(dirval!(PaymentMethod = BankTransfer)), | ||||
|             Self::Reward => Ok(dirval!(PaymentMethod = Reward)), | ||||
|             Self::RealTimePayment => Ok(dirval!(PaymentMethod = RealTimePayment)), | ||||
|             Self::Upi => Ok(dirval!(PaymentMethod = Upi)), | ||||
|             Self::Voucher => Ok(dirval!(PaymentMethod = Voucher)), | ||||
|             Self::GiftCard => Ok(dirval!(PaymentMethod = GiftCard)), | ||||
| @ -154,6 +155,7 @@ impl IntoDirValue for (api_enums::PaymentMethodType, api_enums::PaymentMethod) { | ||||
|                 | api_enums::PaymentMethod::Wallet | ||||
|                 | api_enums::PaymentMethod::Crypto | ||||
|                 | api_enums::PaymentMethod::Reward | ||||
|                 | api_enums::PaymentMethod::RealTimePayment | ||||
|                 | api_enums::PaymentMethod::Upi | ||||
|                 | api_enums::PaymentMethod::Voucher | ||||
|                 | api_enums::PaymentMethod::GiftCard => Err(KgraphError::ContextConstructionError( | ||||
| @ -170,6 +172,7 @@ impl IntoDirValue for (api_enums::PaymentMethodType, api_enums::PaymentMethod) { | ||||
|                 | api_enums::PaymentMethod::Wallet | ||||
|                 | api_enums::PaymentMethod::Crypto | ||||
|                 | api_enums::PaymentMethod::Reward | ||||
|                 | api_enums::PaymentMethod::RealTimePayment | ||||
|                 | api_enums::PaymentMethod::Upi | ||||
|                 | api_enums::PaymentMethod::Voucher | ||||
|                 | api_enums::PaymentMethod::GiftCard => Err(KgraphError::ContextConstructionError( | ||||
| @ -187,6 +190,7 @@ impl IntoDirValue for (api_enums::PaymentMethodType, api_enums::PaymentMethod) { | ||||
|                 | api_enums::PaymentMethod::Wallet | ||||
|                 | api_enums::PaymentMethod::Crypto | ||||
|                 | api_enums::PaymentMethod::Reward | ||||
|                 | api_enums::PaymentMethod::RealTimePayment | ||||
|                 | api_enums::PaymentMethod::Upi | ||||
|                 | api_enums::PaymentMethod::Voucher | ||||
|                 | api_enums::PaymentMethod::GiftCard => Err(KgraphError::ContextConstructionError( | ||||
| @ -243,6 +247,9 @@ impl IntoDirValue for (api_enums::PaymentMethodType, api_enums::PaymentMethod) { | ||||
|             api_enums::PaymentMethodType::OnlineBankingFpx => { | ||||
|                 Ok(dirval!(BankRedirectType = OnlineBankingFpx)) | ||||
|             } | ||||
|             api_enums::PaymentMethodType::LocalBankRedirect => { | ||||
|                 Ok(dirval!(BankRedirectType = LocalBankRedirect)) | ||||
|             } | ||||
|             api_enums::PaymentMethodType::OnlineBankingThailand => { | ||||
|                 Ok(dirval!(BankRedirectType = OnlineBankingThailand)) | ||||
|             } | ||||
| @ -289,6 +296,10 @@ impl IntoDirValue for (api_enums::PaymentMethodType, api_enums::PaymentMethod) { | ||||
|             } | ||||
|             api_enums::PaymentMethodType::Venmo => Ok(dirval!(WalletType = Venmo)), | ||||
|             api_enums::PaymentMethodType::Mifinity => Ok(dirval!(WalletType = Mifinity)), | ||||
|             api_enums::PaymentMethodType::Fps => Ok(dirval!(RealTimePaymentType = Fps)), | ||||
|             api_enums::PaymentMethodType::DuitNow => Ok(dirval!(RealTimePaymentType = DuitNow)), | ||||
|             api_enums::PaymentMethodType::PromptPay => Ok(dirval!(RealTimePaymentType = PromptPay)), | ||||
|             api_enums::PaymentMethodType::VietQr => Ok(dirval!(RealTimePaymentType = VietQr)), | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 AkshayaFoiger
					AkshayaFoiger