Refactor(core): make save_payment_method as post_update_tracker trait function (#4307)

Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Prajjwal Kumar
2024-04-25 13:31:43 +05:30
committed by GitHub
parent 4c793c3c00
commit 5f40eee3fa
20 changed files with 543 additions and 654 deletions

View File

@ -1433,6 +1433,13 @@ impl DataModelExt for PaymentAttemptUpdate {
error_message,
updated_by,
},
Self::PaymentMethodDetailsUpdate {
payment_method_id,
updated_by,
} => DieselPaymentAttemptUpdate::PaymentMethodDetailsUpdate {
payment_method_id,
updated_by,
},
Self::ConfirmUpdate {
amount,
currency,
@ -1807,6 +1814,13 @@ impl DataModelExt for PaymentAttemptUpdate {
error_message,
updated_by,
},
DieselPaymentAttemptUpdate::PaymentMethodDetailsUpdate {
payment_method_id,
updated_by,
} => Self::PaymentMethodDetailsUpdate {
payment_method_id,
updated_by,
},
DieselPaymentAttemptUpdate::ResponseUpdate {
status,
connector,