@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
|
@@ -4,7 +4,7 @@ import { BehaviorSubject, throwError } from 'rxjs';
|
|
|
4
4
|
import * as i1 from '@angular/common/http';
|
|
5
5
|
import { HttpClient, HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
6
6
|
import { Location, formatDate, CommonModule } from '@angular/common';
|
|
7
|
-
import { catchError
|
|
7
|
+
import { catchError } from 'rxjs/operators';
|
|
8
8
|
import * as i5 from '@angular/platform-browser';
|
|
9
9
|
import { Meta, DomSanitizer } from '@angular/platform-browser';
|
|
10
10
|
import { FormControl, Validators, FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -3678,7 +3678,6 @@ class UnprocessedPaymentsComponent {
|
|
|
3678
3678
|
this.paymentLibComponent = paymentLibComponent;
|
|
3679
3679
|
this.paymentViewService = paymentViewService;
|
|
3680
3680
|
this.OrderslistService = OrderslistService;
|
|
3681
|
-
this.FEE_RECORDS_EXISTS = false;
|
|
3682
3681
|
this.selectedUnprocessedFeeEvent = new EventEmitter();
|
|
3683
3682
|
this.getUnprocessedFeeCount = new EventEmitter();
|
|
3684
3683
|
this.viewStatus = 'main';
|
|
@@ -3703,59 +3702,46 @@ class UnprocessedPaymentsComponent {
|
|
|
3703
3702
|
this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
|
|
3704
3703
|
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
3705
3704
|
this.isStFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
3705
|
+
this.OrderslistService.getFeeExists().subscribe((data) => this.FEE_RECORDS_EXISTS = data);
|
|
3706
3706
|
this.getUnassignedPaymentlist();
|
|
3707
3707
|
}
|
|
3708
3708
|
getUnassignedPaymentlist() {
|
|
3709
3709
|
if (this.selectedOption === 'dcn') {
|
|
3710
|
-
this.
|
|
3710
|
+
this.bulkScaningPaymentService.getBSPaymentsByDCN(this.dcnNumber).subscribe(unassignedPayments => {
|
|
3711
|
+
// unassignedPayments['data'].map(data => data.expandable=false);
|
|
3712
|
+
if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
|
|
3713
|
+
this.setValuesForUnassignedRecord(unassignedPayments['data']);
|
|
3714
|
+
}
|
|
3715
|
+
else if (unassignedPayments['payments']) {
|
|
3716
|
+
this.setValuesForUnassignedRecord(unassignedPayments);
|
|
3717
|
+
}
|
|
3718
|
+
else {
|
|
3719
|
+
this.upPaymentErrorMessage = 'error';
|
|
3720
|
+
this.getUnprocessedFeeCount.emit('0');
|
|
3721
|
+
}
|
|
3722
|
+
}, (error) => {
|
|
3723
|
+
this.upPaymentErrorMessage = error;
|
|
3724
|
+
this.getUnprocessedFeeCount.emit('0');
|
|
3725
|
+
});
|
|
3711
3726
|
}
|
|
3712
3727
|
else {
|
|
3713
|
-
this.
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
this.
|
|
3727
|
-
}
|
|
3728
|
-
return this.OrderslistService.getFeeExists();
|
|
3729
|
-
})).subscribe((data) => {
|
|
3730
|
-
if (data !== null) {
|
|
3731
|
-
this.FEE_RECORDS_EXISTS = data;
|
|
3732
|
-
}
|
|
3733
|
-
}, (error) => {
|
|
3734
|
-
this.upPaymentErrorMessage = error;
|
|
3735
|
-
this.getUnprocessedFeeCount.emit('0');
|
|
3736
|
-
});
|
|
3737
|
-
}
|
|
3738
|
-
getBSPaymentsByCCDandFee() {
|
|
3739
|
-
this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).pipe(switchMap((unassignedPayments) => {
|
|
3740
|
-
if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
|
|
3741
|
-
this.setValuesForUnassignedRecord(unassignedPayments['data']);
|
|
3742
|
-
}
|
|
3743
|
-
else if (unassignedPayments['payments']) {
|
|
3744
|
-
this.setValuesForUnassignedRecord(unassignedPayments);
|
|
3745
|
-
}
|
|
3746
|
-
else {
|
|
3747
|
-
this.upPaymentErrorMessage = 'error';
|
|
3728
|
+
this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).subscribe(unassignedPayments => {
|
|
3729
|
+
// unassignedPayments['data'].map(data => data.expandable=false);
|
|
3730
|
+
if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
|
|
3731
|
+
this.setValuesForUnassignedRecord(unassignedPayments['data']);
|
|
3732
|
+
}
|
|
3733
|
+
else if (unassignedPayments['payments']) {
|
|
3734
|
+
this.setValuesForUnassignedRecord(unassignedPayments);
|
|
3735
|
+
}
|
|
3736
|
+
else {
|
|
3737
|
+
this.upPaymentErrorMessage = 'error';
|
|
3738
|
+
this.getUnprocessedFeeCount.emit('0');
|
|
3739
|
+
}
|
|
3740
|
+
}, (error) => {
|
|
3741
|
+
this.upPaymentErrorMessage = error;
|
|
3748
3742
|
this.getUnprocessedFeeCount.emit('0');
|
|
3749
|
-
}
|
|
3750
|
-
|
|
3751
|
-
})).subscribe((data) => {
|
|
3752
|
-
if (data !== null) {
|
|
3753
|
-
this.FEE_RECORDS_EXISTS = data;
|
|
3754
|
-
}
|
|
3755
|
-
}, (error) => {
|
|
3756
|
-
this.upPaymentErrorMessage = error;
|
|
3757
|
-
this.getUnprocessedFeeCount.emit('0');
|
|
3758
|
-
});
|
|
3743
|
+
});
|
|
3744
|
+
}
|
|
3759
3745
|
}
|
|
3760
3746
|
setValuesForUnassignedRecord(unassignedPayments) {
|
|
3761
3747
|
this.unassignedRecordList = unassignedPayments.payments;
|
|
@@ -3766,6 +3752,7 @@ class UnprocessedPaymentsComponent {
|
|
|
3766
3752
|
if (unassignedPayments['ccd_reference'] === undefined) {
|
|
3767
3753
|
this.isExceptionCase = true;
|
|
3768
3754
|
}
|
|
3755
|
+
// this.isRecordExist = this.unassignedRecordList.length === 0;
|
|
3769
3756
|
this.getUnprocessedFeeCount.emit(this.unassignedRecordList.length);
|
|
3770
3757
|
this.unprocessedPaymentSelectEvent(this.unassignedRecordList);
|
|
3771
3758
|
}
|
|
@@ -3840,6 +3827,7 @@ class UnprocessedPaymentsComponent {
|
|
|
3840
3827
|
this.isAllocateToExistingFeebtnEnabled = false;
|
|
3841
3828
|
this.isAllocatedToNewFeebtnEnabled = false;
|
|
3842
3829
|
this.isMarkAsUnidentifiedbtnEnabled = false;
|
|
3830
|
+
//this.validateButtons();
|
|
3843
3831
|
this.selectedUnprocessedFeeEvent.emit('');
|
|
3844
3832
|
}
|
|
3845
3833
|
showDetailRow(event, obj, i) {
|
|
@@ -6740,29 +6728,31 @@ class PbaPaymentComponent {
|
|
|
6740
6728
|
this.isContinueButtondisabled = true;
|
|
6741
6729
|
if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
|
|
6742
6730
|
const requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef, this.orgName);
|
|
6743
|
-
|
|
6744
|
-
.
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6731
|
+
setTimeout(() => {
|
|
6732
|
+
this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
|
|
6733
|
+
.subscribe(r => {
|
|
6734
|
+
try {
|
|
6735
|
+
this.pbaAccountrPaymentResult = JSON.parse(r);
|
|
6736
|
+
}
|
|
6737
|
+
catch (e) {
|
|
6738
|
+
this.pbaAccountrPaymentResult = r;
|
|
6739
|
+
}
|
|
6740
|
+
this.isPBAAccountPaymentSuccess = true;
|
|
6741
|
+
}, e => {
|
|
6742
|
+
if (e.status == '402') {
|
|
6743
|
+
this.isInSufficiantFund = true;
|
|
6744
|
+
}
|
|
6745
|
+
else if (e.status == '410') {
|
|
6746
|
+
this.isPBAAccountNotExist = true;
|
|
6747
|
+
}
|
|
6748
|
+
else if (e.status == '412') {
|
|
6749
|
+
this.isPBAAccountHold = true;
|
|
6750
|
+
}
|
|
6751
|
+
else {
|
|
6752
|
+
this.isPBAServerError = true;
|
|
6753
|
+
}
|
|
6754
|
+
});
|
|
6755
|
+
}, 5000);
|
|
6766
6756
|
}
|
|
6767
6757
|
else {
|
|
6768
6758
|
this.isPBAServerError = true;
|