@jetthai/cuora 1.1.373-qa-4 → 1.1.374-dev

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,13 +2,9 @@
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-qa-4](https://github.com/jetthai/cuora-module/compare/v1.1.373-qa-3...v1.1.373-qa-4) (2025-08-27)
5
+ ### [1.1.374-dev](https://github.com/jetthai/cuora-module/compare/v1.1.374...v1.1.374-dev) (2025-08-29)
6
6
 
7
- ### [1.1.373-qa-3](https://github.com/jetthai/cuora-module/compare/v1.1.373-qa-2...v1.1.373-qa-3) (2025-08-26)
8
-
9
- ### [1.1.373-qa-2](https://github.com/jetthai/cuora-module/compare/v1.1.373-qa-1...v1.1.373-qa-2) (2025-08-25)
10
-
11
- ### [1.1.373-qa-1](https://github.com/jetthai/cuora-module/compare/v1.1.373...v1.1.373-qa-1) (2025-08-22)
7
+ ### [1.1.374](https://github.com/jetthai/cuora-module/compare/v1.1.373...v1.1.374) (2025-08-28)
12
8
 
13
9
  ### [1.1.373](https://github.com/jetthai/cuora-module/compare/v1.1.372...v1.1.373) (2025-08-13)
14
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.373-qa-4",
3
+ "version": "1.1.374-dev",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -10,6 +10,7 @@ export default function (request) {
10
10
  initial: 'fetching',
11
11
  context: {
12
12
  hasAnyAccount: false,
13
+ hasAnyBankAccount: false,
13
14
  paymentList: {
14
15
  bankList: [],
15
16
  cryptoList: [],
@@ -169,9 +170,14 @@ export default function (request) {
169
170
  setBanks: assign((context, event) => {
170
171
  const { paymentList = {}, paymentInfo = {} } = event.data
171
172
  const { bankInfo = [] } = paymentInfo
173
+ const { currency } = context
174
+ const firstBank = bankInfo.find((b) => b.bindingType === 'BANK' || b.bindingType === 'EWALLET')
175
+
172
176
  return {
173
177
  hasAnyAccount: bankInfo.length > 0,
178
+ hasAnyBankAccount: bankInfo.some((b) => b.bindingType === 'BANK' || b.bindingType === 'EWALLET'),
174
179
  holderName: bankInfo[0]?.holderName,
180
+ ifscCode: currency === 'PKR' ? firstBank?.ifscCode : '',
175
181
  firstNameLocale: bankInfo[0]?.firstNameLocale || null,
176
182
  lastNameLocale: bankInfo[0]?.lastNameLocale || null,
177
183
  paymentList,