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:
AkshayaFoiger
2025-09-09 14:46:01 +05:30
committed by GitHub
parent 0eaea06a73
commit 04a8cc441b
45 changed files with 857 additions and 83 deletions

View File

@ -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)

View File

@ -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,
}
}
}