@hmcts/ccpay-web-component 5.0.6 → 5.0.7

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 (26) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +94 -4
  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/lib/components/case-transactions/case-transactions.component.js +1 -1
  6. package/esm2015/lib/components/payment-view/payment-view.component.js +56 -3
  7. package/esm2015/lib/components/reports/reports.component.js +13 -2
  8. package/esm2015/lib/interfaces/IPaymentFailure.js +33 -0
  9. package/esm2015/lib/payment-lib.component.js +5 -1
  10. package/esm2015/lib/services/payment-view/payment-view.service.js +20 -1
  11. package/esm5/lib/components/case-transactions/case-transactions.component.js +1 -1
  12. package/esm5/lib/components/payment-view/payment-view.component.js +64 -3
  13. package/esm5/lib/components/reports/reports.component.js +13 -2
  14. package/esm5/lib/interfaces/IPaymentFailure.js +33 -0
  15. package/esm5/lib/payment-lib.component.js +5 -2
  16. package/esm5/lib/services/payment-view/payment-view.service.js +29 -1
  17. package/fesm2015/hmcts-ccpay-web-component.js +80 -3
  18. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  19. package/fesm5/hmcts-ccpay-web-component.js +97 -4
  20. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  21. package/hmcts-ccpay-web-component.metadata.json +1 -1
  22. package/lib/components/payment-view/payment-view.component.d.ts +7 -0
  23. package/lib/interfaces/IPaymentFailure.d.ts +13 -0
  24. package/lib/payment-lib.component.d.ts +1 -0
  25. package/lib/services/payment-view/payment-view.service.d.ts +2 -0
  26. package/package.json +1 -1
@@ -6,6 +6,7 @@ import { IFee } from '../../interfaces/IFee';
6
6
  import { IPayment } from '../../interfaces/IPayment';
7
7
  import { IRemission } from '../../interfaces/IRemission';
8
8
  import { ChangeDetectorRef } from '@angular/core';
9
+ import { IPaymentFailure } from '../../interfaces/IPaymentFailure';
9
10
  import { OrderslistService } from '../../services/orderslist.service';
10
11
  export declare class PaymentViewComponent implements OnInit {
11
12
  private paymentViewService;
@@ -20,6 +21,7 @@ export declare class PaymentViewComponent implements OnInit {
20
21
  orderTotalPayments: number;
21
22
  payment: IPayment;
22
23
  LOGGEDINUSERROLES: string[];
24
+ ISPAYMENTSTATUSENABLED: string;
23
25
  orderParty: string;
24
26
  orderCreated: Date;
25
27
  orderCCDEvent: string;
@@ -27,6 +29,7 @@ export declare class PaymentViewComponent implements OnInit {
27
29
  orderRemissionTotal: number;
28
30
  orderDetail: any[];
29
31
  isServiceRequest: string;
32
+ errorMsg: string;
30
33
  paymentGroup: IPaymentGroup;
31
34
  errorMessage: string;
32
35
  ccdCaseNumber: string;
@@ -42,6 +45,8 @@ export declare class PaymentViewComponent implements OnInit {
42
45
  isIssueRefunfBtnEnable: boolean;
43
46
  allowedRolesToAccessRefund: string[];
44
47
  remissions: IRemission[];
48
+ allPaymentsFailure: IPaymentFailure[];
49
+ selectedPaymentsStatus: IPaymentFailure;
45
50
  remissionFeeAmt: number;
46
51
  isRefundRemissionBtnEnable: boolean;
47
52
  serviceReference: string;
@@ -67,4 +72,6 @@ export declare class PaymentViewComponent implements OnInit {
67
72
  check4AllowedRoles2AccessRefund: () => boolean;
68
73
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
69
74
  resetOrderData(): void;
75
+ goToPaymentFailuePage(payment: any): void;
76
+ goBackToPaymentView(event: any): void;
70
77
  }
@@ -0,0 +1,13 @@
1
+ export interface IPaymentFailure {
2
+ additional_reference: string;
3
+ disputed_amount: number;
4
+ failure_event_date_time: string;
5
+ failure_reason: string;
6
+ failure_reference: string;
7
+ failure_type: string;
8
+ payment_reference: string;
9
+ representment_date: string;
10
+ representment_status: string;
11
+ has_amount_debited?: string;
12
+ status: string;
13
+ }
@@ -25,6 +25,7 @@ export declare class PaymentLibComponent implements OnInit {
25
25
  ISSFENABLE: boolean;
26
26
  ISTURNOFF: boolean;
27
27
  CASETYPE: string;
28
+ ISPAYMENTSTATUSENABLED: boolean;
28
29
  rootUrl: boolean;
29
30
  REFUNDLIST: string;
30
31
  USERID: string;
@@ -44,6 +44,7 @@ export declare class PaymentViewService {
44
44
  postPaymentToPayHub(body: PaymentToPayhubRequest, paymentGroupRef: string): Observable<any>;
45
45
  postPaymentAntennaToPayHub(body: PayhubAntennaRequest, paymentGroupRef: string): Observable<any>;
46
46
  downloadSelectedReport(reportName: string, startDate: string, endDate: string): Observable<any>;
47
+ downloadFailureReport(startDate: string, endDate: string): Observable<any>;
47
48
  getBSfeature(): Observable<any>;
48
49
  getSiteID(): Observable<any>;
49
50
  getPartyDetails(caseNumber: string): Observable<any>;
@@ -52,4 +53,5 @@ export declare class PaymentViewService {
52
53
  postRefundsReason(body: PostRefundRetroRemission): Observable<any>;
53
54
  postPaymentGroupWithRetroRemissions(paymentGroupReference: string, feeId: number, body: AddRetroRemissionRequest): Observable<any>;
54
55
  postRefundRetroRemission(body: PostIssueRefundRetroRemission): Observable<any>;
56
+ getPaymentFailure(paymentReference: string): Observable<any>;
55
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.6",
3
+ "version": "5.0.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },