feat(core): Add a new endpoint for Complete Authorize flow (#4686)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Swangi Kumari
2024-05-20 21:32:36 +05:30
committed by GitHub
parent 36409bdc91
commit 226c337399
14 changed files with 267 additions and 21 deletions

View File

@ -81,6 +81,7 @@ Never share your secret api keys. Keep them guarded and secure.
routes::payments::payments_incremental_authorization,
routes::payment_link::payment_link_retrieve,
routes::payments::payments_external_authentication,
routes::payments::payments_complete_authorize,
// Routes for refunds
routes::refunds::refunds_create,
@ -402,6 +403,7 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::payments::CaptureResponse,
api_models::payments::PaymentsIncrementalAuthorizationRequest,
api_models::payments::IncrementalAuthorizationResponse,
api_models::payments::PaymentsCompleteAuthorizeRequest,
api_models::payments::PaymentsExternalAuthenticationRequest,
api_models::payments::PaymentsExternalAuthenticationResponse,
api_models::payments::SdkInformation,

View File

@ -486,3 +486,23 @@ pub fn payments_incremental_authorization() {}
security(("publishable_key" = []))
)]
pub fn payments_external_authentication() {}
/// Payments - Complete Authorize
///
///
#[utoipa::path(
post,
path = "/{payment_id}/complete_authorize",
request_body=PaymentsCompleteAuthorizeRequest,
params(
("payment_id" =String, Path, description = "The identifier for payment")
),
responses(
(status = 200, description = "Payments Complete Authorize Success", body = PaymentsResponse),
(status = 400, description = "Missing mandatory fields")
),
tag = "Payments",
operation_id = "Complete Authorize a Payment",
security(("publishable_key" = []))
)]
pub fn payments_complete_authorize() {}