@hmcts/ccpay-web-component 4.0.0-beta601 → 4.0.0-beta609

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 (62) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +543 -428
  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 +4 -5
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +139 -100
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +25 -12
  8. package/esm2015/lib/components/case-transactions/case-transactions.component.js +99 -83
  9. package/esm2015/lib/components/fee-summary/fee-summary.component.js +4 -4
  10. package/esm2015/lib/components/payment-view/payment-view.component.js +114 -91
  11. package/esm2015/lib/components/process-refund/process-refund.component.js +25 -14
  12. package/esm2015/lib/components/refund-list/refund-list.component.js +5 -14
  13. package/esm2015/lib/components/refund-status/refund-status.component.js +93 -72
  14. package/esm2015/lib/components/reports/reports.component.js +8 -3
  15. package/esm2015/lib/components/status-history/status-history.component.js +2 -2
  16. package/esm2015/lib/components/table/table.component.js +21 -14
  17. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +4 -4
  18. package/esm2015/lib/interfaces/IRefundReasons.js +3 -1
  19. package/esm2015/lib/payment-lib.component.js +18 -5
  20. package/esm2015/lib/payment-lib.module.js +3 -7
  21. package/esm2015/lib/services/payment-view/payment-view.service.js +2 -2
  22. package/esm2015/lib/services/refunds/refunds.service.js +17 -10
  23. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +11 -2
  24. package/esm2015/lib/services/xl-file/xl-file.service.js +2 -2
  25. package/esm5/hmcts-ccpay-web-component.js +4 -5
  26. package/esm5/lib/components/add-remission/add-remission.component.js +140 -102
  27. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +25 -12
  28. package/esm5/lib/components/case-transactions/case-transactions.component.js +99 -83
  29. package/esm5/lib/components/fee-summary/fee-summary.component.js +4 -4
  30. package/esm5/lib/components/payment-view/payment-view.component.js +121 -92
  31. package/esm5/lib/components/process-refund/process-refund.component.js +28 -16
  32. package/esm5/lib/components/refund-list/refund-list.component.js +5 -14
  33. package/esm5/lib/components/refund-status/refund-status.component.js +96 -72
  34. package/esm5/lib/components/reports/reports.component.js +8 -3
  35. package/esm5/lib/components/status-history/status-history.component.js +2 -2
  36. package/esm5/lib/components/table/table.component.js +26 -16
  37. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +4 -4
  38. package/esm5/lib/interfaces/IRefundReasons.js +3 -1
  39. package/esm5/lib/payment-lib.component.js +21 -5
  40. package/esm5/lib/payment-lib.module.js +3 -7
  41. package/esm5/lib/services/payment-view/payment-view.service.js +2 -2
  42. package/esm5/lib/services/refunds/refunds.service.js +17 -10
  43. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +11 -2
  44. package/esm5/lib/services/xl-file/xl-file.service.js +2 -2
  45. package/fesm2015/hmcts-ccpay-web-component.js +546 -440
  46. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  47. package/fesm5/hmcts-ccpay-web-component.js +568 -452
  48. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  49. package/hmcts-ccpay-web-component.d.ts +3 -4
  50. package/hmcts-ccpay-web-component.metadata.json +1 -1
  51. package/lib/components/add-remission/add-remission.component.d.ts +25 -2
  52. package/lib/components/allocate-payments/allocate-payments.component.d.ts +3 -0
  53. package/lib/components/payment-view/payment-view.component.d.ts +2 -0
  54. package/lib/components/process-refund/process-refund.component.d.ts +1 -1
  55. package/lib/components/refund-status/refund-status.component.d.ts +2 -0
  56. package/lib/components/table/table.component.d.ts +1 -0
  57. package/lib/interfaces/IRefundReasons.d.ts +1 -0
  58. package/lib/payment-lib.component.d.ts +4 -2
  59. package/package.json +5 -1
  60. package/esm2015/lib/components/refunds/refunds.component.js +0 -23
  61. package/esm5/lib/components/refunds/refunds.component.js +0 -29
  62. package/lib/components/refunds/refunds.component.d.ts +0 -5
@@ -6,6 +6,7 @@ import { PaymentViewService } from '../../services/payment-view/payment-view.ser
6
6
  import { PaymentLibComponent } from '../../payment-lib.component';
7
7
  import { IPayment } from '../../interfaces/IPayment';
8
8
  import { RefundsService } from '../../services/refunds/refunds.service';
9
+ import { IRefundReasons } from '../../interfaces/IRefundReasons';
9
10
  import { ChangeDetectorRef } from '@angular/core';
10
11
  import { IRemission } from '../../interfaces/IRemission';
11
12
  import { OrderslistService } from '../../services/orderslist.service';
@@ -65,6 +66,7 @@ export declare class AddRemissionComponent implements OnInit {
65
66
  paymentExplanationHasError: boolean;
66
67
  refundReason: string;
67
68
  selectedRefundReason: string;
69
+ displayRefundReason: string;
68
70
  refundCode: string;
69
71
  remessionPayment: IPayment;
70
72
  isRemissionCodeEmpty: boolean;
@@ -77,12 +79,33 @@ export declare class AddRemissionComponent implements OnInit {
77
79
  isPaymentSuccess: boolean;
78
80
  isRemissionApplied: boolean;
79
81
  remissionamt: number;
80
- refundReasons: any[];
81
82
  commonRefundReasons: any[];
82
83
  showReasonText: boolean;
83
84
  isRefundReasonsSelected: boolean;
84
85
  default: string;
85
86
  reasonLength: number;
87
+ refundReasons: IRefundReasons[];
88
+ pattern1: string;
89
+ pattern2: string;
90
+ component: {
91
+ account_number: string;
92
+ amount: number;
93
+ case_reference: string;
94
+ ccd_case_number: string;
95
+ channel: string;
96
+ currency: string;
97
+ customer_reference: string;
98
+ date_created: string;
99
+ date_updated: string;
100
+ description: string;
101
+ method: string;
102
+ organisation_name: string;
103
+ payment_allocation: any[];
104
+ reference: string;
105
+ service_name: string;
106
+ site_id: string;
107
+ status: string;
108
+ };
86
109
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
87
110
  ngOnInit(): void;
88
111
  addRemission(): void;
@@ -103,6 +126,6 @@ export declare class AddRemissionComponent implements OnInit {
103
126
  selectchange(args: any): void;
104
127
  gotoServiceRequestPage(event: any): void;
105
128
  gotoCasetransationPage(): void;
106
- gotoCasetransationPageCancelBtnClicked(): void;
129
+ gotoCasetransationPageCancelBtnClicked(event: Event): void;
107
130
  getFormattedCurrency(currency: number): string | number;
108
131
  }
@@ -62,6 +62,9 @@ export declare class AllocatePaymentsComponent implements OnInit {
62
62
  paymentRef: string;
63
63
  isStrategicFixEnable: boolean;
64
64
  orderLevelFees: IOrderReferenceFee[];
65
+ cookieUserName: string[];
66
+ enCookieUserName: any;
67
+ userNameField: string;
65
68
  reasonList: {
66
69
  [key: string]: {
67
70
  [key: string]: string;
@@ -40,12 +40,14 @@ export declare class PaymentViewComponent implements OnInit {
40
40
  remissionFeeAmt: number;
41
41
  isRefundRemissionBtnEnable: boolean;
42
42
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
43
+ ngAfterContentChecked(): void;
43
44
  ngOnInit(): void;
44
45
  readonly isCardPayment: boolean;
45
46
  readonly isTelephonyPayment: boolean;
46
47
  goToPaymentList(): void;
47
48
  goToCaseTransationPage(event: any): void;
48
49
  addRemission(fee: IFee): void;
50
+ checkForFees(paymentGroup: any): boolean;
49
51
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
50
52
  chkIsRefundRemissionBtnEnable(): boolean;
51
53
  issueRefund(paymentgrp: IPaymentGroup): void;
@@ -42,7 +42,7 @@ export declare class ProcessRefundComponent implements OnInit {
42
42
  ngOnInit(): void;
43
43
  checkRefundActions(code: string): void;
44
44
  processRefundSubmit(): void;
45
- getErrorMessage(isErrorExist: any, status: any, errorMsg: any): {
45
+ getErrorMessage(isErrorExist: any, status: any, errorMsg: any, err: any): {
46
46
  title: string;
47
47
  body: string;
48
48
  showError: any;
@@ -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;
@@ -32,4 +32,5 @@ export declare class TableComponent {
32
32
  selectchange(args: any): void;
33
33
  goToRefundProcessComponent(refundReference: string, refundDate: IRefundList): void;
34
34
  goToRefundViewComponent(refundReference: string, refundData: IRefundList): void;
35
+ goToCaseReview(ccdCaseNumber: string, refundData: IRefundList): void;
35
36
  }
@@ -2,4 +2,5 @@ export interface IRefundReasons {
2
2
  code: string;
3
3
  description: string;
4
4
  name: string;
5
+ recently_used: boolean;
5
6
  }
@@ -1,8 +1,9 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { PaymentLibService } from './payment-lib.service';
3
3
  import { IBSPayments } from './interfaces/IBSPayments';
4
4
  export declare class PaymentLibComponent implements OnInit {
5
5
  private paymentLibService;
6
+ private cd;
6
7
  API_ROOT: string;
7
8
  BULKSCAN_API_ROOT: string;
8
9
  REFUNDS_API_ROOT: string;
@@ -47,6 +48,7 @@ export declare class PaymentLibComponent implements OnInit {
47
48
  isFromRefundStatusPage: boolean;
48
49
  iscancelClicked: boolean;
49
50
  isFromPaymentDetailPage: boolean;
50
- constructor(paymentLibService: PaymentLibService);
51
+ constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef);
52
+ ngAfterContentChecked(): void;
51
53
  ngOnInit(): void;
52
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "4.0.0-beta601",
3
+ "version": "4.0.0-beta609",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,6 +13,10 @@
13
13
  "description": "Angular web component for displaying payments returned from ccpay api",
14
14
  "author": "Mateusz Swirski <mateusz.swirski@hmcts.net>",
15
15
  "contributors": [
16
+ {
17
+ "name": "Santosh Govindu",
18
+ "email": "santosh.govindu@hmcts.net"
19
+ },
16
20
  {
17
21
  "name": "Tarun Palisetty",
18
22
  "email": "tarun.palisetty@hmcts.net"
@@ -1,23 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Component } from '@angular/core';
6
- export class RefundsComponent {
7
- constructor() { }
8
- /**
9
- * @return {?}
10
- */
11
- ngOnInit() {
12
- }
13
- }
14
- RefundsComponent.decorators = [
15
- { type: Component, args: [{
16
- selector: 'ccpay-refunds',
17
- template: "<main class=\"govuk-main-wrapper \" id=\"main-content\" role=\"main\" style=\"padding-top: 25px;\">\n <div style=\"min-width: 960px; max-width: 1860px; margin: 0 30px;\">\n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m\">#4692-3164-5845-4819</h2>\n <br>\n\n <div class=\"govuk-form-group\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"event-name\">\n Enter help with fees or remission reference\n </label>\n </h1>\n\n <div id=\"event-name-hint\" class=\"govuk-hint\">\n For example: HWF-A1B-23C\n </div>\n \n <input class=\"govuk-input govuk-input--width-10\" id=\"event-name\" name=\"event-name\" type=\"text\" aria-describedby=\"event-name-hint\">\n </div>\n \n \n \n <div class=\"govuk-button-group\">\n \n \n \n \n \n \n \n \n <a href=\"reason\" role=\"button\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n \n \n \n \n \n \n <a href=\"transaction\" role=\"button\" draggable=\"false\" class=\"govuk-button\" data-module=\"govuk-button\">\n Continue\n </a>\n \n </div>\n \n <p>\n <a href=\"../v1paymenthistory\">Cancel</a>\n </p>\n <br>\n <br>\n </div>\n </main>",
18
- styles: [""]
19
- }] }
20
- ];
21
- /** @nocollapse */
22
- RefundsComponent.ctorParameters = () => [];
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmdW5kcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3JlZnVuZHMvcmVmdW5kcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFPbEQsTUFBTSxPQUFPLGdCQUFnQjtJQUUzQixnQkFBZ0IsQ0FBQzs7OztJQUVqQixRQUFRO0lBQ1IsQ0FBQzs7O1lBVkYsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxlQUFlO2dCQUN6QixzM0NBQXVDOzthQUV4QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2NjcGF5LXJlZnVuZHMnLFxuICB0ZW1wbGF0ZVVybDogJy4vcmVmdW5kcy5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL3JlZnVuZHMuY29tcG9uZW50LmNzcyddXG59KVxuZXhwb3J0IGNsYXNzIFJlZnVuZHNDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIl19
@@ -1,29 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Component } from '@angular/core';
6
- var RefundsComponent = /** @class */ (function () {
7
- function RefundsComponent() {
8
- }
9
- /**
10
- * @return {?}
11
- */
12
- RefundsComponent.prototype.ngOnInit = /**
13
- * @return {?}
14
- */
15
- function () {
16
- };
17
- RefundsComponent.decorators = [
18
- { type: Component, args: [{
19
- selector: 'ccpay-refunds',
20
- template: "<main class=\"govuk-main-wrapper \" id=\"main-content\" role=\"main\" style=\"padding-top: 25px;\">\n <div style=\"min-width: 960px; max-width: 1860px; margin: 0 30px;\">\n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m\">#4692-3164-5845-4819</h2>\n <br>\n\n <div class=\"govuk-form-group\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"event-name\">\n Enter help with fees or remission reference\n </label>\n </h1>\n\n <div id=\"event-name-hint\" class=\"govuk-hint\">\n For example: HWF-A1B-23C\n </div>\n \n <input class=\"govuk-input govuk-input--width-10\" id=\"event-name\" name=\"event-name\" type=\"text\" aria-describedby=\"event-name-hint\">\n </div>\n \n \n \n <div class=\"govuk-button-group\">\n \n \n \n \n \n \n \n \n <a href=\"reason\" role=\"button\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n \n \n \n \n \n \n <a href=\"transaction\" role=\"button\" draggable=\"false\" class=\"govuk-button\" data-module=\"govuk-button\">\n Continue\n </a>\n \n </div>\n \n <p>\n <a href=\"../v1paymenthistory\">Cancel</a>\n </p>\n <br>\n <br>\n </div>\n </main>",
21
- styles: [""]
22
- }] }
23
- ];
24
- /** @nocollapse */
25
- RefundsComponent.ctorParameters = function () { return []; };
26
- return RefundsComponent;
27
- }());
28
- export { RefundsComponent };
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmdW5kcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3JlZnVuZHMvcmVmdW5kcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFbEQ7SUFPRTtJQUFnQixDQUFDOzs7O0lBRWpCLG1DQUFROzs7SUFBUjtJQUNBLENBQUM7O2dCQVZGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsZUFBZTtvQkFDekIsczNDQUF1Qzs7aUJBRXhDOzs7O0lBUUQsdUJBQUM7Q0FBQSxBQVpELElBWUM7U0FQWSxnQkFBZ0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5pdCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdjY3BheS1yZWZ1bmRzJyxcbiAgdGVtcGxhdGVVcmw6ICcuL3JlZnVuZHMuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9yZWZ1bmRzLmNvbXBvbmVudC5jc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBSZWZ1bmRzQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIG5nT25Jbml0KCkge1xuICB9XG5cbn1cbiJdfQ==
@@ -1,5 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- export declare class RefundsComponent implements OnInit {
3
- constructor();
4
- ngOnInit(): void;
5
- }