@hmcts/ccpay-web-component 6.2.6 → 6.2.7-beta02
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/add-remission/add-remission.component.mjs +2 -2
- package/esm2022/lib/components/case-transactions/case-transactions.component.mjs +32 -4
- package/esm2022/lib/components/payment-view/payment-view.component.mjs +48 -13
- package/esm2022/lib/components/reports/reports.component.mjs +38 -4
- package/esm2022/lib/components/service-request/service-request.component.mjs +58 -17
- package/esm2022/lib/interfaces/IPaymentGroup.mjs +1 -1
- package/esm2022/lib/interfaces/IRefundList.mjs +1 -1
- package/esm2022/lib/payment-lib.component.mjs +30 -1
- package/esm2022/lib/services/payment-view/payment-view.service.mjs +5 -1
- package/esm2022/lib/services/xl-file/xl-file.service.mjs +17 -1
- package/fesm2022/hmcts-ccpay-web-component.mjs +221 -34
- package/fesm2022/hmcts-ccpay-web-component.mjs.map +1 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +3 -2
- package/lib/components/payment-view/payment-view.component.d.ts +4 -0
- package/lib/components/service-request/service-request.component.d.ts +6 -2
- package/lib/interfaces/IPaymentGroup.d.ts +2 -0
- package/lib/interfaces/IRefundList.d.ts +1 -0
- package/lib/payment-lib.component.d.ts +17 -0
- package/lib/services/payment-view/payment-view.service.d.ts +1 -0
- package/lib/services/xl-file/xl-file.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
3
2
|
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
4
3
|
import { CaseTransactionsService } from '../../services/case-transactions/case-transactions.service';
|
|
5
4
|
import { BulkScaningPaymentService } from '../../services/bulk-scaning-payment/bulk-scaning-payment.service';
|
|
@@ -11,6 +10,7 @@ import { IRemission } from '../../interfaces/IRemission';
|
|
|
11
10
|
import { IPaymentView } from '../../interfaces/IPaymentView';
|
|
12
11
|
import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
|
|
13
12
|
import { Router } from '@angular/router';
|
|
13
|
+
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
type PaymentLibAlias = PaymentLibComponent;
|
|
16
16
|
export declare class CaseTransactionsComponent implements OnInit {
|
|
@@ -103,9 +103,10 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
103
103
|
redirectToOrderFeeSearchPage(event: any, orderef: any): void;
|
|
104
104
|
calculateAmounts(): void;
|
|
105
105
|
isThereRemissions(): boolean;
|
|
106
|
-
|
|
106
|
+
calculateOverpaymentBasedOnRemission(): void;
|
|
107
107
|
calculateAmountDueTo(): void;
|
|
108
108
|
validateAmountDueTo(): void;
|
|
109
|
+
calculateOverpaymentBaseOnAcceptedRefund(): void;
|
|
109
110
|
canItCalculateAmountDueForRemission(): boolean;
|
|
110
111
|
calculateRefundAmount(): number;
|
|
111
112
|
getGroupOutstandingAmount(paymentGroup: IPaymentGroup): number;
|
|
@@ -85,6 +85,10 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
85
85
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
86
86
|
goToPaymentViewComponent(): void;
|
|
87
87
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
88
|
+
isAnyRefundsForThisCase(): boolean;
|
|
89
|
+
showOverPayment(): void;
|
|
90
|
+
showIssueRefundPage(paymentgrp: IPaymentGroup): void;
|
|
91
|
+
getBalanceToBePaid(): number;
|
|
88
92
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
89
93
|
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
90
94
|
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
2
|
import { IPayment } from '../../interfaces/IPayment';
|
|
4
3
|
import { IRemission } from '../../interfaces/IRemission';
|
|
5
4
|
import { IPaymentView } from '../../interfaces/IPaymentView';
|
|
@@ -11,6 +10,7 @@ import { PaymentViewService } from '../../services/payment-view/payment-view.ser
|
|
|
11
10
|
import { NotificationService } from '../../services/notification/notification.service';
|
|
12
11
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
13
12
|
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
13
|
+
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
type PaymentLibAlias = PaymentLibComponent;
|
|
16
16
|
export declare class ServiceRequestComponent implements OnInit {
|
|
@@ -112,6 +112,10 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
112
112
|
cancelRemoval(): void;
|
|
113
113
|
removeFee(fee: any): void;
|
|
114
114
|
issueRefund(payment: IPayment): void;
|
|
115
|
+
isAnyRefundsForThisCase(): boolean;
|
|
116
|
+
showOverPayment(paymentgrp: IPaymentGroup, payment: any): void;
|
|
117
|
+
showIssueRefundPage(paymentgrp: IPaymentGroup, payment: any): void;
|
|
118
|
+
getBalanceToBePaid(): number;
|
|
115
119
|
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
116
120
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
117
121
|
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { IFee } from './IFee';
|
|
2
2
|
import { IPayment } from './IPayment';
|
|
3
3
|
import { IRemission } from './IRemission';
|
|
4
|
+
import { IRefundList } from "./IRefundList";
|
|
4
5
|
export interface IPaymentGroup {
|
|
5
6
|
payment_group_reference: string;
|
|
6
7
|
payments: IPayment[];
|
|
7
8
|
remissions: IRemission[];
|
|
8
9
|
fees: IFee[];
|
|
10
|
+
refunds: IRefundList[];
|
|
9
11
|
}
|
|
@@ -3,6 +3,9 @@ import { PaymentLibService } from './payment-lib.service';
|
|
|
3
3
|
import { IBSPayments } from './interfaces/IBSPayments';
|
|
4
4
|
import { OrderslistService } from './services/orderslist.service';
|
|
5
5
|
import { IPayment } from './interfaces/IPayment';
|
|
6
|
+
import { IPaymentGroup } from "./interfaces/IPaymentGroup";
|
|
7
|
+
import { IRefundList } from "./interfaces/IRefundList";
|
|
8
|
+
import { IFee } from "./interfaces/IFee";
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
export declare class PaymentLibComponent implements OnInit {
|
|
8
11
|
private paymentLibService;
|
|
@@ -66,9 +69,23 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
66
69
|
orderRemissionTotal: number;
|
|
67
70
|
orderTotalPayments: number;
|
|
68
71
|
orderPendingPayments: number;
|
|
72
|
+
paymentGroup: IPaymentGroup;
|
|
73
|
+
overPaymentAmount: number;
|
|
74
|
+
refunds: IRefundList[];
|
|
69
75
|
constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
70
76
|
ngAfterContentChecked(): void;
|
|
71
77
|
ngOnInit(): void;
|
|
78
|
+
/**
|
|
79
|
+
* This function is used to find out if the current refunds list are in progress for the fee passed as parameter
|
|
80
|
+
* @param fee this is the fee used to find out if the refunds are in progress.
|
|
81
|
+
*/
|
|
82
|
+
isTheCurrentRefundInProcessForThisFee(fee: IFee): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* This function is used to find out if in current list of refunds all refunds has been rejected
|
|
85
|
+
* for the fee passed as parameter.
|
|
86
|
+
* @param feeCode this is the fee code used to find out all refunds rejected refunds.
|
|
87
|
+
*/
|
|
88
|
+
isTheCurrentRefundRejectedForTheFee(feeCode: string): boolean;
|
|
72
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentLibComponent, never>;
|
|
73
90
|
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>;
|
|
74
91
|
}
|
|
@@ -46,6 +46,7 @@ export declare class PaymentViewService {
|
|
|
46
46
|
postPaymentAntennaToPayHub(body: PayhubAntennaRequest, paymentGroupRef: string): Observable<any>;
|
|
47
47
|
downloadSelectedReport(reportName: string, startDate: string, endDate: string): Observable<any>;
|
|
48
48
|
downloadFailureReport(startDate: string, endDate: string): Observable<any>;
|
|
49
|
+
downloadTelephonyPaymentsReport(startDate: string, endDate: string): Observable<any>;
|
|
49
50
|
getBSfeature(): Observable<any>;
|
|
50
51
|
getSiteID(): Observable<any>;
|
|
51
52
|
getPartyDetails(caseNumber: string): Observable<any>;
|
|
@@ -9,6 +9,7 @@ export declare class XlFileService {
|
|
|
9
9
|
private setProcessedUnallocatedReportHeaders;
|
|
10
10
|
private setPaymentFailureReportHeaders;
|
|
11
11
|
private setShortFallReportHeaders;
|
|
12
|
+
private setTelphonyPaymentsReportHeaders;
|
|
12
13
|
private sanitizeString;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<XlFileService, never>;
|
|
14
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<XlFileService>;
|