@hmcts/ccpay-web-component 5.0.7-beta22 → 5.0.8
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 +633 -2069
- 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 +31 -33
- package/esm2015/lib/components/add-remission/add-remission.component.js +120 -695
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +17 -31
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +13 -18
- package/esm2015/lib/components/payment-view/payment-view.component.js +106 -188
- package/esm2015/lib/components/process-refund/process-refund.component.js +28 -49
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +30 -211
- package/esm2015/lib/components/reports/reports.component.js +16 -1
- package/esm2015/lib/components/service-request/service-request.component.js +146 -237
- package/esm2015/lib/components/table/table.component.js +9 -24
- package/esm2015/lib/interfaces/IFee.js +1 -13
- package/esm2015/lib/interfaces/IPayment.js +1 -7
- package/esm2015/lib/interfaces/IRefundList.js +1 -7
- package/esm2015/lib/interfaces/IRemission.js +1 -7
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +2 -10
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +2 -6
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -20
- package/esm2015/lib/payment-lib.component.js +2 -9
- package/esm2015/lib/payment-lib.module.js +1 -3
- package/esm2015/lib/payment-lib.service.js +1 -16
- package/esm2015/lib/services/refunds/refunds.service.js +1 -10
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm2015/lib/services/xl-file/xl-file.service.js +2 -1
- package/esm5/hmcts-ccpay-web-component.js +31 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +125 -817
- package/esm5/lib/components/case-transactions/case-transactions.component.js +17 -31
- package/esm5/lib/components/fee-summary/fee-summary.component.js +13 -18
- package/esm5/lib/components/payment-view/payment-view.component.js +124 -219
- package/esm5/lib/components/process-refund/process-refund.component.js +78 -52
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +28 -247
- package/esm5/lib/components/reports/reports.component.js +16 -1
- package/esm5/lib/components/service-request/service-request.component.js +176 -278
- package/esm5/lib/components/table/table.component.js +9 -27
- package/esm5/lib/interfaces/IFee.js +1 -13
- package/esm5/lib/interfaces/IPayment.js +1 -7
- package/esm5/lib/interfaces/IRefundList.js +1 -7
- package/esm5/lib/interfaces/IRemission.js +1 -7
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +2 -8
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +2 -5
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -16
- package/esm5/lib/payment-lib.component.js +2 -9
- package/esm5/lib/payment-lib.module.js +1 -3
- package/esm5/lib/payment-lib.service.js +1 -23
- package/esm5/lib/services/refunds/refunds.service.js +1 -16
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
- package/esm5/lib/services/xl-file/xl-file.service.js +2 -1
- package/fesm2015/hmcts-ccpay-web-component.js +507 -1818
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +592 -2069
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +30 -32
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +3 -45
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -2
- package/lib/components/payment-view/payment-view.component.d.ts +6 -23
- package/lib/components/process-refund/process-refund.component.d.ts +1 -6
- package/lib/components/refund-status/refund-status.component.d.ts +6 -34
- package/lib/components/service-request/service-request.component.d.ts +9 -28
- package/lib/components/table/table.component.d.ts +0 -1
- package/lib/interfaces/IFee.d.ts +0 -6
- package/lib/interfaces/IPayment.d.ts +0 -3
- package/lib/interfaces/IRefundList.d.ts +0 -4
- package/lib/interfaces/IRemission.d.ts +0 -3
- package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -5
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -3
- package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -7
- package/lib/payment-lib.component.d.ts +0 -2
- package/lib/payment-lib.service.d.ts +0 -3
- package/lib/services/refunds/refunds.service.d.ts +0 -2
- package/package.json +1 -5
- package/esm2015/lib/components/contact-details/contact-details.component.js +0 -447
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -25
- package/esm2015/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm2015/lib/interfaces/IRefundFee.js +0 -21
- package/esm2015/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm2015/lib/services/notification/notification.service.js +0 -85
- package/esm5/lib/components/contact-details/contact-details.component.js +0 -472
- package/esm5/lib/interfaces/IPutNotificationRequest.js +0 -23
- package/esm5/lib/interfaces/IRefundContactDetails.js +0 -25
- package/esm5/lib/interfaces/IRefundFee.js +0 -21
- package/esm5/lib/interfaces/IRefundsNotifications.js +0 -21
- package/esm5/lib/services/notification/notification.service.js +0 -89
- package/lib/components/contact-details/contact-details.component.d.ts +0 -49
- package/lib/interfaces/IPutNotificationRequest.d.ts +0 -6
- package/lib/interfaces/IRefundContactDetails.d.ts +0 -9
- package/lib/interfaces/IRefundFee.d.ts +0 -7
- package/lib/interfaces/IRefundsNotifications.d.ts +0 -16
- package/lib/services/notification/notification.service.d.ts +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup
|
|
2
|
+
import { FormBuilder, FormGroup } 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,11 +7,9 @@ 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';
|
|
11
10
|
import { ChangeDetectorRef } from '@angular/core';
|
|
12
11
|
import { IRemission } from '../../interfaces/IRemission';
|
|
13
12
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
14
|
-
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
15
13
|
export declare class AddRemissionComponent implements OnInit {
|
|
16
14
|
private formBuilder;
|
|
17
15
|
private router;
|
|
@@ -21,7 +19,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
21
19
|
private cd;
|
|
22
20
|
private OrderslistService;
|
|
23
21
|
fee: IFee;
|
|
24
|
-
fees: any[];
|
|
25
22
|
payment: IPayment;
|
|
26
23
|
remission: IRemission;
|
|
27
24
|
ccdCaseNumber: string;
|
|
@@ -35,12 +32,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
35
32
|
isFromRefundListPage: boolean;
|
|
36
33
|
isFromPaymentDetailPage: boolean;
|
|
37
34
|
isFromServiceRequestPage: boolean;
|
|
38
|
-
isFullyRefund: boolean;
|
|
39
35
|
feeamount: number;
|
|
40
|
-
refundPaymentReference: string;
|
|
41
|
-
isFromRefundStatusPage: boolean;
|
|
42
|
-
changeRefundReason: string;
|
|
43
|
-
isServiceRequest: string;
|
|
44
36
|
LOGGEDINUSERROLES: string[];
|
|
45
37
|
orderDetail: any[];
|
|
46
38
|
orderRef: string;
|
|
@@ -58,7 +50,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
58
50
|
code: string;
|
|
59
51
|
}>;
|
|
60
52
|
refundListAmount: EventEmitter<string>;
|
|
61
|
-
refundFees: EventEmitter<IFee[]>;
|
|
62
53
|
refund: {
|
|
63
54
|
reason: {
|
|
64
55
|
duplicate: string;
|
|
@@ -67,8 +58,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
67
58
|
other: string;
|
|
68
59
|
};
|
|
69
60
|
};
|
|
70
|
-
contactDetailsObj: IRefundContactDetails;
|
|
71
|
-
notification: any;
|
|
72
61
|
remissionForm: FormGroup;
|
|
73
62
|
hasErrors: boolean;
|
|
74
63
|
viewStatus: string;
|
|
@@ -98,7 +87,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
98
87
|
isPaymentSuccess: boolean;
|
|
99
88
|
isRemissionApplied: boolean;
|
|
100
89
|
remissionamt: number;
|
|
101
|
-
elementId: any;
|
|
102
90
|
commonRefundReasons: any[];
|
|
103
91
|
showReasonText: boolean;
|
|
104
92
|
isRefundReasonsSelected: boolean;
|
|
@@ -109,19 +97,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
109
97
|
pattern2: string;
|
|
110
98
|
sendOrderDetail: any[];
|
|
111
99
|
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
100
|
component: {
|
|
126
101
|
account_number: string;
|
|
127
102
|
amount: number;
|
|
@@ -143,42 +118,25 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
143
118
|
};
|
|
144
119
|
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
145
120
|
ngOnInit(): void;
|
|
146
|
-
goToPaymentViewComponent(): void;
|
|
147
|
-
refundFeesList(): void;
|
|
148
|
-
readonly feesList: FormArray;
|
|
149
|
-
noneSelected(): boolean;
|
|
150
|
-
check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
|
|
151
121
|
addRemission(): void;
|
|
152
122
|
confirmRemission(): void;
|
|
153
123
|
resetRemissionForm(val: any, field: any): void;
|
|
154
124
|
addRemissionCode(): void;
|
|
155
125
|
gotoAddRetroRemissionCodePage(): void;
|
|
156
126
|
gotoCheckRetroRemissionPage(payment: IPayment): void;
|
|
157
|
-
gotoAmountRetroRemission(): void;
|
|
158
127
|
gotoProcessRetroRemissionPage(): void;
|
|
159
|
-
gotoProcessRetroRemission(note?: IRefundContactDetails): void;
|
|
160
128
|
confirmRetroRemission(): void;
|
|
161
129
|
processRefund(): void;
|
|
162
130
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
163
131
|
gotoIssueRefundPage(): void;
|
|
164
|
-
gotoIssuePage(isFullyRefund: any): void;
|
|
165
|
-
calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
|
|
166
|
-
gotoContactDetailsPage(note?: IRefundContactDetails): void;
|
|
167
|
-
getRefundReasons(): void;
|
|
168
|
-
getErrorClass(elementId: any): void;
|
|
169
132
|
changeIssueRefundReason(): void;
|
|
170
|
-
confirmIssueRefund(
|
|
171
|
-
|
|
133
|
+
confirmIssueRefund(): void;
|
|
134
|
+
confirmRetroRefund(): void;
|
|
172
135
|
selectRadioButton(key: any, value: any): void;
|
|
173
136
|
selectchange(args: any): void;
|
|
174
|
-
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
175
|
-
gotoPartialFeeRefundScreen(): void;
|
|
176
137
|
gotoServiceRequestPage(event: any): void;
|
|
177
|
-
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
178
|
-
gotoRemissionSuccess(event: Event): void;
|
|
179
138
|
gotoCasetransationPage(): void;
|
|
180
139
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
181
140
|
resetOrderData(): void;
|
|
182
|
-
changeRefundAmount(): void;
|
|
183
141
|
getFormattedCurrency(currency: number): string | number;
|
|
184
142
|
}
|
|
@@ -20,7 +20,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
20
20
|
private OrderslistService;
|
|
21
21
|
LOGGEDINUSERROLES: string[];
|
|
22
22
|
isTakePayment: boolean;
|
|
23
|
-
isFromServiceRequestPage: boolean;
|
|
24
23
|
takePayment: boolean;
|
|
25
24
|
ccdCaseNumber: string;
|
|
26
25
|
excReference: string;
|
|
@@ -53,7 +52,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
53
52
|
isRemoveBtnDisabled: boolean;
|
|
54
53
|
feeId: IFee;
|
|
55
54
|
clAmountDue: number;
|
|
56
|
-
overPaymentAmount: number;
|
|
57
55
|
unprocessedRecordCount: number;
|
|
58
56
|
isFeeRecordsExist: boolean;
|
|
59
57
|
isGrpOutstandingAmtPositive: boolean;
|
|
@@ -88,6 +86,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
88
86
|
allowedRolesToAccessRefund: string[];
|
|
89
87
|
isEligible4PBAPayment: string[];
|
|
90
88
|
currentDate: Date;
|
|
89
|
+
isFromServiceRequestPage: boolean;
|
|
91
90
|
navigationpage: string;
|
|
92
91
|
remissionFeeAmt: number;
|
|
93
92
|
constructor(router: Router, paymentViewService: PaymentViewService, bulkScaningPaymentService: BulkScaningPaymentService, caseTransactionsService: CaseTransactionsService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
|
|
@@ -8,7 +8,6 @@ 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';
|
|
12
11
|
export declare class PaymentViewComponent implements OnInit {
|
|
13
12
|
private paymentViewService;
|
|
14
13
|
private paymentLibComponent;
|
|
@@ -29,8 +28,6 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
29
28
|
orderFeesTotal: number;
|
|
30
29
|
orderRemissionTotal: number;
|
|
31
30
|
orderDetail: any[];
|
|
32
|
-
fees: any;
|
|
33
|
-
isFullyRefund: boolean;
|
|
34
31
|
isServiceRequest: string;
|
|
35
32
|
errorMsg: string;
|
|
36
33
|
paymentGroup: IPaymentGroup;
|
|
@@ -55,39 +52,25 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
55
52
|
serviceReference: string;
|
|
56
53
|
isFromServiceRequestPage: boolean;
|
|
57
54
|
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
55
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
68
56
|
ngAfterContentChecked(): void;
|
|
69
57
|
ngOnInit(): void;
|
|
70
58
|
readonly isCardPayment: boolean;
|
|
71
59
|
readonly isTelephonyPayment: boolean;
|
|
72
60
|
goToPaymentList(): void;
|
|
73
|
-
getOverPaymentValue(): number;
|
|
74
61
|
goToServiceRequestPage(): void;
|
|
75
62
|
goToCaseTransationPage(event: any): void;
|
|
76
63
|
addRemission(fee: IFee): void;
|
|
77
64
|
checkForFees(paymentGroup: any): boolean;
|
|
78
|
-
processRefund(): void;
|
|
79
|
-
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
80
65
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
81
|
-
|
|
66
|
+
chkIsRefundRemissionBtnEnable(): boolean;
|
|
82
67
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
83
68
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
gotoPaymentSelectPage(event: Event): void;
|
|
90
|
-
getContactDetails(obj: IRefundContactDetails): void;
|
|
69
|
+
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
70
|
+
chkForPBAPayment(): boolean;
|
|
71
|
+
chkForAddRemission(feeCode: string): boolean;
|
|
72
|
+
check4AllowedRoles2AccessRefund: () => boolean;
|
|
73
|
+
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
91
74
|
resetOrderData(): void;
|
|
92
75
|
goToPaymentFailuePage(payment: any): void;
|
|
93
76
|
goBackToPaymentView(event: any): void;
|
|
@@ -5,12 +5,10 @@ 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';
|
|
9
8
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
10
9
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
11
10
|
export declare class ProcessRefundComponent implements OnInit {
|
|
12
11
|
private RefundsService;
|
|
13
|
-
private paymentViewService;
|
|
14
12
|
private formBuilder;
|
|
15
13
|
private OrderslistService;
|
|
16
14
|
private paymentLibComponent;
|
|
@@ -44,10 +42,8 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
44
42
|
navigationpage: string;
|
|
45
43
|
ccdCaseNumber: string;
|
|
46
44
|
isFromRefundListPage: boolean;
|
|
47
|
-
cpoDetails: any;
|
|
48
|
-
isCPODown: boolean;
|
|
49
45
|
isConfirmButtondisabled: boolean;
|
|
50
|
-
constructor(RefundsService: RefundsService,
|
|
46
|
+
constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
51
47
|
ngOnInit(): void;
|
|
52
48
|
checkRefundActions(code: string): void;
|
|
53
49
|
processRefundSubmit(): void;
|
|
@@ -59,7 +55,6 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
59
55
|
loadRefundListPage(): void;
|
|
60
56
|
loadRefundsHomePage(): void;
|
|
61
57
|
redirecttoRefundListPage(): void;
|
|
62
|
-
loadCaseTransactionPage(): void;
|
|
63
58
|
resetForm(vals: any, field: any): void;
|
|
64
59
|
goToCaseReview(): void;
|
|
65
60
|
}
|
|
@@ -1,35 +1,27 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { RefundsService } from '../../services/refunds/refunds.service';
|
|
3
|
-
import { NotificationService } from '../../services/notification/notification.service';
|
|
4
3
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
5
4
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
6
|
-
import {
|
|
5
|
+
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
6
|
+
import { Router } from '@angular/router';
|
|
7
7
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
8
|
-
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
9
8
|
import { IRefundStatus } from '../../interfaces/IRefundStatus';
|
|
10
9
|
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';
|
|
15
10
|
export declare class RefundStatusComponent implements OnInit {
|
|
16
11
|
private formBuilder;
|
|
17
12
|
private refundService;
|
|
18
|
-
private notificationService;
|
|
19
13
|
private paymentLibComponent;
|
|
20
|
-
private OrderslistService;
|
|
21
14
|
private paymentViewService;
|
|
15
|
+
private router;
|
|
16
|
+
private OrderslistService;
|
|
22
17
|
LOGGEDINUSERROLES: string[];
|
|
23
18
|
API_ROOT: string;
|
|
24
19
|
ccdCaseNumber: string;
|
|
25
20
|
isTurnOff: boolean;
|
|
26
|
-
orderParty: string;
|
|
27
21
|
isEliginbleToAccess: boolean;
|
|
28
22
|
refundStatusForm: FormGroup;
|
|
29
23
|
selectedRefundReason: string;
|
|
30
24
|
rejectedRefundList: IRefundList[];
|
|
31
|
-
notificationList: any;
|
|
32
|
-
notification: any;
|
|
33
25
|
approvalStatus: string;
|
|
34
26
|
rejectStatus: string;
|
|
35
27
|
errorMessage: any;
|
|
@@ -46,11 +38,6 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
46
38
|
refundHasError: boolean;
|
|
47
39
|
refundReasons: any[];
|
|
48
40
|
refundStatusHistories: IRefundStatus[];
|
|
49
|
-
refundNotifications: IRefundStatus[];
|
|
50
|
-
isResendOperationSuccess: boolean;
|
|
51
|
-
isEditDetailsClicked: boolean;
|
|
52
|
-
isEditAddressDeatilsClicked: boolean;
|
|
53
|
-
addressDetails: IRefundContactDetails;
|
|
54
41
|
refundReference: string;
|
|
55
42
|
refundAmount: string;
|
|
56
43
|
refundCode: string;
|
|
@@ -61,37 +48,22 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
61
48
|
isLastUpdatedByCurrentUser: boolean;
|
|
62
49
|
isProcessRefund: boolean;
|
|
63
50
|
changedAmount: number;
|
|
64
|
-
|
|
65
|
-
payment: IPayment;
|
|
66
|
-
changeRefundReason: string;
|
|
67
|
-
fees: IFee[];
|
|
68
|
-
refundFees: IRefundFee[];
|
|
69
|
-
allowedRolesToAccessRefund: string[];
|
|
70
|
-
constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService, paymentViewService: PaymentViewService);
|
|
51
|
+
constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
|
|
71
52
|
ngOnInit(): void;
|
|
72
53
|
isFromPayBubble: () => boolean;
|
|
73
54
|
getRefundsStatusHistoryList(): void;
|
|
74
|
-
getRefundsNotification(): void;
|
|
75
55
|
goToRefundView(refundlist: IRefundList, navigationpage: string): void;
|
|
76
56
|
loadCaseTransactionPage(): void;
|
|
77
57
|
loadRefundListPage(): void;
|
|
78
58
|
gotoReviewDetailsPage(event: any): void;
|
|
79
59
|
gotoReviewAndReSubmitPage(): void;
|
|
80
|
-
gotoRefundReasonPage(
|
|
60
|
+
gotoRefundReasonPage(): void;
|
|
81
61
|
gotoAmountPage(): void;
|
|
82
62
|
goToReviewAndSubmitView(): void;
|
|
83
63
|
resetRemissionForm(val: any, field: any): void;
|
|
84
64
|
selectRadioButton(key: any, value: any): void;
|
|
85
65
|
getRefundListReason(refundListReason: any): void;
|
|
86
66
|
getRefundAmount(amount: number): void;
|
|
87
|
-
getRefundFees(fees: IFee[]): void;
|
|
88
67
|
gotoReviewRefundConfirmationPage(): void;
|
|
89
|
-
gotoEditAddressDetails(note: IRefundsNotifications): void;
|
|
90
|
-
getContactDetails(obj: IRefundContactDetails): void;
|
|
91
|
-
getContactDetailsForRefundList(obj: IRefundContactDetails): void;
|
|
92
|
-
gotoEditDetailsPage(note?: any): void;
|
|
93
|
-
submitEditDetail(): void;
|
|
94
|
-
putResend(notification: IRefundsNotifications): void;
|
|
95
|
-
gotoCasetransationPageCancelBtnClicked(Event: Event): void;
|
|
96
68
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
97
69
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, EventEmitter
|
|
1
|
+
import { OnInit, EventEmitter } 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,12 +9,10 @@ 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';
|
|
13
12
|
export declare class ServiceRequestComponent implements OnInit {
|
|
14
13
|
private paymentLibComponent;
|
|
15
14
|
private paymentViewService;
|
|
16
15
|
private OrderslistService;
|
|
17
|
-
private cd;
|
|
18
16
|
private router;
|
|
19
17
|
LOGGEDINUSERROLES: string[];
|
|
20
18
|
viewStatus: string;
|
|
@@ -27,22 +25,18 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
27
25
|
orderFeesTotal: number;
|
|
28
26
|
orderTotalPayments: number;
|
|
29
27
|
orderRemissionTotal: number;
|
|
30
|
-
paymentGroupList: IPaymentGroup;
|
|
31
28
|
takePayment: boolean;
|
|
32
29
|
ccdCaseNumber: boolean;
|
|
33
30
|
isServiceRequest: string;
|
|
34
31
|
goToServiceRquestComponent: EventEmitter<any>;
|
|
35
|
-
viewCompStatus: any;
|
|
36
32
|
servicerequest: string;
|
|
37
|
-
paymentType: string;
|
|
38
33
|
excReference: string;
|
|
39
34
|
paymentGroups: any[];
|
|
40
35
|
payments: IPayment[];
|
|
41
36
|
nonPayments: IPayment[];
|
|
42
37
|
allPayments: IPayment[];
|
|
43
38
|
remissions: IRemission[];
|
|
44
|
-
|
|
45
|
-
fees: any;
|
|
39
|
+
fees: IFee[];
|
|
46
40
|
errorMessage: string;
|
|
47
41
|
totalFees: number;
|
|
48
42
|
totalPayments: number;
|
|
@@ -70,9 +64,6 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
70
64
|
isGrpOutstandingAmtPositive: boolean;
|
|
71
65
|
totalRefundAmount: Number;
|
|
72
66
|
caseType: String;
|
|
73
|
-
isConfirmationBtnDisabled: boolean;
|
|
74
|
-
refundReference: string;
|
|
75
|
-
refundAmount: string;
|
|
76
67
|
payment: IPayment;
|
|
77
68
|
paymentGroup: IPaymentGroup;
|
|
78
69
|
paymentView: IPaymentView;
|
|
@@ -82,9 +73,6 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
82
73
|
cpoDetails: any;
|
|
83
74
|
serviceRequestValue: string;
|
|
84
75
|
orderAddBtnEnable: boolean;
|
|
85
|
-
isFromPaymentDetailPage: boolean;
|
|
86
|
-
contactDetailsObj: IRefundContactDetails;
|
|
87
|
-
notification: any;
|
|
88
76
|
isCPODown: boolean;
|
|
89
77
|
test: boolean;
|
|
90
78
|
isPBA: boolean;
|
|
@@ -95,29 +83,22 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
95
83
|
isFromServiceRequestPage: boolean;
|
|
96
84
|
navigationpage: string;
|
|
97
85
|
remissionFeeAmt: number;
|
|
98
|
-
|
|
99
|
-
isFullyRefund: boolean;
|
|
100
|
-
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, cd: ChangeDetectorRef, router: Router);
|
|
86
|
+
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
|
|
101
87
|
ngOnInit(): void;
|
|
102
88
|
goToServiceRequestPage(): void;
|
|
103
89
|
goToCaseTransationPage(event: any): void;
|
|
90
|
+
chkForAddRemission(feeCode: string): boolean;
|
|
91
|
+
chkForPBAPayment(): boolean;
|
|
104
92
|
addRemission(fee: IFee): void;
|
|
105
93
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
106
94
|
cancelRemoval(): void;
|
|
107
95
|
removeFee(fee: any): void;
|
|
96
|
+
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
97
|
+
chkIsRefundRemissionBtnEnable(): boolean;
|
|
98
|
+
check4AllowedRoles2AccessRefund: () => boolean;
|
|
99
|
+
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
108
100
|
issueRefund(payment: IPayment): void;
|
|
109
101
|
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
110
102
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
111
|
-
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
112
|
-
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
113
|
-
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
114
103
|
resetOrderData(): void;
|
|
115
|
-
selectPymentOption(paymentType: string): void;
|
|
116
|
-
goToPaymentViewComp(): void;
|
|
117
|
-
continuePayment(paymentgrp: IPaymentGroup): void;
|
|
118
|
-
getContactDetails(obj: IRefundContactDetails): void;
|
|
119
|
-
gotoPaymentSelectPage(event: Event): void;
|
|
120
|
-
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
121
|
-
processRefund(): void;
|
|
122
|
-
getOverPaymentValue(): number;
|
|
123
104
|
}
|
package/lib/interfaces/IFee.d.ts
CHANGED
|
@@ -20,10 +20,4 @@ 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;
|
|
29
23
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
2
1
|
export interface IRefundList {
|
|
3
2
|
amount: number;
|
|
4
3
|
ccd_case_number: string;
|
|
@@ -11,8 +10,5 @@ export interface IRefundList {
|
|
|
11
10
|
description: string;
|
|
12
11
|
name: string;
|
|
13
12
|
};
|
|
14
|
-
contact_details: IRefundContactDetails;
|
|
15
13
|
user_full_name: string;
|
|
16
|
-
service_type: string;
|
|
17
|
-
code: string;
|
|
18
14
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { IFee } from "./IFee";
|
|
2
|
-
import { IRefundContactDetails } from "./IRefundContactDetails";
|
|
3
1
|
export declare class IResubmitRefundRequest {
|
|
4
2
|
refund_reason: string;
|
|
5
3
|
amount: number;
|
|
6
|
-
|
|
7
|
-
refund_fees: IFee[];
|
|
8
|
-
constructor(refund_reason: string, amount: number, contact_details: any, refund_fees: any[]);
|
|
4
|
+
constructor(refund_reason: string, amount: number);
|
|
9
5
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
2
1
|
export declare class PostIssueRefundRetroRemission {
|
|
3
2
|
remissionReference: string;
|
|
4
|
-
|
|
5
|
-
constructor(remissionReference: string, contactDeatils: any);
|
|
3
|
+
constructor(remissionReference: string);
|
|
6
4
|
}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { IRefundContactDetails } from "./IRefundContactDetails";
|
|
2
1
|
export declare class PostRefundRetroRemission {
|
|
3
|
-
ccd_case_number: string;
|
|
4
2
|
payment_reference: string;
|
|
5
3
|
refund_reason: string;
|
|
6
|
-
|
|
7
|
-
fees: any[];
|
|
8
|
-
is_over_payment: boolean;
|
|
9
|
-
contact_details: IRefundContactDetails;
|
|
10
|
-
constructor(contact_details: any, fees: any[], payment_reference: string, refund_reason: string, total_refund_amount: any, is_over_payment: string);
|
|
4
|
+
constructor(payment_reference: string, refund_reason: string);
|
|
11
5
|
}
|
|
@@ -10,7 +10,6 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
10
10
|
API_ROOT: string;
|
|
11
11
|
BULKSCAN_API_ROOT: string;
|
|
12
12
|
REFUNDS_API_ROOT: string;
|
|
13
|
-
NOTIFICATION_API_ROOT: string;
|
|
14
13
|
CARDPAYMENTRETURNURL: string;
|
|
15
14
|
CCD_CASE_NUMBER: string;
|
|
16
15
|
EXC_REFERENCE: string;
|
|
@@ -39,7 +38,6 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
39
38
|
paymentGroupReference: string;
|
|
40
39
|
paymentReference: string;
|
|
41
40
|
refundReference: string;
|
|
42
|
-
isFromPayBubble: boolean;
|
|
43
41
|
refundlistsource: any;
|
|
44
42
|
viewName: string;
|
|
45
43
|
isTurnOff: boolean;
|
|
@@ -2,7 +2,6 @@ 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;
|
|
6
5
|
CARDPAYMENTRETURNURL: string;
|
|
7
6
|
constructor();
|
|
8
7
|
setApiRootUrl(apiRoot: string): void;
|
|
@@ -11,8 +10,6 @@ export declare class PaymentLibService {
|
|
|
11
10
|
getBulkScanApiRootUrl(): string;
|
|
12
11
|
setRefundndsApiRootUrl(refundsapiRoot: string): void;
|
|
13
12
|
getRefundsApiRootUrl(): string;
|
|
14
|
-
setNoticationApiRootUrl(notificationapiRoot: string): void;
|
|
15
|
-
getNoticationApiRootUrl(): string;
|
|
16
13
|
setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
|
|
17
14
|
getCardPaymentReturnUrl(): string;
|
|
18
15
|
}
|
|
@@ -9,7 +9,6 @@ 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';
|
|
13
12
|
export declare class RefundsService {
|
|
14
13
|
private http;
|
|
15
14
|
private https;
|
|
@@ -26,7 +25,6 @@ export declare class RefundsService {
|
|
|
26
25
|
getRefundStatusList(ccdCaseNumber: string): Observable<IRefundList[]>;
|
|
27
26
|
getUserDetails(): Observable<any>;
|
|
28
27
|
postIssueRefund(body: IssueRefundRequest): Observable<any>;
|
|
29
|
-
putResendOrEdit(body: IPutNotificationRequest, refundRef: string, notificationType: string): Observable<any>;
|
|
30
28
|
patchResubmitRefund(body: IResubmitRefundRequest, refund_reference: string): Observable<any>;
|
|
31
29
|
addHeaders(options: any): any;
|
|
32
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmcts/ccpay-web-component",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"name": "Santosh Govindu",
|
|
18
18
|
"email": "santosh.govindu@hmcts.net"
|
|
19
19
|
},
|
|
20
|
-
{
|
|
21
|
-
"name": "Kumar dhanasamy",
|
|
22
|
-
"email": "kumar.dhanasamy@hmcts.net"
|
|
23
|
-
},
|
|
24
20
|
{
|
|
25
21
|
"name": "Tarun Palisetty",
|
|
26
22
|
"email": "tarun.palisetty@hmcts.net"
|