From c33a063b361c45bd3828c73f2c29c359cb639901 Mon Sep 17 00:00:00 2001 From: Roman Bodavskiy Date: Wed, 28 Jun 2023 13:51:08 +0300 Subject: [PATCH] backend/fix: make create order resp fields optional --- .../src/Kernel/External/Payment/Juspay/Types/CreateOrder.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mobility-core/src/Kernel/External/Payment/Juspay/Types/CreateOrder.hs b/lib/mobility-core/src/Kernel/External/Payment/Juspay/Types/CreateOrder.hs index cac28e934..df78f56d0 100644 --- a/lib/mobility-core/src/Kernel/External/Payment/Juspay/Types/CreateOrder.hs +++ b/lib/mobility-core/src/Kernel/External/Payment/Juspay/Types/CreateOrder.hs @@ -54,8 +54,8 @@ data PaymentLinks = PaymentLinks deriving anyclass (FromJSON, ToJSON, ToSchema) data SDKPayload = SDKPayload - { requestId :: Text, - service :: Text, + { requestId :: Maybe Text, + service :: Maybe Text, payload :: SDKPayloadDetails } deriving stock (Show, Eq, Generic)