From a70a743c45c1423b01c56ff601cc947c5a4394a8 Mon Sep 17 00:00:00 2001 From: Arush Date: Thu, 13 Jun 2024 15:51:33 +0530 Subject: [PATCH] fix: renamed the props --- src/orca-loader/PaymentSessionMethods.res | 8 ++++---- src/orca-loader/Types.res | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/orca-loader/PaymentSessionMethods.res b/src/orca-loader/PaymentSessionMethods.res index ae2a3765f..819b6881f 100644 --- a/src/orca-loader/PaymentSessionMethods.res +++ b/src/orca-loader/PaymentSessionMethods.res @@ -65,7 +65,7 @@ let getCustomerSavedPaymentMethods = ( | None => paymentNotExist() } - let getCustomerLastPaymentMethodUsedData = () => { + let getCustomerLastUsedPaymentMethodData = () => { let customerPaymentMethodsCopy = customerDetailsArray->Array.copy customerPaymentMethodsCopy->Array.sort(sortFunctions) @@ -165,7 +165,7 @@ let getCustomerSavedPaymentMethods = ( } } - let confirmWithCustomerLastPaymentUsed = payload => { + let confirmWithLastUsedPaymentMethod = payload => { let customerPaymentMethodsCopy = customerDetailsArray->Array.copy customerPaymentMethodsCopy->Array.sort(sortFunctions) @@ -181,9 +181,9 @@ let getCustomerSavedPaymentMethods = ( { getCustomerDefaultSavedPaymentMethodData, - getCustomerLastPaymentMethodUsedData, + getCustomerLastUsedPaymentMethodData, confirmWithCustomerDefaultPaymentMethod, - confirmWithCustomerLastPaymentUsed, + confirmWithLastUsedPaymentMethod, } ->Identity.anyTypeToJson ->resolve diff --git a/src/orca-loader/Types.res b/src/orca-loader/Types.res index 2ead3e758..8d396c99a 100644 --- a/src/orca-loader/Types.res +++ b/src/orca-loader/Types.res @@ -41,9 +41,9 @@ type element = { type getCustomerSavedPaymentMethods = { getCustomerDefaultSavedPaymentMethodData: unit => JSON.t, - getCustomerLastPaymentMethodUsedData: unit => JSON.t, + getCustomerLastUsedPaymentMethodData: unit => JSON.t, confirmWithCustomerDefaultPaymentMethod: JSON.t => Promise.t, - confirmWithCustomerLastPaymentUsed: JSON.t => Promise.t, + confirmWithLastUsedPaymentMethod: JSON.t => Promise.t, } type initPaymentSession = {getCustomerSavedPaymentMethods: unit => Promise.t} @@ -124,7 +124,7 @@ let getCustomerDefaultSavedPaymentMethodData = () => { JSON.Encode.null } -let getCustomerLastPaymentMethodUsedData = () => { +let getCustomerLastUsedPaymentMethodData = () => { JSON.Encode.null } @@ -132,7 +132,7 @@ let confirmWithCustomerDefaultPaymentMethod = _confirmParams => { Promise.resolve(Dict.make()->JSON.Encode.object) } -let confirmWithCustomerLastPaymentUsed = _confirmParams => { +let confirmWithLastUsedPaymentMethod = _confirmParams => { Promise.resolve(Dict.make()->JSON.Encode.object) }