@mseva/digit-ui-module-common 1.0.9 → 1.0.11
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/dist/index.js +148 -195
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -19,6 +19,18 @@ function _extends() {
|
|
|
19
19
|
return n;
|
|
20
20
|
}, _extends.apply(null, arguments);
|
|
21
21
|
}
|
|
22
|
+
function _objectDestructuringEmpty(t) {
|
|
23
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
24
|
+
}
|
|
25
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
26
|
+
if (null == r) return {};
|
|
27
|
+
var t = {};
|
|
28
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
29
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
30
|
+
t[n] = r[n];
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
22
34
|
|
|
23
35
|
const stringReplaceAll = function (str, searcher, replaceWith) {
|
|
24
36
|
if (str === void 0) {
|
|
@@ -37,6 +49,7 @@ const stringReplaceAll = function (str, searcher, replaceWith) {
|
|
|
37
49
|
return str;
|
|
38
50
|
};
|
|
39
51
|
|
|
52
|
+
const _excluded = ["state"];
|
|
40
53
|
const SelectPaymentType = props => {
|
|
41
54
|
var _Digit$UserService$ge, _Digit$UserService$ge2, _data$Bill, _data$Bill$, _bill$billDetails, _bill$billDetails$sor, _bill$billDetails2, _bill$billDetails2$so;
|
|
42
55
|
const optionFirst = {
|
|
@@ -56,10 +69,11 @@ const SelectPaymentType = props => {
|
|
|
56
69
|
t
|
|
57
70
|
} = reactI18next.useTranslation();
|
|
58
71
|
const history = reactRouterDom.useHistory();
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
72
|
+
const _useLocation = reactRouterDom.useLocation(),
|
|
73
|
+
{
|
|
74
|
+
state
|
|
75
|
+
} = _useLocation,
|
|
76
|
+
location = _objectWithoutPropertiesLoose(_useLocation, _excluded);
|
|
63
77
|
const {
|
|
64
78
|
consumerCode,
|
|
65
79
|
businessService,
|
|
@@ -147,7 +161,7 @@ const SelectPaymentType = props => {
|
|
|
147
161
|
var _isCCFEnabled$checkBo;
|
|
148
162
|
return /*#__PURE__*/React__default.createElement("span", null, isCCFEnabled === null || isCCFEnabled === void 0 ? void 0 : (_isCCFEnabled$checkBo = isCCFEnabled.checkBoxLabels) === null || _isCCFEnabled$checkBo === void 0 ? void 0 : _isCCFEnabled$checkBo.map((data, index) => {
|
|
149
163
|
var _isCCFEnabled$checkBo2;
|
|
150
|
-
return /*#__PURE__*/React__default.createElement("span", null, (data === null || data === void 0 ? void 0 : data.linkPrefix) && /*#__PURE__*/React__default.createElement("span", null, t(
|
|
164
|
+
return /*#__PURE__*/React__default.createElement("span", null, (data === null || data === void 0 ? void 0 : data.linkPrefix) && /*#__PURE__*/React__default.createElement("span", null, t((data === null || data === void 0 ? void 0 : data.linkPrefix) + "_")), (data === null || data === void 0 ? void 0 : data.link) && /*#__PURE__*/React__default.createElement("span", {
|
|
151
165
|
id: data === null || data === void 0 ? void 0 : data.linkId,
|
|
152
166
|
onClick: e => {
|
|
153
167
|
onLinkClick(e);
|
|
@@ -156,7 +170,7 @@ const SelectPaymentType = props => {
|
|
|
156
170
|
color: "#a82227",
|
|
157
171
|
cursor: "pointer"
|
|
158
172
|
}
|
|
159
|
-
}, t(
|
|
173
|
+
}, t((data === null || data === void 0 ? void 0 : data.link) + "_")), (data === null || data === void 0 ? void 0 : data.linkPostfix) && /*#__PURE__*/React__default.createElement("span", null, t((data === null || data === void 0 ? void 0 : data.linkPostfix) + "_")), index == (isCCFEnabled === null || isCCFEnabled === void 0 ? void 0 : (_isCCFEnabled$checkBo2 = isCCFEnabled.checkBoxLabels) === null || _isCCFEnabled$checkBo2 === void 0 ? void 0 : _isCCFEnabled$checkBo2.length) - 1 && t("LABEL"));
|
|
160
174
|
}));
|
|
161
175
|
};
|
|
162
176
|
React.useEffect(() => {
|
|
@@ -183,7 +197,7 @@ const SelectPaymentType = props => {
|
|
|
183
197
|
const onSubmit = () => {
|
|
184
198
|
if (wrkflow === "WNS") {
|
|
185
199
|
var _bill$mobileNumber, _userData$user, _userData$user$;
|
|
186
|
-
history.push(
|
|
200
|
+
history.push("/digit-ui/citizen/payment/collect/" + businessService + "/" + consumerCode + "?workflow=WNS&consumerCode=" + stringReplaceAll(consumerCode, "+", "/"), {
|
|
187
201
|
paymentAmount: paymentAmt,
|
|
188
202
|
tenantId: billDetails.tenantId,
|
|
189
203
|
name: (paymentType === null || paymentType === void 0 ? void 0 : paymentType.code) !== (optionSecound === null || optionSecound === void 0 ? void 0 : optionSecound.code) && ConsumerName !== "undefined" ? ConsumerName : userInfo ? payersActiveName : payersName,
|
|
@@ -191,7 +205,7 @@ const SelectPaymentType = props => {
|
|
|
191
205
|
});
|
|
192
206
|
} else {
|
|
193
207
|
var _bill$mobileNumber2, _userData$user2, _userData$user2$;
|
|
194
|
-
history.push(
|
|
208
|
+
history.push("/digit-ui/citizen/payment/collect/" + businessService + "/" + consumerCode, {
|
|
195
209
|
paymentAmount: paymentAmt,
|
|
196
210
|
tenantId: billDetails.tenantId,
|
|
197
211
|
name: (paymentType === null || paymentType === void 0 ? void 0 : paymentType.code) !== (optionSecound === null || optionSecound === void 0 ? void 0 : optionSecound.code) ? bill === null || bill === void 0 ? void 0 : bill.payerName : userInfo ? payersActiveName : payersName,
|
|
@@ -272,7 +286,7 @@ const MyBill = _ref => {
|
|
|
272
286
|
} = reactI18next.useTranslation();
|
|
273
287
|
const history = reactRouterDom.useHistory();
|
|
274
288
|
const onSubmit = () => {
|
|
275
|
-
history.push(
|
|
289
|
+
history.push(currentPath + "/" + bill.consumerCode, {
|
|
276
290
|
tenantId: bill === null || bill === void 0 ? void 0 : bill.tenantId
|
|
277
291
|
});
|
|
278
292
|
};
|
|
@@ -333,10 +347,7 @@ const BillList = _ref => {
|
|
|
333
347
|
billsList.forEach(bill => {
|
|
334
348
|
billsListObj[bill.consumerCode] = bill;
|
|
335
349
|
});
|
|
336
|
-
const newBillsList = billableIDs.map(e => ({
|
|
337
|
-
...billsListObj[e],
|
|
338
|
-
...billableApplicationsObj[e]
|
|
339
|
-
}));
|
|
350
|
+
const newBillsList = billableIDs.map(e => _extends({}, billsListObj[e], billableApplicationsObj[e]));
|
|
340
351
|
setApplicationList(newBillsList);
|
|
341
352
|
}
|
|
342
353
|
}, [searchResult.data, getKeyNotesConfig]);
|
|
@@ -345,7 +356,7 @@ const BillList = _ref => {
|
|
|
345
356
|
}
|
|
346
357
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
347
358
|
className: "static"
|
|
348
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t("CS_TITLE_MY_BILLS") +
|
|
359
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, null, t("CS_TITLE_MY_BILLS") + (" (" + applicationList.length + ")")), (applicationList === null || applicationList === void 0 ? void 0 : applicationList.length) > 0 && getKeyNotesConfig && applicationList.map((bill, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
349
360
|
key: index
|
|
350
361
|
}, /*#__PURE__*/React__default.createElement(MyBill, {
|
|
351
362
|
bill,
|
|
@@ -411,66 +422,48 @@ const ArrearTable = _ref => {
|
|
|
411
422
|
className: "table-fixed-column-common-pay",
|
|
412
423
|
style: styles.table
|
|
413
424
|
}, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("th", {
|
|
414
|
-
style: {
|
|
415
|
-
...styles.cell,
|
|
416
|
-
...styles.cellLeft,
|
|
417
|
-
...styles.cellHeader
|
|
418
|
-
}
|
|
425
|
+
style: _extends({}, styles.cell, styles.cellLeft, styles.cellHeader)
|
|
419
426
|
}, t("CS_BILL_PERIOD")), headers.map((header, ind) => {
|
|
420
427
|
let styleRight = headers.length == ind + 1 ? styles.cellRight : {};
|
|
421
428
|
return /*#__PURE__*/React__default.createElement("th", {
|
|
422
|
-
style: {
|
|
423
|
-
...styles.cell,
|
|
424
|
-
...styleRight,
|
|
425
|
-
...styles.cellHeader
|
|
426
|
-
},
|
|
429
|
+
style: _extends({}, styles.cell, styleRight, styles.cellHeader),
|
|
427
430
|
key: ind
|
|
428
431
|
}, t(header));
|
|
429
432
|
}))), /*#__PURE__*/React__default.createElement("tbody", null, Object.values(values).map((row, ind) => /*#__PURE__*/React__default.createElement("tr", {
|
|
430
433
|
key: ind
|
|
431
434
|
}, /*#__PURE__*/React__default.createElement("td", {
|
|
432
|
-
style: {
|
|
433
|
-
...styles.cell,
|
|
434
|
-
...styles.cellLeft
|
|
435
|
-
},
|
|
435
|
+
style: _extends({}, styles.cell, styles.cellLeft),
|
|
436
436
|
component: "th",
|
|
437
437
|
scope: "row"
|
|
438
438
|
}, Object.keys(values)[ind]), headers.map((header, i) => {
|
|
439
439
|
let styleRight = headers.length == i + 1 ? styles.cellRight : {};
|
|
440
440
|
return /*#__PURE__*/React__default.createElement("td", {
|
|
441
|
-
style: {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
...styleRight,
|
|
441
|
+
style: _extends({}, styles.cell, {
|
|
442
|
+
textAlign: "left"
|
|
443
|
+
}, styleRight, {
|
|
445
444
|
whiteSpace: "pre"
|
|
446
|
-
},
|
|
445
|
+
}),
|
|
447
446
|
key: i,
|
|
448
447
|
numeric: true
|
|
449
448
|
}, i > 1 && "₹", row[header] && row[header]["value"] || "0");
|
|
450
449
|
}))), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
|
|
451
|
-
style: {
|
|
452
|
-
...styles.cell,
|
|
453
|
-
...styles.cellLeft
|
|
454
|
-
}
|
|
450
|
+
style: _extends({}, styles.cell, styles.cellLeft)
|
|
455
451
|
}), headers.map((header, ind) => {
|
|
456
452
|
if (ind == headers.length - 1) {
|
|
457
453
|
return /*#__PURE__*/React__default.createElement("td", {
|
|
458
|
-
style: {
|
|
459
|
-
...styles.cell,
|
|
460
|
-
...styles.cellRight,
|
|
454
|
+
style: _extends({}, styles.cell, styles.cellRight, {
|
|
461
455
|
textAlign: "left",
|
|
462
456
|
fontWeight: "700",
|
|
463
457
|
whiteSpace: "pre"
|
|
464
|
-
},
|
|
458
|
+
}),
|
|
465
459
|
key: ind,
|
|
466
460
|
numeric: true
|
|
467
461
|
}, arrears);
|
|
468
462
|
} else if (ind == headers.length - 2) {
|
|
469
463
|
return /*#__PURE__*/React__default.createElement("td", {
|
|
470
|
-
style: {
|
|
471
|
-
...styles.cell,
|
|
464
|
+
style: _extends({}, styles.cell, {
|
|
472
465
|
textAlign: "left"
|
|
473
|
-
},
|
|
466
|
+
}),
|
|
474
467
|
key: ind,
|
|
475
468
|
numeric: true
|
|
476
469
|
}, t("COMMON_ARREARS_TOTAL"));
|
|
@@ -539,15 +532,15 @@ const ArrearSummary = _ref => {
|
|
|
539
532
|
const fromDate = new Date(from);
|
|
540
533
|
const toDate = new Date(to);
|
|
541
534
|
if (toDate.getYear() - fromDate.getYear() != 0) {
|
|
542
|
-
return
|
|
535
|
+
return "FY" + (fromDate.getYear() + 1900) + "-" + (toDate.getYear() - 100);
|
|
543
536
|
}
|
|
544
|
-
return
|
|
537
|
+
return fromDate.toLocaleDateString() + "-" + toDate.toLocaleDateString();
|
|
545
538
|
};
|
|
546
539
|
let fees = {};
|
|
547
540
|
let sortedBillDetails = (bill === null || bill === void 0 ? void 0 : (_bill$billDetails = bill.billDetails) === null || _bill$billDetails === void 0 ? void 0 : _bill$billDetails.sort((a, b) => b.fromPeriod - a.fromPeriod)) || [];
|
|
548
541
|
sortedBillDetails = [...sortedBillDetails];
|
|
549
542
|
const arrears = ((_sortedBillDetails = sortedBillDetails) === null || _sortedBillDetails === void 0 ? void 0 : _sortedBillDetails.reduce((total, current, index) => total + current.amount, 0)) || 0;
|
|
550
|
-
let arrearsAmount =
|
|
543
|
+
let arrearsAmount = "\u20B9 " + ((arrears === null || arrears === void 0 ? void 0 : (_arrears$toFixed = arrears.toFixed) === null || _arrears$toFixed === void 0 ? void 0 : _arrears$toFixed.call(arrears, 0)) || Number(0).toFixed(0));
|
|
551
544
|
sortedBillDetails.map(bill => {
|
|
552
545
|
let fee = formatTaxHeaders(bill);
|
|
553
546
|
fees[getFinancialYears(bill.fromPeriod, bill.toPeriod)] = fee;
|
|
@@ -761,7 +754,7 @@ const BillDetails = _ref => {
|
|
|
761
754
|
if (authorization === "true" && !(userInfo !== null && userInfo !== void 0 && userInfo.access_token)) {
|
|
762
755
|
localStorage.clear();
|
|
763
756
|
sessionStorage.clear();
|
|
764
|
-
window.location.href =
|
|
757
|
+
window.location.href = "/digit-ui/citizen/login?from=" + encodeURIComponent(pathname + search);
|
|
765
758
|
}
|
|
766
759
|
React.useEffect(() => {
|
|
767
760
|
window.scroll({
|
|
@@ -795,13 +788,13 @@ const BillDetails = _ref => {
|
|
|
795
788
|
var _application$pdfData4;
|
|
796
789
|
let paymentAmount = paymentType === t("CS_PAYMENT_FULL_AMOUNT") ? getTotal() : amount || businessService === "FSM.TRIP_CHARGES" ? application === null || application === void 0 ? void 0 : (_application$pdfData4 = application.pdfData) === null || _application$pdfData4 === void 0 ? void 0 : _application$pdfData4.advanceAmount : amount;
|
|
797
790
|
if (window.location.href.includes("mcollect")) {
|
|
798
|
-
history.push(
|
|
791
|
+
history.push("/digit-ui/citizen/payment/collect/" + businessService + "/" + consumerCode + "?workflow=mcollect", {
|
|
799
792
|
paymentAmount,
|
|
800
793
|
tenantId: billDetails.tenantId
|
|
801
794
|
});
|
|
802
795
|
} else if (wrkflow === "WNS") {
|
|
803
796
|
var _bill$mobileNumber, _userData$user, _userData$user$;
|
|
804
|
-
history.push(
|
|
797
|
+
history.push("/digit-ui/citizen/payment/billDetails/" + businessService + "/" + consumerCode + "/" + paymentAmount + "?workflow=WNS&ConsumerName=" + ConsumerName, {
|
|
805
798
|
paymentAmount,
|
|
806
799
|
tenantId: billDetails.tenantId,
|
|
807
800
|
name: bill.payerName,
|
|
@@ -809,7 +802,7 @@ const BillDetails = _ref => {
|
|
|
809
802
|
});
|
|
810
803
|
} else if (businessService === "PT") {
|
|
811
804
|
var _bill$mobileNumber2, _userData$user2, _userData$user2$;
|
|
812
|
-
history.push(
|
|
805
|
+
history.push("/digit-ui/citizen/payment/billDetails/" + businessService + "/" + consumerCode + "/" + paymentAmount, {
|
|
813
806
|
paymentAmount,
|
|
814
807
|
tenantId: billDetails.tenantId,
|
|
815
808
|
name: bill.payerName,
|
|
@@ -817,14 +810,14 @@ const BillDetails = _ref => {
|
|
|
817
810
|
});
|
|
818
811
|
} else if (businessService === "pet-services") {
|
|
819
812
|
var _bill$mobileNumber3, _userData$user3, _userData$user3$;
|
|
820
|
-
history.push(
|
|
813
|
+
history.push("/digit-ui/citizen/payment/billDetails/" + businessService + "/" + consumerCode + "/" + paymentAmount, {
|
|
821
814
|
paymentAmount,
|
|
822
815
|
tenantId: billDetails.tenantId,
|
|
823
816
|
name: bill.payerName,
|
|
824
817
|
mobileNumber: bill.mobileNumber && (_bill$mobileNumber3 = bill.mobileNumber) !== null && _bill$mobileNumber3 !== void 0 && _bill$mobileNumber3.includes("*") ? userData === null || userData === void 0 ? void 0 : (_userData$user3 = userData.user) === null || _userData$user3 === void 0 ? void 0 : (_userData$user3$ = _userData$user3[0]) === null || _userData$user3$ === void 0 ? void 0 : _userData$user3$.mobileNumber : bill.mobileNumber
|
|
825
818
|
});
|
|
826
819
|
} else {
|
|
827
|
-
history.push(
|
|
820
|
+
history.push("/digit-ui/citizen/payment/collect/" + businessService + "/" + consumerCode, {
|
|
828
821
|
paymentAmount,
|
|
829
822
|
tenantId: billDetails.tenantId,
|
|
830
823
|
propertyId: propertyId
|
|
@@ -886,7 +879,7 @@ const BillDetails = _ref => {
|
|
|
886
879
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
887
880
|
className: "payment-amount-front",
|
|
888
881
|
style: {
|
|
889
|
-
border:
|
|
882
|
+
border: "1px solid " + (paymentType === t("CS_PAYMENT_FULL_AMOUNT") ? "#9a9a9a" : "#9a9a9a")
|
|
890
883
|
}
|
|
891
884
|
}, "\u20B9"), paymentType !== t("CS_PAYMENT_FULL_AMOUNT") ? businessService === "FSM.TRIP_CHARGES" ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
892
885
|
className: "text-indent-xl",
|
|
@@ -914,19 +907,21 @@ const BillDetails = _ref => {
|
|
|
914
907
|
}))));
|
|
915
908
|
};
|
|
916
909
|
|
|
910
|
+
const _excluded$1 = ["url"];
|
|
917
911
|
const BillRoutes = _ref => {
|
|
918
912
|
let {
|
|
919
913
|
billsList,
|
|
920
914
|
paymentRules,
|
|
921
915
|
businessService
|
|
922
916
|
} = _ref;
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
917
|
+
const _useRouteMatch = reactRouterDom.useRouteMatch(),
|
|
918
|
+
{
|
|
919
|
+
url: currentPath
|
|
920
|
+
} = _useRouteMatch,
|
|
921
|
+
match = _objectWithoutPropertiesLoose(_useRouteMatch, _excluded$1);
|
|
927
922
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.BackButton, null), /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
928
923
|
exact: true,
|
|
929
|
-
path:
|
|
924
|
+
path: "" + currentPath,
|
|
930
925
|
component: () => /*#__PURE__*/React__default.createElement(BillList, {
|
|
931
926
|
billsList,
|
|
932
927
|
currentPath,
|
|
@@ -934,7 +929,7 @@ const BillRoutes = _ref => {
|
|
|
934
929
|
businessService
|
|
935
930
|
})
|
|
936
931
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
937
|
-
path:
|
|
932
|
+
path: currentPath + "/:consumerCode",
|
|
938
933
|
component: () => /*#__PURE__*/React__default.createElement(BillDetails, {
|
|
939
934
|
paymentRules,
|
|
940
935
|
businessService
|
|
@@ -973,7 +968,7 @@ const MyBills = _ref => {
|
|
|
973
968
|
tenantId: _tenantId
|
|
974
969
|
} || {};
|
|
975
970
|
if (!tenantId && !(location !== null && location !== void 0 && (_location$state = location.state) !== null && _location$state !== void 0 && _location$state.fromSearchResults)) {
|
|
976
|
-
history.replace(
|
|
971
|
+
history.replace("/digit-ui/citizen/login", {
|
|
977
972
|
from: url
|
|
978
973
|
});
|
|
979
974
|
}
|
|
@@ -1130,7 +1125,7 @@ const SelectPaymentType$1 = props => {
|
|
|
1130
1125
|
tenantId: billDetails === null || billDetails === void 0 ? void 0 : billDetails.tenantId,
|
|
1131
1126
|
emailId: "sriranjan.srivastava@owc.com"
|
|
1132
1127
|
},
|
|
1133
|
-
callbackUrl: window.location.href.includes("mcollect") || wrkflow === "WNS" ?
|
|
1128
|
+
callbackUrl: window.location.href.includes("mcollect") || wrkflow === "WNS" ? window.location.protocol + "//" + window.location.host + "/digit-ui/citizen/payment/success/" + businessService + "/" + (wrkflow === "WNS" ? consumerCode : consumerCode) + "/" + tenantId + "?workflow=" + (wrkflow === "WNS" ? wrkflow : "mcollect") : window.location.protocol + "//" + window.location.host + "/digit-ui/citizen/payment/success/" + businessService + "/" + (wrkflow === "WNS" ? encodeURIComponent(consumerCode) : consumerCode) + "/" + tenantId + "?propertyId=" + consumerCode,
|
|
1134
1129
|
additionalDetails: {
|
|
1135
1130
|
isWhatsapp: false
|
|
1136
1131
|
}
|
|
@@ -1167,7 +1162,7 @@ const SelectPaymentType$1 = props => {
|
|
|
1167
1162
|
target: "_top"
|
|
1168
1163
|
});
|
|
1169
1164
|
const orderForNDSLPaymentSite = ["checksum", "messageType", "merchantId", "serviceId", "orderId", "customerId", "transactionAmount", "currencyCode", "requestDateTime", "successUrl", "failUrl", "additionalField1", "additionalField2", "additionalField3", "additionalField4", "additionalField5"];
|
|
1170
|
-
gatewayParam["requestDateTime"] = (_gatewayParam$request = gatewayParam["requestDateTime"]) === null || _gatewayParam$request === void 0 ? void 0 : _gatewayParam$request.split(new Date().getFullYear()).join(
|
|
1165
|
+
gatewayParam["requestDateTime"] = (_gatewayParam$request = gatewayParam["requestDateTime"]) === null || _gatewayParam$request === void 0 ? void 0 : _gatewayParam$request.split(new Date().getFullYear()).join(new Date().getFullYear() + " ");
|
|
1171
1166
|
gatewayParam["successUrl"] = (redirectUrl === null || redirectUrl === void 0 ? void 0 : (_redirectUrl$split2 = redirectUrl.split("successUrl=")) === null || _redirectUrl$split2 === void 0 ? void 0 : (_redirectUrl$split2$ = _redirectUrl$split2[1]) === null || _redirectUrl$split2$ === void 0 ? void 0 : (_redirectUrl$split2$$ = _redirectUrl$split2$.split("eg_pg_txnid=")) === null || _redirectUrl$split2$$ === void 0 ? void 0 : _redirectUrl$split2$$[0]) + 'eg_pg_txnid=' + (gatewayParam === null || gatewayParam === void 0 ? void 0 : gatewayParam.orderId);
|
|
1172
1167
|
gatewayParam["failUrl"] = (redirectUrl === null || redirectUrl === void 0 ? void 0 : (_redirectUrl$split3 = redirectUrl.split("failUrl=")) === null || _redirectUrl$split3 === void 0 ? void 0 : (_redirectUrl$split3$ = _redirectUrl$split3[1]) === null || _redirectUrl$split3$ === void 0 ? void 0 : (_redirectUrl$split3$$ = _redirectUrl$split3$.split("eg_pg_txnid=")) === null || _redirectUrl$split3$$ === void 0 ? void 0 : _redirectUrl$split3$$[0]) + 'eg_pg_txnid=' + (gatewayParam === null || gatewayParam === void 0 ? void 0 : gatewayParam.orderId);
|
|
1173
1168
|
for (var key of orderForNDSLPaymentSite) {
|
|
@@ -1208,7 +1203,7 @@ const SelectPaymentType$1 = props => {
|
|
|
1208
1203
|
if (authorization === "true" && !userInfo.access_token) {
|
|
1209
1204
|
localStorage.clear();
|
|
1210
1205
|
sessionStorage.clear();
|
|
1211
|
-
window.location.href =
|
|
1206
|
+
window.location.href = "/digit-ui/citizen/login?from=" + encodeURIComponent(pathname + search);
|
|
1212
1207
|
}
|
|
1213
1208
|
if (isLoading || paymentLoading) {
|
|
1214
1209
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
@@ -1261,7 +1256,7 @@ const convertEpochToDate = dateEpoch => {
|
|
|
1261
1256
|
let year = dateFromApi.getFullYear();
|
|
1262
1257
|
month = (month > 9 ? "" : "0") + month;
|
|
1263
1258
|
day = (day > 9 ? "" : "0") + day;
|
|
1264
|
-
return
|
|
1259
|
+
return day + "/" + month + "/" + year;
|
|
1265
1260
|
} else {
|
|
1266
1261
|
return "NA";
|
|
1267
1262
|
}
|
|
@@ -1380,11 +1375,11 @@ const WrapPaymentComponent = props => {
|
|
|
1380
1375
|
applicationNumber: egId,
|
|
1381
1376
|
successful: false
|
|
1382
1377
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("CS_PAYMENT_FAILURE_MESSAGE")), !(business_service !== null && business_service !== void 0 && business_service.includes("PT")) ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
1383
|
-
to:
|
|
1378
|
+
to: "/digit-ui/citizen"
|
|
1384
1379
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
1385
1380
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
1386
1381
|
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
1387
|
-
to: applicationNo &&
|
|
1382
|
+
to: applicationNo && "/digit-ui/citizen/payment/my-bills/" + business_service + "/" + applicationNo || "/digit-ui/citizen"
|
|
1388
1383
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
1389
1384
|
label: t("CS_PAYMENT_TRY_AGAIN")
|
|
1390
1385
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -1397,7 +1392,7 @@ const WrapPaymentComponent = props => {
|
|
|
1397
1392
|
marginTop: "8px"
|
|
1398
1393
|
}
|
|
1399
1394
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
1400
|
-
to:
|
|
1395
|
+
to: "/digit-ui/citizen"
|
|
1401
1396
|
}, t("CORE_COMMON_GO_TO_HOME")))));
|
|
1402
1397
|
}
|
|
1403
1398
|
const paymentData = data === null || data === void 0 ? void 0 : (_data$payments2 = data.payments) === null || _data$payments2 === void 0 ? void 0 : _data$payments2.Payments[0];
|
|
@@ -1483,10 +1478,9 @@ const WrapPaymentComponent = props => {
|
|
|
1483
1478
|
} else {
|
|
1484
1479
|
let details;
|
|
1485
1480
|
if (payments.Payments[0].paymentDetails[0].businessService == "BPAREG") {
|
|
1486
|
-
details = {
|
|
1487
|
-
...payments.Payments[0].additionalDetails,
|
|
1481
|
+
details = _extends({}, payments.Payments[0].additionalDetails, {
|
|
1488
1482
|
"stakeholderType": "Application"
|
|
1489
|
-
};
|
|
1483
|
+
});
|
|
1490
1484
|
}
|
|
1491
1485
|
payments.Payments[0].additionalDetails = details;
|
|
1492
1486
|
paymentArray[0] = payments.Payments[0];
|
|
@@ -1494,9 +1488,7 @@ const WrapPaymentComponent = props => {
|
|
|
1494
1488
|
const _temp3 = function () {
|
|
1495
1489
|
if (business_service == "WS" || business_service == "SW") {
|
|
1496
1490
|
return Promise.resolve(Digit.PaymentService.generatePdf(state, {
|
|
1497
|
-
Payments: [{
|
|
1498
|
-
...paymentData
|
|
1499
|
-
}]
|
|
1491
|
+
Payments: [_extends({}, paymentData)]
|
|
1500
1492
|
}, generatePdfKeyForWs)).then(function (_Digit$PaymentService) {
|
|
1501
1493
|
response = _Digit$PaymentService;
|
|
1502
1494
|
});
|
|
@@ -1504,26 +1496,20 @@ const WrapPaymentComponent = props => {
|
|
|
1504
1496
|
const _temp2 = function () {
|
|
1505
1497
|
if (paymentData.paymentDetails[0].businessService.includes("BPA")) {
|
|
1506
1498
|
const designation = ulbType === "Municipal Corporation" ? "Municipal Commissioner" : "Executive Officer";
|
|
1507
|
-
const updatedpayments = {
|
|
1508
|
-
|
|
1509
|
-
additionalDetails: {
|
|
1510
|
-
...paymentData.additionalDetails,
|
|
1499
|
+
const updatedpayments = _extends({}, paymentData, {
|
|
1500
|
+
additionalDetails: _extends({}, paymentData.additionalDetails, {
|
|
1511
1501
|
designation: designation,
|
|
1512
1502
|
ulbType: ulbType
|
|
1513
|
-
}
|
|
1514
|
-
};
|
|
1503
|
+
})
|
|
1504
|
+
});
|
|
1515
1505
|
return Promise.resolve(Digit.PaymentService.generatePdf(state, {
|
|
1516
|
-
Payments: [{
|
|
1517
|
-
...updatedpayments
|
|
1518
|
-
}]
|
|
1506
|
+
Payments: [_extends({}, updatedpayments)]
|
|
1519
1507
|
}, generatePdfKey)).then(function (_Digit$PaymentService2) {
|
|
1520
1508
|
response = _Digit$PaymentService2;
|
|
1521
1509
|
});
|
|
1522
1510
|
} else {
|
|
1523
1511
|
return Promise.resolve(Digit.PaymentService.generatePdf(state, {
|
|
1524
|
-
Payments: [{
|
|
1525
|
-
...paymentData
|
|
1526
|
-
}]
|
|
1512
|
+
Payments: [_extends({}, paymentData)]
|
|
1527
1513
|
}, generatePdfKey)).then(function (_Digit$PaymentService3) {
|
|
1528
1514
|
response = _Digit$PaymentService3;
|
|
1529
1515
|
});
|
|
@@ -1607,12 +1593,9 @@ const WrapPaymentComponent = props => {
|
|
|
1607
1593
|
edcrData = edcrResponse === null || edcrResponse === void 0 ? void 0 : (_edcrResponse$edcrDet = edcrResponse.edcrDetail) === null || _edcrResponse$edcrDet === void 0 ? void 0 : _edcrResponse$edcrDet[0];
|
|
1608
1594
|
let currentDate = new Date();
|
|
1609
1595
|
bpaDataDetails.additionalDetails.runDate = convertDateToEpoch(currentDate.getFullYear() + "-" + (currentDate.getMonth() + 1) + "-" + currentDate.getDate());
|
|
1610
|
-
let reqData = {
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
...edcrData
|
|
1614
|
-
}]
|
|
1615
|
-
};
|
|
1596
|
+
let reqData = _extends({}, bpaDataDetails, {
|
|
1597
|
+
edcrDetail: [_extends({}, edcrData)]
|
|
1598
|
+
});
|
|
1616
1599
|
const state = Digit.ULBService.getStateId();
|
|
1617
1600
|
let count = 0;
|
|
1618
1601
|
reqData.additionalDetails.submissionDate = bpaData === null || bpaData === void 0 ? void 0 : (_bpaData$5 = bpaData[0]) === null || _bpaData$5 === void 0 ? void 0 : (_bpaData$5$workflowDa = _bpaData$5.workflowData) === null || _bpaData$5$workflowDa === void 0 ? void 0 : (_bpaData$5$workflowDa2 = _bpaData$5$workflowDa.auditDetails) === null || _bpaData$5$workflowDa2 === void 0 ? void 0 : _bpaData$5$workflowDa2.createdTime;
|
|
@@ -1635,9 +1618,7 @@ const WrapPaymentComponent = props => {
|
|
|
1635
1618
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
1636
1619
|
reqData["applicationType"] = bpaDataDetails === null || bpaDataDetails === void 0 ? void 0 : (_bpaDataDetails$addit = bpaDataDetails.additionalDetails) === null || _bpaDataDetails$addit === void 0 ? void 0 : _bpaDataDetails$addit.applicationType;
|
|
1637
1620
|
return Promise.resolve(Digit.OBPSService.edcr_report_download({
|
|
1638
|
-
BPA: {
|
|
1639
|
-
...reqData
|
|
1640
|
-
}
|
|
1621
|
+
BPA: _extends({}, reqData)
|
|
1641
1622
|
})).then(function (edcrresponse) {
|
|
1642
1623
|
const responseStatus = parseInt(edcrresponse.status, 10);
|
|
1643
1624
|
if (responseStatus === 201 || responseStatus === 200) {
|
|
@@ -1645,7 +1626,7 @@ const WrapPaymentComponent = props => {
|
|
|
1645
1626
|
type: "application/pdf"
|
|
1646
1627
|
})) : downloadPdf(new Blob([edcrresponse.data], {
|
|
1647
1628
|
type: "application/pdf"
|
|
1648
|
-
}),
|
|
1629
|
+
}), "edcrReport.pdf");
|
|
1649
1630
|
}
|
|
1650
1631
|
});
|
|
1651
1632
|
});
|
|
@@ -1684,19 +1665,19 @@ const WrapPaymentComponent = props => {
|
|
|
1684
1665
|
};
|
|
1685
1666
|
let bannerText;
|
|
1686
1667
|
if (workflw) {
|
|
1687
|
-
bannerText =
|
|
1668
|
+
bannerText = "CITIZEN_SUCCESS_UC_PAYMENT_MESSAGE";
|
|
1688
1669
|
} else {
|
|
1689
1670
|
var _paymentData$paymentD, _paymentData$paymentD2, _paymentData$paymentD3, _paymentData$paymentD4, _paymentData$paymentD5;
|
|
1690
1671
|
if (paymentData !== null && paymentData !== void 0 && (_paymentData$paymentD = paymentData.paymentDetails) !== null && _paymentData$paymentD !== void 0 && (_paymentData$paymentD2 = _paymentData$paymentD[0]) !== null && _paymentData$paymentD2 !== void 0 && _paymentData$paymentD2.businessService && paymentData !== null && paymentData !== void 0 && (_paymentData$paymentD3 = paymentData.paymentDetails) !== null && _paymentData$paymentD3 !== void 0 && (_paymentData$paymentD4 = _paymentData$paymentD3[0]) !== null && _paymentData$paymentD4 !== void 0 && (_paymentData$paymentD5 = _paymentData$paymentD4.businessService) !== null && _paymentData$paymentD5 !== void 0 && _paymentData$paymentD5.includes("BPA")) {
|
|
1691
1672
|
var _paymentData$paymentD6;
|
|
1692
1673
|
let nameOfAchitect = sessionStorage.getItem("BPA_ARCHITECT_NAME");
|
|
1693
1674
|
let parsedArchitectName = nameOfAchitect ? JSON.parse(nameOfAchitect) : "ARCHITECT";
|
|
1694
|
-
bannerText =
|
|
1675
|
+
bannerText = "CITIZEN_SUCCESS_" + (paymentData === null || paymentData === void 0 ? void 0 : (_paymentData$paymentD6 = paymentData.paymentDetails[0]) === null || _paymentData$paymentD6 === void 0 ? void 0 : _paymentData$paymentD6.businessService.replace(/\./g, "_")) + "_" + parsedArchitectName + "_PAYMENT_MESSAGE";
|
|
1695
1676
|
} else if (business_service !== null && business_service !== void 0 && business_service.includes("WS") || business_service !== null && business_service !== void 0 && business_service.includes("SW")) {
|
|
1696
|
-
bannerText = t(
|
|
1677
|
+
bannerText = t("CITIZEN_SUCCESS_" + (paymentData === null || paymentData === void 0 ? void 0 : paymentData.paymentDetails[0].businessService.replace(/\./g, "_")) + "_WS_PAYMENT_MESSAGE");
|
|
1697
1678
|
} else {
|
|
1698
1679
|
var _paymentData$paymentD7, _paymentData$paymentD8;
|
|
1699
|
-
bannerText = paymentData !== null && paymentData !== void 0 && (_paymentData$paymentD7 = paymentData.paymentDetails[0]) !== null && _paymentData$paymentD7 !== void 0 && _paymentData$paymentD7.businessService ?
|
|
1680
|
+
bannerText = paymentData !== null && paymentData !== void 0 && (_paymentData$paymentD7 = paymentData.paymentDetails[0]) !== null && _paymentData$paymentD7 !== void 0 && _paymentData$paymentD7.businessService ? "CITIZEN_SUCCESS_" + (paymentData === null || paymentData === void 0 ? void 0 : (_paymentData$paymentD8 = paymentData.paymentDetails[0]) === null || _paymentData$paymentD8 === void 0 ? void 0 : _paymentData$paymentD8.businessService.replace(/\./g, "_")) + "_PAYMENT_MESSAGE" : t("CITIZEN_SUCCESS_UC_PAYMENT_MESSAGE");
|
|
1700
1681
|
}
|
|
1701
1682
|
}
|
|
1702
1683
|
const rowContainerStyle = {
|
|
@@ -1966,7 +1947,7 @@ const WrapPaymentComponent = props => {
|
|
|
1966
1947
|
rowContainerStyle: rowContainerStyle,
|
|
1967
1948
|
last: true,
|
|
1968
1949
|
label: t("CS_PAYMENT_AMOUNT_PENDING"),
|
|
1969
|
-
text: (paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalDue) - (paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalAmountPaid) || reciept_data !== null && reciept_data !== void 0 && (_reciept_data$payment3 = reciept_data.paymentDetails) !== null && _reciept_data$payment3 !== void 0 && (_reciept_data$payment4 = _reciept_data$payment3[0]) !== null && _reciept_data$payment4 !== void 0 && _reciept_data$payment4.totalDue && reciept_data !== null && reciept_data !== void 0 && (_reciept_data$payment5 = reciept_data.paymentDetails) !== null && _reciept_data$payment5 !== void 0 && (_reciept_data$payment6 = _reciept_data$payment5[0]) !== null && _reciept_data$payment6 !== void 0 && _reciept_data$payment6.totalAmountPaid ?
|
|
1950
|
+
text: (paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalDue) - (paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalAmountPaid) || reciept_data !== null && reciept_data !== void 0 && (_reciept_data$payment3 = reciept_data.paymentDetails) !== null && _reciept_data$payment3 !== void 0 && (_reciept_data$payment4 = _reciept_data$payment3[0]) !== null && _reciept_data$payment4 !== void 0 && _reciept_data$payment4.totalDue && reciept_data !== null && reciept_data !== void 0 && (_reciept_data$payment5 = reciept_data.paymentDetails) !== null && _reciept_data$payment5 !== void 0 && (_reciept_data$payment6 = _reciept_data$payment5[0]) !== null && _reciept_data$payment6 !== void 0 && _reciept_data$payment6.totalAmountPaid ? "\u20B9 " + ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$payment7 = reciept_data.paymentDetails) === null || _reciept_data$payment7 === void 0 ? void 0 : (_reciept_data$payment8 = _reciept_data$payment7[0]) === null || _reciept_data$payment8 === void 0 ? void 0 : _reciept_data$payment8.totalDue) - (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$payment9 = reciept_data.paymentDetails) === null || _reciept_data$payment9 === void 0 ? void 0 : (_reciept_data$payment0 = _reciept_data$payment9[0]) === null || _reciept_data$payment0 === void 0 ? void 0 : _reciept_data$payment0.totalAmountPaid)) : "\u20B9 " + 0
|
|
1970
1951
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
1971
1952
|
rowContainerStyle: rowContainerStyle,
|
|
1972
1953
|
last: true,
|
|
@@ -1976,7 +1957,7 @@ const WrapPaymentComponent = props => {
|
|
|
1976
1957
|
rowContainerStyle: rowContainerStyle,
|
|
1977
1958
|
last: true,
|
|
1978
1959
|
label: t(ommitRupeeSymbol ? "CS_PAYMENT_AMOUNT_PAID_WITHOUT_SYMBOL" : "CS_PAYMENT_AMOUNT_PAID"),
|
|
1979
|
-
text: (paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalAmountPaid) || (reciept_data !== null && reciept_data !== void 0 && (_reciept_data$payment1 = reciept_data.paymentDetails) !== null && _reciept_data$payment1 !== void 0 && (_reciept_data$payment10 = _reciept_data$payment1[0]) !== null && _reciept_data$payment10 !== void 0 && _reciept_data$payment10.totalAmountPaid ? "₹ " + (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$payment11 = reciept_data.paymentDetails) === null || _reciept_data$payment11 === void 0 ? void 0 : (_reciept_data$payment12 = _reciept_data$payment11[0]) === null || _reciept_data$payment12 === void 0 ? void 0 : _reciept_data$payment12.totalAmountPaid) :
|
|
1960
|
+
text: (paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalAmountPaid) || (reciept_data !== null && reciept_data !== void 0 && (_reciept_data$payment1 = reciept_data.paymentDetails) !== null && _reciept_data$payment1 !== void 0 && (_reciept_data$payment10 = _reciept_data$payment1[0]) !== null && _reciept_data$payment10 !== void 0 && _reciept_data$payment10.totalAmountPaid ? "₹ " + (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$payment11 = reciept_data.paymentDetails) === null || _reciept_data$payment11 === void 0 ? void 0 : (_reciept_data$payment12 = _reciept_data$payment11[0]) === null || _reciept_data$payment12 === void 0 ? void 0 : _reciept_data$payment12.totalAmountPaid) : "\u20B9 0")
|
|
1980
1961
|
}), (business_service !== "PT" || workflw) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
1981
1962
|
rowContainerStyle: rowContainerStyle,
|
|
1982
1963
|
last: true,
|
|
@@ -2067,7 +2048,7 @@ const WrapPaymentComponent = props => {
|
|
|
2067
2048
|
marginTop: "10px"
|
|
2068
2049
|
}
|
|
2069
2050
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
2070
|
-
to:
|
|
2051
|
+
to: "/digit-ui/citizen/feedback?redirectedFrom=" + "digit-ui/citizen/payment/success" + "&propertyId=" + (consumerCode ? consumerCode : "") + "&acknowldgementNumber=" + (egId ? egId : "") + "&tenantId=" + tenantId + "&creationReason=" + (business_service === null || business_service === void 0 ? void 0 : (_business_service$spl = business_service.split(".")) === null || _business_service$spl === void 0 ? void 0 : _business_service$spl[1])
|
|
2071
2052
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
2072
2053
|
label: t("CS_REVIEW_AND_FEEDBACK")
|
|
2073
2054
|
}))), business_service !== null && business_service !== void 0 && business_service.includes("PT") ? /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -2133,13 +2114,13 @@ const WrapPaymentComponent = props => {
|
|
|
2133
2114
|
marginTop: "8px"
|
|
2134
2115
|
}
|
|
2135
2116
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
2136
|
-
to:
|
|
2117
|
+
to: "/digit-ui/citizen"
|
|
2137
2118
|
}, t("CORE_COMMON_GO_TO_HOME"))), business_service == "TL" && /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
2138
|
-
to:
|
|
2119
|
+
to: "/digit-ui/citizen"
|
|
2139
2120
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
2140
2121
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
2141
2122
|
})), business_service == "pet-services" && /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
2142
|
-
to:
|
|
2123
|
+
to: "/digit-ui/citizen"
|
|
2143
2124
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
2144
2125
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
2145
2126
|
})));
|
|
@@ -2176,23 +2157,23 @@ const CitizenPayment = _ref => {
|
|
|
2176
2157
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
2177
2158
|
className: "bills-citizen-wrapper"
|
|
2178
2159
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
2179
|
-
path:
|
|
2160
|
+
path: currentPath + "/my-bills/:businessService"
|
|
2180
2161
|
}, /*#__PURE__*/React__default.createElement(MyBills, {
|
|
2181
2162
|
stateCode: stateCode
|
|
2182
2163
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
2183
|
-
path:
|
|
2164
|
+
path: currentPath + "/billDetails/:businessService/:consumerCode/:paymentAmt"
|
|
2184
2165
|
}, /*#__PURE__*/React__default.createElement(SelectPaymentType, _extends({}, commonProps, {
|
|
2185
2166
|
stateCode: stateCode,
|
|
2186
2167
|
basePath: currentPath
|
|
2187
2168
|
}))), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
2188
|
-
path:
|
|
2169
|
+
path: currentPath + "/collect/:businessService/:consumerCode"
|
|
2189
2170
|
}, /*#__PURE__*/React__default.createElement(SelectPaymentType$1, _extends({}, commonProps, {
|
|
2190
2171
|
stateCode: stateCode,
|
|
2191
2172
|
basePath: currentPath
|
|
2192
2173
|
}))), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
2193
|
-
path:
|
|
2174
|
+
path: currentPath + "/success/:businessService/:consumerCode/:tenantId"
|
|
2194
2175
|
}, /*#__PURE__*/React__default.createElement(SuccessfulPayment, commonProps)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
2195
|
-
path:
|
|
2176
|
+
path: currentPath + "/failure"
|
|
2196
2177
|
}, /*#__PURE__*/React__default.createElement(FailedPayment, commonProps)))));
|
|
2197
2178
|
};
|
|
2198
2179
|
|
|
@@ -2213,7 +2194,7 @@ const getKeyNotesConfig = (businessService, t) => {
|
|
|
2213
2194
|
fontSize: "16px",
|
|
2214
2195
|
fontWeight: "normal"
|
|
2215
2196
|
}
|
|
2216
|
-
},
|
|
2197
|
+
}, " ( " + t("CS_PAYMENT_OVERDUE") + " " + days + " " + t(days === 1 ? "CS_COMMON_DAY" : "CS_COMMON_DAYS") + ")") : null);
|
|
2217
2198
|
}],
|
|
2218
2199
|
fallback: "N/A",
|
|
2219
2200
|
noteStyle: {
|
|
@@ -2254,7 +2235,7 @@ const getKeyNotesConfig = (businessService, t) => {
|
|
|
2254
2235
|
if (!((_d$ = d[0]) !== null && _d$ !== void 0 && _d$.toPeriod)) return "N/A";
|
|
2255
2236
|
const date = new Date((_d$2 = d[0]) === null || _d$2 === void 0 ? void 0 : _d$2.toPeriod);
|
|
2256
2237
|
const month = Digit.Utils.date.monthNames[date.getMonth()];
|
|
2257
|
-
return
|
|
2238
|
+
return date.getDate() + " " + month + " " + date.getFullYear();
|
|
2258
2239
|
}],
|
|
2259
2240
|
fallback: "N/A"
|
|
2260
2241
|
}],
|
|
@@ -2304,9 +2285,7 @@ const useCashPaymentDetails = (props, t) => {
|
|
|
2304
2285
|
};
|
|
2305
2286
|
const CashDetailsComponent = _ref => {
|
|
2306
2287
|
var _props$value, _props$value2;
|
|
2307
|
-
let {
|
|
2308
|
-
...props
|
|
2309
|
-
} = _ref;
|
|
2288
|
+
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
2310
2289
|
const {
|
|
2311
2290
|
t
|
|
2312
2291
|
} = reactI18next.useTranslation();
|
|
@@ -2378,9 +2357,7 @@ const useCardPaymentDetails = (props, t) => {
|
|
|
2378
2357
|
};
|
|
2379
2358
|
const CardDetailsComponent = _ref => {
|
|
2380
2359
|
var _props$value, _props$value2, _props$value3;
|
|
2381
|
-
let {
|
|
2382
|
-
...props
|
|
2383
|
-
} = _ref;
|
|
2360
|
+
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
2384
2361
|
const {
|
|
2385
2362
|
t
|
|
2386
2363
|
} = reactI18next.useTranslation();
|
|
@@ -2405,7 +2382,7 @@ const CardDetailsComponent = _ref => {
|
|
|
2405
2382
|
className: "label-field-pair"
|
|
2406
2383
|
}, /*#__PURE__*/React__default.createElement("h2", {
|
|
2407
2384
|
className: "card-label"
|
|
2408
|
-
},
|
|
2385
|
+
}, t("NOC_PAYMENT_CARD_LAST_DIGITS_LABEL") + " *"), /*#__PURE__*/React__default.createElement("div", {
|
|
2409
2386
|
className: "field"
|
|
2410
2387
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2411
2388
|
className: "field-container"
|
|
@@ -2422,7 +2399,7 @@ const CardDetailsComponent = _ref => {
|
|
|
2422
2399
|
className: "label-field-pair"
|
|
2423
2400
|
}, /*#__PURE__*/React__default.createElement("h2", {
|
|
2424
2401
|
className: "card-label"
|
|
2425
|
-
},
|
|
2402
|
+
}, t("NOC_PAYMENT_TRANS_NO_LABEL") + " *"), /*#__PURE__*/React__default.createElement("div", {
|
|
2426
2403
|
className: "field"
|
|
2427
2404
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2428
2405
|
className: "field-container"
|
|
@@ -2437,7 +2414,7 @@ const CardDetailsComponent = _ref => {
|
|
|
2437
2414
|
className: "label-field-pair"
|
|
2438
2415
|
}, /*#__PURE__*/React__default.createElement("h2", {
|
|
2439
2416
|
className: "card-label"
|
|
2440
|
-
},
|
|
2417
|
+
}, t("NOC_PAYMENT_RENTR_TRANS_LABEL") + " *"), /*#__PURE__*/React__default.createElement("div", {
|
|
2441
2418
|
className: "field"
|
|
2442
2419
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2443
2420
|
className: "field-container"
|
|
@@ -2510,7 +2487,7 @@ const ChequeDetailsComponent = props => {
|
|
|
2510
2487
|
const setBankDetailsFromIFSC = function () {
|
|
2511
2488
|
try {
|
|
2512
2489
|
const _temp2 = _catch(function () {
|
|
2513
|
-
return Promise.resolve(window.fetch(
|
|
2490
|
+
return Promise.resolve(window.fetch("https://ifsc.razorpay.com/" + ifscCode)).then(function (res) {
|
|
2514
2491
|
const _temp = function () {
|
|
2515
2492
|
if (res.ok) {
|
|
2516
2493
|
return Promise.resolve(res.json()).then(function (_ref) {
|
|
@@ -4081,10 +4058,9 @@ const BillDetails$1 = _ref => {
|
|
|
4081
4058
|
const payRestrictiondetails = mdmsBillingData === null || mdmsBillingData === void 0 ? void 0 : (_mdmsBillingData$Mdms = mdmsBillingData.MdmsRes) === null || _mdmsBillingData$Mdms === void 0 ? void 0 : (_mdmsBillingData$Mdms2 = _mdmsBillingData$Mdms.BillingService) === null || _mdmsBillingData$Mdms2 === void 0 ? void 0 : _mdmsBillingData$Mdms2.BusinessService;
|
|
4082
4059
|
if (payRestrictiondetails !== null && payRestrictiondetails !== void 0 && payRestrictiondetails.length) {
|
|
4083
4060
|
if (IsDisconnectionFlow) {
|
|
4084
|
-
setPaymentRules({
|
|
4085
|
-
...payRestrictiondetails.filter(e => e.code == businessService)[0],
|
|
4061
|
+
setPaymentRules(_extends({}, payRestrictiondetails.filter(e => e.code == businessService)[0], {
|
|
4086
4062
|
partPaymentAllowed: false
|
|
4087
|
-
});
|
|
4063
|
+
}));
|
|
4088
4064
|
} else setPaymentRules(payRestrictiondetails.filter(e => e.code == businessService)[0]);
|
|
4089
4065
|
} else setPaymentRules({});
|
|
4090
4066
|
}, [mdmsBillingData]);
|
|
@@ -4187,17 +4163,11 @@ const BillDetails$1 = _ref => {
|
|
|
4187
4163
|
}, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("th", {
|
|
4188
4164
|
style: thStyle
|
|
4189
4165
|
}, t("CS_BILL_NO")), /*#__PURE__*/React__default.createElement("th", {
|
|
4190
|
-
style: {
|
|
4191
|
-
...thStyle
|
|
4192
|
-
}
|
|
4166
|
+
style: _extends({}, thStyle)
|
|
4193
4167
|
}, t("CS_PAYMENT_BILLING_PERIOD")), /*#__PURE__*/React__default.createElement("th", {
|
|
4194
|
-
style: {
|
|
4195
|
-
...thStyle
|
|
4196
|
-
}
|
|
4168
|
+
style: _extends({}, thStyle)
|
|
4197
4169
|
}, t("CS_BILL_DUEDATE")), yearWiseBills === null || yearWiseBills === void 0 ? void 0 : (_yearWiseBills$filter = yearWiseBills.filter((e, ind) => ind > 0)) === null || _yearWiseBills$filter === void 0 ? void 0 : (_yearWiseBills$filter2 = _yearWiseBills$filter[0]) === null || _yearWiseBills$filter2 === void 0 ? void 0 : (_yearWiseBills$filter3 = _yearWiseBills$filter2.billAccountDetails) === null || _yearWiseBills$filter3 === void 0 ? void 0 : (_yearWiseBills$filter4 = _yearWiseBills$filter3.sort((a, b) => a.order - b.order)) === null || _yearWiseBills$filter4 === void 0 ? void 0 : _yearWiseBills$filter4.map((head, index) => /*#__PURE__*/React__default.createElement("th", {
|
|
4198
|
-
style: {
|
|
4199
|
-
...thStyle
|
|
4200
|
-
},
|
|
4170
|
+
style: _extends({}, thStyle),
|
|
4201
4171
|
key: index
|
|
4202
4172
|
}, t(head.taxHeadCode))), /*#__PURE__*/React__default.createElement("th", {
|
|
4203
4173
|
style: thStyle
|
|
@@ -4355,17 +4325,11 @@ const BillDetails$1 = _ref => {
|
|
|
4355
4325
|
}, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("th", {
|
|
4356
4326
|
style: thStyle
|
|
4357
4327
|
}, t("FINANCIAL_YEAR")), /*#__PURE__*/React__default.createElement("th", {
|
|
4358
|
-
style: {
|
|
4359
|
-
...thStyle
|
|
4360
|
-
}
|
|
4328
|
+
style: _extends({}, thStyle)
|
|
4361
4329
|
}, t("CS_BILL_NO")), /*#__PURE__*/React__default.createElement("th", {
|
|
4362
|
-
style: {
|
|
4363
|
-
...thStyle
|
|
4364
|
-
}
|
|
4330
|
+
style: _extends({}, thStyle)
|
|
4365
4331
|
}, t("CS_BILL_DUEDATE")), yearWiseBills === null || yearWiseBills === void 0 ? void 0 : (_yearWiseBills$filter6 = yearWiseBills.filter((e, ind) => ind > 0)) === null || _yearWiseBills$filter6 === void 0 ? void 0 : (_yearWiseBills$filter7 = _yearWiseBills$filter6[0]) === null || _yearWiseBills$filter7 === void 0 ? void 0 : (_yearWiseBills$filter8 = _yearWiseBills$filter7.billAccountDetails) === null || _yearWiseBills$filter8 === void 0 ? void 0 : (_yearWiseBills$filter9 = _yearWiseBills$filter8.sort((a, b) => a.order - b.order)) === null || _yearWiseBills$filter9 === void 0 ? void 0 : _yearWiseBills$filter9.map((head, index) => /*#__PURE__*/React__default.createElement("th", {
|
|
4366
|
-
style: {
|
|
4367
|
-
...thStyle
|
|
4368
|
-
},
|
|
4332
|
+
style: _extends({}, thStyle),
|
|
4369
4333
|
key: index
|
|
4370
4334
|
}, t(head.taxHeadCode))), /*#__PURE__*/React__default.createElement("th", {
|
|
4371
4335
|
style: thStyle
|
|
@@ -4420,7 +4384,7 @@ const BillDetails$1 = _ref => {
|
|
|
4420
4384
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
4421
4385
|
className: "payment-amount-front",
|
|
4422
4386
|
style: {
|
|
4423
|
-
border:
|
|
4387
|
+
border: "1px solid " + (paymentType === t("CS_PAYMENT_FULL_AMOUNT") ? "#9a9a9a" : "black")
|
|
4424
4388
|
}
|
|
4425
4389
|
}, "\u20B9"), paymentType !== t("CS_PAYMENT_FULL_AMOUNT") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
4426
4390
|
style: {
|
|
@@ -4444,6 +4408,8 @@ const BillDetails$1 = _ref => {
|
|
|
4444
4408
|
}, t(formError)))));
|
|
4445
4409
|
};
|
|
4446
4410
|
|
|
4411
|
+
const _excluded$2 = ["ManualRecieptDetails", "paymentModeDetails"],
|
|
4412
|
+
_excluded2 = ["errorObj"];
|
|
4447
4413
|
const CollectPayment = props => {
|
|
4448
4414
|
var _businessService$toUp;
|
|
4449
4415
|
const {
|
|
@@ -4551,14 +4517,12 @@ const CollectPayment = props => {
|
|
|
4551
4517
|
return Promise.resolve();
|
|
4552
4518
|
}
|
|
4553
4519
|
const {
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
const {
|
|
4559
|
-
|
|
4560
|
-
...details
|
|
4561
|
-
} = paymentModeDetails || {};
|
|
4520
|
+
ManualRecieptDetails,
|
|
4521
|
+
paymentModeDetails
|
|
4522
|
+
} = data,
|
|
4523
|
+
rest = _objectWithoutPropertiesLoose(data, _excluded$2);
|
|
4524
|
+
const _ref = paymentModeDetails || {},
|
|
4525
|
+
details = _objectWithoutPropertiesLoose(_ref, _excluded2);
|
|
4562
4526
|
let recieptRequest = {
|
|
4563
4527
|
Payment: {
|
|
4564
4528
|
mobileNumber: data.payerMobile,
|
|
@@ -4588,10 +4552,7 @@ const CollectPayment = props => {
|
|
|
4588
4552
|
recieptRequest.Payment.paymentMode = data === null || data === void 0 ? void 0 : (_data$paymentMode = data.paymentMode) === null || _data$paymentMode === void 0 ? void 0 : _data$paymentMode.code;
|
|
4589
4553
|
if (data.paymentModeDetails) {
|
|
4590
4554
|
var _recieptRequest$Payme;
|
|
4591
|
-
recieptRequest.Payment = {
|
|
4592
|
-
...recieptRequest.Payment,
|
|
4593
|
-
...details
|
|
4594
|
-
};
|
|
4555
|
+
recieptRequest.Payment = _extends({}, recieptRequest.Payment, details);
|
|
4595
4556
|
delete recieptRequest.Payment.paymentModeDetails;
|
|
4596
4557
|
if (data.paymentModeDetails.errorObj) {
|
|
4597
4558
|
const errors = data.paymentModeDetails.errorObj;
|
|
@@ -4599,7 +4560,7 @@ const CollectPayment = props => {
|
|
|
4599
4560
|
if (messages) {
|
|
4600
4561
|
setToast({
|
|
4601
4562
|
key: "error",
|
|
4602
|
-
action:
|
|
4563
|
+
action: messages + " " + t("ES_ERROR_REQUIRED")
|
|
4603
4564
|
});
|
|
4604
4565
|
setTimeout(() => setToast(null), 5000);
|
|
4605
4566
|
return Promise.resolve();
|
|
@@ -4636,7 +4597,7 @@ const CollectPayment = props => {
|
|
|
4636
4597
|
return Promise.resolve(Digit.PaymentService.createReciept(tenantId, recieptRequest)).then(function (resposne) {
|
|
4637
4598
|
var _resposne$Payments$, _resposne$Payments$$p, _resposne$Payments$2, _resposne$Payments$2$, _resposne$Payments$2$2, _resposne$Payments$3, _resposne$Payments$3$, _resposne$Payments$4, _resposne$Payments$4$, _resposne$Payments$4$2;
|
|
4638
4599
|
queryClient.invalidateQueries();
|
|
4639
|
-
history.push(IsDisconnectionFlow ?
|
|
4600
|
+
history.push(IsDisconnectionFlow ? props.basePath + "/success/" + businessService + "/" + (resposne === null || resposne === void 0 ? void 0 : (_resposne$Payments$ = resposne.Payments[0]) === null || _resposne$Payments$ === void 0 ? void 0 : (_resposne$Payments$$p = _resposne$Payments$.paymentDetails[0]) === null || _resposne$Payments$$p === void 0 ? void 0 : _resposne$Payments$$p.receiptNumber.replace(/\//g, "%2F")) + "/" + (resposne === null || resposne === void 0 ? void 0 : (_resposne$Payments$2 = resposne.Payments[0]) === null || _resposne$Payments$2 === void 0 ? void 0 : (_resposne$Payments$2$ = _resposne$Payments$2.paymentDetails[0]) === null || _resposne$Payments$2$ === void 0 ? void 0 : (_resposne$Payments$2$2 = _resposne$Payments$2$.bill) === null || _resposne$Payments$2$2 === void 0 ? void 0 : _resposne$Payments$2$2.consumerCode) + "?IsDisconnectionFlow=" + IsDisconnectionFlow : props.basePath + "/success/" + businessService + "/" + (resposne === null || resposne === void 0 ? void 0 : (_resposne$Payments$3 = resposne.Payments[0]) === null || _resposne$Payments$3 === void 0 ? void 0 : (_resposne$Payments$3$ = _resposne$Payments$3.paymentDetails[0]) === null || _resposne$Payments$3$ === void 0 ? void 0 : _resposne$Payments$3$.receiptNumber.replace(/\//g, "%2F")) + "/" + (resposne === null || resposne === void 0 ? void 0 : (_resposne$Payments$4 = resposne.Payments[0]) === null || _resposne$Payments$4 === void 0 ? void 0 : (_resposne$Payments$4$ = _resposne$Payments$4.paymentDetails[0]) === null || _resposne$Payments$4$ === void 0 ? void 0 : (_resposne$Payments$4$2 = _resposne$Payments$4$.bill) === null || _resposne$Payments$4$2 === void 0 ? void 0 : _resposne$Payments$4$2.consumerCode) + "?IsDisconnectionFlow=" + IsDisconnectionFlow);
|
|
4640
4601
|
});
|
|
4641
4602
|
}, function (error) {
|
|
4642
4603
|
var _setToast, _error$response, _error$response$data, _error$response$data$;
|
|
@@ -4667,7 +4628,7 @@ const CollectPayment = props => {
|
|
|
4667
4628
|
marginBottom: 0,
|
|
4668
4629
|
textAlign: "right"
|
|
4669
4630
|
}
|
|
4670
|
-
}, " ",
|
|
4631
|
+
}, " ", "\u20B9 " + (bill === null || bill === void 0 ? void 0 : bill.totalAmount), " ")
|
|
4671
4632
|
}]
|
|
4672
4633
|
}, {
|
|
4673
4634
|
head: t("PAYMENT_PAID_BY_HEAD"),
|
|
@@ -4802,7 +4763,7 @@ const CollectPayment = props => {
|
|
|
4802
4763
|
}
|
|
4803
4764
|
}), toast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
4804
4765
|
error: toast.key === "error",
|
|
4805
|
-
label: t(toast.key === "success" ?
|
|
4766
|
+
label: t(toast.key === "success" ? "ES_" + businessService.split(".")[0].toLowerCase() + "_" + toast.action + "_UPDATE_SUCCESS" : toast.action),
|
|
4806
4767
|
onClose: () => setToast(null),
|
|
4807
4768
|
style: {
|
|
4808
4769
|
maxWidth: "670px"
|
|
@@ -6299,7 +6260,7 @@ const convertEpochToDate$1 = dateEpoch => {
|
|
|
6299
6260
|
let year = dateFromApi.getFullYear();
|
|
6300
6261
|
month = (month > 9 ? "" : "0") + month;
|
|
6301
6262
|
day = (day > 9 ? "" : "0") + day;
|
|
6302
|
-
return
|
|
6263
|
+
return day + "/" + month + "/" + year;
|
|
6303
6264
|
} else {
|
|
6304
6265
|
return "NA";
|
|
6305
6266
|
}
|
|
@@ -6317,7 +6278,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
6317
6278
|
const [displayMenu, setDisplayMenu] = React.useState(false);
|
|
6318
6279
|
const [selectedAction, setSelectedAction] = React.useState(null);
|
|
6319
6280
|
const isFSMResponse = (_location = location) === null || _location === void 0 ? void 0 : (_location$pathname = _location.pathname) === null || _location$pathname === void 0 ? void 0 : _location$pathname.includes("payment/success/FSM.TRIP_CHARGES");
|
|
6320
|
-
const combineResponseFSM = isFSMResponse ?
|
|
6281
|
+
const combineResponseFSM = isFSMResponse ? t("PAYMENT_COLLECT_LABEL") + " / " + t("PAYMENT_COLLECT") : t("PAYMENT_LOCALIZATION_RESPONSE");
|
|
6321
6282
|
props.setLink(combineResponseFSM);
|
|
6322
6283
|
let {
|
|
6323
6284
|
consumerCode,
|
|
@@ -6386,7 +6347,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
6386
6347
|
case "GO_TO_HOME":
|
|
6387
6348
|
return history.push("/digit-ui/employee");
|
|
6388
6349
|
case "ASSIGN_TO_DSO":
|
|
6389
|
-
return history.push(
|
|
6350
|
+
return history.push("/digit-ui/employee/fsm/application-details/" + consumerCode);
|
|
6390
6351
|
default:
|
|
6391
6352
|
return null;
|
|
6392
6353
|
}
|
|
@@ -6401,9 +6362,9 @@ const SuccessfulPayment$1 = props => {
|
|
|
6401
6362
|
if (businessService !== null && businessService !== void 0 && businessService.includes("BPA")) {
|
|
6402
6363
|
let nameOfAchitect = sessionStorage.getItem("BPA_ARCHITECT_NAME");
|
|
6403
6364
|
let parsedArchitectName = nameOfAchitect ? JSON.parse(nameOfAchitect) : "ARCHITECT";
|
|
6404
|
-
return t(
|
|
6365
|
+
return t("ES_PAYMENT_" + businessService + "_" + parsedArchitectName + "_SUCCESSFUL_DESCRIPTION");
|
|
6405
6366
|
} else if (businessService !== null && businessService !== void 0 && businessService.includes("WS") || businessService !== null && businessService !== void 0 && businessService.includes("SW")) {
|
|
6406
|
-
return t(
|
|
6367
|
+
return t("ES_PAYMENT_WS_" + (businessService === null || businessService === void 0 ? void 0 : businessService.replace(/\./g, "_")) + "_SUCCESSFUL_DESCRIPTION");
|
|
6407
6368
|
} else {
|
|
6408
6369
|
return t("ES_PAYMENT_SUCCESSFUL_DESCRIPTION");
|
|
6409
6370
|
}
|
|
@@ -6518,12 +6479,9 @@ const SuccessfulPayment$1 = props => {
|
|
|
6518
6479
|
edcrData = edcrResponse === null || edcrResponse === void 0 ? void 0 : (_edcrResponse$edcrDet = edcrResponse.edcrDetail) === null || _edcrResponse$edcrDet === void 0 ? void 0 : _edcrResponse$edcrDet[0];
|
|
6519
6480
|
let currentDate = new Date();
|
|
6520
6481
|
bpaData.additionalDetails.runDate = convertDateToEpoch(currentDate.getFullYear() + "-" + (currentDate.getMonth() + 1) + "-" + currentDate.getDate());
|
|
6521
|
-
let reqData = {
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
...edcrData
|
|
6525
|
-
}]
|
|
6526
|
-
};
|
|
6482
|
+
let reqData = _extends({}, bpaData, {
|
|
6483
|
+
edcrDetail: [_extends({}, edcrData)]
|
|
6484
|
+
});
|
|
6527
6485
|
const state = Digit.ULBService.getStateId();
|
|
6528
6486
|
let count = 0;
|
|
6529
6487
|
for (let i = 0; i < (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length); i++) {
|
|
@@ -6557,9 +6515,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
6557
6515
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
6558
6516
|
reqData["applicationType"] = data === null || data === void 0 ? void 0 : (_data$7 = data[0]) === null || _data$7 === void 0 ? void 0 : (_data$7$additionalDet = _data$7.additionalDetails) === null || _data$7$additionalDet === void 0 ? void 0 : _data$7$additionalDet.applicationType;
|
|
6559
6517
|
return Promise.resolve(Digit.OBPSService.edcr_report_download({
|
|
6560
|
-
BPA: {
|
|
6561
|
-
...reqData
|
|
6562
|
-
}
|
|
6518
|
+
BPA: _extends({}, reqData)
|
|
6563
6519
|
})).then(function (edcrResponseData) {
|
|
6564
6520
|
const responseStatus = parseInt(edcrResponseData.status, 10);
|
|
6565
6521
|
if (responseStatus === 201 || responseStatus === 200) {
|
|
@@ -6567,7 +6523,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
6567
6523
|
type: "application/pdf"
|
|
6568
6524
|
})) : downloadPdf(new Blob([edcrResponseData.data], {
|
|
6569
6525
|
type: "application/pdf"
|
|
6570
|
-
}),
|
|
6526
|
+
}), "edcrReport.pdf");
|
|
6571
6527
|
}
|
|
6572
6528
|
});
|
|
6573
6529
|
});
|
|
@@ -6628,22 +6584,19 @@ const SuccessfulPayment$1 = props => {
|
|
|
6628
6584
|
const _temp3 = function () {
|
|
6629
6585
|
if (payments.Payments[0].paymentDetails[0].businessService.includes("BPA")) {
|
|
6630
6586
|
const designation = ulbType === "Municipal Corporation" ? "Municipal Commissioner" : "Executive Officer";
|
|
6631
|
-
const updatedpayments = {
|
|
6632
|
-
...payments,
|
|
6587
|
+
const updatedpayments = _extends({}, payments, {
|
|
6633
6588
|
payments: payments.Payments.map((payment, index) => {
|
|
6634
6589
|
if (index === 0) {
|
|
6635
|
-
return {
|
|
6636
|
-
|
|
6637
|
-
additionalDetails: {
|
|
6638
|
-
...payment.additionalDetails,
|
|
6590
|
+
return _extends({}, payment, {
|
|
6591
|
+
additionalDetails: _extends({}, payment.additionalDetails, {
|
|
6639
6592
|
designation: designation,
|
|
6640
6593
|
ulbType: ulbType
|
|
6641
|
-
}
|
|
6642
|
-
};
|
|
6594
|
+
})
|
|
6595
|
+
});
|
|
6643
6596
|
}
|
|
6644
6597
|
return payment;
|
|
6645
6598
|
})
|
|
6646
|
-
};
|
|
6599
|
+
});
|
|
6647
6600
|
return Promise.resolve(Digit.PaymentService.generatePdf(state, {
|
|
6648
6601
|
Payments: updatedpayments.payments
|
|
6649
6602
|
}, generatePdfKey)).then(function (_Digit$PaymentService2) {
|
|
@@ -7047,7 +7000,7 @@ const middleWare_3 = function (data, _break, _next) {
|
|
|
7047
7000
|
const _temp3 = function () {
|
|
7048
7001
|
if (data.b === "b") {
|
|
7049
7002
|
const _temp2 = _catch(function () {
|
|
7050
|
-
return Promise.resolve(window.fetch(
|
|
7003
|
+
return Promise.resolve(window.fetch("https://ifsc.razorpay.com/hdfc0000090")).then(function (res) {
|
|
7051
7004
|
const _temp = function () {
|
|
7052
7005
|
if (res.ok) {
|
|
7053
7006
|
return Promise.resolve(res.json()).then(function (_ref) {
|
|
@@ -7149,7 +7102,7 @@ const testForm = {
|
|
|
7149
7102
|
setBankDetailsFromIFSC: function (props) {
|
|
7150
7103
|
try {
|
|
7151
7104
|
const _temp6 = _catch(function () {
|
|
7152
|
-
return Promise.resolve(window.fetch(
|
|
7105
|
+
return Promise.resolve(window.fetch("https://ifsc.razorpay.com/" + props.getValues("ifsc"))).then(function (res) {
|
|
7153
7106
|
const _temp5 = function () {
|
|
7154
7107
|
if (res.ok) {
|
|
7155
7108
|
return Promise.resolve(res.json()).then(function (_ref2) {
|
|
@@ -7241,7 +7194,7 @@ const IFrameInterface = props => {
|
|
|
7241
7194
|
const domain = isOrign ? process.env.NODE_ENV === "development" ? "https://qa.digit.org" : document.location.origin : pageObject === null || pageObject === void 0 ? void 0 : pageObject["domain"];
|
|
7242
7195
|
const contextPath = (pageObject === null || pageObject === void 0 ? void 0 : pageObject["routePath"]) || "";
|
|
7243
7196
|
const title = (pageObject === null || pageObject === void 0 ? void 0 : pageObject["title"]) || "";
|
|
7244
|
-
let url =
|
|
7197
|
+
let url = "" + domain + contextPath;
|
|
7245
7198
|
setUrl(url);
|
|
7246
7199
|
setTitle(title);
|
|
7247
7200
|
}, [data, moduleName, pageName]);
|
|
@@ -7288,21 +7241,21 @@ const EmployeePayment = _ref => {
|
|
|
7288
7241
|
marginLeft: "15px"
|
|
7289
7242
|
}
|
|
7290
7243
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
7291
|
-
to:
|
|
7244
|
+
to: "/digit-ui/employee"
|
|
7292
7245
|
}, t("ES_COMMON_HOME")), isFsm ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
7293
|
-
to:
|
|
7246
|
+
to: "/digit-ui/employee/fsm/home"
|
|
7294
7247
|
}, "/ ", t("ES_TITLE_FSM"), " ") : null, isFsm ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
7295
|
-
to:
|
|
7248
|
+
to: "/digit-ui/employee/fsm/inbox"
|
|
7296
7249
|
}, "/ ", t("ES_TITLE_INBOX")) : null, "/ ", link), /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
7297
|
-
path:
|
|
7250
|
+
path: currentPath + "/collect/:businessService/:consumerCode"
|
|
7298
7251
|
}, /*#__PURE__*/React__default.createElement(CollectPayment, _extends({}, commonProps, {
|
|
7299
7252
|
basePath: currentPath
|
|
7300
7253
|
}))), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
7301
|
-
path:
|
|
7254
|
+
path: currentPath + "/success/:businessService/:receiptNumber/:consumerCode"
|
|
7302
7255
|
}, /*#__PURE__*/React__default.createElement(SuccessfulPayment$1, commonProps)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
7303
|
-
path:
|
|
7256
|
+
path: currentPath + "/integration/:moduleName/:pageName"
|
|
7304
7257
|
}, /*#__PURE__*/React__default.createElement(IFrameInterface, commonProps)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
7305
|
-
path:
|
|
7258
|
+
path: currentPath + "/failure"
|
|
7306
7259
|
}, /*#__PURE__*/React__default.createElement(FailedPayment$1, commonProps))));
|
|
7307
7260
|
};
|
|
7308
7261
|
|