@hmcts/ccpay-web-component 5.0.8-beta05 → 5.0.8-beta10

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 +1690 -7568
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +2 -2
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +2 -7
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +166 -446
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +61 -360
  8. package/esm2015/lib/components/card-details/card-details.component.js +15 -55
  9. package/esm2015/lib/components/case-transactions/case-transactions.component.js +127 -698
  10. package/esm2015/lib/components/error-banner/error-banner.component.js +16 -26
  11. package/esm2015/lib/components/fee-summary/fee-summary.component.js +59 -268
  12. package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +40 -192
  13. package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +44 -236
  14. package/esm2015/lib/components/page-not-found.component.js +10 -13
  15. package/esm2015/lib/components/payment-list/payment-list.component.js +15 -56
  16. package/esm2015/lib/components/payment-view/payment-view.component.js +115 -361
  17. package/esm2015/lib/components/pba-details/pba-details.component.js +16 -26
  18. package/esm2015/lib/components/pba-payment/pba-payment.component.js +27 -130
  19. package/esm2015/lib/components/process-refund/process-refund.component.js +39 -190
  20. package/esm2015/lib/components/processed-payments/processed-payments.component.js +22 -53
  21. package/esm2015/lib/components/refund-list/refund-list.component.js +32 -91
  22. package/esm2015/lib/components/refund-status/refund-status.component.js +58 -270
  23. package/esm2015/lib/components/reports/reports.component.js +39 -223
  24. package/esm2015/lib/components/service-request/service-request.component.js +108 -394
  25. package/esm2015/lib/components/status-history/status-history.component.js +19 -55
  26. package/esm2015/lib/components/table/table.component.js +39 -120
  27. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +65 -203
  28. package/esm2015/lib/interfaces/AddRemissionRequest.js +1 -29
  29. package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +1 -16
  30. package/esm2015/lib/interfaces/AllocatePaymentRequest.js +1 -43
  31. package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +1 -27
  32. package/esm2015/lib/interfaces/IBSPayments.js +1 -46
  33. package/esm2015/lib/interfaces/ICardDetails.js +1 -22
  34. package/esm2015/lib/interfaces/IFee.js +1 -54
  35. package/esm2015/lib/interfaces/IOrderReferenceFee.js +1 -26
  36. package/esm2015/lib/interfaces/IPatchRefundAction.js +1 -16
  37. package/esm2015/lib/interfaces/IPayment.js +1 -66
  38. package/esm2015/lib/interfaces/IPaymentFailure.js +1 -34
  39. package/esm2015/lib/interfaces/IPaymentGroup.js +1 -20
  40. package/esm2015/lib/interfaces/IPaymentStatus.js +1 -26
  41. package/esm2015/lib/interfaces/IPaymentView.js +1 -18
  42. package/esm2015/lib/interfaces/IPayments.js +1 -14
  43. package/esm2015/lib/interfaces/IRefundAction.js +1 -16
  44. package/esm2015/lib/interfaces/IRefundList.js +1 -30
  45. package/esm2015/lib/interfaces/IRefundReasons.js +1 -20
  46. package/esm2015/lib/interfaces/IRefundRejectReason.js +1 -16
  47. package/esm2015/lib/interfaces/IRefundStatus.js +1 -24
  48. package/esm2015/lib/interfaces/IRefundStatusHistory.js +1 -16
  49. package/esm2015/lib/interfaces/IRemission.js +1 -26
  50. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +1 -16
  51. package/esm2015/lib/interfaces/IStatusHistories.js +1 -20
  52. package/esm2015/lib/interfaces/IStatusHistory.js +1 -22
  53. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +1 -17
  54. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +1 -24
  55. package/esm2015/lib/interfaces/IssueRefundRequest.js +1 -19
  56. package/esm2015/lib/interfaces/PayhubAntennaRequest.js +2 -22
  57. package/esm2015/lib/interfaces/PaymentToPayhubRequest.js +2 -28
  58. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +1 -13
  59. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +1 -16
  60. package/esm2015/lib/interfaces/RefundsRequest.js +1 -16
  61. package/esm2015/lib/interfaces/UnidentifiedPaymentsRequest.js +1 -21
  62. package/esm2015/lib/interfaces/UnsolicitedPaymentsRequest.js +1 -30
  63. package/esm2015/lib/payment-lib.component.js +120 -188
  64. package/esm2015/lib/payment-lib.module.js +55 -58
  65. package/esm2015/lib/payment-lib.service.js +12 -54
  66. package/esm2015/lib/pipes/capitalize.pipe.js +11 -20
  67. package/esm2015/lib/pipes/ccd-hyphens.pipe.js +11 -21
  68. package/esm2015/lib/pipes/key-value.pipe.js +11 -20
  69. package/esm2015/lib/pipes/sanitize-html.pipe.js +10 -27
  70. package/esm2015/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +22 -110
  71. package/esm2015/lib/services/card-details/card-details.service.js +15 -47
  72. package/esm2015/lib/services/case-transactions/case-transactions.service.js +15 -47
  73. package/esm2015/lib/services/orderslist.service.js +12 -260
  74. package/esm2015/lib/services/payment-list/payment-list.service.js +15 -50
  75. package/esm2015/lib/services/payment-view/payment-view.service.js +18 -177
  76. package/esm2015/lib/services/refunds/refunds.service.js +21 -117
  77. package/esm2015/lib/services/shared/error-handler.service.js +12 -28
  78. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +15 -88
  79. package/esm2015/lib/services/shared/logger/console-logger.service.js +12 -35
  80. package/esm2015/lib/services/shared/logger/logger.service.js +12 -43
  81. package/esm2015/lib/services/status-history/status-history.service.js +15 -48
  82. package/esm2015/lib/services/xl-file/xl-file.service.js +10 -67
  83. package/esm2015/public_api.js +4 -9
  84. package/esm5/hmcts-ccpay-web-component.js +2 -7
  85. package/esm5/lib/components/add-remission/add-remission.component.js +185 -542
  86. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +75 -420
  87. package/esm5/lib/components/card-details/card-details.component.js +14 -54
  88. package/esm5/lib/components/case-transactions/case-transactions.component.js +160 -851
  89. package/esm5/lib/components/error-banner/error-banner.component.js +15 -29
  90. package/esm5/lib/components/fee-summary/fee-summary.component.js +70 -321
  91. package/esm5/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +46 -224
  92. package/esm5/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +52 -278
  93. package/esm5/lib/components/page-not-found.component.js +7 -11
  94. package/esm5/lib/components/payment-list/payment-list.component.js +14 -61
  95. package/esm5/lib/components/payment-view/payment-view.component.js +134 -440
  96. package/esm5/lib/components/pba-details/pba-details.component.js +15 -29
  97. package/esm5/lib/components/pba-payment/pba-payment.component.js +30 -150
  98. package/esm5/lib/components/process-refund/process-refund.component.js +45 -272
  99. package/esm5/lib/components/processed-payments/processed-payments.component.js +22 -63
  100. package/esm5/lib/components/refund-list/refund-list.component.js +30 -90
  101. package/esm5/lib/components/refund-status/refund-status.component.js +71 -335
  102. package/esm5/lib/components/reports/reports.component.js +49 -276
  103. package/esm5/lib/components/service-request/service-request.component.js +122 -462
  104. package/esm5/lib/components/status-history/status-history.component.js +17 -53
  105. package/esm5/lib/components/table/table.component.js +44 -154
  106. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +75 -259
  107. package/esm5/lib/interfaces/AddRemissionRequest.js +1 -22
  108. package/esm5/lib/interfaces/AddRetroRemissionRequest.js +1 -12
  109. package/esm5/lib/interfaces/AllocatePaymentRequest.js +1 -36
  110. package/esm5/lib/interfaces/IAllocationPaymentsRequest.js +1 -20
  111. package/esm5/lib/interfaces/IBSPayments.js +1 -46
  112. package/esm5/lib/interfaces/ICardDetails.js +1 -22
  113. package/esm5/lib/interfaces/IFee.js +1 -54
  114. package/esm5/lib/interfaces/IOrderReferenceFee.js +1 -26
  115. package/esm5/lib/interfaces/IPatchRefundAction.js +1 -16
  116. package/esm5/lib/interfaces/IPayment.js +1 -66
  117. package/esm5/lib/interfaces/IPaymentFailure.js +1 -34
  118. package/esm5/lib/interfaces/IPaymentGroup.js +1 -20
  119. package/esm5/lib/interfaces/IPaymentStatus.js +1 -26
  120. package/esm5/lib/interfaces/IPaymentView.js +1 -18
  121. package/esm5/lib/interfaces/IPayments.js +1 -14
  122. package/esm5/lib/interfaces/IRefundAction.js +1 -16
  123. package/esm5/lib/interfaces/IRefundList.js +1 -30
  124. package/esm5/lib/interfaces/IRefundReasons.js +1 -20
  125. package/esm5/lib/interfaces/IRefundRejectReason.js +1 -16
  126. package/esm5/lib/interfaces/IRefundStatus.js +1 -24
  127. package/esm5/lib/interfaces/IRefundStatusHistory.js +1 -16
  128. package/esm5/lib/interfaces/IRemission.js +1 -26
  129. package/esm5/lib/interfaces/IResubmitRefundRequest.js +1 -12
  130. package/esm5/lib/interfaces/IStatusHistories.js +1 -20
  131. package/esm5/lib/interfaces/IStatusHistory.js +1 -22
  132. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +1 -14
  133. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +1 -18
  134. package/esm5/lib/interfaces/IssueRefundRequest.js +1 -14
  135. package/esm5/lib/interfaces/PayhubAntennaRequest.js +2 -17
  136. package/esm5/lib/interfaces/PaymentToPayhubRequest.js +2 -23
  137. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +1 -10
  138. package/esm5/lib/interfaces/PostRefundRetroRemission.js +1 -12
  139. package/esm5/lib/interfaces/RefundsRequest.js +1 -12
  140. package/esm5/lib/interfaces/UnidentifiedPaymentsRequest.js +1 -16
  141. package/esm5/lib/interfaces/UnsolicitedPaymentsRequest.js +1 -22
  142. package/esm5/lib/payment-lib.component.js +114 -184
  143. package/esm5/lib/payment-lib.module.js +52 -56
  144. package/esm5/lib/payment-lib.service.js +17 -88
  145. package/esm5/lib/pipes/capitalize.pipe.js +9 -24
  146. package/esm5/lib/pipes/ccd-hyphens.pipe.js +9 -25
  147. package/esm5/lib/pipes/key-value.pipe.js +9 -23
  148. package/esm5/lib/pipes/sanitize-html.pipe.js +8 -27
  149. package/esm5/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +28 -153
  150. package/esm5/lib/services/card-details/card-details.service.js +13 -44
  151. package/esm5/lib/services/case-transactions/case-transactions.service.js +13 -44
  152. package/esm5/lib/services/orderslist.service.js +45 -420
  153. package/esm5/lib/services/payment-list/payment-list.service.js +13 -48
  154. package/esm5/lib/services/payment-view/payment-view.service.js +40 -307
  155. package/esm5/lib/services/refunds/refunds.service.js +29 -164
  156. package/esm5/lib/services/shared/error-handler.service.js +11 -38
  157. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +18 -120
  158. package/esm5/lib/services/shared/logger/console-logger.service.js +13 -42
  159. package/esm5/lib/services/shared/logger/logger.service.js +11 -54
  160. package/esm5/lib/services/status-history/status-history.service.js +13 -46
  161. package/esm5/lib/services/xl-file/xl-file.service.js +15 -115
  162. package/esm5/public_api.js +4 -9
  163. package/fesm2015/hmcts-ccpay-web-component.js +1435 -6224
  164. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  165. package/fesm5/hmcts-ccpay-web-component.js +1694 -7576
  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,18 +1,14 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: lib/components/page-not-found.component.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
1
+ import { __decorate } from "tslib";
6
2
  import { Component } from '@angular/core';
7
3
  var PageNotFoundComponent = /** @class */ (function () {
8
4
  function PageNotFoundComponent() {
9
5
  }
10
- PageNotFoundComponent.decorators = [
11
- { type: Component, args: [{
12
- template: "\n <h1>This is not the page you were looking for!</h1>\n "
13
- }] }
14
- ];
6
+ PageNotFoundComponent = __decorate([
7
+ Component({
8
+ template: "\n <h1>This is not the page you were looking for!</h1>\n "
9
+ })
10
+ ], PageNotFoundComponent);
15
11
  return PageNotFoundComponent;
16
12
  }());
17
13
  export { PageNotFoundComponent };
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1ub3QtZm91bmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL2NjcGF5LXdlYi1jb21wb25lbnQvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9wYWdlLW5vdC1mb3VuZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTFDO0lBQUE7SUFLcUMsQ0FBQzs7Z0JBTHJDLFNBQVMsU0FBQztvQkFDUCxRQUFRLEVBQUUsaUVBRVQ7aUJBQ0o7O0lBQ29DLDRCQUFDO0NBQUEsQUFMdEMsSUFLc0M7U0FBekIscUJBQXFCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICAgIHRlbXBsYXRlOiBgXG4gICAgPGgxPlRoaXMgaXMgbm90IHRoZSBwYWdlIHlvdSB3ZXJlIGxvb2tpbmcgZm9yITwvaDE+XG4gICAgYFxufSlcbmV4cG9ydCBjbGFzcyBQYWdlTm90Rm91bmRDb21wb25lbnQgeyB9XG4iXX0=
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1ub3QtZm91bmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL2NjcGF5LXdlYi1jb21wb25lbnQvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9wYWdlLW5vdC1mb3VuZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFPMUM7SUFBQTtJQUFxQyxDQUFDO0lBQXpCLHFCQUFxQjtRQUxqQyxTQUFTLENBQUM7WUFDUCxRQUFRLEVBQUUsaUVBRVQ7U0FDSixDQUFDO09BQ1cscUJBQXFCLENBQUk7SUFBRCw0QkFBQztDQUFBLEFBQXRDLElBQXNDO1NBQXpCLHFCQUFxQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgICB0ZW1wbGF0ZTogYFxuICAgIDxoMT5UaGlzIGlzIG5vdCB0aGUgcGFnZSB5b3Ugd2VyZSBsb29raW5nIGZvciE8L2gxPlxuICAgIGBcbn0pXG5leHBvcnQgY2xhc3MgUGFnZU5vdEZvdW5kQ29tcG9uZW50IHsgfVxuIl19
@@ -1,8 +1,4 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: lib/components/payment-list/payment-list.component.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
1
+ import { __decorate, __metadata } from "tslib";
6
2
  import { Component } from '@angular/core';
7
3
  import { PaymentListService } from '../../services/payment-list/payment-list.service';
8
4
  import { PaymentLibComponent } from '../../payment-lib.component';
@@ -11,74 +7,31 @@ var PaymentListComponent = /** @class */ (function () {
11
7
  this.paymentListService = paymentListService;
12
8
  this.paymentLibComponent = paymentLibComponent;
13
9
  }
14
- /**
15
- * @return {?}
16
- */
17
- PaymentListComponent.prototype.ngOnInit = /**
18
- * @return {?}
19
- */
20
- function () {
10
+ PaymentListComponent.prototype.ngOnInit = function () {
21
11
  var _this = this;
22
12
  this.paymentListService.getPaymentByCcdCaseNumber(this.paymentLibComponent.CCD_CASE_NUMBER, this.paymentLibComponent.PAYMENT_METHOD)
23
- .subscribe((/**
24
- * @param {?} payments
25
- * @return {?}
26
- */
27
- function (payments) { return _this.payments = payments; }), (/**
28
- * @param {?} error
29
- * @return {?}
30
- */
31
- function (error) { return _this.errorMessage = (/** @type {?} */ (error)); }));
13
+ .subscribe(function (payments) { return _this.payments = payments; }, function (error) { return _this.errorMessage = error; });
32
14
  };
33
- /**
34
- * @param {?} paymentGroupReference
35
- * @param {?} paymentReference
36
- * @param {?} paymentMethod
37
- * @return {?}
38
- */
39
- PaymentListComponent.prototype.loadPaymentViewComponent = /**
40
- * @param {?} paymentGroupReference
41
- * @param {?} paymentReference
42
- * @param {?} paymentMethod
43
- * @return {?}
44
- */
45
- function (paymentGroupReference, paymentReference, paymentMethod) {
15
+ PaymentListComponent.prototype.loadPaymentViewComponent = function (paymentGroupReference, paymentReference, paymentMethod) {
46
16
  this.paymentLibComponent.paymentMethod = paymentMethod;
47
17
  this.paymentLibComponent.paymentGroupReference = paymentGroupReference;
48
18
  this.paymentLibComponent.paymentReference = paymentReference;
49
19
  this.paymentLibComponent.viewName = 'payment-view';
50
20
  };
51
- PaymentListComponent.decorators = [
52
- { type: Component, args: [{
53
- selector: 'ccpay-payment-list',
54
- 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",
55
- styles: [""]
56
- }] }
57
- ];
58
- /** @nocollapse */
59
21
  PaymentListComponent.ctorParameters = function () { return [
60
22
  { type: PaymentListService },
61
23
  { type: PaymentLibComponent }
62
24
  ]; };
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);
63
34
  return PaymentListComponent;
64
35
  }());
65
36
  export { PaymentListComponent };
66
- if (false) {
67
- /** @type {?} */
68
- PaymentListComponent.prototype.payments;
69
- /** @type {?} */
70
- PaymentListComponent.prototype.errorMessage;
71
- /** @type {?} */
72
- PaymentListComponent.prototype.code;
73
- /**
74
- * @type {?}
75
- * @private
76
- */
77
- PaymentListComponent.prototype.paymentListService;
78
- /**
79
- * @type {?}
80
- * @private
81
- */
82
- PaymentListComponent.prototype.paymentLibComponent;
83
- }
84
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC1saXN0L3BheW1lbnQtbGlzdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFTLE1BQU0sZUFBZSxDQUFDO0FBRWhELE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLGtEQUFrRCxDQUFDO0FBRXBGLE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLDZCQUE2QixDQUFDO0FBR2hFO0lBVUUsOEJBQW9CLGtCQUFzQyxFQUN0QyxtQkFBd0M7UUFEeEMsdUJBQWtCLEdBQWxCLGtCQUFrQixDQUFvQjtRQUN0Qyx3QkFBbUIsR0FBbkIsbUJBQW1CLENBQXFCO0lBQzVELENBQUM7Ozs7SUFFRCx1Q0FBUTs7O0lBQVI7UUFBQSxpQkFNQztRQUxDLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyx5QkFBeUIsQ0FBQyxJQUFJLENBQUMsbUJBQW1CLENBQUMsZUFBZSxFQUFFLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxjQUFjLENBQUM7YUFDakksU0FBUzs7OztRQUNSLFVBQUEsUUFBUSxJQUFJLE9BQUEsS0FBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLEVBQXhCLENBQXdCOzs7O1FBQ3BDLFVBQUMsS0FBVSxJQUFLLE9BQUEsS0FBSSxDQUFDLFlBQVksR0FBRyxtQkFBSyxLQUFLLEVBQUEsRUFBOUIsQ0FBOEIsRUFDL0MsQ0FBQ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ob2Q6IHN0cmluZykge1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50TWV0aG9kID0gcGF5bWVudE1ldGhvZDtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQucGF5bWVudEdyb3VwUmVmZXJlbmNlID0gcGF5bWVudEdyb3VwUmVmZXJlbmNlO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50UmVmZXJlbmNlID0gcGF5bWVudFJlZmVyZW5jZTtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQudmlld05hbWUgPSAncGF5bWVudC12aWV3JztcbiAgfVxufVxuIl19
37
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC1saXN0L3BheW1lbnQtbGlzdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQVMsTUFBTSxlQUFlLENBQUM7QUFFaEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sa0RBQWtELENBQUM7QUFFcEYsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFRaEU7SUFLRSw4QkFBb0Isa0JBQXNDLEVBQ3RDLG1CQUF3QztRQUR4Qyx1QkFBa0IsR0FBbEIsa0JBQWtCLENBQW9CO1FBQ3RDLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBcUI7SUFDNUQsQ0FBQztJQUVELHVDQUFRLEdBQVI7UUFBQSxpQkFNQztRQUxDLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyx5QkFBeUIsQ0FBQyxJQUFJLENBQUMsbUJBQW1CLEN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YXltZW50cyA9IHBheW1lbnRzLFxuICAgICAgICAoZXJyb3I6IGFueSkgPT4gdGhpcy5lcnJvck1lc3NhZ2UgPSA8YW55PmVycm9yXG4gICAgICApO1xuICB9XG5cbiAgbG9hZFBheW1lbnRWaWV3Q29tcG9uZW50KHBheW1lbnRHcm91cFJlZmVyZW5jZTogc3RyaW5nLCBwYXltZW50UmVmZXJlbmNlOiBzdHJpbmcsIHBheW1lbnRNZXRob2Q6IHN0cmluZykge1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50TWV0aG9kID0gcGF5bWVudE1ldGhvZDtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQucGF5bWVudEdyb3VwUmVmZXJlbmNlID0gcGF5bWVudEdyb3VwUmVmZXJlbmNlO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50UmVmZXJlbmNlID0gcGF5bWVudFJlZmVyZW5jZTtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQudmlld05hbWUgPSAncGF5bWVudC12aWV3JztcbiAgfVxufVxuIl19