@jetthai/cuora 1.1.253 → 1.1.255
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/package.json +1 -1
- package/src/api/payment.js +2 -1
- package/src/machine/auth.js +13 -1
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.255](https://github.com/jetthai/cuora-module/compare/v1.1.254...v1.1.255) (2024-05-03)
|
|
6
|
+
|
|
7
|
+
### [1.1.254](https://github.com/jetthai/cuora-module/compare/v1.1.253...v1.1.254) (2024-05-03)
|
|
8
|
+
|
|
5
9
|
### [1.1.253](https://github.com/jetthai/cuora-module/compare/v1.1.252...v1.1.253) (2024-05-02)
|
|
6
10
|
|
|
7
11
|
### [1.1.252](https://github.com/jetthai/cuora-module/compare/v1.1.251...v1.1.252) (2024-04-17)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
method: 'post',
|
|
92
92
|
params: { transferType: 'DEPOSIT', amount, cryptoCurrency, cryptoNetwork, sourceAddress, promotionsNo },
|
|
93
93
|
}),
|
|
94
|
-
submitDepositTransactionCryptoBank: ({ method, amount, cryptoCurrency, cryptoNetwork, sourceAddress, promotionsNo, depositTime }) => ({
|
|
94
|
+
submitDepositTransactionCryptoBank: ({ method, amount, cryptoCurrency, cryptoNetwork, sourceAddress, promotionsNo, depositTime, receipt }) => ({
|
|
95
95
|
url: `payment/v2/${method}/transaction`,
|
|
96
96
|
method: 'post',
|
|
97
97
|
params: {
|
|
@@ -102,6 +102,7 @@ export default {
|
|
|
102
102
|
sourceAddress,
|
|
103
103
|
promotionsNo,
|
|
104
104
|
depositTime,
|
|
105
|
+
receipt,
|
|
105
106
|
},
|
|
106
107
|
}),
|
|
107
108
|
submitDepositTransactionLoadcard: ({ method, amount, card_type, card_code, card_seri, promotionsNo }) => ({
|
package/src/machine/auth.js
CHANGED
|
@@ -55,7 +55,7 @@ export default function (request) {
|
|
|
55
55
|
},
|
|
56
56
|
idle: {
|
|
57
57
|
entry: 'fetchToken',
|
|
58
|
-
always: [{ target: '
|
|
58
|
+
always: [{ target: 'tokenAuthenticated', cond: 'hasToken' }],
|
|
59
59
|
},
|
|
60
60
|
authentication: {
|
|
61
61
|
invoke: {
|
|
@@ -108,6 +108,18 @@ export default function (request) {
|
|
|
108
108
|
},
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
|
+
tokenAuthenticated: {
|
|
112
|
+
invoke: {
|
|
113
|
+
src: 'fetchUserInfo',
|
|
114
|
+
onDone: {
|
|
115
|
+
target: 'inline',
|
|
116
|
+
actions: ['setUserInfo', 'extendToken'],
|
|
117
|
+
},
|
|
118
|
+
onError: {
|
|
119
|
+
target: 'leaving',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
111
123
|
inline: {
|
|
112
124
|
initial: 'pending',
|
|
113
125
|
states: {
|