feat(core): Add MIT Types in payment Intent (#9585)

This commit is contained in:
awasthi21
2025-10-01 14:53:49 +05:30
committed by GitHub
parent 8e62824b03
commit 9312cfa3c8
24 changed files with 170 additions and 3 deletions

View File

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