@hmcts/ccpay-web-component 6.3.0-beta1 → 6.3.0-beta4

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 (55) hide show
  1. package/esm2022/lib/components/add-remission/add-remission.component.mjs +57 -8
  2. package/esm2022/lib/components/allocate-payments/allocate-payments.component.mjs +22 -6
  3. package/esm2022/lib/components/card-details/card-details.component.mjs +4 -4
  4. package/esm2022/lib/components/case-transactions/case-transactions.component.mjs +4 -4
  5. package/esm2022/lib/components/contact-details/contact-details.component.mjs +4 -4
  6. package/esm2022/lib/components/error-banner/error-banner.component.mjs +4 -4
  7. package/esm2022/lib/components/fee-summary/fee-summary.component.mjs +4 -4
  8. package/esm2022/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.mjs +4 -4
  9. package/esm2022/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.mjs +4 -4
  10. package/esm2022/lib/components/notification-preview/notification-preview.component.mjs +4 -4
  11. package/esm2022/lib/components/page-not-found.component.mjs +4 -4
  12. package/esm2022/lib/components/payment-list/payment-list.component.mjs +4 -4
  13. package/esm2022/lib/components/payment-view/payment-view.component.mjs +5 -4
  14. package/esm2022/lib/components/pba-details/pba-details.component.mjs +4 -4
  15. package/esm2022/lib/components/pba-payment/pba-payment.component.mjs +5 -5
  16. package/esm2022/lib/components/process-refund/process-refund.component.mjs +5 -5
  17. package/esm2022/lib/components/processed-payments/processed-payments.component.mjs +4 -4
  18. package/esm2022/lib/components/refund-list/refund-list.component.mjs +4 -4
  19. package/esm2022/lib/components/refund-status/refund-status.component.mjs +5 -5
  20. package/esm2022/lib/components/reports/reports.component.mjs +4 -4
  21. package/esm2022/lib/components/service-request/service-request.component.mjs +6 -4
  22. package/esm2022/lib/components/status-history/status-history.component.mjs +4 -4
  23. package/esm2022/lib/components/table/table.component.mjs +4 -4
  24. package/esm2022/lib/components/unprocessed-payments/unprocessed-payments.component.mjs +4 -4
  25. package/esm2022/lib/interfaces/NotificationPreviewRequest.mjs +4 -3
  26. package/esm2022/lib/payment-lib.component.mjs +5 -5
  27. package/esm2022/lib/payment-lib.module.mjs +35 -42
  28. package/esm2022/lib/payment-lib.service.mjs +4 -4
  29. package/esm2022/lib/pipes/capitalize.pipe.mjs +4 -4
  30. package/esm2022/lib/pipes/ccd-hyphens.pipe.mjs +4 -4
  31. package/esm2022/lib/pipes/key-value.pipe.mjs +4 -4
  32. package/esm2022/lib/pipes/sanitize-html.pipe.mjs +4 -4
  33. package/esm2022/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.mjs +4 -4
  34. package/esm2022/lib/services/card-details/card-details.service.mjs +4 -4
  35. package/esm2022/lib/services/case-transactions/case-transactions.service.mjs +4 -4
  36. package/esm2022/lib/services/notification/notification.service.mjs +4 -4
  37. package/esm2022/lib/services/orderslist.service.mjs +4 -4
  38. package/esm2022/lib/services/payment-list/payment-list.service.mjs +4 -4
  39. package/esm2022/lib/services/payment-view/payment-view.service.mjs +4 -4
  40. package/esm2022/lib/services/refunds/refunds.service.mjs +4 -4
  41. package/esm2022/lib/services/shared/error-handler.service.mjs +4 -4
  42. package/esm2022/lib/services/shared/httpclient/webcomponent.http.client.mjs +4 -4
  43. package/esm2022/lib/services/shared/logger/console-logger.service.mjs +4 -4
  44. package/esm2022/lib/services/shared/logger/logger.service.mjs +4 -4
  45. package/esm2022/lib/services/status-history/status-history.service.mjs +4 -4
  46. package/esm2022/lib/services/xl-file/xl-file.service.mjs +4 -4
  47. package/fesm2022/hmcts-ccpay-web-component.mjs +247 -185
  48. package/fesm2022/hmcts-ccpay-web-component.mjs.map +1 -1
  49. package/lib/components/add-remission/add-remission.component.d.ts +8 -1
  50. package/lib/components/allocate-payments/allocate-payments.component.d.ts +6 -2
  51. package/lib/components/case-transactions/case-transactions.component.d.ts +1 -1
  52. package/lib/components/fee-summary/fee-summary.component.d.ts +1 -1
  53. package/lib/interfaces/NotificationPreviewRequest.d.ts +1 -0
  54. package/lib/payment-lib.module.d.ts +19 -20
  55. package/package.json +3 -3
@@ -152,8 +152,9 @@ export declare class AddRemissionComponent implements OnInit {
152
152
  ngOnInit(): void;
153
153
  goToPaymentViewComponent(): void;
154
154
  refundFeesList(): void;
155
- get feesList(): FormArray<any>;
155
+ get feesList(): FormArray;
156
156
  noneSelected(): boolean;
157
+ calculateRefundAmount(index: any, AppAmt: any): any;
157
158
  check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
158
159
  addRemission(): void;
159
160
  confirmRemission(): void;
@@ -195,6 +196,12 @@ export declare class AddRemissionComponent implements OnInit {
195
196
  getRefundAmountToBeDisplayed(remission: IRemission): string;
196
197
  getRefundAmountToBeDisplayedForContinueJourney(): string;
197
198
  getRemissionAmountToBeDisplayed(remission: IRemission): string;
199
+ isRemissionEnabled(feeCode: string): boolean;
200
+ isRemissionEnabledForFeeCode(feeCode: string): boolean;
201
+ getRemissions(feeCode: string): IRemission;
202
+ getRemissionsHwfAmount(feeCode: string): string;
203
+ getNetAmountFee(hwfAmount: number, feeAmount: number): number;
204
+ getRemissionValueForFullyRefund(): number;
198
205
  static ɵfac: i0.ɵɵFactoryDeclaration<AddRemissionComponent, never>;
199
206
  static ɵcmp: i0.ɵɵComponentDeclaration<AddRemissionComponent, "ccpay-add-remission", never, { "fee": { "alias": "fee"; "required": false; }; "fees": { "alias": "fees"; "required": false; }; "payment": { "alias": "payment"; "required": false; }; "remission": { "alias": "remission"; "required": false; }; "ccdCaseNumber": { "alias": "ccdCaseNumber"; "required": false; }; "caseType": { "alias": "caseType"; "required": false; }; "viewCompStatus": { "alias": "viewCompStatus"; "required": false; }; "paymentGroupRef": { "alias": "paymentGroupRef"; "required": false; }; "isTurnOff": { "alias": "isTurnOff"; "required": false; }; "isRefundRemission": { "alias": "isRefundRemission"; "required": false; }; "isStrategicFixEnable": { "alias": "isStrategicFixEnable"; "required": false; }; "paidAmount": { "alias": "paidAmount"; "required": false; }; "isFromRefundListPage": { "alias": "isFromRefundListPage"; "required": false; }; "isFromPaymentDetailPage": { "alias": "isFromPaymentDetailPage"; "required": false; }; "isFromServiceRequestPage": { "alias": "isFromServiceRequestPage"; "required": false; }; "isFullyRefund": { "alias": "isFullyRefund"; "required": false; }; "feeamount": { "alias": "feeamount"; "required": false; }; "refundPaymentReference": { "alias": "refundPaymentReference"; "required": false; }; "isFromRefundStatusPage": { "alias": "isFromRefundStatusPage"; "required": false; }; "changeRefundReason": { "alias": "changeRefundReason"; "required": false; }; "isServiceRequest": { "alias": "isServiceRequest"; "required": false; }; "LOGGEDINUSERROLES": { "alias": "LOGGEDINUSERROLES"; "required": false; }; "orderDetail": { "alias": "orderDetail"; "required": false; }; "orderRef": { "alias": "orderRef"; "required": false; }; "orderStatus": { "alias": "orderStatus"; "required": false; }; "orderParty": { "alias": "orderParty"; "required": false; }; "orderCreated": { "alias": "orderCreated"; "required": false; }; "orderCCDEvent": { "alias": "orderCCDEvent"; "required": false; }; "takePayment": { "alias": "takepayment"; "required": false; }; "orderFeesTotal": { "alias": "orderFeesTotal"; "required": false; }; "orderTotalPayments": { "alias": "orderTotalPayments"; "required": false; }; "orderRemissionTotal": { "alias": "orderRemissionTotal"; "required": false; }; }, { "cancelRemission": "cancelRemission"; "refundListReason": "refundListReason"; "refundListAmount": "refundListAmount"; "refundFees": "refundFees"; }, never, never, true, never>;
200
207
  }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import type { PaymentLibComponent } from '../../payment-lib.component';
4
4
  import { PaymentViewService } from '../../services/payment-view/payment-view.service';
@@ -21,6 +21,8 @@ export declare class AllocatePaymentsComponent implements OnInit {
21
21
  private OrderslistService;
22
22
  isTurnOff: boolean;
23
23
  caseType: string;
24
+ reasonEventEmitter: EventEmitter<string>;
25
+ explanationEventEmitter: EventEmitter<string>;
24
26
  overUnderPaymentForm: FormGroup;
25
27
  viewStatus: string;
26
28
  ccdCaseNumber: string;
@@ -92,6 +94,8 @@ export declare class AllocatePaymentsComponent implements OnInit {
92
94
  constructor(errorHandlerService: ErrorHandlerService, caseTransactionsService: CaseTransactionsService, formBuilder: FormBuilder, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibAlias, bulkScaningPaymentService: BulkScaningPaymentService, OrderslistService: OrderslistService);
93
95
  ngOnInit(): void;
94
96
  getGroupOutstandingAmount(paymentGroup: IPaymentGroup): number;
97
+ getExplanationValue(inputValue: string): void;
98
+ getReasonValue(inputValue: string): void;
95
99
  getPaymentGroupDetails(): void;
96
100
  selectedPaymentGroup(paymentGroup: IPaymentGroup): void;
97
101
  gotoCasetransationPage(): void;
@@ -106,6 +110,6 @@ export declare class AllocatePaymentsComponent implements OnInit {
106
110
  OrderListSelectEvent(orderef: any): void;
107
111
  redirectToOrderFeeSearchPage(): void;
108
112
  static ɵfac: i0.ɵɵFactoryDeclaration<AllocatePaymentsComponent, never>;
109
- static ɵcmp: i0.ɵɵComponentDeclaration<AllocatePaymentsComponent, "app-allocate-payments", never, { "isTurnOff": { "alias": "isTurnOff"; "required": false; }; "caseType": { "alias": "caseType"; "required": false; }; }, {}, never, never, false, never>;
113
+ static ɵcmp: i0.ɵɵComponentDeclaration<AllocatePaymentsComponent, "app-allocate-payments", never, { "isTurnOff": { "alias": "isTurnOff"; "required": false; }; "caseType": { "alias": "caseType"; "required": false; }; }, { "reasonEventEmitter": "reasonEventEmitter"; "explanationEventEmitter": "explanationEventEmitter"; }, never, never, false, never>;
110
114
  }
111
115
  export {};
@@ -125,7 +125,7 @@ export declare class CaseTransactionsComponent implements OnInit {
125
125
  confirmRemoveFee(fee: IFee): void;
126
126
  cancelRemoval(): void;
127
127
  removeFee(fee: any): void;
128
- isCheckAmountdueExist(amountDue: any): boolean;
128
+ isCheckAmountdueExist(amountDue: any): amountDue is undefined;
129
129
  issueRefund(payment: IPayment): void;
130
130
  chkForAddRemission(feeCode: string): boolean;
131
131
  chkForPBAPayment(): boolean;
@@ -56,7 +56,7 @@ export declare class FeeSummaryComponent implements OnInit {
56
56
  redirectToFeeSearchPage(event: any, page?: string): void;
57
57
  takePayment(): void;
58
58
  goToAllocatePage(outStandingAmount: number, isFeeAmountZero: Boolean): void;
59
- isCheckAmountdueExist(amountDue: any): boolean;
59
+ isCheckAmountdueExist(amountDue: any): amountDue is undefined;
60
60
  static ɵfac: i0.ɵɵFactoryDeclaration<FeeSummaryComponent, never>;
61
61
  static ɵcmp: i0.ɵɵComponentDeclaration<FeeSummaryComponent, "ccpay-fee-summary", never, { "paymentGroupRef": { "alias": "paymentGroupRef"; "required": false; }; "ccdCaseNumber": { "alias": "ccdCaseNumber"; "required": false; }; "isTurnOff": { "alias": "isTurnOff"; "required": false; }; "caseType": { "alias": "caseType"; "required": false; }; }, {}, never, never, false, never>;
62
62
  }
@@ -10,6 +10,7 @@ export declare class NotificationPreviewRequest {
10
10
  refund_amount?: number;
11
11
  refund_reason?: string;
12
12
  refund_reference?: string;
13
+ customer_reference?: string;
13
14
  };
14
15
  recipient_email_address?: string;
15
16
  recipient_postal_address?: {
@@ -17,27 +17,26 @@ import * as i15 from "./components/reports/reports.component";
17
17
  import * as i16 from "./components/error-banner/error-banner.component";
18
18
  import * as i17 from "./components/table/table.component";
19
19
  import * as i18 from "@angular/common";
20
- import * as i19 from "@angular/common/http";
21
- import * as i20 from "@angular/forms";
22
- import * as i21 from "@angular/material/table";
23
- import * as i22 from "@angular/material/paginator";
24
- import * as i23 from "@angular/material/sort";
25
- import * as i24 from "@angular/material/form-field";
26
- import * as i25 from "@angular/material/input";
27
- import * as i26 from "./pipes/ccd-hyphens.pipe";
28
- import * as i27 from "./pipes/capitalize.pipe";
29
- import * as i28 from "./components/payment-view/payment-view.component";
30
- import * as i29 from "./components/contact-details/contact-details.component";
31
- import * as i30 from "./components/add-remission/add-remission.component";
32
- import * as i31 from "./components/service-request/service-request.component";
33
- import * as i32 from "./components/notification-preview/notification-preview.component";
34
- import * as i33 from "./components/case-transactions/case-transactions.component";
35
- import * as i34 from "./components/unprocessed-payments/unprocessed-payments.component";
36
- import * as i35 from "./components/refund-status/refund-status.component";
37
- import * as i36 from "./components/pba-payment/pba-payment.component";
38
- import * as i37 from "rpx-xui-translation";
20
+ import * as i19 from "@angular/forms";
21
+ import * as i20 from "@angular/material/table";
22
+ import * as i21 from "@angular/material/paginator";
23
+ import * as i22 from "@angular/material/sort";
24
+ import * as i23 from "@angular/material/form-field";
25
+ import * as i24 from "@angular/material/input";
26
+ import * as i25 from "./pipes/ccd-hyphens.pipe";
27
+ import * as i26 from "./pipes/capitalize.pipe";
28
+ import * as i27 from "./components/payment-view/payment-view.component";
29
+ import * as i28 from "./components/contact-details/contact-details.component";
30
+ import * as i29 from "./components/add-remission/add-remission.component";
31
+ import * as i30 from "./components/service-request/service-request.component";
32
+ import * as i31 from "./components/notification-preview/notification-preview.component";
33
+ import * as i32 from "./components/case-transactions/case-transactions.component";
34
+ import * as i33 from "./components/unprocessed-payments/unprocessed-payments.component";
35
+ import * as i34 from "./components/refund-status/refund-status.component";
36
+ import * as i35 from "./components/pba-payment/pba-payment.component";
37
+ import * as i36 from "rpx-xui-translation";
39
38
  export declare class PaymentLibModule {
40
39
  static ɵfac: i0.ɵɵFactoryDeclaration<PaymentLibModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentLibModule, [typeof i1.PaymentLibComponent, typeof i2.PaymentListComponent, typeof i3.ProcessRefundComponent, typeof i4.RefundListComponent, typeof i5.CardDetailsComponent, typeof i6.PageNotFoundComponent, typeof i7.MarkUnidentifiedPaymentComponent, typeof i8.MarkUnsolicitedPaymentComponent, typeof i9.ProcessedPaymentsComponent, typeof i10.AllocatePaymentsComponent, typeof i11.PbaDetailsComponent, typeof i12.FeeSummaryComponent, typeof i13.keyValuePipe, typeof i14.SanitizeHtmlPipe, typeof i15.ReportsComponent, typeof i16.ErrorBannerComponent, typeof i17.TableComponent], [typeof i18.CommonModule, typeof i19.HttpClientModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.MatTableModule, typeof i22.MatPaginatorModule, typeof i23.MatSortModule, typeof i24.MatFormFieldModule, typeof i25.MatInputModule, typeof i26.CcdHyphensPipe, typeof i27.CapitalizePipe, typeof i28.PaymentViewComponent, typeof i29.ContactDetailsComponent, typeof i30.AddRemissionComponent, typeof i31.ServiceRequestComponent, typeof i32.NotificationPreviewComponent, typeof i33.CaseTransactionsComponent, typeof i30.AddRemissionComponent, typeof i34.UnprocessedPaymentsComponent, typeof i35.RefundStatusComponent, typeof i36.PbaPaymentComponent, typeof i37.RpxTranslationModule], [typeof i1.PaymentLibComponent]>;
40
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentLibModule, [typeof i1.PaymentLibComponent, typeof i2.PaymentListComponent, typeof i3.ProcessRefundComponent, typeof i4.RefundListComponent, typeof i5.CardDetailsComponent, typeof i6.PageNotFoundComponent, typeof i7.MarkUnidentifiedPaymentComponent, typeof i8.MarkUnsolicitedPaymentComponent, typeof i9.ProcessedPaymentsComponent, typeof i10.AllocatePaymentsComponent, typeof i11.PbaDetailsComponent, typeof i12.FeeSummaryComponent, typeof i13.keyValuePipe, typeof i14.SanitizeHtmlPipe, typeof i15.ReportsComponent, typeof i16.ErrorBannerComponent, typeof i17.TableComponent], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.MatTableModule, typeof i21.MatPaginatorModule, typeof i22.MatSortModule, typeof i23.MatFormFieldModule, typeof i24.MatInputModule, typeof i25.CcdHyphensPipe, typeof i26.CapitalizePipe, typeof i27.PaymentViewComponent, typeof i28.ContactDetailsComponent, typeof i29.AddRemissionComponent, typeof i30.ServiceRequestComponent, typeof i31.NotificationPreviewComponent, typeof i32.CaseTransactionsComponent, typeof i29.AddRemissionComponent, typeof i33.UnprocessedPaymentsComponent, typeof i34.RefundStatusComponent, typeof i35.PbaPaymentComponent, typeof i36.RpxTranslationModule], [typeof i1.PaymentLibComponent]>;
42
41
  static ɵinj: i0.ɵɵInjectorDeclaration<PaymentLibModule>;
43
42
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "6.3.0-beta1",
3
+ "version": "6.3.0-beta4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/common": "^16.1.6",
9
- "@angular/core": "^16.1.6"
8
+ "@angular/common": "^18.2.13",
9
+ "@angular/core": "^18.2.13"
10
10
  },
11
11
  "license": "MIT",
12
12
  "repository": "https://github.com/hmcts/ccpay-web-component.git",