mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(core): add support for multiple merchant_connector_account (#2655)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Shanks <shashank.attarde@juspay.in>
This commit is contained in:
@ -361,6 +361,7 @@ impl<T: DatabaseStore> PaymentAttemptInterface for KVRouterStore<T> {
|
||||
connector_response_reference_id: None,
|
||||
amount_capturable: payment_attempt.amount_capturable,
|
||||
updated_by: storage_scheme.to_string(),
|
||||
merchant_connector_id: payment_attempt.merchant_connector_id.clone(),
|
||||
};
|
||||
|
||||
let field = format!("pa_{}", created_attempt.attempt_id);
|
||||
@ -957,6 +958,7 @@ impl DataModelExt for PaymentAttempt {
|
||||
amount_capturable: self.amount_capturable,
|
||||
|
||||
updated_by: self.updated_by,
|
||||
merchant_connector_id: self.merchant_connector_id,
|
||||
}
|
||||
}
|
||||
|
||||
@ -1007,6 +1009,7 @@ impl DataModelExt for PaymentAttempt {
|
||||
amount_capturable: storage_model.amount_capturable,
|
||||
|
||||
updated_by: storage_model.updated_by,
|
||||
merchant_connector_id: storage_model.merchant_connector_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1057,6 +1060,7 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
amount_capturable: self.amount_capturable,
|
||||
|
||||
updated_by: self.updated_by,
|
||||
merchant_connector_id: self.merchant_connector_id,
|
||||
}
|
||||
}
|
||||
|
||||
@ -1105,6 +1109,7 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
amount_capturable: storage_model.amount_capturable,
|
||||
|
||||
updated_by: storage_model.updated_by,
|
||||
merchant_connector_id: storage_model.merchant_connector_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1149,12 +1154,14 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
straight_through_algorithm,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
merchant_connector_id,
|
||||
} => DieselPaymentAttemptUpdate::UpdateTrackers {
|
||||
payment_token,
|
||||
connector,
|
||||
straight_through_algorithm,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
merchant_connector_id,
|
||||
},
|
||||
Self::AuthenticationTypeUpdate {
|
||||
authentication_type,
|
||||
@ -1183,6 +1190,7 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
} => DieselPaymentAttemptUpdate::ConfirmUpdate {
|
||||
amount,
|
||||
currency,
|
||||
@ -1203,6 +1211,7 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
},
|
||||
Self::VoidUpdate {
|
||||
status,
|
||||
@ -1369,12 +1378,14 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
straight_through_algorithm,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
} => Self::UpdateTrackers {
|
||||
payment_token,
|
||||
connector,
|
||||
straight_through_algorithm,
|
||||
amount_capturable,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
},
|
||||
DieselPaymentAttemptUpdate::AuthenticationTypeUpdate {
|
||||
authentication_type,
|
||||
@ -1403,6 +1414,7 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
} => Self::ConfirmUpdate {
|
||||
amount,
|
||||
currency,
|
||||
@ -1423,6 +1435,7 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
surcharge_amount,
|
||||
tax_amount,
|
||||
updated_by,
|
||||
merchant_connector_id: connector_id,
|
||||
},
|
||||
DieselPaymentAttemptUpdate::VoidUpdate {
|
||||
status,
|
||||
|
||||
Reference in New Issue
Block a user