@hmcts/ccpay-web-component 5.2.9-beta02 → 5.2.10
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/bundles/hmcts-ccpay-web-component.umd.js +63 -73
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +26 -24
- package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +36 -49
- package/esm2015/lib/services/payment-view/payment-view.service.js +1 -1
- package/fesm2015/hmcts-ccpay-web-component.js +61 -71
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/pba-payment/pba-payment.component.d.ts.map +1 -1
- package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts +0 -2
- package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4122,7 +4122,6 @@
|
|
|
4122
4122
|
this.paymentLibComponent = paymentLibComponent;
|
|
4123
4123
|
this.paymentViewService = paymentViewService;
|
|
4124
4124
|
this.OrderslistService = OrderslistService;
|
|
4125
|
-
this.FEE_RECORDS_EXISTS = false;
|
|
4126
4125
|
this.selectedUnprocessedFeeEvent = new i0.EventEmitter();
|
|
4127
4126
|
this.getUnprocessedFeeCount = new i0.EventEmitter();
|
|
4128
4127
|
this.viewStatus = 'main';
|
|
@@ -4140,6 +4139,7 @@
|
|
|
4140
4139
|
this.unassignedRecordListLength = 0;
|
|
4141
4140
|
}
|
|
4142
4141
|
UnprocessedPaymentsComponent.prototype.ngOnInit = function () {
|
|
4142
|
+
var _this = this;
|
|
4143
4143
|
// Todo ...
|
|
4144
4144
|
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
4145
4145
|
this.selectedOption = this.paymentLibComponent.SELECTED_OPTION.toLocaleLowerCase();
|
|
@@ -4147,61 +4147,47 @@
|
|
|
4147
4147
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
4148
4148
|
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
4149
4149
|
this.isStFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
4150
|
+
this.OrderslistService.getFeeExists().subscribe(function (data) { return _this.FEE_RECORDS_EXISTS = data; });
|
|
4150
4151
|
this.getUnassignedPaymentlist();
|
|
4151
4152
|
};
|
|
4152
4153
|
UnprocessedPaymentsComponent.prototype.getUnassignedPaymentlist = function () {
|
|
4154
|
+
var _this = this;
|
|
4153
4155
|
if (this.selectedOption === 'dcn') {
|
|
4154
|
-
this.
|
|
4156
|
+
this.bulkScaningPaymentService.getBSPaymentsByDCN(this.dcnNumber).subscribe(function (unassignedPayments) {
|
|
4157
|
+
// unassignedPayments['data'].map(data => data.expandable=false);
|
|
4158
|
+
if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
|
|
4159
|
+
_this.setValuesForUnassignedRecord(unassignedPayments['data']);
|
|
4160
|
+
}
|
|
4161
|
+
else if (unassignedPayments['payments']) {
|
|
4162
|
+
_this.setValuesForUnassignedRecord(unassignedPayments);
|
|
4163
|
+
}
|
|
4164
|
+
else {
|
|
4165
|
+
_this.upPaymentErrorMessage = 'error';
|
|
4166
|
+
_this.getUnprocessedFeeCount.emit('0');
|
|
4167
|
+
}
|
|
4168
|
+
}, function (error) {
|
|
4169
|
+
_this.upPaymentErrorMessage = error;
|
|
4170
|
+
_this.getUnprocessedFeeCount.emit('0');
|
|
4171
|
+
});
|
|
4155
4172
|
}
|
|
4156
4173
|
else {
|
|
4157
|
-
this.
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
_this.upPaymentErrorMessage =
|
|
4171
|
-
_this.getUnprocessedFeeCount.emit('0');
|
|
4172
|
-
}
|
|
4173
|
-
return _this.OrderslistService.getFeeExists();
|
|
4174
|
-
})).subscribe(function (data) {
|
|
4175
|
-
if (data !== null) {
|
|
4176
|
-
_this.FEE_RECORDS_EXISTS = data;
|
|
4177
|
-
}
|
|
4178
|
-
}, function (error) {
|
|
4179
|
-
_this.upPaymentErrorMessage = error;
|
|
4180
|
-
_this.getUnprocessedFeeCount.emit('0');
|
|
4181
|
-
});
|
|
4182
|
-
};
|
|
4183
|
-
UnprocessedPaymentsComponent.prototype.getBSPaymentsByCCDandFee = function () {
|
|
4184
|
-
var _this = this;
|
|
4185
|
-
this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).pipe(operators.switchMap(function (unassignedPayments) {
|
|
4186
|
-
if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
|
|
4187
|
-
_this.setValuesForUnassignedRecord(unassignedPayments['data']);
|
|
4188
|
-
}
|
|
4189
|
-
else if (unassignedPayments['payments']) {
|
|
4190
|
-
_this.setValuesForUnassignedRecord(unassignedPayments);
|
|
4191
|
-
}
|
|
4192
|
-
else {
|
|
4193
|
-
_this.upPaymentErrorMessage = 'error';
|
|
4174
|
+
this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).subscribe(function (unassignedPayments) {
|
|
4175
|
+
// unassignedPayments['data'].map(data => data.expandable=false);
|
|
4176
|
+
if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
|
|
4177
|
+
_this.setValuesForUnassignedRecord(unassignedPayments['data']);
|
|
4178
|
+
}
|
|
4179
|
+
else if (unassignedPayments['payments']) {
|
|
4180
|
+
_this.setValuesForUnassignedRecord(unassignedPayments);
|
|
4181
|
+
}
|
|
4182
|
+
else {
|
|
4183
|
+
_this.upPaymentErrorMessage = 'error';
|
|
4184
|
+
_this.getUnprocessedFeeCount.emit('0');
|
|
4185
|
+
}
|
|
4186
|
+
}, function (error) {
|
|
4187
|
+
_this.upPaymentErrorMessage = error;
|
|
4194
4188
|
_this.getUnprocessedFeeCount.emit('0');
|
|
4195
|
-
}
|
|
4196
|
-
|
|
4197
|
-
})).subscribe(function (data) {
|
|
4198
|
-
if (data !== null) {
|
|
4199
|
-
_this.FEE_RECORDS_EXISTS = data;
|
|
4200
|
-
}
|
|
4201
|
-
}, function (error) {
|
|
4202
|
-
_this.upPaymentErrorMessage = error;
|
|
4203
|
-
_this.getUnprocessedFeeCount.emit('0');
|
|
4204
|
-
});
|
|
4189
|
+
});
|
|
4190
|
+
}
|
|
4205
4191
|
};
|
|
4206
4192
|
UnprocessedPaymentsComponent.prototype.setValuesForUnassignedRecord = function (unassignedPayments) {
|
|
4207
4193
|
this.unassignedRecordList = unassignedPayments.payments;
|
|
@@ -4212,6 +4198,7 @@
|
|
|
4212
4198
|
if (unassignedPayments['ccd_reference'] === undefined) {
|
|
4213
4199
|
this.isExceptionCase = true;
|
|
4214
4200
|
}
|
|
4201
|
+
// this.isRecordExist = this.unassignedRecordList.length === 0;
|
|
4215
4202
|
this.getUnprocessedFeeCount.emit(this.unassignedRecordList.length);
|
|
4216
4203
|
this.unprocessedPaymentSelectEvent(this.unassignedRecordList);
|
|
4217
4204
|
};
|
|
@@ -4286,6 +4273,7 @@
|
|
|
4286
4273
|
this.isAllocateToExistingFeebtnEnabled = false;
|
|
4287
4274
|
this.isAllocatedToNewFeebtnEnabled = false;
|
|
4288
4275
|
this.isMarkAsUnidentifiedbtnEnabled = false;
|
|
4276
|
+
//this.validateButtons();
|
|
4289
4277
|
this.selectedUnprocessedFeeEvent.emit('');
|
|
4290
4278
|
};
|
|
4291
4279
|
UnprocessedPaymentsComponent.prototype.showDetailRow = function (event, obj, i) {
|
|
@@ -7252,30 +7240,32 @@
|
|
|
7252
7240
|
this.isPBAAccountPaymentSuccess = false;
|
|
7253
7241
|
this.isContinueButtondisabled = true;
|
|
7254
7242
|
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
7255
|
-
var
|
|
7256
|
-
|
|
7257
|
-
.
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7243
|
+
var requestBody_1 = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
|
|
7244
|
+
setTimeout(function () {
|
|
7245
|
+
_this.paymentViewService.postPBAaccountPayment(_this.pbaPayOrderRef.orderRefId, requestBody_1)
|
|
7246
|
+
.subscribe(function (r) {
|
|
7247
|
+
try {
|
|
7248
|
+
_this.pbaAccountrPaymentResult = JSON.parse(r);
|
|
7249
|
+
}
|
|
7250
|
+
catch (e) {
|
|
7251
|
+
_this.pbaAccountrPaymentResult = r;
|
|
7252
|
+
}
|
|
7253
|
+
_this.isPBAAccountPaymentSuccess = true;
|
|
7254
|
+
}, function (e) {
|
|
7255
|
+
if (e.status == '402') {
|
|
7256
|
+
_this.isInSufficiantFund = true;
|
|
7257
|
+
}
|
|
7258
|
+
else if (e.status == '410') {
|
|
7259
|
+
_this.isPBAAccountNotExist = true;
|
|
7260
|
+
}
|
|
7261
|
+
else if (e.status == '412') {
|
|
7262
|
+
_this.isPBAAccountHold = true;
|
|
7263
|
+
}
|
|
7264
|
+
else {
|
|
7265
|
+
_this.isPBAServerError = true;
|
|
7266
|
+
}
|
|
7267
|
+
});
|
|
7268
|
+
}, 5000);
|
|
7279
7269
|
}
|
|
7280
7270
|
else {
|
|
7281
7271
|
this.isPBAServerError = true;
|