@hmcts/ccpay-web-component 5.0.2-beta47 → 5.0.2-beta52
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 +388 -416
- 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 +133 -106
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +21 -12
- package/esm2015/lib/components/contact-details/contact-details.component.js +43 -13
- package/esm2015/lib/components/payment-view/payment-view.component.js +64 -88
- package/esm2015/lib/components/process-refund/process-refund.component.js +4 -4
- package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +64 -10
- package/esm2015/lib/components/service-request/service-request.component.js +63 -138
- package/esm2015/lib/components/table/table.component.js +3 -3
- package/esm2015/lib/interfaces/IFee.js +9 -1
- 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 +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 +133 -106
- package/esm5/lib/components/case-transactions/case-transactions.component.js +21 -12
- package/esm5/lib/components/contact-details/contact-details.component.js +43 -13
- package/esm5/lib/components/payment-view/payment-view.component.js +71 -110
- package/esm5/lib/components/process-refund/process-refund.component.js +4 -4
- package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +72 -10
- package/esm5/lib/components/service-request/service-request.component.js +75 -170
- package/esm5/lib/components/table/table.component.js +3 -3
- package/esm5/lib/interfaces/IFee.js +9 -1
- 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 +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 +370 -366
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +393 -416
- 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 -0
- 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 +5 -6
- 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 -0
- 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 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -3
- package/package.json +1 -1
|
@@ -39,6 +39,10 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
39
39
|
isFromServiceRequestPage: boolean;
|
|
40
40
|
isFullyRefund: boolean;
|
|
41
41
|
feeamount: number;
|
|
42
|
+
refundPaymentReference: string;
|
|
43
|
+
isFromRefundStatusPage: boolean;
|
|
44
|
+
changeRefundReason: string;
|
|
45
|
+
isServiceRequest: string;
|
|
42
46
|
LOGGEDINUSERROLES: string[];
|
|
43
47
|
orderDetail: any[];
|
|
44
48
|
orderRef: string;
|
|
@@ -56,6 +60,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
56
60
|
code: string;
|
|
57
61
|
}>;
|
|
58
62
|
refundListAmount: EventEmitter<string>;
|
|
63
|
+
refundFees: EventEmitter<IFee[]>;
|
|
59
64
|
refund: {
|
|
60
65
|
reason: {
|
|
61
66
|
duplicate: string;
|
|
@@ -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;
|
|
@@ -31,6 +31,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
31
31
|
orderDetail: any[];
|
|
32
32
|
fees: any;
|
|
33
33
|
isFullyRefund: boolean;
|
|
34
|
+
isServiceRequest: string;
|
|
34
35
|
paymentGroup: IPaymentGroup;
|
|
35
36
|
errorMessage: string;
|
|
36
37
|
ccdCaseNumber: string;
|
|
@@ -66,20 +67,18 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
66
67
|
readonly isCardPayment: boolean;
|
|
67
68
|
readonly isTelephonyPayment: boolean;
|
|
68
69
|
goToPaymentList(): void;
|
|
70
|
+
goToServiceRequestPage(): void;
|
|
69
71
|
goToCaseTransationPage(event: any): void;
|
|
70
72
|
addRemission(fee: IFee): void;
|
|
71
73
|
checkForFees(paymentGroup: any): boolean;
|
|
72
74
|
processRefund(): void;
|
|
73
75
|
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
74
76
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
75
|
-
chkIsRefundRemissionBtnEnable(): boolean;
|
|
76
77
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
77
78
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
check4AllowedRoles2AccessRefund: () => boolean;
|
|
82
|
-
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
79
|
+
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
80
|
+
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
81
|
+
chkIsAddRemissionBtnEnable(fee: IFee): boolean;
|
|
83
82
|
selectPymentOption(paymentType: string): void;
|
|
84
83
|
continuePayment(paymentgrp: IPaymentGroup): void;
|
|
85
84
|
gotoPaymentSelectPage(event: Event): 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(
|
|
9
|
+
constructor(contact_details: any, fees: any[], payment_reference: string, refund_reason: string, total_refund_amount: any);
|
|
10
10
|
}
|