@hmcts/ccpay-web-component 5.0.1-beta99 → 5.0.2-beta10
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 +1299 -266
- 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/hmcts-ccpay-web-component.js +34 -33
- package/esm2015/lib/components/add-remission/add-remission.component.js +501 -59
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +78 -40
- package/esm2015/lib/components/contact-details/contact-details.component.js +71 -11
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +1 -3
- package/esm2015/lib/components/payment-view/payment-view.component.js +83 -14
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +248 -0
- package/esm2015/lib/components/process-refund/process-refund.component.js +37 -4
- package/esm2015/lib/components/refund-status/refund-status.component.js +10 -6
- package/esm2015/lib/components/service-request/service-request.component.js +29 -13
- package/esm2015/lib/components/table/table.component.js +24 -9
- package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
- package/esm2015/lib/interfaces/IFee.js +3 -1
- package/esm2015/lib/interfaces/IRefundList.js +5 -1
- package/esm2015/lib/interfaces/IRemission.js +3 -1
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +32 -0
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +16 -4
- package/esm2015/lib/payment-lib.component.js +10 -4
- package/esm2015/lib/payment-lib.module.js +3 -3
- package/esm2015/lib/payment-lib.service.js +16 -1
- package/esm2015/lib/services/notification/notification.service.js +2 -2
- package/esm2015/lib/services/payment-view/payment-view.service.js +35 -1
- package/esm2015/lib/services/refunds/refunds.service.js +16 -3
- package/esm2015/lib/services/shared/error-handler.service.js +19 -10
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
- package/esm5/hmcts-ccpay-web-component.js +34 -33
- package/esm5/lib/components/add-remission/add-remission.component.js +597 -64
- package/esm5/lib/components/case-transactions/case-transactions.component.js +87 -40
- package/esm5/lib/components/contact-details/contact-details.component.js +72 -11
- package/esm5/lib/components/fee-summary/fee-summary.component.js +1 -3
- package/esm5/lib/components/payment-view/payment-view.component.js +106 -14
- package/esm5/lib/components/pba-payment/pba-payment.component.js +269 -0
- package/esm5/lib/components/process-refund/process-refund.component.js +36 -4
- package/esm5/lib/components/refund-status/refund-status.component.js +12 -7
- package/esm5/lib/components/service-request/service-request.component.js +33 -13
- package/esm5/lib/components/table/table.component.js +27 -9
- package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
- package/esm5/lib/interfaces/IFee.js +3 -1
- package/esm5/lib/interfaces/IRefundList.js +5 -1
- package/esm5/lib/interfaces/IRemission.js +3 -1
- package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +12 -3
- package/esm5/lib/payment-lib.component.js +8 -3
- package/esm5/lib/payment-lib.module.js +3 -3
- package/esm5/lib/payment-lib.service.js +23 -1
- package/esm5/lib/services/notification/notification.service.js +2 -2
- package/esm5/lib/services/payment-view/payment-view.service.js +48 -1
- package/esm5/lib/services/refunds/refunds.service.js +16 -3
- package/esm5/lib/services/shared/error-handler.service.js +19 -10
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
- package/fesm2015/hmcts-ccpay-web-component.js +1143 -239
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +1301 -236
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +33 -32
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +32 -5
- package/lib/components/case-transactions/case-transactions.component.d.ts +7 -0
- package/lib/components/contact-details/contact-details.component.d.ts +8 -2
- package/lib/components/payment-view/payment-view.component.d.ts +14 -1
- package/lib/components/pba-payment/pba-payment.component.d.ts +33 -0
- package/lib/components/process-refund/process-refund.component.d.ts +6 -1
- package/lib/components/refund-status/refund-status.component.d.ts +3 -3
- package/lib/components/service-request/service-request.component.d.ts +5 -2
- package/lib/components/table/table.component.d.ts +1 -0
- package/lib/interfaces/IFee.d.ts +1 -0
- package/lib/interfaces/IRefundList.d.ts +3 -0
- package/lib/interfaces/IRemission.d.ts +1 -0
- package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +8 -0
- package/lib/interfaces/PostRefundRetroRemission.d.ts +5 -2
- package/lib/payment-lib.component.d.ts +3 -0
- package/lib/payment-lib.service.d.ts +3 -0
- package/lib/services/payment-view/payment-view.service.d.ts +5 -0
- package/package.json +5 -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;
|
|
@@ -62,6 +64,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
62
64
|
};
|
|
63
65
|
};
|
|
64
66
|
contactDetailsObj: IRefundContactDetails;
|
|
67
|
+
notification: any;
|
|
65
68
|
remissionForm: FormGroup;
|
|
66
69
|
hasErrors: boolean;
|
|
67
70
|
viewStatus: string;
|
|
@@ -91,6 +94,7 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
91
94
|
isPaymentSuccess: boolean;
|
|
92
95
|
isRemissionApplied: boolean;
|
|
93
96
|
remissionamt: number;
|
|
97
|
+
elementId: any;
|
|
94
98
|
commonRefundReasons: any[];
|
|
95
99
|
showReasonText: boolean;
|
|
96
100
|
isRefundReasonsSelected: boolean;
|
|
@@ -101,6 +105,19 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
101
105
|
pattern2: string;
|
|
102
106
|
sendOrderDetail: any[];
|
|
103
107
|
sendOrderRef: string;
|
|
108
|
+
paymentReference: string;
|
|
109
|
+
class: string;
|
|
110
|
+
errorMsg: any[];
|
|
111
|
+
totalRefundAmount: number;
|
|
112
|
+
quantityUpdated: number;
|
|
113
|
+
fullRefund: boolean;
|
|
114
|
+
allowedRefundAmount: number;
|
|
115
|
+
isRemissionsMatch: boolean;
|
|
116
|
+
paymentFees: IFee[];
|
|
117
|
+
paymentGroup: IPaymentGroup;
|
|
118
|
+
isStatusAllocated: boolean;
|
|
119
|
+
isFromCheckAnsPage: boolean;
|
|
120
|
+
refundAmtForFeeVolumes: number;
|
|
104
121
|
component: {
|
|
105
122
|
account_number: string;
|
|
106
123
|
amount: number;
|
|
@@ -122,6 +139,10 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
122
139
|
};
|
|
123
140
|
constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
124
141
|
ngOnInit(): void;
|
|
142
|
+
refundFeesList(): void;
|
|
143
|
+
readonly feesList: FormArray;
|
|
144
|
+
noneSelected(): boolean;
|
|
145
|
+
check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
|
|
125
146
|
addRemission(): void;
|
|
126
147
|
confirmRemission(): void;
|
|
127
148
|
resetRemissionForm(val: any, field: any): void;
|
|
@@ -130,23 +151,29 @@ export declare class AddRemissionComponent implements OnInit {
|
|
|
130
151
|
gotoCheckRetroRemissionPage(payment: IPayment): void;
|
|
131
152
|
gotoAmountRetroRemission(): void;
|
|
132
153
|
gotoProcessRetroRemissionPage(): void;
|
|
133
|
-
gotoProcessRetroRemission(): void;
|
|
154
|
+
gotoProcessRetroRemission(note?: IRefundContactDetails): void;
|
|
134
155
|
confirmRetroRemission(): void;
|
|
135
156
|
processRefund(): void;
|
|
136
157
|
gotoIssueRefundConfirmation(payment: IPayment): void;
|
|
137
158
|
gotoIssueRefundPage(): void;
|
|
138
|
-
|
|
159
|
+
gotoIssuePage(): void;
|
|
160
|
+
calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
|
|
161
|
+
gotoContactDetailsPage(note?: IRefundContactDetails): void;
|
|
162
|
+
getRefundReasons(): void;
|
|
163
|
+
getErrorClass(elementId: any): void;
|
|
139
164
|
changeIssueRefundReason(): void;
|
|
140
165
|
confirmIssueRefund(): void;
|
|
141
|
-
|
|
166
|
+
gotoRefundReasonPage(): void;
|
|
142
167
|
selectRadioButton(key: any, value: any): void;
|
|
143
168
|
selectchange(args: any): void;
|
|
144
169
|
getContactDetails(obj: IRefundContactDetails, type: any): void;
|
|
170
|
+
gotoPartialFeeRefundScreen(): void;
|
|
145
171
|
gotoServiceRequestPage(event: any): void;
|
|
146
|
-
gotoAddressPage(): void;
|
|
172
|
+
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
147
173
|
gotoRemissionSuccess(event: Event): void;
|
|
148
174
|
gotoCasetransationPage(): void;
|
|
149
175
|
gotoCasetransationPageCancelBtnClicked(event: Event): void;
|
|
150
176
|
resetOrderData(): void;
|
|
177
|
+
changeRefundAmount(): void;
|
|
151
178
|
getFormattedCurrency(currency: number): string | number;
|
|
152
179
|
}
|
|
@@ -55,6 +55,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
55
55
|
isRemoveBtnDisabled: boolean;
|
|
56
56
|
feeId: IFee;
|
|
57
57
|
clAmountDue: number;
|
|
58
|
+
overPaymentAmount: number;
|
|
58
59
|
unprocessedRecordCount: number;
|
|
59
60
|
isFeeRecordsExist: boolean;
|
|
60
61
|
isGrpOutstandingAmtPositive: boolean;
|
|
@@ -67,6 +68,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
67
68
|
isAddRemissionEnable: boolean;
|
|
68
69
|
orderRemissionDetails: any[];
|
|
69
70
|
orderLevelFees: IOrderReferenceFee[];
|
|
71
|
+
ispaymentGroupApisuccess: boolean;
|
|
70
72
|
cpoDetails: any;
|
|
71
73
|
orderRef: string;
|
|
72
74
|
orderStatus: string;
|
|
@@ -86,6 +88,8 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
86
88
|
isAddRemissionBtnEnabled: boolean;
|
|
87
89
|
isRefundRemissionBtnEnable: boolean;
|
|
88
90
|
allowedRolesToAccessRefund: string[];
|
|
91
|
+
isEligible4PBAPayment: string[];
|
|
92
|
+
currentDate: Date;
|
|
89
93
|
isFromServiceRequestPage: boolean;
|
|
90
94
|
navigationpage: string;
|
|
91
95
|
remissionFeeAmt: number;
|
|
@@ -105,6 +109,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
105
109
|
addRemission(fee: IFee): void;
|
|
106
110
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
107
111
|
redirectToremissionPage(event: any): void;
|
|
112
|
+
goToServiceRequestPage(): void;
|
|
108
113
|
redirectToReportsPage(event: any): void;
|
|
109
114
|
loadFeeSummaryPage(paymentGroup: IPaymentGroup): void;
|
|
110
115
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
@@ -122,5 +127,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
122
127
|
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
123
128
|
chkIsRefundRemissionBtnEnable(): boolean;
|
|
124
129
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
130
|
+
check4AllowedRoles2AccessPBApayment: () => boolean;
|
|
125
131
|
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
132
|
+
loadPBAAccountPage(orderRef: IPayment): void;
|
|
126
133
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
|
+
import { NotificationService } from '../../services/notification/notification.service';
|
|
4
5
|
export declare class ContactDetailsComponent implements OnInit {
|
|
5
6
|
private formBuilder;
|
|
7
|
+
private notificationService;
|
|
6
8
|
private paymentLibComponent;
|
|
7
9
|
isEditOperation: boolean;
|
|
8
10
|
addressObj: any;
|
|
@@ -11,11 +13,15 @@ export declare class ContactDetailsComponent implements OnInit {
|
|
|
11
13
|
pageTitle: string;
|
|
12
14
|
errorMessage: string;
|
|
13
15
|
isEmailSAddressClicked: boolean;
|
|
16
|
+
isShowPickAddress: boolean;
|
|
14
17
|
isPostcodeClicked: boolean;
|
|
15
18
|
isManualAddressClicked: boolean;
|
|
16
19
|
emailAddressForm: FormGroup;
|
|
17
20
|
postCodeForm: FormGroup;
|
|
18
21
|
manualAddressForm: FormGroup;
|
|
22
|
+
addressPostcodeList: any[];
|
|
23
|
+
postcodeAddress: any;
|
|
24
|
+
isAddressBoxEmpty: boolean;
|
|
19
25
|
isEmailEmpty: boolean;
|
|
20
26
|
emailHasError: boolean;
|
|
21
27
|
isPostcodeEmpty: boolean;
|
|
@@ -30,12 +36,12 @@ export declare class ContactDetailsComponent implements OnInit {
|
|
|
30
36
|
isMPostcodeEmpty: boolean;
|
|
31
37
|
mpostcodeHasError: boolean;
|
|
32
38
|
isCountryEmpty: boolean;
|
|
33
|
-
constructor(formBuilder: FormBuilder, paymentLibComponent: PaymentLibComponent);
|
|
39
|
+
constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
|
|
34
40
|
ngOnInit(): void;
|
|
35
41
|
setEditDetails(): void;
|
|
36
42
|
selectContactOption(type: any, isLinkedClied: any): void;
|
|
37
43
|
finalFormSubmit(): void;
|
|
38
|
-
postcodeValidation(): void;
|
|
44
|
+
postcodeValidation(str: any): void;
|
|
39
45
|
redirection(event: any): void;
|
|
40
46
|
resetForm(val: any, field: any): void;
|
|
41
47
|
}
|
|
@@ -7,6 +7,7 @@ import { IPayment } from '../../interfaces/IPayment';
|
|
|
7
7
|
import { IRemission } from '../../interfaces/IRemission';
|
|
8
8
|
import { ChangeDetectorRef } from '@angular/core';
|
|
9
9
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
10
|
+
import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
|
|
10
11
|
export declare class PaymentViewComponent implements OnInit {
|
|
11
12
|
private paymentViewService;
|
|
12
13
|
private paymentLibComponent;
|
|
@@ -48,6 +49,12 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
48
49
|
serviceReference: string;
|
|
49
50
|
isFromServiceRequestPage: boolean;
|
|
50
51
|
isFromPaymentDetailPage: boolean;
|
|
52
|
+
paymentFees: IFee[];
|
|
53
|
+
paymentType: string;
|
|
54
|
+
isContinueBtnDisabled: boolean;
|
|
55
|
+
viewCompStatus: string;
|
|
56
|
+
contactDetailsObj: IRefundContactDetails;
|
|
57
|
+
notification: any;
|
|
51
58
|
constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
|
|
52
59
|
ngAfterContentChecked(): void;
|
|
53
60
|
ngOnInit(): void;
|
|
@@ -57,14 +64,20 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
57
64
|
goToCaseTransationPage(event: any): void;
|
|
58
65
|
addRemission(fee: IFee): void;
|
|
59
66
|
checkForFees(paymentGroup: any): boolean;
|
|
67
|
+
processRefund(): void;
|
|
68
|
+
gotoAddressPage(note?: IRefundContactDetails): void;
|
|
60
69
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
|
61
70
|
chkIsRefundRemissionBtnEnable(): boolean;
|
|
62
71
|
issueRefund(paymentgrp: IPaymentGroup): void;
|
|
63
72
|
getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
|
|
64
73
|
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
65
74
|
chkForPBAPayment(): boolean;
|
|
66
|
-
chkForAddRemission(feeCode: string): boolean;
|
|
75
|
+
chkForAddRemission(feeCode: string, feeId: number): boolean;
|
|
67
76
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
68
77
|
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
78
|
+
selectPymentOption(paymentType: string): void;
|
|
79
|
+
continuePayment(): void;
|
|
80
|
+
gotoPaymentSelectPage(event: Event): void;
|
|
81
|
+
getContactDetails(obj: IRefundContactDetails): void;
|
|
69
82
|
resetOrderData(): void;
|
|
70
83
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
3
|
+
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
|
+
export declare class PbaPaymentComponent implements OnInit {
|
|
5
|
+
private paymentLibComponent;
|
|
6
|
+
private paymentViewService;
|
|
7
|
+
pbaPayOrderRef: any;
|
|
8
|
+
viewStatus: string;
|
|
9
|
+
pbaAccountList: string[];
|
|
10
|
+
isPBAAccountHold: boolean;
|
|
11
|
+
errorMsg: any;
|
|
12
|
+
isCardPaymentSuccess: boolean;
|
|
13
|
+
isInSufficiantFund: boolean;
|
|
14
|
+
isPBAAccountNotExist: boolean;
|
|
15
|
+
isPBAServerError: boolean;
|
|
16
|
+
isGetPBAAccountSucceed: boolean;
|
|
17
|
+
selectedPbaAccount: string;
|
|
18
|
+
pbaAccountRef: string;
|
|
19
|
+
isPbaAccountSelected: boolean;
|
|
20
|
+
isCardPaymentSelected: boolean;
|
|
21
|
+
isPBADropdownSelected: boolean;
|
|
22
|
+
isContinueButtondisabled: boolean;
|
|
23
|
+
isPBAAccountPaymentSuccess: boolean;
|
|
24
|
+
pbaAccountrPaymentResult: any;
|
|
25
|
+
orgName: string;
|
|
26
|
+
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
selectpbaaccount(args: any): void;
|
|
29
|
+
saveAndContinue(): void;
|
|
30
|
+
cardPayment(): void;
|
|
31
|
+
selectPaymentMethod(type: string): void;
|
|
32
|
+
gotoCasetransationPage(): void;
|
|
33
|
+
}
|
|
@@ -5,10 +5,12 @@ import { IRefundAction } from '../../interfaces/IRefundAction';
|
|
|
5
5
|
import { IRefundList } from '../../interfaces/IRefundList';
|
|
6
6
|
import { IRefundRejectReason } from '../../interfaces/IRefundRejectReason';
|
|
7
7
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
8
|
+
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
8
9
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
9
10
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
10
11
|
export declare class ProcessRefundComponent implements OnInit {
|
|
11
12
|
private RefundsService;
|
|
13
|
+
private paymentViewService;
|
|
12
14
|
private formBuilder;
|
|
13
15
|
private OrderslistService;
|
|
14
16
|
private paymentLibComponent;
|
|
@@ -41,8 +43,11 @@ export declare class ProcessRefundComponent implements OnInit {
|
|
|
41
43
|
successMsg: string;
|
|
42
44
|
navigationpage: string;
|
|
43
45
|
ccdCaseNumber: string;
|
|
46
|
+
isFromRefundListPage: boolean;
|
|
47
|
+
cpoDetails: any;
|
|
48
|
+
isCPODown: boolean;
|
|
44
49
|
isConfirmButtondisabled: boolean;
|
|
45
|
-
constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
50
|
+
constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
|
|
46
51
|
ngOnInit(): void;
|
|
47
52
|
checkRefundActions(code: string): void;
|
|
48
53
|
processRefundSubmit(): void;
|
|
@@ -24,7 +24,7 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
24
24
|
selectedRefundReason: string;
|
|
25
25
|
rejectedRefundList: IRefundList[];
|
|
26
26
|
notificationList: IRefundsNotifications;
|
|
27
|
-
notification:
|
|
27
|
+
notification: any;
|
|
28
28
|
approvalStatus: string;
|
|
29
29
|
rejectStatus: string;
|
|
30
30
|
errorMessage: any;
|
|
@@ -77,9 +77,9 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
77
77
|
gotoReviewRefundConfirmationPage(): void;
|
|
78
78
|
gotoEditAddressDetails(note: IRefundsNotifications): void;
|
|
79
79
|
getContactDetails(obj: IRefundContactDetails): void;
|
|
80
|
-
gotoEditDetailsPage(): void;
|
|
80
|
+
gotoEditDetailsPage(note?: any): void;
|
|
81
81
|
submitEditDetail(): void;
|
|
82
82
|
putResend(notification: IRefundsNotifications): void;
|
|
83
|
-
gotoCasetransationPageCancelBtnClicked(
|
|
83
|
+
gotoCasetransationPageCancelBtnClicked(Event: Event): void;
|
|
84
84
|
goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
|
|
85
85
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
3
3
|
import { IPayment } from '../../interfaces/IPayment';
|
|
4
4
|
import { IRemission } from '../../interfaces/IRemission';
|
|
@@ -27,6 +27,8 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
27
27
|
orderRemissionTotal: number;
|
|
28
28
|
takePayment: boolean;
|
|
29
29
|
ccdCaseNumber: boolean;
|
|
30
|
+
isServiceRequest: string;
|
|
31
|
+
goToServiceRquestComponent: EventEmitter<any>;
|
|
30
32
|
servicerequest: string;
|
|
31
33
|
excReference: string;
|
|
32
34
|
paymentGroups: any[];
|
|
@@ -85,8 +87,9 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
85
87
|
remissionFeeAmt: number;
|
|
86
88
|
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
|
|
87
89
|
ngOnInit(): void;
|
|
90
|
+
goToServiceRequestPage(): void;
|
|
88
91
|
goToCaseTransationPage(event: any): void;
|
|
89
|
-
chkForAddRemission(feeCode: string): boolean;
|
|
92
|
+
chkForAddRemission(feeCode: string, feeId: number): boolean;
|
|
90
93
|
chkForPBAPayment(): boolean;
|
|
91
94
|
addRemission(fee: IFee): void;
|
|
92
95
|
addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
|
package/lib/interfaces/IFee.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IRefundContactDetails } from './IRefundContactDetails';
|
|
1
2
|
export interface IRefundList {
|
|
2
3
|
amount: number;
|
|
3
4
|
ccd_case_number: string;
|
|
@@ -10,5 +11,7 @@ export interface IRefundList {
|
|
|
10
11
|
description: string;
|
|
11
12
|
name: string;
|
|
12
13
|
};
|
|
14
|
+
contact_details: IRefundContactDetails;
|
|
13
15
|
user_full_name: string;
|
|
16
|
+
service_type: string;
|
|
14
17
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class IserviceRequestPbaPayment {
|
|
2
|
+
account_number: string;
|
|
3
|
+
amount: string;
|
|
4
|
+
currency: string;
|
|
5
|
+
customer_reference: string;
|
|
6
|
+
organisation_name: string;
|
|
7
|
+
constructor(account_number: string, amount: string, customer_reference: string, orgName: string);
|
|
8
|
+
}
|
|
@@ -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
|
}
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
|
2
2
|
import { PaymentLibService } from './payment-lib.service';
|
|
3
3
|
import { IBSPayments } from './interfaces/IBSPayments';
|
|
4
4
|
import { OrderslistService } from './services/orderslist.service';
|
|
5
|
+
import { IPayment } from './interfaces/IPayment';
|
|
5
6
|
export declare class PaymentLibComponent implements OnInit {
|
|
6
7
|
private paymentLibService;
|
|
7
8
|
private cd;
|
|
@@ -10,6 +11,7 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
10
11
|
BULKSCAN_API_ROOT: string;
|
|
11
12
|
REFUNDS_API_ROOT: string;
|
|
12
13
|
NOTIFICATION_API_ROOT: string;
|
|
14
|
+
CARDPAYMENTRETURNURL: string;
|
|
13
15
|
CCD_CASE_NUMBER: string;
|
|
14
16
|
EXC_REFERENCE: string;
|
|
15
17
|
PAYMENT_METHOD: string;
|
|
@@ -51,6 +53,7 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
51
53
|
isFromRefundStatusPage: boolean;
|
|
52
54
|
iscancelClicked: boolean;
|
|
53
55
|
isFromPaymentDetailPage: boolean;
|
|
56
|
+
pbaPayOrderRef: IPayment;
|
|
54
57
|
isTakePayment: boolean;
|
|
55
58
|
orderDetail: any[];
|
|
56
59
|
orderRef: string;
|
|
@@ -3,6 +3,7 @@ export declare class PaymentLibService {
|
|
|
3
3
|
BULKSCAN_API_ROOT: string;
|
|
4
4
|
REFUNDS_API_ROOT: string;
|
|
5
5
|
NOTIFICATION_API_ROOT: string;
|
|
6
|
+
CARDPAYMENTRETURNURL: string;
|
|
6
7
|
constructor();
|
|
7
8
|
setApiRootUrl(apiRoot: string): void;
|
|
8
9
|
getApiRootUrl(): string;
|
|
@@ -12,4 +13,6 @@ export declare class PaymentLibService {
|
|
|
12
13
|
getRefundsApiRootUrl(): string;
|
|
13
14
|
setNoticationApiRootUrl(notificationapiRoot: string): void;
|
|
14
15
|
getNoticationApiRootUrl(): string;
|
|
16
|
+
setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
|
|
17
|
+
getCardPaymentReturnUrl(): string;
|
|
15
18
|
}
|
|
@@ -15,6 +15,8 @@ import { AllocatePaymentRequest } from '../../interfaces/AllocatePaymentRequest'
|
|
|
15
15
|
import { IAllocationPaymentsRequest } from '../../interfaces/IAllocationPaymentsRequest';
|
|
16
16
|
import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
|
|
17
17
|
import { BehaviorSubject } from 'rxjs';
|
|
18
|
+
import { IserviceRequestPbaPayment } from '../../interfaces/IserviceRequestPbaPayment';
|
|
19
|
+
import { IserviceRequestCardPayment } from '../../interfaces/IserviceRequestCardPayment';
|
|
18
20
|
import { AddRetroRemissionRequest } from '../../interfaces/AddRetroRemissionRequest';
|
|
19
21
|
import { PostRefundRetroRemission } from '../../interfaces/PostRefundRetroRemission';
|
|
20
22
|
import { PostIssueRefundRetroRemission } from '../../interfaces/PostIssueRefundRetroRemission';
|
|
@@ -30,6 +32,9 @@ export declare class PaymentViewService {
|
|
|
30
32
|
getPaymentDetails(paymentReference: string, paymentMethod: string): Observable<IPayment>;
|
|
31
33
|
getPaymentGroupDetails(paymentGroupReference: string): Observable<IPaymentGroup>;
|
|
32
34
|
getApportionPaymentDetails(paymentReference: string): Observable<IPaymentGroup>;
|
|
35
|
+
getPBAaccountDetails(): Observable<any>;
|
|
36
|
+
postWays2PayCardPayment(serviceRef: string, body: IserviceRequestCardPayment): Observable<any>;
|
|
37
|
+
postPBAaccountPayment(serviceRef: string, body: IserviceRequestPbaPayment): Observable<any>;
|
|
33
38
|
postBSPayments(body: AllocatePaymentRequest): Observable<any>;
|
|
34
39
|
postBSUnidentifiedPayments(body: UnidentifiedPaymentsRequest): Observable<any>;
|
|
35
40
|
postBSUnsolicitedPayments(body: UnsolicitedPaymentsRequest): Observable<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmcts/ccpay-web-component",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2-beta10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"name": "Santosh Govindu",
|
|
18
18
|
"email": "santosh.govindu@hmcts.net"
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Kumar dhanasamy",
|
|
22
|
+
"email": "kumar.dhanasamy@hmcts.net"
|
|
23
|
+
},
|
|
20
24
|
{
|
|
21
25
|
"name": "Tarun Palisetty",
|
|
22
26
|
"email": "tarun.palisetty@hmcts.net"
|