File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ let getCustomerSavedPaymentMethods = (
65
65
| None => paymentNotExist ()
66
66
}
67
67
68
- let getCustomerLastPaymentMethodUsedData = () => {
68
+ let getCustomerLastUsedPaymentMethodData = () => {
69
69
let customerPaymentMethodsCopy = customerDetailsArray -> Array .copy
70
70
customerPaymentMethodsCopy -> Array .sort (sortFunctions )
71
71
@@ -165,7 +165,7 @@ let getCustomerSavedPaymentMethods = (
165
165
}
166
166
}
167
167
168
- let confirmWithCustomerLastPaymentUsed = payload => {
168
+ let confirmWithLastUsedPaymentMethod = payload => {
169
169
let customerPaymentMethodsCopy = customerDetailsArray -> Array .copy
170
170
customerPaymentMethodsCopy -> Array .sort (sortFunctions )
171
171
@@ -181,9 +181,9 @@ let getCustomerSavedPaymentMethods = (
181
181
182
182
{
183
183
getCustomerDefaultSavedPaymentMethodData ,
184
- getCustomerLastPaymentMethodUsedData ,
184
+ getCustomerLastUsedPaymentMethodData ,
185
185
confirmWithCustomerDefaultPaymentMethod ,
186
- confirmWithCustomerLastPaymentUsed ,
186
+ confirmWithLastUsedPaymentMethod ,
187
187
}
188
188
-> Identity .anyTypeToJson
189
189
-> resolve
Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ type element = {
41
41
42
42
type getCustomerSavedPaymentMethods = {
43
43
getCustomerDefaultSavedPaymentMethodData : unit => JSON .t ,
44
- getCustomerLastPaymentMethodUsedData : unit => JSON .t ,
44
+ getCustomerLastUsedPaymentMethodData : unit => JSON .t ,
45
45
confirmWithCustomerDefaultPaymentMethod : JSON .t => Promise .t <JSON .t >,
46
- confirmWithCustomerLastPaymentUsed : JSON .t => Promise .t <JSON .t >,
46
+ confirmWithLastUsedPaymentMethod : JSON .t => Promise .t <JSON .t >,
47
47
}
48
48
49
49
type initPaymentSession = {getCustomerSavedPaymentMethods : unit => Promise .t <JSON .t >}
@@ -124,15 +124,15 @@ let getCustomerDefaultSavedPaymentMethodData = () => {
124
124
JSON .Encode .null
125
125
}
126
126
127
- let getCustomerLastPaymentMethodUsedData = () => {
127
+ let getCustomerLastUsedPaymentMethodData = () => {
128
128
JSON .Encode .null
129
129
}
130
130
131
131
let confirmWithCustomerDefaultPaymentMethod = _confirmParams => {
132
132
Promise .resolve (Dict .make ()-> JSON .Encode .object )
133
133
}
134
134
135
- let confirmWithCustomerLastPaymentUsed = _confirmParams => {
135
+ let confirmWithLastUsedPaymentMethod = _confirmParams => {
136
136
Promise .resolve (Dict .make ()-> JSON .Encode .object )
137
137
}
138
138
You can’t perform that action at this time.
0 commit comments