@jetthai/cuora 1.1.361-dev-7 → 1.1.361-dev-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.361-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.361-dev-8...v1.1.361-dev-9) (2025-06-19)
|
|
6
|
+
|
|
7
|
+
### [1.1.361-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.361-dev-7...v1.1.361-dev-8) (2025-06-19)
|
|
8
|
+
|
|
5
9
|
### [1.1.361-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.361-dev-6...v1.1.361-dev-7) (2025-06-19)
|
|
6
10
|
|
|
7
11
|
### [1.1.361-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.361-dev-5...v1.1.361-dev-6) (2025-06-19)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -19,8 +19,8 @@ export default {
|
|
|
19
19
|
lastNameTh,
|
|
20
20
|
firstNameEn,
|
|
21
21
|
lastNameEn,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
firstNameLocale,
|
|
23
|
+
lastNameLocale,
|
|
24
24
|
bonus,
|
|
25
25
|
paymentProvider,
|
|
26
26
|
pixType,
|
|
@@ -43,8 +43,8 @@ export default {
|
|
|
43
43
|
lastNameTh,
|
|
44
44
|
firstNameEn,
|
|
45
45
|
lastNameEn,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
firstNameLocale,
|
|
47
|
+
lastNameLocale,
|
|
48
48
|
bonus,
|
|
49
49
|
paymentProvider,
|
|
50
50
|
pixType,
|
|
@@ -27,8 +27,8 @@ export default function (request) {
|
|
|
27
27
|
branchCode: null,
|
|
28
28
|
accountNumber: null,
|
|
29
29
|
holderName: null,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
lastNameLocale: null,
|
|
31
|
+
firstNameLocale: null,
|
|
32
32
|
pixType: null,
|
|
33
33
|
},
|
|
34
34
|
states: {
|
|
@@ -119,14 +119,14 @@ export default function (request) {
|
|
|
119
119
|
SET_FIRST_NAME: {
|
|
120
120
|
actions: assign((context, event) => {
|
|
121
121
|
return {
|
|
122
|
-
|
|
122
|
+
firstNameLocale: event.data,
|
|
123
123
|
}
|
|
124
124
|
}),
|
|
125
125
|
},
|
|
126
126
|
SET_LAST_NAME: {
|
|
127
127
|
actions: assign((context, event) => {
|
|
128
128
|
return {
|
|
129
|
-
|
|
129
|
+
lastNameLocale: event.data,
|
|
130
130
|
}
|
|
131
131
|
}),
|
|
132
132
|
},
|
|
@@ -172,8 +172,8 @@ export default function (request) {
|
|
|
172
172
|
return {
|
|
173
173
|
hasAnyAccount: bankInfo.length > 0,
|
|
174
174
|
holderName: bankInfo[0]?.holderName,
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
firstNameLocale: bankInfo[0]?.firstNameLocale,
|
|
176
|
+
lastNameLocale: bankInfo[0]?.lastNameLocale,
|
|
177
177
|
paymentList,
|
|
178
178
|
bank: null, // 不預選銀行,玩家可能不知道這裡可以選 by Gordan
|
|
179
179
|
}
|
|
@@ -185,21 +185,21 @@ export default function (request) {
|
|
|
185
185
|
|
|
186
186
|
if (bindingType === 'CRYPTO') {
|
|
187
187
|
// 虛擬貨幣
|
|
188
|
-
const { crypto, network, cryptoAddress, holderName,
|
|
189
|
-
return crypto && network && cryptoAddress && (holderName || (
|
|
188
|
+
const { crypto, network, cryptoAddress, holderName, firstNameLocale, lastNameLocale } = context
|
|
189
|
+
return crypto && network && cryptoAddress && (holderName || (firstNameLocale && lastNameLocale))
|
|
190
190
|
} else if (bindingType === 'EWALLET') {
|
|
191
191
|
// 電子錢包
|
|
192
|
-
const { walletCode, accountNumber, holderName,
|
|
193
|
-
return walletCode?.bankCode && accountNumber && (holderName || (
|
|
192
|
+
const { walletCode, accountNumber, holderName, firstNameLocale, lastNameLocale } = context
|
|
193
|
+
return walletCode?.bankCode && accountNumber && (holderName || (firstNameLocale && lastNameLocale))
|
|
194
194
|
} else {
|
|
195
195
|
// 一般銀行
|
|
196
196
|
if (currency === 'INR') {
|
|
197
197
|
// 如果是印度幣別
|
|
198
|
-
const { bank, ifscCode, accountNumber, branch, holderName,
|
|
199
|
-
return bank.bankCode && ifscCode && accountNumber && branch && (holderName || (
|
|
198
|
+
const { bank, ifscCode, accountNumber, branch, holderName, firstNameLocale, lastNameLocale } = context
|
|
199
|
+
return bank.bankCode && ifscCode && accountNumber && branch && (holderName || (firstNameLocale && lastNameLocale))
|
|
200
200
|
} else {
|
|
201
|
-
const { bank, accountNumber, branch, holderName,
|
|
202
|
-
return bank.bankCode && accountNumber && branch && (holderName || (
|
|
201
|
+
const { bank, accountNumber, branch, holderName, firstNameLocale, lastNameLocale } = context
|
|
202
|
+
return bank.bankCode && accountNumber && branch && (holderName || (firstNameLocale && lastNameLocale))
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
},
|
|
@@ -225,8 +225,8 @@ export default function (request) {
|
|
|
225
225
|
branchCode,
|
|
226
226
|
accountNumber,
|
|
227
227
|
holderName,
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
firstNameLocale,
|
|
229
|
+
lastNameLocale,
|
|
230
230
|
pixType,
|
|
231
231
|
} = context
|
|
232
232
|
return await request.send(
|
|
@@ -242,8 +242,8 @@ export default function (request) {
|
|
|
242
242
|
branchCode,
|
|
243
243
|
bankAccount: accountNumber,
|
|
244
244
|
holderName,
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
firstNameLocale,
|
|
246
|
+
lastNameLocale,
|
|
247
247
|
pixType,
|
|
248
248
|
})
|
|
249
249
|
)
|
|
@@ -486,7 +486,7 @@ export default function (request) {
|
|
|
486
486
|
payment.submitWithdrawTransactionManual({
|
|
487
487
|
method,
|
|
488
488
|
amount,
|
|
489
|
-
applyerBankCode: currentBank.bankCode,
|
|
489
|
+
applyerBankCode: currentBank.bankCode || currentBank.walletCode,
|
|
490
490
|
applyerAccountNumber: currentBank.accountNumber,
|
|
491
491
|
applyerIfscCode: currentBank.ifscCode,
|
|
492
492
|
branch: branchTemp,
|
|
@@ -266,7 +266,7 @@ export default function (request, context) {
|
|
|
266
266
|
payment.submitWithdrawTransactionVN({
|
|
267
267
|
method: currentPayment.method,
|
|
268
268
|
amount: selectedAmount,
|
|
269
|
-
applyerBankCode: selectedUserBank.bankCode,
|
|
269
|
+
applyerBankCode: selectedUserBank.bankCode || selectedUserBank.walletCode,
|
|
270
270
|
applyerAccountNumber: selectedUserBank.accountNumber,
|
|
271
271
|
applyerIfscCode: selectedUserBank.ifscCode,
|
|
272
272
|
branch: branchTemp,
|