@jetthai/cuora 1.1.361-dev-7 → 1.1.361-dev-8

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,8 @@
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-8](https://github.com/jetthai/cuora-module/compare/v1.1.361-dev-7...v1.1.361-dev-8) (2025-06-19)
6
+
5
7
  ### [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
8
 
7
9
  ### [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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.361-dev-7",
3
+ "version": "1.1.361-dev-8",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -19,8 +19,8 @@ export default {
19
19
  lastNameTh,
20
20
  firstNameEn,
21
21
  lastNameEn,
22
- firstNameLocal,
23
- lastNameLocal,
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
- firstNameLocal,
47
- lastNameLocal,
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
- lastNameLocal: null,
31
- firstNameLocal: null,
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
- firstNameLocal: event.data,
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
- lastNameLocal: event.data,
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
- firstNameLocal: bankInfo[0]?.firstNameLocal,
176
- lastNameLocal: bankInfo[0]?.lastNameLocal,
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, firstNameLocal, lastNameLocal } = context
189
- return crypto && network && cryptoAddress && (holderName || (firstNameLocal && lastNameLocal))
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, firstNameLocal, lastNameLocal } = context
193
- return walletCode?.bankCode && accountNumber && (holderName || (firstNameLocal && lastNameLocal))
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, firstNameLocal, lastNameLocal } = context
199
- return bank.bankCode && ifscCode && accountNumber && branch && (holderName || (firstNameLocal && lastNameLocal))
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, firstNameLocal, lastNameLocal } = context
202
- return bank.bankCode && accountNumber && branch && (holderName || (firstNameLocal && lastNameLocal))
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
- firstNameLocal,
229
- lastNameLocal,
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
- firstNameLocal,
246
- lastNameLocal,
245
+ firstNameLocale,
246
+ lastNameLocale,
247
247
  pixType,
248
248
  })
249
249
  )