@hmcts/ccpay-web-component 5.0.2-beta8 → 5.0.2-beta80
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 +612 -570
- 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/lib/components/add-remission/add-remission.component.js +269 -203
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +31 -18
- package/esm2015/lib/components/contact-details/contact-details.component.js +52 -15
- package/esm2015/lib/components/payment-view/payment-view.component.js +137 -108
- package/esm2015/lib/components/process-refund/process-refund.component.js +5 -11
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +65 -11
- package/esm2015/lib/components/service-request/service-request.component.js +51 -142
- package/esm2015/lib/components/table/table.component.js +3 -3
- package/esm2015/lib/interfaces/IFee.js +11 -1
- package/esm2015/lib/interfaces/IPayment.js +7 -1
- package/esm2015/lib/interfaces/IRefundFee.js +21 -0
- package/esm2015/lib/interfaces/IRefundList.js +3 -1
- package/esm2015/lib/interfaces/IRemission.js +5 -1
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +9 -11
- package/esm2015/lib/payment-lib.component.js +2 -2
- package/esm2015/lib/services/refunds/refunds.service.js +2 -2
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
- package/esm5/lib/components/add-remission/add-remission.component.js +273 -203
- package/esm5/lib/components/case-transactions/case-transactions.component.js +31 -18
- package/esm5/lib/components/contact-details/contact-details.component.js +52 -15
- package/esm5/lib/components/payment-view/payment-view.component.js +151 -128
- package/esm5/lib/components/process-refund/process-refund.component.js +5 -14
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +73 -11
- package/esm5/lib/components/service-request/service-request.component.js +63 -174
- package/esm5/lib/components/table/table.component.js +3 -3
- package/esm5/lib/interfaces/IFee.js +11 -1
- package/esm5/lib/interfaces/IPayment.js +7 -1
- package/esm5/lib/interfaces/IRefundFee.js +21 -0
- package/esm5/lib/interfaces/IRefundList.js +3 -1
- package/esm5/lib/interfaces/IRemission.js +5 -1
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +6 -7
- package/esm5/lib/payment-lib.component.js +2 -2
- package/esm5/lib/services/refunds/refunds.service.js +2 -2
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
- package/fesm2015/hmcts-ccpay-web-component.js +590 -522
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +621 -570
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +12 -3
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -1
- package/lib/components/contact-details/contact-details.component.d.ts +2 -0
- package/lib/components/payment-view/payment-view.component.d.ts +13 -7
- package/lib/components/process-refund/process-refund.component.d.ts +0 -1
- package/lib/components/refund-status/refund-status.component.d.ts +15 -3
- package/lib/components/service-request/service-request.component.d.ts +3 -6
- package/lib/interfaces/IFee.d.ts +5 -0
- package/lib/interfaces/IPayment.d.ts +3 -0
- package/lib/interfaces/IRefundFee.d.ts +7 -0
- package/lib/interfaces/IRefundList.d.ts +1 -0
- package/lib/interfaces/IRemission.d.ts +2 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +2 -2
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { IFee } from '../../interfaces/IFee';
|
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
6
6
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
7
|
+
import { PaymentViewComponent } from '../payment-view/payment-view.component';
|
|
7
8
|
import { IPayment } from '../../interfaces/IPayment';
|
|
8
9
|
import { RefundsService } from '../../services/refunds/refunds.service';
|
|
9
10
|
import { IRefundReasons } from '../../interfaces/IRefundReasons';
|
|
@@ -17,6 +18,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
17
18
|
private router;
|
|
18
19
|
private paymentViewService;
|
|
19
20
|
private paymentLibComponent;
|
|
21
|
+
private PaymentViewComponent;
|
|
20
22
|
private refundService;
|
|
21
23
|
private cd;
|
|
22
24
|
private OrderslistService;
|
|
@@ -37,7 +39,12 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
37
39
|
isFromRefundListPage: boolean;
|
|
38
40
|
isFromPaymentDetailPage: boolean;
|
|
39
41
|
isFromServiceRequestPage: boolean;
|
|
42
|
+
isFullyRefund: boolean;
|
|
40
43
|
feeamount: number;
|
|
44
|
+
refundPaymentReference: string;
|
|
45
|
+
isFromRefundStatusPage: boolean;
|
|
46
|
+
changeRefundReason: string;
|
|
47
|
+
isServiceRequest: string;
|
|
41
48
|
LOGGEDINUSERROLES: string[];
|
|
42
49
|
orderDetail: any[];
|
|
43
50
|
orderRef: string;
|
|
@@ -55,6 +62,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
55
62
|
code: string;
|
|
56
63
|
}>;
|
|
57
64
|
refundListAmount: EventEmitter<string>;
|
|
65
|
+
refundFees: EventEmitter<IFee[]>;
|
|
58
66
|
refund: {
|
|
59
67
|
reason: {
|
|
60
68
|
duplicate: string;
|
|
@@ -137,8 +145,9 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
137
145
|
site_id: string;
|
|
138
146
|
status: string;
|
|
139
147
|
};
|
|
140
|
-
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
148
|
+
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, PaymentViewComponent: PaymentViewComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
141
149
|
ngOnInit(): void;
|
|
150
|
+
goToPaymentViewComponent(): void;
|
|
142
151
|
refundFeesList(): void;
|
|
143
152
|
readonly feesList: FormArray;
|
|
144
153
|
noneSelected(): boolean;
|
|
@@ -156,13 +165,13 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
156
165
|
processRefund(): void;
|
|
157
166
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
158
167
|
gotoIssueRefundPage(): void;
|
|
159
|
-
gotoIssuePage(): void;
|
|
168
|
+
gotoIssuePage(isFullyRefund: any): void;
|
|
160
169
|
calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
|
|
161
170
|
gotoContactDetailsPage(note?: IRefundContactDetails): void;
|
|
162
171
|
getRefundReasons(): void;
|
|
163
172
|
getErrorClass(elementId: any): void;
|
|
164
173
|
changeIssueRefundReason(): void;
|
|
165
|
-
confirmIssueRefund(): void;
|
|
174
|
+
confirmIssueRefund(isFullyRefund: any): void;
|
|
166
175
|
gotoRefundReasonPage(): void;
|
|
167
176
|
selectRadioButton(key: any, value: any): void;
|
|
168
177
|
selectchange(args: any): void;
|
|
@@ -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;
|
|
@@ -90,7 +91,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
90
91
|
allowedRolesToAccessRefund: string[];
|
|
91
92
|
isEligible4PBAPayment: string[];
|
|
92
93
|
currentDate: Date;
|
|
93
|
-
isFromServiceRequestPage: boolean;
|
|
94
94
|
navigationpage: string;
|
|
95
95
|
remissionFeeAmt: number;
|
|
96
96
|
constructor(router: Router, paymentViewService: PaymentViewService, bulkScaningPaymentService: BulkScaningPaymentService, caseTransactionsService: CaseTransactionsService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
|
|
@@ -7,8 +7,10 @@ export declare class ContactDetailsComponent implements OnInit {
|
|
|
7
7
|
private notificationService;
|
|
8
8
|
private paymentLibComponent;
|
|
9
9
|
isEditOperation: boolean;
|
|
10
|
+
isEditOperationInRefundList: boolean;
|
|
10
11
|
addressObj: any;
|
|
11
12
|
assignContactDetails: EventEmitter<any>;
|
|
13
|
+
assignContactDetailsInFefundsList: EventEmitter<any>;
|
|
12
14
|
redirectToIssueRefund: EventEmitter<any>;
|
|
13
15
|
pageTitle: string;
|
|
14
16
|
errorMessage: string;
|
|
@@ -29,6 +29,9 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
29
29
|
orderFeesTotal: number;
|
|
30
30
|
orderRemissionTotal: number;
|
|
31
31
|
orderDetail: any[];
|
|
32
|
+
fees: any;
|
|
33
|
+
isFullyRefund: boolean;
|
|
34
|
+
isServiceRequest: string;
|
|
32
35
|
paymentGroup: IPaymentGroup;
|
|
33
36
|
errorMessage: string;
|
|
34
37
|
ccdCaseNumber: string;
|
|
@@ -55,28 +58,31 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
55
58
|
viewCompStatus: string;
|
|
56
59
|
contactDetailsObj: IRefundContactDetails;
|
|
57
60
|
notification: any;
|
|
61
|
+
isConfirmationBtnDisabled: boolean;
|
|
62
|
+
refundReference: string;
|
|
63
|
+
refundAmount: string;
|
|
58
64
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
59
65
|
ngAfterContentChecked(): void;
|
|
60
66
|
ngOnInit(): void;
|
|
61
67
|
readonly isCardPayment: boolean;
|
|
62
68
|
readonly isTelephonyPayment: boolean;
|
|
63
69
|
goToPaymentList(): void;
|
|
70
|
+
getOverPaymentValue(): number;
|
|
71
|
+
goToServiceRequestPage(): void;
|
|
64
72
|
goToCaseTransationPage(event: any): void;
|
|
65
73
|
addRemission(fee: IFee): void;
|
|
66
74
|
checkForFees(paymentGroup: any): boolean;
|
|
67
75
|
processRefund(): void;
|
|
68
76
|
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
69
77
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
70
|
-
|
|
78
|
+
goToPaymentViewComponent(paymentgrp: IPaymentGroup): void;
|
|
71
79
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
72
80
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
check4AllowedRoles2AccessRefund: () => boolean;
|
|
77
|
-
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
81
|
+
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
82
|
+
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
83
|
+
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
78
84
|
selectPymentOption(paymentType: string): void;
|
|
79
|
-
continuePayment(): void;
|
|
85
|
+
continuePayment(paymentgrp: IPaymentGroup): void;
|
|
80
86
|
gotoPaymentSelectPage(event: Event): void;
|
|
81
87
|
getContactDetails(obj: IRefundContactDetails): void;
|
|
82
88
|
resetOrderData(): void;
|
|
@@ -8,12 +8,17 @@ import { OrderslistService } from '../../services/orderslist.service';
|
|
|
8
8
|
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
9
9
|
import { IRefundStatus } from '../../interfaces/IRefundStatus';
|
|
10
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';
|
|
11
15
|
export declare class RefundStatusComponent implements OnInit {
|
|
12
16
|
private formBuilder;
|
|
13
17
|
private refundService;
|
|
14
18
|
private notificationService;
|
|
15
19
|
private paymentLibComponent;
|
|
16
20
|
private OrderslistService;
|
|
21
|
+
private paymentViewService;
|
|
17
22
|
LOGGEDINUSERROLES: string[];
|
|
18
23
|
isOldPcipalOff: boolean;
|
|
19
24
|
isNewPcipalOff: boolean;
|
|
@@ -23,7 +28,7 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
23
28
|
refundStatusForm: FormGroup;
|
|
24
29
|
selectedRefundReason: string;
|
|
25
30
|
rejectedRefundList: IRefundList[];
|
|
26
|
-
notificationList:
|
|
31
|
+
notificationList: any;
|
|
27
32
|
notification: any;
|
|
28
33
|
approvalStatus: string;
|
|
29
34
|
rejectStatus: string;
|
|
@@ -56,8 +61,13 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
56
61
|
isLastUpdatedByCurrentUser: boolean;
|
|
57
62
|
isProcessRefund: boolean;
|
|
58
63
|
changedAmount: number;
|
|
64
|
+
isRemissionsMatch: boolean;
|
|
65
|
+
payment: IPayment;
|
|
66
|
+
changeRefundReason: string;
|
|
67
|
+
fees: IFee[];
|
|
68
|
+
refundFees: IRefundFee[];
|
|
59
69
|
allowedRolesToAccessRefund: string[];
|
|
60
|
-
constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
|
|
70
|
+
constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService, paymentViewService: PaymentViewService);
|
|
61
71
|
ngOnInit(): void;
|
|
62
72
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
63
73
|
getRefundsStatusHistoryList(): void;
|
|
@@ -67,16 +77,18 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
67
77
|
loadRefundListPage(): void;
|
|
68
78
|
gotoReviewDetailsPage(event: any): void;
|
|
69
79
|
gotoReviewAndReSubmitPage(): void;
|
|
70
|
-
gotoRefundReasonPage(): void;
|
|
80
|
+
gotoRefundReasonPage(refundReason: string): void;
|
|
71
81
|
gotoAmountPage(): void;
|
|
72
82
|
goToReviewAndSubmitView(): void;
|
|
73
83
|
resetRemissionForm(val: any, field: any): void;
|
|
74
84
|
selectRadioButton(key: any, value: any): void;
|
|
75
85
|
getRefundListReason(refundListReason: any): void;
|
|
76
86
|
getRefundAmount(amount: number): void;
|
|
87
|
+
getRefundFees(fees: IFee[]): void;
|
|
77
88
|
gotoReviewRefundConfirmationPage(): void;
|
|
78
89
|
gotoEditAddressDetails(note: IRefundsNotifications): void;
|
|
79
90
|
getContactDetails(obj: IRefundContactDetails): void;
|
|
91
|
+
getContactDetailsForRefundList(obj: IRefundContactDetails): void;
|
|
80
92
|
gotoEditDetailsPage(note?: any): void;
|
|
81
93
|
submitEditDetail(): void;
|
|
82
94
|
putResend(notification: IRefundsNotifications): void;
|
|
@@ -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, feeId: number): 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
|
@@ -20,5 +20,10 @@ export interface IFee {
|
|
|
20
20
|
date_updated?: string;
|
|
21
21
|
amount_due?: number;
|
|
22
22
|
remission_enable?: boolean;
|
|
23
|
+
add_remission?: boolean;
|
|
23
24
|
over_payment?: number;
|
|
25
|
+
refund_amount?: number;
|
|
26
|
+
updated_volume?: number;
|
|
27
|
+
selected?: any;
|
|
28
|
+
issue_refund_add_refund_add_remission: boolean;
|
|
24
29
|
}
|
|
@@ -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
|
}
|
|
@@ -3,8 +3,8 @@ export declare class PostRefundRetroRemission {
|
|
|
3
3
|
ccd_case_number: string;
|
|
4
4
|
payment_reference: string;
|
|
5
5
|
refund_reason: string;
|
|
6
|
-
|
|
6
|
+
total_refund_amount: any;
|
|
7
7
|
fees: any[];
|
|
8
8
|
contact_details: IRefundContactDetails;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(contact_details: any, fees: any[], payment_reference: string, refund_reason: string, total_refund_amount: any);
|
|
10
10
|
}
|