@jetthai/cuora 1.1.336-dev-7 → 1.1.336-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 +4 -0
- package/package.json +1 -1
- package/src/api/payment.js +2 -2
- package/src/machine/common.js +4 -0
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.336-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.336-dev-8...v1.1.336-dev-9) (2025-02-03)
|
|
6
|
+
|
|
7
|
+
### [1.1.336-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.336-dev-7...v1.1.336-dev-8) (2025-02-03)
|
|
8
|
+
|
|
5
9
|
### [1.1.336-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.336-dev-6...v1.1.336-dev-7) (2025-01-24)
|
|
6
10
|
|
|
7
11
|
### [1.1.336-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.336...v1.1.336-dev-6) (2025-01-24)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -222,10 +222,10 @@ export default {
|
|
|
222
222
|
params: { transferType: 'WITHDRAW', amount },
|
|
223
223
|
}),
|
|
224
224
|
getPromotionsList: () => ({ url: `payment/v2/bankWallet/promotions`, method: 'get' }),
|
|
225
|
-
getWithdrawRulePreview: ({ applyType, applyNo, amount }) => ({
|
|
225
|
+
getWithdrawRulePreview: ({ applyType, applyNo, amount, isFreeGame }) => ({
|
|
226
226
|
url: `payment/v2/bankWallet/promotion/preview`,
|
|
227
227
|
method: 'post',
|
|
228
|
-
params: { applyType, applyNo, amount },
|
|
228
|
+
params: { applyType, applyNo, amount, isFreeGame },
|
|
229
229
|
}),
|
|
230
230
|
applyPromotions: ({ promotionsNo, amount }) => ({
|
|
231
231
|
url: `payment/v2/bankWallet/promotion/apply`,
|
package/src/machine/common.js
CHANGED
|
@@ -128,6 +128,7 @@ export default function (request) {
|
|
|
128
128
|
idle: {
|
|
129
129
|
on: {
|
|
130
130
|
FETCH_ANNOUNCEMENTS: {
|
|
131
|
+
actions: 'clearAnnouncements',
|
|
131
132
|
target: 'updating',
|
|
132
133
|
},
|
|
133
134
|
},
|
|
@@ -276,6 +277,9 @@ export default function (request) {
|
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
279
|
}),
|
|
280
|
+
clearAnnouncements: assign((context, event) => {
|
|
281
|
+
return { announcementList: null }
|
|
282
|
+
}),
|
|
279
283
|
setAnnouncements: assign((context, event) => {
|
|
280
284
|
const { data } = event.data
|
|
281
285
|
return { announcementList: { data } }
|