fix: status goes from pending to partially captured in psync (#2915)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2023-11-21 20:25:38 +05:30
committed by GitHub
parent 8f610f4cf1
commit 3f3b797dc6
15 changed files with 112 additions and 37 deletions

View File

@ -1320,6 +1320,8 @@ impl DataModelExt for PaymentAttemptUpdate {
error_message,
error_reason,
amount_capturable,
tax_amount,
surcharge_amount,
updated_by,
unified_code,
unified_message,
@ -1330,16 +1332,20 @@ impl DataModelExt for PaymentAttemptUpdate {
error_message,
error_reason,
amount_capturable,
surcharge_amount,
tax_amount,
updated_by,
unified_code,
unified_message,
},
Self::MultipleCaptureCountUpdate {
Self::CaptureUpdate {
multiple_capture_count,
updated_by,
} => DieselPaymentAttemptUpdate::MultipleCaptureCountUpdate {
amount_to_capture,
} => DieselPaymentAttemptUpdate::CaptureUpdate {
multiple_capture_count,
updated_by,
amount_to_capture,
},
Self::PreprocessingUpdate {
status,
@ -1577,6 +1583,8 @@ impl DataModelExt for PaymentAttemptUpdate {
error_message,
error_reason,
amount_capturable,
surcharge_amount,
tax_amount,
updated_by,
unified_code,
unified_message,
@ -1588,13 +1596,17 @@ impl DataModelExt for PaymentAttemptUpdate {
error_reason,
amount_capturable,
updated_by,
surcharge_amount,
tax_amount,
unified_code,
unified_message,
},
DieselPaymentAttemptUpdate::MultipleCaptureCountUpdate {
DieselPaymentAttemptUpdate::CaptureUpdate {
amount_to_capture,
multiple_capture_count,
updated_by,
} => Self::MultipleCaptureCountUpdate {
} => Self::CaptureUpdate {
amount_to_capture,
multiple_capture_count,
updated_by,
},