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:
Sai Harsha Vardhan
2023-12-04 18:34:51 +05:30
committed by GitHub
parent 9274cefbdd
commit a0cfdd3fb1
60 changed files with 1792 additions and 22 deletions

View File

@ -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