@hmcts/ccpay-web-component 5.0.2-beta10 → 5.0.2-beta103

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 (64) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +777 -580
  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/lib/components/add-remission/add-remission.component.js +261 -203
  6. package/esm2015/lib/components/case-transactions/case-transactions.component.js +31 -18
  7. package/esm2015/lib/components/contact-details/contact-details.component.js +59 -18
  8. package/esm2015/lib/components/fee-summary/fee-summary.component.js +17 -12
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +133 -108
  10. package/esm2015/lib/components/process-refund/process-refund.component.js +5 -11
  11. package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
  12. package/esm2015/lib/components/refund-status/refund-status.component.js +67 -11
  13. package/esm2015/lib/components/service-request/service-request.component.js +207 -147
  14. package/esm2015/lib/components/table/table.component.js +3 -3
  15. package/esm2015/lib/interfaces/IFee.js +11 -1
  16. package/esm2015/lib/interfaces/IPayment.js +7 -1
  17. package/esm2015/lib/interfaces/IRefundFee.js +21 -0
  18. package/esm2015/lib/interfaces/IRefundList.js +3 -1
  19. package/esm2015/lib/interfaces/IRemission.js +5 -1
  20. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +10 -2
  21. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +9 -11
  22. package/esm2015/lib/payment-lib.component.js +2 -2
  23. package/esm2015/lib/services/refunds/refunds.service.js +2 -2
  24. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
  25. package/esm5/lib/components/add-remission/add-remission.component.js +266 -203
  26. package/esm5/lib/components/case-transactions/case-transactions.component.js +31 -18
  27. package/esm5/lib/components/contact-details/contact-details.component.js +59 -18
  28. package/esm5/lib/components/fee-summary/fee-summary.component.js +17 -12
  29. package/esm5/lib/components/payment-view/payment-view.component.js +145 -127
  30. package/esm5/lib/components/process-refund/process-refund.component.js +5 -14
  31. package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
  32. package/esm5/lib/components/refund-status/refund-status.component.js +75 -11
  33. package/esm5/lib/components/service-request/service-request.component.js +248 -179
  34. package/esm5/lib/components/table/table.component.js +3 -3
  35. package/esm5/lib/interfaces/IFee.js +11 -1
  36. package/esm5/lib/interfaces/IPayment.js +7 -1
  37. package/esm5/lib/interfaces/IRefundFee.js +21 -0
  38. package/esm5/lib/interfaces/IRefundList.js +3 -1
  39. package/esm5/lib/interfaces/IRemission.js +5 -1
  40. package/esm5/lib/interfaces/IResubmitRefundRequest.js +8 -2
  41. package/esm5/lib/interfaces/PostRefundRetroRemission.js +6 -7
  42. package/esm5/lib/payment-lib.component.js +2 -2
  43. package/esm5/lib/services/refunds/refunds.service.js +2 -2
  44. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
  45. package/fesm2015/hmcts-ccpay-web-component.js +738 -541
  46. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  47. package/fesm5/hmcts-ccpay-web-component.js +800 -591
  48. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  49. package/hmcts-ccpay-web-component.metadata.json +1 -1
  50. package/lib/components/add-remission/add-remission.component.d.ts +9 -2
  51. package/lib/components/case-transactions/case-transactions.component.d.ts +1 -1
  52. package/lib/components/contact-details/contact-details.component.d.ts +2 -0
  53. package/lib/components/payment-view/payment-view.component.d.ts +13 -7
  54. package/lib/components/process-refund/process-refund.component.d.ts +0 -1
  55. package/lib/components/refund-status/refund-status.component.d.ts +15 -3
  56. package/lib/components/service-request/service-request.component.d.ts +26 -9
  57. package/lib/interfaces/IFee.d.ts +5 -0
  58. package/lib/interfaces/IPayment.d.ts +3 -0
  59. package/lib/interfaces/IRefundFee.d.ts +7 -0
  60. package/lib/interfaces/IRefundList.d.ts +1 -0
  61. package/lib/interfaces/IRemission.d.ts +2 -0
  62. package/lib/interfaces/IResubmitRefundRequest.d.ts +5 -1
  63. package/lib/interfaces/PostRefundRetroRemission.d.ts +2 -2
  64. package/package.json +1 -1
@@ -37,7 +37,12 @@ export declare class AddRemissionComponent implements OnInit {
37
37
  isFromRefundListPage: boolean;
38
38
  isFromPaymentDetailPage: boolean;
39
39
  isFromServiceRequestPage: boolean;
40
+ isFullyRefund: boolean;
40
41
  feeamount: number;
42
+ refundPaymentReference: string;
43
+ isFromRefundStatusPage: boolean;
44
+ changeRefundReason: string;
45
+ isServiceRequest: string;
41
46
  LOGGEDINUSERROLES: string[];
42
47
  orderDetail: any[];
43
48
  orderRef: string;
@@ -55,6 +60,7 @@ export declare class AddRemissionComponent implements OnInit {
55
60
  code: string;
56
61
  }>;
57
62
  refundListAmount: EventEmitter<string>;
63
+ refundFees: EventEmitter<IFee[]>;
58
64
  refund: {
59
65
  reason: {
60
66
  duplicate: string;
@@ -139,6 +145,7 @@ export declare class AddRemissionComponent implements OnInit {
139
145
  };
140
146
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
141
147
  ngOnInit(): void;
148
+ goToPaymentViewComponent(): void;
142
149
  refundFeesList(): void;
143
150
  readonly feesList: FormArray;
144
151
  noneSelected(): boolean;
@@ -156,13 +163,13 @@ export declare class AddRemissionComponent implements OnInit {
156
163
  processRefund(): void;
157
164
  gotoIssueRefundConfirmation(payment: IPayment): void;
158
165
  gotoIssueRefundPage(): void;
159
- gotoIssuePage(): void;
166
+ gotoIssuePage(isFullyRefund: any): void;
160
167
  calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
161
168
  gotoContactDetailsPage(note?: IRefundContactDetails): void;
162
169
  getRefundReasons(): void;
163
170
  getErrorClass(elementId: any): void;
164
171
  changeIssueRefundReason(): void;
165
- confirmIssueRefund(): void;
172
+ confirmIssueRefund(isFullyRefund: any): void;
166
173
  gotoRefundReasonPage(): void;
167
174
  selectRadioButton(key: any, value: any): void;
168
175
  selectchange(args: any): void;
@@ -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;
@@ -29,6 +29,9 @@ export declare class PaymentViewComponent implements OnInit {
29
29
  orderFeesTotal: number;
30
30
  orderRemissionTotal: number;
31
31
  orderDetail: any[];
32
+ fees: any;
33
+ isFullyRefund: boolean;
34
+ isServiceRequest: string;
32
35
  paymentGroup: IPaymentGroup;
33
36
  errorMessage: string;
34
37
  ccdCaseNumber: string;
@@ -55,28 +58,31 @@ export declare class PaymentViewComponent implements OnInit {
55
58
  viewCompStatus: string;
56
59
  contactDetailsObj: IRefundContactDetails;
57
60
  notification: any;
61
+ isConfirmationBtnDisabled: boolean;
62
+ refundReference: string;
63
+ refundAmount: string;
58
64
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
59
65
  ngAfterContentChecked(): void;
60
66
  ngOnInit(): void;
61
67
  readonly isCardPayment: boolean;
62
68
  readonly isTelephonyPayment: boolean;
63
69
  goToPaymentList(): void;
70
+ getOverPaymentValue(): number;
71
+ goToServiceRequestPage(): void;
64
72
  goToCaseTransationPage(event: any): void;
65
73
  addRemission(fee: IFee): void;
66
74
  checkForFees(paymentGroup: any): boolean;
67
75
  processRefund(): void;
68
76
  gotoAddressPage(note?: IRefundContactDetails): void;
69
77
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
70
- chkIsRefundRemissionBtnEnable(): boolean;
78
+ goToPaymentViewComponent(): void;
71
79
  issueRefund(paymentgrp: IPaymentGroup): void;
72
80
  getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
73
- chkIssueRefundBtnEnable(payment: IPayment): boolean;
74
- chkForPBAPayment(): boolean;
75
- chkForAddRemission(feeCode: string, feeId: number): boolean;
76
- check4AllowedRoles2AccessRefund: () => boolean;
77
- allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
81
+ chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
82
+ chkIsAddRefundBtnEnable(remission: IRemission): boolean;
83
+ chkIsAddRemissionBtnEnable(fee: IFee): boolean;
78
84
  selectPymentOption(paymentType: string): void;
79
- continuePayment(): void;
85
+ continuePayment(paymentgrp: IPaymentGroup): void;
80
86
  gotoPaymentSelectPage(event: Event): void;
81
87
  getContactDetails(obj: IRefundContactDetails): void;
82
88
  resetOrderData(): void;
@@ -60,5 +60,4 @@ export declare class ProcessRefundComponent implements OnInit {
60
60
  loadRefundsHomePage(): void;
61
61
  redirecttoRefundListPage(): void;
62
62
  resetForm(vals: any, field: any): void;
63
- goToCaseReview(): void;
64
63
  }
@@ -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: IRefundsNotifications;
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;
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
1
+ import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
2
2
  import { PaymentLibComponent } from '../../payment-lib.component';
3
3
  import { IPayment } from '../../interfaces/IPayment';
4
4
  import { IRemission } from '../../interfaces/IRemission';
@@ -9,10 +9,12 @@ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
9
9
  import { Router } from '@angular/router';
10
10
  import { PaymentViewService } from '../../services/payment-view/payment-view.service';
11
11
  import { OrderslistService } from '../../services/orderslist.service';
12
+ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
12
13
  export declare class ServiceRequestComponent implements OnInit {
13
14
  private paymentLibComponent;
14
15
  private paymentViewService;
15
16
  private OrderslistService;
17
+ private cd;
16
18
  private router;
17
19
  LOGGEDINUSERROLES: string[];
18
20
  viewStatus: string;
@@ -29,14 +31,16 @@ export declare class ServiceRequestComponent implements OnInit {
29
31
  ccdCaseNumber: boolean;
30
32
  isServiceRequest: string;
31
33
  goToServiceRquestComponent: EventEmitter<any>;
34
+ viewCompStatus: any;
32
35
  servicerequest: string;
36
+ paymentType: string;
33
37
  excReference: string;
34
38
  paymentGroups: any[];
35
39
  payments: IPayment[];
36
40
  nonPayments: IPayment[];
37
41
  allPayments: IPayment[];
38
42
  remissions: IRemission[];
39
- fees: IFee[];
43
+ fees: any;
40
44
  errorMessage: string;
41
45
  totalFees: number;
42
46
  totalPayments: number;
@@ -66,6 +70,9 @@ export declare class ServiceRequestComponent implements OnInit {
66
70
  isGrpOutstandingAmtPositive: boolean;
67
71
  totalRefundAmount: Number;
68
72
  caseType: String;
73
+ isConfirmationBtnDisabled: boolean;
74
+ refundReference: string;
75
+ refundAmount: string;
69
76
  payment: IPayment;
70
77
  paymentGroup: IPaymentGroup;
71
78
  paymentView: IPaymentView;
@@ -75,6 +82,9 @@ export declare class ServiceRequestComponent implements OnInit {
75
82
  cpoDetails: any;
76
83
  serviceRequestValue: string;
77
84
  orderAddBtnEnable: boolean;
85
+ isFromPaymentDetailPage: boolean;
86
+ contactDetailsObj: IRefundContactDetails;
87
+ notification: any;
78
88
  isCPODown: boolean;
79
89
  test: boolean;
80
90
  isPBA: boolean;
@@ -85,22 +95,29 @@ export declare class ServiceRequestComponent implements OnInit {
85
95
  isFromServiceRequestPage: boolean;
86
96
  navigationpage: string;
87
97
  remissionFeeAmt: number;
88
- constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
98
+ isContinueBtnDisabled: boolean;
99
+ isFullyRefund: boolean;
100
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, cd: ChangeDetectorRef, router: Router);
89
101
  ngOnInit(): void;
90
102
  goToServiceRequestPage(): void;
91
103
  goToCaseTransationPage(event: any): void;
92
- chkForAddRemission(feeCode: string, feeId: number): boolean;
93
- chkForPBAPayment(): boolean;
94
104
  addRemission(fee: IFee): void;
95
105
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
96
106
  cancelRemoval(): void;
97
107
  removeFee(fee: any): void;
98
- chkIssueRefundBtnEnable(payment: IPayment): boolean;
99
- chkIsRefundRemissionBtnEnable(): boolean;
100
- check4AllowedRoles2AccessRefund: () => boolean;
101
- allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
102
108
  issueRefund(payment: IPayment): void;
103
109
  goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
104
110
  goToPaymentViewComponent(paymentGroup: any): void;
111
+ chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
112
+ chkIsAddRefundBtnEnable(remission: IRemission): boolean;
113
+ chkIsAddRemissionBtnEnable(fee: IFee): boolean;
105
114
  resetOrderData(): void;
115
+ selectPymentOption(paymentType: string): void;
116
+ goToPaymentViewComp(): void;
117
+ continuePayment(paymentgrp: IPaymentGroup): void;
118
+ getContactDetails(obj: IRefundContactDetails): void;
119
+ gotoPaymentSelectPage(event: Event): void;
120
+ gotoAddressPage(note?: IRefundContactDetails): void;
121
+ processRefund(): void;
122
+ getOverPaymentValue(): number;
106
123
  }
@@ -20,5 +20,10 @@ export interface IFee {
20
20
  date_updated?: string;
21
21
  amount_due?: number;
22
22
  remission_enable?: boolean;
23
+ add_remission?: boolean;
23
24
  over_payment?: number;
25
+ refund_amount?: number;
26
+ updated_volume?: number;
27
+ selected?: any;
28
+ issue_refund_add_refund_add_remission: boolean;
24
29
  }
@@ -29,4 +29,7 @@ export interface IPayment {
29
29
  payment_group_reference: string;
30
30
  paymentGroupReference?: string;
31
31
  refund_enable?: boolean;
32
+ over_payment?: number;
33
+ issue_refund_add_refund_add_remission: boolean;
34
+ issue_refund: boolean;
32
35
  }
@@ -0,0 +1,7 @@
1
+ export interface IRefundFee {
2
+ fee_id: number;
3
+ code: string;
4
+ version: string;
5
+ volume: number;
6
+ refund_amount: number;
7
+ }
@@ -14,4 +14,5 @@ export interface IRefundList {
14
14
  contact_details: IRefundContactDetails;
15
15
  user_full_name: string;
16
16
  service_type: string;
17
+ code: string;
17
18
  }
@@ -7,4 +7,6 @@ export interface IRemission {
7
7
  fee_code: string;
8
8
  date_created: string;
9
9
  fee_id: number;
10
+ issue_refund_add_refund_add_remission: boolean;
11
+ add_refund: boolean;
10
12
  }
@@ -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
- constructor(refund_reason: string, amount: number);
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
- refund_amount: any;
6
+ total_refund_amount: any;
7
7
  fees: any[];
8
8
  contact_details: IRefundContactDetails;
9
- constructor(ccd_case_number: string, payment_reference: string, refund_reason: string, refund_amount: any, fees: any[], contact_details: any);
9
+ constructor(contact_details: any, fees: any[], payment_reference: string, refund_reason: string, total_refund_amount: any);
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.2-beta10",
3
+ "version": "5.0.2-beta103",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },