@hmcts/ccpay-web-component 5.0.7-beta20 → 5.0.7-beta23
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 +2442 -670
- 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 +34 -31
- package/esm2015/lib/components/add-remission/add-remission.component.js +709 -120
- package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +16 -16
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +31 -17
- package/esm2015/lib/components/contact-details/contact-details.component.js +447 -0
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +18 -13
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +102 -0
- package/esm2015/lib/components/payment-view/payment-view.component.js +202 -106
- package/esm2015/lib/components/process-refund/process-refund.component.js +49 -28
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +225 -30
- package/esm2015/lib/components/reports/reports.component.js +105 -20
- package/esm2015/lib/components/service-request/service-request.component.js +251 -146
- package/esm2015/lib/components/status-history/status-history.component.js +2 -2
- package/esm2015/lib/components/table/table.component.js +24 -9
- package/esm2015/lib/interfaces/IFee.js +13 -1
- package/esm2015/lib/interfaces/INotificationPreview.js +25 -0
- package/esm2015/lib/interfaces/IPayment.js +7 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/IRefundFee.js +21 -0
- package/esm2015/lib/interfaces/IRefundList.js +7 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/IRemission.js +7 -1
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
- package/esm2015/lib/interfaces/NotificationPreviewRequest.js +71 -0
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +20 -2
- package/esm2015/lib/payment-lib.component.js +12 -3
- 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 +92 -0
- package/esm2015/lib/services/refunds/refunds.service.js +10 -1
- package/esm2015/lib/services/shared/error-handler.service.js +7 -3
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm2015/lib/services/xl-file/xl-file.service.js +28 -1
- package/esm5/hmcts-ccpay-web-component.js +34 -31
- package/esm5/lib/components/add-remission/add-remission.component.js +837 -125
- package/esm5/lib/components/allocate-payments/allocate-payments.component.js +16 -16
- package/esm5/lib/components/case-transactions/case-transactions.component.js +31 -17
- package/esm5/lib/components/contact-details/contact-details.component.js +472 -0
- package/esm5/lib/components/fee-summary/fee-summary.component.js +18 -13
- package/esm5/lib/components/notification-preview/notification-preview.component.js +104 -0
- package/esm5/lib/components/payment-view/payment-view.component.js +239 -124
- package/esm5/lib/components/process-refund/process-refund.component.js +52 -78
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +267 -28
- package/esm5/lib/components/reports/reports.component.js +111 -20
- package/esm5/lib/components/service-request/service-request.component.js +298 -176
- package/esm5/lib/components/status-history/status-history.component.js +2 -2
- package/esm5/lib/components/table/table.component.js +27 -9
- package/esm5/lib/interfaces/IFee.js +13 -1
- package/esm5/lib/interfaces/INotificationPreview.js +25 -0
- package/esm5/lib/interfaces/IPayment.js +7 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/IRefundFee.js +21 -0
- package/esm5/lib/interfaces/IRefundList.js +7 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/IRemission.js +7 -1
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
- package/esm5/lib/interfaces/NotificationPreviewRequest.js +65 -0
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +16 -2
- package/esm5/lib/payment-lib.component.js +9 -2
- 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 +100 -0
- package/esm5/lib/services/refunds/refunds.service.js +16 -1
- package/esm5/lib/services/shared/error-handler.service.js +11 -3
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/lib/services/xl-file/xl-file.service.js +33 -1
- package/fesm2015/hmcts-ccpay-web-component.js +2156 -546
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +2431 -620
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +33 -30
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +48 -3
- package/lib/components/case-transactions/case-transactions.component.d.ts +2 -1
- package/lib/components/contact-details/contact-details.component.d.ts +49 -0
- package/lib/components/notification-preview/notification-preview.component.d.ts +27 -0
- package/lib/components/payment-view/payment-view.component.d.ts +26 -6
- package/lib/components/process-refund/process-refund.component.d.ts +6 -1
- package/lib/components/refund-status/refund-status.component.d.ts +37 -6
- package/lib/components/reports/reports.component.d.ts +6 -0
- package/lib/components/service-request/service-request.component.d.ts +31 -9
- package/lib/components/table/table.component.d.ts +1 -0
- package/lib/interfaces/IFee.d.ts +6 -0
- package/lib/interfaces/INotificationPreview.d.ts +27 -0
- package/lib/interfaces/IPayment.d.ts +3 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/IRefundFee.d.ts +7 -0
- package/lib/interfaces/IRefundList.d.ts +4 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/IRemission.d.ts +3 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
- package/lib/interfaces/NotificationPreviewRequest.d.ts +24 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +7 -1
- package/lib/payment-lib.component.d.ts +2 -0
- package/lib/payment-lib.service.d.ts +3 -0
- package/lib/services/notification/notification.service.d.ts +17 -0
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/lib/services/shared/error-handler.service.d.ts +1 -1
- package/lib/services/xl-file/xl-file.service.d.ts +1 -0
- package/package.json +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
|
|
3
3
|
import { IFee } from '../../interfaces/IFee';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
@@ -7,9 +7,11 @@ 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';
|
|
14
|
+
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
13
15
|
export declare class AddRemissionComponent implements OnInit {
|
|
14
16
|
private formBuilder;
|
|
15
17
|
private router;
|
|
@@ -19,6 +21,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
19
21
|
private cd;
|
|
20
22
|
private OrderslistService;
|
|
21
23
|
fee: IFee;
|
|
24
|
+
fees: any[];
|
|
22
25
|
payment: IPayment;
|
|
23
26
|
remission: IRemission;
|
|
24
27
|
ccdCaseNumber: string;
|
|
@@ -32,7 +35,12 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
32
35
|
isFromRefundListPage: boolean;
|
|
33
36
|
isFromPaymentDetailPage: boolean;
|
|
34
37
|
isFromServiceRequestPage: boolean;
|
|
38
|
+
isFullyRefund: boolean;
|
|
35
39
|
feeamount: number;
|
|
40
|
+
refundPaymentReference: string;
|
|
41
|
+
isFromRefundStatusPage: boolean;
|
|
42
|
+
changeRefundReason: string;
|
|
43
|
+
isServiceRequest: string;
|
|
36
44
|
LOGGEDINUSERROLES: string[];
|
|
37
45
|
orderDetail: any[];
|
|
38
46
|
orderRef: string;
|
|
@@ -50,6 +58,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
50
58
|
code: string;
|
|
51
59
|
}>;
|
|
52
60
|
refundListAmount: EventEmitter<string>;
|
|
61
|
+
refundFees: EventEmitter<IFee[]>;
|
|
53
62
|
refund: {
|
|
54
63
|
reason: {
|
|
55
64
|
duplicate: string;
|
|
@@ -58,6 +67,8 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
58
67
|
other: string;
|
|
59
68
|
};
|
|
60
69
|
};
|
|
70
|
+
contactDetailsObj: IRefundContactDetails;
|
|
71
|
+
notification: any;
|
|
61
72
|
remissionForm: FormGroup;
|
|
62
73
|
hasErrors: boolean;
|
|
63
74
|
viewStatus: string;
|
|
@@ -87,6 +98,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
87
98
|
isPaymentSuccess: boolean;
|
|
88
99
|
isRemissionApplied: boolean;
|
|
89
100
|
remissionamt: number;
|
|
101
|
+
elementId: any;
|
|
90
102
|
commonRefundReasons: any[];
|
|
91
103
|
showReasonText: boolean;
|
|
92
104
|
isRefundReasonsSelected: boolean;
|
|
@@ -97,6 +109,20 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
97
109
|
pattern2: string;
|
|
98
110
|
sendOrderDetail: any[];
|
|
99
111
|
sendOrderRef: string;
|
|
112
|
+
paymentReference: string;
|
|
113
|
+
class: string;
|
|
114
|
+
errorMsg: any[];
|
|
115
|
+
totalRefundAmount: number;
|
|
116
|
+
quantityUpdated: number;
|
|
117
|
+
fullRefund: boolean;
|
|
118
|
+
allowedRefundAmount: number;
|
|
119
|
+
isRemissionsMatch: boolean;
|
|
120
|
+
paymentFees: IFee[];
|
|
121
|
+
paymentGroup: IPaymentGroup;
|
|
122
|
+
isStatusAllocated: boolean;
|
|
123
|
+
isFromCheckAnsPage: boolean;
|
|
124
|
+
refundAmtForFeeVolumes: number;
|
|
125
|
+
notificationPreview: boolean;
|
|
100
126
|
component: {
|
|
101
127
|
account_number: string;
|
|
102
128
|
amount: number;
|
|
@@ -118,25 +144,44 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
118
144
|
};
|
|
119
145
|
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
120
146
|
ngOnInit(): void;
|
|
147
|
+
goToPaymentViewComponent(): void;
|
|
148
|
+
refundFeesList(): void;
|
|
149
|
+
readonly feesList: FormArray;
|
|
150
|
+
noneSelected(): boolean;
|
|
151
|
+
check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
|
|
121
152
|
addRemission(): void;
|
|
122
153
|
confirmRemission(): void;
|
|
123
154
|
resetRemissionForm(val: any, field: any): void;
|
|
124
155
|
addRemissionCode(): void;
|
|
125
156
|
gotoAddRetroRemissionCodePage(): void;
|
|
126
157
|
gotoCheckRetroRemissionPage(payment: IPayment): void;
|
|
158
|
+
gotoAmountRetroRemission(): void;
|
|
127
159
|
gotoProcessRetroRemissionPage(): void;
|
|
160
|
+
gotoProcessRetroRemission(note?: IRefundContactDetails): void;
|
|
128
161
|
confirmRetroRemission(): void;
|
|
129
162
|
processRefund(): void;
|
|
130
163
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
131
164
|
gotoIssueRefundPage(): void;
|
|
165
|
+
gotoIssuePage(isFullyRefund: any): void;
|
|
166
|
+
calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
|
|
167
|
+
gotoContactDetailsPage(note?: IRefundContactDetails): void;
|
|
168
|
+
getRefundReasons(): void;
|
|
169
|
+
getErrorClass(elementId: any): void;
|
|
132
170
|
changeIssueRefundReason(): void;
|
|
133
|
-
confirmIssueRefund(): void;
|
|
134
|
-
|
|
171
|
+
confirmIssueRefund(isFullyRefund: any): void;
|
|
172
|
+
gotoRefundReasonPage(): void;
|
|
135
173
|
selectRadioButton(key: any, value: any): void;
|
|
136
174
|
selectchange(args: any): void;
|
|
175
|
+
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
176
|
+
gotoPartialFeeRefundScreen(): void;
|
|
137
177
|
gotoServiceRequestPage(event: any): void;
|
|
178
|
+
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
179
|
+
gotoRemissionSuccess(event: Event): void;
|
|
138
180
|
gotoCasetransationPage(): void;
|
|
139
181
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
140
182
|
resetOrderData(): void;
|
|
183
|
+
changeRefundAmount(): void;
|
|
141
184
|
getFormattedCurrency(currency: number): string | number;
|
|
185
|
+
showNotificationPreview(): void;
|
|
186
|
+
hideNotificationPreview(): void;
|
|
142
187
|
}
|
|
@@ -20,6 +20,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
20
20
|
private OrderslistService;
|
|
21
21
|
LOGGEDINUSERROLES: string[];
|
|
22
22
|
isTakePayment: boolean;
|
|
23
|
+
isFromServiceRequestPage: boolean;
|
|
23
24
|
takePayment: boolean;
|
|
24
25
|
ccdCaseNumber: string;
|
|
25
26
|
excReference: string;
|
|
@@ -52,6 +53,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
52
53
|
isRemoveBtnDisabled: boolean;
|
|
53
54
|
feeId: IFee;
|
|
54
55
|
clAmountDue: number;
|
|
56
|
+
overPaymentAmount: number;
|
|
55
57
|
unprocessedRecordCount: number;
|
|
56
58
|
isFeeRecordsExist: boolean;
|
|
57
59
|
isGrpOutstandingAmtPositive: boolean;
|
|
@@ -86,7 +88,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
86
88
|
allowedRolesToAccessRefund: string[];
|
|
87
89
|
isEligible4PBAPayment: string[];
|
|
88
90
|
currentDate: Date;
|
|
89
|
-
isFromServiceRequestPage: boolean;
|
|
90
91
|
navigationpage: string;
|
|
91
92
|
remissionFeeAmt: number;
|
|
92
93
|
constructor(router: Router, paymentViewService: PaymentViewService, bulkScaningPaymentService: BulkScaningPaymentService, caseTransactionsService: CaseTransactionsService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
5
|
+
export declare class ContactDetailsComponent implements OnInit {
|
|
6
|
+
private formBuilder;
|
|
7
|
+
private notificationService;
|
|
8
|
+
private paymentLibComponent;
|
|
9
|
+
isEditOperation: boolean;
|
|
10
|
+
isEditOperationInRefundList: boolean;
|
|
11
|
+
addressObj: any;
|
|
12
|
+
assignContactDetails: EventEmitter<any>;
|
|
13
|
+
assignContactDetailsInFefundsList: EventEmitter<any>;
|
|
14
|
+
redirectToIssueRefund: EventEmitter<any>;
|
|
15
|
+
pageTitle: string;
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
isEmailSAddressClicked: boolean;
|
|
18
|
+
isShowPickAddress: boolean;
|
|
19
|
+
isPostcodeClicked: boolean;
|
|
20
|
+
isManualAddressClicked: boolean;
|
|
21
|
+
emailAddressForm: FormGroup;
|
|
22
|
+
postCodeForm: FormGroup;
|
|
23
|
+
manualAddressForm: FormGroup;
|
|
24
|
+
addressPostcodeList: any[];
|
|
25
|
+
postcodeAddress: any;
|
|
26
|
+
isAddressBoxEmpty: boolean;
|
|
27
|
+
isEmailEmpty: boolean;
|
|
28
|
+
emailHasError: boolean;
|
|
29
|
+
isPostcodeEmpty: boolean;
|
|
30
|
+
postcodeHasError: boolean;
|
|
31
|
+
isaddressLine1Empty: boolean;
|
|
32
|
+
addressLine1HasError: boolean;
|
|
33
|
+
addressLine2HasError: boolean;
|
|
34
|
+
isTownOrCityEmpty: boolean;
|
|
35
|
+
townOrCityHasError: boolean;
|
|
36
|
+
isCountyEmpty: boolean;
|
|
37
|
+
countyHasError: boolean;
|
|
38
|
+
isMPostcodeEmpty: boolean;
|
|
39
|
+
mpostcodeHasError: boolean;
|
|
40
|
+
isCountryEmpty: boolean;
|
|
41
|
+
constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
setEditDetails(): void;
|
|
44
|
+
selectContactOption(type: any, isLinkedClied: any): void;
|
|
45
|
+
finalFormSubmit(): void;
|
|
46
|
+
postcodeValidation(str: any): void;
|
|
47
|
+
redirection(event: any): void;
|
|
48
|
+
resetForm(val: any, field: any): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { IPayment } from '../../interfaces/IPayment';
|
|
3
|
+
import { INotificationPreview } from '../../interfaces/INotificationPreview';
|
|
4
|
+
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
5
|
+
import { NotificationPreviewRequest } from '../../interfaces/NotificationPreviewRequest';
|
|
6
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
7
|
+
import { ErrorHandlerService } from '../../services/shared/error-handler.service';
|
|
8
|
+
export declare class NotificationPreviewComponent implements OnInit {
|
|
9
|
+
private errorHandlerService;
|
|
10
|
+
private notificationService;
|
|
11
|
+
payment: IPayment;
|
|
12
|
+
contactDetails: IRefundContactDetails;
|
|
13
|
+
refundReason: string;
|
|
14
|
+
refundAmount: number;
|
|
15
|
+
paymentReference: string;
|
|
16
|
+
refundReference: string;
|
|
17
|
+
notification: INotificationPreview;
|
|
18
|
+
notificationPreviewRequest: NotificationPreviewRequest;
|
|
19
|
+
today: number;
|
|
20
|
+
errorMessage: {
|
|
21
|
+
title: string;
|
|
22
|
+
body: string;
|
|
23
|
+
showError: any;
|
|
24
|
+
};
|
|
25
|
+
constructor(errorHandlerService: ErrorHandlerService, notificationService: NotificationService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
}
|
|
@@ -8,6 +8,7 @@ import { IRemission } from '../../interfaces/IRemission';
|
|
|
8
8
|
import { ChangeDetectorRef } from '@angular/core';
|
|
9
9
|
import { IPaymentFailure } from '../../interfaces/IPaymentFailure';
|
|
10
10
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
11
|
+
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
11
12
|
export declare class PaymentViewComponent implements OnInit {
|
|
12
13
|
private paymentViewService;
|
|
13
14
|
private paymentLibComponent;
|
|
@@ -28,6 +29,8 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
28
29
|
orderFeesTotal: number;
|
|
29
30
|
orderRemissionTotal: number;
|
|
30
31
|
orderDetail: any[];
|
|
32
|
+
fees: any;
|
|
33
|
+
isFullyRefund: boolean;
|
|
31
34
|
isServiceRequest: string;
|
|
32
35
|
errorMsg: string;
|
|
33
36
|
paymentGroup: IPaymentGroup;
|
|
@@ -52,26 +55,43 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
52
55
|
serviceReference: string;
|
|
53
56
|
isFromServiceRequestPage: boolean;
|
|
54
57
|
isFromPaymentDetailPage: boolean;
|
|
58
|
+
paymentFees: IFee[];
|
|
59
|
+
paymentType: string;
|
|
60
|
+
isContinueBtnDisabled: boolean;
|
|
61
|
+
viewCompStatus: string;
|
|
62
|
+
contactDetailsObj: IRefundContactDetails;
|
|
63
|
+
notification: any;
|
|
64
|
+
isConfirmationBtnDisabled: boolean;
|
|
65
|
+
refundReference: string;
|
|
66
|
+
refundAmount: string;
|
|
67
|
+
notificationPreview: boolean;
|
|
55
68
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
56
69
|
ngAfterContentChecked(): void;
|
|
57
70
|
ngOnInit(): void;
|
|
58
71
|
readonly isCardPayment: boolean;
|
|
59
72
|
readonly isTelephonyPayment: boolean;
|
|
60
73
|
goToPaymentList(): void;
|
|
74
|
+
getOverPaymentValue(): number;
|
|
61
75
|
goToServiceRequestPage(): void;
|
|
62
76
|
goToCaseTransationPage(event: any): void;
|
|
63
77
|
addRemission(fee: IFee): void;
|
|
64
78
|
checkForFees(paymentGroup: any): boolean;
|
|
79
|
+
processRefund(): void;
|
|
80
|
+
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
65
81
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
66
|
-
|
|
82
|
+
goToPaymentViewComponent(): void;
|
|
67
83
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
68
84
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
86
|
+
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
87
|
+
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
88
|
+
selectPymentOption(paymentType: string): void;
|
|
89
|
+
continuePayment(paymentgrp: IPaymentGroup): void;
|
|
90
|
+
gotoPaymentSelectPage(event: Event): void;
|
|
91
|
+
getContactDetails(obj: IRefundContactDetails): void;
|
|
74
92
|
resetOrderData(): void;
|
|
75
93
|
goToPaymentFailuePage(payment: any): void;
|
|
76
94
|
goBackToPaymentView(event: any): void;
|
|
95
|
+
showNotificationPreview(): void;
|
|
96
|
+
hideNotificationPreview(): void;
|
|
77
97
|
}
|
|
@@ -5,10 +5,12 @@ 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';
|
|
9
10
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
10
11
|
export declare class ProcessRefundComponent implements OnInit {
|
|
11
12
|
private RefundsService;
|
|
13
|
+
private paymentViewService;
|
|
12
14
|
private formBuilder;
|
|
13
15
|
private OrderslistService;
|
|
14
16
|
private paymentLibComponent;
|
|
@@ -42,8 +44,10 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
42
44
|
navigationpage: string;
|
|
43
45
|
ccdCaseNumber: string;
|
|
44
46
|
isFromRefundListPage: boolean;
|
|
47
|
+
cpoDetails: any;
|
|
48
|
+
isCPODown: boolean;
|
|
45
49
|
isConfirmButtondisabled: boolean;
|
|
46
|
-
constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
50
|
+
constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
47
51
|
ngOnInit(): void;
|
|
48
52
|
checkRefundActions(code: string): void;
|
|
49
53
|
processRefundSubmit(): void;
|
|
@@ -55,6 +59,7 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
55
59
|
loadRefundListPage(): void;
|
|
56
60
|
loadRefundsHomePage(): void;
|
|
57
61
|
redirecttoRefundListPage(): void;
|
|
62
|
+
loadCaseTransactionPage(): void;
|
|
58
63
|
resetForm(vals: any, field: any): void;
|
|
59
64
|
goToCaseReview(): void;
|
|
60
65
|
}
|
|
@@ -1,27 +1,35 @@
|
|
|
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';
|
|
11
|
+
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
12
|
+
import { IPayment } from '../../interfaces/IPayment';
|
|
13
|
+
import { IFee } from '../../interfaces/IFee';
|
|
14
|
+
import { IRefundFee } from '../../interfaces/IRefundFee';
|
|
10
15
|
export declare class RefundStatusComponent implements OnInit {
|
|
11
16
|
private formBuilder;
|
|
12
17
|
private refundService;
|
|
18
|
+
private notificationService;
|
|
13
19
|
private paymentLibComponent;
|
|
14
|
-
private paymentViewService;
|
|
15
|
-
private router;
|
|
16
20
|
private OrderslistService;
|
|
21
|
+
private paymentViewService;
|
|
17
22
|
LOGGEDINUSERROLES: string[];
|
|
18
23
|
API_ROOT: string;
|
|
19
24
|
ccdCaseNumber: string;
|
|
20
25
|
isTurnOff: boolean;
|
|
26
|
+
orderParty: string;
|
|
21
27
|
isEliginbleToAccess: boolean;
|
|
22
28
|
refundStatusForm: FormGroup;
|
|
23
29
|
selectedRefundReason: string;
|
|
24
30
|
rejectedRefundList: IRefundList[];
|
|
31
|
+
notificationList: any;
|
|
32
|
+
notification: any;
|
|
25
33
|
approvalStatus: string;
|
|
26
34
|
rejectStatus: string;
|
|
27
35
|
errorMessage: any;
|
|
@@ -38,6 +46,11 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
38
46
|
refundHasError: boolean;
|
|
39
47
|
refundReasons: any[];
|
|
40
48
|
refundStatusHistories: IRefundStatus[];
|
|
49
|
+
refundNotifications: IRefundStatus[];
|
|
50
|
+
isResendOperationSuccess: boolean;
|
|
51
|
+
isEditDetailsClicked: boolean;
|
|
52
|
+
isEditAddressDeatilsClicked: boolean;
|
|
53
|
+
addressDetails: IRefundContactDetails;
|
|
41
54
|
refundReference: string;
|
|
42
55
|
refundAmount: string;
|
|
43
56
|
refundCode: string;
|
|
@@ -48,22 +61,40 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
48
61
|
isLastUpdatedByCurrentUser: boolean;
|
|
49
62
|
isProcessRefund: boolean;
|
|
50
63
|
changedAmount: number;
|
|
51
|
-
|
|
64
|
+
isRemissionsMatch: boolean;
|
|
65
|
+
payment: IPayment;
|
|
66
|
+
changeRefundReason: string;
|
|
67
|
+
fees: IFee[];
|
|
68
|
+
refundFees: IRefundFee[];
|
|
69
|
+
notificationPreview: boolean;
|
|
70
|
+
allowedRolesToAccessRefund: string[];
|
|
71
|
+
constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService, paymentViewService: PaymentViewService);
|
|
52
72
|
ngOnInit(): void;
|
|
53
73
|
isFromPayBubble: () => boolean;
|
|
54
74
|
getRefundsStatusHistoryList(): void;
|
|
75
|
+
getRefundsNotification(): void;
|
|
55
76
|
goToRefundView(refundlist: IRefundList, navigationpage: string): void;
|
|
56
77
|
loadCaseTransactionPage(): void;
|
|
57
78
|
loadRefundListPage(): void;
|
|
58
79
|
gotoReviewDetailsPage(event: any): void;
|
|
59
80
|
gotoReviewAndReSubmitPage(): void;
|
|
60
|
-
gotoRefundReasonPage(): void;
|
|
81
|
+
gotoRefundReasonPage(refundReason: string): void;
|
|
61
82
|
gotoAmountPage(): void;
|
|
62
83
|
goToReviewAndSubmitView(): void;
|
|
63
84
|
resetRemissionForm(val: any, field: any): void;
|
|
64
85
|
selectRadioButton(key: any, value: any): void;
|
|
65
86
|
getRefundListReason(refundListReason: any): void;
|
|
66
87
|
getRefundAmount(amount: number): void;
|
|
88
|
+
getRefundFees(fees: IFee[]): void;
|
|
67
89
|
gotoReviewRefundConfirmationPage(): void;
|
|
90
|
+
gotoEditAddressDetails(note: IRefundsNotifications): void;
|
|
91
|
+
getContactDetails(obj: IRefundContactDetails): void;
|
|
92
|
+
getContactDetailsForRefundList(obj: IRefundContactDetails): void;
|
|
93
|
+
gotoEditDetailsPage(note?: any): void;
|
|
94
|
+
submitEditDetail(): void;
|
|
95
|
+
putResend(notification: IRefundsNotifications): void;
|
|
96
|
+
gotoCasetransationPageCancelBtnClicked(Event: Event): void;
|
|
68
97
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
98
|
+
showNotificationPreview(): void;
|
|
99
|
+
hideNotificationPreview(): void;
|
|
69
100
|
}
|
|
@@ -11,12 +11,17 @@ export declare class ReportsComponent implements OnInit {
|
|
|
11
11
|
private formBuilder;
|
|
12
12
|
private bulkScaningPaymentService;
|
|
13
13
|
private paymentViewService;
|
|
14
|
+
ISPAYMENTSTATUSENABLED: string;
|
|
15
|
+
fmt: string;
|
|
16
|
+
loc: string;
|
|
14
17
|
reportsForm: FormGroup;
|
|
15
18
|
startDate: string;
|
|
16
19
|
endDate: string;
|
|
20
|
+
errorMeaagse: string;
|
|
17
21
|
ccdCaseNumber: string;
|
|
18
22
|
isDownLoadButtondisabled: Boolean;
|
|
19
23
|
isStartDateLesthanEndDate: Boolean;
|
|
24
|
+
isDateBetwnMonth: Boolean;
|
|
20
25
|
isDateRangeBetnWeek: Boolean;
|
|
21
26
|
errorMessage: {
|
|
22
27
|
title: string;
|
|
@@ -36,5 +41,6 @@ export declare class ReportsComponent implements OnInit {
|
|
|
36
41
|
getTwodigit(input: number): string;
|
|
37
42
|
getCamelCaseString(selectedOption: any): any;
|
|
38
43
|
applyDateFormat(res: any): any;
|
|
44
|
+
multiDateFormater(dateStr: any): any;
|
|
39
45
|
convertToFloatValue(amt: any): string;
|
|
40
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
3
3
|
import { IPayment } from '../../interfaces/IPayment';
|
|
4
4
|
import { IRemission } from '../../interfaces/IRemission';
|
|
@@ -9,10 +9,12 @@ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
|
9
9
|
import { Router } from '@angular/router';
|
|
10
10
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
11
11
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
12
|
+
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
12
13
|
export declare class ServiceRequestComponent implements OnInit {
|
|
13
14
|
private paymentLibComponent;
|
|
14
15
|
private paymentViewService;
|
|
15
16
|
private OrderslistService;
|
|
17
|
+
private cd;
|
|
16
18
|
private router;
|
|
17
19
|
LOGGEDINUSERROLES: string[];
|
|
18
20
|
viewStatus: string;
|
|
@@ -25,18 +27,22 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
25
27
|
orderFeesTotal: number;
|
|
26
28
|
orderTotalPayments: number;
|
|
27
29
|
orderRemissionTotal: number;
|
|
30
|
+
paymentGroupList: IPaymentGroup;
|
|
28
31
|
takePayment: boolean;
|
|
29
32
|
ccdCaseNumber: boolean;
|
|
30
33
|
isServiceRequest: string;
|
|
31
34
|
goToServiceRquestComponent: EventEmitter<any>;
|
|
35
|
+
viewCompStatus: any;
|
|
32
36
|
servicerequest: string;
|
|
37
|
+
paymentType: string;
|
|
33
38
|
excReference: string;
|
|
34
39
|
paymentGroups: any[];
|
|
35
40
|
payments: IPayment[];
|
|
36
41
|
nonPayments: IPayment[];
|
|
37
42
|
allPayments: IPayment[];
|
|
38
43
|
remissions: IRemission[];
|
|
39
|
-
|
|
44
|
+
paymentFees: IFee[];
|
|
45
|
+
fees: any;
|
|
40
46
|
errorMessage: string;
|
|
41
47
|
totalFees: number;
|
|
42
48
|
totalPayments: number;
|
|
@@ -64,6 +70,9 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
64
70
|
isGrpOutstandingAmtPositive: boolean;
|
|
65
71
|
totalRefundAmount: Number;
|
|
66
72
|
caseType: String;
|
|
73
|
+
isConfirmationBtnDisabled: boolean;
|
|
74
|
+
refundReference: string;
|
|
75
|
+
refundAmount: string;
|
|
67
76
|
payment: IPayment;
|
|
68
77
|
paymentGroup: IPaymentGroup;
|
|
69
78
|
paymentView: IPaymentView;
|
|
@@ -73,6 +82,9 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
73
82
|
cpoDetails: any;
|
|
74
83
|
serviceRequestValue: string;
|
|
75
84
|
orderAddBtnEnable: boolean;
|
|
85
|
+
isFromPaymentDetailPage: boolean;
|
|
86
|
+
contactDetailsObj: IRefundContactDetails;
|
|
87
|
+
notification: any;
|
|
76
88
|
isCPODown: boolean;
|
|
77
89
|
test: boolean;
|
|
78
90
|
isPBA: boolean;
|
|
@@ -83,22 +95,32 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
83
95
|
isFromServiceRequestPage: boolean;
|
|
84
96
|
navigationpage: string;
|
|
85
97
|
remissionFeeAmt: number;
|
|
86
|
-
|
|
98
|
+
isContinueBtnDisabled: boolean;
|
|
99
|
+
isFullyRefund: boolean;
|
|
100
|
+
notificationPreview: boolean;
|
|
101
|
+
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, cd: ChangeDetectorRef, router: Router);
|
|
87
102
|
ngOnInit(): void;
|
|
88
103
|
goToServiceRequestPage(): void;
|
|
89
104
|
goToCaseTransationPage(event: any): void;
|
|
90
|
-
chkForAddRemission(feeCode: string): boolean;
|
|
91
|
-
chkForPBAPayment(): boolean;
|
|
92
105
|
addRemission(fee: IFee): void;
|
|
93
106
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
94
107
|
cancelRemoval(): void;
|
|
95
108
|
removeFee(fee: any): void;
|
|
96
|
-
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
97
|
-
chkIsRefundRemissionBtnEnable(): boolean;
|
|
98
|
-
check4AllowedRoles2AccessRefund: () => boolean;
|
|
99
|
-
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
100
109
|
issueRefund(payment: IPayment): void;
|
|
101
110
|
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
102
111
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
112
|
+
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
113
|
+
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
114
|
+
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
103
115
|
resetOrderData(): void;
|
|
116
|
+
selectPymentOption(paymentType: string): void;
|
|
117
|
+
goToPaymentViewComp(): void;
|
|
118
|
+
continuePayment(paymentgrp: IPaymentGroup): void;
|
|
119
|
+
getContactDetails(obj: IRefundContactDetails): void;
|
|
120
|
+
gotoPaymentSelectPage(event: Event): void;
|
|
121
|
+
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
122
|
+
processRefund(): void;
|
|
123
|
+
getOverPaymentValue(): number;
|
|
124
|
+
showNotificationPreview(): void;
|
|
125
|
+
hideNotificationPreview(): void;
|
|
104
126
|
}
|
package/lib/interfaces/IFee.d.ts
CHANGED
|
@@ -20,4 +20,10 @@ export interface IFee {
|
|
|
20
20
|
date_updated?: string;
|
|
21
21
|
amount_due?: number;
|
|
22
22
|
remission_enable?: boolean;
|
|
23
|
+
add_remission?: boolean;
|
|
24
|
+
over_payment?: number;
|
|
25
|
+
refund_amount?: number;
|
|
26
|
+
updated_volume?: number;
|
|
27
|
+
selected?: any;
|
|
28
|
+
issue_refund_add_refund_add_remission: boolean;
|
|
23
29
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface INotificationPreview {
|
|
2
|
+
template_id: string;
|
|
3
|
+
template_type: string;
|
|
4
|
+
from: {
|
|
5
|
+
from_email_address: string;
|
|
6
|
+
from_mail_address: {
|
|
7
|
+
address_line: string;
|
|
8
|
+
city: string;
|
|
9
|
+
county: string;
|
|
10
|
+
country: string;
|
|
11
|
+
postal_code: String;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
recipient_contact: {
|
|
15
|
+
recipient_email_address: string;
|
|
16
|
+
recipient_mail_address: {
|
|
17
|
+
address_line: string;
|
|
18
|
+
city: string;
|
|
19
|
+
county: string;
|
|
20
|
+
country: string;
|
|
21
|
+
postal_code: String;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
subject: string;
|
|
25
|
+
body: string;
|
|
26
|
+
html: string;
|
|
27
|
+
}
|
|
@@ -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,8 @@ export interface IRefundList {
|
|
|
10
11
|
description: string;
|
|
11
12
|
name: string;
|
|
12
13
|
};
|
|
14
|
+
contact_details: IRefundContactDetails;
|
|
13
15
|
user_full_name: string;
|
|
16
|
+
service_type: string;
|
|
17
|
+
code: string;
|
|
14
18
|
}
|
|
@@ -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
|
+
}
|