mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(core): Add MIT Types in payment Intent (#9585)
This commit is contained in:
@ -9353,6 +9353,33 @@ pub enum TriggeredBy {
|
||||
External,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Eq,
|
||||
Hash,
|
||||
PartialEq,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
ToSchema,
|
||||
)]
|
||||
#[router_derive::diesel_enum(storage_type = "text")]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum MitCategory {
|
||||
/// A fixed purchase amount split into multiple scheduled payments until the total is paid.
|
||||
Installment,
|
||||
/// Merchant-initiated transaction using stored credentials, but not tied to a fixed schedule
|
||||
Unscheduled,
|
||||
/// Merchant-initiated payments that happen at regular intervals (usually the same amount each time).
|
||||
Recurring,
|
||||
/// A retried MIT after a previous transaction failed or was declined.
|
||||
Resubmission,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
|
||||
Reference in New Issue
Block a user