mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	refactor(worldline): use connector_request_reference_id as reference to the connector (#2498)
				
					
				
			This commit is contained in:
		 Panagiotis Ganelis
					Panagiotis Ganelis
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							751f16eaee
						
					
				
				
					commit
					efa53204e8
				
			| @ -40,11 +40,18 @@ pub struct AmountOfMoney { | |||||||
|     pub currency_code: String, |     pub currency_code: String, | ||||||
| } | } | ||||||
|  |  | ||||||
|  | #[derive(Default, Debug, Serialize, Eq, PartialEq)] | ||||||
|  | #[serde(rename_all = "camelCase")] | ||||||
|  | pub struct References { | ||||||
|  |     pub merchant_reference: String, | ||||||
|  | } | ||||||
|  |  | ||||||
| #[derive(Default, Debug, Serialize, Eq, PartialEq)] | #[derive(Default, Debug, Serialize, Eq, PartialEq)] | ||||||
| #[serde(rename_all = "camelCase")] | #[serde(rename_all = "camelCase")] | ||||||
| pub struct Order { | pub struct Order { | ||||||
|     pub amount_of_money: AmountOfMoney, |     pub amount_of_money: AmountOfMoney, | ||||||
|     pub customer: Customer, |     pub customer: Customer, | ||||||
|  |     pub references: References, | ||||||
| } | } | ||||||
|  |  | ||||||
| #[derive(Default, Debug, Serialize, Eq, PartialEq)] | #[derive(Default, Debug, Serialize, Eq, PartialEq)] | ||||||
| @ -202,6 +209,9 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PaymentsRequest { | |||||||
|                 currency_code: item.request.currency.to_string().to_uppercase(), |                 currency_code: item.request.currency.to_string().to_uppercase(), | ||||||
|             }, |             }, | ||||||
|             customer, |             customer, | ||||||
|  |             references: References { | ||||||
|  |                 merchant_reference: item.connector_request_reference_id.clone(), | ||||||
|  |             }, | ||||||
|         }; |         }; | ||||||
|  |  | ||||||
|         let shipping = item |         let shipping = item | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user