@hmcts/ccpay-web-component 5.0.7-beta22 → 5.0.8-beta02

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 (102) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +638 -2074
  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 -33
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +120 -695
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +2 -2
  8. package/esm2015/lib/components/case-transactions/case-transactions.component.js +17 -31
  9. package/esm2015/lib/components/fee-summary/fee-summary.component.js +13 -18
  10. package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +2 -2
  11. package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +2 -2
  12. package/esm2015/lib/components/payment-view/payment-view.component.js +106 -188
  13. package/esm2015/lib/components/process-refund/process-refund.component.js +28 -49
  14. package/esm2015/lib/components/refund-list/refund-list.component.js +3 -3
  15. package/esm2015/lib/components/refund-status/refund-status.component.js +30 -211
  16. package/esm2015/lib/components/reports/reports.component.js +17 -2
  17. package/esm2015/lib/components/service-request/service-request.component.js +146 -237
  18. package/esm2015/lib/components/table/table.component.js +9 -24
  19. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +2 -2
  20. package/esm2015/lib/interfaces/IFee.js +1 -13
  21. package/esm2015/lib/interfaces/IPayment.js +1 -7
  22. package/esm2015/lib/interfaces/IRefundList.js +1 -7
  23. package/esm2015/lib/interfaces/IRemission.js +1 -7
  24. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +2 -10
  25. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +2 -6
  26. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -20
  27. package/esm2015/lib/payment-lib.component.js +2 -9
  28. package/esm2015/lib/payment-lib.module.js +1 -3
  29. package/esm2015/lib/payment-lib.service.js +1 -16
  30. package/esm2015/lib/services/refunds/refunds.service.js +1 -10
  31. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
  32. package/esm2015/lib/services/xl-file/xl-file.service.js +2 -1
  33. package/esm5/hmcts-ccpay-web-component.js +31 -33
  34. package/esm5/lib/components/add-remission/add-remission.component.js +125 -817
  35. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +2 -2
  36. package/esm5/lib/components/case-transactions/case-transactions.component.js +17 -31
  37. package/esm5/lib/components/fee-summary/fee-summary.component.js +13 -18
  38. package/esm5/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +2 -2
  39. package/esm5/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +2 -2
  40. package/esm5/lib/components/payment-view/payment-view.component.js +124 -219
  41. package/esm5/lib/components/process-refund/process-refund.component.js +78 -52
  42. package/esm5/lib/components/refund-list/refund-list.component.js +3 -3
  43. package/esm5/lib/components/refund-status/refund-status.component.js +28 -247
  44. package/esm5/lib/components/reports/reports.component.js +17 -2
  45. package/esm5/lib/components/service-request/service-request.component.js +176 -278
  46. package/esm5/lib/components/table/table.component.js +9 -27
  47. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +2 -2
  48. package/esm5/lib/interfaces/IFee.js +1 -13
  49. package/esm5/lib/interfaces/IPayment.js +1 -7
  50. package/esm5/lib/interfaces/IRefundList.js +1 -7
  51. package/esm5/lib/interfaces/IRemission.js +1 -7
  52. package/esm5/lib/interfaces/IResubmitRefundRequest.js +2 -8
  53. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +2 -5
  54. package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -16
  55. package/esm5/lib/payment-lib.component.js +2 -9
  56. package/esm5/lib/payment-lib.module.js +1 -3
  57. package/esm5/lib/payment-lib.service.js +1 -23
  58. package/esm5/lib/services/refunds/refunds.service.js +1 -16
  59. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +1 -1
  60. package/esm5/lib/services/xl-file/xl-file.service.js +2 -1
  61. package/fesm2015/hmcts-ccpay-web-component.js +512 -1823
  62. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  63. package/fesm5/hmcts-ccpay-web-component.js +597 -2074
  64. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  65. package/hmcts-ccpay-web-component.d.ts +30 -32
  66. package/hmcts-ccpay-web-component.metadata.json +1 -1
  67. package/lib/components/add-remission/add-remission.component.d.ts +3 -45
  68. package/lib/components/case-transactions/case-transactions.component.d.ts +1 -2
  69. package/lib/components/payment-view/payment-view.component.d.ts +6 -23
  70. package/lib/components/process-refund/process-refund.component.d.ts +1 -6
  71. package/lib/components/refund-status/refund-status.component.d.ts +6 -34
  72. package/lib/components/service-request/service-request.component.d.ts +9 -28
  73. package/lib/components/table/table.component.d.ts +0 -1
  74. package/lib/interfaces/IFee.d.ts +0 -6
  75. package/lib/interfaces/IPayment.d.ts +0 -3
  76. package/lib/interfaces/IRefundList.d.ts +0 -4
  77. package/lib/interfaces/IRemission.d.ts +0 -3
  78. package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -5
  79. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -3
  80. package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -7
  81. package/lib/payment-lib.component.d.ts +0 -2
  82. package/lib/payment-lib.service.d.ts +0 -3
  83. package/lib/services/refunds/refunds.service.d.ts +0 -2
  84. package/package.json +1 -5
  85. package/esm2015/lib/components/contact-details/contact-details.component.js +0 -447
  86. package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -25
  87. package/esm2015/lib/interfaces/IRefundContactDetails.js +0 -25
  88. package/esm2015/lib/interfaces/IRefundFee.js +0 -21
  89. package/esm2015/lib/interfaces/IRefundsNotifications.js +0 -21
  90. package/esm2015/lib/services/notification/notification.service.js +0 -85
  91. package/esm5/lib/components/contact-details/contact-details.component.js +0 -472
  92. package/esm5/lib/interfaces/IPutNotificationRequest.js +0 -23
  93. package/esm5/lib/interfaces/IRefundContactDetails.js +0 -25
  94. package/esm5/lib/interfaces/IRefundFee.js +0 -21
  95. package/esm5/lib/interfaces/IRefundsNotifications.js +0 -21
  96. package/esm5/lib/services/notification/notification.service.js +0 -89
  97. package/lib/components/contact-details/contact-details.component.d.ts +0 -49
  98. package/lib/interfaces/IPutNotificationRequest.d.ts +0 -6
  99. package/lib/interfaces/IRefundContactDetails.d.ts +0 -9
  100. package/lib/interfaces/IRefundFee.d.ts +0 -7
  101. package/lib/interfaces/IRefundsNotifications.d.ts +0 -16
  102. package/lib/services/notification/notification.service.d.ts +0 -15
@@ -1,85 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Injectable } from '@angular/core';
6
- import { HttpClient } from '@angular/common/http';
7
- import { ErrorHandlerService } from '../shared/error-handler.service';
8
- import { WebComponentHttpClient } from '../shared/httpclient/webcomponent.http.client';
9
- import { PaymentLibService } from '../../payment-lib.service';
10
- import { catchError } from 'rxjs/operators';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "@angular/common/http";
13
- import * as i2 from "../shared/httpclient/webcomponent.http.client";
14
- import * as i3 from "../shared/error-handler.service";
15
- import * as i4 from "../../payment-lib.service";
16
- export class NotificationService {
17
- /**
18
- * @param {?} http
19
- * @param {?} https
20
- * @param {?} errorHandlerService
21
- * @param {?} paymentLibService
22
- */
23
- constructor(http, https, errorHandlerService, paymentLibService) {
24
- this.http = http;
25
- this.https = https;
26
- this.errorHandlerService = errorHandlerService;
27
- this.paymentLibService = paymentLibService;
28
- }
29
- /**
30
- * @param {?} reference
31
- * @return {?}
32
- */
33
- getRefundNotification(reference) {
34
- return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/notifications/${reference}`, {
35
- withCredentials: true
36
- })
37
- .pipe(catchError(this.errorHandlerService.handleError));
38
- }
39
- /**
40
- * @param {?} postcode
41
- * @return {?}
42
- */
43
- getAddressByPostcode(postcode) {
44
- return this.http.get(`${this.paymentLibService.NOTIFICATION_API_ROOT}/search/places/v1/postcode?postcode=${postcode}`, {
45
- withCredentials: true
46
- })
47
- .pipe(catchError(this.errorHandlerService.handleError));
48
- }
49
- }
50
- NotificationService.decorators = [
51
- { type: Injectable, args: [{
52
- providedIn: 'root'
53
- },] }
54
- ];
55
- /** @nocollapse */
56
- NotificationService.ctorParameters = () => [
57
- { type: HttpClient },
58
- { type: WebComponentHttpClient },
59
- { type: ErrorHandlerService },
60
- { type: PaymentLibService }
61
- ];
62
- /** @nocollapse */ NotificationService.ngInjectableDef = i0.defineInjectable({ factory: function NotificationService_Factory() { return new NotificationService(i0.inject(i1.HttpClient), i0.inject(i2.WebComponentHttpClient), i0.inject(i3.ErrorHandlerService), i0.inject(i4.PaymentLibService)); }, token: NotificationService, providedIn: "root" });
63
- if (false) {
64
- /**
65
- * @type {?}
66
- * @private
67
- */
68
- NotificationService.prototype.http;
69
- /**
70
- * @type {?}
71
- * @private
72
- */
73
- NotificationService.prototype.https;
74
- /**
75
- * @type {?}
76
- * @private
77
- */
78
- NotificationService.prototype.errorHandlerService;
79
- /**
80
- * @type {?}
81
- * @private
82
- */
83
- NotificationService.prototype.paymentLibService;
84
- }
85
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy9ub3RpZmljYXRpb24vbm90aWZpY2F0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUF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