@jetthai/cuora 1.1.373-dev-13 → 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 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.373-dev-14](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-13...v1.1.373-dev-14) (2025-08-28)
6
+
5
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)
6
8
 
7
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.373-dev-13",
3
+ "version": "1.1.373-dev-14",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -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
173
+ const { currency } = context
174
174
  const firstBank = bankInfo.find((b) => b.bindingType === 'BANK' || b.bindingType === 'EWALLET')
175
175
 
176
176
  return {
177
177
  hasAnyAccount: bankInfo.length > 0,
178
178
  hasAnyBankAccount: bankInfo.some((b) => b.bindingType === 'BANK' || b.bindingType === 'EWALLET'),
179
179
  holderName: bankInfo[0]?.holderName,
180
- cnicCode: firstBank?.ifscCode || '',
180
+ ifscCode: currency === 'PKR' ? firstBank?.ifscCode : '',
181
181
  firstNameLocale: bankInfo[0]?.firstNameLocale || null,
182
182
  lastNameLocale: bankInfo[0]?.lastNameLocale || null,
183
183
  paymentList,