@hmcts/ccpay-web-component 6.2.18-beta01 → 6.2.19-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.
- package/esm2022/lib/components/fee-summary/fee-summary.component.mjs +38 -5
- package/esm2022/lib/components/payment-view/payment-view.component.mjs +2 -2
- package/esm2022/lib/components/service-request/service-request.component.mjs +2 -2
- package/esm2022/lib/interfaces/PayhubAntennaRequest.mjs +4 -2
- package/esm2022/lib/interfaces/PaymentToPayhubRequest.mjs +4 -2
- package/esm2022/lib/payment-lib.component.mjs +30 -3
- package/esm2022/lib/services/notification/notification.service.mjs +3 -3
- package/esm2022/lib/services/shared/error-handler.service.mjs +2 -2
- package/fesm2022/hmcts-ccpay-web-component.mjs +76 -12
- package/fesm2022/hmcts-ccpay-web-component.mjs.map +1 -1
- package/lib/components/fee-summary/fee-summary.component.d.ts +11 -2
- package/lib/interfaces/PayhubAntennaRequest.d.ts +2 -1
- package/lib/interfaces/PaymentToPayhubRequest.d.ts +2 -1
- package/lib/payment-lib.component.d.ts +19 -1
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
3
3
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
4
4
|
import { BulkScaningPaymentService } from '../../services/bulk-scaning-payment/bulk-scaning-payment.service';
|
|
5
|
-
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
6
5
|
import { IRemission } from '../../interfaces/IRemission';
|
|
7
6
|
import { IFee } from '../../interfaces/IFee';
|
|
8
7
|
import { SafeHtml } from '@angular/platform-browser';
|
|
9
8
|
import { Router } from '@angular/router';
|
|
10
9
|
import { Location } from '@angular/common';
|
|
11
10
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
11
|
+
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
type PaymentLibAlias = PaymentLibComponent;
|
|
14
14
|
export declare class FeeSummaryComponent implements OnInit {
|
|
@@ -22,6 +22,8 @@ export declare class FeeSummaryComponent implements OnInit {
|
|
|
22
22
|
ccdCaseNumber: string;
|
|
23
23
|
isTurnOff: string;
|
|
24
24
|
caseType: string;
|
|
25
|
+
telephonySelectionEnable: boolean;
|
|
26
|
+
paymentMethod: string;
|
|
25
27
|
bsPaymentDcnNumber: string;
|
|
26
28
|
paymentGroup: IPaymentGroup;
|
|
27
29
|
errorMessage: string;
|
|
@@ -57,7 +59,14 @@ export declare class FeeSummaryComponent implements OnInit {
|
|
|
57
59
|
takePayment(): void;
|
|
58
60
|
goToAllocatePage(outStandingAmount: number, isFeeAmountZero: Boolean): void;
|
|
59
61
|
isCheckAmountdueExist(amountDue: any): amountDue is undefined;
|
|
62
|
+
getAntennaValue(): string;
|
|
63
|
+
getKervValue(): string;
|
|
64
|
+
getPaymentMethod(): string;
|
|
65
|
+
setPaymentValue(value: string): void;
|
|
66
|
+
isTakePaymentButtonDisabled(): boolean;
|
|
67
|
+
isTelephonySelectionEnable(): boolean;
|
|
68
|
+
isTelephonySelectionEnableNull(): void;
|
|
60
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeeSummaryComponent, never>;
|
|
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>;
|
|
70
|
+
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; }; "telephonySelectionEnable": { "alias": "telephonySelectionEnable"; "required": false; }; }, {}, never, never, false, never>;
|
|
62
71
|
}
|
|
63
72
|
export {};
|
|
@@ -3,5 +3,6 @@ export declare class PayhubAntennaRequest {
|
|
|
3
3
|
case_type: string;
|
|
4
4
|
ccd_case_number: string;
|
|
5
5
|
amount: number;
|
|
6
|
-
|
|
6
|
+
telephony_system: string;
|
|
7
|
+
constructor(ccd_case_number: string, amount: number, caseType: string, telephony_system: string);
|
|
7
8
|
}
|
|
@@ -6,5 +6,6 @@ export declare class PaymentToPayhubRequest {
|
|
|
6
6
|
case_type: string;
|
|
7
7
|
ccd_case_number: string;
|
|
8
8
|
amount: number;
|
|
9
|
-
|
|
9
|
+
telephony_system: string;
|
|
10
|
+
constructor(ccd_case_number: string, amount: number, caseType: string, telephony_system: string);
|
|
10
11
|
}
|
|
@@ -38,6 +38,7 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
38
38
|
LOGGEDINUSERROLES: any[];
|
|
39
39
|
LOGGEDINUSEREMAIL: string;
|
|
40
40
|
isFromServiceRequestPage: boolean;
|
|
41
|
+
telephonySelectionEnable: boolean;
|
|
41
42
|
paymentMethod: string;
|
|
42
43
|
bspaymentdcn: string;
|
|
43
44
|
unProcessedPaymentServiceId: string;
|
|
@@ -133,6 +134,23 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
133
134
|
* @param feeCode this is the fee code used to find out all refunds rejected refunds.
|
|
134
135
|
*/
|
|
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;
|
|
136
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentLibComponent, never>;
|
|
137
|
-
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; }; }, {}, never, never, false, 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>;
|
|
138
156
|
}
|