mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payment_methods_v2): Payment method Create API (#5812)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -437,7 +437,7 @@ impl UniqueConstraints for diesel_models::PaymentMethod {
|
||||
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
|
||||
impl UniqueConstraints for diesel_models::PaymentMethod {
|
||||
fn unique_constraints(&self) -> Vec<String> {
|
||||
vec![format!("paymentmethod_{}", self.id)]
|
||||
vec![self.id.get_string_repr()]
|
||||
}
|
||||
fn table_name(&self) -> &str {
|
||||
"PaymentMethod"
|
||||
|
||||
Reference in New Issue
Block a user