@hmcts/ccpay-web-component 5.0.1-beta140 → 5.0.1-beta144

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 (55) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +883 -105
  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 +34 -33
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +467 -39
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +32 -4
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +9 -2
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +5 -2
  10. package/esm2015/lib/components/pba-payment/pba-payment.component.js +205 -0
  11. package/esm2015/lib/components/process-refund/process-refund.component.js +3 -3
  12. package/esm2015/lib/components/service-request/service-request.component.js +29 -9
  13. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  14. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  15. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +16 -4
  16. package/esm2015/lib/payment-lib.component.js +6 -4
  17. package/esm2015/lib/payment-lib.module.js +3 -3
  18. package/esm2015/lib/services/payment-view/payment-view.service.js +29 -1
  19. package/esm2015/lib/services/refunds/refunds.service.js +16 -3
  20. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  21. package/esm5/hmcts-ccpay-web-component.js +34 -33
  22. package/esm5/lib/components/add-remission/add-remission.component.js +560 -44
  23. package/esm5/lib/components/case-transactions/case-transactions.component.js +38 -4
  24. package/esm5/lib/components/contact-details/contact-details.component.js +9 -2
  25. package/esm5/lib/components/payment-view/payment-view.component.js +5 -2
  26. package/esm5/lib/components/pba-payment/pba-payment.component.js +222 -0
  27. package/esm5/lib/components/process-refund/process-refund.component.js +3 -3
  28. package/esm5/lib/components/service-request/service-request.component.js +33 -9
  29. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  30. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
  31. package/esm5/lib/interfaces/PostRefundRetroRemission.js +12 -3
  32. package/esm5/lib/payment-lib.component.js +4 -3
  33. package/esm5/lib/payment-lib.module.js +3 -3
  34. package/esm5/lib/services/payment-view/payment-view.service.js +42 -1
  35. package/esm5/lib/services/refunds/refunds.service.js +16 -3
  36. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  37. package/fesm2015/hmcts-ccpay-web-component.js +753 -64
  38. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  39. package/fesm5/hmcts-ccpay-web-component.js +873 -67
  40. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  41. package/hmcts-ccpay-web-component.d.ts +33 -32
  42. package/hmcts-ccpay-web-component.metadata.json +1 -1
  43. package/lib/components/add-remission/add-remission.component.d.ts +28 -2
  44. package/lib/components/case-transactions/case-transactions.component.d.ts +5 -0
  45. package/lib/components/contact-details/contact-details.component.d.ts +1 -0
  46. package/lib/components/payment-view/payment-view.component.d.ts +1 -0
  47. package/lib/components/pba-payment/pba-payment.component.d.ts +28 -0
  48. package/lib/components/process-refund/process-refund.component.d.ts +1 -1
  49. package/lib/components/service-request/service-request.component.d.ts +2 -0
  50. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  51. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
  52. package/lib/interfaces/PostRefundRetroRemission.d.ts +5 -2
  53. package/lib/payment-lib.component.d.ts +2 -0
  54. package/lib/services/payment-view/payment-view.service.d.ts +5 -0
  55. 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;
@@ -92,6 +94,7 @@ export declare class AddRemissionComponent implements OnInit {
92
94
  isPaymentSuccess: boolean;
93
95
  isRemissionApplied: boolean;
94
96
  remissionamt: number;
97
+ elementId: any;
95
98
  commonRefundReasons: any[];
96
99
  showReasonText: boolean;
97
100
  isRefundReasonsSelected: boolean;
@@ -102,6 +105,19 @@ export declare class AddRemissionComponent implements OnInit {
102
105
  pattern2: string;
103
106
  sendOrderDetail: any[];
104
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;
105
121
  component: {
106
122
  account_number: string;
107
123
  amount: number;
@@ -123,6 +139,10 @@ export declare class AddRemissionComponent implements OnInit {
123
139
  };
124
140
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
125
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;
126
146
  addRemission(): void;
127
147
  confirmRemission(): void;
128
148
  resetRemissionForm(val: any, field: any): void;
@@ -136,18 +156,24 @@ export declare class AddRemissionComponent implements OnInit {
136
156
  processRefund(): void;
137
157
  gotoIssueRefundConfirmation(payment: IPayment): void;
138
158
  gotoIssueRefundPage(): void;
159
+ gotoIssuePage(): void;
160
+ calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
139
161
  gotoContactDetailsPage(note?: IRefundContactDetails): void;
162
+ getRefundReasons(): void;
163
+ getErrorClass(elementId: any): void;
140
164
  changeIssueRefundReason(): void;
141
165
  confirmIssueRefund(): void;
142
- confirmRetroRefund(): void;
166
+ gotoRefundReasonPage(): void;
143
167
  selectRadioButton(key: any, value: any): void;
144
168
  selectchange(args: any): void;
145
169
  getContactDetails(obj: IRefundContactDetails, type: any): void;
170
+ gotoPartialFeeRefundScreen(): void;
146
171
  gotoServiceRequestPage(event: any): void;
147
172
  gotoAddressPage(note?: IRefundContactDetails): void;
148
173
  gotoRemissionSuccess(event: Event): void;
149
174
  gotoCasetransationPage(): void;
150
175
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
151
176
  resetOrderData(): void;
177
+ changeRefundAmount(): void;
152
178
  getFormattedCurrency(currency: number): string | number;
153
179
  }
@@ -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
  }
@@ -21,6 +21,7 @@ export declare class ContactDetailsComponent implements OnInit {
21
21
  manualAddressForm: FormGroup;
22
22
  addressPostcodeList: any[];
23
23
  postcodeAddress: any;
24
+ isAddressBoxEmpty: boolean;
24
25
  isEmailEmpty: boolean;
25
26
  emailHasError: boolean;
26
27
  isPostcodeEmpty: boolean;
@@ -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;
@@ -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
+ }
@@ -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;
@@ -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;
@@ -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,7 +1,10 @@
1
- import { IRefundContactDetails } from './IRefundContactDetails';
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, contactDeatils: any);
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;
@@ -51,6 +52,7 @@ export declare class PaymentLibComponent implements OnInit {
51
52
  isFromRefundStatusPage: boolean;
52
53
  iscancelClicked: boolean;
53
54
  isFromPaymentDetailPage: boolean;
55
+ pbaPayOrderRef: IPayment;
54
56
  isTakePayment: boolean;
55
57
  orderDetail: any[];
56
58
  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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.1-beta140",
3
+ "version": "5.0.1-beta144",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },