@hmcts/ccpay-web-component 5.0.2-beta4 → 5.0.2-beta6
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 +1528 -274
- 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 +33 -31
- package/esm2015/lib/components/add-remission/add-remission.component.js +545 -41
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +11 -7
- package/esm2015/lib/components/contact-details/contact-details.component.js +406 -0
- package/esm2015/lib/components/payment-view/payment-view.component.js +70 -22
- package/esm2015/lib/components/process-refund/process-refund.component.js +31 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +149 -27
- package/esm2015/lib/components/service-request/service-request.component.js +7 -5
- package/esm2015/lib/components/table/table.component.js +24 -9
- package/esm2015/lib/interfaces/IFee.js +3 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/IRefundList.js +5 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/IRemission.js +3 -1
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +18 -2
- package/esm2015/lib/payment-lib.component.js +5 -1
- package/esm2015/lib/payment-lib.module.js +3 -1
- package/esm2015/lib/payment-lib.service.js +16 -1
- package/esm2015/lib/services/notification/notification.service.js +85 -0
- package/esm2015/lib/services/refunds/refunds.service.js +11 -2
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
- package/esm5/hmcts-ccpay-web-component.js +33 -31
- package/esm5/lib/components/add-remission/add-remission.component.js +662 -46
- package/esm5/lib/components/case-transactions/case-transactions.component.js +11 -7
- package/esm5/lib/components/contact-details/contact-details.component.js +431 -0
- package/esm5/lib/components/payment-view/payment-view.component.js +93 -25
- package/esm5/lib/components/process-refund/process-refund.component.js +30 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +177 -25
- package/esm5/lib/components/service-request/service-request.component.js +8 -5
- package/esm5/lib/components/table/table.component.js +27 -9
- package/esm5/lib/interfaces/IFee.js +3 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/IRefundList.js +5 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/IRemission.js +3 -1
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +14 -2
- package/esm5/lib/payment-lib.component.js +5 -1
- package/esm5/lib/payment-lib.module.js +3 -1
- package/esm5/lib/payment-lib.service.js +23 -1
- package/esm5/lib/services/notification/notification.service.js +89 -0
- package/esm5/lib/services/refunds/refunds.service.js +17 -2
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
- package/fesm2015/hmcts-ccpay-web-component.js +1183 -102
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +1537 -259
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +32 -30
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +37 -2
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -0
- package/lib/components/contact-details/contact-details.component.d.ts +47 -0
- package/lib/components/payment-view/payment-view.component.d.ts +14 -3
- package/lib/components/process-refund/process-refund.component.d.ts +5 -1
- package/lib/components/refund-status/refund-status.component.d.ts +20 -5
- package/lib/components/service-request/service-request.component.d.ts +1 -1
- package/lib/components/table/table.component.d.ts +1 -0
- package/lib/interfaces/IFee.d.ts +1 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/IRefundList.d.ts +3 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/IRemission.d.ts +1 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +6 -1
- package/lib/payment-lib.component.d.ts +1 -0
- package/lib/payment-lib.service.d.ts +3 -0
- package/lib/services/notification/notification.service.d.ts +15 -0
- package/lib/services/refunds/refunds.service.d.ts +2 -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;
|
|
@@ -60,6 +63,8 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
60
63
|
other: string;
|
|
61
64
|
};
|
|
62
65
|
};
|
|
66
|
+
contactDetailsObj: IRefundContactDetails;
|
|
67
|
+
notification: any;
|
|
63
68
|
remissionForm: FormGroup;
|
|
64
69
|
hasErrors: boolean;
|
|
65
70
|
viewStatus: string;
|
|
@@ -89,6 +94,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
89
94
|
isPaymentSuccess: boolean;
|
|
90
95
|
isRemissionApplied: boolean;
|
|
91
96
|
remissionamt: number;
|
|
97
|
+
elementId: any;
|
|
92
98
|
commonRefundReasons: any[];
|
|
93
99
|
showReasonText: boolean;
|
|
94
100
|
isRefundReasonsSelected: boolean;
|
|
@@ -99,6 +105,19 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
99
105
|
pattern2: string;
|
|
100
106
|
sendOrderDetail: any[];
|
|
101
107
|
sendOrderRef: string;
|
|
108
|
+
paymentReference: string;
|
|
109
|
+
class: string;
|
|
110
|
+
errorMsg: any[];
|
|
111
|
+
totalRefundAmount: number;
|
|
112
|
+
quantityUpdated: number;
|
|
113
|
+
fullRefund: boolean;
|
|
114
|
+
allowedRefundAmount: number;
|
|
115
|
+
isRemissionsMatch: boolean;
|
|
116
|
+
paymentFees: IFee[];
|
|
117
|
+
paymentGroup: IPaymentGroup;
|
|
118
|
+
isStatusAllocated: boolean;
|
|
119
|
+
isFromCheckAnsPage: boolean;
|
|
120
|
+
refundAmtForFeeVolumes: number;
|
|
102
121
|
component: {
|
|
103
122
|
account_number: string;
|
|
104
123
|
amount: number;
|
|
@@ -120,25 +139,41 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
120
139
|
};
|
|
121
140
|
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
122
141
|
ngOnInit(): void;
|
|
142
|
+
refundFeesList(): void;
|
|
143
|
+
readonly feesList: FormArray;
|
|
144
|
+
noneSelected(): boolean;
|
|
145
|
+
check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
|
|
123
146
|
addRemission(): void;
|
|
124
147
|
confirmRemission(): void;
|
|
125
148
|
resetRemissionForm(val: any, field: any): void;
|
|
126
149
|
addRemissionCode(): void;
|
|
127
150
|
gotoAddRetroRemissionCodePage(): void;
|
|
128
151
|
gotoCheckRetroRemissionPage(payment: IPayment): void;
|
|
152
|
+
gotoAmountRetroRemission(): void;
|
|
129
153
|
gotoProcessRetroRemissionPage(): void;
|
|
154
|
+
gotoProcessRetroRemission(note?: IRefundContactDetails): void;
|
|
130
155
|
confirmRetroRemission(): void;
|
|
131
156
|
processRefund(): void;
|
|
132
157
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
133
158
|
gotoIssueRefundPage(): void;
|
|
159
|
+
gotoIssuePage(): void;
|
|
160
|
+
calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
|
|
161
|
+
gotoContactDetailsPage(note?: IRefundContactDetails): void;
|
|
162
|
+
getRefundReasons(): void;
|
|
163
|
+
getErrorClass(elementId: any): void;
|
|
134
164
|
changeIssueRefundReason(): void;
|
|
135
165
|
confirmIssueRefund(): void;
|
|
136
|
-
|
|
166
|
+
gotoRefundReasonPage(): void;
|
|
137
167
|
selectRadioButton(key: any, value: any): void;
|
|
138
168
|
selectchange(args: any): void;
|
|
169
|
+
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
170
|
+
gotoPartialFeeRefundScreen(): void;
|
|
139
171
|
gotoServiceRequestPage(event: any): void;
|
|
172
|
+
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
173
|
+
gotoRemissionSuccess(event: Event): void;
|
|
140
174
|
gotoCasetransationPage(): void;
|
|
141
175
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
142
176
|
resetOrderData(): void;
|
|
177
|
+
changeRefundAmount(): void;
|
|
143
178
|
getFormattedCurrency(currency: number): string | number;
|
|
144
179
|
}
|
|
@@ -55,6 +55,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
55
55
|
isRemoveBtnDisabled: boolean;
|
|
56
56
|
feeId: IFee;
|
|
57
57
|
clAmountDue: number;
|
|
58
|
+
overPaymentAmount: number;
|
|
58
59
|
unprocessedRecordCount: number;
|
|
59
60
|
isFeeRecordsExist: boolean;
|
|
60
61
|
isGrpOutstandingAmtPositive: boolean;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
addressObj: any;
|
|
11
|
+
assignContactDetails: EventEmitter<any>;
|
|
12
|
+
redirectToIssueRefund: EventEmitter<any>;
|
|
13
|
+
pageTitle: string;
|
|
14
|
+
errorMessage: string;
|
|
15
|
+
isEmailSAddressClicked: boolean;
|
|
16
|
+
isShowPickAddress: boolean;
|
|
17
|
+
isPostcodeClicked: boolean;
|
|
18
|
+
isManualAddressClicked: boolean;
|
|
19
|
+
emailAddressForm: FormGroup;
|
|
20
|
+
postCodeForm: FormGroup;
|
|
21
|
+
manualAddressForm: FormGroup;
|
|
22
|
+
addressPostcodeList: any[];
|
|
23
|
+
postcodeAddress: any;
|
|
24
|
+
isAddressBoxEmpty: boolean;
|
|
25
|
+
isEmailEmpty: boolean;
|
|
26
|
+
emailHasError: boolean;
|
|
27
|
+
isPostcodeEmpty: boolean;
|
|
28
|
+
postcodeHasError: boolean;
|
|
29
|
+
isaddressLine1Empty: boolean;
|
|
30
|
+
addressLine1HasError: boolean;
|
|
31
|
+
addressLine2HasError: boolean;
|
|
32
|
+
isTownOrCityEmpty: boolean;
|
|
33
|
+
townOrCityHasError: boolean;
|
|
34
|
+
isCountyEmpty: boolean;
|
|
35
|
+
countyHasError: boolean;
|
|
36
|
+
isMPostcodeEmpty: boolean;
|
|
37
|
+
mpostcodeHasError: boolean;
|
|
38
|
+
isCountryEmpty: boolean;
|
|
39
|
+
constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
setEditDetails(): void;
|
|
42
|
+
selectContactOption(type: any, isLinkedClied: any): void;
|
|
43
|
+
finalFormSubmit(): void;
|
|
44
|
+
postcodeValidation(str: any): void;
|
|
45
|
+
redirection(event: any): void;
|
|
46
|
+
resetForm(val: any, field: any): void;
|
|
47
|
+
}
|
|
@@ -7,6 +7,7 @@ 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';
|
|
10
11
|
export declare class PaymentViewComponent implements OnInit {
|
|
11
12
|
private paymentViewService;
|
|
12
13
|
private paymentLibComponent;
|
|
@@ -28,7 +29,6 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
28
29
|
orderFeesTotal: number;
|
|
29
30
|
orderRemissionTotal: number;
|
|
30
31
|
orderDetail: any[];
|
|
31
|
-
isServiceRequest: string;
|
|
32
32
|
paymentGroup: IPaymentGroup;
|
|
33
33
|
errorMessage: string;
|
|
34
34
|
ccdCaseNumber: string;
|
|
@@ -49,24 +49,35 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
49
49
|
serviceReference: string;
|
|
50
50
|
isFromServiceRequestPage: boolean;
|
|
51
51
|
isFromPaymentDetailPage: boolean;
|
|
52
|
+
paymentFees: IFee[];
|
|
53
|
+
paymentType: string;
|
|
54
|
+
isContinueBtnDisabled: boolean;
|
|
55
|
+
viewCompStatus: string;
|
|
56
|
+
contactDetailsObj: IRefundContactDetails;
|
|
57
|
+
notification: any;
|
|
52
58
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
53
59
|
ngAfterContentChecked(): void;
|
|
54
60
|
ngOnInit(): void;
|
|
55
61
|
readonly isCardPayment: boolean;
|
|
56
62
|
readonly isTelephonyPayment: boolean;
|
|
57
63
|
goToPaymentList(): void;
|
|
58
|
-
goToServiceRequestPage(): void;
|
|
59
64
|
goToCaseTransationPage(event: any): void;
|
|
60
65
|
addRemission(fee: IFee): void;
|
|
61
66
|
checkForFees(paymentGroup: any): boolean;
|
|
67
|
+
processRefund(): void;
|
|
68
|
+
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
62
69
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
63
70
|
chkIsRefundRemissionBtnEnable(): boolean;
|
|
64
71
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
65
72
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
66
73
|
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
67
74
|
chkForPBAPayment(): boolean;
|
|
68
|
-
chkForAddRemission(feeCode: string): boolean;
|
|
75
|
+
chkForAddRemission(feeCode: string, feeId: number): boolean;
|
|
69
76
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
70
77
|
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
78
|
+
selectPymentOption(paymentType: string): void;
|
|
79
|
+
continuePayment(): void;
|
|
80
|
+
gotoPaymentSelectPage(event: Event): void;
|
|
81
|
+
getContactDetails(obj: IRefundContactDetails): void;
|
|
71
82
|
resetOrderData(): void;
|
|
72
83
|
}
|
|
@@ -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;
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { RefundsService } from '../../services/refunds/refunds.service';
|
|
3
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
3
4
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
4
5
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
5
|
-
import {
|
|
6
|
-
import { Router } from '@angular/router';
|
|
6
|
+
import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
|
|
7
7
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
8
|
+
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
8
9
|
import { IRefundStatus } from '../../interfaces/IRefundStatus';
|
|
9
10
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
10
11
|
export declare class RefundStatusComponent implements OnInit {
|
|
11
12
|
private formBuilder;
|
|
12
13
|
private refundService;
|
|
14
|
+
private notificationService;
|
|
13
15
|
private paymentLibComponent;
|
|
14
|
-
private paymentViewService;
|
|
15
|
-
private router;
|
|
16
16
|
private OrderslistService;
|
|
17
17
|
LOGGEDINUSERROLES: string[];
|
|
18
18
|
isOldPcipalOff: boolean;
|
|
19
19
|
isNewPcipalOff: boolean;
|
|
20
20
|
ccdCaseNumber: string;
|
|
21
21
|
isTurnOff: boolean;
|
|
22
|
+
orderParty: string;
|
|
22
23
|
refundStatusForm: FormGroup;
|
|
23
24
|
selectedRefundReason: string;
|
|
24
25
|
rejectedRefundList: IRefundList[];
|
|
26
|
+
notificationList: IRefundsNotifications;
|
|
27
|
+
notification: any;
|
|
25
28
|
approvalStatus: string;
|
|
26
29
|
rejectStatus: string;
|
|
27
30
|
errorMessage: any;
|
|
@@ -38,6 +41,11 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
38
41
|
refundHasError: boolean;
|
|
39
42
|
refundReasons: any[];
|
|
40
43
|
refundStatusHistories: IRefundStatus[];
|
|
44
|
+
refundNotifications: IRefundStatus[];
|
|
45
|
+
isResendOperationSuccess: boolean;
|
|
46
|
+
isEditDetailsClicked: boolean;
|
|
47
|
+
isEditAddressDeatilsClicked: boolean;
|
|
48
|
+
addressDetails: IRefundContactDetails;
|
|
41
49
|
refundReference: string;
|
|
42
50
|
refundAmount: string;
|
|
43
51
|
refundCode: string;
|
|
@@ -49,10 +57,11 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
49
57
|
isProcessRefund: boolean;
|
|
50
58
|
changedAmount: number;
|
|
51
59
|
allowedRolesToAccessRefund: string[];
|
|
52
|
-
constructor(formBuilder: FormBuilder, refundService: RefundsService,
|
|
60
|
+
constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
|
|
53
61
|
ngOnInit(): void;
|
|
54
62
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
55
63
|
getRefundsStatusHistoryList(): void;
|
|
64
|
+
getRefundsNotification(): void;
|
|
56
65
|
goToRefundView(refundlist: IRefundList, navigationpage: string): void;
|
|
57
66
|
loadCaseTransactionPage(): void;
|
|
58
67
|
loadRefundListPage(): void;
|
|
@@ -66,5 +75,11 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
66
75
|
getRefundListReason(refundListReason: any): void;
|
|
67
76
|
getRefundAmount(amount: number): void;
|
|
68
77
|
gotoReviewRefundConfirmationPage(): void;
|
|
78
|
+
gotoEditAddressDetails(note: IRefundsNotifications): void;
|
|
79
|
+
getContactDetails(obj: IRefundContactDetails): void;
|
|
80
|
+
gotoEditDetailsPage(note?: any): void;
|
|
81
|
+
submitEditDetail(): void;
|
|
82
|
+
putResend(notification: IRefundsNotifications): void;
|
|
83
|
+
gotoCasetransationPageCancelBtnClicked(Event: Event): void;
|
|
69
84
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
70
85
|
}
|
|
@@ -89,7 +89,7 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
89
89
|
ngOnInit(): void;
|
|
90
90
|
goToServiceRequestPage(): void;
|
|
91
91
|
goToCaseTransationPage(event: any): void;
|
|
92
|
-
chkForAddRemission(feeCode: string): boolean;
|
|
92
|
+
chkForAddRemission(feeCode: string, feeId: number): boolean;
|
|
93
93
|
chkForPBAPayment(): boolean;
|
|
94
94
|
addRemission(fee: IFee): void;
|
|
95
95
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
package/lib/interfaces/IFee.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
1
2
|
export interface IRefundList {
|
|
2
3
|
amount: number;
|
|
3
4
|
ccd_case_number: string;
|
|
@@ -10,5 +11,7 @@ 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;
|
|
14
17
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IRefundsNotifications {
|
|
2
|
+
contact_details: {
|
|
3
|
+
address_line: string;
|
|
4
|
+
city: string;
|
|
5
|
+
country: string;
|
|
6
|
+
county: string;
|
|
7
|
+
date_created: string;
|
|
8
|
+
date_updated: string;
|
|
9
|
+
email: string;
|
|
10
|
+
postal_code: string;
|
|
11
|
+
};
|
|
12
|
+
date_created: string;
|
|
13
|
+
date_updated: string;
|
|
14
|
+
notification_type: string;
|
|
15
|
+
reference: string;
|
|
16
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
1
2
|
export declare class PostIssueRefundRetroRemission {
|
|
2
3
|
remissionReference: string;
|
|
3
|
-
|
|
4
|
+
contact_details: IRefundContactDetails;
|
|
5
|
+
constructor(remissionReference: string, contactDeatils: any);
|
|
4
6
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { IRefundContactDetails } from "./IRefundContactDetails";
|
|
1
2
|
export declare class PostRefundRetroRemission {
|
|
3
|
+
ccd_case_number: string;
|
|
2
4
|
payment_reference: string;
|
|
3
5
|
refund_reason: string;
|
|
4
|
-
|
|
6
|
+
refund_amount: any;
|
|
7
|
+
fees: any[];
|
|
8
|
+
contact_details: IRefundContactDetails;
|
|
9
|
+
constructor(ccd_case_number: string, payment_reference: string, refund_reason: string, refund_amount: any, fees: any[], contact_details: any);
|
|
5
10
|
}
|
|
@@ -2,6 +2,7 @@ export declare class PaymentLibService {
|
|
|
2
2
|
API_ROOT: string;
|
|
3
3
|
BULKSCAN_API_ROOT: string;
|
|
4
4
|
REFUNDS_API_ROOT: string;
|
|
5
|
+
NOTIFICATION_API_ROOT: string;
|
|
5
6
|
CARDPAYMENTRETURNURL: string;
|
|
6
7
|
constructor();
|
|
7
8
|
setApiRootUrl(apiRoot: string): void;
|
|
@@ -10,6 +11,8 @@ export declare class PaymentLibService {
|
|
|
10
11
|
getBulkScanApiRootUrl(): string;
|
|
11
12
|
setRefundndsApiRootUrl(refundsapiRoot: string): void;
|
|
12
13
|
getRefundsApiRootUrl(): string;
|
|
14
|
+
setNoticationApiRootUrl(notificationapiRoot: string): void;
|
|
15
|
+
getNoticationApiRootUrl(): string;
|
|
13
16
|
setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
|
|
14
17
|
getCardPaymentReturnUrl(): string;
|
|
15
18
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ErrorHandlerService } from '../shared/error-handler.service';
|
|
3
|
+
import { WebComponentHttpClient } from '../shared/httpclient/webcomponent.http.client';
|
|
4
|
+
import { PaymentLibService } from '../../payment-lib.service';
|
|
5
|
+
import { Observable } from 'rxjs/Observable';
|
|
6
|
+
import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
|
|
7
|
+
export declare class NotificationService {
|
|
8
|
+
private http;
|
|
9
|
+
private https;
|
|
10
|
+
private errorHandlerService;
|
|
11
|
+
private paymentLibService;
|
|
12
|
+
constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
|
|
13
|
+
getRefundNotification(reference: string): Observable<IRefundsNotifications>;
|
|
14
|
+
getAddressByPostcode(postcode: string): Observable<any>;
|
|
15
|
+
}
|
|
@@ -9,6 +9,7 @@ import { IPatchRefundAction } from '../../interfaces/IPatchRefundAction';
|
|
|
9
9
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
10
10
|
import { IssueRefundRequest } from '../../interfaces/IssueRefundRequest';
|
|
11
11
|
import { IResubmitRefundRequest } from '../../interfaces/IResubmitRefundRequest';
|
|
12
|
+
import { IPutNotificationRequest } from '../../interfaces/IPutNotificationRequest';
|
|
12
13
|
export declare class RefundsService {
|
|
13
14
|
private http;
|
|
14
15
|
private https;
|
|
@@ -25,6 +26,7 @@ export declare class RefundsService {
|
|
|
25
26
|
getRefundStatusList(ccdCaseNumber: string): Observable<IRefundList[]>;
|
|
26
27
|
getUserDetails(): Observable<any>;
|
|
27
28
|
postIssueRefund(body: IssueRefundRequest): Observable<any>;
|
|
29
|
+
putResendOrEdit(body: IPutNotificationRequest, refundRef: string, notificationType: string): Observable<any>;
|
|
28
30
|
patchResubmitRefund(body: IResubmitRefundRequest, refund_reference: string): Observable<any>;
|
|
29
31
|
addHeaders(options: any): any;
|
|
30
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmcts/ccpay-web-component",
|
|
3
|
-
"version": "5.0.2-
|
|
3
|
+
"version": "5.0.2-beta6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -17,6 +17,10 @@
|
|
|
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
|
+
},
|
|
20
24
|
{
|
|
21
25
|
"name": "Tarun Palisetty",
|
|
22
26
|
"email": "tarun.palisetty@hmcts.net"
|