File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
crates/hyperswitch_connectors/src/connectors/cybersource Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,7 @@ pub enum CybersourcePaymentInitiatorTypes {
417
417
pub struct CaptureOptions {
418
418
capture_sequence_number : u32 ,
419
419
total_capture_count : u32 ,
420
+ is_final : Option < bool > ,
420
421
}
421
422
422
423
#[ derive( Debug , Serialize ) ]
@@ -2142,11 +2143,18 @@ impl TryFrom<&CybersourceRouterData<&PaymentsCaptureRouterData>>
2142
2143
. clone ( )
2143
2144
. map ( convert_metadata_to_merchant_defined_info) ;
2144
2145
2146
+ let is_final = matches ! (
2147
+ item. router_data. request. capture_method,
2148
+ Some ( enums:: CaptureMethod :: Manual )
2149
+ )
2150
+ . then_some ( true ) ;
2151
+
2145
2152
Ok ( Self {
2146
2153
processing_information : ProcessingInformation {
2147
2154
capture_options : Some ( CaptureOptions {
2148
2155
capture_sequence_number : 1 ,
2149
2156
total_capture_count : 1 ,
2157
+ is_final,
2150
2158
} ) ,
2151
2159
action_list : None ,
2152
2160
action_token_types : None ,
You can’t perform that action at this time.
0 commit comments