mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(router): add payments incremental authorization api (#3038)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9274cefbdd
commit
a0cfdd3fb1
@ -27,6 +27,8 @@ pub enum Derives {
|
||||
Verify,
|
||||
Session,
|
||||
SessionData,
|
||||
IncrementalAuthorization,
|
||||
IncrementalAuthorizationData,
|
||||
}
|
||||
|
||||
impl Derives {
|
||||
@ -95,6 +97,12 @@ impl Conversion {
|
||||
}
|
||||
Derives::Session => syn::Ident::new("PaymentsSessionRequest", Span::call_site()),
|
||||
Derives::SessionData => syn::Ident::new("PaymentsSessionData", Span::call_site()),
|
||||
Derives::IncrementalAuthorization => {
|
||||
syn::Ident::new("PaymentsIncrementalAuthorizationRequest", Span::call_site())
|
||||
}
|
||||
Derives::IncrementalAuthorizationData => {
|
||||
syn::Ident::new("PaymentsIncrementalAuthorizationData", Span::call_site())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -414,6 +422,7 @@ pub fn operation_derive_inner(input: DeriveInput) -> syn::Result<proc_macro::Tok
|
||||
PaymentsAuthorizeData,
|
||||
PaymentsSessionData,
|
||||
CompleteAuthorizeData,
|
||||
PaymentsIncrementalAuthorizationData,
|
||||
|
||||
api::{
|
||||
PaymentsCaptureRequest,
|
||||
@ -424,7 +433,8 @@ pub fn operation_derive_inner(input: DeriveInput) -> syn::Result<proc_macro::Tok
|
||||
PaymentsRequest,
|
||||
PaymentsStartRequest,
|
||||
PaymentsSessionRequest,
|
||||
VerifyRequest
|
||||
VerifyRequest,
|
||||
PaymentsIncrementalAuthorizationRequest
|
||||
}
|
||||
};
|
||||
#trait_derive
|
||||
|
||||
Reference in New Issue
Block a user