@hmcts/ccpay-web-component 6.2.3-beta3 → 6.2.3-beta5
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 +8 -1
- package/esm2022/lib/components/payment-view/payment-view.component.mjs +51 -11
- package/esm2022/lib/components/service-request/service-request.component.mjs +61 -15
- package/esm2022/lib/interfaces/IRefundList.mjs +1 -1
- package/esm2022/lib/payment-lib.component.mjs +4 -1
- package/fesm2022/hmcts-ccpay-web-component.mjs +120 -24
- package/fesm2022/hmcts-ccpay-web-component.mjs.map +1 -1
- package/lib/components/payment-view/payment-view.component.d.ts +6 -0
- package/lib/components/service-request/service-request.component.d.ts +8 -2
- package/lib/interfaces/IRefundList.d.ts +1 -0
- package/lib/payment-lib.component.d.ts +5 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ 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";
|
|
11
12
|
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
type PaymentLibAlias = PaymentLibComponent;
|
|
@@ -85,6 +86,11 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
85
86
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
86
87
|
goToPaymentViewComponent(): void;
|
|
87
88
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
89
|
+
isAnyRefundsForThisCase(): boolean;
|
|
90
|
+
showOverPayment(): void;
|
|
91
|
+
showIssueRefundPage(paymentgrp: IPaymentGroup): void;
|
|
92
|
+
getBalanceToBePaid(): number;
|
|
93
|
+
getRefundByFeeID(feeCode: string): IRefundList;
|
|
88
94
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
89
95
|
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
90
96
|
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,8 @@ 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 { IRefundList } from "../../interfaces/IRefundList";
|
|
14
|
+
import type { PaymentLibComponent } from '../../payment-lib.component';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
type PaymentLibAlias = PaymentLibComponent;
|
|
16
17
|
export declare class ServiceRequestComponent implements OnInit {
|
|
@@ -112,6 +113,11 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
112
113
|
cancelRemoval(): void;
|
|
113
114
|
removeFee(fee: any): void;
|
|
114
115
|
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;
|
|
115
121
|
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
116
122
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
117
123
|
chkIsIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
@@ -3,6 +3,8 @@ 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";
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
export declare class PaymentLibComponent implements OnInit {
|
|
8
10
|
private paymentLibService;
|
|
@@ -66,6 +68,9 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
66
68
|
orderRemissionTotal: number;
|
|
67
69
|
orderTotalPayments: number;
|
|
68
70
|
orderPendingPayments: number;
|
|
71
|
+
paymentGroup: IPaymentGroup;
|
|
72
|
+
balanceToBePaid: number;
|
|
73
|
+
refunds: IRefundList[];
|
|
69
74
|
constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
70
75
|
ngAfterContentChecked(): void;
|
|
71
76
|
ngOnInit(): void;
|