mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	feat(core): Add Support for Payments Dynamic Tax Calculation Based on Shipping Address (#5619)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -29,6 +29,8 @@ pub enum Derives { | ||||
|     SessionData, | ||||
|     IncrementalAuthorization, | ||||
|     IncrementalAuthorizationData, | ||||
|     SdkSessionUpdate, | ||||
|     SdkSessionUpdateData, | ||||
| } | ||||
|  | ||||
| impl Derives { | ||||
| @ -103,6 +105,12 @@ impl Conversion { | ||||
|             Derives::IncrementalAuthorizationData => { | ||||
|                 syn::Ident::new("PaymentsIncrementalAuthorizationData", Span::call_site()) | ||||
|             } | ||||
|             Derives::SdkSessionUpdate => { | ||||
|                 syn::Ident::new("PaymentsDynamicTaxCalculationRequest", Span::call_site()) | ||||
|             } | ||||
|             Derives::SdkSessionUpdateData => { | ||||
|                 syn::Ident::new("SdkPaymentsSessionUpdateData", Span::call_site()) | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
| @ -423,6 +431,7 @@ pub fn operation_derive_inner(input: DeriveInput) -> syn::Result<proc_macro::Tok | ||||
|                     PaymentsSessionData, | ||||
|                     CompleteAuthorizeData, | ||||
|                     PaymentsIncrementalAuthorizationData, | ||||
|                     SdkPaymentsSessionUpdateData, | ||||
|  | ||||
|                     api::{ | ||||
|                         PaymentsCaptureRequest, | ||||
| @ -434,7 +443,8 @@ pub fn operation_derive_inner(input: DeriveInput) -> syn::Result<proc_macro::Tok | ||||
|                         PaymentsStartRequest, | ||||
|                         PaymentsSessionRequest, | ||||
|                         VerifyRequest, | ||||
|                         PaymentsIncrementalAuthorizationRequest | ||||
|                         PaymentsDynamicTaxCalculationRequest, | ||||
|                         PaymentsIncrementalAuthorizationRequest, | ||||
|                     } | ||||
|                 }; | ||||
|                 #trait_derive | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Swangi Kumari
					Swangi Kumari