@hmcts/ccpay-web-component 5.0.1-beta77 → 5.0.1-beta83
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 +490 -85
- 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 +32 -31
- package/esm2015/lib/components/add-remission/add-remission.component.js +76 -26
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +3 -2
- package/esm2015/lib/components/contact-details/contact-details.component.js +314 -0
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +3 -1
- package/esm2015/lib/components/payment-view/payment-view.component.js +4 -3
- package/esm2015/lib/components/process-refund/process-refund.component.js +3 -8
- package/esm2015/lib/components/refund-status/refund-status.component.js +51 -3
- package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +2 -1
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +21 -0
- package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -2
- package/esm2015/lib/payment-lib.module.js +3 -1
- package/esm2015/lib/services/refunds/refunds.service.js +10 -1
- package/esm2015/lib/services/shared/error-handler.service.js +10 -19
- package/esm5/hmcts-ccpay-web-component.js +32 -31
- package/esm5/lib/components/add-remission/add-remission.component.js +93 -26
- package/esm5/lib/components/case-transactions/case-transactions.component.js +3 -2
- package/esm5/lib/components/contact-details/contact-details.component.js +335 -0
- package/esm5/lib/components/fee-summary/fee-summary.component.js +3 -1
- package/esm5/lib/components/payment-view/payment-view.component.js +4 -3
- package/esm5/lib/components/process-refund/process-refund.component.js +3 -8
- package/esm5/lib/components/refund-status/refund-status.component.js +60 -3
- package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +2 -1
- package/esm5/lib/interfaces/IPutNotificationRequest.js +19 -0
- package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
- package/esm5/lib/payment-lib.module.js +3 -1
- package/esm5/lib/services/refunds/refunds.service.js +16 -1
- package/esm5/lib/services/shared/error-handler.service.js +10 -19
- package/fesm2015/hmcts-ccpay-web-component.js +417 -56
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +463 -56
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +31 -30
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +7 -0
- package/lib/components/contact-details/contact-details.component.d.ts +38 -0
- package/lib/components/process-refund/process-refund.component.d.ts +0 -1
- package/lib/components/refund-status/refund-status.component.d.ts +3 -0
- package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
- package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
- package/lib/services/refunds/refunds.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ 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';
|
|
@@ -60,6 +61,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
60
61
|
other: string;
|
|
61
62
|
};
|
|
62
63
|
};
|
|
64
|
+
contactDetailsObj: IRefundContactDetails;
|
|
63
65
|
remissionForm: FormGroup;
|
|
64
66
|
hasErrors: boolean;
|
|
65
67
|
viewStatus: string;
|
|
@@ -126,17 +128,22 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
126
128
|
addRemissionCode(): void;
|
|
127
129
|
gotoAddRetroRemissionCodePage(): void;
|
|
128
130
|
gotoCheckRetroRemissionPage(payment: IPayment): void;
|
|
131
|
+
gotoAmountRetroRemission(): void;
|
|
129
132
|
gotoProcessRetroRemissionPage(): void;
|
|
133
|
+
gotoProcessRetroRemission(): void;
|
|
130
134
|
confirmRetroRemission(): void;
|
|
131
135
|
processRefund(): void;
|
|
132
136
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
133
137
|
gotoIssueRefundPage(): void;
|
|
138
|
+
gotoContactDetailsPage(): void;
|
|
134
139
|
changeIssueRefundReason(): void;
|
|
135
140
|
confirmIssueRefund(): void;
|
|
136
141
|
confirmRetroRefund(): void;
|
|
137
142
|
selectRadioButton(key: any, value: any): void;
|
|
138
143
|
selectchange(args: any): void;
|
|
144
|
+
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
139
145
|
gotoServiceRequestPage(event: any): void;
|
|
146
|
+
gotoAddressPage(): void;
|
|
140
147
|
gotoCasetransationPage(): void;
|
|
141
148
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
142
149
|
resetOrderData(): void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
|
+
export declare class ContactDetailsComponent implements OnInit {
|
|
5
|
+
private formBuilder;
|
|
6
|
+
private paymentLibComponent;
|
|
7
|
+
assignContactDetails: EventEmitter<any>;
|
|
8
|
+
redirectToIssueRefund: EventEmitter<any>;
|
|
9
|
+
pageTitle: string;
|
|
10
|
+
errorMessage: string;
|
|
11
|
+
isEmailSAddressClicked: boolean;
|
|
12
|
+
isPostcodeClicked: boolean;
|
|
13
|
+
isManualAddressClicked: boolean;
|
|
14
|
+
emailAddressForm: FormGroup;
|
|
15
|
+
postCodeForm: FormGroup;
|
|
16
|
+
manualAddressForm: FormGroup;
|
|
17
|
+
isEmailEmpty: boolean;
|
|
18
|
+
emailHasError: boolean;
|
|
19
|
+
isPostcodeEmpty: boolean;
|
|
20
|
+
postcodeHasError: boolean;
|
|
21
|
+
isaddressLine1Empty: boolean;
|
|
22
|
+
addressLine1HasError: boolean;
|
|
23
|
+
addressLine2HasError: boolean;
|
|
24
|
+
isTownOrCityEmpty: boolean;
|
|
25
|
+
townOrCityHasError: boolean;
|
|
26
|
+
isCountyEmpty: boolean;
|
|
27
|
+
countyHasError: boolean;
|
|
28
|
+
isMPostcodeEmpty: boolean;
|
|
29
|
+
mpostcodeHasError: boolean;
|
|
30
|
+
isCountryEmpty: boolean;
|
|
31
|
+
constructor(formBuilder: FormBuilder, paymentLibComponent: PaymentLibComponent);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
selectContactOption(type: any, isLinkedClied: any): void;
|
|
34
|
+
finalFormSubmit(): void;
|
|
35
|
+
postcodeValidation(): void;
|
|
36
|
+
redirection(event: any): void;
|
|
37
|
+
resetForm(val: any, field: any): void;
|
|
38
|
+
}
|
|
@@ -41,7 +41,6 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
41
41
|
successMsg: string;
|
|
42
42
|
navigationpage: string;
|
|
43
43
|
ccdCaseNumber: string;
|
|
44
|
-
isFromRefundListPage: boolean;
|
|
45
44
|
isConfirmButtondisabled: boolean;
|
|
46
45
|
constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
47
46
|
ngOnInit(): void;
|
|
@@ -38,6 +38,7 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
38
38
|
refundHasError: boolean;
|
|
39
39
|
refundReasons: any[];
|
|
40
40
|
refundStatusHistories: IRefundStatus[];
|
|
41
|
+
refundNotifications: IRefundStatus[];
|
|
41
42
|
refundReference: string;
|
|
42
43
|
refundAmount: string;
|
|
43
44
|
refundCode: string;
|
|
@@ -66,5 +67,7 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
66
67
|
getRefundListReason(refundListReason: any): void;
|
|
67
68
|
getRefundAmount(amount: number): void;
|
|
68
69
|
gotoReviewRefundConfirmationPage(): void;
|
|
70
|
+
putResend(notificationType: any): void;
|
|
71
|
+
putEditDetails(): void;
|
|
69
72
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
70
73
|
}
|
|
@@ -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,7 @@
|
|
|
1
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
1
2
|
export declare class PostRefundRetroRemission {
|
|
2
3
|
payment_reference: string;
|
|
3
4
|
refund_reason: string;
|
|
4
|
-
|
|
5
|
+
contact_details: IRefundContactDetails;
|
|
6
|
+
constructor(payment_reference: string, refund_reason: string, contactDeatils: any);
|
|
5
7
|
}
|
|
@@ -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
|
}
|