@hmcts/ccpay-web-component 5.0.3 → 6.0.0-beta4
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 +333 -75
- 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 +32 -31
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +32 -4
- package/esm2015/lib/components/payment-view/payment-view.component.js +2 -2
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +205 -0
- package/esm2015/lib/components/service-request/service-request.component.js +28 -9
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
- package/esm2015/lib/payment-lib.component.js +6 -4
- package/esm2015/lib/payment-lib.module.js +3 -3
- package/esm2015/lib/services/payment-view/payment-view.service.js +29 -1
- package/esm2015/lib/services/refunds/refunds.service.js +3 -16
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +3 -16
- package/esm5/hmcts-ccpay-web-component.js +32 -31
- package/esm5/lib/components/case-transactions/case-transactions.component.js +38 -4
- package/esm5/lib/components/payment-view/payment-view.component.js +2 -2
- package/esm5/lib/components/pba-payment/pba-payment.component.js +222 -0
- package/esm5/lib/components/service-request/service-request.component.js +32 -9
- package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
- package/esm5/lib/payment-lib.component.js +4 -3
- package/esm5/lib/payment-lib.module.js +3 -3
- package/esm5/lib/services/payment-view/payment-view.service.js +42 -1
- package/esm5/lib/services/refunds/refunds.service.js +3 -16
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +3 -16
- package/fesm2015/hmcts-ccpay-web-component.js +276 -48
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +307 -47
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +31 -30
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +5 -0
- package/lib/components/pba-payment/pba-payment.component.d.ts +28 -0
- package/lib/components/service-request/service-request.component.d.ts +2 -0
- package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
- package/lib/payment-lib.component.d.ts +2 -0
- package/lib/services/payment-view/payment-view.service.d.ts +5 -0
- package/package.json +1 -1
|
@@ -67,6 +67,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
67
67
|
isAddRemissionEnable: boolean;
|
|
68
68
|
orderRemissionDetails: any[];
|
|
69
69
|
orderLevelFees: IOrderReferenceFee[];
|
|
70
|
+
ispaymentGroupApisuccess: boolean;
|
|
70
71
|
cpoDetails: any;
|
|
71
72
|
orderRef: string;
|
|
72
73
|
orderStatus: string;
|
|
@@ -86,6 +87,8 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
86
87
|
isAddRemissionBtnEnabled: boolean;
|
|
87
88
|
isRefundRemissionBtnEnable: boolean;
|
|
88
89
|
allowedRolesToAccessRefund: string[];
|
|
90
|
+
isEligible4PBAPayment: string[];
|
|
91
|
+
currentDate: Date;
|
|
89
92
|
isFromServiceRequestPage: boolean;
|
|
90
93
|
navigationpage: string;
|
|
91
94
|
remissionFeeAmt: number;
|
|
@@ -122,5 +125,7 @@ export declare class CaseTransactionsComponent implements OnInit {
|
|
|
122
125
|
chkIssueRefundBtnEnable(payment: IPayment): boolean;
|
|
123
126
|
chkIsRefundRemissionBtnEnable(): boolean;
|
|
124
127
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
128
|
+
check4AllowedRoles2AccessPBApayment: () => boolean;
|
|
125
129
|
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
130
|
+
loadPBAAccountPage(orderRef: IPayment): void;
|
|
126
131
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
isContinueButtondisabled: boolean;
|
|
20
|
+
isPBAAccountPaymentSuccess: boolean;
|
|
21
|
+
pbaAccountrPaymentResult: any;
|
|
22
|
+
constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
selectpbaaccount(args: any): void;
|
|
25
|
+
saveAndContinue(): void;
|
|
26
|
+
cardPayment(): void;
|
|
27
|
+
gotoCasetransationPage(): void;
|
|
28
|
+
}
|
|
@@ -27,6 +27,7 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
27
27
|
orderRemissionTotal: number;
|
|
28
28
|
takePayment: boolean;
|
|
29
29
|
ccdCaseNumber: boolean;
|
|
30
|
+
isServiceRequest: string;
|
|
30
31
|
servicerequest: string;
|
|
31
32
|
excReference: string;
|
|
32
33
|
paymentGroups: any[];
|
|
@@ -97,6 +98,7 @@ export declare class ServiceRequestComponent implements OnInit {
|
|
|
97
98
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
98
99
|
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
99
100
|
issueRefund(payment: IPayment): void;
|
|
101
|
+
goToServiceRequestPage(event: any): void;
|
|
100
102
|
goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
|
|
101
103
|
goToPaymentViewComponent(paymentGroup: any): void;
|
|
102
104
|
resetOrderData(): void;
|
|
@@ -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;
|
|
@@ -50,6 +51,7 @@ export declare class PaymentLibComponent implements OnInit {
|
|
|
50
51
|
isFromRefundStatusPage: boolean;
|
|
51
52
|
iscancelClicked: boolean;
|
|
52
53
|
isFromPaymentDetailPage: boolean;
|
|
54
|
+
pbaPayOrderRef: IPayment;
|
|
53
55
|
isTakePayment: boolean;
|
|
54
56
|
orderDetail: any[];
|
|
55
57
|
orderRef: string;
|
|
@@ -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>;
|