mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
feat(core): api ,domain and diesel model changes for extended authorization (#6607)
Co-authored-by: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -208,6 +208,9 @@ impl PaymentAttemptInterface for MockDb {
|
||||
organization_id: payment_attempt.organization_id,
|
||||
profile_id: payment_attempt.profile_id,
|
||||
connector_mandate_detail: payment_attempt.connector_mandate_detail,
|
||||
request_extended_authorization: payment_attempt.request_extended_authorization,
|
||||
extended_authorization_applied: payment_attempt.extended_authorization_applied,
|
||||
capture_before: payment_attempt.capture_before,
|
||||
card_discovery: payment_attempt.card_discovery,
|
||||
charges: None,
|
||||
};
|
||||
|
||||
@ -603,6 +603,9 @@ impl<T: DatabaseStore> PaymentAttemptInterface for KVRouterStore<T> {
|
||||
organization_id: payment_attempt.organization_id.clone(),
|
||||
profile_id: payment_attempt.profile_id.clone(),
|
||||
connector_mandate_detail: payment_attempt.connector_mandate_detail.clone(),
|
||||
request_extended_authorization: payment_attempt.request_extended_authorization,
|
||||
extended_authorization_applied: payment_attempt.extended_authorization_applied,
|
||||
capture_before: payment_attempt.capture_before,
|
||||
card_discovery: payment_attempt.card_discovery,
|
||||
charges: None,
|
||||
};
|
||||
@ -1572,6 +1575,9 @@ impl DataModelExt for PaymentAttempt {
|
||||
shipping_cost: self.net_amount.get_shipping_cost(),
|
||||
order_tax_amount: self.net_amount.get_order_tax_amount(),
|
||||
connector_mandate_detail: self.connector_mandate_detail,
|
||||
request_extended_authorization: self.request_extended_authorization,
|
||||
extended_authorization_applied: self.extended_authorization_applied,
|
||||
capture_before: self.capture_before,
|
||||
processor_transaction_data,
|
||||
card_discovery: self.card_discovery,
|
||||
charges: self.charges,
|
||||
@ -1653,6 +1659,9 @@ impl DataModelExt for PaymentAttempt {
|
||||
organization_id: storage_model.organization_id,
|
||||
profile_id: storage_model.profile_id,
|
||||
connector_mandate_detail: storage_model.connector_mandate_detail,
|
||||
request_extended_authorization: storage_model.request_extended_authorization,
|
||||
extended_authorization_applied: storage_model.extended_authorization_applied,
|
||||
capture_before: storage_model.capture_before,
|
||||
card_discovery: storage_model.card_discovery,
|
||||
charges: storage_model.charges,
|
||||
}
|
||||
@ -1737,6 +1746,9 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
shipping_cost: self.net_amount.get_shipping_cost(),
|
||||
order_tax_amount: self.net_amount.get_order_tax_amount(),
|
||||
connector_mandate_detail: self.connector_mandate_detail,
|
||||
request_extended_authorization: self.request_extended_authorization,
|
||||
extended_authorization_applied: self.extended_authorization_applied,
|
||||
capture_before: self.capture_before,
|
||||
card_discovery: self.card_discovery,
|
||||
}
|
||||
}
|
||||
@ -1809,6 +1821,9 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
organization_id: storage_model.organization_id,
|
||||
profile_id: storage_model.profile_id,
|
||||
connector_mandate_detail: storage_model.connector_mandate_detail,
|
||||
request_extended_authorization: storage_model.request_extended_authorization,
|
||||
extended_authorization_applied: storage_model.extended_authorization_applied,
|
||||
capture_before: storage_model.capture_before,
|
||||
card_discovery: storage_model.card_discovery,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user