mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
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:
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user