File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2277,6 +2277,11 @@ pub struct PaymentsResponse {
2277
2277
/// List of incremental authorizations happened to the payment
2278
2278
pub incremental_authorizations : Option < Vec < IncrementalAuthorizationResponse > > ,
2279
2279
2280
+ /// Date Time expiry of the payment
2281
+ #[ schema( example = "2022-09-10T10:11:12Z" ) ]
2282
+ #[ serde( default , with = "common_utils::custom_serde::iso8601::option" ) ]
2283
+ pub expires_on : Option < PrimitiveDateTime > ,
2284
+
2280
2285
/// Payment Fingerprint
2281
2286
pub fingerprint : Option < String > ,
2282
2287
}
Original file line number Diff line number Diff line change @@ -709,6 +709,7 @@ where
709
709
. set_fingerprint ( payment_intent. fingerprint_id )
710
710
. set_authorization_count ( payment_intent. authorization_count )
711
711
. set_incremental_authorizations ( incremental_authorizations_response)
712
+ . set_expires_on ( payment_intent. session_expiry )
712
713
. to_owned ( ) ,
713
714
headers,
714
715
) )
@@ -775,6 +776,7 @@ where
775
776
incremental_authorization_allowed : payment_intent. incremental_authorization_allowed ,
776
777
authorization_count : payment_intent. authorization_count ,
777
778
incremental_authorizations : incremental_authorizations_response,
779
+ expires_on : payment_intent. session_expiry ,
778
780
..Default :: default ( )
779
781
} ,
780
782
headers,
Original file line number Diff line number Diff line change 10948
10948
"description" : " List of incremental authorizations happened to the payment" ,
10949
10949
"nullable" : true
10950
10950
},
10951
+ "expires_on" : {
10952
+ "type" : " string" ,
10953
+ "format" : " date-time" ,
10954
+ "description" : " Date Time expiry of the payment" ,
10955
+ "example" : " 2022-09-10T10:11:12Z" ,
10956
+ "nullable" : true
10957
+ },
10951
10958
"fingerprint" : {
10952
10959
"type" : " string" ,
10953
10960
"description" : " Payment Fingerprint" ,
You can’t perform that action at this time.
0 commit comments