mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix: handle session and confirm flow discrepancy in surcharge details (#2696)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -1138,6 +1138,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
business_sub_label,
|
||||
amount_to_capture,
|
||||
capture_method,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
} => DieselPaymentAttemptUpdate::Update {
|
||||
amount,
|
||||
@ -1152,6 +1154,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
business_sub_label,
|
||||
amount_to_capture,
|
||||
capture_method,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
},
|
||||
Self::UpdateTrackers {
|
||||
@ -1160,12 +1164,16 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
straight_through_algorithm,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
merchant_connector_id,
|
||||
} => DieselPaymentAttemptUpdate::UpdateTrackers {
|
||||
payment_token,
|
||||
connector,
|
||||
straight_through_algorithm,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id,
|
||||
},
|
||||
@ -1193,8 +1201,6 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
error_code,
|
||||
error_message,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
} => DieselPaymentAttemptUpdate::ConfirmUpdate {
|
||||
@ -1214,8 +1220,6 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
error_code,
|
||||
error_message,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
},
|
||||
@ -1243,6 +1247,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
connector_response_reference_id,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
authentication_data,
|
||||
encoded_data,
|
||||
} => DieselPaymentAttemptUpdate::ResponseUpdate {
|
||||
@ -1260,6 +1266,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
connector_response_reference_id,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
authentication_data,
|
||||
encoded_data,
|
||||
},
|
||||
@ -1379,6 +1387,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
business_sub_label,
|
||||
amount_to_capture,
|
||||
capture_method,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
} => Self::Update {
|
||||
amount,
|
||||
@ -1393,6 +1403,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
business_sub_label,
|
||||
amount_to_capture,
|
||||
capture_method,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
},
|
||||
DieselPaymentAttemptUpdate::UpdateTrackers {
|
||||
@ -1401,12 +1413,16 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
straight_through_algorithm,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
merchant_connector_id: connector_id,
|
||||
} => Self::UpdateTrackers {
|
||||
payment_token,
|
||||
connector,
|
||||
straight_through_algorithm,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
},
|
||||
@ -1434,8 +1450,6 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
error_code,
|
||||
error_message,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
} => Self::ConfirmUpdate {
|
||||
@ -1455,8 +1469,6 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
error_code,
|
||||
error_message,
|
||||
amount_capturable,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
},
|
||||
@ -1484,6 +1496,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
connector_response_reference_id,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
authentication_data,
|
||||
encoded_data,
|
||||
} => Self::ResponseUpdate {
|
||||
@ -1501,6 +1515,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
connector_response_reference_id,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
authentication_data,
|
||||
encoded_data,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user