@hmcts/ccpay-web-component 5.2.8-beta06 → 5.2.9-1
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 +45 -44
- 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 +17 -19
- package/esm2015/lib/services/payment-view/payment-view.service.js +1 -1
- package/fesm2015/hmcts-ccpay-web-component.js +41 -41
- package/fesm2015/hmcts-ccpay-web-component.js.map +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.map +1 -1
- package/package.json +1 -1
|
@@ -4248,27 +4248,26 @@
|
|
|
4248
4248
|
}
|
|
4249
4249
|
};
|
|
4250
4250
|
UnprocessedPaymentsComponent.prototype.validateButtons = function () {
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
this.isAllocatedToNewFeebtnEnabled = true;
|
|
4251
|
+
var _this = this;
|
|
4252
|
+
setTimeout(function () {
|
|
4253
|
+
if (_this.isUnprocessedRecordSelected && _this.isExceptionCase) {
|
|
4254
|
+
_this.isMarkAsUnidentifiedbtnEnabled = true;
|
|
4255
|
+
}
|
|
4256
|
+
else if (_this.isUnprocessedRecordSelected && !_this.isExceptionCase && !_this.FEE_RECORDS_EXISTS) {
|
|
4257
|
+
_this.isAllocateToExistingFeebtnEnabled = false;
|
|
4258
|
+
_this.isAllocatedToNewFeebtnEnabled = true;
|
|
4259
|
+
}
|
|
4260
|
+
else if (_this.isUnprocessedRecordSelected && !_this.isExceptionCase && _this.FEE_RECORDS_EXISTS) {
|
|
4261
|
+
if (!_this.ISTURNOFF) {
|
|
4262
|
+
_this.isAllocateToExistingFeebtnEnabled = true;
|
|
4263
|
+
_this.isAllocatedToNewFeebtnEnabled = false;
|
|
4264
|
+
}
|
|
4265
|
+
else {
|
|
4266
|
+
_this.isAllocateToExistingFeebtnEnabled = _this.IS_OS_AMT_AVAILABLE;
|
|
4267
|
+
_this.isAllocatedToNewFeebtnEnabled = true;
|
|
4268
|
+
}
|
|
4270
4269
|
}
|
|
4271
|
-
}
|
|
4270
|
+
}, 4000);
|
|
4272
4271
|
};
|
|
4273
4272
|
UnprocessedPaymentsComponent.prototype.unprocessedPaymentUnSelectEvent = function (event) {
|
|
4274
4273
|
event.preventDefault();
|
|
@@ -7250,30 +7249,32 @@
|
|
|
7250
7249
|
this.isPBAAccountPaymentSuccess = false;
|
|
7251
7250
|
this.isContinueButtondisabled = true;
|
|
7252
7251
|
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
7253
|
-
var
|
|
7254
|
-
|
|
7255
|
-
.
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7252
|
+
var requestBody_1 = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
|
|
7253
|
+
setTimeout(function () {
|
|
7254
|
+
_this.paymentViewService.postPBAaccountPayment(_this.pbaPayOrderRef.orderRefId, requestBody_1)
|
|
7255
|
+
.subscribe(function (r) {
|
|
7256
|
+
try {
|
|
7257
|
+
_this.pbaAccountrPaymentResult = JSON.parse(r);
|
|
7258
|
+
}
|
|
7259
|
+
catch (e) {
|
|
7260
|
+
_this.pbaAccountrPaymentResult = r;
|
|
7261
|
+
}
|
|
7262
|
+
_this.isPBAAccountPaymentSuccess = true;
|
|
7263
|
+
}, function (e) {
|
|
7264
|
+
if (e.status == '402') {
|
|
7265
|
+
_this.isInSufficiantFund = true;
|
|
7266
|
+
}
|
|
7267
|
+
else if (e.status == '410') {
|
|
7268
|
+
_this.isPBAAccountNotExist = true;
|
|
7269
|
+
}
|
|
7270
|
+
else if (e.status == '412') {
|
|
7271
|
+
_this.isPBAAccountHold = true;
|
|
7272
|
+
}
|
|
7273
|
+
else {
|
|
7274
|
+
_this.isPBAServerError = true;
|
|
7275
|
+
}
|
|
7276
|
+
});
|
|
7277
|
+
}, 5000);
|
|
7277
7278
|
}
|
|
7278
7279
|
else {
|
|
7279
7280
|
this.isPBAServerError = true;
|