@hmcts/ccpay-web-component 5.0.2-beta33 → 5.0.2-beta36
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 +348 -549
- 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 +119 -120
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +15 -14
- package/esm2015/lib/components/contact-details/contact-details.component.js +43 -13
- package/esm2015/lib/components/payment-view/payment-view.component.js +42 -196
- package/esm2015/lib/components/process-refund/process-refund.component.js +6 -6
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +61 -11
- package/esm2015/lib/components/service-request/service-request.component.js +55 -138
- package/esm2015/lib/components/table/table.component.js +3 -3
- package/esm2015/lib/interfaces/IFee.js +8 -2
- package/esm2015/lib/interfaces/IPayment.js +5 -1
- package/esm2015/lib/interfaces/IRefundFee.js +21 -0
- package/esm2015/lib/interfaces/IRefundList.js +3 -1
- package/esm2015/lib/interfaces/IRemission.js +4 -2
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -6
- package/esm2015/lib/payment-lib.service.js +1 -1
- 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 +119 -121
- package/esm5/lib/components/case-transactions/case-transactions.component.js +15 -14
- package/esm5/lib/components/contact-details/contact-details.component.js +43 -13
- package/esm5/lib/components/payment-view/payment-view.component.js +49 -242
- package/esm5/lib/components/process-refund/process-refund.component.js +6 -6
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +69 -11
- package/esm5/lib/components/service-request/service-request.component.js +67 -170
- package/esm5/lib/components/table/table.component.js +3 -3
- package/esm5/lib/interfaces/IFee.js +8 -2
- package/esm5/lib/interfaces/IPayment.js +5 -1
- package/esm5/lib/interfaces/IRefundFee.js +21 -0
- package/esm5/lib/interfaces/IRefundList.js +3 -1
- package/esm5/lib/interfaces/IRemission.js +4 -2
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -5
- package/esm5/lib/payment-lib.service.js +1 -1
- 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 +337 -482
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +356 -554
- 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 +5 -2
- package/lib/components/case-transactions/case-transactions.component.d.ts +0 -1
- package/lib/components/contact-details/contact-details.component.d.ts +2 -0
- package/lib/components/payment-view/payment-view.component.d.ts +5 -23
- package/lib/components/process-refund/process-refund.component.d.ts +1 -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 +4 -1
- package/lib/interfaces/IPayment.d.ts +2 -0
- package/lib/interfaces/IRefundFee.d.ts +7 -0
- package/lib/interfaces/IRefundList.d.ts +1 -0
- package/lib/interfaces/IRemission.d.ts +2 -1
- package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -3
- package/package.json +1 -5
|
@@ -37,8 +37,10 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
37
37
|
isFromRefundListPage: boolean;
|
|
38
38
|
isFromPaymentDetailPage: boolean;
|
|
39
39
|
isFromServiceRequestPage: boolean;
|
|
40
|
-
isFullyRefund: boolean;
|
|
41
40
|
feeamount: number;
|
|
41
|
+
refundPaymentReference: string;
|
|
42
|
+
isFromRefundStatusPage: boolean;
|
|
43
|
+
changeRefundReason: string;
|
|
42
44
|
LOGGEDINUSERROLES: string[];
|
|
43
45
|
orderDetail: any[];
|
|
44
46
|
orderRef: string;
|
|
@@ -56,6 +58,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
56
58
|
code: string;
|
|
57
59
|
}>;
|
|
58
60
|
refundListAmount: EventEmitter<string>;
|
|
61
|
+
refundFees: EventEmitter<IFee[]>;
|
|
59
62
|
refund: {
|
|
60
63
|
reason: {
|
|
61
64
|
duplicate: string;
|
|
@@ -163,7 +166,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
163
166
|
getRefundReasons(): void;
|
|
164
167
|
getErrorClass(elementId: any): void;
|
|
165
168
|
changeIssueRefundReason(): void;
|
|
166
|
-
confirmIssueRefund(
|
|
169
|
+
confirmIssueRefund(): void;
|
|
167
170
|
gotoRefundReasonPage(): void;
|
|
168
171
|
selectRadioButton(key: any, value: any): void;
|
|
169
172
|
selectchange(args: any): void;
|
|
@@ -55,7 +55,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
55
55
|
isRemoveBtnDisabled: boolean;
|
|
56
56
|
feeId: IFee;
|
|
57
57
|
clAmountDue: number;
|
|
58
|
-
overPaymentAmount: number;
|
|
59
58
|
unprocessedRecordCount: number;
|
|
60
59
|
isFeeRecordsExist: boolean;
|
|
61
60
|
isGrpOutstandingAmtPositive: boolean;
|
|
@@ -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;
|
|
@@ -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,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
29
28
|
orderFeesTotal: number;
|
|
30
29
|
orderRemissionTotal: number;
|
|
31
30
|
orderDetail: any[];
|
|
32
|
-
|
|
33
|
-
isFullyRefund: boolean;
|
|
31
|
+
isServiceRequest: string;
|
|
34
32
|
paymentGroup: IPaymentGroup;
|
|
35
33
|
errorMessage: string;
|
|
36
34
|
ccdCaseNumber: string;
|
|
@@ -52,37 +50,21 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
52
50
|
isFromServiceRequestPage: boolean;
|
|
53
51
|
isFromPaymentDetailPage: boolean;
|
|
54
52
|
paymentFees: IFee[];
|
|
55
|
-
paymentType: string;
|
|
56
|
-
isContinueBtnDisabled: boolean;
|
|
57
|
-
viewCompStatus: string;
|
|
58
|
-
contactDetailsObj: IRefundContactDetails;
|
|
59
|
-
notification: any;
|
|
60
|
-
isConfirmationBtnDisabled: boolean;
|
|
61
|
-
refundReference: string;
|
|
62
|
-
refundAmount: string;
|
|
63
53
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
64
54
|
ngAfterContentChecked(): void;
|
|
65
55
|
ngOnInit(): void;
|
|
66
56
|
readonly isCardPayment: boolean;
|
|
67
57
|
readonly isTelephonyPayment: boolean;
|
|
68
58
|
goToPaymentList(): void;
|
|
59
|
+
goToServiceRequestPage(): void;
|
|
69
60
|
goToCaseTransationPage(event: any): void;
|
|
70
61
|
addRemission(fee: IFee): void;
|
|
71
62
|
checkForFees(paymentGroup: any): boolean;
|
|
72
|
-
processRefund(): void;
|
|
73
|
-
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
74
63
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
75
|
-
chkIsRefundRemissionBtnEnable(): boolean;
|
|
76
64
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
77
65
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
check4AllowedRoles2AccessRefund: () => boolean;
|
|
82
|
-
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
83
|
-
selectPymentOption(paymentType: string): void;
|
|
84
|
-
continuePayment(paymentgrp: IPaymentGroup): void;
|
|
85
|
-
gotoPaymentSelectPage(event: Event): void;
|
|
86
|
-
getContactDetails(obj: IRefundContactDetails): void;
|
|
66
|
+
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
67
|
+
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
68
|
+
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
87
69
|
resetOrderData(): void;
|
|
88
70
|
}
|
|
@@ -43,9 +43,9 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
43
43
|
successMsg: string;
|
|
44
44
|
navigationpage: string;
|
|
45
45
|
ccdCaseNumber: string;
|
|
46
|
-
isFromRefundListPage: boolean;
|
|
47
46
|
cpoDetails: any;
|
|
48
47
|
isCPODown: boolean;
|
|
48
|
+
isFromRefundListPage: boolean;
|
|
49
49
|
isConfirmButtondisabled: boolean;
|
|
50
50
|
constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
51
51
|
ngOnInit(): 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
|
@@ -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
|
-
|
|
7
|
-
fees: any;
|
|
6
|
+
total_refund_amount: any;
|
|
7
|
+
fees: any[];
|
|
8
8
|
contact_details: IRefundContactDetails;
|
|
9
|
-
constructor(ccd_case_number: string, payment_reference: string,
|
|
9
|
+
constructor(ccd_case_number: string, payment_reference: string, total_refund_amount: string, refund_amount: any, fees: any[], contact_details: any);
|
|
10
10
|
}
|
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-beta36",
|
|
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"
|