mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat: update surcharge_amount and tax_amount in update_trackers of payment_confirm (#2603)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -1181,6 +1181,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
error_code,
|
||||
error_message,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
} => DieselPaymentAttemptUpdate::ConfirmUpdate {
|
||||
amount,
|
||||
@ -1199,6 +1201,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
error_code,
|
||||
error_message,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
},
|
||||
Self::VoidUpdate {
|
||||
@ -1333,15 +1337,6 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
surcharge_metadata,
|
||||
updated_by,
|
||||
},
|
||||
Self::SurchargeAmountUpdate {
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
} => DieselPaymentAttemptUpdate::SurchargeAmountUpdate {
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -1413,6 +1408,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
error_code,
|
||||
error_message,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
} => Self::ConfirmUpdate {
|
||||
amount,
|
||||
@ -1431,6 +1428,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
error_code,
|
||||
error_message,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
},
|
||||
DieselPaymentAttemptUpdate::VoidUpdate {
|
||||
@ -1565,15 +1564,6 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
surcharge_metadata,
|
||||
updated_by,
|
||||
},
|
||||
DieselPaymentAttemptUpdate::SurchargeAmountUpdate {
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
} => Self::SurchargeAmountUpdate {
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user