@hmcts/ccpay-web-component 5.0.1-beta138 → 5.0.1-beta142

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 (61) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +766 -83
  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 +33 -31
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +84 -8
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +2 -2
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +399 -0
  9. package/esm2015/lib/components/process-refund/process-refund.component.js +31 -3
  10. package/esm2015/lib/components/refund-status/refund-status.component.js +149 -27
  11. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  12. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  13. package/esm2015/lib/interfaces/IRefundList.js +3 -1
  14. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  15. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  16. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -2
  17. package/esm2015/lib/payment-lib.component.js +5 -1
  18. package/esm2015/lib/payment-lib.module.js +3 -1
  19. package/esm2015/lib/payment-lib.service.js +16 -1
  20. package/esm2015/lib/services/notification/notification.service.js +85 -0
  21. package/esm2015/lib/services/refunds/refunds.service.js +12 -16
  22. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +3 -16
  23. package/esm5/hmcts-ccpay-web-component.js +33 -31
  24. package/esm5/lib/components/add-remission/add-remission.component.js +108 -8
  25. package/esm5/lib/components/case-transactions/case-transactions.component.js +2 -2
  26. package/esm5/lib/components/contact-details/contact-details.component.js +424 -0
  27. package/esm5/lib/components/process-refund/process-refund.component.js +30 -3
  28. package/esm5/lib/components/refund-status/refund-status.component.js +177 -25
  29. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  30. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  31. package/esm5/lib/interfaces/IRefundList.js +3 -1
  32. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  33. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  34. package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -2
  35. package/esm5/lib/payment-lib.component.js +5 -1
  36. package/esm5/lib/payment-lib.module.js +3 -1
  37. package/esm5/lib/payment-lib.service.js +23 -1
  38. package/esm5/lib/services/notification/notification.service.js +89 -0
  39. package/esm5/lib/services/refunds/refunds.service.js +18 -16
  40. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +3 -16
  41. package/fesm2015/hmcts-ccpay-web-component.js +655 -60
  42. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  43. package/fesm5/hmcts-ccpay-web-component.js +741 -58
  44. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  45. package/hmcts-ccpay-web-component.d.ts +32 -30
  46. package/hmcts-ccpay-web-component.metadata.json +1 -1
  47. package/lib/components/add-remission/add-remission.component.d.ts +9 -0
  48. package/lib/components/contact-details/contact-details.component.d.ts +46 -0
  49. package/lib/components/process-refund/process-refund.component.d.ts +5 -1
  50. package/lib/components/refund-status/refund-status.component.d.ts +20 -5
  51. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  52. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  53. package/lib/interfaces/IRefundList.d.ts +2 -0
  54. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  55. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  56. package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -1
  57. package/lib/payment-lib.component.d.ts +1 -0
  58. package/lib/payment-lib.service.d.ts +3 -0
  59. package/lib/services/notification/notification.service.d.ts +15 -0
  60. package/lib/services/refunds/refunds.service.d.ts +2 -0
  61. 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,8 @@ export declare class AddRemissionComponent implements OnInit {
60
61
  other: string;
61
62
  };
62
63
  };
64
+ contactDetailsObj: IRefundContactDetails;
65
+ notification: any;
63
66
  remissionForm: FormGroup;
64
67
  hasErrors: boolean;
65
68
  viewStatus: string;
@@ -126,17 +129,23 @@ export declare class AddRemissionComponent implements OnInit {
126
129
  addRemissionCode(): void;
127
130
  gotoAddRetroRemissionCodePage(): void;
128
131
  gotoCheckRetroRemissionPage(payment: IPayment): void;
132
+ gotoAmountRetroRemission(): void;
129
133
  gotoProcessRetroRemissionPage(): void;
134
+ gotoProcessRetroRemission(note?: IRefundContactDetails): void;
130
135
  confirmRetroRemission(): void;
131
136
  processRefund(): void;
132
137
  gotoIssueRefundConfirmation(payment: IPayment): void;
133
138
  gotoIssueRefundPage(): void;
139
+ gotoContactDetailsPage(note?: IRefundContactDetails): void;
134
140
  changeIssueRefundReason(): void;
135
141
  confirmIssueRefund(): void;
136
142
  confirmRetroRefund(): void;
137
143
  selectRadioButton(key: any, value: any): void;
138
144
  selectchange(args: any): void;
145
+ getContactDetails(obj: IRefundContactDetails, type: any): void;
139
146
  gotoServiceRequestPage(event: any): void;
147
+ gotoAddressPage(note?: IRefundContactDetails): void;
148
+ gotoRemissionSuccess(event: Event): void;
140
149
  gotoCasetransationPage(): void;
141
150
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
142
151
  resetOrderData(): void;
@@ -0,0 +1,46 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { PaymentLibComponent } from '../../payment-lib.component';
4
+ import { NotificationService } from '../../services/notification/notification.service';
5
+ export declare class ContactDetailsComponent implements OnInit {
6
+ private formBuilder;
7
+ private notificationService;
8
+ private paymentLibComponent;
9
+ isEditOperation: boolean;
10
+ addressObj: any;
11
+ assignContactDetails: EventEmitter<any>;
12
+ redirectToIssueRefund: EventEmitter<any>;
13
+ pageTitle: string;
14
+ errorMessage: string;
15
+ isEmailSAddressClicked: boolean;
16
+ isShowPickAddress: boolean;
17
+ isPostcodeClicked: boolean;
18
+ isManualAddressClicked: boolean;
19
+ emailAddressForm: FormGroup;
20
+ postCodeForm: FormGroup;
21
+ manualAddressForm: FormGroup;
22
+ addressPostcodeList: any[];
23
+ postcodeAddress: any;
24
+ isEmailEmpty: boolean;
25
+ emailHasError: boolean;
26
+ isPostcodeEmpty: boolean;
27
+ postcodeHasError: boolean;
28
+ isaddressLine1Empty: boolean;
29
+ addressLine1HasError: boolean;
30
+ addressLine2HasError: boolean;
31
+ isTownOrCityEmpty: boolean;
32
+ townOrCityHasError: boolean;
33
+ isCountyEmpty: boolean;
34
+ countyHasError: boolean;
35
+ isMPostcodeEmpty: boolean;
36
+ mpostcodeHasError: boolean;
37
+ isCountryEmpty: boolean;
38
+ constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
39
+ ngOnInit(): void;
40
+ setEditDetails(): void;
41
+ selectContactOption(type: any, isLinkedClied: any): void;
42
+ finalFormSubmit(): void;
43
+ postcodeValidation(str: any): void;
44
+ redirection(event: any): void;
45
+ resetForm(val: any, field: any): void;
46
+ }
@@ -5,10 +5,12 @@ import { IRefundAction } from '../../interfaces/IRefundAction';
5
5
  import { IRefundList } from '../../interfaces/IRefundList';
6
6
  import { IRefundRejectReason } from '../../interfaces/IRefundRejectReason';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
+ import { PaymentViewService } from '../../services/payment-view/payment-view.service';
8
9
  import { PaymentLibComponent } from '../../payment-lib.component';
9
10
  import { ActivatedRoute, Router } from '@angular/router';
10
11
  export declare class ProcessRefundComponent implements OnInit {
11
12
  private RefundsService;
13
+ private paymentViewService;
12
14
  private formBuilder;
13
15
  private OrderslistService;
14
16
  private paymentLibComponent;
@@ -41,9 +43,11 @@ export declare class ProcessRefundComponent implements OnInit {
41
43
  successMsg: string;
42
44
  navigationpage: string;
43
45
  ccdCaseNumber: string;
46
+ cpoDetails: any;
47
+ isCPODown: boolean;
44
48
  isFromRefundListPage: boolean;
45
49
  isConfirmButtondisabled: boolean;
46
- constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
50
+ constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
47
51
  ngOnInit(): void;
48
52
  checkRefundActions(code: string): void;
49
53
  processRefundSubmit(): void;
@@ -1,27 +1,30 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { RefundsService } from '../../services/refunds/refunds.service';
3
+ import { NotificationService } from '../../services/notification/notification.service';
3
4
  import { FormBuilder, FormGroup } from '@angular/forms';
4
5
  import { IRefundList } from '../../interfaces/IRefundList';
5
- import { PaymentViewService } from '../../services/payment-view/payment-view.service';
6
- import { Router } from '@angular/router';
6
+ import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
+ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
8
9
  import { IRefundStatus } from '../../interfaces/IRefundStatus';
9
10
  import { PaymentLibComponent } from '../../payment-lib.component';
10
11
  export declare class RefundStatusComponent implements OnInit {
11
12
  private formBuilder;
12
13
  private refundService;
14
+ private notificationService;
13
15
  private paymentLibComponent;
14
- private paymentViewService;
15
- private router;
16
16
  private OrderslistService;
17
17
  LOGGEDINUSERROLES: string[];
18
18
  isOldPcipalOff: boolean;
19
19
  isNewPcipalOff: boolean;
20
20
  ccdCaseNumber: string;
21
21
  isTurnOff: boolean;
22
+ orderParty: string;
22
23
  refundStatusForm: FormGroup;
23
24
  selectedRefundReason: string;
24
25
  rejectedRefundList: IRefundList[];
26
+ notificationList: IRefundsNotifications;
27
+ notification: any;
25
28
  approvalStatus: string;
26
29
  rejectStatus: string;
27
30
  errorMessage: any;
@@ -38,6 +41,11 @@ export declare class RefundStatusComponent implements OnInit {
38
41
  refundHasError: boolean;
39
42
  refundReasons: any[];
40
43
  refundStatusHistories: IRefundStatus[];
44
+ refundNotifications: IRefundStatus[];
45
+ isResendOperationSuccess: boolean;
46
+ isEditDetailsClicked: boolean;
47
+ isEditAddressDeatilsClicked: boolean;
48
+ addressDetails: IRefundContactDetails;
41
49
  refundReference: string;
42
50
  refundAmount: string;
43
51
  refundCode: string;
@@ -49,10 +57,11 @@ export declare class RefundStatusComponent implements OnInit {
49
57
  isProcessRefund: boolean;
50
58
  changedAmount: number;
51
59
  allowedRolesToAccessRefund: string[];
52
- constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
60
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
53
61
  ngOnInit(): void;
54
62
  check4AllowedRoles2AccessRefund: () => boolean;
55
63
  getRefundsStatusHistoryList(): void;
64
+ getRefundsNotification(): void;
56
65
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
57
66
  loadCaseTransactionPage(): void;
58
67
  loadRefundListPage(): void;
@@ -66,5 +75,11 @@ export declare class RefundStatusComponent implements OnInit {
66
75
  getRefundListReason(refundListReason: any): void;
67
76
  getRefundAmount(amount: number): void;
68
77
  gotoReviewRefundConfirmationPage(): void;
78
+ gotoEditAddressDetails(note: IRefundsNotifications): void;
79
+ getContactDetails(obj: IRefundContactDetails): void;
80
+ gotoEditDetailsPage(note?: any): void;
81
+ submitEditDetail(): void;
82
+ putResend(notification: IRefundsNotifications): void;
83
+ gotoCasetransationPageCancelBtnClicked(Event: Event): void;
69
84
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
70
85
  }
@@ -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(contactDetails: any, notificationType: string);
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,3 +1,4 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
1
2
  export interface IRefundList {
2
3
  amount: number;
3
4
  ccd_case_number: string;
@@ -10,5 +11,6 @@ export interface IRefundList {
10
11
  description: string;
11
12
  name: string;
12
13
  };
14
+ contact_details: IRefundContactDetails;
13
15
  user_full_name: string;
14
16
  }
@@ -0,0 +1,16 @@
1
+ export interface IRefundsNotifications {
2
+ contact_details: {
3
+ address_line: string;
4
+ city: string;
5
+ country: string;
6
+ county: string;
7
+ date_created: string;
8
+ date_updated: string;
9
+ email: string;
10
+ postal_code: string;
11
+ };
12
+ date_created: string;
13
+ date_updated: string;
14
+ notification_type: string;
15
+ reference: string;
16
+ }
@@ -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 @@ export declare class PaymentLibComponent implements OnInit {
9
9
  API_ROOT: string;
10
10
  BULKSCAN_API_ROOT: string;
11
11
  REFUNDS_API_ROOT: string;
12
+ NOTIFICATION_API_ROOT: string;
12
13
  CCD_CASE_NUMBER: string;
13
14
  EXC_REFERENCE: string;
14
15
  PAYMENT_METHOD: string;
@@ -2,6 +2,7 @@ export declare class PaymentLibService {
2
2
  API_ROOT: string;
3
3
  BULKSCAN_API_ROOT: string;
4
4
  REFUNDS_API_ROOT: string;
5
+ NOTIFICATION_API_ROOT: string;
5
6
  constructor();
6
7
  setApiRootUrl(apiRoot: string): void;
7
8
  getApiRootUrl(): string;
@@ -9,4 +10,6 @@ export declare class PaymentLibService {
9
10
  getBulkScanApiRootUrl(): string;
10
11
  setRefundndsApiRootUrl(refundsapiRoot: string): void;
11
12
  getRefundsApiRootUrl(): string;
13
+ setNoticationApiRootUrl(notificationapiRoot: string): void;
14
+ getNoticationApiRootUrl(): string;
12
15
  }
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ErrorHandlerService } from '../shared/error-handler.service';
3
+ import { WebComponentHttpClient } from '../shared/httpclient/webcomponent.http.client';
4
+ import { PaymentLibService } from '../../payment-lib.service';
5
+ import { Observable } from 'rxjs/Observable';
6
+ import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
7
+ export declare class NotificationService {
8
+ private http;
9
+ private https;
10
+ private errorHandlerService;
11
+ private paymentLibService;
12
+ constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
13
+ getRefundNotification(reference: string): Observable<IRefundsNotifications>;
14
+ getAddressByPostcode(postcode: string): Observable<any>;
15
+ }
@@ -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-beta138",
3
+ "version": "5.0.1-beta142",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },