@djb25/digit-ui-module-common 1.0.2 → 1.0.3
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 +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -5
- 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: {
|
|
@@ -5161,7 +5163,7 @@ const CollectPayment = props => {
|
|
|
5161
5163
|
const _Digit$Hooks$useFetch = Digit.Hooks.useFetchPayment({
|
|
5162
5164
|
tenantId: tenantId,
|
|
5163
5165
|
consumerCode,
|
|
5164
|
-
businessService
|
|
5166
|
+
businessService: "request-service.water_tanker"
|
|
5165
5167
|
}),
|
|
5166
5168
|
paymentdetails = _Digit$Hooks$useFetch.data,
|
|
5167
5169
|
isLoading = _Digit$Hooks$useFetch.isLoading;
|