@hmcts/ccpay-web-component 5.0.8-beta03 → 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 +5427 -8709
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +15 -1
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +2 -6
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +166 -445
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +61 -359
  8. package/esm2015/lib/components/card-details/card-details.component.js +15 -54
  9. package/esm2015/lib/components/case-transactions/case-transactions.component.js +127 -697
  10. package/esm2015/lib/components/error-banner/error-banner.component.js +16 -25
  11. package/esm2015/lib/components/fee-summary/fee-summary.component.js +59 -267
  12. package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +40 -191
  13. package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +44 -235
  14. package/esm2015/lib/components/page-not-found.component.js +10 -12
  15. package/esm2015/lib/components/payment-list/payment-list.component.js +15 -55
  16. package/esm2015/lib/components/payment-view/payment-view.component.js +115 -360
  17. package/esm2015/lib/components/pba-details/pba-details.component.js +16 -25
  18. package/esm2015/lib/components/pba-payment/pba-payment.component.js +27 -129
  19. package/esm2015/lib/components/process-refund/process-refund.component.js +39 -189
  20. package/esm2015/lib/components/processed-payments/processed-payments.component.js +22 -52
  21. package/esm2015/lib/components/refund-list/refund-list.component.js +32 -90
  22. package/esm2015/lib/components/refund-status/refund-status.component.js +58 -269
  23. package/esm2015/lib/components/reports/reports.component.js +39 -222
  24. package/esm2015/lib/components/service-request/service-request.component.js +108 -393
  25. package/esm2015/lib/components/status-history/status-history.component.js +19 -54
  26. package/esm2015/lib/components/table/table.component.js +39 -119
  27. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +65 -202
  28. package/esm2015/lib/interfaces/AddRemissionRequest.js +1 -28
  29. package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +1 -15
  30. package/esm2015/lib/interfaces/AllocatePaymentRequest.js +1 -42
  31. package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +1 -26
  32. package/esm2015/lib/interfaces/IBSPayments.js +1 -45
  33. package/esm2015/lib/interfaces/ICardDetails.js +1 -21
  34. package/esm2015/lib/interfaces/IFee.js +1 -53
  35. package/esm2015/lib/interfaces/IOrderReferenceFee.js +1 -25
  36. package/esm2015/lib/interfaces/IPatchRefundAction.js +1 -15
  37. package/esm2015/lib/interfaces/IPayment.js +1 -65
  38. package/esm2015/lib/interfaces/IPaymentFailure.js +1 -33
  39. package/esm2015/lib/interfaces/IPaymentGroup.js +1 -19
  40. package/esm2015/lib/interfaces/IPaymentStatus.js +1 -25
  41. package/esm2015/lib/interfaces/IPaymentView.js +1 -17
  42. package/esm2015/lib/interfaces/IPayments.js +1 -13
  43. package/esm2015/lib/interfaces/IRefundAction.js +1 -15
  44. package/esm2015/lib/interfaces/IRefundList.js +1 -29
  45. package/esm2015/lib/interfaces/IRefundReasons.js +1 -19
  46. package/esm2015/lib/interfaces/IRefundRejectReason.js +1 -15
  47. package/esm2015/lib/interfaces/IRefundStatus.js +1 -23
  48. package/esm2015/lib/interfaces/IRefundStatusHistory.js +1 -15
  49. package/esm2015/lib/interfaces/IRemission.js +1 -25
  50. package/esm2015/lib/interfaces/IResubmitRefundRequest.js +1 -15
  51. package/esm2015/lib/interfaces/IStatusHistories.js +1 -19
  52. package/esm2015/lib/interfaces/IStatusHistory.js +1 -21
  53. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +1 -16
  54. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +1 -23
  55. package/esm2015/lib/interfaces/IssueRefundRequest.js +1 -18
  56. package/esm2015/lib/interfaces/PayhubAntennaRequest.js +2 -21
  57. package/esm2015/lib/interfaces/PaymentToPayhubRequest.js +2 -27
  58. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +1 -12
  59. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +1 -15
  60. package/esm2015/lib/interfaces/RefundsRequest.js +1 -15
  61. package/esm2015/lib/interfaces/UnidentifiedPaymentsRequest.js +1 -20
  62. package/esm2015/lib/interfaces/UnsolicitedPaymentsRequest.js +1 -29
  63. package/esm2015/lib/payment-lib.component.js +120 -187
  64. package/esm2015/lib/payment-lib.module.js +55 -57
  65. package/esm2015/lib/payment-lib.service.js +12 -53
  66. package/esm2015/lib/pipes/capitalize.pipe.js +11 -19
  67. package/esm2015/lib/pipes/ccd-hyphens.pipe.js +11 -20
  68. package/esm2015/lib/pipes/key-value.pipe.js +11 -19
  69. package/esm2015/lib/pipes/sanitize-html.pipe.js +10 -26
  70. package/esm2015/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +22 -109
  71. package/esm2015/lib/services/card-details/card-details.service.js +15 -46
  72. package/esm2015/lib/services/case-transactions/case-transactions.service.js +15 -46
  73. package/esm2015/lib/services/orderslist.service.js +12 -259
  74. package/esm2015/lib/services/payment-list/payment-list.service.js +15 -49
  75. package/esm2015/lib/services/payment-view/payment-view.service.js +18 -176
  76. package/esm2015/lib/services/refunds/refunds.service.js +21 -116
  77. package/esm2015/lib/services/shared/error-handler.service.js +12 -27
  78. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +15 -87
  79. package/esm2015/lib/services/shared/logger/console-logger.service.js +12 -34
  80. package/esm2015/lib/services/shared/logger/logger.service.js +12 -42
  81. package/esm2015/lib/services/status-history/status-history.service.js +15 -47
  82. package/esm2015/lib/services/xl-file/xl-file.service.js +10 -66
  83. package/esm2015/public_api.js +4 -8
  84. package/esm5/hmcts-ccpay-web-component.js +2 -6
  85. package/esm5/lib/components/add-remission/add-remission.component.js +185 -541
  86. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +75 -419
  87. package/esm5/lib/components/card-details/card-details.component.js +14 -53
  88. package/esm5/lib/components/case-transactions/case-transactions.component.js +160 -850
  89. package/esm5/lib/components/error-banner/error-banner.component.js +15 -28
  90. package/esm5/lib/components/fee-summary/fee-summary.component.js +70 -320
  91. package/esm5/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +46 -223
  92. package/esm5/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +52 -277
  93. package/esm5/lib/components/page-not-found.component.js +7 -10
  94. package/esm5/lib/components/payment-list/payment-list.component.js +14 -60
  95. package/esm5/lib/components/payment-view/payment-view.component.js +134 -439
  96. package/esm5/lib/components/pba-details/pba-details.component.js +15 -28
  97. package/esm5/lib/components/pba-payment/pba-payment.component.js +30 -149
  98. package/esm5/lib/components/process-refund/process-refund.component.js +45 -271
  99. package/esm5/lib/components/processed-payments/processed-payments.component.js +22 -62
  100. package/esm5/lib/components/refund-list/refund-list.component.js +30 -89
  101. package/esm5/lib/components/refund-status/refund-status.component.js +71 -334
  102. package/esm5/lib/components/reports/reports.component.js +49 -275
  103. package/esm5/lib/components/service-request/service-request.component.js +122 -461
  104. package/esm5/lib/components/status-history/status-history.component.js +17 -52
  105. package/esm5/lib/components/table/table.component.js +44 -153
  106. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +75 -258
  107. package/esm5/lib/interfaces/AddRemissionRequest.js +1 -21
  108. package/esm5/lib/interfaces/AddRetroRemissionRequest.js +1 -11
  109. package/esm5/lib/interfaces/AllocatePaymentRequest.js +1 -35
  110. package/esm5/lib/interfaces/IAllocationPaymentsRequest.js +1 -19
  111. package/esm5/lib/interfaces/IBSPayments.js +1 -45
  112. package/esm5/lib/interfaces/ICardDetails.js +1 -21
  113. package/esm5/lib/interfaces/IFee.js +1 -53
  114. package/esm5/lib/interfaces/IOrderReferenceFee.js +1 -25
  115. package/esm5/lib/interfaces/IPatchRefundAction.js +1 -15
  116. package/esm5/lib/interfaces/IPayment.js +1 -65
  117. package/esm5/lib/interfaces/IPaymentFailure.js +1 -33
  118. package/esm5/lib/interfaces/IPaymentGroup.js +1 -19
  119. package/esm5/lib/interfaces/IPaymentStatus.js +1 -25
  120. package/esm5/lib/interfaces/IPaymentView.js +1 -17
  121. package/esm5/lib/interfaces/IPayments.js +1 -13
  122. package/esm5/lib/interfaces/IRefundAction.js +1 -15
  123. package/esm5/lib/interfaces/IRefundList.js +1 -29
  124. package/esm5/lib/interfaces/IRefundReasons.js +1 -19
  125. package/esm5/lib/interfaces/IRefundRejectReason.js +1 -15
  126. package/esm5/lib/interfaces/IRefundStatus.js +1 -23
  127. package/esm5/lib/interfaces/IRefundStatusHistory.js +1 -15
  128. package/esm5/lib/interfaces/IRemission.js +1 -25
  129. package/esm5/lib/interfaces/IResubmitRefundRequest.js +1 -11
  130. package/esm5/lib/interfaces/IStatusHistories.js +1 -19
  131. package/esm5/lib/interfaces/IStatusHistory.js +1 -21
  132. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +1 -13
  133. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +1 -17
  134. package/esm5/lib/interfaces/IssueRefundRequest.js +1 -13
  135. package/esm5/lib/interfaces/PayhubAntennaRequest.js +2 -16
  136. package/esm5/lib/interfaces/PaymentToPayhubRequest.js +2 -22
  137. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +1 -9
  138. package/esm5/lib/interfaces/PostRefundRetroRemission.js +1 -11
  139. package/esm5/lib/interfaces/RefundsRequest.js +1 -11
  140. package/esm5/lib/interfaces/UnidentifiedPaymentsRequest.js +1 -15
  141. package/esm5/lib/interfaces/UnsolicitedPaymentsRequest.js +1 -21
  142. package/esm5/lib/payment-lib.component.js +114 -183
  143. package/esm5/lib/payment-lib.module.js +52 -55
  144. package/esm5/lib/payment-lib.service.js +17 -87
  145. package/esm5/lib/pipes/capitalize.pipe.js +9 -23
  146. package/esm5/lib/pipes/ccd-hyphens.pipe.js +9 -24
  147. package/esm5/lib/pipes/key-value.pipe.js +9 -22
  148. package/esm5/lib/pipes/sanitize-html.pipe.js +8 -26
  149. package/esm5/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +28 -152
  150. package/esm5/lib/services/card-details/card-details.service.js +13 -43
  151. package/esm5/lib/services/case-transactions/case-transactions.service.js +13 -43
  152. package/esm5/lib/services/orderslist.service.js +45 -419
  153. package/esm5/lib/services/payment-list/payment-list.service.js +13 -47
  154. package/esm5/lib/services/payment-view/payment-view.service.js +40 -306
  155. package/esm5/lib/services/refunds/refunds.service.js +29 -163
  156. package/esm5/lib/services/shared/error-handler.service.js +11 -37
  157. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +18 -119
  158. package/esm5/lib/services/shared/logger/console-logger.service.js +13 -41
  159. package/esm5/lib/services/shared/logger/logger.service.js +11 -53
  160. package/esm5/lib/services/status-history/status-history.service.js +13 -45
  161. package/esm5/lib/services/xl-file/xl-file.service.js +15 -114
  162. package/esm5/public_api.js +4 -8
  163. package/fesm2015/hmcts-ccpay-web-component.js +1492 -4043
  164. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  165. package/fesm5/hmcts-ccpay-web-component.js +1753 -5389
  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,75 +1,35 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
1
+ import { __decorate, __metadata } from "tslib";
5
2
  import { Component } from '@angular/core';
6
3
  import { PaymentListService } from '../../services/payment-list/payment-list.service';
7
4
  import { PaymentLibComponent } from '../../payment-lib.component';
8
- export class PaymentListComponent {
9
- /**
10
- * @param {?} paymentListService
11
- * @param {?} paymentLibComponent
12
- */
5
+ let PaymentListComponent = class PaymentListComponent {
13
6
  constructor(paymentListService, paymentLibComponent) {
14
7
  this.paymentListService = paymentListService;
15
8
  this.paymentLibComponent = paymentLibComponent;
16
9
  }
17
- /**
18
- * @return {?}
19
- */
20
10
  ngOnInit() {
21
11
  this.paymentListService.getPaymentByCcdCaseNumber(this.paymentLibComponent.CCD_CASE_NUMBER, this.paymentLibComponent.PAYMENT_METHOD)
22
- .subscribe((/**
23
- * @param {?} payments
24
- * @return {?}
25
- */
26
- payments => this.payments = payments), (/**
27
- * @param {?} error
28
- * @return {?}
29
- */
30
- (error) => this.errorMessage = (/** @type {?} */ (error))));
12
+ .subscribe(payments => this.payments = payments, (error) => this.errorMessage = error);
31
13
  }
32
- /**
33
- * @param {?} paymentGroupReference
34
- * @param {?} paymentReference
35
- * @param {?} paymentMethod
36
- * @return {?}
37
- */
38
14
  loadPaymentViewComponent(paymentGroupReference, paymentReference, paymentMethod) {
39
15
  this.paymentLibComponent.paymentMethod = paymentMethod;
40
16
  this.paymentLibComponent.paymentGroupReference = paymentGroupReference;
41
17
  this.paymentLibComponent.paymentReference = paymentReference;
42
18
  this.paymentLibComponent.viewName = 'payment-view';
43
19
  }
44
- }
45
- PaymentListComponent.decorators = [
46
- { type: Component, args: [{
47
- selector: 'ccpay-payment-list',
48
- 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",
49
- styles: [""]
50
- }] }
51
- ];
52
- /** @nocollapse */
20
+ };
53
21
  PaymentListComponent.ctorParameters = () => [
54
22
  { type: PaymentListService },
55
23
  { type: PaymentLibComponent }
56
24
  ];
57
- if (false) {
58
- /** @type {?} */
59
- PaymentListComponent.prototype.payments;
60
- /** @type {?} */
61
- PaymentListComponent.prototype.errorMessage;
62
- /** @type {?} */
63
- PaymentListComponent.prototype.code;
64
- /**
65
- * @type {?}
66
- * @private
67
- */
68
- PaymentListComponent.prototype.paymentListService;
69
- /**
70
- * @type {?}
71
- * @private
72
- */
73
- PaymentListComponent.prototype.paymentLibComponent;
74
- }
75
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC1saXN0L3BheW1lbnQtbGlzdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQVMsTUFBTSxlQUFlLENBQUM7QUFFaEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sa0RBQWtELENBQUM7QUFFcEYsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFRaEUsTUFBTSxPQUFPLG9CQUFvQjs7Ozs7SUFLL0IsWUFBb0Isa0JBQXNDLEVBQ3RDLG1CQUF3QztRQUR4Qyx1QkFBa0IsR0FBbEIsa0JBQWtCLENBQW9CO1FBQ3RDLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBcUI7SUFDNUQsQ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Vic2NyaWJlKFxuICAgICAgICBwYXltZW50cyA9PiB0aGlzLnBheW1lbnRzID0gcGF5bWVudHMsXG4gICAgICAgIChlcnJvcjogYW55KSA9PiB0aGlzLmVycm9yTWVzc2FnZSA9IDxhbnk+ZXJyb3JcbiAgICAgICk7XG4gIH1cblxuICBsb2FkUGF5bWVudFZpZXdDb21wb25lbnQocGF5bWVudEdyb3VwUmVmZXJlbmNlOiBzdHJpbmcsIHBheW1lbnRSZWZlcmVuY2U6IHN0cmluZywgcGF5bWVudE1ldGhvZDogc3RyaW5nKSB7XG4gICAgdGhpcy5wYXltZW50TGliQ29tcG9uZW50LnBheW1lbnRNZXRob2QgPSBwYXltZW50TWV0aG9kO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50R3JvdXBSZWZlcmVuY2UgPSBwYXltZW50R3JvdXBSZWZlcmVuY2U7XG4gICAgdGhpcy5wYXltZW50TGliQ29tcG9uZW50LnBheW1lbnRSZWZlcmVuY2UgPSBwYXltZW50UmVmZXJlbmNlO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC52aWV3TmFtZSA9ICdwYXltZW50LXZpZXcnO1xuICB9XG59XG4iXX0=
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
+ export { PaymentListComponent };
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC1saXN0L3BheW1lbnQtbGlzdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQVMsTUFBTSxlQUFlLENBQUM7QUFFaEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sa0RBQWtELENBQUM7QUFFcEYsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFRaEUsSUFBYSxvQkFBb0IsR0FBakMsTUFBYSxvQkFBb0I7SUFLL0IsWUFBb0Isa0JBQXNDLEVBQ3RDLG1CQUF3QztRQUR4Qyx1QkFBa0IsR0FBbEIsa0JBQWtCLENBQW9CO1FBQ3RDLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBcUI7SUFDNUQsQ0FBQztJQUVELFFBQVE7UUFDTixJQUFJLENBQUMsa0JBQWtCLENBQUMseUJBQXlCLENBQUMsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGVBQWUsRUFBRSxJQUFJLENBQUMsbUJBQW1CLENBQUMsY0FBYyxDQUFDO2FBQ2pJLFNBQVMsQ0FDUixRQUFRLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxFQU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sIHBheW1lbnRNZXRob2Q6IHN0cmluZykge1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50TWV0aG9kID0gcGF5bWVudE1ldGhvZDtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQucGF5bWVudEdyb3VwUmVmZXJlbmNlID0gcGF5bWVudEdyb3VwUmVmZXJlbmNlO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50UmVmZXJlbmNlID0gcGF5bWVudFJlZmVyZW5jZTtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQudmlld05hbWUgPSAncGF5bWVudC12aWV3JztcbiAgfVxufVxuIl19