@hmcts/ccpay-web-component 6.5.14 → 6.5.15-beta1

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 (179) hide show
  1. package/esm2022/hmcts-ccpay-web-component.mjs +5 -0
  2. package/esm2022/lib/components/add-remission/add-remission.component.mjs +1276 -0
  3. package/esm2022/lib/components/allocate-payments/allocate-payments.component.mjs +423 -0
  4. package/esm2022/lib/components/card-details/card-details.component.mjs +32 -0
  5. package/esm2022/lib/components/case-transactions/case-transactions.component.mjs +885 -0
  6. package/esm2022/lib/components/contact-details/contact-details.component.mjs +338 -0
  7. package/esm2022/lib/components/error-banner/error-banner.component.mjs +18 -0
  8. package/esm2022/lib/components/fee-summary/fee-summary.component.mjs +280 -0
  9. package/esm2022/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.mjs +195 -0
  10. package/esm2022/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.mjs +275 -0
  11. package/esm2022/lib/components/notification-preview/notification-preview.component.mjs +79 -0
  12. package/esm2022/lib/components/page-not-found.component.mjs +17 -0
  13. package/esm2022/lib/components/payment-list/payment-list.component.mjs +36 -0
  14. package/esm2022/lib/components/payment-view/payment-view.component.mjs +467 -0
  15. package/esm2022/lib/components/pba-details/pba-details.component.mjs +18 -0
  16. package/esm2022/lib/components/pba-payment/pba-payment.component.mjs +163 -0
  17. package/esm2022/lib/components/process-refund/process-refund.component.mjs +417 -0
  18. package/esm2022/lib/components/processed-payments/processed-payments.component.mjs +37 -0
  19. package/esm2022/lib/components/refund-list/refund-list.component.mjs +73 -0
  20. package/esm2022/lib/components/refund-status/refund-status.component.mjs +481 -0
  21. package/esm2022/lib/components/reports/reports.component.mjs +337 -0
  22. package/esm2022/lib/components/service-request/service-request.component.mjs +516 -0
  23. package/esm2022/lib/components/status-history/status-history.component.mjs +33 -0
  24. package/esm2022/lib/components/table/table.component.mjs +127 -0
  25. package/esm2022/lib/components/unprocessed-payments/unprocessed-payments.component.mjs +236 -0
  26. package/esm2022/lib/interfaces/AddRemissionRequest.mjs +17 -0
  27. package/esm2022/lib/interfaces/AddRetroRemissionRequest.mjs +9 -0
  28. package/esm2022/lib/interfaces/AllocatePaymentRequest.mjs +41 -0
  29. package/esm2022/lib/interfaces/IAllocationPaymentsRequest.mjs +20 -0
  30. package/esm2022/lib/interfaces/IBSPayments.mjs +2 -0
  31. package/esm2022/lib/interfaces/ICardDetails.mjs +2 -0
  32. package/esm2022/lib/interfaces/IFee.mjs +2 -0
  33. package/esm2022/lib/interfaces/INotificationPreview.mjs +2 -0
  34. package/esm2022/lib/interfaces/IOrderReferenceFee.mjs +2 -0
  35. package/esm2022/lib/interfaces/IPatchRefundAction.mjs +2 -0
  36. package/esm2022/lib/interfaces/IPayment.mjs +2 -0
  37. package/esm2022/lib/interfaces/IPaymentFailure.mjs +2 -0
  38. package/esm2022/lib/interfaces/IPaymentGroup.mjs +2 -0
  39. package/esm2022/lib/interfaces/IPaymentStatus.mjs +12 -0
  40. package/esm2022/lib/interfaces/IPaymentView.mjs +2 -0
  41. package/esm2022/lib/interfaces/IPayments.mjs +2 -0
  42. package/esm2022/lib/interfaces/IPutNotificationRequest.mjs +13 -0
  43. package/esm2022/lib/interfaces/IRefundAction.mjs +2 -0
  44. package/esm2022/lib/interfaces/IRefundContactDetails.mjs +2 -0
  45. package/esm2022/lib/interfaces/IRefundFee.mjs +2 -0
  46. package/esm2022/lib/interfaces/IRefundList.mjs +2 -0
  47. package/esm2022/lib/interfaces/IRefundReasons.mjs +2 -0
  48. package/esm2022/lib/interfaces/IRefundRejectReason.mjs +2 -0
  49. package/esm2022/lib/interfaces/IRefundStatus.mjs +2 -0
  50. package/esm2022/lib/interfaces/IRefundStatusHistory.mjs +2 -0
  51. package/esm2022/lib/interfaces/IRefundsNotifications.mjs +2 -0
  52. package/esm2022/lib/interfaces/IRemission.mjs +2 -0
  53. package/esm2022/lib/interfaces/IResubmitRefundRequest.mjs +13 -0
  54. package/esm2022/lib/interfaces/IStatusHistories.mjs +2 -0
  55. package/esm2022/lib/interfaces/IStatusHistory.mjs +2 -0
  56. package/esm2022/lib/interfaces/IserviceRequestCardPayment.mjs +11 -0
  57. package/esm2022/lib/interfaces/IserviceRequestPbaPayment.mjs +15 -0
  58. package/esm2022/lib/interfaces/IssueRefundRequest.mjs +11 -0
  59. package/esm2022/lib/interfaces/NotificationPreviewRequest.mjs +46 -0
  60. package/esm2022/lib/interfaces/PayhubAntennaRequest.mjs +14 -0
  61. package/esm2022/lib/interfaces/PaymentToPayhubRequest.mjs +17 -0
  62. package/esm2022/lib/interfaces/PostIssueRefundRetroRemission.mjs +9 -0
  63. package/esm2022/lib/interfaces/PostRefundRetroRemission.mjs +18 -0
  64. package/esm2022/lib/interfaces/RefundsRequest.mjs +9 -0
  65. package/esm2022/lib/interfaces/UnidentifiedPaymentsRequest.mjs +16 -0
  66. package/esm2022/lib/interfaces/UnsolicitedPaymentsRequest.mjs +22 -0
  67. package/esm2022/lib/payment-lib.component.mjs +430 -0
  68. package/esm2022/lib/payment-lib.module.mjs +181 -0
  69. package/esm2022/lib/payment-lib.service.mjs +49 -0
  70. package/esm2022/lib/pipes/capitalize.pipe.mjs +18 -0
  71. package/esm2022/lib/pipes/ccd-hyphens.pipe.mjs +22 -0
  72. package/esm2022/lib/pipes/key-value.pipe.mjs +23 -0
  73. package/esm2022/lib/pipes/sanitize-html.pipe.mjs +20 -0
  74. package/esm2022/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.mjs +87 -0
  75. package/esm2022/lib/services/card-details/card-details.service.mjs +39 -0
  76. package/esm2022/lib/services/case-transactions/case-transactions.service.mjs +39 -0
  77. package/esm2022/lib/services/notification/notification.service.mjs +70 -0
  78. package/esm2022/lib/services/orderslist.service.mjs +154 -0
  79. package/esm2022/lib/services/payment-list/payment-list.service.mjs +40 -0
  80. package/esm2022/lib/services/payment-view/payment-view.service.mjs +156 -0
  81. package/esm2022/lib/services/refunds/refunds.service.mjs +120 -0
  82. package/esm2022/lib/services/shared/error-handler.service.mjs +76 -0
  83. package/esm2022/lib/services/shared/httpclient/webcomponent.http.client.mjs +64 -0
  84. package/esm2022/lib/services/shared/logger/console-logger.service.mjs +43 -0
  85. package/esm2022/lib/services/shared/logger/logger.service.mjs +23 -0
  86. package/esm2022/lib/services/status-history/status-history.service.mjs +41 -0
  87. package/esm2022/lib/services/xl-file/xl-file.service.mjs +197 -0
  88. package/esm2022/public_api.mjs +7 -0
  89. package/fesm2022/hmcts-ccpay-web-component.mjs +217 -262
  90. package/fesm2022/hmcts-ccpay-web-component.mjs.map +1 -1
  91. package/index.d.ts +5 -2340
  92. package/lib/components/add-remission/add-remission.component.d.ts +208 -0
  93. package/lib/components/allocate-payments/allocate-payments.component.d.ts +115 -0
  94. package/lib/components/card-details/card-details.component.d.ts +18 -0
  95. package/lib/components/case-transactions/case-transactions.component.d.ts +143 -0
  96. package/lib/components/contact-details/contact-details.component.d.ts +54 -0
  97. package/lib/components/error-banner/error-banner.component.d.ts +9 -0
  98. package/lib/components/fee-summary/fee-summary.component.d.ts +72 -0
  99. package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.d.ts +52 -0
  100. package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.d.ts +63 -0
  101. package/lib/components/notification-preview/notification-preview.component.d.ts +30 -0
  102. package/lib/components/page-not-found.component.d.ts +5 -0
  103. package/lib/components/payment-list/payment-list.component.d.ts +19 -0
  104. package/lib/components/payment-view/payment-view.component.d.ts +110 -0
  105. package/lib/components/pba-details/pba-details.component.d.ts +10 -0
  106. package/lib/components/pba-payment/pba-payment.component.d.ts +41 -0
  107. package/lib/components/process-refund/process-refund.component.d.ts +82 -0
  108. package/lib/components/processed-payments/processed-payments.component.d.ts +17 -0
  109. package/lib/components/refund-list/refund-list.component.d.ts +26 -0
  110. package/lib/components/refund-status/refund-status.component.d.ts +119 -0
  111. package/lib/components/reports/reports.component.d.ts +49 -0
  112. package/lib/components/service-request/service-request.component.d.ts +141 -0
  113. package/lib/components/status-history/status-history.component.d.ts +19 -0
  114. package/lib/components/table/table.component.d.ts +45 -0
  115. package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts +61 -0
  116. package/lib/interfaces/AddRemissionRequest.d.ts +11 -0
  117. package/lib/interfaces/AddRetroRemissionRequest.d.ts +5 -0
  118. package/lib/interfaces/AllocatePaymentRequest.d.ts +31 -0
  119. package/lib/interfaces/IAllocationPaymentsRequest.d.ts +9 -0
  120. package/lib/interfaces/IBSPayments.d.ts +19 -0
  121. package/lib/interfaces/ICardDetails.d.ts +7 -0
  122. package/lib/interfaces/IFee.d.ts +29 -0
  123. package/lib/interfaces/INotificationPreview.d.ts +27 -0
  124. package/lib/interfaces/IOrderReferenceFee.d.ts +9 -0
  125. package/lib/interfaces/IPatchRefundAction.d.ts +4 -0
  126. package/lib/interfaces/IPayment.d.ts +35 -0
  127. package/lib/interfaces/IPaymentFailure.d.ts +13 -0
  128. package/lib/interfaces/IPaymentGroup.d.ts +11 -0
  129. package/lib/interfaces/IPaymentStatus.d.ts +11 -0
  130. package/lib/interfaces/IPaymentView.d.ts +5 -0
  131. package/lib/interfaces/IPayments.d.ts +4 -0
  132. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  133. package/lib/interfaces/IRefundAction.d.ts +4 -0
  134. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  135. package/lib/interfaces/IRefundFee.d.ts +7 -0
  136. package/lib/interfaces/IRefundList.d.ts +20 -0
  137. package/lib/interfaces/IRefundReasons.d.ts +6 -0
  138. package/lib/interfaces/IRefundRejectReason.d.ts +4 -0
  139. package/lib/interfaces/IRefundStatus.d.ts +8 -0
  140. package/lib/interfaces/IRefundStatusHistory.d.ts +5 -0
  141. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  142. package/lib/interfaces/IRemission.d.ts +14 -0
  143. package/lib/interfaces/IResubmitRefundRequest.d.ts +9 -0
  144. package/lib/interfaces/IStatusHistories.d.ts +7 -0
  145. package/lib/interfaces/IStatusHistory.d.ts +7 -0
  146. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  147. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +8 -0
  148. package/lib/interfaces/IssueRefundRequest.d.ts +6 -0
  149. package/lib/interfaces/NotificationPreviewRequest.d.ts +25 -0
  150. package/lib/interfaces/PayhubAntennaRequest.d.ts +8 -0
  151. package/lib/interfaces/PaymentToPayhubRequest.d.ts +11 -0
  152. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +6 -0
  153. package/lib/interfaces/PostRefundRetroRemission.d.ts +11 -0
  154. package/lib/interfaces/RefundsRequest.d.ts +5 -0
  155. package/lib/interfaces/UnidentifiedPaymentsRequest.d.ts +7 -0
  156. package/lib/interfaces/UnsolicitedPaymentsRequest.d.ts +10 -0
  157. package/lib/payment-lib.component.d.ts +156 -0
  158. package/lib/payment-lib.module.d.ts +42 -0
  159. package/lib/payment-lib.service.d.ts +21 -0
  160. package/lib/pipes/capitalize.pipe.d.ts +8 -0
  161. package/lib/pipes/ccd-hyphens.pipe.d.ts +8 -0
  162. package/lib/pipes/key-value.pipe.d.ts +8 -0
  163. package/lib/pipes/sanitize-html.pipe.d.ts +10 -0
  164. package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.d.ts +27 -0
  165. package/lib/services/card-details/card-details.service.d.ts +17 -0
  166. package/lib/services/case-transactions/case-transactions.service.d.ts +17 -0
  167. package/lib/services/notification/notification.service.d.ts +21 -0
  168. package/lib/services/orderslist.service.d.ts +77 -0
  169. package/lib/services/payment-list/payment-list.service.d.ts +18 -0
  170. package/lib/services/payment-view/payment-view.service.d.ts +61 -0
  171. package/lib/services/refunds/refunds.service.d.ts +36 -0
  172. package/lib/services/shared/error-handler.service.d.ts +14 -0
  173. package/lib/services/shared/httpclient/webcomponent.http.client.d.ts +17 -0
  174. package/lib/services/shared/logger/console-logger.service.d.ts +11 -0
  175. package/lib/services/shared/logger/logger.service.d.ts +14 -0
  176. package/lib/services/status-history/status-history.service.d.ts +17 -0
  177. package/lib/services/xl-file/xl-file.service.d.ts +16 -0
  178. package/package.json +5 -3
  179. package/public_api.d.ts +3 -0
@@ -0,0 +1,7 @@
1
+ import { IStatusHistory } from './IStatusHistory';
2
+ export interface IStatusHistories {
3
+ amount: number;
4
+ reference: string;
5
+ status: string;
6
+ status_histories: IStatusHistory[];
7
+ }
@@ -0,0 +1,7 @@
1
+ export interface IStatusHistory {
2
+ status: string;
3
+ external_status: string;
4
+ date_created: Date;
5
+ error_code: string;
6
+ error_message: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ export declare class IserviceRequestCardPayment {
2
+ amount: string;
3
+ currency: string;
4
+ language: string;
5
+ constructor(amount: string, language: string);
6
+ }
@@ -0,0 +1,8 @@
1
+ export declare class IserviceRequestPbaPayment {
2
+ account_number: string;
3
+ amount: string;
4
+ currency: string;
5
+ customer_reference: string;
6
+ organisation_name: string;
7
+ constructor(account_number: string, amount: string, customer_reference: string, orgName: string);
8
+ }
@@ -0,0 +1,6 @@
1
+ export declare class IssueRefundRequest {
2
+ payment_reference: string;
3
+ refund_reason: string;
4
+ refund_amount: number;
5
+ constructor(payment_reference: string, refund_reason: string, refund_amount: number);
6
+ }
@@ -0,0 +1,25 @@
1
+ import { IPayment } from './IPayment';
2
+ import { IRefundContactDetails } from './IRefundContactDetails';
3
+ export declare class NotificationPreviewRequest {
4
+ notification_type?: string;
5
+ payment_channel?: string;
6
+ payment_method?: string;
7
+ payment_reference?: string;
8
+ personalisation?: {
9
+ ccd_case_number?: string;
10
+ refund_amount?: number;
11
+ refund_reason?: string;
12
+ refund_reference?: string;
13
+ customer_reference?: string;
14
+ };
15
+ recipient_email_address?: string;
16
+ recipient_postal_address?: {
17
+ address_line?: string;
18
+ city?: string;
19
+ county?: string;
20
+ country?: string;
21
+ postal_code?: string;
22
+ };
23
+ service_name?: string;
24
+ constructor(payment: IPayment, contactDetails: IRefundContactDetails, refund_reason: string, refund_amount: number, refund_reference: string, payment_reference: string);
25
+ }
@@ -0,0 +1,8 @@
1
+ export declare class PayhubAntennaRequest {
2
+ currency: string;
3
+ case_type: string;
4
+ ccd_case_number: string;
5
+ amount: number;
6
+ telephony_system: string;
7
+ constructor(ccd_case_number: string, amount: number, caseType: string, telephony_system: string);
8
+ }
@@ -0,0 +1,11 @@
1
+ export declare class PaymentToPayhubRequest {
2
+ currency: string;
3
+ description: string;
4
+ channel: string;
5
+ provider: string;
6
+ case_type: string;
7
+ ccd_case_number: string;
8
+ amount: number;
9
+ telephony_system: string;
10
+ constructor(ccd_case_number: string, amount: number, caseType: string, telephony_system: string);
11
+ }
@@ -0,0 +1,6 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
2
+ export declare class PostIssueRefundRetroRemission {
3
+ remissionReference: string;
4
+ contact_details: IRefundContactDetails;
5
+ constructor(remissionReference: string, contactDeatils: any);
6
+ }
@@ -0,0 +1,11 @@
1
+ import { IRefundContactDetails } from "./IRefundContactDetails";
2
+ export declare class PostRefundRetroRemission {
3
+ ccd_case_number: string;
4
+ payment_reference: string;
5
+ refund_reason: string;
6
+ total_refund_amount: any;
7
+ fees: any[];
8
+ is_over_payment: boolean;
9
+ contact_details: IRefundContactDetails;
10
+ constructor(contact_details: any, fees: any[], payment_reference: string, refund_reason: string, total_refund_amount: any, is_over_payment: string);
11
+ }
@@ -0,0 +1,5 @@
1
+ export declare class RefundsRequest {
2
+ payment_reference: string;
3
+ refund_reason: string;
4
+ constructor(payment_reference: string, refund_reason: string);
5
+ }
@@ -0,0 +1,7 @@
1
+ export declare class UnidentifiedPaymentsRequest {
2
+ payment_allocation_status: any;
3
+ payment_group_reference: string;
4
+ payment_reference: string;
5
+ unidentified_reason: string;
6
+ constructor(payment_group_reference: string, payment_reference: string, unidentified_reason: any);
7
+ }
@@ -0,0 +1,10 @@
1
+ export declare class UnsolicitedPaymentsRequest {
2
+ payment_allocation_status: any;
3
+ payment_group_reference: string;
4
+ payment_reference: string;
5
+ receiving_office: string;
6
+ receiving_email_address: string;
7
+ sending_email_address: string;
8
+ unidentified_reason: string;
9
+ constructor(payment_group_reference: string, payment_reference: string, reason: string, responsible_office: string, responsible_person: string, email_id: string);
10
+ }
@@ -0,0 +1,156 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { PaymentLibService } from './payment-lib.service';
3
+ import { IBSPayments } from './interfaces/IBSPayments';
4
+ import { OrderslistService } from './services/orderslist.service';
5
+ import { IPayment } from './interfaces/IPayment';
6
+ import { IPaymentGroup } from "./interfaces/IPaymentGroup";
7
+ import { IRefundList } from "./interfaces/IRefundList";
8
+ import { IFee } from "./interfaces/IFee";
9
+ import { AddRetroRemissionRequest } from "./interfaces/AddRetroRemissionRequest";
10
+ import * as i0 from "@angular/core";
11
+ export declare class PaymentLibComponent implements OnInit {
12
+ private paymentLibService;
13
+ private cd;
14
+ private OrderslistService;
15
+ API_ROOT: string;
16
+ BULKSCAN_API_ROOT: string;
17
+ REFUNDS_API_ROOT: string;
18
+ NOTIFICATION_API_ROOT: string;
19
+ CARDPAYMENTRETURNURL: string;
20
+ CCD_CASE_NUMBER: string;
21
+ EXC_REFERENCE: string;
22
+ PAYMENT_METHOD: string;
23
+ VIEW: string;
24
+ VIEWSERVICE: string;
25
+ PAYMENT_GROUP_REF?: string;
26
+ TAKEPAYMENT: boolean;
27
+ SERVICEREQUEST: string;
28
+ DCN_NUMBER: string;
29
+ SELECTED_OPTION: string;
30
+ ISBSENABLE: Boolean;
31
+ ISSFENABLE: boolean;
32
+ ISTURNOFF: boolean;
33
+ CASETYPE: string;
34
+ ISPAYMENTSTATUSENABLED: boolean;
35
+ rootUrl: boolean;
36
+ REFUNDLIST: string;
37
+ USERID: string;
38
+ LOGGEDINUSERROLES: any[];
39
+ LOGGEDINUSEREMAIL: string;
40
+ isFromServiceRequestPage: boolean;
41
+ telephonySelectionEnable: boolean;
42
+ paymentMethod: string;
43
+ bspaymentdcn: string;
44
+ unProcessedPaymentServiceId: string;
45
+ paymentGroupReference: string;
46
+ paymentReference: string;
47
+ refundReference: string;
48
+ isFromPayBubble: boolean;
49
+ refundlistsource: any;
50
+ viewName: string;
51
+ isTurnOff: boolean;
52
+ caseType: string;
53
+ unProcessedPayment: IBSPayments;
54
+ isRefundStatusView: boolean;
55
+ isRedirectFromCaseTransactionPage: string;
56
+ isCallFromRefundList: boolean;
57
+ isFromRefundStatusPage: boolean;
58
+ iscancelClicked: boolean;
59
+ isFromPaymentDetailPage: boolean;
60
+ pbaPayOrderRef: IPayment;
61
+ isTakePayment: boolean;
62
+ orderDetail: any[];
63
+ orderRef: string;
64
+ orderStatus: string;
65
+ orderParty: string;
66
+ orderCreated: Date;
67
+ orderCCDEvent: string;
68
+ serviceRequestValue: string;
69
+ orderAddBtnEnable: boolean;
70
+ orderFeesTotal: number;
71
+ orderRemissionTotal: number;
72
+ orderTotalPayments: number;
73
+ orderPendingPayments: number;
74
+ paymentGroup: IPaymentGroup;
75
+ overPaymentAmount: number;
76
+ refunds: IRefundList[];
77
+ constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
78
+ ngAfterContentChecked(): void;
79
+ ngOnInit(): void;
80
+ /**
81
+ * Adds a remission to the payment group using data from the provided form group.
82
+ *
83
+ * This method checks if the `paymentGroup` is not null before attempting to add the remission.
84
+ * If the `paymentGroup` exists, a new remission is created using the values from the provided
85
+ * form group (`currentRemissionFormGroup`), and it is pushed into the `remissions` array of the payment group.
86
+ *
87
+ * @param {AddRetroRemissionRequest} currentRemissionFormGroup - The form group containing remission data
88
+ * (e.g., `hwf_amount`, `hwf_reference`).
89
+ */
90
+ addRemission(currentRemissionFormGroup: AddRetroRemissionRequest): void;
91
+ /**
92
+ * This method is used to set the paymentGroup for the add remission journey.
93
+ * @param updatedPaymentGroup this is an updated paymentGroup version.
94
+ */
95
+ addPaymentGroup(updatedPaymentGroup: IPaymentGroup): void;
96
+ /**
97
+ * Calculates the total remission amount for the current payment group.
98
+ *
99
+ * This method checks if the payment group contains any remissions and, if so,
100
+ * sums up the `hwf_amount` of all remissions using the `reduce()` method.
101
+ * If no remissions are found, it returns a default value of 0.
102
+ *
103
+ * @returns {number} The total remission amount, or 0 if no remissions are present.
104
+ */
105
+ getTotalRemission(): number;
106
+ /**
107
+ * Calculates the total fee amount for the current payment group.
108
+ *
109
+ * This method checks if the payment group contains any fees and, if so,
110
+ * sums up the `calculated_amount` of all fees using the `reduce()` method.
111
+ * If no fees are found, it returns a default value of 0.
112
+ *
113
+ * @returns {number} The total fee amount, or 0 if no fees are present.
114
+ */
115
+ getTotalFees(): number;
116
+ /**
117
+ * Calculates the total payment amount for the current payment group.
118
+ *
119
+ * This method checks if the payment group contains any payments and, if so,
120
+ * sums up the `amount` of all payments using the `reduce()` method.
121
+ * If no payments are found, it returns a default value of 0.
122
+ *
123
+ * @returns {number} The total payment amount, or 0 if no payments are present.
124
+ */
125
+ getTotalPayments(): number;
126
+ /**
127
+ * This function is used to find out if the current refunds list are in progress for the fee passed as parameter
128
+ * @param fee this is the fee used to find out if the refunds are in progress.
129
+ */
130
+ isTheCurrentRefundInProcessForThisFee(fee: IFee): boolean;
131
+ /**
132
+ * This function is used to find out if in current list of refunds all refunds has been rejected
133
+ * for the fee passed as parameter.
134
+ * @param feeCode this is the fee code used to find out all refunds rejected refunds.
135
+ */
136
+ isTheCurrentRefundRejectedForTheFee(feeCode: string): boolean;
137
+ /**
138
+ * Rounds very small values to zero if they fall below a specified threshold.
139
+ *
140
+ * This is useful for eliminating floating-point precision errors that result in
141
+ * extremely small non-zero values (e.g., 1.1368683772161603e-13) which should
142
+ * logically be treated as zero.
143
+ *
144
+ * @param value - The numeric value to evaluate and potentially round.
145
+ * @param threshold - The minimum absolute value considered significant. Defaults to 1e-10.
146
+ * @returns The original value if it's above the threshold, or 0 if it's below.
147
+ *
148
+ * @example
149
+ * roundTinyValue(1.1368683772161603e-13); // returns 0
150
+ * roundTinyValue(0.00001); // returns 0.00001
151
+ */
152
+ roundTinyValue(value: number, threshold?: number): number;
153
+ getRoundedOverPayment(): number;
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaymentLibComponent, never>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaymentLibComponent, "ccpay-payment-lib", never, { "API_ROOT": { "alias": "API_ROOT"; "required": false; }; "BULKSCAN_API_ROOT": { "alias": "BULKSCAN_API_ROOT"; "required": false; }; "REFUNDS_API_ROOT": { "alias": "REFUNDS_API_ROOT"; "required": false; }; "NOTIFICATION_API_ROOT": { "alias": "NOTIFICATION_API_ROOT"; "required": false; }; "CARDPAYMENTRETURNURL": { "alias": "CARDPAYMENTRETURNURL"; "required": false; }; "CCD_CASE_NUMBER": { "alias": "CCD_CASE_NUMBER"; "required": false; }; "EXC_REFERENCE": { "alias": "EXC_REFERENCE"; "required": false; }; "PAYMENT_METHOD": { "alias": "PAYMENT_METHOD"; "required": false; }; "VIEW": { "alias": "VIEW"; "required": false; }; "VIEWSERVICE": { "alias": "VIEWSERVICE"; "required": false; }; "PAYMENT_GROUP_REF": { "alias": "PAYMENT_GROUP_REF"; "required": false; }; "TAKEPAYMENT": { "alias": "TAKEPAYMENT"; "required": false; }; "SERVICEREQUEST": { "alias": "SERVICEREQUEST"; "required": false; }; "DCN_NUMBER": { "alias": "DCN_NUMBER"; "required": false; }; "SELECTED_OPTION": { "alias": "SELECTED_OPTION"; "required": false; }; "ISBSENABLE": { "alias": "ISBSENABLE"; "required": false; }; "ISSFENABLE": { "alias": "ISSFENABLE"; "required": false; }; "ISTURNOFF": { "alias": "ISTURNOFF"; "required": false; }; "CASETYPE": { "alias": "CASETYPE"; "required": false; }; "ISPAYMENTSTATUSENABLED": { "alias": "ISPAYMENTSTATUSENABLED"; "required": false; }; "rootUrl": { "alias": "rootUrl"; "required": false; }; "REFUNDLIST": { "alias": "REFUNDLIST"; "required": false; }; "USERID": { "alias": "USERID"; "required": false; }; "LOGGEDINUSERROLES": { "alias": "LOGGEDINUSERROLES"; "required": false; }; "LOGGEDINUSEREMAIL": { "alias": "LOGGEDINUSEREMAIL"; "required": false; }; "isFromServiceRequestPage": { "alias": "isFromServiceRequestPage"; "required": false; }; "telephonySelectionEnable": { "alias": "telephonySelectionEnable"; "required": false; }; }, {}, never, never, false, never>;
156
+ }
@@ -0,0 +1,42 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./payment-lib.component";
3
+ import * as i2 from "./components/payment-list/payment-list.component";
4
+ import * as i3 from "./components/process-refund/process-refund.component";
5
+ import * as i4 from "./components/refund-list/refund-list.component";
6
+ import * as i5 from "./components/card-details/card-details.component";
7
+ import * as i6 from "./components/page-not-found.component";
8
+ import * as i7 from "./components/mark-unidentified-payment/mark-unidentified-payment.component";
9
+ import * as i8 from "./components/mark-unsolicited-payment/mark-unsolicited-payment.component";
10
+ import * as i9 from "./components/processed-payments/processed-payments.component";
11
+ import * as i10 from "./components/allocate-payments/allocate-payments.component";
12
+ import * as i11 from "./components/pba-details/pba-details.component";
13
+ import * as i12 from "./components/fee-summary/fee-summary.component";
14
+ import * as i13 from "./pipes/key-value.pipe";
15
+ import * as i14 from "./pipes/sanitize-html.pipe";
16
+ import * as i15 from "./components/reports/reports.component";
17
+ import * as i16 from "./components/error-banner/error-banner.component";
18
+ import * as i17 from "./components/table/table.component";
19
+ import * as i18 from "@angular/common";
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";
38
+ export declare class PaymentLibModule {
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaymentLibModule, never>;
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]>;
41
+ static ɵinj: i0.ɵɵInjectorDeclaration<PaymentLibModule>;
42
+ }
@@ -0,0 +1,21 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class PaymentLibService {
3
+ API_ROOT: string;
4
+ BULKSCAN_API_ROOT: string;
5
+ REFUNDS_API_ROOT: string;
6
+ NOTIFICATION_API_ROOT: string;
7
+ CARDPAYMENTRETURNURL: string;
8
+ constructor();
9
+ setApiRootUrl(apiRoot: string): void;
10
+ getApiRootUrl(): string;
11
+ setBulkScanApiRootUrl(bulkscanapiRoot: string): void;
12
+ getBulkScanApiRootUrl(): string;
13
+ setRefundndsApiRootUrl(refundsapiRoot: string): void;
14
+ getRefundsApiRootUrl(): string;
15
+ setNoticationApiRootUrl(notificationapiRoot: string): void;
16
+ getNoticationApiRootUrl(): string;
17
+ setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
18
+ getCardPaymentReturnUrl(): string;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaymentLibService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<PaymentLibService>;
21
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CapitalizePipe implements PipeTransform {
4
+ constructor();
5
+ transform(s: any, args?: any): any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CapitalizePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", true>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CcdHyphensPipe implements PipeTransform {
4
+ constructor();
5
+ transform(value: any, args?: any): any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CcdHyphensPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<CcdHyphensPipe, "ccdHyphens", true>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class keyValuePipe implements PipeTransform {
4
+ constructor();
5
+ transform(input: any): any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<keyValuePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<keyValuePipe, "keyValue", false>;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SanitizeHtmlPipe implements PipeTransform {
5
+ private sanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(value: any): SafeHtml;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SanitizeHtmlPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<SanitizeHtmlPipe, "sanitizeHtml", false>;
10
+ }
@@ -0,0 +1,27 @@
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';
6
+ import { IBSPayments } from '../../interfaces/IBSPayments';
7
+ import { AllocatePaymentRequest } from '../../interfaces/AllocatePaymentRequest';
8
+ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
9
+ import * as i0 from "@angular/core";
10
+ export declare class BulkScaningPaymentService {
11
+ private http;
12
+ private https;
13
+ private errorHandlerService;
14
+ private paymentLibService;
15
+ constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
16
+ getBSPaymentsByCCD(ccdCaseNumber: string): Observable<IBSPayments>;
17
+ getBSPaymentsByDCN(dcn: string): Observable<IBSPayments>;
18
+ postBSAllocatePayment(body: AllocatePaymentRequest, paymentRef: string): Observable<any>;
19
+ postBSPaymentStrategic(body: AllocatePaymentRequest, paymentGroupRef: string): Observable<any>;
20
+ postBSWoPGStrategic(body: AllocatePaymentRequest): Observable<any>;
21
+ patchBSChangeStatus(dcnNumber: string, status: string): Observable<any>;
22
+ calculateOutStandingAmount(paymentGroup: IPaymentGroup): number;
23
+ removeUnwantedString(input: string, replaceText: string): string;
24
+ downloadSelectedReport(reportName: string, startDate: string, endDate: string): Observable<any>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<BulkScaningPaymentService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<BulkScaningPaymentService>;
27
+ }
@@ -0,0 +1,17 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs/internal/Observable';
3
+ import { ICardDetails } from '../../interfaces/ICardDetails';
4
+ import { PaymentLibService } from '../../payment-lib.service';
5
+ import { ErrorHandlerService } from '../shared/error-handler.service';
6
+ import { LoggerService } from '../shared/logger/logger.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class CardDetailsService {
9
+ private http;
10
+ private logger;
11
+ private errorHandlerService;
12
+ private paymentLibService;
13
+ constructor(http: HttpClient, logger: LoggerService, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
14
+ getCardDetails(paymentReference: string): Observable<ICardDetails>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardDetailsService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<CardDetailsService>;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { LoggerService } from '../shared/logger/logger.service';
3
+ import { ErrorHandlerService } from '../shared/error-handler.service';
4
+ import { PaymentLibService } from '../../payment-lib.service';
5
+ import { Observable } from 'rxjs';
6
+ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
7
+ import * as i0 from "@angular/core";
8
+ export declare class CaseTransactionsService {
9
+ private http;
10
+ private logger;
11
+ private errorHandlerService;
12
+ private paymentLibService;
13
+ constructor(http: HttpClient, logger: LoggerService, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
14
+ getPaymentGroups(ccdCaseNumber: string): Observable<IPaymentGroup[]>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaseTransactionsService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<CaseTransactionsService>;
17
+ }
@@ -0,0 +1,21 @@
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';
6
+ import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
7
+ import { NotificationPreviewRequest } from '../../interfaces/NotificationPreviewRequest';
8
+ import * as i0 from "@angular/core";
9
+ export declare class NotificationService {
10
+ private http;
11
+ private https;
12
+ private errorHandlerService;
13
+ private paymentLibService;
14
+ constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
15
+ getRefundNotification(reference: string): Observable<IRefundsNotifications>;
16
+ getAddressByPostcode(postcode: string): Observable<any>;
17
+ getNotificationPreview(body: NotificationPreviewRequest): Observable<any>;
18
+ getNotificationInstructionType(paymentChannel: string, paymentMethod: string): any;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
21
+ }
@@ -0,0 +1,77 @@
1
+ import { Observable, BehaviorSubject } from 'rxjs';
2
+ import { IOrderReferenceFee } from '../interfaces/IOrderReferenceFee';
3
+ import { IRefundList } from '../interfaces/IRefundList';
4
+ import { IPaymentView } from '../interfaces/IPaymentView';
5
+ import * as i0 from "@angular/core";
6
+ export declare class OrderslistService {
7
+ private ordersList;
8
+ private refundView;
9
+ private caseType;
10
+ getcaseType: Observable<string>;
11
+ private feeExists;
12
+ getFeeExist: Observable<boolean>;
13
+ private ccdCaseNumber;
14
+ getCCDCaseNumberforRefund: Observable<string>;
15
+ private isFromServiceRequestPage;
16
+ getisFromServiceRequestPage: Observable<boolean>;
17
+ private OrderRefId;
18
+ getOrderRefId: Observable<string>;
19
+ private navigationPage;
20
+ getnavigationPage: Observable<string>;
21
+ private orderRef;
22
+ getorderRef: Observable<string>;
23
+ private orderCCDEvent;
24
+ getorderCCDEvent: Observable<string>;
25
+ private orderCreated;
26
+ getorderCreated: Observable<Date>;
27
+ private orderParty;
28
+ getorderParty: Observable<string>;
29
+ private orderRemissionTotal;
30
+ getorderRemissionTotal: Observable<number>;
31
+ private orderFeesTotal;
32
+ getorderFeesTotal: Observable<number>;
33
+ private orderTotalPayments;
34
+ getorderTotalPayments: Observable<number>;
35
+ private rolesList;
36
+ private orderDetail;
37
+ private paymentPageView;
38
+ constructor();
39
+ setOrdersList(orderLevelFees: IOrderReferenceFee[]): void;
40
+ getOrdersList(): BehaviorSubject<IOrderReferenceFee[]>;
41
+ setRefundView(refundList: IRefundList): void;
42
+ getRefundView(): BehaviorSubject<IRefundList>;
43
+ setCaseType(caseType: string): void;
44
+ getCaseType(): BehaviorSubject<string>;
45
+ setCCDCaseNumber(ccdCaseNumber: string): void;
46
+ getCCDCaseNumber(): BehaviorSubject<string>;
47
+ setFeeExists(feeExists: boolean): void;
48
+ getFeeExists(): BehaviorSubject<boolean>;
49
+ setisFromServiceRequestPage(isFromServiceRequestPage: boolean): void;
50
+ getisFromServiceRequestPages(): BehaviorSubject<boolean>;
51
+ setOrderRefId(OrderRefId: string): void;
52
+ getSelectedOrderRefId(): BehaviorSubject<string>;
53
+ setnavigationPage(navigationPage: string): void;
54
+ getnavigationPageValue(): BehaviorSubject<string>;
55
+ setpaymentPageView(paymentpageList: IPaymentView): void;
56
+ getpaymentPageView(): BehaviorSubject<IPaymentView>;
57
+ setUserRolesList(rolesList: any[]): void;
58
+ getUserRolesList(): BehaviorSubject<any[]>;
59
+ setorderDetail(orderDetail: any[]): void;
60
+ getorderDetail(): BehaviorSubject<any[]>;
61
+ setOrderRef(orderRef: string): void;
62
+ getorderRefs(): BehaviorSubject<string>;
63
+ setorderCCDEvent(orderCCDEvent: string): void;
64
+ getorderCCDEvents(): BehaviorSubject<string>;
65
+ setorderCreated(orderCreated: Date): void;
66
+ getorderCreateds(): BehaviorSubject<Date>;
67
+ setorderParty(orderParty: string): void;
68
+ getorderPartys(): BehaviorSubject<string>;
69
+ setorderRemissionTotal(orderRemissionTotal: number): void;
70
+ getorderRemissionTotals(): BehaviorSubject<number>;
71
+ setorderFeesTotal(orderFeesTotal: number): void;
72
+ getorderFeesTotals(): BehaviorSubject<number>;
73
+ setorderTotalPayments(orderTotalPayments: number): void;
74
+ getoorderTotalPaymentss(): BehaviorSubject<number>;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderslistService, never>;
76
+ static ɵprov: i0.ɵɵInjectableDeclaration<OrderslistService>;
77
+ }
@@ -0,0 +1,18 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs/internal/Observable';
3
+ import { PaymentLibService } from '../../payment-lib.service';
4
+ import { IPayments } from '../../interfaces/IPayments';
5
+ import { ErrorHandlerService } from '../shared/error-handler.service';
6
+ import { LoggerService } from '../shared/logger/logger.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class PaymentListService {
9
+ private http;
10
+ private logger;
11
+ private errorHandlerService;
12
+ private paymentLibService;
13
+ payments: IPayments;
14
+ constructor(http: HttpClient, logger: LoggerService, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
15
+ getPaymentByCcdCaseNumber(ccdCaseNumber: string, paymentMethod: string): Observable<IPayments>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaymentListService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<PaymentListService>;
18
+ }