@zeniai/client-epic-state 4.10.17 → 4.10.18
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.
|
@@ -218,6 +218,13 @@ const toBillDetailLocalData = (state, showVendorGptRecommendationText, billPaylo
|
|
|
218
218
|
? (0, editBillViewSelector_1.getDueDate)('draft', (0, zeniDayJS_1.date)(billPayload.due_date), (0, zeniDayJS_1.date)(billPayload.transaction_date), bookCloseDate)
|
|
219
219
|
: (0, zeniDayJS_1.date)(billPayload.due_date)
|
|
220
220
|
: undefined;
|
|
221
|
+
const paymentType = paymentMethodCode != null && paymentMethodSubCode != null
|
|
222
|
+
? (0, billPayConfigSelector_1.getBillPayConfigByKey)(state.billPayConfigState, (0, billPayConfigState_1.getBillPayConfigMethodKey)((0, billPayConfigState_1.toBillPaymentMethodCodeType)(paymentMethodCode), (0, billPayConfigState_1.toBillPaymentSubConfigCodeKeyType)((0, billPayConfigPayload_1.getBillPaymentSubConfigCodeKey)((0, billPayConfigState_1.toBillPaymentSubConfigCodeType)(paymentMethodSubCode))), fromAccountType, internationalCode != null
|
|
223
|
+
? (0, billPayConfigPayload_1.getInternationalWireMethodCodeKey)(internationalCode)
|
|
224
|
+
: undefined, internationalSubCode != null
|
|
225
|
+
? (0, billPayConfigPayload_1.getInternationalSubConfigCodeKey)(internationalSubCode)
|
|
226
|
+
: undefined))
|
|
227
|
+
: undefined;
|
|
221
228
|
return {
|
|
222
229
|
recommendedVendorId,
|
|
223
230
|
showVendorGptRecommendationText,
|
|
@@ -235,14 +242,8 @@ const toBillDetailLocalData = (state, showVendorGptRecommendationText, billPaylo
|
|
|
235
242
|
},
|
|
236
243
|
updatesByLineId: linesById,
|
|
237
244
|
paymentDetailsSection: {
|
|
238
|
-
paymentTo:
|
|
239
|
-
paymentType:
|
|
240
|
-
? (0, billPayConfigSelector_1.getBillPayConfigByKey)(state.billPayConfigState, (0, billPayConfigState_1.getBillPayConfigMethodKey)((0, billPayConfigState_1.toBillPaymentMethodCodeType)(paymentMethodCode), (0, billPayConfigState_1.toBillPaymentSubConfigCodeKeyType)((0, billPayConfigPayload_1.getBillPaymentSubConfigCodeKey)((0, billPayConfigState_1.toBillPaymentSubConfigCodeType)(paymentMethodSubCode))), fromAccountType, internationalCode != null
|
|
241
|
-
? (0, billPayConfigPayload_1.getInternationalWireMethodCodeKey)(internationalCode)
|
|
242
|
-
: undefined, internationalSubCode != null
|
|
243
|
-
? (0, billPayConfigPayload_1.getInternationalSubConfigCodeKey)(internationalSubCode)
|
|
244
|
-
: undefined))
|
|
245
|
-
: undefined,
|
|
245
|
+
paymentTo: undefined,
|
|
246
|
+
paymentType: paymentType,
|
|
246
247
|
paymentDate: ((_o = billPayload.bill_pay_info) === null || _o === void 0 ? void 0 : _o.payment_date) != null
|
|
247
248
|
? (0, zeniDayJS_1.date)((_p = billPayload.bill_pay_info) === null || _p === void 0 ? void 0 : _p.payment_date)
|
|
248
249
|
: (0, zeniDayJS_1.date)((0, workingDayHelper_1.getNextNthWorkingDay)((0, zeniDayJS_1.dateNow)().toDate(), [0, 6], isPayNowEnabled ? 0 : 1).toISOString()),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.18",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|