@jetthai/cuora 1.0.184-1 → 1.0.184-3

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.0.184-3](https://github.com/jetthai/cuora-module/compare/v1.0.184-2...v1.0.184-3) (2022-10-19)
6
+
7
+ ### [1.0.184-2](https://github.com/jetthai/cuora-module/compare/v1.0.184-1...v1.0.184-2) (2022-10-18)
8
+
5
9
  ### [1.0.184-1](https://github.com/jetthai/cuora-module/compare/v1.0.184...v1.0.184-1) (2022-10-07)
6
10
 
7
11
  ### [1.0.184](https://github.com/jetthai/cuora-module/compare/v1.0.183...v1.0.184) (2022-10-03)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.184-1",
3
+ "version": "1.0.184-3",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -42,9 +42,25 @@ export default function (request) {
42
42
  actions: 'setCard',
43
43
  },
44
44
  SELECT_AMOUNT: {
45
- target: 'calculating',
45
+ target: 'debouncing',
46
+ actions: 'setAmount',
47
+ },
48
+ },
49
+ },
50
+ debouncing: {
51
+ on: {
52
+ SELECT_AMOUNT: {
53
+ target: 'debouncing',
46
54
  actions: 'setAmount',
47
55
  },
56
+ BACK: {
57
+ target: 'loaded',
58
+ },
59
+ },
60
+ after: {
61
+ 1000: {
62
+ target: 'calculating',
63
+ },
48
64
  },
49
65
  },
50
66
  fail: {},
@@ -52,10 +68,11 @@ export default function (request) {
52
68
  entry: 'clearCalculation',
53
69
  on: {
54
70
  SELECT_AMOUNT: {
71
+ target: 'debouncing',
55
72
  actions: 'setAmount',
56
73
  },
57
74
  CALCULATE: {
58
- target: 'calculating',
75
+ target: 'debouncing',
59
76
  },
60
77
  BACK: {
61
78
  target: 'loaded',
@@ -77,7 +94,7 @@ export default function (request) {
77
94
  calculated: {
78
95
  on: {
79
96
  SELECT_AMOUNT: {
80
- target: 'calculating',
97
+ target: 'debouncing',
81
98
  actions: 'setAmount',
82
99
  },
83
100
  CONFIRM: {
@@ -87,7 +104,7 @@ export default function (request) {
87
104
  target: 'loaded',
88
105
  },
89
106
  CLEAR_CALCULATION: {
90
- target: 'calculating',
107
+ target: 'debouncing',
91
108
  actions: 'clearCalculation',
92
109
  },
93
110
  },
@@ -207,7 +224,7 @@ export default function (request) {
207
224
  payment.submitDepositTransactionLoadcard({
208
225
  method: currentMethod,
209
226
  amount: selectedAmount,
210
- card_type: selectedCard.code,
227
+ card_type: selectedCard.channel_id,
211
228
  card_code: cardNumber,
212
229
  card_seri: serialNumber,
213
230
  })