feat(core): add SCA exemption field (#6578)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sakil Mostak
2024-11-25 16:24:19 +05:30
committed by GitHub
parent 83e8bc0775
commit 2b8eb09a16
37 changed files with 152 additions and 4 deletions

View File

@ -20,7 +20,7 @@ pub mod diesel_exports {
DbMandateStatus as MandateStatus, DbPaymentMethodIssuerCode as PaymentMethodIssuerCode,
DbPaymentType as PaymentType, DbRefundStatus as RefundStatus,
DbRequestIncrementalAuthorization as RequestIncrementalAuthorization,
DbWebhookDeliveryAttempt as WebhookDeliveryAttempt,
DbScaExemptionType as ScaExemptionType, DbWebhookDeliveryAttempt as WebhookDeliveryAttempt,
};
}
@ -1668,6 +1668,29 @@ pub enum PaymentType {
RecurringMandate,
}
/// SCA Exemptions types available for authentication
#[derive(
Clone,
Copy,
Debug,
Default,
Eq,
PartialEq,
serde::Deserialize,
serde::Serialize,
strum::Display,
strum::EnumString,
ToSchema,
)]
#[router_derive::diesel_enum(storage_type = "db_enum")]
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum ScaExemptionType {
#[default]
LowValue,
TransactionRiskAnalysis,
}
#[derive(
Clone,
Copy,