@hmcts/ccpay-web-component 5.0.4-beta03 → 5.0.4-beta06
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 +632 -2094
- 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 +126 -697
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +19 -43
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +12 -17
- 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 +49 -235
- 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/esm5/hmcts-ccpay-web-component.js +31 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +131 -819
- package/esm5/lib/components/case-transactions/case-transactions.component.js +19 -43
- package/esm5/lib/components/fee-summary/fee-summary.component.js +12 -17
- 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 +47 -274
- 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/fesm2015/hmcts-ccpay-web-component.js +515 -1851
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +597 -2102
- 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 -3
- 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 +7 -35
- 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;
|
|
@@ -37,12 +34,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
37
34
|
isFromRefundListPage: boolean;
|
|
38
35
|
isFromPaymentDetailPage: boolean;
|
|
39
36
|
isFromServiceRequestPage: boolean;
|
|
40
|
-
isFullyRefund: boolean;
|
|
41
37
|
feeamount: number;
|
|
42
|
-
refundPaymentReference: string;
|
|
43
|
-
isFromRefundStatusPage: boolean;
|
|
44
|
-
changeRefundReason: string;
|
|
45
|
-
isServiceRequest: string;
|
|
46
38
|
LOGGEDINUSERROLES: string[];
|
|
47
39
|
orderDetail: any[];
|
|
48
40
|
orderRef: string;
|
|
@@ -60,7 +52,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
60
52
|
code: string;
|
|
61
53
|
}>;
|
|
62
54
|
refundListAmount: EventEmitter<string>;
|
|
63
|
-
refundFees: EventEmitter<IFee[]>;
|
|
64
55
|
refund: {
|
|
65
56
|
reason: {
|
|
66
57
|
duplicate: string;
|
|
@@ -69,8 +60,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
69
60
|
other: string;
|
|
70
61
|
};
|
|
71
62
|
};
|
|
72
|
-
contactDetailsObj: IRefundContactDetails;
|
|
73
|
-
notification: any;
|
|
74
63
|
remissionForm: FormGroup;
|
|
75
64
|
hasErrors: boolean;
|
|
76
65
|
viewStatus: string;
|
|
@@ -100,7 +89,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
100
89
|
isPaymentSuccess: boolean;
|
|
101
90
|
isRemissionApplied: boolean;
|
|
102
91
|
remissionamt: number;
|
|
103
|
-
elementId: any;
|
|
104
92
|
commonRefundReasons: any[];
|
|
105
93
|
showReasonText: boolean;
|
|
106
94
|
isRefundReasonsSelected: boolean;
|
|
@@ -111,19 +99,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
111
99
|
pattern2: string;
|
|
112
100
|
sendOrderDetail: any[];
|
|
113
101
|
sendOrderRef: string;
|
|
114
|
-
paymentReference: string;
|
|
115
|
-
class: string;
|
|
116
|
-
errorMsg: any[];
|
|
117
|
-
totalRefundAmount: number;
|
|
118
|
-
quantityUpdated: number;
|
|
119
|
-
fullRefund: boolean;
|
|
120
|
-
allowedRefundAmount: number;
|
|
121
|
-
isRemissionsMatch: boolean;
|
|
122
|
-
paymentFees: IFee[];
|
|
123
|
-
paymentGroup: IPaymentGroup;
|
|
124
|
-
isStatusAllocated: boolean;
|
|
125
|
-
isFromCheckAnsPage: boolean;
|
|
126
|
-
refundAmtForFeeVolumes: number;
|
|
127
102
|
component: {
|
|
128
103
|
account_number: string;
|
|
129
104
|
amount: number;
|
|
@@ -145,42 +120,25 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
145
120
|
};
|
|
146
121
|
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
147
122
|
ngOnInit(): void;
|
|
148
|
-
goToPaymentViewComponent(): void;
|
|
149
|
-
refundFeesList(): void;
|
|
150
|
-
readonly feesList: FormArray;
|
|
151
|
-
noneSelected(): boolean;
|
|
152
|
-
check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
|
|
153
123
|
addRemission(): void;
|
|
154
124
|
confirmRemission(): void;
|
|
155
125
|
resetRemissionForm(val: any, field: any): void;
|
|
156
126
|
addRemissionCode(): void;
|
|
157
127
|
gotoAddRetroRemissionCodePage(): void;
|
|
158
128
|
gotoCheckRetroRemissionPage(payment: IPayment): void;
|
|
159
|
-
gotoAmountRetroRemission(): void;
|
|
160
129
|
gotoProcessRetroRemissionPage(): void;
|
|
161
|
-
gotoProcessRetroRemission(note?: IRefundContactDetails): void;
|
|
162
130
|
confirmRetroRemission(): void;
|
|
163
131
|
processRefund(): void;
|
|
164
132
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
165
133
|
gotoIssueRefundPage(): void;
|
|
166
|
-
gotoIssuePage(isFullyRefund: any): void;
|
|
167
|
-
calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
|
|
168
|
-
gotoContactDetailsPage(note?: IRefundContactDetails): void;
|
|
169
|
-
getRefundReasons(): void;
|
|
170
|
-
getErrorClass(elementId: any): void;
|
|
171
134
|
changeIssueRefundReason(): void;
|
|
172
|
-
confirmIssueRefund(
|
|
173
|
-
|
|
135
|
+
confirmIssueRefund(): void;
|
|
136
|
+
confirmRetroRefund(): void;
|
|
174
137
|
selectRadioButton(key: any, value: any): void;
|
|
175
138
|
selectchange(args: any): void;
|
|
176
|
-
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
177
|
-
gotoPartialFeeRefundScreen(): void;
|
|
178
139
|
gotoServiceRequestPage(event: any): void;
|
|
179
|
-
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
180
|
-
gotoRemissionSuccess(event: Event): void;
|
|
181
140
|
gotoCasetransationPage(): void;
|
|
182
141
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
183
142
|
resetOrderData(): void;
|
|
184
|
-
changeRefundAmount(): void;
|
|
185
143
|
getFormattedCurrency(currency: number): string | number;
|
|
186
144
|
}
|
|
@@ -20,9 +20,7 @@ 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
|
-
servicerequest: string;
|
|
26
24
|
ccdCaseNumber: string;
|
|
27
25
|
excReference: string;
|
|
28
26
|
paymentGroups: any[];
|
|
@@ -56,7 +54,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
56
54
|
isRemoveBtnDisabled: boolean;
|
|
57
55
|
feeId: IFee;
|
|
58
56
|
clAmountDue: number;
|
|
59
|
-
overPaymentAmount: number;
|
|
60
57
|
unprocessedRecordCount: number;
|
|
61
58
|
isFeeRecordsExist: boolean;
|
|
62
59
|
isGrpOutstandingAmtPositive: boolean;
|
|
@@ -91,6 +88,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
91
88
|
allowedRolesToAccessRefund: string[];
|
|
92
89
|
isEligible4PBAPayment: string[];
|
|
93
90
|
currentDate: Date;
|
|
91
|
+
isFromServiceRequestPage: boolean;
|
|
94
92
|
navigationpage: string;
|
|
95
93
|
remissionFeeAmt: number;
|
|
96
94
|
constructor(router: Router, paymentViewService: PaymentViewService, bulkScaningPaymentService: BulkScaningPaymentService, caseTransactionsService: CaseTransactionsService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
|
|
@@ -7,7 +7,6 @@ import { IPayment } from '../../interfaces/IPayment';
|
|
|
7
7
|
import { IRemission } from '../../interfaces/IRemission';
|
|
8
8
|
import { ChangeDetectorRef } from '@angular/core';
|
|
9
9
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
10
|
-
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
11
10
|
export declare class PaymentViewComponent implements OnInit {
|
|
12
11
|
private paymentViewService;
|
|
13
12
|
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
|
paymentGroup: IPaymentGroup;
|
|
36
33
|
errorMessage: string;
|
|
@@ -52,38 +49,24 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
52
49
|
serviceReference: string;
|
|
53
50
|
isFromServiceRequestPage: boolean;
|
|
54
51
|
isFromPaymentDetailPage: boolean;
|
|
55
|
-
paymentFees: IFee[];
|
|
56
|
-
paymentType: string;
|
|
57
|
-
isContinueBtnDisabled: boolean;
|
|
58
|
-
viewCompStatus: string;
|
|
59
|
-
contactDetailsObj: IRefundContactDetails;
|
|
60
|
-
notification: any;
|
|
61
|
-
isConfirmationBtnDisabled: boolean;
|
|
62
|
-
refundReference: string;
|
|
63
|
-
refundAmount: string;
|
|
64
52
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
65
53
|
ngAfterContentChecked(): void;
|
|
66
54
|
ngOnInit(): void;
|
|
67
55
|
readonly isCardPayment: boolean;
|
|
68
56
|
readonly isTelephonyPayment: boolean;
|
|
69
57
|
goToPaymentList(): void;
|
|
70
|
-
getOverPaymentValue(): number;
|
|
71
58
|
goToServiceRequestPage(): void;
|
|
72
59
|
goToCaseTransationPage(event: any): void;
|
|
73
60
|
addRemission(fee: IFee): void;
|
|
74
61
|
checkForFees(paymentGroup: any): boolean;
|
|
75
|
-
processRefund(): void;
|
|
76
|
-
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
77
62
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
78
|
-
|
|
63
|
+
chkIsRefundRemissionBtnEnable(): boolean;
|
|
79
64
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
80
65
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
gotoPaymentSelectPage(event: Event): void;
|
|
87
|
-
getContactDetails(obj: IRefundContactDetails): void;
|
|
66
|
+
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
67
|
+
chkForPBAPayment(): boolean;
|
|
68
|
+
chkForAddRemission(feeCode: string): boolean;
|
|
69
|
+
check4AllowedRoles2AccessRefund: () => boolean;
|
|
70
|
+
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
88
71
|
resetOrderData(): void;
|
|
89
72
|
}
|
|
@@ -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,28 @@
|
|
|
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
|
isOldPcipalOff: boolean;
|
|
24
19
|
isNewPcipalOff: boolean;
|
|
25
20
|
ccdCaseNumber: string;
|
|
26
21
|
isTurnOff: boolean;
|
|
27
|
-
|
|
22
|
+
isEliginbleToAccess: boolean;
|
|
28
23
|
refundStatusForm: FormGroup;
|
|
29
24
|
selectedRefundReason: string;
|
|
30
25
|
rejectedRefundList: IRefundList[];
|
|
31
|
-
notificationList: any;
|
|
32
|
-
notification: any;
|
|
33
26
|
approvalStatus: string;
|
|
34
27
|
rejectStatus: string;
|
|
35
28
|
errorMessage: any;
|
|
@@ -46,11 +39,6 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
46
39
|
refundHasError: boolean;
|
|
47
40
|
refundReasons: any[];
|
|
48
41
|
refundStatusHistories: IRefundStatus[];
|
|
49
|
-
refundNotifications: IRefundStatus[];
|
|
50
|
-
isResendOperationSuccess: boolean;
|
|
51
|
-
isEditDetailsClicked: boolean;
|
|
52
|
-
isEditAddressDeatilsClicked: boolean;
|
|
53
|
-
addressDetails: IRefundContactDetails;
|
|
54
42
|
refundReference: string;
|
|
55
43
|
refundAmount: string;
|
|
56
44
|
refundCode: string;
|
|
@@ -61,37 +49,21 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
61
49
|
isLastUpdatedByCurrentUser: boolean;
|
|
62
50
|
isProcessRefund: boolean;
|
|
63
51
|
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);
|
|
52
|
+
constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
|
|
71
53
|
ngOnInit(): void;
|
|
72
|
-
check4AllowedRoles2AccessRefund: () => 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;
|
|
@@ -72,9 +66,6 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
72
66
|
isGrpOutstandingAmtPositive: boolean;
|
|
73
67
|
totalRefundAmount: Number;
|
|
74
68
|
caseType: String;
|
|
75
|
-
isConfirmationBtnDisabled: boolean;
|
|
76
|
-
refundReference: string;
|
|
77
|
-
refundAmount: string;
|
|
78
69
|
payment: IPayment;
|
|
79
70
|
paymentGroup: IPaymentGroup;
|
|
80
71
|
paymentView: IPaymentView;
|
|
@@ -84,9 +75,6 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
84
75
|
cpoDetails: any;
|
|
85
76
|
serviceRequestValue: string;
|
|
86
77
|
orderAddBtnEnable: boolean;
|
|
87
|
-
isFromPaymentDetailPage: boolean;
|
|
88
|
-
contactDetailsObj: IRefundContactDetails;
|
|
89
|
-
notification: any;
|
|
90
78
|
isCPODown: boolean;
|
|
91
79
|
test: boolean;
|
|
92
80
|
isPBA: boolean;
|
|
@@ -97,29 +85,22 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
97
85
|
isFromServiceRequestPage: boolean;
|
|
98
86
|
navigationpage: string;
|
|
99
87
|
remissionFeeAmt: number;
|
|
100
|
-
|
|
101
|
-
isFullyRefund: boolean;
|
|
102
|
-
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, cd: ChangeDetectorRef, router: Router);
|
|
88
|
+
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
|
|
103
89
|
ngOnInit(): void;
|
|
104
90
|
goToServiceRequestPage(): void;
|
|
105
91
|
goToCaseTransationPage(event: any): void;
|
|
92
|
+
chkForAddRemission(feeCode: string): boolean;
|
|
93
|
+
chkForPBAPayment(): boolean;
|
|
106
94
|
addRemission(fee: IFee): void;
|
|
107
95
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
108
96
|
cancelRemoval(): void;
|
|
109
97
|
removeFee(fee: any): void;
|
|
98
|
+
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
99
|
+
chkIsRefundRemissionBtnEnable(): boolean;
|
|
100
|
+
check4AllowedRoles2AccessRefund: () => boolean;
|
|
101
|
+
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
110
102
|
issueRefund(payment: IPayment): void;
|
|
111
103
|
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
112
104
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
113
|
-
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
114
|
-
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
115
|
-
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
116
105
|
resetOrderData(): void;
|
|
117
|
-
selectPymentOption(paymentType: string): void;
|
|
118
|
-
goToPaymentViewComp(): void;
|
|
119
|
-
continuePayment(paymentgrp: IPaymentGroup): void;
|
|
120
|
-
getContactDetails(obj: IRefundContactDetails): void;
|
|
121
|
-
gotoPaymentSelectPage(event: Event): void;
|
|
122
|
-
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
123
|
-
processRefund(): void;
|
|
124
|
-
getOverPaymentValue(): number;
|
|
125
106
|
}
|
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;
|
|
@@ -40,7 +39,6 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
40
39
|
paymentGroupReference: string;
|
|
41
40
|
paymentReference: string;
|
|
42
41
|
refundReference: string;
|
|
43
|
-
isFromPayBubble: boolean;
|
|
44
42
|
refundlistsource: any;
|
|
45
43
|
viewName: string;
|
|
46
44
|
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.4-
|
|
3
|
+
"version": "5.0.4-beta06",
|
|
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"
|