@hmcts/ccpay-web-component 5.0.2-beta4 → 5.0.2-beta42
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 +1721 -584
- 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 +634 -108
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +17 -8
- package/esm2015/lib/components/contact-details/contact-details.component.js +436 -0
- package/esm2015/lib/components/payment-view/payment-view.component.js +39 -87
- package/esm2015/lib/components/process-refund/process-refund.component.js +31 -3
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +207 -31
- package/esm2015/lib/components/service-request/service-request.component.js +63 -137
- package/esm2015/lib/components/table/table.component.js +24 -9
- package/esm2015/lib/interfaces/IFee.js +9 -1
- package/esm2015/lib/interfaces/IPayment.js +5 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/IRefundFee.js +21 -0
- package/esm2015/lib/interfaces/IRefundList.js +7 -1
- package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm2015/lib/interfaces/IRemission.js +5 -1
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +20 -4
- package/esm2015/lib/payment-lib.component.js +6 -2
- 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 +10 -1
- package/esm5/hmcts-ccpay-web-component.js +33 -31
- package/esm5/lib/components/add-remission/add-remission.component.js +751 -113
- package/esm5/lib/components/case-transactions/case-transactions.component.js +17 -8
- package/esm5/lib/components/contact-details/contact-details.component.js +461 -0
- package/esm5/lib/components/payment-view/payment-view.component.js +43 -108
- package/esm5/lib/components/process-refund/process-refund.component.js +30 -3
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +243 -29
- package/esm5/lib/components/service-request/service-request.component.js +75 -168
- package/esm5/lib/components/table/table.component.js +27 -9
- package/esm5/lib/interfaces/IFee.js +9 -1
- package/esm5/lib/interfaces/IPayment.js +5 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/IRefundFee.js +21 -0
- package/esm5/lib/interfaces/IRefundList.js +7 -1
- package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
- package/esm5/lib/interfaces/IRemission.js +5 -1
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +15 -3
- package/esm5/lib/payment-lib.component.js +6 -2
- 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 +16 -1
- package/fesm2015/hmcts-ccpay-web-component.js +1490 -471
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +1698 -532
- 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 +42 -2
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -1
- package/lib/components/contact-details/contact-details.component.d.ts +49 -0
- package/lib/components/payment-view/payment-view.component.d.ts +4 -6
- package/lib/components/process-refund/process-refund.component.d.ts +5 -1
- package/lib/components/refund-status/refund-status.component.d.ts +33 -6
- package/lib/components/service-request/service-request.component.d.ts +3 -6
- package/lib/components/table/table.component.d.ts +1 -0
- package/lib/interfaces/IFee.d.ts +4 -0
- package/lib/interfaces/IPayment.d.ts +2 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/IRefundFee.d.ts +7 -0
- package/lib/interfaces/IRefundList.d.ts +4 -0
- package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
- package/lib/interfaces/IRemission.d.ts +2 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
- 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 +1 -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;
|
|
@@ -35,6 +38,10 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
35
38
|
isFromPaymentDetailPage: boolean;
|
|
36
39
|
isFromServiceRequestPage: boolean;
|
|
37
40
|
feeamount: number;
|
|
41
|
+
refundPaymentReference: string;
|
|
42
|
+
isFromRefundStatusPage: boolean;
|
|
43
|
+
changeRefundReason: string;
|
|
44
|
+
isServiceRequest: string;
|
|
38
45
|
LOGGEDINUSERROLES: string[];
|
|
39
46
|
orderDetail: any[];
|
|
40
47
|
orderRef: string;
|
|
@@ -52,6 +59,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
52
59
|
code: string;
|
|
53
60
|
}>;
|
|
54
61
|
refundListAmount: EventEmitter<string>;
|
|
62
|
+
refundFees: EventEmitter<IFee[]>;
|
|
55
63
|
refund: {
|
|
56
64
|
reason: {
|
|
57
65
|
duplicate: string;
|
|
@@ -60,6 +68,8 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
60
68
|
other: string;
|
|
61
69
|
};
|
|
62
70
|
};
|
|
71
|
+
contactDetailsObj: IRefundContactDetails;
|
|
72
|
+
notification: any;
|
|
63
73
|
remissionForm: FormGroup;
|
|
64
74
|
hasErrors: boolean;
|
|
65
75
|
viewStatus: string;
|
|
@@ -89,6 +99,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
89
99
|
isPaymentSuccess: boolean;
|
|
90
100
|
isRemissionApplied: boolean;
|
|
91
101
|
remissionamt: number;
|
|
102
|
+
elementId: any;
|
|
92
103
|
commonRefundReasons: any[];
|
|
93
104
|
showReasonText: boolean;
|
|
94
105
|
isRefundReasonsSelected: boolean;
|
|
@@ -99,6 +110,19 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
99
110
|
pattern2: string;
|
|
100
111
|
sendOrderDetail: any[];
|
|
101
112
|
sendOrderRef: string;
|
|
113
|
+
paymentReference: string;
|
|
114
|
+
class: string;
|
|
115
|
+
errorMsg: any[];
|
|
116
|
+
totalRefundAmount: number;
|
|
117
|
+
quantityUpdated: number;
|
|
118
|
+
fullRefund: boolean;
|
|
119
|
+
allowedRefundAmount: number;
|
|
120
|
+
isRemissionsMatch: boolean;
|
|
121
|
+
paymentFees: IFee[];
|
|
122
|
+
paymentGroup: IPaymentGroup;
|
|
123
|
+
isStatusAllocated: boolean;
|
|
124
|
+
isFromCheckAnsPage: boolean;
|
|
125
|
+
refundAmtForFeeVolumes: number;
|
|
102
126
|
component: {
|
|
103
127
|
account_number: string;
|
|
104
128
|
amount: number;
|
|
@@ -120,25 +144,41 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
120
144
|
};
|
|
121
145
|
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
122
146
|
ngOnInit(): void;
|
|
147
|
+
refundFeesList(): void;
|
|
148
|
+
readonly feesList: FormArray;
|
|
149
|
+
noneSelected(): boolean;
|
|
150
|
+
check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
|
|
123
151
|
addRemission(): void;
|
|
124
152
|
confirmRemission(): void;
|
|
125
153
|
resetRemissionForm(val: any, field: any): void;
|
|
126
154
|
addRemissionCode(): void;
|
|
127
155
|
gotoAddRetroRemissionCodePage(): void;
|
|
128
156
|
gotoCheckRetroRemissionPage(payment: IPayment): void;
|
|
157
|
+
gotoAmountRetroRemission(): void;
|
|
129
158
|
gotoProcessRetroRemissionPage(): void;
|
|
159
|
+
gotoProcessRetroRemission(note?: IRefundContactDetails): void;
|
|
130
160
|
confirmRetroRemission(): void;
|
|
131
161
|
processRefund(): void;
|
|
132
162
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
133
163
|
gotoIssueRefundPage(): void;
|
|
164
|
+
gotoIssuePage(): 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;
|
|
134
169
|
changeIssueRefundReason(): void;
|
|
135
170
|
confirmIssueRefund(): void;
|
|
136
|
-
|
|
171
|
+
gotoRefundReasonPage(): void;
|
|
137
172
|
selectRadioButton(key: any, value: any): void;
|
|
138
173
|
selectchange(args: any): void;
|
|
174
|
+
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
175
|
+
gotoPartialFeeRefundScreen(): void;
|
|
139
176
|
gotoServiceRequestPage(event: any): void;
|
|
177
|
+
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
178
|
+
gotoRemissionSuccess(event: Event): void;
|
|
140
179
|
gotoCasetransationPage(): void;
|
|
141
180
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
142
181
|
resetOrderData(): void;
|
|
182
|
+
changeRefundAmount(): void;
|
|
143
183
|
getFormattedCurrency(currency: number): string | number;
|
|
144
184
|
}
|
|
@@ -20,6 +20,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
20
20
|
private OrderslistService;
|
|
21
21
|
LOGGEDINUSERROLES: string[];
|
|
22
22
|
isTakePayment: boolean;
|
|
23
|
+
isFromServiceRequestPage: boolean;
|
|
23
24
|
takePayment: boolean;
|
|
24
25
|
servicerequest: string;
|
|
25
26
|
ccdCaseNumber: string;
|
|
@@ -89,7 +90,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
89
90
|
allowedRolesToAccessRefund: string[];
|
|
90
91
|
isEligible4PBAPayment: string[];
|
|
91
92
|
currentDate: Date;
|
|
92
|
-
isFromServiceRequestPage: boolean;
|
|
93
93
|
navigationpage: string;
|
|
94
94
|
remissionFeeAmt: number;
|
|
95
95
|
constructor(router: Router, paymentViewService: PaymentViewService, bulkScaningPaymentService: BulkScaningPaymentService, caseTransactionsService: CaseTransactionsService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
5
|
+
export declare class ContactDetailsComponent implements OnInit {
|
|
6
|
+
private formBuilder;
|
|
7
|
+
private notificationService;
|
|
8
|
+
private paymentLibComponent;
|
|
9
|
+
isEditOperation: boolean;
|
|
10
|
+
isEditOperationInRefundList: boolean;
|
|
11
|
+
addressObj: any;
|
|
12
|
+
assignContactDetails: EventEmitter<any>;
|
|
13
|
+
assignContactDetailsInFefundsList: EventEmitter<any>;
|
|
14
|
+
redirectToIssueRefund: EventEmitter<any>;
|
|
15
|
+
pageTitle: string;
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
isEmailSAddressClicked: boolean;
|
|
18
|
+
isShowPickAddress: boolean;
|
|
19
|
+
isPostcodeClicked: boolean;
|
|
20
|
+
isManualAddressClicked: boolean;
|
|
21
|
+
emailAddressForm: FormGroup;
|
|
22
|
+
postCodeForm: FormGroup;
|
|
23
|
+
manualAddressForm: FormGroup;
|
|
24
|
+
addressPostcodeList: any[];
|
|
25
|
+
postcodeAddress: any;
|
|
26
|
+
isAddressBoxEmpty: boolean;
|
|
27
|
+
isEmailEmpty: boolean;
|
|
28
|
+
emailHasError: boolean;
|
|
29
|
+
isPostcodeEmpty: boolean;
|
|
30
|
+
postcodeHasError: boolean;
|
|
31
|
+
isaddressLine1Empty: boolean;
|
|
32
|
+
addressLine1HasError: boolean;
|
|
33
|
+
addressLine2HasError: boolean;
|
|
34
|
+
isTownOrCityEmpty: boolean;
|
|
35
|
+
townOrCityHasError: boolean;
|
|
36
|
+
isCountyEmpty: boolean;
|
|
37
|
+
countyHasError: boolean;
|
|
38
|
+
isMPostcodeEmpty: boolean;
|
|
39
|
+
mpostcodeHasError: boolean;
|
|
40
|
+
isCountryEmpty: boolean;
|
|
41
|
+
constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
setEditDetails(): void;
|
|
44
|
+
selectContactOption(type: any, isLinkedClied: any): void;
|
|
45
|
+
finalFormSubmit(): void;
|
|
46
|
+
postcodeValidation(str: any): void;
|
|
47
|
+
redirection(event: any): void;
|
|
48
|
+
resetForm(val: any, field: any): void;
|
|
49
|
+
}
|
|
@@ -49,6 +49,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
49
49
|
serviceReference: string;
|
|
50
50
|
isFromServiceRequestPage: boolean;
|
|
51
51
|
isFromPaymentDetailPage: boolean;
|
|
52
|
+
paymentFees: IFee[];
|
|
52
53
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
53
54
|
ngAfterContentChecked(): void;
|
|
54
55
|
ngOnInit(): void;
|
|
@@ -60,13 +61,10 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
60
61
|
addRemission(fee: IFee): void;
|
|
61
62
|
checkForFees(paymentGroup: any): boolean;
|
|
62
63
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
63
|
-
chkIsRefundRemissionBtnEnable(): boolean;
|
|
64
64
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
65
65
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
check4AllowedRoles2AccessRefund: () => boolean;
|
|
70
|
-
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
66
|
+
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
67
|
+
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
68
|
+
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
71
69
|
resetOrderData(): void;
|
|
72
70
|
}
|
|
@@ -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;
|
|
@@ -41,9 +43,11 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
41
43
|
successMsg: string;
|
|
42
44
|
navigationpage: string;
|
|
43
45
|
ccdCaseNumber: string;
|
|
46
|
+
cpoDetails: any;
|
|
47
|
+
isCPODown: boolean;
|
|
44
48
|
isFromRefundListPage: 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,35 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { RefundsService } from '../../services/refunds/refunds.service';
|
|
3
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
3
4
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
4
5
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
5
|
-
import {
|
|
6
|
-
import { Router } from '@angular/router';
|
|
6
|
+
import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
|
|
7
7
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
8
|
+
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
8
9
|
import { IRefundStatus } from '../../interfaces/IRefundStatus';
|
|
9
10
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
11
|
+
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
12
|
+
import { IPayment } from '../../interfaces/IPayment';
|
|
13
|
+
import { IFee } from '../../interfaces/IFee';
|
|
14
|
+
import { IRefundFee } from '../../interfaces/IRefundFee';
|
|
10
15
|
export declare class RefundStatusComponent implements OnInit {
|
|
11
16
|
private formBuilder;
|
|
12
17
|
private refundService;
|
|
18
|
+
private notificationService;
|
|
13
19
|
private paymentLibComponent;
|
|
14
|
-
private paymentViewService;
|
|
15
|
-
private router;
|
|
16
20
|
private OrderslistService;
|
|
21
|
+
private paymentViewService;
|
|
17
22
|
LOGGEDINUSERROLES: string[];
|
|
18
23
|
isOldPcipalOff: boolean;
|
|
19
24
|
isNewPcipalOff: boolean;
|
|
20
25
|
ccdCaseNumber: string;
|
|
21
26
|
isTurnOff: boolean;
|
|
27
|
+
orderParty: string;
|
|
22
28
|
refundStatusForm: FormGroup;
|
|
23
29
|
selectedRefundReason: string;
|
|
24
30
|
rejectedRefundList: IRefundList[];
|
|
31
|
+
notificationList: any;
|
|
32
|
+
notification: any;
|
|
25
33
|
approvalStatus: string;
|
|
26
34
|
rejectStatus: string;
|
|
27
35
|
errorMessage: any;
|
|
@@ -38,6 +46,11 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
38
46
|
refundHasError: boolean;
|
|
39
47
|
refundReasons: any[];
|
|
40
48
|
refundStatusHistories: IRefundStatus[];
|
|
49
|
+
refundNotifications: IRefundStatus[];
|
|
50
|
+
isResendOperationSuccess: boolean;
|
|
51
|
+
isEditDetailsClicked: boolean;
|
|
52
|
+
isEditAddressDeatilsClicked: boolean;
|
|
53
|
+
addressDetails: IRefundContactDetails;
|
|
41
54
|
refundReference: string;
|
|
42
55
|
refundAmount: string;
|
|
43
56
|
refundCode: string;
|
|
@@ -48,23 +61,37 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
48
61
|
isLastUpdatedByCurrentUser: boolean;
|
|
49
62
|
isProcessRefund: boolean;
|
|
50
63
|
changedAmount: number;
|
|
64
|
+
isRemissionsMatch: boolean;
|
|
65
|
+
payment: IPayment;
|
|
66
|
+
changeRefundReason: string;
|
|
67
|
+
fees: IFee[];
|
|
68
|
+
refundFees: IRefundFee[];
|
|
51
69
|
allowedRolesToAccessRefund: string[];
|
|
52
|
-
constructor(formBuilder: FormBuilder, refundService: RefundsService,
|
|
70
|
+
constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService, paymentViewService: PaymentViewService);
|
|
53
71
|
ngOnInit(): void;
|
|
54
72
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
55
73
|
getRefundsStatusHistoryList(): void;
|
|
74
|
+
getRefundsNotification(): void;
|
|
56
75
|
goToRefundView(refundlist: IRefundList, navigationpage: string): void;
|
|
57
76
|
loadCaseTransactionPage(): void;
|
|
58
77
|
loadRefundListPage(): void;
|
|
59
78
|
gotoReviewDetailsPage(event: any): void;
|
|
60
79
|
gotoReviewAndReSubmitPage(): void;
|
|
61
|
-
gotoRefundReasonPage(): void;
|
|
80
|
+
gotoRefundReasonPage(refundReason: string): void;
|
|
62
81
|
gotoAmountPage(): void;
|
|
63
82
|
goToReviewAndSubmitView(): void;
|
|
64
83
|
resetRemissionForm(val: any, field: any): void;
|
|
65
84
|
selectRadioButton(key: any, value: any): void;
|
|
66
85
|
getRefundListReason(refundListReason: any): void;
|
|
67
86
|
getRefundAmount(amount: number): void;
|
|
87
|
+
getRefundFees(fees: IFee[]): void;
|
|
68
88
|
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;
|
|
69
96
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
70
97
|
}
|
|
@@ -89,18 +89,15 @@ 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;
|
|
93
|
-
chkForPBAPayment(): boolean;
|
|
94
92
|
addRemission(fee: IFee): void;
|
|
95
93
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
96
94
|
cancelRemoval(): void;
|
|
97
95
|
removeFee(fee: any): void;
|
|
98
|
-
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
99
|
-
chkIsRefundRemissionBtnEnable(): boolean;
|
|
100
|
-
check4AllowedRoles2AccessRefund: () => boolean;
|
|
101
|
-
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
102
96
|
issueRefund(payment: IPayment): void;
|
|
103
97
|
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
104
98
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
99
|
+
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
100
|
+
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
101
|
+
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
105
102
|
resetOrderData(): void;
|
|
106
103
|
}
|
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,8 @@ export interface IRefundList {
|
|
|
10
11
|
description: string;
|
|
11
12
|
name: string;
|
|
12
13
|
};
|
|
14
|
+
contact_details: IRefundContactDetails;
|
|
13
15
|
user_full_name: string;
|
|
16
|
+
service_type: string;
|
|
17
|
+
code: string;
|
|
14
18
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IRefundsNotifications {
|
|
2
|
+
contact_details: {
|
|
3
|
+
address_line: string;
|
|
4
|
+
city: string;
|
|
5
|
+
country: string;
|
|
6
|
+
county: string;
|
|
7
|
+
date_created: string;
|
|
8
|
+
date_updated: string;
|
|
9
|
+
email: string;
|
|
10
|
+
postal_code: string;
|
|
11
|
+
};
|
|
12
|
+
date_created: string;
|
|
13
|
+
date_updated: string;
|
|
14
|
+
notification_type: string;
|
|
15
|
+
reference: string;
|
|
16
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { IFee } from "./IFee";
|
|
2
|
+
import { IRefundContactDetails } from "./IRefundContactDetails";
|
|
1
3
|
export declare class IResubmitRefundRequest {
|
|
2
4
|
refund_reason: string;
|
|
3
5
|
amount: number;
|
|
4
|
-
|
|
6
|
+
contact_details: IRefundContactDetails;
|
|
7
|
+
refund_fees: IFee[];
|
|
8
|
+
constructor(refund_reason: string, amount: number, contact_details: any, refund_fees: any[]);
|
|
5
9
|
}
|
|
@@ -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
|
+
total_refund_amount: any;
|
|
7
|
+
fees: any[];
|
|
8
|
+
contact_details: IRefundContactDetails;
|
|
9
|
+
constructor(ccd_case_number: string, payment_reference: string, total_refund_amount: 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
|
}
|