@hmcts/ccpay-web-component 5.0.1-beta11 → 5.0.1-beta12

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 (47) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +405 -147
  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 +31 -30
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +3 -3
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +35 -13
  8. package/esm2015/lib/components/payment-view/payment-view.component.js +2 -5
  9. package/esm2015/lib/components/pba-payment/pba-payment.component.js +199 -0
  10. package/esm2015/lib/components/refund-list/refund-list.component.js +9 -5
  11. package/esm2015/lib/components/refund-status/refund-status.component.js +81 -74
  12. package/esm2015/lib/components/table/table.component.js +3 -3
  13. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  14. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  15. package/esm2015/lib/payment-lib.component.js +6 -4
  16. package/esm2015/lib/payment-lib.module.js +3 -3
  17. package/esm2015/lib/services/payment-view/payment-view.service.js +29 -1
  18. package/esm2015/lib/services/shared/error-handler.service.js +21 -10
  19. package/esm5/hmcts-ccpay-web-component.js +31 -30
  20. package/esm5/lib/components/add-remission/add-remission.component.js +3 -3
  21. package/esm5/lib/components/case-transactions/case-transactions.component.js +41 -13
  22. package/esm5/lib/components/payment-view/payment-view.component.js +2 -5
  23. package/esm5/lib/components/pba-payment/pba-payment.component.js +216 -0
  24. package/esm5/lib/components/refund-list/refund-list.component.js +9 -5
  25. package/esm5/lib/components/refund-status/refund-status.component.js +85 -86
  26. package/esm5/lib/components/table/table.component.js +3 -3
  27. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  28. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
  29. package/esm5/lib/payment-lib.component.js +4 -4
  30. package/esm5/lib/payment-lib.module.js +3 -3
  31. package/esm5/lib/services/payment-view/payment-view.service.js +42 -1
  32. package/esm5/lib/services/shared/error-handler.service.js +21 -10
  33. package/fesm2015/hmcts-ccpay-web-component.js +353 -108
  34. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  35. package/fesm5/hmcts-ccpay-web-component.js +384 -120
  36. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  37. package/hmcts-ccpay-web-component.d.ts +30 -29
  38. package/hmcts-ccpay-web-component.metadata.json +1 -1
  39. package/lib/components/case-transactions/case-transactions.component.d.ts +6 -2
  40. package/lib/components/payment-view/payment-view.component.d.ts +0 -1
  41. package/lib/components/pba-payment/pba-payment.component.d.ts +27 -0
  42. package/lib/components/refund-status/refund-status.component.d.ts +2 -0
  43. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  44. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
  45. package/lib/payment-lib.component.d.ts +2 -0
  46. package/lib/services/payment-view/payment-view.service.d.ts +5 -0
  47. package/package.json +1 -1
@@ -59,7 +59,6 @@ export declare class CaseTransactionsComponent implements OnInit {
59
59
  isGrpOutstandingAmtPositive: boolean;
60
60
  totalRefundAmount: Number;
61
61
  caseType: String;
62
- lsCcdNumber: any;
63
62
  payment: IPayment;
64
63
  paymentGroup: IPaymentGroup;
65
64
  paymentView: IPaymentView;
@@ -67,13 +66,14 @@ export declare class CaseTransactionsComponent implements OnInit {
67
66
  isAddRemissionEnable: boolean;
68
67
  orderRemissionDetails: any[];
69
68
  orderLevelFees: IOrderReferenceFee[];
69
+ ispaymentGroupApisuccess: boolean;
70
70
  cpoDetails: any;
71
71
  orderRef: string;
72
72
  orderStatus: string;
73
73
  orderParty: string;
74
74
  orderCreated: Date;
75
75
  orderCCDEvent: string;
76
- serviveRequestValue: string;
76
+ serviceRequestValue: string;
77
77
  orderAddBtnEnable: boolean;
78
78
  orderFeesTotal: number;
79
79
  orderRemissionTotal: number;
@@ -86,6 +86,8 @@ export declare class CaseTransactionsComponent implements OnInit {
86
86
  isAddRemissionBtnEnabled: boolean;
87
87
  isRefundRemissionBtnEnable: boolean;
88
88
  allowedRolesToAccessRefund: string[];
89
+ isEligible4PBAPayment: string[];
90
+ currentDate: Date;
89
91
  isFromServiceRequestPage: boolean;
90
92
  navigationpage: string;
91
93
  remissionFeeAmt: number;
@@ -123,5 +125,7 @@ export declare class CaseTransactionsComponent implements OnInit {
123
125
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
124
126
  chkIsRefundRemissionBtnEnable(): boolean;
125
127
  check4AllowedRoles2AccessRefund: () => boolean;
128
+ check4AllowedRoles2AccessPBApayment: () => boolean;
126
129
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
130
+ loadPBAAccountPage(orderRef: IPayment): void;
127
131
  }
@@ -39,7 +39,6 @@ export declare class PaymentViewComponent implements OnInit {
39
39
  remissions: IRemission[];
40
40
  remissionFeeAmt: number;
41
41
  isRefundRemissionBtnEnable: boolean;
42
- serviceReference: string;
43
42
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
44
43
  ngAfterContentChecked(): void;
45
44
  ngOnInit(): void;
@@ -0,0 +1,27 @@
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
+ errorMsg: any;
11
+ isCardPaymentSuccess: boolean;
12
+ isInSufficiantFund: boolean;
13
+ isPBAAccountNotExist: boolean;
14
+ isPBAServerError: boolean;
15
+ isGetPBAAccountSucceed: boolean;
16
+ selectedPbaAccount: string;
17
+ pbaAccountRef: string;
18
+ isContinueButtondisabled: boolean;
19
+ isPBAAccountPaymentSuccess: boolean;
20
+ pbaAccountrPaymentResult: any;
21
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
22
+ ngOnInit(): void;
23
+ selectpbaaccount(args: any): void;
24
+ saveAndContinue(): void;
25
+ cardPayment(): void;
26
+ gotoCasetransationPage(): void;
27
+ }
@@ -48,8 +48,10 @@ export declare class RefundStatusComponent implements OnInit {
48
48
  isLastUpdatedByCurrentUser: boolean;
49
49
  isProcessRefund: boolean;
50
50
  changedAmount: number;
51
+ allowedRolesToAccessRefund: string[];
51
52
  constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
52
53
  ngOnInit(): void;
54
+ check4AllowedRoles2AccessRefund: () => boolean;
53
55
  getRefundsStatusHistoryList(): void;
54
56
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
55
57
  loadCaseTransactionPage(): void;
@@ -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
+ }
@@ -1,6 +1,7 @@
1
1
  import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { PaymentLibService } from './payment-lib.service';
3
3
  import { IBSPayments } from './interfaces/IBSPayments';
4
+ import { IPayment } from './interfaces/IPayment';
4
5
  export declare class PaymentLibComponent implements OnInit {
5
6
  private paymentLibService;
6
7
  private cd;
@@ -48,6 +49,7 @@ export declare class PaymentLibComponent implements OnInit {
48
49
  isFromRefundStatusPage: boolean;
49
50
  iscancelClicked: boolean;
50
51
  isFromPaymentDetailPage: boolean;
52
+ pbaPayOrderRef: IPayment;
51
53
  constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef);
52
54
  ngAfterContentChecked(): void;
53
55
  ngOnInit(): void;
@@ -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.1-beta11",
3
+ "version": "5.0.1-beta12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },