@hmcts/ccpay-web-component 4.0.0-beta543 → 4.0.0-beta548

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 (44) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +102 -143
  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 +33 -45
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +24 -11
  8. package/esm2015/lib/components/case-transactions/case-transactions.component.js +13 -21
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +24 -21
  10. package/esm2015/lib/components/refund-list/refund-list.component.js +1 -10
  11. package/esm2015/lib/components/refund-status/refund-status.component.js +2 -2
  12. package/esm2015/lib/components/reports/reports.component.js +8 -3
  13. package/esm2015/lib/components/table/table.component.js +2 -2
  14. package/esm2015/lib/payment-lib.component.js +1 -2
  15. package/esm2015/lib/payment-lib.module.js +1 -3
  16. package/esm2015/lib/services/shared/error-handler.service.js +3 -3
  17. package/esm2015/lib/services/xl-file/xl-file.service.js +2 -2
  18. package/esm5/hmcts-ccpay-web-component.js +4 -5
  19. package/esm5/lib/components/add-remission/add-remission.component.js +34 -47
  20. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +24 -11
  21. package/esm5/lib/components/case-transactions/case-transactions.component.js +13 -25
  22. package/esm5/lib/components/payment-view/payment-view.component.js +28 -22
  23. package/esm5/lib/components/refund-list/refund-list.component.js +1 -10
  24. package/esm5/lib/components/refund-status/refund-status.component.js +2 -2
  25. package/esm5/lib/components/reports/reports.component.js +8 -3
  26. package/esm5/lib/components/table/table.component.js +2 -2
  27. package/esm5/lib/payment-lib.component.js +2 -2
  28. package/esm5/lib/payment-lib.module.js +1 -3
  29. package/esm5/lib/services/shared/error-handler.service.js +3 -3
  30. package/esm5/lib/services/xl-file/xl-file.service.js +2 -2
  31. package/fesm2015/hmcts-ccpay-web-component.js +95 -137
  32. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  33. package/fesm5/hmcts-ccpay-web-component.js +101 -149
  34. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  35. package/hmcts-ccpay-web-component.d.ts +3 -4
  36. package/hmcts-ccpay-web-component.metadata.json +1 -1
  37. package/lib/components/add-remission/add-remission.component.d.ts +20 -1
  38. package/lib/components/allocate-payments/allocate-payments.component.d.ts +3 -0
  39. package/lib/components/case-transactions/case-transactions.component.d.ts +4 -4
  40. package/lib/components/payment-view/payment-view.component.d.ts +1 -0
  41. package/package.json +1 -1
  42. package/esm2015/lib/components/refunds/refunds.component.js +0 -23
  43. package/esm5/lib/components/refunds/refunds.component.js +0 -29
  44. package/lib/components/refunds/refunds.component.d.ts +0 -5
@@ -84,6 +84,25 @@ export declare class AddRemissionComponent implements OnInit {
84
84
  default: string;
85
85
  reasonLength: number;
86
86
  refundReasons: IRefundReasons[];
87
+ component: {
88
+ account_number: string;
89
+ amount: number;
90
+ case_reference: string;
91
+ ccd_case_number: string;
92
+ channel: string;
93
+ currency: string;
94
+ customer_reference: string;
95
+ date_created: string;
96
+ date_updated: string;
97
+ description: string;
98
+ method: string;
99
+ organisation_name: string;
100
+ payment_allocation: any[];
101
+ reference: string;
102
+ service_name: string;
103
+ site_id: string;
104
+ status: string;
105
+ };
87
106
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
88
107
  ngOnInit(): void;
89
108
  addRemission(): void;
@@ -104,6 +123,6 @@ export declare class AddRemissionComponent implements OnInit {
104
123
  selectchange(args: any): void;
105
124
  gotoServiceRequestPage(event: any): void;
106
125
  gotoCasetransationPage(): void;
107
- gotoCasetransationPageCancelBtnClicked(): void;
126
+ gotoCasetransationPageCancelBtnClicked(event: Event): void;
108
127
  getFormattedCurrency(currency: number): string | number;
109
128
  }
@@ -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;
@@ -93,14 +93,14 @@ export declare class CaseTransactionsComponent implements OnInit {
93
93
  ngOnInit(): void;
94
94
  setDefaults(): void;
95
95
  getAllocationStatus(payments: any): any;
96
- checkForExceptionRecord(event: any): void;
97
- calculateOrderFeesAmounts(event: any): void;
96
+ checkForExceptionRecord(): void;
97
+ calculateOrderFeesAmounts(): void;
98
98
  resetOrderVariables(): void;
99
99
  goToOrderViewDetailSection(orderReferenceObj: any): void;
100
100
  redirectToOrderFeeSearchPage(event: any, orderef: any): void;
101
101
  goToCaseTransationPage(event: any): void;
102
- calculateAmounts(event: any): void;
103
- calculateRefundAmount(event: any): number;
102
+ calculateAmounts(): void;
103
+ calculateRefundAmount(): number;
104
104
  getGroupOutstandingAmount(paymentGroup: IPaymentGroup): number;
105
105
  redirectToFeeSearchPage(event: any): void;
106
106
  addRemission(fee: IFee): void;
@@ -46,6 +46,7 @@ export declare class PaymentViewComponent implements OnInit {
46
46
  goToPaymentList(): void;
47
47
  goToCaseTransationPage(event: any): void;
48
48
  addRemission(fee: IFee): void;
49
+ checkForFees(paymentGroup: any): boolean;
49
50
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
50
51
  chkIsRefundRemissionBtnEnable(): boolean;
51
52
  issueRefund(paymentgrp: IPaymentGroup): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "4.0.0-beta543",
3
+ "version": "4.0.0-beta548",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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\" class=\"refundsmain\">\n <div class=\"processrefund\">\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: [".processrefund{min-width:960px;max-width:1860px;margin:0 30px}.refundsmain{padding-top:25px}"]
19
- }] }
20
- ];
21
- /** @nocollapse */
22
- RefundsComponent.ctorParameters = () => [];
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmdW5kcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3JlZnVuZHMvcmVmdW5kcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFPbEQsTUFBTSxPQUFPLGdCQUFnQjtJQUUzQixnQkFBZ0IsQ0FBQzs7OztJQUVqQixRQUFRO0lBQ1IsQ0FBQzs7O1lBVkYsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxlQUFlO2dCQUN6Qix1MENBQXVDOzthQUV4QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2NjcGF5LXJlZnVuZHMnLFxuICB0ZW1wbGF0ZVVybDogJy4vcmVmdW5kcy5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL3JlZnVuZHMuY29tcG9uZW50LmNzcyddXG59KVxuZXhwb3J0IGNsYXNzIFJlZnVuZHNDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIl19
@@ -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\" class=\"refundsmain\">\n <div class=\"processrefund\">\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: [".processrefund{min-width:960px;max-width:1860px;margin:0 30px}.refundsmain{padding-top:25px}"]
22
- }] }
23
- ];
24
- /** @nocollapse */
25
- RefundsComponent.ctorParameters = function () { return []; };
26
- return RefundsComponent;
27
- }());
28
- export { RefundsComponent };
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmdW5kcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3JlZnVuZHMvcmVmdW5kcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFbEQ7SUFPRTtJQUFnQixDQUFDOzs7O0lBRWpCLG1DQUFROzs7SUFBUjtJQUNBLENBQUM7O2dCQVZGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsZUFBZTtvQkFDekIsdTBDQUF1Qzs7aUJBRXhDOzs7O0lBUUQsdUJBQUM7Q0FBQSxBQVpELElBWUM7U0FQWSxnQkFBZ0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5pdCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdjY3BheS1yZWZ1bmRzJyxcbiAgdGVtcGxhdGVVcmw6ICcuL3JlZnVuZHMuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9yZWZ1bmRzLmNvbXBvbmVudC5jc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBSZWZ1bmRzQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIG5nT25Jbml0KCkge1xuICB9XG5cbn1cbiJdfQ==
@@ -1,5 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- export declare class RefundsComponent implements OnInit {
3
- constructor();
4
- ngOnInit(): void;
5
- }