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