@jetthai/cuora 1.1.210 → 1.1.212

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.212](https://github.com/jetthai/cuora-module/compare/v1.1.211...v1.1.212) (2023-12-18)
6
+
7
+ ### [1.1.211](https://github.com/jetthai/cuora-module/compare/v1.1.210...v1.1.211) (2023-12-13)
8
+
5
9
  ### [1.1.210](https://github.com/jetthai/cuora-module/compare/v1.1.209...v1.1.210) (2023-12-13)
6
10
 
7
11
  ### [1.1.209](https://github.com/jetthai/cuora-module/compare/v1.1.208...v1.1.209) (2023-12-11)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.210",
3
+ "version": "1.1.212",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -200,35 +200,16 @@ export default function (request) {
200
200
  },
201
201
  services: {
202
202
  fetchCollectTime: async (context, event) => {
203
- return {
204
- lastCollectTime: 1702005993,
205
- lastEstimateTime: 1701955993,
206
- diableCollectButton: false,
207
- }
208
- // const { data } = await request.send(api.getInstantRebateCollectTime())
209
- // return data
203
+ const { data } = await request.send(api.getInstantRebateCollectTime())
204
+ return data
210
205
  },
211
206
  estimate: async (context, event) => {
212
- // return {
213
- // "collectAvailable": false,
214
- // "lastCollectTime": 1702006051,
215
- // "settlementTime": 1702006051,
216
- // "validTurnover": "28,943.29",
217
- // "rebateAmount": "9040",
218
- // "singleMinimumAmountReceive": 1000,
219
- // "remainingCount": 0,
220
- // "dailyRedemptionLimit": 3
221
- // }
222
207
  const { data } = await request.send(api.instantRebateEstimate())
223
208
  return data
224
209
  },
225
210
  claimRebateAmount: async (context, event) => {
226
- return {
227
- result: 'success',
228
- collectAmount: '28,943.29',
229
- }
230
- // const { data } = await request.send(api.instantRebateCollect())
231
- // return data
211
+ const { data } = await request.send(api.instantRebateCollect())
212
+ return data
232
213
  },
233
214
  },
234
215
  }
@@ -108,7 +108,7 @@ export default function (request) {
108
108
 
109
109
  return {
110
110
  rebateType,
111
- conditions: copiedData,
111
+ conditions,
112
112
  currentReachLevel,
113
113
  nextReachLevel,
114
114
  lastPeriod,