@jetthai/cuora 1.1.417 → 1.1.419

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.419](https://github.com/jetthai/cuora-module/compare/v1.1.418...v1.1.419) (2026-03-09)
6
+
7
+ ### [1.1.418](https://github.com/jetthai/cuora-module/compare/v1.1.417...v1.1.418) (2026-03-06)
8
+
5
9
  ### [1.1.417](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.417) (2026-03-06)
6
10
 
7
11
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.417",
3
+ "version": "1.1.419",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -7,7 +7,7 @@ export default {
7
7
  params: { ...payload },
8
8
  }),
9
9
  getTransactionHistoryOptions: () => ({ url: 'payment/v2/category/options', method: 'get' }),
10
- getPaymentInfo: () => ({ url: `payment/v2/paymentInfo`, method: 'get' }),
10
+ getPaymentInfo: () => ({ url: `payment/v2/paymentInfo`, method: 'get' }), // 棄用
11
11
  getBindingPaymentInfo: () => ({ url: `payment/v2/getBindingPaymentInfo`, method: 'get' }),
12
12
  updatePaymentInfo: ({
13
13
  bankCode,
@@ -231,7 +231,7 @@ export default function (request) {
231
231
  fetchInitData: async (context, event) => {
232
232
  const [paymentList, paymentInfo] = await Promise.all([
233
233
  request.send(payment.getBindingPaymentList({ appSecret })),
234
- request.send(payment.getPaymentInfo()),
234
+ // request.send(payment.getPaymentInfo()),
235
235
  ])
236
236
  return { paymentList, paymentInfo }
237
237
  },
@@ -258,7 +258,7 @@ export default function (request) {
258
258
  ifscCode,
259
259
  bankCode: bank?.bankCode || '',
260
260
  cryptoCurrency: crypto?.symbol || '',
261
- cryptoNetwork: network?.label || '',
261
+ cryptoNetwork: network?.networkCode,
262
262
  cryptoAddress: cryptoAddress,
263
263
  walletCode: walletCode?.bankCode || '',
264
264
  branch: branch === 'BLANK' ? '' : branch, // 'BLANK'會置換成空值
@@ -1,3 +1,4 @@
1
+ // 棄用
1
2
  import { assign, createMachine } from 'xstate'
2
3
  import payment from '../api/payment.js'
3
4
 
@@ -1,3 +1,4 @@
1
+ // 棄用
1
2
  import { assign, createMachine, send } from 'xstate'
2
3
  import payment from '../api/payment.js'
3
4
 
@@ -1,3 +1,4 @@
1
+ // 棄用
1
2
  import { assign, createMachine } from 'xstate'
2
3
  import payment from '../../api/payment.js'
3
4
 
@@ -286,7 +286,7 @@ export default function (request, context) {
286
286
  method: selectedCrypto.value,
287
287
  amount: selectedAmount,
288
288
  cryptoCurrency: selectedCrypto.symbol,
289
- cryptoNetwork: selectedCrypto.network,
289
+ cryptoNetwork: selectedCrypto.networkCode,
290
290
  sourceAddress: selectedCrypto.address,
291
291
  promotionsNo: promotion?.promotionsNo,
292
292
  depositTime,
@@ -132,10 +132,11 @@ export default function (request, context) {
132
132
  const payments = paymentDetail.filter((item) => item.category === context.currentCategory)
133
133
  const cryptos = payments.map((payment) => ({
134
134
  ...payment,
135
- label: payment.cryptoOptional?.[0],
136
- network: payment.networkName?.[0],
135
+ label: `${payment?.currency} - ${payment.networks?.[0]?.networkDisplayName}`,
136
+ // network: payment.networkName?.[0], // 改由 networkCode 取代
137
137
  value: payment.method,
138
138
  icon: payment.channel,
139
+ networkCode: payment.networks?.[0]?.networkCode,
139
140
  }))
140
141
 
141
142
  return {
@@ -245,7 +246,7 @@ export default function (request, context) {
245
246
  method: selectedCrypto.method,
246
247
  amount: selectedAmount,
247
248
  cryptoCurrency: selectedCrypto.channel,
248
- cryptoNetwork: selectedCrypto.network,
249
+ cryptoNetwork: selectedCrypto.networkCode,
249
250
  sourceAddress: sourceAddress,
250
251
  promotionsNo: promotion?.promotionsNo,
251
252
  })
@@ -1,3 +1,4 @@
1
+ // 棄用
1
2
  import { assign, createMachine } from 'xstate'
2
3
  import toNumber from 'lodash/toNumber.js'
3
4
  import payment from '../../api/payment.js'
@@ -1,3 +1,4 @@
1
+ // 棄用
1
2
  import { assign, createMachine } from 'xstate'
2
3
  import payment from '../../api/payment.js'
3
4
  import common from '../../api/common.js'
@@ -1,3 +1,4 @@
1
+ // 棄用
1
2
  import { assign, createMachine } from 'xstate'
2
3
  import payment from '../../api/payment.js'
3
4
  import common from '../../api/common.js'
@@ -1,3 +1,4 @@
1
+ // 棄用
1
2
  import { assign, createMachine } from 'xstate'
2
3
  import findLastIndex from 'lodash/findLastIndex.js'
3
4
  import payment from '../../api/payment.js'