Skip to content

Commit

Permalink
fix: renamed the props
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay committed Jun 13, 2024
1 parent fdb7106 commit a70a743
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/orca-loader/PaymentSessionMethods.res
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ let getCustomerSavedPaymentMethods = (
| None => paymentNotExist()
}

let getCustomerLastPaymentMethodUsedData = () => {
let getCustomerLastUsedPaymentMethodData = () => {
let customerPaymentMethodsCopy = customerDetailsArray->Array.copy
customerPaymentMethodsCopy->Array.sort(sortFunctions)

Expand Down Expand Up @@ -165,7 +165,7 @@ let getCustomerSavedPaymentMethods = (
}
}

let confirmWithCustomerLastPaymentUsed = payload => {
let confirmWithLastUsedPaymentMethod = payload => {
let customerPaymentMethodsCopy = customerDetailsArray->Array.copy
customerPaymentMethodsCopy->Array.sort(sortFunctions)

Expand All @@ -181,9 +181,9 @@ let getCustomerSavedPaymentMethods = (

{
getCustomerDefaultSavedPaymentMethodData,
getCustomerLastPaymentMethodUsedData,
getCustomerLastUsedPaymentMethodData,
confirmWithCustomerDefaultPaymentMethod,
confirmWithCustomerLastPaymentUsed,
confirmWithLastUsedPaymentMethod,
}
->Identity.anyTypeToJson
->resolve
Expand Down
8 changes: 4 additions & 4 deletions src/orca-loader/Types.res
Original file line number Diff line number Diff line change
Expand Up @@ -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<JSON.t>,
confirmWithCustomerLastPaymentUsed: JSON.t => Promise.t<JSON.t>,
confirmWithLastUsedPaymentMethod: JSON.t => Promise.t<JSON.t>,
}

type initPaymentSession = {getCustomerSavedPaymentMethods: unit => Promise.t<JSON.t>}
Expand Down Expand Up @@ -124,15 +124,15 @@ let getCustomerDefaultSavedPaymentMethodData = () => {
JSON.Encode.null
}

let getCustomerLastPaymentMethodUsedData = () => {
let getCustomerLastUsedPaymentMethodData = () => {
JSON.Encode.null
}

let confirmWithCustomerDefaultPaymentMethod = _confirmParams => {
Promise.resolve(Dict.make()->JSON.Encode.object)
}

let confirmWithCustomerLastPaymentUsed = _confirmParams => {
let confirmWithLastUsedPaymentMethod = _confirmParams => {
Promise.resolve(Dict.make()->JSON.Encode.object)
}

Expand Down

0 comments on commit a70a743

Please sign in to comment.