@jetthai/cuora 1.1.119 → 1.1.120
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 +2 -0
- package/package.json +1 -1
- package/src/machine/deposit/manual_cash.js +13 -4
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.1.120](https://github.com/jetthai/cuora-module/compare/v1.1.119...v1.1.120) (2023-06-09)
|
|
6
|
+
|
|
5
7
|
### [1.1.119](https://github.com/jetthai/cuora-module/compare/v1.1.118...v1.1.119) (2023-06-06)
|
|
6
8
|
|
|
7
9
|
### [1.1.118](https://github.com/jetthai/cuora-module/compare/v1.1.117...v1.1.118) (2023-06-06)
|
package/package.json
CHANGED
|
@@ -134,18 +134,27 @@ export default function (request, context) {
|
|
|
134
134
|
const playerBanks = paymentInfo?.bankInfo || []
|
|
135
135
|
|
|
136
136
|
const houseBanks = currentPayment.banks.map((bank) => {
|
|
137
|
+
const foundBank = banks.find((item) => item.bankCode === bank.bankName)
|
|
137
138
|
bank.bankCode = bank.bankName // because api has no bankCode field
|
|
138
|
-
bank.
|
|
139
|
+
bank.displayText = foundBank?.shortName
|
|
140
|
+
bank.imageUrl = foundBank?.imageUrl
|
|
139
141
|
return bank
|
|
140
142
|
})
|
|
141
143
|
|
|
142
144
|
const formattedPlayerBanks = playerBanks.map((bank) => {
|
|
143
|
-
|
|
144
|
-
bank.
|
|
145
|
+
const foundBank = banks.find((item) => item.bankCode === bank.bankCode)
|
|
146
|
+
bank.displayText = `${foundBank?.shortName} ${bank.accountNumber.slice(-5)}`
|
|
147
|
+
bank.imageUrl = foundBank?.imageUrl
|
|
145
148
|
return bank
|
|
146
149
|
})
|
|
147
150
|
|
|
148
|
-
const userBanks = [
|
|
151
|
+
const userBanks = [
|
|
152
|
+
...formattedPlayerBanks,
|
|
153
|
+
...banks.map((bank) => ({
|
|
154
|
+
...bank,
|
|
155
|
+
displayText: bank.shortName,
|
|
156
|
+
})),
|
|
157
|
+
]
|
|
149
158
|
|
|
150
159
|
return {
|
|
151
160
|
currentPayment,
|