Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(api_models): serialize CardType enum values as uppercase via strum (#13448)

Ayush Anand351bcc3c526b
diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rs
index 79fb18b792..4d37c51724 100644
--- a/crates/api_models/src/payment_methods.rs
+++ b/crates/api_models/src/payment_methods.rs
@@ -891,6 +891,7 @@ pub struct CardDetail {
PartialEq,
)]
#[serde(rename_all = "snake_case")]
+#[strum(serialize_all = "UPPERCASE")]
pub enum CardType {
Credit,
Debit,