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

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 +83 -761
  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 +31 -33
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +8 -80
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +2 -2
  8. package/esm2015/lib/components/process-refund/process-refund.component.js +3 -31
  9. package/esm2015/lib/components/refund-status/refund-status.component.js +27 -149
  10. package/esm2015/lib/interfaces/IRefundList.js +1 -3
  11. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +2 -6
  12. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -6
  13. package/esm2015/lib/payment-lib.component.js +1 -5
  14. package/esm2015/lib/payment-lib.module.js +1 -3
  15. package/esm2015/lib/payment-lib.service.js +1 -16
  16. package/esm2015/lib/services/refunds/refunds.service.js +16 -12
  17. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  18. package/esm5/hmcts-ccpay-web-component.js +31 -33
  19. package/esm5/lib/components/add-remission/add-remission.component.js +8 -103
  20. package/esm5/lib/components/case-transactions/case-transactions.component.js +2 -2
  21. package/esm5/lib/components/process-refund/process-refund.component.js +3 -30
  22. package/esm5/lib/components/refund-status/refund-status.component.js +25 -177
  23. package/esm5/lib/interfaces/IRefundList.js +1 -3
  24. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +2 -5
  25. package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -5
  26. package/esm5/lib/payment-lib.component.js +1 -5
  27. package/esm5/lib/payment-lib.module.js +1 -3
  28. package/esm5/lib/payment-lib.service.js +1 -23
  29. package/esm5/lib/services/refunds/refunds.service.js +16 -18
  30. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  31. package/fesm2015/hmcts-ccpay-web-component.js +60 -651
  32. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  33. package/fesm5/hmcts-ccpay-web-component.js +58 -736
  34. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  35. package/hmcts-ccpay-web-component.d.ts +30 -32
  36. package/hmcts-ccpay-web-component.metadata.json +1 -1
  37. package/lib/components/add-remission/add-remission.component.d.ts +0 -9
  38. package/lib/components/process-refund/process-refund.component.d.ts +1 -5
  39. package/lib/components/refund-status/refund-status.component.d.ts +5 -20
  40. package/lib/interfaces/IRefundList.d.ts +0 -2
  41. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -3
  42. package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -3
  43. package/lib/payment-lib.component.d.ts +0 -1
  44. package/lib/payment-lib.service.d.ts +0 -3
  45. package/lib/services/refunds/refunds.service.d.ts +0 -2
  46. package/package.json +1 -1
  47. package/esm2015/lib/components/contact-details/contact-details.component.js +0 -399
  48. package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -25
  49. package/esm2015/lib/interfaces/IRefundContactDetails.js +0 -25
  50. package/esm2015/lib/interfaces/IRefundsNotifications.js +0 -21
  51. package/esm2015/lib/services/notification/notification.service.js +0 -85
  52. package/esm5/lib/components/contact-details/contact-details.component.js +0 -424
  53. package/esm5/lib/interfaces/IPutNotificationRequest.js +0 -23
  54. package/esm5/lib/interfaces/IRefundContactDetails.js +0 -25
  55. package/esm5/lib/interfaces/IRefundsNotifications.js +0 -21
  56. package/esm5/lib/services/notification/notification.service.js +0 -89
  57. package/lib/components/contact-details/contact-details.component.d.ts +0 -46
  58. package/lib/interfaces/IPutNotificationRequest.d.ts +0 -6
  59. package/lib/interfaces/IRefundContactDetails.d.ts +0 -9
  60. package/lib/interfaces/IRefundsNotifications.d.ts +0 -16
  61. package/lib/services/notification/notification.service.d.ts +0 -15
@@ -7,7 +7,6 @@ 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';
11
10
  import { ChangeDetectorRef } from '@angular/core';
12
11
  import { IRemission } from '../../interfaces/IRemission';
13
12
  import { OrderslistService } from '../../services/orderslist.service';
@@ -61,8 +60,6 @@ export declare class AddRemissionComponent implements OnInit {
61
60
  other: string;
62
61
  };
63
62
  };
64
- contactDetailsObj: IRefundContactDetails;
65
- notification: any;
66
63
  remissionForm: FormGroup;
67
64
  hasErrors: boolean;
68
65
  viewStatus: string;
@@ -129,23 +126,17 @@ export declare class AddRemissionComponent implements OnInit {
129
126
  addRemissionCode(): void;
130
127
  gotoAddRetroRemissionCodePage(): void;
131
128
  gotoCheckRetroRemissionPage(payment: IPayment): void;
132
- gotoAmountRetroRemission(): void;
133
129
  gotoProcessRetroRemissionPage(): void;
134
- gotoProcessRetroRemission(note?: IRefundContactDetails): void;
135
130
  confirmRetroRemission(): void;
136
131
  processRefund(): void;
137
132
  gotoIssueRefundConfirmation(payment: IPayment): void;
138
133
  gotoIssueRefundPage(): void;
139
- gotoContactDetailsPage(note?: IRefundContactDetails): void;
140
134
  changeIssueRefundReason(): void;
141
135
  confirmIssueRefund(): void;
142
136
  confirmRetroRefund(): void;
143
137
  selectRadioButton(key: any, value: any): void;
144
138
  selectchange(args: any): void;
145
- getContactDetails(obj: IRefundContactDetails, type: any): void;
146
139
  gotoServiceRequestPage(event: any): void;
147
- gotoAddressPage(): void;
148
- gotoRemissionSuccess(event: Event): void;
149
140
  gotoCasetransationPage(): void;
150
141
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
151
142
  resetOrderData(): void;
@@ -5,12 +5,10 @@ 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';
9
8
  import { PaymentLibComponent } from '../../payment-lib.component';
10
9
  import { ActivatedRoute, Router } from '@angular/router';
11
10
  export declare class ProcessRefundComponent implements OnInit {
12
11
  private RefundsService;
13
- private paymentViewService;
14
12
  private formBuilder;
15
13
  private OrderslistService;
16
14
  private paymentLibComponent;
@@ -43,11 +41,9 @@ export declare class ProcessRefundComponent implements OnInit {
43
41
  successMsg: string;
44
42
  navigationpage: string;
45
43
  ccdCaseNumber: string;
46
- cpoDetails: any;
47
- isCPODown: boolean;
48
44
  isFromRefundListPage: boolean;
49
45
  isConfirmButtondisabled: boolean;
50
- constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
46
+ constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
51
47
  ngOnInit(): void;
52
48
  checkRefundActions(code: string): void;
53
49
  processRefundSubmit(): void;
@@ -1,30 +1,27 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { RefundsService } from '../../services/refunds/refunds.service';
3
- import { NotificationService } from '../../services/notification/notification.service';
4
3
  import { FormBuilder, FormGroup } from '@angular/forms';
5
4
  import { IRefundList } from '../../interfaces/IRefundList';
6
- import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
5
+ import { PaymentViewService } from '../../services/payment-view/payment-view.service';
6
+ import { Router } from '@angular/router';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
- import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
9
8
  import { IRefundStatus } from '../../interfaces/IRefundStatus';
10
9
  import { PaymentLibComponent } from '../../payment-lib.component';
11
10
  export declare class RefundStatusComponent implements OnInit {
12
11
  private formBuilder;
13
12
  private refundService;
14
- private notificationService;
15
13
  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;
23
22
  refundStatusForm: FormGroup;
24
23
  selectedRefundReason: string;
25
24
  rejectedRefundList: IRefundList[];
26
- notificationList: IRefundsNotifications;
27
- notification: any;
28
25
  approvalStatus: string;
29
26
  rejectStatus: string;
30
27
  errorMessage: any;
@@ -41,11 +38,6 @@ export declare class RefundStatusComponent implements OnInit {
41
38
  refundHasError: boolean;
42
39
  refundReasons: any[];
43
40
  refundStatusHistories: IRefundStatus[];
44
- refundNotifications: IRefundStatus[];
45
- isResendOperationSuccess: boolean;
46
- isEditDetailsClicked: boolean;
47
- isEditAddressDeatilsClicked: boolean;
48
- addressDetails: IRefundContactDetails;
49
41
  refundReference: string;
50
42
  refundAmount: string;
51
43
  refundCode: string;
@@ -57,11 +49,10 @@ export declare class RefundStatusComponent implements OnInit {
57
49
  isProcessRefund: boolean;
58
50
  changedAmount: number;
59
51
  allowedRolesToAccessRefund: string[];
60
- constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
52
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
61
53
  ngOnInit(): void;
62
54
  check4AllowedRoles2AccessRefund: () => boolean;
63
55
  getRefundsStatusHistoryList(): void;
64
- getRefundsNotification(): void;
65
56
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
66
57
  loadCaseTransactionPage(): void;
67
58
  loadRefundListPage(): void;
@@ -75,11 +66,5 @@ export declare class RefundStatusComponent implements OnInit {
75
66
  getRefundListReason(refundListReason: any): void;
76
67
  getRefundAmount(amount: number): void;
77
68
  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;
84
69
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
85
70
  }
@@ -1,4 +1,3 @@
1
- import { IRefundContactDetails } from './IRefundContactDetails';
2
1
  export interface IRefundList {
3
2
  amount: number;
4
3
  ccd_case_number: string;
@@ -11,6 +10,5 @@ export interface IRefundList {
11
10
  description: string;
12
11
  name: string;
13
12
  };
14
- contact_details: IRefundContactDetails;
15
13
  user_full_name: string;
16
14
  }
@@ -1,6 +1,4 @@
1
- import { IRefundContactDetails } from './IRefundContactDetails';
2
1
  export declare class PostIssueRefundRetroRemission {
3
2
  remissionReference: string;
4
- contact_details: IRefundContactDetails;
5
- constructor(remissionReference: string, contactDeatils: any);
3
+ constructor(remissionReference: string);
6
4
  }
@@ -1,7 +1,5 @@
1
- import { IRefundContactDetails } from './IRefundContactDetails';
2
1
  export declare class PostRefundRetroRemission {
3
2
  payment_reference: string;
4
3
  refund_reason: string;
5
- contact_details: IRefundContactDetails;
6
- constructor(payment_reference: string, refund_reason: string, contactDeatils: any);
4
+ constructor(payment_reference: string, refund_reason: string);
7
5
  }
@@ -9,7 +9,6 @@ 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;
13
12
  CCD_CASE_NUMBER: string;
14
13
  EXC_REFERENCE: string;
15
14
  PAYMENT_METHOD: string;
@@ -2,7 +2,6 @@ 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;
6
5
  constructor();
7
6
  setApiRootUrl(apiRoot: string): void;
8
7
  getApiRootUrl(): string;
@@ -10,6 +9,4 @@ export declare class PaymentLibService {
10
9
  getBulkScanApiRootUrl(): string;
11
10
  setRefundndsApiRootUrl(refundsapiRoot: string): void;
12
11
  getRefundsApiRootUrl(): string;
13
- setNoticationApiRootUrl(notificationapiRoot: string): void;
14
- getNoticationApiRootUrl(): string;
15
12
  }
@@ -9,7 +9,6 @@ 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';
13
12
  export declare class RefundsService {
14
13
  private http;
15
14
  private https;
@@ -26,7 +25,6 @@ export declare class RefundsService {
26
25
  getRefundStatusList(ccdCaseNumber: string): Observable<IRefundList[]>;
27
26
  getUserDetails(): Observable<any>;
28
27
  postIssueRefund(body: IssueRefundRequest): Observable<any>;
29
- putResendOrEdit(body: IPutNotificationRequest, refundRef: string, notificationType: string): Observable<any>;
30
28
  patchResubmitRefund(body: IResubmitRefundRequest, refund_reference: string): Observable<any>;
31
29
  addHeaders(options: any): any;
32
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.1-beta132",
3
+ "version": "5.0.1-beta138",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },