@hmcts/ccpay-web-component 6.0.0-beta20 → 6.0.0-beta21

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.
Files changed (45) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +435 -109
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +32 -31
  6. package/esm2015/lib/components/case-transactions/case-transactions.component.js +74 -39
  7. package/esm2015/lib/components/payment-view/payment-view.component.js +2 -2
  8. package/esm2015/lib/components/pba-payment/pba-payment.component.js +244 -0
  9. package/esm2015/lib/components/service-request/service-request.component.js +24 -10
  10. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  11. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  12. package/esm2015/lib/payment-lib.component.js +10 -4
  13. package/esm2015/lib/payment-lib.module.js +3 -3
  14. package/esm2015/lib/payment-lib.service.js +16 -1
  15. package/esm2015/lib/services/payment-view/payment-view.service.js +35 -1
  16. package/esm2015/lib/services/refunds/refunds.service.js +3 -16
  17. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +3 -16
  18. package/esm5/hmcts-ccpay-web-component.js +32 -31
  19. package/esm5/lib/components/case-transactions/case-transactions.component.js +83 -39
  20. package/esm5/lib/components/payment-view/payment-view.component.js +2 -2
  21. package/esm5/lib/components/pba-payment/pba-payment.component.js +265 -0
  22. package/esm5/lib/components/service-request/service-request.component.js +27 -10
  23. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  24. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
  25. package/esm5/lib/payment-lib.component.js +8 -3
  26. package/esm5/lib/payment-lib.module.js +3 -3
  27. package/esm5/lib/payment-lib.service.js +23 -1
  28. package/esm5/lib/services/payment-view/payment-view.service.js +48 -1
  29. package/esm5/lib/services/refunds/refunds.service.js +3 -16
  30. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +3 -16
  31. package/fesm2015/hmcts-ccpay-web-component.js +365 -83
  32. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  33. package/fesm5/hmcts-ccpay-web-component.js +409 -82
  34. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  35. package/hmcts-ccpay-web-component.d.ts +31 -30
  36. package/hmcts-ccpay-web-component.metadata.json +1 -1
  37. package/lib/components/case-transactions/case-transactions.component.d.ts +6 -0
  38. package/lib/components/pba-payment/pba-payment.component.d.ts +32 -0
  39. package/lib/components/service-request/service-request.component.d.ts +4 -1
  40. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  41. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
  42. package/lib/payment-lib.component.d.ts +3 -0
  43. package/lib/payment-lib.service.d.ts +3 -0
  44. package/lib/services/payment-view/payment-view.service.d.ts +5 -0
  45. 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;
@@ -105,6 +108,7 @@ export declare class CaseTransactionsComponent implements OnInit {
105
108
  addRemission(fee: IFee): void;
106
109
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
107
110
  redirectToremissionPage(event: any): void;
111
+ goToServiceRequestPage(): void;
108
112
  redirectToReportsPage(event: any): void;
109
113
  loadFeeSummaryPage(paymentGroup: IPaymentGroup): void;
110
114
  goToPaymentViewComponent(paymentGroup: any): void;
@@ -122,5 +126,7 @@ export declare class CaseTransactionsComponent implements OnInit {
122
126
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
123
127
  chkIsRefundRemissionBtnEnable(): boolean;
124
128
  check4AllowedRoles2AccessRefund: () => boolean;
129
+ check4AllowedRoles2AccessPBApayment: () => boolean;
125
130
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
131
+ loadPBAAccountPage(orderRef: IPayment): void;
126
132
  }
@@ -0,0 +1,32 @@
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
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
26
+ ngOnInit(): void;
27
+ selectpbaaccount(args: any): void;
28
+ saveAndContinue(): void;
29
+ cardPayment(): void;
30
+ selectPaymentMethod(type: string): void;
31
+ gotoCasetransationPage(): void;
32
+ }
@@ -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,6 +87,7 @@ 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
92
  chkForAddRemission(feeCode: string): boolean;
90
93
  chkForPBAPayment(): boolean;
@@ -0,0 +1,6 @@
1
+ export declare class IserviceRequestCardPayment {
2
+ amount: string;
3
+ currency: string;
4
+ language: string;
5
+ constructor(amount: string);
6
+ }
@@ -0,0 +1,7 @@
1
+ export declare class IserviceRequestPbaPayment {
2
+ account_number: string;
3
+ amount: string;
4
+ currency: string;
5
+ customer_reference: string;
6
+ constructor(account_number: string, amount: string, customer_reference: string);
7
+ }
@@ -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;
@@ -9,6 +10,7 @@ export declare class PaymentLibComponent implements OnInit {
9
10
  API_ROOT: string;
10
11
  BULKSCAN_API_ROOT: string;
11
12
  REFUNDS_API_ROOT: string;
13
+ CARDPAYMENTRETURNURL: string;
12
14
  CCD_CASE_NUMBER: string;
13
15
  EXC_REFERENCE: string;
14
16
  PAYMENT_METHOD: string;
@@ -50,6 +52,7 @@ export declare class PaymentLibComponent implements OnInit {
50
52
  isFromRefundStatusPage: boolean;
51
53
  iscancelClicked: boolean;
52
54
  isFromPaymentDetailPage: boolean;
55
+ pbaPayOrderRef: IPayment;
53
56
  isTakePayment: boolean;
54
57
  orderDetail: any[];
55
58
  orderRef: string;
@@ -2,6 +2,7 @@ export declare class PaymentLibService {
2
2
  API_ROOT: string;
3
3
  BULKSCAN_API_ROOT: string;
4
4
  REFUNDS_API_ROOT: string;
5
+ CARDPAYMENTRETURNURL: string;
5
6
  constructor();
6
7
  setApiRootUrl(apiRoot: string): void;
7
8
  getApiRootUrl(): string;
@@ -9,4 +10,6 @@ export declare class PaymentLibService {
9
10
  getBulkScanApiRootUrl(): string;
10
11
  setRefundndsApiRootUrl(refundsapiRoot: string): void;
11
12
  getRefundsApiRootUrl(): string;
13
+ setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
14
+ getCardPaymentReturnUrl(): string;
12
15
  }
@@ -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": "6.0.0-beta20",
3
+ "version": "6.0.0-beta21",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },