@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.
@@ -4248,27 +4248,26 @@
4248
4248
  }
4249
4249
  };
4250
4250
  UnprocessedPaymentsComponent.prototype.validateButtons = function () {
4251
- if (this.isUnprocessedRecordSelected && this.isExceptionCase) {
4252
- this.isMarkAsUnidentifiedbtnEnabled = true;
4253
- }
4254
- else if (this.isUnprocessedRecordSelected && !this.isExceptionCase && !this.FEE_RECORDS_EXISTS) {
4255
- //SNI-3692 - WIP
4256
- //} else if ( this.isUnprocessedRecordSelected && !this.isExceptionCase && this.FEE_RECORDS_EXISTS!== null && !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
- //SNI-3692 - WIP
4262
- //} else if( this.isUnprocessedRecordSelected && !this.isExceptionCase && (this.FEE_RECORDS_EXISTS === null || this.FEE_RECORDS_EXISTS) ) {
4263
- if (!this.ISTURNOFF) {
4264
- this.isAllocateToExistingFeebtnEnabled = true;
4265
- this.isAllocatedToNewFeebtnEnabled = false;
4266
- }
4267
- else {
4268
- this.isAllocateToExistingFeebtnEnabled = this.IS_OS_AMT_AVAILABLE;
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 requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
7254
- this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
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
- });
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;