@jetthai/cuora 1.1.373-dev-12 → 1.1.373-dev-14
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 +4 -0
- package/package.json +1 -1
- package/src/machine/bank_binding.js +4 -4
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.373-dev-14](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-13...v1.1.373-dev-14) (2025-08-28)
|
|
6
|
+
|
|
7
|
+
### [1.1.373-dev-13](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-12...v1.1.373-dev-13) (2025-08-28)
|
|
8
|
+
|
|
5
9
|
### [1.1.373-dev-12](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-11...v1.1.373-dev-12) (2025-08-27)
|
|
6
10
|
|
|
7
11
|
### [1.1.373-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-10...v1.1.373-dev-11) (2025-08-27)
|
package/package.json
CHANGED
|
@@ -28,7 +28,6 @@ export default function (request) {
|
|
|
28
28
|
branchCode: null,
|
|
29
29
|
accountNumber: null,
|
|
30
30
|
holderName: null,
|
|
31
|
-
cnicCode: '',
|
|
32
31
|
lastNameLocale: null,
|
|
33
32
|
firstNameLocale: null,
|
|
34
33
|
pixType: null,
|
|
@@ -171,13 +170,14 @@ export default function (request) {
|
|
|
171
170
|
setBanks: assign((context, event) => {
|
|
172
171
|
const { paymentList = {}, paymentInfo = {} } = event.data
|
|
173
172
|
const { bankInfo = [] } = paymentInfo
|
|
174
|
-
const
|
|
173
|
+
const { currency } = context
|
|
174
|
+
const firstBank = bankInfo.find((b) => b.bindingType === 'BANK' || b.bindingType === 'EWALLET')
|
|
175
175
|
|
|
176
176
|
return {
|
|
177
177
|
hasAnyAccount: bankInfo.length > 0,
|
|
178
|
-
hasAnyBankAccount: bankInfo.some((b) => b.bindingType === 'BANK'),
|
|
178
|
+
hasAnyBankAccount: bankInfo.some((b) => b.bindingType === 'BANK' || b.bindingType === 'EWALLET'),
|
|
179
179
|
holderName: bankInfo[0]?.holderName,
|
|
180
|
-
|
|
180
|
+
ifscCode: currency === 'PKR' ? firstBank?.ifscCode : '',
|
|
181
181
|
firstNameLocale: bankInfo[0]?.firstNameLocale || null,
|
|
182
182
|
lastNameLocale: bankInfo[0]?.lastNameLocale || null,
|
|
183
183
|
paymentList,
|