From b44f35d4d9ddf4fcd725f0e0a5d51fa9eb7f7e3f Mon Sep 17 00:00:00 2001 From: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Date: Mon, 19 Jun 2023 15:24:37 +0530 Subject: [PATCH] fix(connector): [Shift4] Fix incorrect deserialization of webhook event type (#1463) Signed-off-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> --- crates/router/src/connector/shift4/transformers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,