fix(mandates): handle the connector_mandate creation once and only if the payment is charged (#6327)

This commit is contained in:
Amisha Prabhat
2024-10-17 19:29:13 +05:30
committed by GitHub
parent 1a3d0a60f4
commit e14a0fe8f2
21 changed files with 366 additions and 208 deletions

View File

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