mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	feat(connector): [Adyen] Add support for card redirection (KNET, BENEFIT) (#1816)
Co-authored-by: Arjun Karthik <m.arjunkarthik@gmail.com>
This commit is contained in:
		 Sangamesh Kulkarni
					Sangamesh Kulkarni
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							7b2c419ce5
						
					
				
				
					commit
					62461f1b38
				
			| @ -616,6 +616,13 @@ pub struct Card { | ||||
|     pub nick_name: Option<Secret<String>>, | ||||
| } | ||||
|  | ||||
| #[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)] | ||||
| #[serde(rename_all = "snake_case")] | ||||
| pub enum CardRedirectData { | ||||
|     Knet {}, | ||||
|     Benefit {}, | ||||
| } | ||||
|  | ||||
| #[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)] | ||||
| #[serde(rename_all = "snake_case")] | ||||
| pub enum PayLaterData { | ||||
| @ -712,6 +719,7 @@ pub enum BankDebitData { | ||||
| #[serde(rename_all = "snake_case")] | ||||
| pub enum PaymentMethodData { | ||||
|     Card(Card), | ||||
|     CardRedirect(CardRedirectData), | ||||
|     Wallet(WalletData), | ||||
|     PayLater(PayLaterData), | ||||
|     BankRedirect(BankRedirectData), | ||||
| @ -775,6 +783,7 @@ pub enum AdditionalPaymentData { | ||||
|     Upi {}, | ||||
|     GiftCard {}, | ||||
|     Voucher {}, | ||||
|     CardRedirect {}, | ||||
| } | ||||
|  | ||||
| #[derive(Debug, Clone, Eq, PartialEq, serde::Deserialize, serde::Serialize, ToSchema)] | ||||
| @ -1312,6 +1321,7 @@ pub enum PaymentMethodDataResponse { | ||||
|     Upi, | ||||
|     Voucher, | ||||
|     GiftCard, | ||||
|     CardRedirect, | ||||
| } | ||||
|  | ||||
| #[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize, ToSchema)] | ||||
| @ -2037,6 +2047,7 @@ impl From<AdditionalPaymentData> for PaymentMethodDataResponse { | ||||
|             AdditionalPaymentData::BankTransfer {} => Self::BankTransfer, | ||||
|             AdditionalPaymentData::Voucher {} => Self::Voucher, | ||||
|             AdditionalPaymentData::GiftCard {} => Self::GiftCard, | ||||
|             AdditionalPaymentData::CardRedirect {} => Self::CardRedirect, | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user