feat(router): add an endpoint for extending authorization (#9813)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
AkshayaFoiger
2025-10-17 18:41:59 +05:30
committed by GitHub
parent a75c89002f
commit 7e09699a5b
38 changed files with 1691 additions and 216 deletions

View File

@ -79,6 +79,7 @@ Never share your secret api keys. Keep them guarded and secure.
routes::payments::payments_connector_session,
routes::payments::payments_cancel,
routes::payments::payments_cancel_post_capture,
routes::payments::payments_extend_authorization,
routes::payments::payments_list,
routes::payments::payments_incremental_authorization,
routes::payment_link::payment_link_retrieve,

View File

@ -921,6 +921,26 @@ pub async fn profile_payments_list() {}
)]
pub fn payments_incremental_authorization() {}
/// Payments - Extended Authorization
///
/// Extended authorization is available for payments currently in the `requires_capture` status
/// Call this endpoint to increase the authorization validity period
#[utoipa::path(
post,
path = "/payments/{payment_id}/extend_authorization",
params(
("payment_id" = String, Path, description = "The identifier for payment")
),
responses(
(status = 200, description = "Extended authorization for the payment"),
(status = 400, description = "Missing mandatory fields", body = GenericErrorResponseOpenApi)
),
tag = "Payments",
operation_id = "Extend authorization period for a Payment",
security(("api_key" = []))
)]
pub fn payments_extend_authorization() {}
/// Payments - External 3DS Authentication
///
/// External 3DS Authentication is performed and returns the AuthenticationResponse