@hmcts/ccpay-web-component 5.0.8-beta14 → 5.0.10-beta01

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 (171) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +8672 -5390
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -15
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +6 -2
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +445 -166
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +359 -61
  8. package/esm2015/lib/components/card-details/card-details.component.js +54 -15
  9. package/esm2015/lib/components/case-transactions/case-transactions.component.js +697 -127
  10. package/esm2015/lib/components/error-banner/error-banner.component.js +25 -16
  11. package/esm2015/lib/components/fee-summary/fee-summary.component.js +267 -59
  12. package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +191 -40
  13. package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +235 -44
  14. package/esm2015/lib/components/page-not-found.component.js +12 -10
  15. package/esm2015/lib/components/payment-list/payment-list.component.js +55 -15
  16. package/esm2015/lib/components/payment-view/payment-view.component.js +360 -115
  17. package/esm2015/lib/components/pba-details/pba-details.component.js +25 -16
  18. package/esm2015/lib/components/pba-payment/pba-payment.component.js +129 -27
  19. package/esm2015/lib/components/process-refund/process-refund.component.js +189 -39
  20. package/esm2015/lib/components/processed-payments/processed-payments.component.js +52 -22
  21. package/esm2015/lib/components/refund-list/refund-list.component.js +90 -32
  22. package/esm2015/lib/components/refund-status/refund-status.component.js +269 -58
  23. package/esm2015/lib/components/reports/reports.component.js +222 -39
  24. package/esm2015/lib/components/service-request/service-request.component.js +393 -108
  25. package/esm2015/lib/components/status-history/status-history.component.js +54 -19
  26. package/esm2015/lib/components/table/table.component.js +119 -39
  27. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +202 -65
  28. package/esm2015/lib/interfaces/AddRemissionRequest.js +28 -1
  29. package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +15 -1
  30. package/esm2015/lib/interfaces/AllocatePaymentRequest.js +42 -1
  31. package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +26 -1
  32. package/esm2015/lib/interfaces/IBSPayments.js +45 -1
  33. package/esm2015/lib/interfaces/ICardDetails.js +21 -1
  34. package/esm2015/lib/interfaces/IFee.js +53 -1
  35. package/esm2015/lib/interfaces/IOrderReferenceFee.js +25 -1
  36. package/esm2015/lib/interfaces/IPatchRefundAction.js +15 -1
  37. package/esm2015/lib/interfaces/IPayment.js +65 -1
  38. package/esm2015/lib/interfaces/IPaymentFailure.js +33 -1
  39. package/esm2015/lib/interfaces/IPaymentGroup.js +19 -1
  40. package/esm2015/lib/interfaces/IPaymentStatus.js +25 -1
  41. package/esm2015/lib/interfaces/IPaymentView.js +17 -1
  42. package/esm2015/lib/interfaces/IPayments.js +13 -1
  43. package/esm2015/lib/interfaces/IRefundAction.js +15 -1
  44. package/esm2015/lib/interfaces/IRefundList.js +29 -1
  45. package/esm2015/lib/interfaces/IRefundReasons.js +19 -1
  46. package/esm2015/lib/interfaces/IRefundRejectReason.js +15 -1
  47. package/esm2015/lib/interfaces/IRefundStatus.js +23 -1
  48. package/esm2015/lib/interfaces/IRefundStatusHistory.js +15 -1
  49. package/esm2015/lib/interfaces/IRemission.js +25 -1
  50. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +15 -1
  51. package/esm2015/lib/interfaces/IStatusHistories.js +19 -1
  52. package/esm2015/lib/interfaces/IStatusHistory.js +21 -1
  53. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +16 -1
  54. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +23 -1
  55. package/esm2015/lib/interfaces/IssueRefundRequest.js +18 -1
  56. package/esm2015/lib/interfaces/PayhubAntennaRequest.js +21 -2
  57. package/esm2015/lib/interfaces/PaymentToPayhubRequest.js +27 -2
  58. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +12 -1
  59. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +15 -1
  60. package/esm2015/lib/interfaces/RefundsRequest.js +15 -1
  61. package/esm2015/lib/interfaces/UnidentifiedPaymentsRequest.js +20 -1
  62. package/esm2015/lib/interfaces/UnsolicitedPaymentsRequest.js +29 -1
  63. package/esm2015/lib/payment-lib.component.js +187 -120
  64. package/esm2015/lib/payment-lib.module.js +57 -55
  65. package/esm2015/lib/payment-lib.service.js +53 -12
  66. package/esm2015/lib/pipes/capitalize.pipe.js +19 -11
  67. package/esm2015/lib/pipes/ccd-hyphens.pipe.js +20 -11
  68. package/esm2015/lib/pipes/key-value.pipe.js +19 -11
  69. package/esm2015/lib/pipes/sanitize-html.pipe.js +26 -10
  70. package/esm2015/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +109 -22
  71. package/esm2015/lib/services/card-details/card-details.service.js +46 -15
  72. package/esm2015/lib/services/case-transactions/case-transactions.service.js +46 -15
  73. package/esm2015/lib/services/orderslist.service.js +259 -12
  74. package/esm2015/lib/services/payment-list/payment-list.service.js +49 -15
  75. package/esm2015/lib/services/payment-view/payment-view.service.js +176 -18
  76. package/esm2015/lib/services/refunds/refunds.service.js +116 -21
  77. package/esm2015/lib/services/shared/error-handler.service.js +27 -12
  78. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +87 -15
  79. package/esm2015/lib/services/shared/logger/console-logger.service.js +34 -12
  80. package/esm2015/lib/services/shared/logger/logger.service.js +42 -12
  81. package/esm2015/lib/services/status-history/status-history.service.js +47 -15
  82. package/esm2015/lib/services/xl-file/xl-file.service.js +66 -10
  83. package/esm2015/public_api.js +8 -4
  84. package/esm5/hmcts-ccpay-web-component.js +6 -2
  85. package/esm5/lib/components/add-remission/add-remission.component.js +541 -185
  86. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +419 -75
  87. package/esm5/lib/components/card-details/card-details.component.js +53 -14
  88. package/esm5/lib/components/case-transactions/case-transactions.component.js +850 -160
  89. package/esm5/lib/components/error-banner/error-banner.component.js +28 -15
  90. package/esm5/lib/components/fee-summary/fee-summary.component.js +320 -70
  91. package/esm5/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +223 -46
  92. package/esm5/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +277 -52
  93. package/esm5/lib/components/page-not-found.component.js +10 -7
  94. package/esm5/lib/components/payment-list/payment-list.component.js +60 -14
  95. package/esm5/lib/components/payment-view/payment-view.component.js +439 -134
  96. package/esm5/lib/components/pba-details/pba-details.component.js +28 -15
  97. package/esm5/lib/components/pba-payment/pba-payment.component.js +149 -30
  98. package/esm5/lib/components/process-refund/process-refund.component.js +271 -45
  99. package/esm5/lib/components/processed-payments/processed-payments.component.js +62 -22
  100. package/esm5/lib/components/refund-list/refund-list.component.js +89 -30
  101. package/esm5/lib/components/refund-status/refund-status.component.js +334 -71
  102. package/esm5/lib/components/reports/reports.component.js +275 -49
  103. package/esm5/lib/components/service-request/service-request.component.js +461 -122
  104. package/esm5/lib/components/status-history/status-history.component.js +52 -17
  105. package/esm5/lib/components/table/table.component.js +153 -44
  106. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +258 -75
  107. package/esm5/lib/interfaces/AddRemissionRequest.js +21 -1
  108. package/esm5/lib/interfaces/AddRetroRemissionRequest.js +11 -1
  109. package/esm5/lib/interfaces/AllocatePaymentRequest.js +35 -1
  110. package/esm5/lib/interfaces/IAllocationPaymentsRequest.js +19 -1
  111. package/esm5/lib/interfaces/IBSPayments.js +45 -1
  112. package/esm5/lib/interfaces/ICardDetails.js +21 -1
  113. package/esm5/lib/interfaces/IFee.js +53 -1
  114. package/esm5/lib/interfaces/IOrderReferenceFee.js +25 -1
  115. package/esm5/lib/interfaces/IPatchRefundAction.js +15 -1
  116. package/esm5/lib/interfaces/IPayment.js +65 -1
  117. package/esm5/lib/interfaces/IPaymentFailure.js +33 -1
  118. package/esm5/lib/interfaces/IPaymentGroup.js +19 -1
  119. package/esm5/lib/interfaces/IPaymentStatus.js +25 -1
  120. package/esm5/lib/interfaces/IPaymentView.js +17 -1
  121. package/esm5/lib/interfaces/IPayments.js +13 -1
  122. package/esm5/lib/interfaces/IRefundAction.js +15 -1
  123. package/esm5/lib/interfaces/IRefundList.js +29 -1
  124. package/esm5/lib/interfaces/IRefundReasons.js +19 -1
  125. package/esm5/lib/interfaces/IRefundRejectReason.js +15 -1
  126. package/esm5/lib/interfaces/IRefundStatus.js +23 -1
  127. package/esm5/lib/interfaces/IRefundStatusHistory.js +15 -1
  128. package/esm5/lib/interfaces/IRemission.js +25 -1
  129. package/esm5/lib/interfaces/IResubmitRefundRequest.js +11 -1
  130. package/esm5/lib/interfaces/IStatusHistories.js +19 -1
  131. package/esm5/lib/interfaces/IStatusHistory.js +21 -1
  132. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +13 -1
  133. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +17 -1
  134. package/esm5/lib/interfaces/IssueRefundRequest.js +13 -1
  135. package/esm5/lib/interfaces/PayhubAntennaRequest.js +16 -2
  136. package/esm5/lib/interfaces/PaymentToPayhubRequest.js +22 -2
  137. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +9 -1
  138. package/esm5/lib/interfaces/PostRefundRetroRemission.js +11 -1
  139. package/esm5/lib/interfaces/RefundsRequest.js +11 -1
  140. package/esm5/lib/interfaces/UnidentifiedPaymentsRequest.js +15 -1
  141. package/esm5/lib/interfaces/UnsolicitedPaymentsRequest.js +21 -1
  142. package/esm5/lib/payment-lib.component.js +183 -114
  143. package/esm5/lib/payment-lib.module.js +55 -52
  144. package/esm5/lib/payment-lib.service.js +87 -17
  145. package/esm5/lib/pipes/capitalize.pipe.js +23 -9
  146. package/esm5/lib/pipes/ccd-hyphens.pipe.js +24 -9
  147. package/esm5/lib/pipes/key-value.pipe.js +22 -9
  148. package/esm5/lib/pipes/sanitize-html.pipe.js +26 -8
  149. package/esm5/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +152 -28
  150. package/esm5/lib/services/card-details/card-details.service.js +43 -13
  151. package/esm5/lib/services/case-transactions/case-transactions.service.js +43 -13
  152. package/esm5/lib/services/orderslist.service.js +419 -45
  153. package/esm5/lib/services/payment-list/payment-list.service.js +47 -13
  154. package/esm5/lib/services/payment-view/payment-view.service.js +306 -40
  155. package/esm5/lib/services/refunds/refunds.service.js +163 -29
  156. package/esm5/lib/services/shared/error-handler.service.js +37 -11
  157. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +119 -18
  158. package/esm5/lib/services/shared/logger/console-logger.service.js +41 -13
  159. package/esm5/lib/services/shared/logger/logger.service.js +53 -11
  160. package/esm5/lib/services/status-history/status-history.service.js +45 -13
  161. package/esm5/lib/services/xl-file/xl-file.service.js +114 -15
  162. package/esm5/public_api.js +8 -4
  163. package/fesm2015/hmcts-ccpay-web-component.js +4041 -1490
  164. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  165. package/fesm5/hmcts-ccpay-web-component.js +5386 -1750
  166. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  167. package/hmcts-ccpay-web-component.metadata.json +1 -1
  168. package/lib/components/card-details/card-details.component.d.ts +1 -1
  169. package/lib/components/payment-view/payment-view.component.d.ts +2 -2
  170. package/lib/services/shared/logger/console-logger.service.d.ts +3 -3
  171. package/package.json +2 -2
@@ -1,14 +1,17 @@
1
- import { __decorate } from "tslib";
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
2
5
  import { Component } from '@angular/core';
3
6
  var PageNotFoundComponent = /** @class */ (function () {
4
7
  function PageNotFoundComponent() {
5
8
  }
6
- PageNotFoundComponent = __decorate([
7
- Component({
8
- template: "\n <h1>This is not the page you were looking for!</h1>\n "
9
- })
10
- ], PageNotFoundComponent);
9
+ PageNotFoundComponent.decorators = [
10
+ { type: Component, args: [{
11
+ template: "\n <h1>This is not the page you were looking for!</h1>\n "
12
+ }] }
13
+ ];
11
14
  return PageNotFoundComponent;
12
15
  }());
13
16
  export { PageNotFoundComponent };
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1ub3QtZm91bmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL2NjcGF5LXdlYi1jb21wb25lbnQvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9wYWdlLW5vdC1mb3VuZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFPMUM7SUFBQTtJQUFxQyxDQUFDO0lBQXpCLHFCQUFxQjtRQUxqQyxTQUFTLENBQUM7WUFDUCxRQUFRLEVBQUUsaUVBRVQ7U0FDSixDQUFDO09BQ1cscUJBQXFCLENBQUk7SUFBRCw0QkFBQztDQUFBLEFBQXRDLElBQXNDO1NBQXpCLHFCQUFxQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgICB0ZW1wbGF0ZTogYFxuICAgIDxoMT5UaGlzIGlzIG5vdCB0aGUgcGFnZSB5b3Ugd2VyZSBsb29raW5nIGZvciE8L2gxPlxuICAgIGBcbn0pXG5leHBvcnQgY2xhc3MgUGFnZU5vdEZvdW5kQ29tcG9uZW50IHsgfVxuIl19
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1ub3QtZm91bmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL2NjcGF5LXdlYi1jb21wb25lbnQvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9wYWdlLW5vdC1mb3VuZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFMUM7SUFBQTtJQUtxQyxDQUFDOztnQkFMckMsU0FBUyxTQUFDO29CQUNQLFFBQVEsRUFBRSxpRUFFVDtpQkFDSjs7SUFDb0MsNEJBQUM7Q0FBQSxBQUx0QyxJQUtzQztTQUF6QixxQkFBcUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gICAgdGVtcGxhdGU6IGBcbiAgICA8aDE+VGhpcyBpcyBub3QgdGhlIHBhZ2UgeW91IHdlcmUgbG9va2luZyBmb3IhPC9oMT5cbiAgICBgXG59KVxuZXhwb3J0IGNsYXNzIFBhZ2VOb3RGb3VuZENvbXBvbmVudCB7IH1cbiJdfQ==
@@ -1,4 +1,7 @@
1
- import { __decorate, __metadata } from "tslib";
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
2
5
  import { Component } from '@angular/core';
3
6
  import { PaymentListService } from '../../services/payment-list/payment-list.service';
4
7
  import { PaymentLibComponent } from '../../payment-lib.component';
@@ -7,31 +10,74 @@ var PaymentListComponent = /** @class */ (function () {
7
10
  this.paymentListService = paymentListService;
8
11
  this.paymentLibComponent = paymentLibComponent;
9
12
  }
10
- PaymentListComponent.prototype.ngOnInit = function () {
13
+ /**
14
+ * @return {?}
15
+ */
16
+ PaymentListComponent.prototype.ngOnInit = /**
17
+ * @return {?}
18
+ */
19
+ function () {
11
20
  var _this = this;
12
21
  this.paymentListService.getPaymentByCcdCaseNumber(this.paymentLibComponent.CCD_CASE_NUMBER, this.paymentLibComponent.PAYMENT_METHOD)
13
- .subscribe(function (payments) { return _this.payments = payments; }, function (error) { return _this.errorMessage = error; });
22
+ .subscribe((/**
23
+ * @param {?} payments
24
+ * @return {?}
25
+ */
26
+ function (payments) { return _this.payments = payments; }), (/**
27
+ * @param {?} error
28
+ * @return {?}
29
+ */
30
+ function (error) { return _this.errorMessage = (/** @type {?} */ (error)); }));
14
31
  };
15
- PaymentListComponent.prototype.loadPaymentViewComponent = function (paymentGroupReference, paymentReference, paymentMethod) {
32
+ /**
33
+ * @param {?} paymentGroupReference
34
+ * @param {?} paymentReference
35
+ * @param {?} paymentMethod
36
+ * @return {?}
37
+ */
38
+ PaymentListComponent.prototype.loadPaymentViewComponent = /**
39
+ * @param {?} paymentGroupReference
40
+ * @param {?} paymentReference
41
+ * @param {?} paymentMethod
42
+ * @return {?}
43
+ */
44
+ function (paymentGroupReference, paymentReference, paymentMethod) {
16
45
  this.paymentLibComponent.paymentMethod = paymentMethod;
17
46
  this.paymentLibComponent.paymentGroupReference = paymentGroupReference;
18
47
  this.paymentLibComponent.paymentReference = paymentReference;
19
48
  this.paymentLibComponent.viewName = 'payment-view';
20
49
  };
50
+ PaymentListComponent.decorators = [
51
+ { type: Component, args: [{
52
+ selector: 'ccpay-payment-list',
53
+ template: "<div class=\"govuk-width-container\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payments list could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"!errorMessage && payments\">\n\n <table class=\"table\">\n <tr>\n <th class=\"bold font-xsmall\">Payment group reference</th>\n <th class=\"bold font-xsmall\">Payment reference</th>\n <th class=\"bold font-xsmall\">Date created</th>\n <th class=\"bold font-xsmall\">Channel</th>\n <th class=\"bold font-xsmall\">Method</th>\n <th class=\"bold font-xsmall\">Amount</th>\n <th class=\"bold font-xsmall\">Status</th>\n </tr>\n <tr *ngFor=\"let payment of payments.payments\">\n <td class=\"font-xsmall\">\n <a href=\"javascript:void(0)\" (click)=\"loadPaymentViewComponent(payment.payment_group_reference, payment.payment_reference, payment.method)\">{{ payment.payment_group_reference }}</a>\n <td class=\"font-xsmall\">{{ payment.payment_reference }}</td>\n <td class=\"font-xsmall\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"font-xsmall\">{{ payment.channel | titlecase }}</td>\n <td class=\"font-xsmall\">{{ payment.method | titlecase }}</td>\n <td class=\"font-xsmall\">\u00A3{{ payment.amount | number:'.2' }}</td>\n <td *ngIf=\"payment.method === 'card' && payment.channel === 'online'\">\n <details>\n <summary><span class=\"summary font-xsmall\">{{ payment.status }}</span></summary>\n <div class=\"panel panel-border-narrow\" *ngIf=\"payment.status === 'Failed'\">\n <div *ngFor=\"let statusHistory of payment.status_histories\">\n <p class=\"font-xsmall\" *ngIf=\"statusHistory.error_code === 'P0010'\">\n Payment rejected due to payment method selected or payment information entered, for example, failed fraud check, a 3D Secure authentication failure, or the user does not have enough money in account\n </p>\n <p class=\"font-xsmall\" *ngIf=\"statusHistory.error_code === 'P0020'\">\n Payment was not confirmed and completed within 90 minutes of being created\n </p>\n <p class=\"font-xsmall\" *ngIf=\"statusHistory.error_code === 'P0030'\">\n User clicked on the \u201CCancel payment\u201D button during the payment journey\n </p>\n <p class=\"font-xsmall\" *ngIf=\"statusHistory.error_code === 'P0050'\">\n Multiple possible causes, for example a configuration problem with the payment provider, or incorrect login credentials\n </p>\n </div>\n </div>\n </details>\n </td>\n <td *ngIf=\"payment.method === 'card' && payment.channel === 'telephony'\" class=\"font-xsmall\">\n {{ payment.status}}\n </td>\n <td *ngIf=\"payment.method === 'payment by account'\">\n <details>\n <summary><span class=\"summary font-xsmall\">{{ payment.status }}</span></summary>\n <div class=\"panel panel-border-narrow\" *ngIf=\"payment.status === 'Pending'\">\n <p class=\"font-xsmall\">This means the transaction is being processed by Liberata.</p>\n </div>\n </details>\n </td>\n </tr>\n </table>\n\n </div>\n\n</div>\n",
54
+ styles: [""]
55
+ }] }
56
+ ];
57
+ /** @nocollapse */
21
58
  PaymentListComponent.ctorParameters = function () { return [
22
59
  { type: PaymentListService },
23
60
  { type: PaymentLibComponent }
24
61
  ]; };
25
- PaymentListComponent = __decorate([
26
- Component({
27
- selector: 'ccpay-payment-list',
28
- template: "<div class=\"govuk-width-container\">\n\n <div *ngIf=\"errorMessage\">\n <div class=\"error-summary\" role=\"group\" aria-labelledby=\"failure-error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-medium error-summary-heading\" id=\"failure-error-summary-heading\">\n Payments list could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"!errorMessage && payments\">\n\n <table class=\"table\">\n <tr>\n <th class=\"bold font-xsmall\">Payment group reference</th>\n <th class=\"bold font-xsmall\">Payment reference</th>\n <th class=\"bold font-xsmall\">Date created</th>\n <th class=\"bold font-xsmall\">Channel</th>\n <th class=\"bold font-xsmall\">Method</th>\n <th class=\"bold font-xsmall\">Amount</th>\n <th class=\"bold font-xsmall\">Status</th>\n </tr>\n <tr *ngFor=\"let payment of payments.payments\">\n <td class=\"font-xsmall\">\n <a href=\"javascript:void(0)\" (click)=\"loadPaymentViewComponent(payment.payment_group_reference, payment.payment_reference, payment.method)\">{{ payment.payment_group_reference }}</a>\n <td class=\"font-xsmall\">{{ payment.payment_reference }}</td>\n <td class=\"font-xsmall\">{{ payment.date_created | date:'dd MMM yyyy' }}</td>\n <td class=\"font-xsmall\">{{ payment.channel | titlecase }}</td>\n <td class=\"font-xsmall\">{{ payment.method | titlecase }}</td>\n <td class=\"font-xsmall\">\u00A3{{ payment.amount | number:'.2' }}</td>\n <td *ngIf=\"payment.method === 'card' && payment.channel === 'online'\">\n <details>\n <summary><span class=\"summary font-xsmall\">{{ payment.status }}</span></summary>\n <div class=\"panel panel-border-narrow\" *ngIf=\"payment.status === 'Failed'\">\n <div *ngFor=\"let statusHistory of payment.status_histories\">\n <p class=\"font-xsmall\" *ngIf=\"statusHistory.error_code === 'P0010'\">\n Payment rejected due to payment method selected or payment information entered, for example, failed fraud check, a 3D Secure authentication failure, or the user does not have enough money in account\n </p>\n <p class=\"font-xsmall\" *ngIf=\"statusHistory.error_code === 'P0020'\">\n Payment was not confirmed and completed within 90 minutes of being created\n </p>\n <p class=\"font-xsmall\" *ngIf=\"statusHistory.error_code === 'P0030'\">\n User clicked on the \u201CCancel payment\u201D button during the payment journey\n </p>\n <p class=\"font-xsmall\" *ngIf=\"statusHistory.error_code === 'P0050'\">\n Multiple possible causes, for example a configuration problem with the payment provider, or incorrect login credentials\n </p>\n </div>\n </div>\n </details>\n </td>\n <td *ngIf=\"payment.method === 'card' && payment.channel === 'telephony'\" class=\"font-xsmall\">\n {{ payment.status}}\n </td>\n <td *ngIf=\"payment.method === 'payment by account'\">\n <details>\n <summary><span class=\"summary font-xsmall\">{{ payment.status }}</span></summary>\n <div class=\"panel panel-border-narrow\" *ngIf=\"payment.status === 'Pending'\">\n <p class=\"font-xsmall\">This means the transaction is being processed by Liberata.</p>\n </div>\n </details>\n </td>\n </tr>\n </table>\n\n </div>\n\n</div>\n",
29
- styles: [""]
30
- }),
31
- __metadata("design:paramtypes", [PaymentListService,
32
- PaymentLibComponent])
33
- ], PaymentListComponent);
34
62
  return PaymentListComponent;
35
63
  }());
36
64
  export { PaymentListComponent };
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC1saXN0L3BheW1lbnQtbGlzdC5jb21wb25l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50cztcbiAgZXJyb3JNZXNzYWdlOiBzdHJpbmc7XG4gIGNvZGU6IHN0cmluZztcblxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHBheW1lbnRMaXN0U2VydmljZTogUGF5bWVudExpc3RTZXJ2aWNlLFxuICAgICAgICAgICAgICBwcml2YXRlIHBheW1lbnRMaWJDb21wb25lbnQ6IFBheW1lbnRMaWJDb21wb25lbnQpIHtcbiAgfVxuXG4gIG5nT25Jbml0KCkge1xuICAgIHRoaXMucGF5bWVudExpc3RTZXJ2aWNlLmdldFBheW1lbnRCeUNjZENhc2VOdW1iZXIodGhpcy5wYXltZW50TGliQ29tcG9uZW50LkNDRF9DQVNFX05VTUJFUiwgdGhpcy5wYXltZW50TGliQ29tcG9uZW50LlBBWU1FTlRfTUVUSE9EKVxuICAgICAgLnN1YnNjcmliZShcbiAgICAgICAgcGF5bWVudHMgPT4gdGhpcy5wYXltZW50cyA9IHBheW1lbnRzLFxuICAgICAgICAoZXJyb3I6IGFueSkgPT4gdGhpcy5lcnJvck1lc3NhZ2UgPSA8YW55PmVycm9yXG4gICAgICApO1xuICB9XG5cbiAgbG9hZFBheW1lbnRWaWV3Q29tcG9uZW50KHBheW1lbnRHcm91cFJlZmVyZW5jZTogc3RyaW5nLCBwYXltZW50UmVmZXJlbmNlOiBzdHJpbmcsIHBheW1lbnRNZXRob2Q6IHN0cmluZykge1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50TWV0aG9kID0gcGF5bWVudE1ldGhvZDtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQucGF5bWVudEdyb3VwUmVmZXJlbmNlID0gcGF5bWVudEdyb3VwUmVmZXJlbmNlO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50UmVmZXJlbmNlID0gcGF5bWVudFJlZmVyZW5jZTtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQudmlld05hbWUgPSAncGF5bWVudC12aWV3JztcbiAgfVxufVxuIl19
65
+ if (false) {
66
+ /** @type {?} */
67
+ PaymentListComponent.prototype.payments;
68
+ /** @type {?} */
69
+ PaymentListComponent.prototype.errorMessage;
70
+ /** @type {?} */
71
+ PaymentListComponent.prototype.code;
72
+ /**
73
+ * @type {?}
74
+ * @private
75
+ */
76
+ PaymentListComponent.prototype.paymentListService;
77
+ /**
78
+ * @type {?}
79
+ * @private
80
+ */
81
+ PaymentListComponent.prototype.paymentLibComponent;
82
+ }
83
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC1saXN0L3BheW1lbnQtbGlzdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQVMsTUFBTSxlQUFlLENBQUM7QUFFaEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sa0RBQWtELENBQUM7QUFFcEYsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFHaEU7SUFVRSw4QkFBb0Isa0JBQXNDLEVBQ3RDLG1CQUF3QztRQUR4Qyx1QkFBa0IsR0FBbEIsa0JBQWtCLENBQW9CO1FBQ3RDLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBcUI7SUFDNUQsQ0FBQzs7OztJQUVELHVDQUFROzs7SUFBUjtRQUFBLGlCQU1DO1FBTEMsSUFBSSxDQUFDLGtCQUFrQixDQUFDLHlCQUF5QixDQUFDLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxlQUFlLEVBQUUsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGNBQWMsQ0FBQzthQUNqSSxTQUFTOzs7O1FBQ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