mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(router): add support for overcapture (#8949)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com>
This commit is contained in:
@ -239,6 +239,7 @@ impl PaymentAttemptInterface for MockDb {
|
||||
connector_request_reference_id: payment_attempt.connector_request_reference_id,
|
||||
debit_routing_savings: None,
|
||||
network_transaction_id: payment_attempt.network_transaction_id,
|
||||
is_overcapture_enabled: None,
|
||||
};
|
||||
payment_attempts.push(payment_attempt.clone());
|
||||
Ok(payment_attempt)
|
||||
|
||||
@ -693,6 +693,7 @@ impl<T: DatabaseStore> PaymentAttemptInterface for KVRouterStore<T> {
|
||||
.clone(),
|
||||
debit_routing_savings: None,
|
||||
network_transaction_id: payment_attempt.network_transaction_id.clone(),
|
||||
is_overcapture_enabled: None,
|
||||
};
|
||||
|
||||
let field = format!("pa_{}", created_attempt.attempt_id);
|
||||
@ -1902,6 +1903,7 @@ impl DataModelExt for PaymentAttempt {
|
||||
created_by: self.created_by.map(|created_by| created_by.to_string()),
|
||||
connector_request_reference_id: self.connector_request_reference_id,
|
||||
network_transaction_id: self.network_transaction_id,
|
||||
is_overcapture_enabled: self.is_overcapture_enabled,
|
||||
}
|
||||
}
|
||||
|
||||
@ -1996,6 +1998,7 @@ impl DataModelExt for PaymentAttempt {
|
||||
connector_request_reference_id: storage_model.connector_request_reference_id,
|
||||
debit_routing_savings: None,
|
||||
network_transaction_id: storage_model.network_transaction_id,
|
||||
is_overcapture_enabled: storage_model.is_overcapture_enabled,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user