@jetthai/cuora 1.0.136 → 1.0.137

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,8 @@
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.0.137](https://github.com/jetthai/cuora-module/compare/v1.0.136...v1.0.137) (2022-06-20)
6
+
5
7
  ### [1.0.136](https://github.com/jetthai/cuora-module/compare/v1.0.135...v1.0.136) (2022-06-20)
6
8
 
7
9
  ### [1.0.135](https://github.com/jetthai/cuora-module/compare/v1.0.134...v1.0.135) (2022-06-16)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.136",
3
+ "version": "1.0.137",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -2,6 +2,8 @@ export default {
2
2
  // getPaymentHistory: () => ({ url: 'payment/history', method: 'post' }),
3
3
  getPaymentHistory: (returnDays) => ({ url: 'payment/v2/history', method: 'post', params: { returnDays } }),
4
4
  getSpotMarket: () => ({ url: 'payment/spotmarket', method: 'get' }),
5
+ getTransactionHistory: (payload) => ({ url: 'payment/v2/transactionHistory', method: 'post', params: { ...payload } }),
6
+ getTransactionHistoryOptions: () => ({ url: 'payment/v2/category/options', method: 'get' }),
5
7
  // getPaymentInfo: () => ({ url: `payment/paymentInfo`, method: 'get' }),
6
8
  getPaymentInfo: () => ({ url: `payment/v2/paymentInfo`, method: 'get' }),
7
9
  updatePaymentInfo: ({ bankCode, branch, holderName, bankAccount, firstNameTh, lastNameTh, firstNameEn, lastNameEn, bonus, paymentProvider }) => ({
@@ -231,12 +231,16 @@ export default function (request) {
231
231
  },
232
232
  fetchGames: async (context, event) => {
233
233
  const { tagId, tagIndex, keyword, click, clickDefault } = context
234
- const { traceId, result } = await request.send(game.getGameSearchList({ id: tagId, index: tagIndex, q: keyword, click, clickDefault }))
234
+ const { traceId, result } = await request.send(
235
+ game.getGameSearchList({ id: tagId, index: tagIndex, q: keyword, click, clickDefault })
236
+ )
235
237
  return { traceId, result }
236
238
  },
237
239
  sendTrace: async (context, event) => {
238
240
  const { traceId, tagId, tagIndex, gameCode, gameCodeIndex, keyword: query, click, clickDefault } = context
239
- return await request.send(game.setGameSearchTrace({ traceId, tagId, tagIndex, gameCode, gameCodeIndex, query, click, clickDefault }))
241
+ return await request.send(
242
+ game.setGameSearchTrace({ traceId, tagId, tagIndex, gameCode, gameCodeIndex, query, click, clickDefault })
243
+ )
240
244
  },
241
245
  },
242
246
  }