fix(core): add request_extended_authorization in the payment attempt and populate it in the payment response (#9492)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
AkshayaFoiger
2025-09-26 12:52:27 +05:30
committed by GitHub
parent bf048e4d83
commit 8e629abc92
10 changed files with 76 additions and 10 deletions

View File

@ -5615,6 +5615,12 @@ pub struct PaymentsResponse {
#[schema(value_type = Option<bool>)]
pub extended_authorization_applied: Option<ExtendedAuthorizationAppliedBool>,
/// Optional boolean value to extent authorization period of this payment
///
/// capture method must be manual or manual_multiple
#[schema(value_type = Option<bool>, default = false)]
pub request_extended_authorization: Option<RequestExtendedAuthorizationBool>,
/// date and time after which this payment cannot be captured
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]
pub capture_before: Option<PrimitiveDateTime>,