@djb25/digit-ui-module-common 1.0.2 → 1.0.4
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 +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1356,7 +1356,7 @@ const SelectPaymentType$1 = props => {
|
|
|
1356
1356
|
const billDetails = paymentdetails !== null && paymentdetails !== void 0 && (_paymentdetails$Bill = paymentdetails.Bill) !== null && _paymentdetails$Bill !== void 0 && _paymentdetails$Bill.length ? paymentdetails === null || paymentdetails === void 0 ? void 0 : paymentdetails.Bill[0] : {};
|
|
1357
1357
|
const onSubmit = function (d) {
|
|
1358
1358
|
try {
|
|
1359
|
-
var _userInfo$info, _userInfo$info2;
|
|
1359
|
+
var _userInfo$info, _userInfo$info2, _userInfo$info3, _userInfo$info4, _userInfo$info5;
|
|
1360
1360
|
const filterData = {
|
|
1361
1361
|
Transaction: {
|
|
1362
1362
|
tenantId: billDetails === null || billDetails === void 0 ? void 0 : billDetails.tenantId,
|
|
@@ -1371,10 +1371,12 @@ const SelectPaymentType$1 = props => {
|
|
|
1371
1371
|
amountPaid: paymentAmount || billDetails.totalAmount
|
|
1372
1372
|
}],
|
|
1373
1373
|
user: {
|
|
1374
|
-
|
|
1375
|
-
|
|
1374
|
+
uuid: (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info = userInfo.info) === null || _userInfo$info === void 0 ? void 0 : _userInfo$info.uuid) || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.payerId),
|
|
1375
|
+
name: name || (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info2 = userInfo.info) === null || _userInfo$info2 === void 0 ? void 0 : _userInfo$info2.name) || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.payerName),
|
|
1376
|
+
mobileNumber: mobileNumber || (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info3 = userInfo.info) === null || _userInfo$info3 === void 0 ? void 0 : _userInfo$info3.mobileNumber) || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.mobileNumber),
|
|
1376
1377
|
tenantId: billDetails === null || billDetails === void 0 ? void 0 : billDetails.tenantId,
|
|
1377
|
-
emailId:
|
|
1378
|
+
emailId: (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info4 = userInfo.info) === null || _userInfo$info4 === void 0 ? void 0 : _userInfo$info4.emailId) || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.emailId),
|
|
1379
|
+
username: (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info5 = userInfo.info) === null || _userInfo$info5 === void 0 ? void 0 : _userInfo$info5.userName) || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.userName)
|
|
1378
1380
|
},
|
|
1379
1381
|
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,
|
|
1380
1382
|
additionalDetails: {
|
|
@@ -5137,7 +5139,7 @@ const BillDetails$1 = _ref => {
|
|
|
5137
5139
|
const _excluded$2 = ["ManualRecieptDetails", "paymentModeDetails"],
|
|
5138
5140
|
_excluded2 = ["errorObj"];
|
|
5139
5141
|
const CollectPayment = props => {
|
|
5140
|
-
var _businessService$toUp;
|
|
5142
|
+
var _paymentdetails$Bill, _businessService$toUp;
|
|
5141
5143
|
const _Digit$Hooks$useQuery = Digit.Hooks.useQueryParams(),
|
|
5142
5144
|
ModuleWorkflow = _Digit$Hooks$useQuery.workflow,
|
|
5143
5145
|
IsDisconnectionFlow = _Digit$Hooks$useQuery.IsDisconnectionFlow;
|
|
@@ -5165,7 +5167,7 @@ const CollectPayment = props => {
|
|
|
5165
5167
|
}),
|
|
5166
5168
|
paymentdetails = _Digit$Hooks$useFetch.data,
|
|
5167
5169
|
isLoading = _Digit$Hooks$useFetch.isLoading;
|
|
5168
|
-
const bill = paymentdetails
|
|
5170
|
+
const bill = (paymentdetails === null || paymentdetails === void 0 ? void 0 : (_paymentdetails$Bill = paymentdetails.Bill) === null || _paymentdetails$Bill === void 0 ? void 0 : _paymentdetails$Bill.length) > 0 ? paymentdetails === null || paymentdetails === void 0 ? void 0 : paymentdetails.Bill[0] : {};
|
|
5169
5171
|
const _Digit$Hooks$fsm$useS = Digit.Hooks.fsm.useSearch(tenantId, {
|
|
5170
5172
|
applicationNos: consumerCode
|
|
5171
5173
|
}, {
|
|
@@ -5500,7 +5502,7 @@ const CollectPayment = props => {
|
|
|
5500
5502
|
onSubmit: onSubmit,
|
|
5501
5503
|
formState: formState,
|
|
5502
5504
|
defaultValues: getDefaultValues(),
|
|
5503
|
-
isDisabled: (IsDisconnectionFlow ? false : businessService === "SW" || "WS" ? false : bill !== null && bill !== void 0 && bill.totalAmount ? !bill.totalAmount > 0 : true) || timerEnabledForBusinessService(businessService) && Time === 0,
|
|
5505
|
+
isDisabled: (IsDisconnectionFlow ? false : businessService === "SW" || businessService === "WS" ? false : bill !== null && bill !== void 0 && bill.totalAmount ? !bill.totalAmount > 0 : true) || timerEnabledForBusinessService(businessService) && Time === 0,
|
|
5504
5506
|
onFormValueChange: (setValue, formValue) => {
|
|
5505
5507
|
if (!isEqual_1(formValue.paymentMode, selectedPaymentMode)) {
|
|
5506
5508
|
setFormState(formValue);
|