@hmcts/ccpay-web-component 5.0.1-beta10 → 5.0.1-beta105
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 +6407 -4949
- 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/hmcts-ccpay-web-component.js +41 -38
- package/esm2015/lib/components/add-remission/add-remission.component.js +274 -162
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +39 -39
- package/esm2015/lib/components/contact-details/contact-details.component.js +346 -0
- package/esm2015/lib/components/payment-view/payment-view.component.js +92 -18
- package/esm2015/lib/components/process-refund/process-refund.component.js +95 -9
- package/esm2015/lib/components/refund-list/refund-list.component.js +6 -12
- package/esm2015/lib/components/refund-status/refund-status.component.js +167 -74
- package/esm2015/lib/components/service-request/service-request.component.js +607 -0
- package/esm2015/lib/components/status-history/status-history.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +26 -9
- package/esm2015/lib/interfaces/IFee.js +3 -1
- package/esm2015/lib/interfaces/IPayment.js +3 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/IRefundList.js +3 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -2
- package/esm2015/lib/payment-lib.component.js +53 -6
- package/esm2015/lib/payment-lib.module.js +6 -2
- package/esm2015/lib/payment-lib.service.js +16 -1
- package/esm2015/lib/services/notification/notification.service.js +85 -0
- package/esm2015/lib/services/orderslist.service.js +193 -1
- package/esm2015/lib/services/refunds/refunds.service.js +10 -1
- package/esm2015/lib/services/shared/error-handler.service.js +31 -2
- package/esm5/hmcts-ccpay-web-component.js +41 -38
- package/esm5/lib/components/add-remission/add-remission.component.js +299 -163
- package/esm5/lib/components/case-transactions/case-transactions.component.js +39 -43
- package/esm5/lib/components/contact-details/contact-details.component.js +370 -0
- package/esm5/lib/components/payment-view/payment-view.component.js +96 -18
- package/esm5/lib/components/process-refund/process-refund.component.js +98 -9
- package/esm5/lib/components/refund-list/refund-list.component.js +6 -12
- package/esm5/lib/components/refund-status/refund-status.component.js +198 -85
- package/esm5/lib/components/service-request/service-request.component.js +679 -0
- package/esm5/lib/components/status-history/status-history.component.js +2 -2
- package/esm5/lib/components/table/table.component.js +25 -10
- package/esm5/lib/interfaces/IFee.js +3 -1
- package/esm5/lib/interfaces/IPayment.js +3 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/IRefundList.js +3 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
- package/esm5/lib/payment-lib.component.js +52 -6
- package/esm5/lib/payment-lib.module.js +6 -2
- package/esm5/lib/payment-lib.service.js +23 -1
- package/esm5/lib/services/notification/notification.service.js +89 -0
- package/esm5/lib/services/orderslist.service.js +256 -1
- package/esm5/lib/services/refunds/refunds.service.js +16 -1
- package/esm5/lib/services/shared/error-handler.service.js +31 -2
- package/fesm2015/hmcts-ccpay-web-component.js +1765 -496
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +7402 -5922
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +40 -37
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +22 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +2 -3
- package/lib/components/contact-details/contact-details.component.d.ts +41 -0
- package/lib/components/payment-view/payment-view.component.d.ts +12 -3
- package/lib/components/process-refund/process-refund.component.d.ts +11 -1
- package/lib/components/refund-status/refund-status.component.d.ts +22 -5
- package/lib/components/service-request/service-request.component.d.ts +103 -0
- package/lib/components/table/table.component.d.ts +5 -2
- package/lib/interfaces/IFee.d.ts +1 -0
- package/lib/interfaces/IPayment.d.ts +1 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/IRefundList.d.ts +2 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
- package/lib/payment-lib.component.d.ts +17 -1
- package/lib/payment-lib.service.d.ts +3 -0
- package/lib/services/notification/notification.service.d.ts +15 -0
- package/lib/services/orderslist.service.d.ts +34 -0
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import { PaymentLibComponent } from '../../payment-lib.component';
|
|
|
7
7
|
import { IPayment } from '../../interfaces/IPayment';
|
|
8
8
|
import { RefundsService } from '../../services/refunds/refunds.service';
|
|
9
9
|
import { IRefundReasons } from '../../interfaces/IRefundReasons';
|
|
10
|
+
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
10
11
|
import { ChangeDetectorRef } from '@angular/core';
|
|
11
12
|
import { IRemission } from '../../interfaces/IRemission';
|
|
12
13
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
@@ -30,12 +31,22 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
30
31
|
isOldPcipalOff: boolean;
|
|
31
32
|
isNewPcipalOff: boolean;
|
|
32
33
|
isStrategicFixEnable: boolean;
|
|
33
|
-
orderStatus: string;
|
|
34
34
|
paidAmount: any;
|
|
35
35
|
isFromRefundListPage: boolean;
|
|
36
36
|
isFromPaymentDetailPage: boolean;
|
|
37
37
|
isFromServiceRequestPage: boolean;
|
|
38
38
|
feeamount: number;
|
|
39
|
+
LOGGEDINUSERROLES: string[];
|
|
40
|
+
orderDetail: any[];
|
|
41
|
+
orderRef: string;
|
|
42
|
+
orderStatus: string;
|
|
43
|
+
orderParty: string;
|
|
44
|
+
orderCreated: Date;
|
|
45
|
+
orderCCDEvent: string;
|
|
46
|
+
takePayment: boolean;
|
|
47
|
+
orderFeesTotal: number;
|
|
48
|
+
orderTotalPayments: number;
|
|
49
|
+
orderRemissionTotal: number;
|
|
39
50
|
cancelRemission: EventEmitter<void>;
|
|
40
51
|
refundListReason: EventEmitter<{
|
|
41
52
|
reason: string;
|
|
@@ -50,6 +61,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
50
61
|
other: string;
|
|
51
62
|
};
|
|
52
63
|
};
|
|
64
|
+
contactDetailsObj: IRefundContactDetails;
|
|
53
65
|
remissionForm: FormGroup;
|
|
54
66
|
hasErrors: boolean;
|
|
55
67
|
viewStatus: string;
|
|
@@ -87,6 +99,8 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
87
99
|
refundReasons: IRefundReasons[];
|
|
88
100
|
pattern1: string;
|
|
89
101
|
pattern2: string;
|
|
102
|
+
sendOrderDetail: any[];
|
|
103
|
+
sendOrderRef: string;
|
|
90
104
|
component: {
|
|
91
105
|
account_number: string;
|
|
92
106
|
amount: number;
|
|
@@ -114,18 +128,25 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
114
128
|
addRemissionCode(): void;
|
|
115
129
|
gotoAddRetroRemissionCodePage(): void;
|
|
116
130
|
gotoCheckRetroRemissionPage(payment: IPayment): void;
|
|
131
|
+
gotoAmountRetroRemission(): void;
|
|
117
132
|
gotoProcessRetroRemissionPage(): void;
|
|
133
|
+
gotoProcessRetroRemission(): void;
|
|
118
134
|
confirmRetroRemission(): void;
|
|
119
135
|
processRefund(): void;
|
|
120
136
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
121
137
|
gotoIssueRefundPage(): void;
|
|
138
|
+
gotoContactDetailsPage(): void;
|
|
122
139
|
changeIssueRefundReason(): void;
|
|
123
140
|
confirmIssueRefund(): void;
|
|
124
141
|
confirmRetroRefund(): void;
|
|
125
142
|
selectRadioButton(key: any, value: any): void;
|
|
126
143
|
selectchange(args: any): void;
|
|
144
|
+
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
127
145
|
gotoServiceRequestPage(event: any): void;
|
|
146
|
+
gotoAddressPage(): void;
|
|
147
|
+
gotoRemissionSuccess(event: Event): void;
|
|
128
148
|
gotoCasetransationPage(): void;
|
|
129
149
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
150
|
+
resetOrderData(): void;
|
|
130
151
|
getFormattedCurrency(currency: number): string | number;
|
|
131
152
|
}
|
|
@@ -19,6 +19,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
19
19
|
private paymentLibComponent;
|
|
20
20
|
private OrderslistService;
|
|
21
21
|
LOGGEDINUSERROLES: string[];
|
|
22
|
+
isTakePayment: boolean;
|
|
22
23
|
takePayment: boolean;
|
|
23
24
|
servicerequest: string;
|
|
24
25
|
ccdCaseNumber: string;
|
|
@@ -59,7 +60,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
59
60
|
isGrpOutstandingAmtPositive: boolean;
|
|
60
61
|
totalRefundAmount: Number;
|
|
61
62
|
caseType: String;
|
|
62
|
-
lsCcdNumber: any;
|
|
63
63
|
payment: IPayment;
|
|
64
64
|
paymentGroup: IPaymentGroup;
|
|
65
65
|
paymentView: IPaymentView;
|
|
@@ -73,7 +73,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
73
73
|
orderParty: string;
|
|
74
74
|
orderCreated: Date;
|
|
75
75
|
orderCCDEvent: string;
|
|
76
|
-
|
|
76
|
+
serviceRequestValue: string;
|
|
77
77
|
orderAddBtnEnable: boolean;
|
|
78
78
|
orderFeesTotal: number;
|
|
79
79
|
orderRemissionTotal: number;
|
|
@@ -98,7 +98,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
98
98
|
resetOrderVariables(): void;
|
|
99
99
|
goToOrderViewDetailSection(orderReferenceObj: any): void;
|
|
100
100
|
redirectToOrderFeeSearchPage(event: any, orderef: any): void;
|
|
101
|
-
goToCaseTransationPage(event: any): void;
|
|
102
101
|
calculateAmounts(): void;
|
|
103
102
|
calculateRefundAmount(): number;
|
|
104
103
|
getGroupOutstandingAmount(paymentGroup: IPaymentGroup): number;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
|
+
export declare class ContactDetailsComponent implements OnInit {
|
|
5
|
+
private formBuilder;
|
|
6
|
+
private paymentLibComponent;
|
|
7
|
+
isEditOperation: boolean;
|
|
8
|
+
addressObj: any;
|
|
9
|
+
assignContactDetails: EventEmitter<any>;
|
|
10
|
+
redirectToIssueRefund: EventEmitter<any>;
|
|
11
|
+
pageTitle: string;
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
isEmailSAddressClicked: boolean;
|
|
14
|
+
isPostcodeClicked: boolean;
|
|
15
|
+
isManualAddressClicked: boolean;
|
|
16
|
+
emailAddressForm: FormGroup;
|
|
17
|
+
postCodeForm: FormGroup;
|
|
18
|
+
manualAddressForm: FormGroup;
|
|
19
|
+
isEmailEmpty: boolean;
|
|
20
|
+
emailHasError: boolean;
|
|
21
|
+
isPostcodeEmpty: boolean;
|
|
22
|
+
postcodeHasError: boolean;
|
|
23
|
+
isaddressLine1Empty: boolean;
|
|
24
|
+
addressLine1HasError: boolean;
|
|
25
|
+
addressLine2HasError: boolean;
|
|
26
|
+
isTownOrCityEmpty: boolean;
|
|
27
|
+
townOrCityHasError: boolean;
|
|
28
|
+
isCountyEmpty: boolean;
|
|
29
|
+
countyHasError: boolean;
|
|
30
|
+
isMPostcodeEmpty: boolean;
|
|
31
|
+
mpostcodeHasError: boolean;
|
|
32
|
+
isCountryEmpty: boolean;
|
|
33
|
+
constructor(formBuilder: FormBuilder, paymentLibComponent: PaymentLibComponent);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
setEditDetails(): void;
|
|
36
|
+
selectContactOption(type: any, isLinkedClied: any): void;
|
|
37
|
+
finalFormSubmit(): void;
|
|
38
|
+
postcodeValidation(): void;
|
|
39
|
+
redirection(event: any): void;
|
|
40
|
+
resetForm(val: any, field: any): void;
|
|
41
|
+
}
|
|
@@ -17,11 +17,17 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
17
17
|
caseType: boolean;
|
|
18
18
|
isNewPcipalOff: boolean;
|
|
19
19
|
isOldPcipalOff: boolean;
|
|
20
|
-
orderRef:
|
|
21
|
-
orderStatus:
|
|
22
|
-
orderTotalPayments:
|
|
20
|
+
orderRef: string;
|
|
21
|
+
orderStatus: string;
|
|
22
|
+
orderTotalPayments: number;
|
|
23
23
|
payment: IPayment;
|
|
24
24
|
LOGGEDINUSERROLES: string[];
|
|
25
|
+
orderParty: string;
|
|
26
|
+
orderCreated: Date;
|
|
27
|
+
orderCCDEvent: string;
|
|
28
|
+
orderFeesTotal: number;
|
|
29
|
+
orderRemissionTotal: number;
|
|
30
|
+
orderDetail: any[];
|
|
25
31
|
paymentGroup: IPaymentGroup;
|
|
26
32
|
errorMessage: string;
|
|
27
33
|
ccdCaseNumber: string;
|
|
@@ -40,6 +46,8 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
40
46
|
remissionFeeAmt: number;
|
|
41
47
|
isRefundRemissionBtnEnable: boolean;
|
|
42
48
|
serviceReference: string;
|
|
49
|
+
isFromServiceRequestPage: boolean;
|
|
50
|
+
isFromPaymentDetailPage: boolean;
|
|
43
51
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
44
52
|
ngAfterContentChecked(): void;
|
|
45
53
|
ngOnInit(): void;
|
|
@@ -58,4 +66,5 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
58
66
|
chkForAddRemission(feeCode: string): boolean;
|
|
59
67
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
60
68
|
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
69
|
+
resetOrderData(): void;
|
|
61
70
|
}
|
|
@@ -5,12 +5,17 @@ import { IRefundAction } from '../../interfaces/IRefundAction';
|
|
|
5
5
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
6
6
|
import { IRefundRejectReason } from '../../interfaces/IRefundRejectReason';
|
|
7
7
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
8
|
+
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
8
9
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
10
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
9
11
|
export declare class ProcessRefundComponent implements OnInit {
|
|
10
12
|
private RefundsService;
|
|
13
|
+
private paymentViewService;
|
|
11
14
|
private formBuilder;
|
|
12
15
|
private OrderslistService;
|
|
13
16
|
private paymentLibComponent;
|
|
17
|
+
private router;
|
|
18
|
+
private activeRoute;
|
|
14
19
|
refundReference: string;
|
|
15
20
|
refundlistsource: IRefundList;
|
|
16
21
|
processRefundForm: FormGroup;
|
|
@@ -37,8 +42,11 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
37
42
|
isReasonInvalid: boolean;
|
|
38
43
|
successMsg: string;
|
|
39
44
|
navigationpage: string;
|
|
45
|
+
ccdCaseNumber: string;
|
|
46
|
+
cpoDetails: any;
|
|
47
|
+
isCPODown: boolean;
|
|
40
48
|
isConfirmButtondisabled: boolean;
|
|
41
|
-
constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent);
|
|
49
|
+
constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
42
50
|
ngOnInit(): void;
|
|
43
51
|
checkRefundActions(code: string): void;
|
|
44
52
|
processRefundSubmit(): void;
|
|
@@ -48,6 +56,8 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
48
56
|
showError: any;
|
|
49
57
|
};
|
|
50
58
|
loadRefundListPage(): void;
|
|
59
|
+
loadRefundsHomePage(): void;
|
|
51
60
|
redirecttoRefundListPage(): void;
|
|
52
61
|
resetForm(vals: any, field: any): void;
|
|
62
|
+
goToCaseReview(): void;
|
|
53
63
|
}
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { RefundsService } from '../../services/refunds/refunds.service';
|
|
3
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
3
4
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
4
5
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
5
|
-
import {
|
|
6
|
-
import { Router } from '@angular/router';
|
|
6
|
+
import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
|
|
7
7
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
8
|
+
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
8
9
|
import { IRefundStatus } from '../../interfaces/IRefundStatus';
|
|
9
10
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
10
11
|
export declare class RefundStatusComponent implements OnInit {
|
|
11
12
|
private formBuilder;
|
|
12
13
|
private refundService;
|
|
14
|
+
private notificationService;
|
|
13
15
|
private paymentLibComponent;
|
|
14
|
-
private paymentViewService;
|
|
15
|
-
private router;
|
|
16
16
|
private OrderslistService;
|
|
17
17
|
LOGGEDINUSERROLES: string[];
|
|
18
18
|
isOldPcipalOff: boolean;
|
|
19
19
|
isNewPcipalOff: boolean;
|
|
20
20
|
ccdCaseNumber: string;
|
|
21
21
|
isTurnOff: boolean;
|
|
22
|
+
orderParty: string;
|
|
22
23
|
refundStatusForm: FormGroup;
|
|
23
24
|
selectedRefundReason: string;
|
|
24
25
|
rejectedRefundList: IRefundList[];
|
|
26
|
+
notificationList: IRefundsNotifications;
|
|
27
|
+
notification: IRefundsNotifications;
|
|
25
28
|
approvalStatus: string;
|
|
26
29
|
rejectStatus: string;
|
|
27
30
|
errorMessage: any;
|
|
@@ -38,6 +41,11 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
38
41
|
refundHasError: boolean;
|
|
39
42
|
refundReasons: any[];
|
|
40
43
|
refundStatusHistories: IRefundStatus[];
|
|
44
|
+
refundNotifications: IRefundStatus[];
|
|
45
|
+
isResendOperationSuccess: boolean;
|
|
46
|
+
isEditDetailsClicked: boolean;
|
|
47
|
+
isEditAddressDeatilsClicked: boolean;
|
|
48
|
+
addressDetails: IRefundContactDetails;
|
|
41
49
|
refundReference: string;
|
|
42
50
|
refundAmount: string;
|
|
43
51
|
refundCode: string;
|
|
@@ -48,9 +56,12 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
48
56
|
isLastUpdatedByCurrentUser: boolean;
|
|
49
57
|
isProcessRefund: boolean;
|
|
50
58
|
changedAmount: number;
|
|
51
|
-
|
|
59
|
+
allowedRolesToAccessRefund: string[];
|
|
60
|
+
constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
|
|
52
61
|
ngOnInit(): void;
|
|
62
|
+
check4AllowedRoles2AccessRefund: () => boolean;
|
|
53
63
|
getRefundsStatusHistoryList(): void;
|
|
64
|
+
getRefundsNotification(): void;
|
|
54
65
|
goToRefundView(refundlist: IRefundList, navigationpage: string): void;
|
|
55
66
|
loadCaseTransactionPage(): void;
|
|
56
67
|
loadRefundListPage(): void;
|
|
@@ -64,5 +75,11 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
64
75
|
getRefundListReason(refundListReason: any): void;
|
|
65
76
|
getRefundAmount(amount: number): void;
|
|
66
77
|
gotoReviewRefundConfirmationPage(): void;
|
|
78
|
+
gotoEditAddressDetails(note: IRefundsNotifications): void;
|
|
79
|
+
getContactDetails(obj: IRefundContactDetails): void;
|
|
80
|
+
gotoEditDetailsPage(): void;
|
|
81
|
+
submitEditDetail(): void;
|
|
82
|
+
putResend(notification: IRefundsNotifications): void;
|
|
83
|
+
gotoCasetransationPageCancelBtnClicked(obj: any): void;
|
|
67
84
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
68
85
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
3
|
+
import { IPayment } from '../../interfaces/IPayment';
|
|
4
|
+
import { IRemission } from '../../interfaces/IRemission';
|
|
5
|
+
import { IPaymentView } from '../../interfaces/IPaymentView';
|
|
6
|
+
import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
|
|
7
|
+
import { IFee } from '../../interfaces/IFee';
|
|
8
|
+
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
9
|
+
import { Router } from '@angular/router';
|
|
10
|
+
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
11
|
+
import { OrderslistService } from '../../services/orderslist.service';
|
|
12
|
+
export declare class ServiceRequestComponent implements OnInit {
|
|
13
|
+
private paymentLibComponent;
|
|
14
|
+
private paymentViewService;
|
|
15
|
+
private OrderslistService;
|
|
16
|
+
private router;
|
|
17
|
+
LOGGEDINUSERROLES: string[];
|
|
18
|
+
viewStatus: string;
|
|
19
|
+
orderDetail: any[];
|
|
20
|
+
orderRef: string;
|
|
21
|
+
orderStatus: string;
|
|
22
|
+
orderParty: string;
|
|
23
|
+
orderCreated: Date;
|
|
24
|
+
orderCCDEvent: string;
|
|
25
|
+
orderFeesTotal: number;
|
|
26
|
+
orderTotalPayments: number;
|
|
27
|
+
orderRemissionTotal: number;
|
|
28
|
+
takePayment: boolean;
|
|
29
|
+
ccdCaseNumber: boolean;
|
|
30
|
+
servicerequest: string;
|
|
31
|
+
excReference: string;
|
|
32
|
+
paymentGroups: any[];
|
|
33
|
+
payments: IPayment[];
|
|
34
|
+
nonPayments: IPayment[];
|
|
35
|
+
allPayments: IPayment[];
|
|
36
|
+
remissions: IRemission[];
|
|
37
|
+
fees: IFee[];
|
|
38
|
+
errorMessage: string;
|
|
39
|
+
totalFees: number;
|
|
40
|
+
totalPayments: number;
|
|
41
|
+
totalNonOffPayments: number;
|
|
42
|
+
totalRemissions: number;
|
|
43
|
+
selectedOption: string;
|
|
44
|
+
dcnNumber: string;
|
|
45
|
+
paymentRef: string;
|
|
46
|
+
isTurnOff: boolean;
|
|
47
|
+
isNewPcipalOff: boolean;
|
|
48
|
+
isRefundRemission: boolean;
|
|
49
|
+
isOldPcipalOff: boolean;
|
|
50
|
+
isStrategicFixEnable: boolean;
|
|
51
|
+
isAddFeeBtnEnabled: boolean;
|
|
52
|
+
isExceptionRecord: boolean;
|
|
53
|
+
isUnprocessedRecordSelected: boolean;
|
|
54
|
+
exceptionRecordReference: string;
|
|
55
|
+
isAnyFeeGroupAvilable: boolean;
|
|
56
|
+
isHistoricGroupAvailable: boolean;
|
|
57
|
+
isBulkScanEnable: any;
|
|
58
|
+
isRemissionsMatch: boolean;
|
|
59
|
+
isRemoveBtnDisabled: boolean;
|
|
60
|
+
feeId: IFee;
|
|
61
|
+
clAmountDue: number;
|
|
62
|
+
unprocessedRecordCount: number;
|
|
63
|
+
isFeeRecordsExist: boolean;
|
|
64
|
+
isGrpOutstandingAmtPositive: boolean;
|
|
65
|
+
totalRefundAmount: Number;
|
|
66
|
+
caseType: String;
|
|
67
|
+
payment: IPayment;
|
|
68
|
+
paymentGroup: IPaymentGroup;
|
|
69
|
+
paymentView: IPaymentView;
|
|
70
|
+
isAddRemissionEnable: boolean;
|
|
71
|
+
orderRemissionDetails: any[];
|
|
72
|
+
orderLevelFees: IOrderReferenceFee[];
|
|
73
|
+
cpoDetails: any;
|
|
74
|
+
serviceRequestValue: string;
|
|
75
|
+
orderAddBtnEnable: boolean;
|
|
76
|
+
isCPODown: boolean;
|
|
77
|
+
test: boolean;
|
|
78
|
+
isPBA: boolean;
|
|
79
|
+
isIssueRefunfBtnEnable: boolean;
|
|
80
|
+
isAddRemissionBtnEnabled: boolean;
|
|
81
|
+
isRefundRemissionBtnEnable: boolean;
|
|
82
|
+
allowedRolesToAccessRefund: string[];
|
|
83
|
+
isFromServiceRequestPage: boolean;
|
|
84
|
+
navigationpage: string;
|
|
85
|
+
remissionFeeAmt: number;
|
|
86
|
+
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
|
|
87
|
+
ngOnInit(): void;
|
|
88
|
+
goToCaseTransationPage(event: any): void;
|
|
89
|
+
chkForAddRemission(feeCode: string): boolean;
|
|
90
|
+
chkForPBAPayment(): boolean;
|
|
91
|
+
addRemission(fee: IFee): void;
|
|
92
|
+
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
93
|
+
cancelRemoval(): void;
|
|
94
|
+
removeFee(fee: any): void;
|
|
95
|
+
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
96
|
+
chkIsRefundRemissionBtnEnable(): boolean;
|
|
97
|
+
check4AllowedRoles2AccessRefund: () => boolean;
|
|
98
|
+
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
99
|
+
issueRefund(payment: IPayment): void;
|
|
100
|
+
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
101
|
+
goToPaymentViewComponent(paymentGroup: any): void;
|
|
102
|
+
resetOrderData(): void;
|
|
103
|
+
}
|
|
@@ -5,10 +5,13 @@ import { MatSort } from '@angular/material/sort';
|
|
|
5
5
|
import { MatPaginator } from '@angular/material/paginator';
|
|
6
6
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
7
7
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
8
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
8
9
|
export declare class TableComponent {
|
|
9
10
|
private paymentLibComponent;
|
|
10
11
|
private cdRef;
|
|
11
12
|
private OrderslistService;
|
|
13
|
+
private router;
|
|
14
|
+
private activeRoute;
|
|
12
15
|
DATASOURCE: any[];
|
|
13
16
|
STATUS: string;
|
|
14
17
|
errorMessage: string;
|
|
@@ -21,7 +24,7 @@ export declare class TableComponent {
|
|
|
21
24
|
refundList: IRefundList[];
|
|
22
25
|
paginator: MatPaginator;
|
|
23
26
|
sort: MatSort;
|
|
24
|
-
constructor(paymentLibComponent: PaymentLibComponent, cdRef: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
27
|
+
constructor(paymentLibComponent: PaymentLibComponent, cdRef: ChangeDetectorRef, OrderslistService: OrderslistService, router: Router, activeRoute: ActivatedRoute);
|
|
25
28
|
ngOnInit(): void;
|
|
26
29
|
/**
|
|
27
30
|
* Set the paginator and sort after the view init since this component will
|
|
@@ -30,7 +33,7 @@ export declare class TableComponent {
|
|
|
30
33
|
ngAfterViewInit(): void;
|
|
31
34
|
applyFilter(filterValue: string): void;
|
|
32
35
|
selectchange(args: any): void;
|
|
33
|
-
goToRefundProcessComponent(refundReference: string,
|
|
36
|
+
goToRefundProcessComponent(refundReference: string, refundData: IRefundList): void;
|
|
34
37
|
goToRefundViewComponent(refundReference: string, refundData: IRefundList): void;
|
|
35
38
|
goToCaseReview(ccdCaseNumber: string, refundData: IRefundList): void;
|
|
36
39
|
}
|
package/lib/interfaces/IFee.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
1
2
|
export interface IRefundList {
|
|
2
3
|
amount: number;
|
|
3
4
|
ccd_case_number: string;
|
|
@@ -10,5 +11,6 @@ export interface IRefundList {
|
|
|
10
11
|
description: string;
|
|
11
12
|
name: string;
|
|
12
13
|
};
|
|
14
|
+
contact_details: IRefundContactDetails;
|
|
13
15
|
user_full_name: string;
|
|
14
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IRefundsNotifications {
|
|
2
|
+
contact_details: {
|
|
3
|
+
address_line: string;
|
|
4
|
+
city: string;
|
|
5
|
+
country: string;
|
|
6
|
+
county: string;
|
|
7
|
+
date_created: string;
|
|
8
|
+
date_updated: string;
|
|
9
|
+
email: string;
|
|
10
|
+
postal_code: string;
|
|
11
|
+
};
|
|
12
|
+
date_created: string;
|
|
13
|
+
date_updated: string;
|
|
14
|
+
notification_type: string;
|
|
15
|
+
reference: string;
|
|
16
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
1
2
|
export declare class PostIssueRefundRetroRemission {
|
|
2
3
|
remissionReference: string;
|
|
3
|
-
|
|
4
|
+
contact_details: IRefundContactDetails;
|
|
5
|
+
constructor(remissionReference: string, contactDeatils: any);
|
|
4
6
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
1
2
|
export declare class PostRefundRetroRemission {
|
|
2
3
|
payment_reference: string;
|
|
3
4
|
refund_reason: string;
|
|
4
|
-
|
|
5
|
+
contact_details: IRefundContactDetails;
|
|
6
|
+
constructor(payment_reference: string, refund_reason: string, contactDeatils: any);
|
|
5
7
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { PaymentLibService } from './payment-lib.service';
|
|
3
3
|
import { IBSPayments } from './interfaces/IBSPayments';
|
|
4
|
+
import { OrderslistService } from './services/orderslist.service';
|
|
4
5
|
export declare class PaymentLibComponent implements OnInit {
|
|
5
6
|
private paymentLibService;
|
|
6
7
|
private cd;
|
|
8
|
+
private OrderslistService;
|
|
7
9
|
API_ROOT: string;
|
|
8
10
|
BULKSCAN_API_ROOT: string;
|
|
9
11
|
REFUNDS_API_ROOT: string;
|
|
12
|
+
NOTIFICATION_API_ROOT: string;
|
|
10
13
|
CCD_CASE_NUMBER: string;
|
|
11
14
|
EXC_REFERENCE: string;
|
|
12
15
|
PAYMENT_METHOD: string;
|
|
@@ -48,7 +51,20 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
48
51
|
isFromRefundStatusPage: boolean;
|
|
49
52
|
iscancelClicked: boolean;
|
|
50
53
|
isFromPaymentDetailPage: boolean;
|
|
51
|
-
|
|
54
|
+
isTakePayment: boolean;
|
|
55
|
+
orderDetail: any[];
|
|
56
|
+
orderRef: string;
|
|
57
|
+
orderStatus: string;
|
|
58
|
+
orderParty: string;
|
|
59
|
+
orderCreated: Date;
|
|
60
|
+
orderCCDEvent: string;
|
|
61
|
+
serviceRequestValue: string;
|
|
62
|
+
orderAddBtnEnable: boolean;
|
|
63
|
+
orderFeesTotal: number;
|
|
64
|
+
orderRemissionTotal: number;
|
|
65
|
+
orderTotalPayments: number;
|
|
66
|
+
orderPendingPayments: number;
|
|
67
|
+
constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
52
68
|
ngAfterContentChecked(): void;
|
|
53
69
|
ngOnInit(): void;
|
|
54
70
|
}
|
|
@@ -2,6 +2,7 @@ export declare class PaymentLibService {
|
|
|
2
2
|
API_ROOT: string;
|
|
3
3
|
BULKSCAN_API_ROOT: string;
|
|
4
4
|
REFUNDS_API_ROOT: string;
|
|
5
|
+
NOTIFICATION_API_ROOT: string;
|
|
5
6
|
constructor();
|
|
6
7
|
setApiRootUrl(apiRoot: string): void;
|
|
7
8
|
getApiRootUrl(): string;
|
|
@@ -9,4 +10,6 @@ export declare class PaymentLibService {
|
|
|
9
10
|
getBulkScanApiRootUrl(): string;
|
|
10
11
|
setRefundndsApiRootUrl(refundsapiRoot: string): void;
|
|
11
12
|
getRefundsApiRootUrl(): string;
|
|
13
|
+
setNoticationApiRootUrl(notificationapiRoot: string): void;
|
|
14
|
+
getNoticationApiRootUrl(): string;
|
|
12
15
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ErrorHandlerService } from '../shared/error-handler.service';
|
|
3
|
+
import { WebComponentHttpClient } from '../shared/httpclient/webcomponent.http.client';
|
|
4
|
+
import { PaymentLibService } from '../../payment-lib.service';
|
|
5
|
+
import { Observable } from 'rxjs/Observable';
|
|
6
|
+
import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
|
|
7
|
+
export declare class NotificationService {
|
|
8
|
+
private http;
|
|
9
|
+
private https;
|
|
10
|
+
private errorHandlerService;
|
|
11
|
+
private paymentLibService;
|
|
12
|
+
constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
|
|
13
|
+
getRefundNotification(reference: string): Observable<IRefundsNotifications>;
|
|
14
|
+
getAddressByPostcode(postcode: string): Observable<any>;
|
|
15
|
+
}
|
|
@@ -17,6 +17,22 @@ export declare class OrderslistService {
|
|
|
17
17
|
getOrderRefId: Observable<string>;
|
|
18
18
|
private navigationPage;
|
|
19
19
|
getnavigationPage: Observable<string>;
|
|
20
|
+
private orderRef;
|
|
21
|
+
getorderRef: Observable<string>;
|
|
22
|
+
private orderCCDEvent;
|
|
23
|
+
getorderCCDEvent: Observable<string>;
|
|
24
|
+
private orderCreated;
|
|
25
|
+
getorderCreated: Observable<Date>;
|
|
26
|
+
private orderParty;
|
|
27
|
+
getorderParty: Observable<string>;
|
|
28
|
+
private orderRemissionTotal;
|
|
29
|
+
getorderRemissionTotal: Observable<number>;
|
|
30
|
+
private orderFeesTotal;
|
|
31
|
+
getorderFeesTotal: Observable<number>;
|
|
32
|
+
private orderTotalPayments;
|
|
33
|
+
getorderTotalPayments: Observable<number>;
|
|
34
|
+
private rolesList;
|
|
35
|
+
private orderDetail;
|
|
20
36
|
private paymentPageView;
|
|
21
37
|
constructor();
|
|
22
38
|
setOrdersList(orderLevelFees: IOrderReferenceFee[]): void;
|
|
@@ -37,4 +53,22 @@ export declare class OrderslistService {
|
|
|
37
53
|
getnavigationPageValue(): BehaviorSubject<string>;
|
|
38
54
|
setpaymentPageView(paymentpageList: IPaymentView): void;
|
|
39
55
|
getpaymentPageView(): BehaviorSubject<IPaymentView>;
|
|
56
|
+
setUserRolesList(rolesList: any[]): void;
|
|
57
|
+
getUserRolesList(): BehaviorSubject<any[]>;
|
|
58
|
+
setorderDetail(orderDetail: any[]): void;
|
|
59
|
+
getorderDetail(): BehaviorSubject<any[]>;
|
|
60
|
+
setOrderRef(orderRef: string): void;
|
|
61
|
+
getorderRefs(): BehaviorSubject<string>;
|
|
62
|
+
setorderCCDEvent(orderCCDEvent: string): void;
|
|
63
|
+
getorderCCDEvents(): BehaviorSubject<string>;
|
|
64
|
+
setorderCreated(orderCreated: Date): void;
|
|
65
|
+
getorderCreateds(): BehaviorSubject<Date>;
|
|
66
|
+
setorderParty(orderParty: string): void;
|
|
67
|
+
getorderPartys(): BehaviorSubject<string>;
|
|
68
|
+
setorderRemissionTotal(orderRemissionTotal: number): void;
|
|
69
|
+
getorderRemissionTotals(): BehaviorSubject<number>;
|
|
70
|
+
setorderFeesTotal(orderFeesTotal: number): void;
|
|
71
|
+
getorderFeesTotals(): BehaviorSubject<number>;
|
|
72
|
+
setorderTotalPayments(orderTotalPayments: number): void;
|
|
73
|
+
getoorderTotalPaymentss(): BehaviorSubject<number>;
|
|
40
74
|
}
|
|
@@ -9,6 +9,7 @@ import { IPatchRefundAction } from '../../interfaces/IPatchRefundAction';
|
|
|
9
9
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
10
10
|
import { IssueRefundRequest } from '../../interfaces/IssueRefundRequest';
|
|
11
11
|
import { IResubmitRefundRequest } from '../../interfaces/IResubmitRefundRequest';
|
|
12
|
+
import { IPutNotificationRequest } from '../../interfaces/IPutNotificationRequest';
|
|
12
13
|
export declare class RefundsService {
|
|
13
14
|
private http;
|
|
14
15
|
private https;
|
|
@@ -25,6 +26,7 @@ export declare class RefundsService {
|
|
|
25
26
|
getRefundStatusList(ccdCaseNumber: string): Observable<IRefundList[]>;
|
|
26
27
|
getUserDetails(): Observable<any>;
|
|
27
28
|
postIssueRefund(body: IssueRefundRequest): Observable<any>;
|
|
29
|
+
putResendOrEdit(body: IPutNotificationRequest, refundRef: string, notificationType: string): Observable<any>;
|
|
28
30
|
patchResubmitRefund(body: IResubmitRefundRequest, refund_reference: string): Observable<any>;
|
|
29
31
|
addHeaders(options: any): any;
|
|
30
32
|
}
|