@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.js
CHANGED
|
@@ -1359,7 +1359,7 @@ const SelectPaymentType$1 = props => {
|
|
|
1359
1359
|
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] : {};
|
|
1360
1360
|
const onSubmit = function (d) {
|
|
1361
1361
|
try {
|
|
1362
|
-
var _userInfo$info, _userInfo$info2;
|
|
1362
|
+
var _userInfo$info, _userInfo$info2, _userInfo$info3, _userInfo$info4, _userInfo$info5;
|
|
1363
1363
|
const filterData = {
|
|
1364
1364
|
Transaction: {
|
|
1365
1365
|
tenantId: billDetails === null || billDetails === void 0 ? void 0 : billDetails.tenantId,
|
|
@@ -1374,10 +1374,12 @@ const SelectPaymentType$1 = props => {
|
|
|
1374
1374
|
amountPaid: paymentAmount || billDetails.totalAmount
|
|
1375
1375
|
}],
|
|
1376
1376
|
user: {
|
|
1377
|
-
|
|
1378
|
-
|
|
1377
|
+
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),
|
|
1378
|
+
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),
|
|
1379
|
+
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),
|
|
1379
1380
|
tenantId: billDetails === null || billDetails === void 0 ? void 0 : billDetails.tenantId,
|
|
1380
|
-
emailId:
|
|
1381
|
+
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),
|
|
1382
|
+
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)
|
|
1381
1383
|
},
|
|
1382
1384
|
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,
|
|
1383
1385
|
additionalDetails: {
|
|
@@ -5164,7 +5166,7 @@ const CollectPayment = props => {
|
|
|
5164
5166
|
const _Digit$Hooks$useFetch = Digit.Hooks.useFetchPayment({
|
|
5165
5167
|
tenantId: tenantId,
|
|
5166
5168
|
consumerCode,
|
|
5167
|
-
businessService
|
|
5169
|
+
businessService: "request-service.water_tanker"
|
|
5168
5170
|
}),
|
|
5169
5171
|
paymentdetails = _Digit$Hooks$useFetch.data,
|
|
5170
5172
|
isLoading = _Digit$Hooks$useFetch.isLoading;
|