feat(router): add connector mit related columns to the payment methods table (#3764)

This commit is contained in:
Shanks
2024-02-27 16:51:25 +05:30
committed by GitHub
parent 8775bb5464
commit 5b8c261d1e
9 changed files with 156 additions and 2 deletions

View File

@ -1177,6 +1177,32 @@ pub enum PaymentMethodIssuerCode {
JpBacs,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
serde::Serialize,
serde::Deserialize,
strum::Display,
strum::EnumString,
ToSchema,
)]
#[router_derive::diesel_enum(storage_type = "text")]
#[strum(serialize_all = "snake_case")]
#[serde(rename_all = "snake_case")]
pub enum PaymentMethodStatus {
/// Indicates that the payment method is active and can be used for payments.
Active,
/// Indicates that the payment method is not active and hence cannot be used for payments.
Inactive,
/// Indicates that the payment method is awaiting some data or action before it can be marked
/// as 'active'.
Processing,
}
/// To indicate the type of payment experience that the customer would go through
#[derive(
Eq,