@@ -289,23 +289,47 @@ impl PaymentAttemptUpdate {
289
289
amount : pa_update. amount . unwrap_or ( source. amount ) ,
290
290
currency : pa_update. currency . or ( source. currency ) ,
291
291
status : pa_update. status . unwrap_or ( source. status ) ,
292
- connector : pa_update. connector . or ( source. connector ) ,
293
- connector_transaction_id : source
292
+ connector_transaction_id : pa_update
294
293
. connector_transaction_id
295
- . or ( pa_update. connector_transaction_id ) ,
294
+ . or ( source. connector_transaction_id ) ,
295
+ amount_to_capture : pa_update. amount_to_capture . or ( source. amount_to_capture ) ,
296
+ connector : pa_update. connector . or ( source. connector ) ,
296
297
authentication_type : pa_update. authentication_type . or ( source. authentication_type ) ,
297
298
payment_method : pa_update. payment_method . or ( source. payment_method ) ,
298
299
error_message : pa_update. error_message . unwrap_or ( source. error_message ) ,
299
300
payment_method_id : pa_update
300
301
. payment_method_id
301
302
. unwrap_or ( source. payment_method_id ) ,
302
- browser_info : pa_update. browser_info . or ( source. browser_info ) ,
303
+ cancellation_reason : pa_update. cancellation_reason . or ( source. cancellation_reason ) ,
303
304
modified_at : common_utils:: date_time:: now ( ) ,
305
+ mandate_id : pa_update. mandate_id . or ( source. mandate_id ) ,
306
+ browser_info : pa_update. browser_info . or ( source. browser_info ) ,
304
307
payment_token : pa_update. payment_token . or ( source. payment_token ) ,
308
+ error_code : pa_update. error_code . unwrap_or ( source. error_code ) ,
305
309
connector_metadata : pa_update. connector_metadata . or ( source. connector_metadata ) ,
310
+ payment_method_data : pa_update. payment_method_data . or ( source. payment_method_data ) ,
311
+ payment_method_type : pa_update. payment_method_type . or ( source. payment_method_type ) ,
312
+ payment_experience : pa_update. payment_experience . or ( source. payment_experience ) ,
313
+ business_sub_label : pa_update. business_sub_label . or ( source. business_sub_label ) ,
314
+ straight_through_algorithm : pa_update
315
+ . straight_through_algorithm
316
+ . or ( source. straight_through_algorithm ) ,
306
317
preprocessing_step_id : pa_update
307
318
. preprocessing_step_id
308
319
. or ( source. preprocessing_step_id ) ,
320
+ error_reason : pa_update. error_reason . unwrap_or ( source. error_reason ) ,
321
+ capture_method : pa_update. capture_method . or ( source. capture_method ) ,
322
+ connector_response_reference_id : pa_update
323
+ . connector_response_reference_id
324
+ . or ( source. connector_response_reference_id ) ,
325
+ multiple_capture_count : pa_update
326
+ . multiple_capture_count
327
+ . or ( source. multiple_capture_count ) ,
328
+ surcharge_amount : pa_update. surcharge_amount . or ( source. surcharge_amount ) ,
329
+ tax_amount : pa_update. tax_amount . or ( source. tax_amount ) ,
330
+ amount_capturable : pa_update
331
+ . amount_capturable
332
+ . unwrap_or ( source. amount_capturable ) ,
309
333
surcharge_metadata : pa_update. surcharge_metadata . or ( source. surcharge_metadata ) ,
310
334
updated_by : pa_update. updated_by ,
311
335
..source
0 commit comments