@jetthai/cuora 1.1.171 → 1.1.173

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.173](https://github.com/jetthai/cuora-module/compare/v1.1.172...v1.1.173) (2023-09-07)
6
+
7
+ ### [1.1.172](https://github.com/jetthai/cuora-module/compare/v1.1.171...v1.1.172) (2023-09-07)
8
+
5
9
  ### [1.1.171](https://github.com/jetthai/cuora-module/compare/v1.1.170...v1.1.171) (2023-09-06)
6
10
 
7
11
  ### [1.1.170](https://github.com/jetthai/cuora-module/compare/v1.1.169...v1.1.170) (2023-09-05)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.171",
3
+ "version": "1.1.173",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -11,6 +11,7 @@ export default function (request) {
11
11
  bankList: [],
12
12
  bank: null,
13
13
  branch: null,
14
+ branchCode: null,
14
15
  accountNumber: null,
15
16
  holderName: null,
16
17
  },
@@ -43,6 +44,13 @@ export default function (request) {
43
44
  }
44
45
  }),
45
46
  },
47
+ SET_BRANCH_CODE: {
48
+ actions: assign((context, event) => {
49
+ return {
50
+ branchCode: event.data,
51
+ }
52
+ }),
53
+ },
46
54
  SET_ACCOUNT_NUMBER: {
47
55
  actions: assign((context, event) => {
48
56
  return {
@@ -102,11 +110,12 @@ export default function (request) {
102
110
  return { bankList, paymentInfo }
103
111
  },
104
112
  updatePaymentInfo: async (context, event) => {
105
- const { bank, branch, accountNumber, holderName } = context
113
+ const { bank, branch, branchCode, accountNumber, holderName } = context
106
114
  return await request.send(
107
115
  payment.updatePaymentInfo({
108
116
  bankCode: bank.bankCode,
109
117
  branch: branch === 'BLANK' ? '' : branch, // 'BLANK'會置換成空值
118
+ branchCode,
110
119
  bankAccount: accountNumber,
111
120
  holderName,
112
121
  })