mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
fix(mandates): handle the connector_mandate creation once and only if the payment is charged (#6327)
This commit is contained in:
@ -3356,3 +3356,16 @@ pub enum SurchargeCalculationOverride {
|
||||
/// Calculate surcharge
|
||||
Calculate,
|
||||
}
|
||||
|
||||
/// Connector Mandate Status
|
||||
#[derive(
|
||||
Clone, Copy, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize, strum::Display,
|
||||
)]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum ConnectorMandateStatus {
|
||||
/// Indicates that the connector mandate is active and can be used for payments.
|
||||
Active,
|
||||
/// Indicates that the connector mandate is not active and hence cannot be used for payments.
|
||||
Inactive,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user