@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.
- package/bundles/hmcts-ccpay-web-component.umd.js +1690 -7568
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +2 -2
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/hmcts-ccpay-web-component.js +2 -7
- package/esm2015/lib/components/add-remission/add-remission.component.js +166 -446
- package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +61 -360
- package/esm2015/lib/components/card-details/card-details.component.js +15 -55
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +127 -698
- package/esm2015/lib/components/error-banner/error-banner.component.js +16 -26
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +59 -268
- package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +40 -192
- package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +44 -236
- package/esm2015/lib/components/page-not-found.component.js +10 -13
- package/esm2015/lib/components/payment-list/payment-list.component.js +15 -56
- package/esm2015/lib/components/payment-view/payment-view.component.js +115 -361
- package/esm2015/lib/components/pba-details/pba-details.component.js +16 -26
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +27 -130
- package/esm2015/lib/components/process-refund/process-refund.component.js +39 -190
- package/esm2015/lib/components/processed-payments/processed-payments.component.js +22 -53
- package/esm2015/lib/components/refund-list/refund-list.component.js +32 -91
- package/esm2015/lib/components/refund-status/refund-status.component.js +58 -270
- package/esm2015/lib/components/reports/reports.component.js +39 -223
- package/esm2015/lib/components/service-request/service-request.component.js +108 -394
- package/esm2015/lib/components/status-history/status-history.component.js +19 -55
- package/esm2015/lib/components/table/table.component.js +39 -120
- package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +65 -203
- package/esm2015/lib/interfaces/AddRemissionRequest.js +1 -29
- package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +1 -16
- package/esm2015/lib/interfaces/AllocatePaymentRequest.js +1 -43
- package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +1 -27
- package/esm2015/lib/interfaces/IBSPayments.js +1 -46
- package/esm2015/lib/interfaces/ICardDetails.js +1 -22
- package/esm2015/lib/interfaces/IFee.js +1 -54
- package/esm2015/lib/interfaces/IOrderReferenceFee.js +1 -26
- package/esm2015/lib/interfaces/IPatchRefundAction.js +1 -16
- package/esm2015/lib/interfaces/IPayment.js +1 -66
- package/esm2015/lib/interfaces/IPaymentFailure.js +1 -34
- package/esm2015/lib/interfaces/IPaymentGroup.js +1 -20
- package/esm2015/lib/interfaces/IPaymentStatus.js +1 -26
- package/esm2015/lib/interfaces/IPaymentView.js +1 -18
- package/esm2015/lib/interfaces/IPayments.js +1 -14
- package/esm2015/lib/interfaces/IRefundAction.js +1 -16
- package/esm2015/lib/interfaces/IRefundList.js +1 -30
- package/esm2015/lib/interfaces/IRefundReasons.js +1 -20
- package/esm2015/lib/interfaces/IRefundRejectReason.js +1 -16
- package/esm2015/lib/interfaces/IRefundStatus.js +1 -24
- package/esm2015/lib/interfaces/IRefundStatusHistory.js +1 -16
- package/esm2015/lib/interfaces/IRemission.js +1 -26
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +1 -16
- package/esm2015/lib/interfaces/IStatusHistories.js +1 -20
- package/esm2015/lib/interfaces/IStatusHistory.js +1 -22
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +1 -17
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +1 -24
- package/esm2015/lib/interfaces/IssueRefundRequest.js +1 -19
- package/esm2015/lib/interfaces/PayhubAntennaRequest.js +2 -22
- package/esm2015/lib/interfaces/PaymentToPayhubRequest.js +2 -28
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +1 -13
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +1 -16
- package/esm2015/lib/interfaces/RefundsRequest.js +1 -16
- package/esm2015/lib/interfaces/UnidentifiedPaymentsRequest.js +1 -21
- package/esm2015/lib/interfaces/UnsolicitedPaymentsRequest.js +1 -30
- package/esm2015/lib/payment-lib.component.js +120 -188
- package/esm2015/lib/payment-lib.module.js +55 -58
- package/esm2015/lib/payment-lib.service.js +12 -54
- package/esm2015/lib/pipes/capitalize.pipe.js +11 -20
- package/esm2015/lib/pipes/ccd-hyphens.pipe.js +11 -21
- package/esm2015/lib/pipes/key-value.pipe.js +11 -20
- package/esm2015/lib/pipes/sanitize-html.pipe.js +10 -27
- package/esm2015/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +22 -110
- package/esm2015/lib/services/card-details/card-details.service.js +15 -47
- package/esm2015/lib/services/case-transactions/case-transactions.service.js +15 -47
- package/esm2015/lib/services/orderslist.service.js +12 -260
- package/esm2015/lib/services/payment-list/payment-list.service.js +15 -50
- package/esm2015/lib/services/payment-view/payment-view.service.js +18 -177
- package/esm2015/lib/services/refunds/refunds.service.js +21 -117
- package/esm2015/lib/services/shared/error-handler.service.js +12 -28
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +15 -88
- package/esm2015/lib/services/shared/logger/console-logger.service.js +12 -35
- package/esm2015/lib/services/shared/logger/logger.service.js +12 -43
- package/esm2015/lib/services/status-history/status-history.service.js +15 -48
- package/esm2015/lib/services/xl-file/xl-file.service.js +10 -67
- package/esm2015/public_api.js +4 -9
- package/esm5/hmcts-ccpay-web-component.js +2 -7
- package/esm5/lib/components/add-remission/add-remission.component.js +185 -542
- package/esm5/lib/components/allocate-payments/allocate-payments.component.js +75 -420
- package/esm5/lib/components/card-details/card-details.component.js +14 -54
- package/esm5/lib/components/case-transactions/case-transactions.component.js +160 -851
- package/esm5/lib/components/error-banner/error-banner.component.js +15 -29
- package/esm5/lib/components/fee-summary/fee-summary.component.js +70 -321
- package/esm5/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +46 -224
- package/esm5/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +52 -278
- package/esm5/lib/components/page-not-found.component.js +7 -11
- package/esm5/lib/components/payment-list/payment-list.component.js +14 -61
- package/esm5/lib/components/payment-view/payment-view.component.js +134 -440
- package/esm5/lib/components/pba-details/pba-details.component.js +15 -29
- package/esm5/lib/components/pba-payment/pba-payment.component.js +30 -150
- package/esm5/lib/components/process-refund/process-refund.component.js +45 -272
- package/esm5/lib/components/processed-payments/processed-payments.component.js +22 -63
- package/esm5/lib/components/refund-list/refund-list.component.js +30 -90
- package/esm5/lib/components/refund-status/refund-status.component.js +71 -335
- package/esm5/lib/components/reports/reports.component.js +49 -276
- package/esm5/lib/components/service-request/service-request.component.js +122 -462
- package/esm5/lib/components/status-history/status-history.component.js +17 -53
- package/esm5/lib/components/table/table.component.js +44 -154
- package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +75 -259
- package/esm5/lib/interfaces/AddRemissionRequest.js +1 -22
- package/esm5/lib/interfaces/AddRetroRemissionRequest.js +1 -12
- package/esm5/lib/interfaces/AllocatePaymentRequest.js +1 -36
- package/esm5/lib/interfaces/IAllocationPaymentsRequest.js +1 -20
- package/esm5/lib/interfaces/IBSPayments.js +1 -46
- package/esm5/lib/interfaces/ICardDetails.js +1 -22
- package/esm5/lib/interfaces/IFee.js +1 -54
- package/esm5/lib/interfaces/IOrderReferenceFee.js +1 -26
- package/esm5/lib/interfaces/IPatchRefundAction.js +1 -16
- package/esm5/lib/interfaces/IPayment.js +1 -66
- package/esm5/lib/interfaces/IPaymentFailure.js +1 -34
- package/esm5/lib/interfaces/IPaymentGroup.js +1 -20
- package/esm5/lib/interfaces/IPaymentStatus.js +1 -26
- package/esm5/lib/interfaces/IPaymentView.js +1 -18
- package/esm5/lib/interfaces/IPayments.js +1 -14
- package/esm5/lib/interfaces/IRefundAction.js +1 -16
- package/esm5/lib/interfaces/IRefundList.js +1 -30
- package/esm5/lib/interfaces/IRefundReasons.js +1 -20
- package/esm5/lib/interfaces/IRefundRejectReason.js +1 -16
- package/esm5/lib/interfaces/IRefundStatus.js +1 -24
- package/esm5/lib/interfaces/IRefundStatusHistory.js +1 -16
- package/esm5/lib/interfaces/IRemission.js +1 -26
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +1 -12
- package/esm5/lib/interfaces/IStatusHistories.js +1 -20
- package/esm5/lib/interfaces/IStatusHistory.js +1 -22
- package/esm5/lib/interfaces/IserviceRequestCardPayment.js +1 -14
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +1 -18
- package/esm5/lib/interfaces/IssueRefundRequest.js +1 -14
- package/esm5/lib/interfaces/PayhubAntennaRequest.js +2 -17
- package/esm5/lib/interfaces/PaymentToPayhubRequest.js +2 -23
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +1 -10
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +1 -12
- package/esm5/lib/interfaces/RefundsRequest.js +1 -12
- package/esm5/lib/interfaces/UnidentifiedPaymentsRequest.js +1 -16
- package/esm5/lib/interfaces/UnsolicitedPaymentsRequest.js +1 -22
- package/esm5/lib/payment-lib.component.js +114 -184
- package/esm5/lib/payment-lib.module.js +52 -56
- package/esm5/lib/payment-lib.service.js +17 -88
- package/esm5/lib/pipes/capitalize.pipe.js +9 -24
- package/esm5/lib/pipes/ccd-hyphens.pipe.js +9 -25
- package/esm5/lib/pipes/key-value.pipe.js +9 -23
- package/esm5/lib/pipes/sanitize-html.pipe.js +8 -27
- package/esm5/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +28 -153
- package/esm5/lib/services/card-details/card-details.service.js +13 -44
- package/esm5/lib/services/case-transactions/case-transactions.service.js +13 -44
- package/esm5/lib/services/orderslist.service.js +45 -420
- package/esm5/lib/services/payment-list/payment-list.service.js +13 -48
- package/esm5/lib/services/payment-view/payment-view.service.js +40 -307
- package/esm5/lib/services/refunds/refunds.service.js +29 -164
- package/esm5/lib/services/shared/error-handler.service.js +11 -38
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +18 -120
- package/esm5/lib/services/shared/logger/console-logger.service.js +13 -42
- package/esm5/lib/services/shared/logger/logger.service.js +11 -54
- package/esm5/lib/services/status-history/status-history.service.js +13 -46
- package/esm5/lib/services/xl-file/xl-file.service.js +15 -115
- package/esm5/public_api.js +4 -9
- package/fesm2015/hmcts-ccpay-web-component.js +1435 -6224
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +1694 -7576
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/card-details/card-details.component.d.ts +1 -1
- package/lib/components/payment-view/payment-view.component.d.ts +2 -2
- package/lib/services/shared/logger/console-logger.service.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,76 +1,35 @@
|
|
|
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';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @param {?} paymentListService
|
|
12
|
-
* @param {?} paymentLibComponent
|
|
13
|
-
*/
|
|
5
|
+
let PaymentListComponent = class PaymentListComponent {
|
|
14
6
|
constructor(paymentListService, paymentLibComponent) {
|
|
15
7
|
this.paymentListService = paymentListService;
|
|
16
8
|
this.paymentLibComponent = paymentLibComponent;
|
|
17
9
|
}
|
|
18
|
-
/**
|
|
19
|
-
* @return {?}
|
|
20
|
-
*/
|
|
21
10
|
ngOnInit() {
|
|
22
11
|
this.paymentListService.getPaymentByCcdCaseNumber(this.paymentLibComponent.CCD_CASE_NUMBER, this.paymentLibComponent.PAYMENT_METHOD)
|
|
23
|
-
.subscribe((
|
|
24
|
-
* @param {?} payments
|
|
25
|
-
* @return {?}
|
|
26
|
-
*/
|
|
27
|
-
payments => this.payments = payments), (/**
|
|
28
|
-
* @param {?} error
|
|
29
|
-
* @return {?}
|
|
30
|
-
*/
|
|
31
|
-
(error) => this.errorMessage = (/** @type {?} */ (error))));
|
|
12
|
+
.subscribe(payments => this.payments = payments, (error) => this.errorMessage = error);
|
|
32
13
|
}
|
|
33
|
-
/**
|
|
34
|
-
* @param {?} paymentGroupReference
|
|
35
|
-
* @param {?} paymentReference
|
|
36
|
-
* @param {?} paymentMethod
|
|
37
|
-
* @return {?}
|
|
38
|
-
*/
|
|
39
14
|
loadPaymentViewComponent(paymentGroupReference, paymentReference, paymentMethod) {
|
|
40
15
|
this.paymentLibComponent.paymentMethod = paymentMethod;
|
|
41
16
|
this.paymentLibComponent.paymentGroupReference = paymentGroupReference;
|
|
42
17
|
this.paymentLibComponent.paymentReference = paymentReference;
|
|
43
18
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
44
19
|
}
|
|
45
|
-
}
|
|
46
|
-
PaymentListComponent.decorators = [
|
|
47
|
-
{ type: Component, args: [{
|
|
48
|
-
selector: 'ccpay-payment-list',
|
|
49
|
-
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",
|
|
50
|
-
styles: [""]
|
|
51
|
-
}] }
|
|
52
|
-
];
|
|
53
|
-
/** @nocollapse */
|
|
20
|
+
};
|
|
54
21
|
PaymentListComponent.ctorParameters = () => [
|
|
55
22
|
{ type: PaymentListService },
|
|
56
23
|
{ type: PaymentLibComponent }
|
|
57
24
|
];
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
PaymentListComponent.prototype.paymentListService;
|
|
70
|
-
/**
|
|
71
|
-
* @type {?}
|
|
72
|
-
* @private
|
|
73
|
-
*/
|
|
74
|
-
PaymentListComponent.prototype.paymentLibComponent;
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC1saXN0L3BheW1lbnQtbGlzdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFTLE1BQU0sZUFBZSxDQUFDO0FBRWhELE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLGtEQUFrRCxDQUFDO0FBRXBGLE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLDZCQUE2QixDQUFDO0FBUWhFLE1BQU0sT0FBTyxvQkFBb0I7Ozs7O0lBSy9CLFlBQW9CLGtCQUFzQyxFQUN0QyxtQkFB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cy5wYXltZW50TGliQ29tcG9uZW50LkNDRF9DQVNFX05VTUJFUiwgdGhpcy5wYXltZW50TGliQ29tcG9uZW50LlBBWU1FTlRfTUVUSE9EKVxuICAgICAgLnN1YnNjcmliZShcbiAgICAgICAgcGF5bWVudHMgPT4gdGhpcy5wYXltZW50cyA9IHBheW1lbnRzLFxuICAgICAgICAoZXJyb3I6IGFueSkgPT4gdGhpcy5lcnJvck1lc3NhZ2UgPSA8YW55PmVycm9yXG4gICAgICApO1xuICB9XG5cbiAgbG9hZFBheW1lbnRWaWV3Q29tcG9uZW50KHBheW1lbnRHcm91cFJlZmVyZW5jZTogc3RyaW5nLCBwYXltZW50UmVmZXJlbmNlOiBzdHJpbmcsIHBheW1lbnRNZXRob2Q6IHN0cmluZykge1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50TWV0aG9kID0gcGF5bWVudE1ldGhvZDtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQucGF5bWVudEdyb3VwUmVmZXJlbmNlID0gcGF5bWVudEdyb3VwUmVmZXJlbmNlO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50UmVmZXJlbmNlID0gcGF5bWVudFJlZmVyZW5jZTtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQudmlld05hbWUgPSAncGF5bWVudC12aWV3JztcbiAgfVxufVxuIl19
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC1saXN0L3BheW1lbnQtbGlzdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQVMsTUFBTSxlQUFlLENBQUM7QUFFaEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sa0RBQWtELENBQUM7QUFFcEYsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFRaEUsSUFBYSxvQkFBb0IsR0FBakMsTUFBYSxvQkFBb0I7SUFLL0IsWUFBb0Isa0JBQXNDLEVBQ3RDLG1CQUF3QztRQUR4Qyx1QkFBa0IsR0FBbEIsa0JBQWtCLENBQW9CO1FBQ3RDLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBcUI7SUFDNUQsQ0FBQztJQUVELFFBQVE7UUFDTixJQUFJLENBQUMsa0JBQWtCLENBQUMseUJBQXlCLENBQUM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gPT4gdGhpcy5lcnJvck1lc3NhZ2UgPSA8YW55PmVycm9yXG4gICAgICApO1xuICB9XG5cbiAgbG9hZFBheW1lbnRWaWV3Q29tcG9uZW50KHBheW1lbnRHcm91cFJlZmVyZW5jZTogc3RyaW5nLCBwYXltZW50UmVmZXJlbmNlOiBzdHJpbmcsIHBheW1lbnRNZXRob2Q6IHN0cmluZykge1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50TWV0aG9kID0gcGF5bWVudE1ldGhvZDtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQucGF5bWVudEdyb3VwUmVmZXJlbmNlID0gcGF5bWVudEdyb3VwUmVmZXJlbmNlO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5wYXltZW50UmVmZXJlbmNlID0gcGF5bWVudFJlZmVyZW5jZTtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQudmlld05hbWUgPSAncGF5bWVudC12aWV3JztcbiAgfVxufVxuIl19
|