@hmcts/ccpay-web-component 5.0.1-beta113 → 5.0.1-beta118
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/bundles/hmcts-ccpay-web-component.umd.js +416 -63
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/add-remission/add-remission.component.js +358 -41
- package/esm2015/lib/components/payment-view/payment-view.component.js +5 -2
- package/esm2015/lib/components/process-refund/process-refund.component.js +6 -3
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +16 -4
- package/esm2015/lib/services/payment-view/payment-view.service.js +1 -1
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
- package/esm5/lib/components/add-remission/add-remission.component.js +437 -48
- package/esm5/lib/components/payment-view/payment-view.component.js +5 -2
- package/esm5/lib/components/process-refund/process-refund.component.js +6 -3
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +12 -3
- package/esm5/lib/services/payment-view/payment-view.service.js +1 -1
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
- package/fesm2015/hmcts-ccpay-web-component.js +358 -60
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +433 -63
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +23 -2
- package/lib/components/payment-view/payment-view.component.d.ts +1 -0
- package/lib/components/process-refund/process-refund.component.d.ts +1 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +5 -2
- package/lib/services/payment-view/payment-view.service.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
|
|
3
3
|
import { IFee } from '../../interfaces/IFee';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
@@ -11,6 +11,7 @@ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
|
11
11
|
import { ChangeDetectorRef } from '@angular/core';
|
|
12
12
|
import { IRemission } from '../../interfaces/IRemission';
|
|
13
13
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
14
|
+
import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
|
|
14
15
|
export declare class AddRemissionComponent implements OnInit {
|
|
15
16
|
private formBuilder;
|
|
16
17
|
private router;
|
|
@@ -20,6 +21,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
20
21
|
private cd;
|
|
21
22
|
private OrderslistService;
|
|
22
23
|
fee: IFee;
|
|
24
|
+
fees: any[];
|
|
23
25
|
payment: IPayment;
|
|
24
26
|
remission: IRemission;
|
|
25
27
|
ccdCaseNumber: string;
|
|
@@ -91,6 +93,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
91
93
|
isPaymentSuccess: boolean;
|
|
92
94
|
isRemissionApplied: boolean;
|
|
93
95
|
remissionamt: number;
|
|
96
|
+
elementId: any;
|
|
94
97
|
commonRefundReasons: any[];
|
|
95
98
|
showReasonText: boolean;
|
|
96
99
|
isRefundReasonsSelected: boolean;
|
|
@@ -101,6 +104,17 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
101
104
|
pattern2: string;
|
|
102
105
|
sendOrderDetail: any[];
|
|
103
106
|
sendOrderRef: string;
|
|
107
|
+
paymentReference: string;
|
|
108
|
+
class: string;
|
|
109
|
+
errorMsg: any[];
|
|
110
|
+
totalRefundAmount: number;
|
|
111
|
+
quantityUpdated: number;
|
|
112
|
+
fullRefund: boolean;
|
|
113
|
+
allowedRefundAmount: number;
|
|
114
|
+
isRemissionsMatch: boolean;
|
|
115
|
+
paymentFees: IFee[];
|
|
116
|
+
paymentGroup: IPaymentGroup;
|
|
117
|
+
isStatusAllocated: boolean;
|
|
104
118
|
component: {
|
|
105
119
|
account_number: string;
|
|
106
120
|
amount: number;
|
|
@@ -122,6 +136,10 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
122
136
|
};
|
|
123
137
|
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
124
138
|
ngOnInit(): void;
|
|
139
|
+
refundFeesList(): void;
|
|
140
|
+
readonly feesList: FormArray;
|
|
141
|
+
noneSelected(): boolean;
|
|
142
|
+
check_en(v1: any): void;
|
|
125
143
|
addRemission(): void;
|
|
126
144
|
confirmRemission(): void;
|
|
127
145
|
resetRemissionForm(val: any, field: any): void;
|
|
@@ -135,10 +153,12 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
135
153
|
processRefund(): void;
|
|
136
154
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
137
155
|
gotoIssueRefundPage(): void;
|
|
156
|
+
gotoIssuePage(): void;
|
|
138
157
|
gotoContactDetailsPage(): void;
|
|
158
|
+
getRefundReasons(): void;
|
|
159
|
+
getErrorClass(elementId: any): void;
|
|
139
160
|
changeIssueRefundReason(): void;
|
|
140
161
|
confirmIssueRefund(): void;
|
|
141
|
-
confirmRetroRefund(): void;
|
|
142
162
|
selectRadioButton(key: any, value: any): void;
|
|
143
163
|
selectchange(args: any): void;
|
|
144
164
|
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
@@ -148,5 +168,6 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
148
168
|
gotoCasetransationPage(): void;
|
|
149
169
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
150
170
|
resetOrderData(): void;
|
|
171
|
+
changeRefundAmount(): void;
|
|
151
172
|
getFormattedCurrency(currency: number): string | number;
|
|
152
173
|
}
|
|
@@ -48,6 +48,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
48
48
|
serviceReference: string;
|
|
49
49
|
isFromServiceRequestPage: boolean;
|
|
50
50
|
isFromPaymentDetailPage: boolean;
|
|
51
|
+
paymentFees: IFee[];
|
|
51
52
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
52
53
|
ngAfterContentChecked(): void;
|
|
53
54
|
ngOnInit(): void;
|
|
@@ -43,9 +43,9 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
43
43
|
successMsg: string;
|
|
44
44
|
navigationpage: string;
|
|
45
45
|
ccdCaseNumber: string;
|
|
46
|
+
isFromRefundListPage: boolean;
|
|
46
47
|
cpoDetails: any;
|
|
47
48
|
isCPODown: boolean;
|
|
48
|
-
isFromRefundListPage: boolean;
|
|
49
49
|
isConfirmButtondisabled: boolean;
|
|
50
50
|
constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
51
51
|
ngOnInit(): void;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { IRefundContactDetails } from
|
|
1
|
+
import { IRefundContactDetails } from "./IRefundContactDetails";
|
|
2
2
|
export declare class PostRefundRetroRemission {
|
|
3
|
+
ccd_case_number: string;
|
|
3
4
|
payment_reference: string;
|
|
4
5
|
refund_reason: string;
|
|
6
|
+
refund_amount: any;
|
|
7
|
+
fees: any[];
|
|
5
8
|
contact_details: IRefundContactDetails;
|
|
6
|
-
constructor(payment_reference: string, refund_reason: string,
|
|
9
|
+
constructor(ccd_case_number: string, payment_reference: string, refund_reason: string, refund_amount: any, fees: any[], contact_details: any);
|
|
7
10
|
}
|
|
@@ -19,7 +19,6 @@ import { IserviceRequestPbaPayment } from '../../interfaces/IserviceRequestPbaPa
|
|
|
19
19
|
import { IserviceRequestCardPayment } from '../../interfaces/IserviceRequestCardPayment';
|
|
20
20
|
import { AddRetroRemissionRequest } from '../../interfaces/AddRetroRemissionRequest';
|
|
21
21
|
import { PostRefundRetroRemission } from '../../interfaces/PostRefundRetroRemission';
|
|
22
|
-
import { PostIssueRefundRetroRemission } from '../../interfaces/PostIssueRefundRetroRemission';
|
|
23
22
|
export declare class PaymentViewService {
|
|
24
23
|
private http;
|
|
25
24
|
private https;
|
|
@@ -51,5 +50,5 @@ export declare class PaymentViewService {
|
|
|
51
50
|
getOrdersList(): BehaviorSubject<IOrderReferenceFee[]>;
|
|
52
51
|
postRefundsReason(body: PostRefundRetroRemission): Observable<any>;
|
|
53
52
|
postPaymentGroupWithRetroRemissions(paymentGroupReference: string, feeId: number, body: AddRetroRemissionRequest): Observable<any>;
|
|
54
|
-
postRefundRetroRemission(body:
|
|
53
|
+
postRefundRetroRemission(body: PostRefundRetroRemission): Observable<any>;
|
|
55
54
|
}
|