@hmcts/ccpay-web-component 6.2.3-beta5 → 6.2.4-beta01
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 +6 -2
- package/esm2022/lib/components/case-transactions/case-transactions.component.mjs +1 -27
- package/esm2022/lib/components/payment-view/payment-view.component.mjs +13 -53
- package/esm2022/lib/components/service-request/service-request.component.mjs +17 -63
- package/esm2022/lib/interfaces/IPaymentGroup.mjs +1 -1
- package/esm2022/lib/interfaces/IRefundList.mjs +1 -1
- package/esm2022/lib/payment-lib.component.mjs +1 -4
- package/fesm2022/hmcts-ccpay-web-component.mjs +32 -143
- package/fesm2022/hmcts-ccpay-web-component.mjs.map +1 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +1 -2
- package/lib/components/payment-view/payment-view.component.d.ts +0 -6
- package/lib/components/service-request/service-request.component.d.ts +2 -8
- package/lib/interfaces/IPaymentGroup.d.ts +0 -2
- package/lib/interfaces/IRefundList.d.ts +0 -1
- package/lib/payment-lib.component.d.ts +0 -5
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
2
3
|
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
3
4
|
import { CaseTransactionsService } from '../../services/case-transactions/case-transactions.service';
|
|
4
5
|
import { BulkScaningPaymentService } from '../../services/bulk-scaning-payment/bulk-scaning-payment.service';
|
|
@@ -10,7 +11,6 @@ import { IRemission } from '../../interfaces/IRemission';
|
|
|
10
11
|
import { IPaymentView } from '../../interfaces/IPaymentView';
|
|
11
12
|
import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
|
|
12
13
|
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 {
|
|
@@ -106,7 +106,6 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
106
106
|
calculateOverpayment(): void;
|
|
107
107
|
calculateAmountDueTo(): void;
|
|
108
108
|
validateAmountDueTo(): void;
|
|
109
|
-
calculateOverpaymentBaseOnAcceptedRefund(): void;
|
|
110
109
|
canItCalculateAmountDueForRemission(): boolean;
|
|
111
110
|
calculateRefundAmount(): number;
|
|
112
111
|
getGroupOutstandingAmount(paymentGroup: IPaymentGroup): number;
|
|
@@ -8,7 +8,6 @@ import { IRemission } from '../../interfaces/IRemission';
|
|
|
8
8
|
import { IPaymentFailure } from '../../interfaces/IPaymentFailure';
|
|
9
9
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
10
10
|
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
11
|
-
import { IRefundList } from "../../interfaces/IRefundList";
|
|
12
11
|
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
type PaymentLibAlias = PaymentLibComponent;
|
|
@@ -86,11 +85,6 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
86
85
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
87
86
|
goToPaymentViewComponent(): void;
|
|
88
87
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
89
|
-
isAnyRefundsForThisCase(): boolean;
|
|
90
|
-
showOverPayment(): void;
|
|
91
|
-
showIssueRefundPage(paymentgrp: IPaymentGroup): void;
|
|
92
|
-
getBalanceToBePaid(): number;
|
|
93
|
-
getRefundByFeeID(feeCode: string): IRefundList;
|
|
94
88
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
95
89
|
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
96
90
|
chkIsAddRefundBtnEnable(remission: IRemission): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
2
3
|
import { IPayment } from '../../interfaces/IPayment';
|
|
3
4
|
import { IRemission } from '../../interfaces/IRemission';
|
|
4
5
|
import { IPaymentView } from '../../interfaces/IPaymentView';
|
|
@@ -10,8 +11,6 @@ import { PaymentViewService } from '../../services/payment-view/payment-view.ser
|
|
|
10
11
|
import { NotificationService } from '../../services/notification/notification.service';
|
|
11
12
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
12
13
|
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
13
|
-
import { IRefundList } from "../../interfaces/IRefundList";
|
|
14
|
-
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
15
14
|
import * as i0 from "@angular/core";
|
|
16
15
|
type PaymentLibAlias = PaymentLibComponent;
|
|
17
16
|
export declare class ServiceRequestComponent implements OnInit {
|
|
@@ -113,11 +112,6 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
113
112
|
cancelRemoval(): void;
|
|
114
113
|
removeFee(fee: any): void;
|
|
115
114
|
issueRefund(payment: IPayment): void;
|
|
116
|
-
isAnyRefundsForThisCase(): boolean;
|
|
117
|
-
showOverPayment(paymentgrp: IPaymentGroup, payment: any): void;
|
|
118
|
-
showIssueRefundPage(paymentgrp: IPaymentGroup, payment: any): void;
|
|
119
|
-
getBalanceToBePaid(): number;
|
|
120
|
-
getRefundByFeeID(feeCode: string): IRefundList;
|
|
121
115
|
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
122
116
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
123
117
|
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { IFee } from './IFee';
|
|
2
2
|
import { IPayment } from './IPayment';
|
|
3
3
|
import { IRemission } from './IRemission';
|
|
4
|
-
import { IRefundList } from "./IRefundList";
|
|
5
4
|
export interface IPaymentGroup {
|
|
6
5
|
payment_group_reference: string;
|
|
7
6
|
payments: IPayment[];
|
|
8
7
|
remissions: IRemission[];
|
|
9
8
|
fees: IFee[];
|
|
10
|
-
refunds: IRefundList[];
|
|
11
9
|
}
|
|
@@ -3,8 +3,6 @@ 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
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
export declare class PaymentLibComponent implements OnInit {
|
|
10
8
|
private paymentLibService;
|
|
@@ -68,9 +66,6 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
68
66
|
orderRemissionTotal: number;
|
|
69
67
|
orderTotalPayments: number;
|
|
70
68
|
orderPendingPayments: number;
|
|
71
|
-
paymentGroup: IPaymentGroup;
|
|
72
|
-
balanceToBePaid: number;
|
|
73
|
-
refunds: IRefundList[];
|
|
74
69
|
constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
75
70
|
ngAfterContentChecked(): void;
|
|
76
71
|
ngOnInit(): void;
|