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(connector): [Shift4] Fix incorrect deserialization of webhook event type (#1463)

chikke srujanb44f35d4d9dd
diff --git a/crates/router/src/connector/shift4/transformers.rs b/crates/router/src/connector/shift4/transformers.rs
index 22a3ae58a7..8c29cff241 100644
--- a/crates/router/src/connector/shift4/transformers.rs
+++ b/crates/router/src/connector/shift4/transformers.rs
@@ -323,7 +323,7 @@ pub struct Shift4WebhookObjectEventType {
}
#[derive(Debug, Deserialize)]
-#[allow(clippy::enum_variant_names)]
+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum Shift4WebhookEvent {
ChargeSucceeded,
ChargeFailed,