@jetthai/cuora 1.1.212 → 1.1.219

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,20 @@
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.219](https://github.com/jetthai/cuora-module/compare/v1.1.218...v1.1.219) (2024-01-16)
6
+
7
+ ### [1.1.218](https://github.com/jetthai/cuora-module/compare/v1.1.217...v1.1.218) (2024-01-16)
8
+
9
+ ### [1.1.217](https://github.com/jetthai/cuora-module/compare/v1.1.216...v1.1.217) (2024-01-16)
10
+
11
+ ### [1.1.216](https://github.com/jetthai/cuora-module/compare/v1.1.215...v1.1.216) (2024-01-15)
12
+
13
+ ### [1.1.215](https://github.com/jetthai/cuora-module/compare/v1.1.214...v1.1.215) (2024-01-15)
14
+
15
+ ### [1.1.214](https://github.com/jetthai/cuora-module/compare/v1.1.213...v1.1.214) (2024-01-15)
16
+
17
+ ### [1.1.213](https://github.com/jetthai/cuora-module/compare/v1.1.212...v1.1.213) (2023-12-20)
18
+
5
19
  ### [1.1.212](https://github.com/jetthai/cuora-module/compare/v1.1.211...v1.1.212) (2023-12-18)
6
20
 
7
21
  ### [1.1.211](https://github.com/jetthai/cuora-module/compare/v1.1.210...v1.1.211) (2023-12-13)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.212",
3
+ "version": "1.1.219",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -22,6 +22,7 @@ export default {
22
22
  lastNameEn,
23
23
  bonus,
24
24
  paymentProvider,
25
+ pixType,
25
26
  }) => ({
26
27
  url: 'payment/v2/updatePaymentInfo',
27
28
  method: 'post',
@@ -37,6 +38,7 @@ export default {
37
38
  lastNameEn,
38
39
  bonus,
39
40
  paymentProvider,
41
+ pixType,
40
42
  },
41
43
  }),
42
44
  getBankList: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/getBankList`, method: 'get' }),
@@ -16,6 +16,7 @@ export default function (request) {
16
16
  branchCode: null,
17
17
  accountNumber: null,
18
18
  holderName: null,
19
+ pixType: null,
19
20
  },
20
21
  states: {
21
22
  fetching: {
@@ -71,6 +72,13 @@ export default function (request) {
71
72
  target: 'binding',
72
73
  cond: 'isBindable',
73
74
  },
75
+ SET_PIX_TYPE: {
76
+ actions: assign((context, event) => {
77
+ return {
78
+ pixType: event.data,
79
+ }
80
+ }),
81
+ },
74
82
  },
75
83
  },
76
84
  binding: {
@@ -115,7 +123,7 @@ export default function (request) {
115
123
  return { bankList, paymentInfo }
116
124
  },
117
125
  updatePaymentInfo: async (context, event) => {
118
- const { bank, branch, branchCode, accountNumber, holderName } = context
126
+ const { bank, branch, branchCode, accountNumber, holderName, pixType } = context
119
127
  return await request.send(
120
128
  payment.updatePaymentInfo({
121
129
  bankCode: bank.bankCode,
@@ -123,6 +131,7 @@ export default function (request) {
123
131
  branchCode,
124
132
  bankAccount: accountNumber,
125
133
  holderName,
134
+ pixType,
126
135
  })
127
136
  )
128
137
  },
@@ -1,2 +1,20 @@
1
1
  export const MY_FAVORITE = 'MyFavorite'
2
2
  export const GAME_SEARCH = 'GameSearch'
3
+ export const GAME_TYPE_LIST = [
4
+ { label: 'SLOT', gameTypeMappingId: 1 },
5
+ { label: 'FISH', gameTypeMappingId: 2 },
6
+ { label: 'ARCADE', gameTypeMappingId: 3 },
7
+ { label: 'LOTTERY', gameTypeMappingId: 4 },
8
+ { label: 'CARD', gameTypeMappingId: 5 },
9
+ { label: 'TABLE', gameTypeMappingId: 6 },
10
+ { label: 'BINGO', gameTypeMappingId: 7 },
11
+ { label: 'LIVE', gameTypeMappingId: 8 },
12
+ { label: 'SCRATCHCARDS', gameTypeMappingId: 9 },
13
+ { label: 'EGAME', gameTypeMappingId: 10 },
14
+ { label: 'BONUS', gameTypeMappingId: 11 },
15
+ { label: 'BALL', gameTypeMappingId: 12 },
16
+ { label: 'STOCK', gameTypeMappingId: 13 },
17
+ { label: 'GRAPH', gameTypeMappingId: 14 },
18
+ { label: 'TURBO', gameTypeMappingId: 15 },
19
+ { label: 'SPORT', gameTypeMappingId: 16 },
20
+ ]