@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.
Files changed (52) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +490 -85
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +32 -31
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +76 -26
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +3 -2
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +314 -0
  9. package/esm2015/lib/components/fee-summary/fee-summary.component.js +3 -1
  10. package/esm2015/lib/components/payment-view/payment-view.component.js +4 -3
  11. package/esm2015/lib/components/process-refund/process-refund.component.js +3 -8
  12. package/esm2015/lib/components/refund-status/refund-status.component.js +51 -3
  13. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +2 -1
  14. package/esm2015/lib/interfaces/IPutNotificationRequest.js +21 -0
  15. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  16. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  17. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -2
  18. package/esm2015/lib/payment-lib.module.js +3 -1
  19. package/esm2015/lib/services/refunds/refunds.service.js +10 -1
  20. package/esm2015/lib/services/shared/error-handler.service.js +10 -19
  21. package/esm5/hmcts-ccpay-web-component.js +32 -31
  22. package/esm5/lib/components/add-remission/add-remission.component.js +93 -26
  23. package/esm5/lib/components/case-transactions/case-transactions.component.js +3 -2
  24. package/esm5/lib/components/contact-details/contact-details.component.js +335 -0
  25. package/esm5/lib/components/fee-summary/fee-summary.component.js +3 -1
  26. package/esm5/lib/components/payment-view/payment-view.component.js +4 -3
  27. package/esm5/lib/components/process-refund/process-refund.component.js +3 -8
  28. package/esm5/lib/components/refund-status/refund-status.component.js +60 -3
  29. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +2 -1
  30. package/esm5/lib/interfaces/IPutNotificationRequest.js +19 -0
  31. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  32. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  33. package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
  34. package/esm5/lib/payment-lib.module.js +3 -1
  35. package/esm5/lib/services/refunds/refunds.service.js +16 -1
  36. package/esm5/lib/services/shared/error-handler.service.js +10 -19
  37. package/fesm2015/hmcts-ccpay-web-component.js +417 -56
  38. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  39. package/fesm5/hmcts-ccpay-web-component.js +463 -56
  40. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  41. package/hmcts-ccpay-web-component.d.ts +31 -30
  42. package/hmcts-ccpay-web-component.metadata.json +1 -1
  43. package/lib/components/add-remission/add-remission.component.d.ts +7 -0
  44. package/lib/components/contact-details/contact-details.component.d.ts +38 -0
  45. package/lib/components/process-refund/process-refund.component.d.ts +0 -1
  46. package/lib/components/refund-status/refund-status.component.d.ts +3 -0
  47. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  48. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  49. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  50. package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
  51. package/lib/services/refunds/refunds.service.d.ts +2 -0
  52. 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
  }
@@ -0,0 +1,6 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
2
+ export declare class IPutNotificationRequest {
3
+ recipient_email_address: string;
4
+ recipient_postal_address: IRefundContactDetails;
5
+ constructor(email_address: string, contactDeatils: any);
6
+ }
@@ -0,0 +1,9 @@
1
+ export interface IRefundContactDetails {
2
+ address_line?: string;
3
+ city?: string;
4
+ country?: string;
5
+ county?: string;
6
+ email?: string;
7
+ notification_type?: string;
8
+ postal_code?: string;
9
+ }
@@ -1,4 +1,6 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
1
2
  export declare class PostIssueRefundRetroRemission {
2
3
  remissionReference: string;
3
- constructor(remissionReference: string);
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
- constructor(payment_reference: string, refund_reason: string);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.1-beta77",
3
+ "version": "5.0.1-beta83",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },