mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
refactor(payment_id): add payment id domain type (#5738)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -334,7 +334,7 @@ impl UniqueConstraints for diesel_models::PaymentIntent {
|
||||
vec![format!(
|
||||
"pi_{}_{}",
|
||||
self.merchant_id.get_string_repr(),
|
||||
self.payment_id
|
||||
self.payment_id.get_string_repr()
|
||||
)]
|
||||
}
|
||||
fn table_name(&self) -> &str {
|
||||
@ -347,7 +347,7 @@ impl UniqueConstraints for diesel_models::PaymentAttempt {
|
||||
vec![format!(
|
||||
"pa_{}_{}_{}",
|
||||
self.merchant_id.get_string_repr(),
|
||||
self.payment_id,
|
||||
self.payment_id.get_string_repr(),
|
||||
self.attempt_id
|
||||
)]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user