@jetthai/cuora 1.1.68 → 1.1.70
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 +4 -0
- package/dist/bundle.mjs +31 -20
- package/package.json +1 -1
- package/src/api/payment.js +1 -0
- package/src/machine/deposit/crypto_button.js +6 -4
- package/src/machine/deposit/float.js +6 -4
- package/src/machine/deposit/loadcard_vn.js +6 -4
- package/src/machine/deposit/qrcode_v2.js +6 -4
- package/src/machine/deposit/vpay.js +6 -4
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.70](https://github.com/jetthai/cuora-module/compare/v1.1.69...v1.1.70) (2023-04-07)
|
|
6
|
+
|
|
7
|
+
### [1.1.69](https://github.com/jetthai/cuora-module/compare/v1.1.68...v1.1.69) (2023-04-06)
|
|
8
|
+
|
|
5
9
|
### [1.1.68](https://github.com/jetthai/cuora-module/compare/v1.1.67...v1.1.68) (2023-04-06)
|
|
6
10
|
|
|
7
11
|
### [1.1.67](https://github.com/jetthai/cuora-module/compare/v1.1.65-doubleWallet-2...v1.1.67) (2023-04-06)
|
package/dist/bundle.mjs
CHANGED
|
@@ -3869,6 +3869,7 @@ var payment = {
|
|
|
3869
3869
|
giveUp: () => ({ url: 'payment/v2/bankWallet/promotion/giveUp', method: 'post' }),
|
|
3870
3870
|
restore: ({ amount }) => ({ url: 'payment/v2/bankWallet/restore', method: 'post', params: { amount } }),
|
|
3871
3871
|
restore: () => ({ url: 'payment/v2/bankWallet/restore', method: 'post', params: { amount } }),
|
|
3872
|
+
getBonusPreview: ({ method, promotionsNo }) => ({ url: `payment/v2/${method}/bonus/preview`, method: 'post', params: { promotionsNo } }),
|
|
3872
3873
|
};
|
|
3873
3874
|
|
|
3874
3875
|
var user = {
|
|
@@ -23469,10 +23470,12 @@ function loadcard_vn (request) {
|
|
|
23469
23470
|
},
|
|
23470
23471
|
fetchBonusPreview: async (context, event) => {
|
|
23471
23472
|
const { currentMethod, promotion } = context;
|
|
23472
|
-
return await request.send(
|
|
23473
|
-
|
|
23474
|
-
|
|
23475
|
-
|
|
23473
|
+
return await request.send(
|
|
23474
|
+
payment.getBonusPreview({
|
|
23475
|
+
method: currentMethod,
|
|
23476
|
+
promotionsNo: promotion?.activityNo,
|
|
23477
|
+
})
|
|
23478
|
+
)
|
|
23476
23479
|
},
|
|
23477
23480
|
fetchCalculation: async (context, event) => {
|
|
23478
23481
|
const { currentMethod, selectedAmount, promotion } = context;
|
|
@@ -23910,10 +23913,12 @@ function qrcode_v2 (request) {
|
|
|
23910
23913
|
},
|
|
23911
23914
|
fetchBonusPreview: async (context, event) => {
|
|
23912
23915
|
const { currentMethod, promotion } = context;
|
|
23913
|
-
return await request.send(
|
|
23914
|
-
|
|
23915
|
-
|
|
23916
|
-
|
|
23916
|
+
return await request.send(
|
|
23917
|
+
payment.getBonusPreview({
|
|
23918
|
+
method: currentMethod,
|
|
23919
|
+
promotionsNo: promotion?.activityNo,
|
|
23920
|
+
})
|
|
23921
|
+
)
|
|
23917
23922
|
},
|
|
23918
23923
|
fetchCalculation: async (context, event) => {
|
|
23919
23924
|
const { currentMethod, selectedAmount, promotion } = context;
|
|
@@ -25212,10 +25217,12 @@ function crypto_button (request) {
|
|
|
25212
25217
|
},
|
|
25213
25218
|
fetchBonusPreview: async (context, event) => {
|
|
25214
25219
|
const { selectedCrypto, promotion } = context;
|
|
25215
|
-
return await request.send(
|
|
25216
|
-
|
|
25217
|
-
|
|
25218
|
-
|
|
25220
|
+
return await request.send(
|
|
25221
|
+
payment.getBonusPreview({
|
|
25222
|
+
method: selectedCrypto.method,
|
|
25223
|
+
promotionsNo: promotion?.activityNo,
|
|
25224
|
+
})
|
|
25225
|
+
)
|
|
25219
25226
|
},
|
|
25220
25227
|
fetchCalculation: async (context, event) => {
|
|
25221
25228
|
const { selectedCrypto, selectedAmount, promotion } = context;
|
|
@@ -25974,10 +25981,12 @@ function float (request) {
|
|
|
25974
25981
|
},
|
|
25975
25982
|
fetchBonusPreview: async (context, event) => {
|
|
25976
25983
|
const { method, promotion } = context;
|
|
25977
|
-
return await request.send(
|
|
25978
|
-
|
|
25979
|
-
|
|
25980
|
-
|
|
25984
|
+
return await request.send(
|
|
25985
|
+
payment.getBonusPreview({
|
|
25986
|
+
method,
|
|
25987
|
+
promotionsNo: promotion?.activityNo,
|
|
25988
|
+
})
|
|
25989
|
+
)
|
|
25981
25990
|
},
|
|
25982
25991
|
submitDeposit: async (context, event) => {
|
|
25983
25992
|
const { method, amount, promotion } = context;
|
|
@@ -26326,10 +26335,12 @@ function vpay (request) {
|
|
|
26326
26335
|
},
|
|
26327
26336
|
fetchBonusPreview: async (context, event) => {
|
|
26328
26337
|
const { method, promotion } = context;
|
|
26329
|
-
return await request.send(
|
|
26330
|
-
|
|
26331
|
-
|
|
26332
|
-
|
|
26338
|
+
return await request.send(
|
|
26339
|
+
payment.getBonusPreview({
|
|
26340
|
+
method,
|
|
26341
|
+
promotionsNo: promotion?.activityNo,
|
|
26342
|
+
})
|
|
26343
|
+
)
|
|
26333
26344
|
},
|
|
26334
26345
|
submitDeposit: async (context, event) => {
|
|
26335
26346
|
const { method, amount, promotion } = context;
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -138,4 +138,5 @@ export default {
|
|
|
138
138
|
giveUp: () => ({ url: 'payment/v2/bankWallet/promotion/giveUp', method: 'post' }),
|
|
139
139
|
restore: ({ amount }) => ({ url: 'payment/v2/bankWallet/restore', method: 'post', params: { amount } }),
|
|
140
140
|
restore: () => ({ url: 'payment/v2/bankWallet/restore', method: 'post', params: { amount } }),
|
|
141
|
+
getBonusPreview: ({ method, promotionsNo }) => ({ url: `payment/v2/${method}/bonus/preview`, method: 'post', params: { promotionsNo } }),
|
|
141
142
|
}
|
|
@@ -391,10 +391,12 @@ export default function (request) {
|
|
|
391
391
|
},
|
|
392
392
|
fetchBonusPreview: async (context, event) => {
|
|
393
393
|
const { selectedCrypto, promotion } = context
|
|
394
|
-
return await request.send(
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
394
|
+
return await request.send(
|
|
395
|
+
payment.getBonusPreview({
|
|
396
|
+
method: selectedCrypto.method,
|
|
397
|
+
promotionsNo: promotion?.activityNo,
|
|
398
|
+
})
|
|
399
|
+
)
|
|
398
400
|
},
|
|
399
401
|
fetchCalculation: async (context, event) => {
|
|
400
402
|
const { selectedCrypto, selectedAmount, promotion } = context
|
|
@@ -331,10 +331,12 @@ export default function (request) {
|
|
|
331
331
|
},
|
|
332
332
|
fetchBonusPreview: async (context, event) => {
|
|
333
333
|
const { method, promotion } = context
|
|
334
|
-
return await request.send(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
return await request.send(
|
|
335
|
+
payment.getBonusPreview({
|
|
336
|
+
method,
|
|
337
|
+
promotionsNo: promotion?.activityNo,
|
|
338
|
+
})
|
|
339
|
+
)
|
|
338
340
|
},
|
|
339
341
|
submitDeposit: async (context, event) => {
|
|
340
342
|
const { method, amount, promotion } = context
|
|
@@ -331,10 +331,12 @@ export default function (request) {
|
|
|
331
331
|
},
|
|
332
332
|
fetchBonusPreview: async (context, event) => {
|
|
333
333
|
const { currentMethod, promotion } = context
|
|
334
|
-
return await request.send(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
return await request.send(
|
|
335
|
+
payment.getBonusPreview({
|
|
336
|
+
method: currentMethod,
|
|
337
|
+
promotionsNo: promotion?.activityNo,
|
|
338
|
+
})
|
|
339
|
+
)
|
|
338
340
|
},
|
|
339
341
|
fetchCalculation: async (context, event) => {
|
|
340
342
|
const { currentMethod, selectedAmount, promotion } = context
|
|
@@ -410,10 +410,12 @@ export default function (request) {
|
|
|
410
410
|
},
|
|
411
411
|
fetchBonusPreview: async (context, event) => {
|
|
412
412
|
const { currentMethod, promotion } = context
|
|
413
|
-
return await request.send(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
413
|
+
return await request.send(
|
|
414
|
+
payment.getBonusPreview({
|
|
415
|
+
method: currentMethod,
|
|
416
|
+
promotionsNo: promotion?.activityNo,
|
|
417
|
+
})
|
|
418
|
+
)
|
|
417
419
|
},
|
|
418
420
|
fetchCalculation: async (context, event) => {
|
|
419
421
|
const { currentMethod, selectedAmount, promotion } = context
|
|
@@ -324,10 +324,12 @@ export default function (request) {
|
|
|
324
324
|
},
|
|
325
325
|
fetchBonusPreview: async (context, event) => {
|
|
326
326
|
const { method, promotion } = context
|
|
327
|
-
return await request.send(
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
327
|
+
return await request.send(
|
|
328
|
+
payment.getBonusPreview({
|
|
329
|
+
method,
|
|
330
|
+
promotionsNo: promotion?.activityNo,
|
|
331
|
+
})
|
|
332
|
+
)
|
|
331
333
|
},
|
|
332
334
|
submitDeposit: async (context, event) => {
|
|
333
335
|
const { method, amount, promotion } = context
|