@hmcts/ccpay-web-component 5.0.12 → 5.1.0-beta02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccpay-web-component.umd.js +5091 -8699
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/hmcts-ccpay-web-component.js +2 -6
- package/esm2015/lib/components/add-remission/add-remission.component.js +34 -407
- package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +37 -348
- package/esm2015/lib/components/card-details/card-details.component.js +3 -46
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +107 -687
- package/esm2015/lib/components/error-banner/error-banner.component.js +2 -14
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +29 -255
- package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +23 -181
- package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +27 -225
- package/esm2015/lib/components/page-not-found.component.js +2 -6
- package/esm2015/lib/components/payment-list/payment-list.component.js +4 -48
- package/esm2015/lib/components/payment-view/payment-view.component.js +39 -336
- package/esm2015/lib/components/pba-details/pba-details.component.js +3 -15
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +13 -120
- package/esm2015/lib/components/process-refund/process-refund.component.js +16 -178
- package/esm2015/lib/components/processed-payments/processed-payments.component.js +4 -42
- package/esm2015/lib/components/refund-list/refund-list.component.js +9 -77
- package/esm2015/lib/components/refund-status/refund-status.component.js +25 -257
- package/esm2015/lib/components/reports/reports.component.js +21 -212
- package/esm2015/lib/components/service-request/service-request.component.js +36 -370
- package/esm2015/lib/components/status-history/status-history.component.js +4 -44
- package/esm2015/lib/components/table/table.component.js +5 -105
- package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +12 -184
- package/esm2015/lib/interfaces/AddRemissionRequest.js +1 -28
- package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +1 -15
- package/esm2015/lib/interfaces/AllocatePaymentRequest.js +1 -42
- package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +1 -26
- package/esm2015/lib/interfaces/IBSPayments.js +2 -45
- package/esm2015/lib/interfaces/ICardDetails.js +2 -21
- package/esm2015/lib/interfaces/IFee.js +2 -53
- package/esm2015/lib/interfaces/IOrderReferenceFee.js +2 -25
- package/esm2015/lib/interfaces/IPatchRefundAction.js +2 -15
- package/esm2015/lib/interfaces/IPayment.js +2 -65
- package/esm2015/lib/interfaces/IPaymentFailure.js +2 -33
- package/esm2015/lib/interfaces/IPaymentGroup.js +2 -19
- package/esm2015/lib/interfaces/IPaymentStatus.js +1 -25
- package/esm2015/lib/interfaces/IPaymentView.js +2 -17
- package/esm2015/lib/interfaces/IPayments.js +2 -13
- package/esm2015/lib/interfaces/IRefundAction.js +2 -15
- package/esm2015/lib/interfaces/IRefundList.js +2 -29
- package/esm2015/lib/interfaces/IRefundReasons.js +2 -19
- package/esm2015/lib/interfaces/IRefundRejectReason.js +2 -15
- package/esm2015/lib/interfaces/IRefundStatus.js +2 -23
- package/esm2015/lib/interfaces/IRefundStatusHistory.js +2 -15
- package/esm2015/lib/interfaces/IRemission.js +2 -25
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +1 -15
- package/esm2015/lib/interfaces/IStatusHistories.js +2 -19
- package/esm2015/lib/interfaces/IStatusHistory.js +2 -21
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +1 -16
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +1 -23
- package/esm2015/lib/interfaces/IssueRefundRequest.js +1 -18
- package/esm2015/lib/interfaces/PayhubAntennaRequest.js +2 -21
- package/esm2015/lib/interfaces/PaymentToPayhubRequest.js +2 -27
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +1 -12
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +1 -15
- package/esm2015/lib/interfaces/RefundsRequest.js +1 -15
- package/esm2015/lib/interfaces/UnidentifiedPaymentsRequest.js +1 -20
- package/esm2015/lib/interfaces/UnsolicitedPaymentsRequest.js +1 -29
- package/esm2015/lib/payment-lib.component.js +2 -147
- package/esm2015/lib/payment-lib.module.js +1 -5
- package/esm2015/lib/payment-lib.service.js +2 -45
- package/esm2015/lib/pipes/capitalize.pipe.js +1 -11
- package/esm2015/lib/pipes/ccd-hyphens.pipe.js +1 -12
- package/esm2015/lib/pipes/key-value.pipe.js +1 -11
- package/esm2015/lib/pipes/sanitize-html.pipe.js +1 -20
- package/esm2015/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +9 -102
- package/esm2015/lib/services/card-details/card-details.service.js +2 -39
- package/esm2015/lib/services/case-transactions/case-transactions.service.js +2 -39
- package/esm2015/lib/services/orderslist.service.js +2 -251
- package/esm2015/lib/services/payment-list/payment-list.service.js +2 -42
- package/esm2015/lib/services/payment-view/payment-view.service.js +3 -168
- package/esm2015/lib/services/refunds/refunds.service.js +7 -109
- package/esm2015/lib/services/shared/error-handler.service.js +4 -21
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +6 -82
- package/esm2015/lib/services/shared/logger/console-logger.service.js +3 -27
- package/esm2015/lib/services/shared/logger/logger.service.js +3 -35
- package/esm2015/lib/services/status-history/status-history.service.js +2 -40
- package/esm2015/lib/services/xl-file/xl-file.service.js +2 -60
- package/esm2015/public_api.js +4 -8
- package/fesm2015/hmcts-ccpay-web-component.js +552 -3557
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.d.ts +1 -0
- package/hmcts-ccpay-web-component.d.ts.map +1 -0
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +1 -0
- package/lib/components/add-remission/add-remission.component.d.ts.map +1 -0
- package/lib/components/add-remission/add-remission.component.ngfactory.d.ts.map +1 -0
- package/lib/components/add-remission/add-remission.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/allocate-payments/allocate-payments.component.d.ts +1 -0
- package/lib/components/allocate-payments/allocate-payments.component.d.ts.map +1 -0
- package/lib/components/allocate-payments/allocate-payments.component.ngfactory.d.ts.map +1 -0
- package/lib/components/allocate-payments/allocate-payments.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/card-details/card-details.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/card-details/card-details.component.d.ts +2 -1
- package/lib/components/card-details/card-details.component.d.ts.map +1 -0
- package/lib/components/card-details/card-details.component.ngfactory.d.ts.map +1 -0
- package/lib/components/case-transactions/case-transactions.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/case-transactions/case-transactions.component.d.ts +2 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts.map +1 -0
- package/lib/components/case-transactions/case-transactions.component.ngfactory.d.ts.map +1 -0
- package/lib/components/error-banner/error-banner.component.d.ts +1 -0
- package/lib/components/error-banner/error-banner.component.d.ts.map +1 -0
- package/lib/components/error-banner/error-banner.component.ngfactory.d.ts.map +1 -0
- package/lib/components/error-banner/error-banner.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/fee-summary/fee-summary.component.d.ts +1 -0
- package/lib/components/fee-summary/fee-summary.component.d.ts.map +1 -0
- package/lib/components/fee-summary/fee-summary.component.ngfactory.d.ts.map +1 -0
- package/lib/components/fee-summary/fee-summary.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.d.ts +1 -0
- package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.d.ts.map +1 -0
- package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.ngfactory.d.ts.map +1 -0
- package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.d.ts +1 -0
- package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.d.ts.map +1 -0
- package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.ngfactory.d.ts.map +1 -0
- package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/page-not-found.component.d.ts +1 -0
- package/lib/components/page-not-found.component.d.ts.map +1 -0
- package/lib/components/page-not-found.component.ngfactory.d.ts.map +1 -0
- package/lib/components/payment-list/payment-list.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/payment-list/payment-list.component.d.ts +1 -0
- package/lib/components/payment-list/payment-list.component.d.ts.map +1 -0
- package/lib/components/payment-list/payment-list.component.ngfactory.d.ts.map +1 -0
- package/lib/components/payment-view/payment-view.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/payment-view/payment-view.component.d.ts +3 -2
- package/lib/components/payment-view/payment-view.component.d.ts.map +1 -0
- package/lib/components/payment-view/payment-view.component.ngfactory.d.ts.map +1 -0
- package/lib/components/pba-details/pba-details.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/pba-details/pba-details.component.d.ts +1 -0
- package/lib/components/pba-details/pba-details.component.d.ts.map +1 -0
- package/lib/components/pba-details/pba-details.component.ngfactory.d.ts.map +1 -0
- package/lib/components/pba-payment/pba-payment.component.d.ts +1 -0
- package/lib/components/pba-payment/pba-payment.component.d.ts.map +1 -0
- package/lib/components/pba-payment/pba-payment.component.ngfactory.d.ts.map +1 -0
- package/lib/components/pba-payment/pba-payment.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/process-refund/process-refund.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/process-refund/process-refund.component.d.ts +1 -0
- package/lib/components/process-refund/process-refund.component.d.ts.map +1 -0
- package/lib/components/process-refund/process-refund.component.ngfactory.d.ts.map +1 -0
- package/lib/components/processed-payments/processed-payments.component.d.ts +1 -0
- package/lib/components/processed-payments/processed-payments.component.d.ts.map +1 -0
- package/lib/components/processed-payments/processed-payments.component.ngfactory.d.ts.map +1 -0
- package/lib/components/processed-payments/processed-payments.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/refund-list/refund-list.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/refund-list/refund-list.component.d.ts +1 -0
- package/lib/components/refund-list/refund-list.component.d.ts.map +1 -0
- package/lib/components/refund-list/refund-list.component.ngfactory.d.ts.map +1 -0
- package/lib/components/refund-status/refund-status.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/refund-status/refund-status.component.d.ts +2 -1
- package/lib/components/refund-status/refund-status.component.d.ts.map +1 -0
- package/lib/components/refund-status/refund-status.component.ngfactory.d.ts.map +1 -0
- package/lib/components/reports/reports.component.d.ts +1 -0
- package/lib/components/reports/reports.component.d.ts.map +1 -0
- package/lib/components/reports/reports.component.ngfactory.d.ts.map +1 -0
- package/lib/components/reports/reports.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/service-request/service-request.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/service-request/service-request.component.d.ts +1 -0
- package/lib/components/service-request/service-request.component.d.ts.map +1 -0
- package/lib/components/service-request/service-request.component.ngfactory.d.ts.map +1 -0
- package/lib/components/status-history/status-history.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/status-history/status-history.component.d.ts +1 -0
- package/lib/components/status-history/status-history.component.d.ts.map +1 -0
- package/lib/components/status-history/status-history.component.ngfactory.d.ts.map +1 -0
- package/lib/components/table/table.component.css.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/table/table.component.d.ts +1 -0
- package/lib/components/table/table.component.d.ts.map +1 -0
- package/lib/components/table/table.component.ngfactory.d.ts.map +1 -0
- package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts +1 -0
- package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts.map +1 -0
- package/lib/components/unprocessed-payments/unprocessed-payments.component.ngfactory.d.ts.map +1 -0
- package/lib/components/unprocessed-payments/unprocessed-payments.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/interfaces/AddRemissionRequest.d.ts +1 -0
- package/lib/interfaces/AddRemissionRequest.d.ts.map +1 -0
- package/lib/interfaces/AddRetroRemissionRequest.d.ts +1 -0
- package/lib/interfaces/AddRetroRemissionRequest.d.ts.map +1 -0
- package/lib/interfaces/AllocatePaymentRequest.d.ts +1 -0
- package/lib/interfaces/AllocatePaymentRequest.d.ts.map +1 -0
- package/lib/interfaces/IAllocationPaymentsRequest.d.ts +1 -0
- package/lib/interfaces/IAllocationPaymentsRequest.d.ts.map +1 -0
- package/lib/interfaces/IBSPayments.d.ts +1 -0
- package/lib/interfaces/IBSPayments.d.ts.map +1 -0
- package/lib/interfaces/ICardDetails.d.ts +1 -0
- package/lib/interfaces/ICardDetails.d.ts.map +1 -0
- package/lib/interfaces/IFee.d.ts +1 -0
- package/lib/interfaces/IFee.d.ts.map +1 -0
- package/lib/interfaces/IOrderReferenceFee.d.ts +1 -0
- package/lib/interfaces/IOrderReferenceFee.d.ts.map +1 -0
- package/lib/interfaces/IPatchRefundAction.d.ts +1 -0
- package/lib/interfaces/IPatchRefundAction.d.ts.map +1 -0
- package/lib/interfaces/IPayment.d.ts +1 -0
- package/lib/interfaces/IPayment.d.ts.map +1 -0
- package/lib/interfaces/IPaymentFailure.d.ts +1 -0
- package/lib/interfaces/IPaymentFailure.d.ts.map +1 -0
- package/lib/interfaces/IPaymentGroup.d.ts +1 -0
- package/lib/interfaces/IPaymentGroup.d.ts.map +1 -0
- package/lib/interfaces/IPaymentStatus.d.ts +1 -0
- package/lib/interfaces/IPaymentStatus.d.ts.map +1 -0
- package/lib/interfaces/IPaymentView.d.ts +1 -0
- package/lib/interfaces/IPaymentView.d.ts.map +1 -0
- package/lib/interfaces/IPayments.d.ts +1 -0
- package/lib/interfaces/IPayments.d.ts.map +1 -0
- package/lib/interfaces/IRefundAction.d.ts +1 -0
- package/lib/interfaces/IRefundAction.d.ts.map +1 -0
- package/lib/interfaces/IRefundList.d.ts +1 -0
- package/lib/interfaces/IRefundList.d.ts.map +1 -0
- package/lib/interfaces/IRefundReasons.d.ts +1 -0
- package/lib/interfaces/IRefundReasons.d.ts.map +1 -0
- package/lib/interfaces/IRefundRejectReason.d.ts +1 -0
- package/lib/interfaces/IRefundRejectReason.d.ts.map +1 -0
- package/lib/interfaces/IRefundStatus.d.ts +1 -0
- package/lib/interfaces/IRefundStatus.d.ts.map +1 -0
- package/lib/interfaces/IRefundStatusHistory.d.ts +1 -0
- package/lib/interfaces/IRefundStatusHistory.d.ts.map +1 -0
- package/lib/interfaces/IRemission.d.ts +1 -0
- package/lib/interfaces/IRemission.d.ts.map +1 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts +1 -0
- package/lib/interfaces/IResubmitRefundRequest.d.ts.map +1 -0
- package/lib/interfaces/IStatusHistories.d.ts +1 -0
- package/lib/interfaces/IStatusHistories.d.ts.map +1 -0
- package/lib/interfaces/IStatusHistory.d.ts +1 -0
- package/lib/interfaces/IStatusHistory.d.ts.map +1 -0
- package/lib/interfaces/IserviceRequestCardPayment.d.ts +1 -0
- package/lib/interfaces/IserviceRequestCardPayment.d.ts.map +1 -0
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +1 -0
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts.map +1 -0
- package/lib/interfaces/IssueRefundRequest.d.ts +1 -0
- package/lib/interfaces/IssueRefundRequest.d.ts.map +1 -0
- package/lib/interfaces/PayhubAntennaRequest.d.ts +1 -0
- package/lib/interfaces/PayhubAntennaRequest.d.ts.map +1 -0
- package/lib/interfaces/PaymentToPayhubRequest.d.ts +1 -0
- package/lib/interfaces/PaymentToPayhubRequest.d.ts.map +1 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +1 -0
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts.map +1 -0
- package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -0
- package/lib/interfaces/PostRefundRetroRemission.d.ts.map +1 -0
- package/lib/interfaces/RefundsRequest.d.ts +1 -0
- package/lib/interfaces/RefundsRequest.d.ts.map +1 -0
- package/lib/interfaces/UnidentifiedPaymentsRequest.d.ts +1 -0
- package/lib/interfaces/UnidentifiedPaymentsRequest.d.ts.map +1 -0
- package/lib/interfaces/UnsolicitedPaymentsRequest.d.ts +1 -0
- package/lib/interfaces/UnsolicitedPaymentsRequest.d.ts.map +1 -0
- package/lib/payment-lib.component.d.ts +1 -0
- package/lib/payment-lib.component.d.ts.map +1 -0
- package/lib/payment-lib.component.ngfactory.d.ts.map +1 -0
- package/lib/payment-lib.module.d.ts +1 -0
- package/lib/payment-lib.module.d.ts.map +1 -0
- package/lib/payment-lib.module.ngfactory.d.ts.map +1 -0
- package/lib/payment-lib.service.d.ts +1 -0
- package/lib/payment-lib.service.d.ts.map +1 -0
- package/lib/payment-lib.service.ngfactory.d.ts.map +1 -0
- package/lib/pipes/capitalize.pipe.d.ts +1 -0
- package/lib/pipes/capitalize.pipe.d.ts.map +1 -0
- package/lib/pipes/capitalize.pipe.ngfactory.d.ts.map +1 -0
- package/lib/pipes/ccd-hyphens.pipe.d.ts +1 -0
- package/lib/pipes/ccd-hyphens.pipe.d.ts.map +1 -0
- package/lib/pipes/ccd-hyphens.pipe.ngfactory.d.ts.map +1 -0
- package/lib/pipes/key-value.pipe.d.ts +1 -0
- package/lib/pipes/key-value.pipe.d.ts.map +1 -0
- package/lib/pipes/key-value.pipe.ngfactory.d.ts.map +1 -0
- package/lib/pipes/sanitize-html.pipe.d.ts +1 -0
- package/lib/pipes/sanitize-html.pipe.d.ts.map +1 -0
- package/lib/pipes/sanitize-html.pipe.ngfactory.d.ts.map +1 -0
- package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.d.ts +1 -0
- package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.d.ts.map +1 -0
- package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.ngfactory.d.ts.map +1 -0
- package/lib/services/card-details/card-details.service.d.ts +1 -0
- package/lib/services/card-details/card-details.service.d.ts.map +1 -0
- package/lib/services/card-details/card-details.service.ngfactory.d.ts.map +1 -0
- package/lib/services/case-transactions/case-transactions.service.d.ts +1 -0
- package/lib/services/case-transactions/case-transactions.service.d.ts.map +1 -0
- package/lib/services/case-transactions/case-transactions.service.ngfactory.d.ts.map +1 -0
- package/lib/services/orderslist.service.d.ts +1 -0
- package/lib/services/orderslist.service.d.ts.map +1 -0
- package/lib/services/orderslist.service.ngfactory.d.ts.map +1 -0
- package/lib/services/payment-list/payment-list.service.d.ts +1 -0
- package/lib/services/payment-list/payment-list.service.d.ts.map +1 -0
- package/lib/services/payment-list/payment-list.service.ngfactory.d.ts.map +1 -0
- package/lib/services/payment-view/payment-view.service.d.ts +1 -0
- package/lib/services/payment-view/payment-view.service.d.ts.map +1 -0
- package/lib/services/payment-view/payment-view.service.ngfactory.d.ts.map +1 -0
- package/lib/services/refunds/refunds.service.d.ts +1 -0
- package/lib/services/refunds/refunds.service.d.ts.map +1 -0
- package/lib/services/refunds/refunds.service.ngfactory.d.ts.map +1 -0
- package/lib/services/shared/error-handler.service.d.ts +2 -1
- package/lib/services/shared/error-handler.service.d.ts.map +1 -0
- package/lib/services/shared/error-handler.service.ngfactory.d.ts.map +1 -0
- package/lib/services/shared/httpclient/webcomponent.http.client.d.ts +1 -0
- package/lib/services/shared/httpclient/webcomponent.http.client.d.ts.map +1 -0
- package/lib/services/shared/httpclient/webcomponent.http.client.ngfactory.d.ts.map +1 -0
- package/lib/services/shared/logger/console-logger.service.d.ts +4 -3
- package/lib/services/shared/logger/console-logger.service.d.ts.map +1 -0
- package/lib/services/shared/logger/console-logger.service.ngfactory.d.ts.map +1 -0
- package/lib/services/shared/logger/logger.service.d.ts +1 -0
- package/lib/services/shared/logger/logger.service.d.ts.map +1 -0
- package/lib/services/shared/logger/logger.service.ngfactory.d.ts.map +1 -0
- package/lib/services/status-history/status-history.service.d.ts +1 -0
- package/lib/services/status-history/status-history.service.d.ts.map +1 -0
- package/lib/services/status-history/status-history.service.ngfactory.d.ts.map +1 -0
- package/lib/services/xl-file/xl-file.service.d.ts +1 -0
- package/lib/services/xl-file/xl-file.service.d.ts.map +1 -0
- package/lib/services/xl-file/xl-file.service.ngfactory.d.ts.map +1 -0
- package/package.json +6 -8
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -0
- package/esm5/hmcts-ccpay-web-component.js +0 -48
- package/esm5/lib/components/add-remission/add-remission.component.js +0 -1146
- package/esm5/lib/components/allocate-payments/allocate-payments.component.js +0 -745
- package/esm5/lib/components/card-details/card-details.component.js +0 -77
- package/esm5/lib/components/case-transactions/case-transactions.component.js +0 -1448
- package/esm5/lib/components/error-banner/error-banner.component.js +0 -36
- package/esm5/lib/components/fee-summary/fee-summary.component.js +0 -504
- package/esm5/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +0 -371
- package/esm5/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +0 -474
- package/esm5/lib/components/page-not-found.component.js +0 -17
- package/esm5/lib/components/payment-list/payment-list.component.js +0 -83
- package/esm5/lib/components/payment-view/payment-view.component.js +0 -673
- package/esm5/lib/components/pba-details/pba-details.component.js +0 -36
- package/esm5/lib/components/pba-payment/pba-payment.component.js +0 -269
- package/esm5/lib/components/process-refund/process-refund.component.js +0 -536
- package/esm5/lib/components/processed-payments/processed-payments.component.js +0 -83
- package/esm5/lib/components/refund-list/refund-list.component.js +0 -130
- package/esm5/lib/components/refund-status/refund-status.component.js +0 -554
- package/esm5/lib/components/reports/reports.component.js +0 -515
- package/esm5/lib/components/service-request/service-request.component.js +0 -690
- package/esm5/lib/components/status-history/status-history.component.js +0 -70
- package/esm5/lib/components/table/table.component.js +0 -229
- package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +0 -418
- package/esm5/lib/interfaces/AddRemissionRequest.js +0 -32
- package/esm5/lib/interfaces/AddRetroRemissionRequest.js +0 -19
- package/esm5/lib/interfaces/AllocatePaymentRequest.js +0 -63
- package/esm5/lib/interfaces/IAllocationPaymentsRequest.js +0 -34
- package/esm5/lib/interfaces/IBSPayments.js +0 -45
- package/esm5/lib/interfaces/ICardDetails.js +0 -21
- package/esm5/lib/interfaces/IFee.js +0 -53
- package/esm5/lib/interfaces/IOrderReferenceFee.js +0 -25
- package/esm5/lib/interfaces/IPatchRefundAction.js +0 -15
- package/esm5/lib/interfaces/IPayment.js +0 -65
- package/esm5/lib/interfaces/IPaymentFailure.js +0 -33
- package/esm5/lib/interfaces/IPaymentGroup.js +0 -19
- package/esm5/lib/interfaces/IPaymentStatus.js +0 -31
- package/esm5/lib/interfaces/IPaymentView.js +0 -17
- package/esm5/lib/interfaces/IPayments.js +0 -13
- package/esm5/lib/interfaces/IRefundAction.js +0 -15
- package/esm5/lib/interfaces/IRefundList.js +0 -29
- package/esm5/lib/interfaces/IRefundReasons.js +0 -19
- package/esm5/lib/interfaces/IRefundRejectReason.js +0 -15
- package/esm5/lib/interfaces/IRefundStatus.js +0 -23
- package/esm5/lib/interfaces/IRefundStatusHistory.js +0 -15
- package/esm5/lib/interfaces/IRemission.js +0 -25
- package/esm5/lib/interfaces/IResubmitRefundRequest.js +0 -19
- package/esm5/lib/interfaces/IStatusHistories.js +0 -19
- package/esm5/lib/interfaces/IStatusHistory.js +0 -21
- package/esm5/lib/interfaces/IserviceRequestCardPayment.js +0 -22
- package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +0 -28
- package/esm5/lib/interfaces/IssueRefundRequest.js +0 -22
- package/esm5/lib/interfaces/PayhubAntennaRequest.js +0 -25
- package/esm5/lib/interfaces/PaymentToPayhubRequest.js +0 -34
- package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +0 -16
- package/esm5/lib/interfaces/PostRefundRetroRemission.js +0 -19
- package/esm5/lib/interfaces/RefundsRequest.js +0 -19
- package/esm5/lib/interfaces/UnidentifiedPaymentsRequest.js +0 -28
- package/esm5/lib/interfaces/UnsolicitedPaymentsRequest.js +0 -37
- package/esm5/lib/payment-lib.component.js +0 -237
- package/esm5/lib/payment-lib.module.js +0 -103
- package/esm5/lib/payment-lib.service.js +0 -111
- package/esm5/lib/pipes/capitalize.pipe.js +0 -32
- package/esm5/lib/pipes/ccd-hyphens.pipe.js +0 -37
- package/esm5/lib/pipes/key-value.pipe.js +0 -37
- package/esm5/lib/pipes/sanitize-html.pipe.js +0 -39
- package/esm5/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +0 -218
- package/esm5/lib/services/card-details/card-details.service.js +0 -76
- package/esm5/lib/services/case-transactions/case-transactions.service.js +0 -76
- package/esm5/lib/services/orderslist.service.js +0 -531
- package/esm5/lib/services/payment-list/payment-list.service.js +0 -80
- package/esm5/lib/services/payment-view/payment-view.service.js +0 -416
- package/esm5/lib/services/refunds/refunds.service.js +0 -256
- package/esm5/lib/services/shared/error-handler.service.js +0 -127
- package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +0 -167
- package/esm5/lib/services/shared/logger/console-logger.service.js +0 -88
- package/esm5/lib/services/shared/logger/logger.service.js +0 -68
- package/esm5/lib/services/status-history/status-history.service.js +0 -80
- package/esm5/lib/services/xl-file/xl-file.service.js +0 -254
- package/esm5/public_api.js +0 -11
- package/fesm5/hmcts-ccpay-web-component.js +0 -10021
- package/fesm5/hmcts-ccpay-web-component.js.map +0 -1
|
@@ -1,673 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
8
|
-
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
9
|
-
/** @type {?} */
|
|
10
|
-
var BS_ENABLE_FLAG = 'bulk-scan-enabling-fe';
|
|
11
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
12
|
-
import { OrderslistService } from '../../services/orderslist.service';
|
|
13
|
-
var PaymentViewComponent = /** @class */ (function () {
|
|
14
|
-
function PaymentViewComponent(paymentViewService, paymentLibComponent, cd, OrderslistService) {
|
|
15
|
-
var _this = this;
|
|
16
|
-
this.paymentViewService = paymentViewService;
|
|
17
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
18
|
-
this.cd = cd;
|
|
19
|
-
this.OrderslistService = OrderslistService;
|
|
20
|
-
this.isRefundRemission = false;
|
|
21
|
-
this.isAddFeeBtnEnabled = false;
|
|
22
|
-
this.isIssueRefunfBtnEnable = false;
|
|
23
|
-
this.allowedRolesToAccessRefund = ['payments-refund-approver', 'payments-refund'];
|
|
24
|
-
this.remissions = [];
|
|
25
|
-
this.allPaymentsFailure = [];
|
|
26
|
-
this.check4AllowedRoles2AccessRefund = (/**
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
function () {
|
|
30
|
-
return _this.allowedRolesToAccessRefund.some((/**
|
|
31
|
-
* @param {?} role
|
|
32
|
-
* @return {?}
|
|
33
|
-
*/
|
|
34
|
-
function (role) {
|
|
35
|
-
return _this.LOGGEDINUSERROLES.indexOf(role) !== -1;
|
|
36
|
-
}));
|
|
37
|
-
});
|
|
38
|
-
this.allowFurtherAccessAfter4Days = (/**
|
|
39
|
-
* @param {?} payment
|
|
40
|
-
* @return {?}
|
|
41
|
-
*/
|
|
42
|
-
function (payment) {
|
|
43
|
-
if (payment !== null && payment !== undefined) {
|
|
44
|
-
/** @type {?} */
|
|
45
|
-
var tmp4DayAgo = new Date();
|
|
46
|
-
tmp4DayAgo.setDate(tmp4DayAgo.getDate() - 4);
|
|
47
|
-
return tmp4DayAgo >= new Date(payment.date_created);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @return {?}
|
|
53
|
-
*/
|
|
54
|
-
PaymentViewComponent.prototype.ngAfterContentChecked = /**
|
|
55
|
-
* @return {?}
|
|
56
|
-
*/
|
|
57
|
-
function () {
|
|
58
|
-
this.cd.detectChanges();
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* @return {?}
|
|
62
|
-
*/
|
|
63
|
-
PaymentViewComponent.prototype.ngOnInit = /**
|
|
64
|
-
* @return {?}
|
|
65
|
-
*/
|
|
66
|
-
function () {
|
|
67
|
-
var _this = this;
|
|
68
|
-
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
69
|
-
this.selectedOption = this.paymentLibComponent.SELECTED_OPTION;
|
|
70
|
-
this.dcnNumber = this.paymentLibComponent.DCN_NUMBER;
|
|
71
|
-
this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
|
|
72
|
-
this.serviceReference = this.paymentLibComponent.paymentGroupReference;
|
|
73
|
-
this.viewStatus = 'paymentview';
|
|
74
|
-
this.paymentViewService.getApportionPaymentDetails(this.paymentLibComponent.paymentReference).subscribe((/**
|
|
75
|
-
* @param {?} paymentGroup
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
function (paymentGroup) {
|
|
79
|
-
/** @type {?} */
|
|
80
|
-
var fees = [];
|
|
81
|
-
paymentGroup.fees.forEach((/**
|
|
82
|
-
* @param {?} fee
|
|
83
|
-
* @return {?}
|
|
84
|
-
*/
|
|
85
|
-
function (fee) {
|
|
86
|
-
_this.isRemissionsMatch = false;
|
|
87
|
-
paymentGroup.remissions.forEach((/**
|
|
88
|
-
* @param {?} rem
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
function (rem) {
|
|
92
|
-
if (rem.fee_code === fee.code) {
|
|
93
|
-
_this.isRemissionsMatch = true;
|
|
94
|
-
fee['remissions'] = rem;
|
|
95
|
-
fees.push(fee);
|
|
96
|
-
}
|
|
97
|
-
}));
|
|
98
|
-
if (!_this.isRemissionsMatch) {
|
|
99
|
-
fees.push(fee);
|
|
100
|
-
}
|
|
101
|
-
}));
|
|
102
|
-
paymentGroup.fees = fees;
|
|
103
|
-
_this.paymentGroup = paymentGroup;
|
|
104
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
105
|
-
* @param {?} paymentGroupObj
|
|
106
|
-
* @return {?}
|
|
107
|
-
*/
|
|
108
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
109
|
-
/** @type {?} */
|
|
110
|
-
var paymentAllocation = _this.paymentGroup.payments[0].payment_allocation;
|
|
111
|
-
_this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
112
|
-
}), (/**
|
|
113
|
-
* @param {?} error
|
|
114
|
-
* @return {?}
|
|
115
|
-
*/
|
|
116
|
-
function (error) { return _this.errorMessage = error; }));
|
|
117
|
-
this.paymentViewService.getPaymentFailure(this.paymentLibComponent.paymentReference).subscribe({
|
|
118
|
-
next: (/**
|
|
119
|
-
* @param {?} res
|
|
120
|
-
* @return {?}
|
|
121
|
-
*/
|
|
122
|
-
function (res) {
|
|
123
|
-
JSON.parse(res).payment_failure_list.reverse().forEach((/**
|
|
124
|
-
* @param {?} payments
|
|
125
|
-
* @return {?}
|
|
126
|
-
*/
|
|
127
|
-
function (payments) {
|
|
128
|
-
_this.allPaymentsFailure.push(payments.payment_failure_initiated);
|
|
129
|
-
if (payments.payment_failure_closed) {
|
|
130
|
-
_this.allPaymentsFailure.push(payments.payment_failure_closed);
|
|
131
|
-
}
|
|
132
|
-
}));
|
|
133
|
-
_this.allPaymentsFailure = _this.allPaymentsFailure.reverse();
|
|
134
|
-
}),
|
|
135
|
-
error: (/**
|
|
136
|
-
* @param {?} e
|
|
137
|
-
* @return {?}
|
|
138
|
-
*/
|
|
139
|
-
function (e) {
|
|
140
|
-
_this.allPaymentsFailure = [];
|
|
141
|
-
_this.errorMsg = "Server error";
|
|
142
|
-
})
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
Object.defineProperty(PaymentViewComponent.prototype, "isCardPayment", {
|
|
146
|
-
get: /**
|
|
147
|
-
* @return {?}
|
|
148
|
-
*/
|
|
149
|
-
function () {
|
|
150
|
-
return this.paymentGroup.payments[0].method === 'card';
|
|
151
|
-
},
|
|
152
|
-
enumerable: true,
|
|
153
|
-
configurable: true
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(PaymentViewComponent.prototype, "isTelephonyPayment", {
|
|
156
|
-
get: /**
|
|
157
|
-
* @return {?}
|
|
158
|
-
*/
|
|
159
|
-
function () {
|
|
160
|
-
return this.paymentGroup.payments[0].channel === 'telephony';
|
|
161
|
-
},
|
|
162
|
-
enumerable: true,
|
|
163
|
-
configurable: true
|
|
164
|
-
});
|
|
165
|
-
/**
|
|
166
|
-
* @return {?}
|
|
167
|
-
*/
|
|
168
|
-
PaymentViewComponent.prototype.goToPaymentList = /**
|
|
169
|
-
* @return {?}
|
|
170
|
-
*/
|
|
171
|
-
function () {
|
|
172
|
-
this.paymentLibComponent.viewName = 'payment-list';
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* @return {?}
|
|
176
|
-
*/
|
|
177
|
-
PaymentViewComponent.prototype.goToServiceRequestPage = /**
|
|
178
|
-
* @return {?}
|
|
179
|
-
*/
|
|
180
|
-
function () {
|
|
181
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
182
|
-
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
183
|
-
this.paymentLibComponent.SERVICEREQUEST = 'true';
|
|
184
|
-
this.paymentLibComponent.isFromServiceRequestPage = true;
|
|
185
|
-
window.location.reload();
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* @param {?} event
|
|
189
|
-
* @return {?}
|
|
190
|
-
*/
|
|
191
|
-
PaymentViewComponent.prototype.goToCaseTransationPage = /**
|
|
192
|
-
* @param {?} event
|
|
193
|
-
* @return {?}
|
|
194
|
-
*/
|
|
195
|
-
function (event) {
|
|
196
|
-
var _this = this;
|
|
197
|
-
event.preventDefault();
|
|
198
|
-
if (!this.paymentLibComponent.isFromServiceRequestPage) {
|
|
199
|
-
this.OrderslistService.setnavigationPage('casetransactions');
|
|
200
|
-
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
201
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
202
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
203
|
-
this.resetOrderData();
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
this.OrderslistService.getorderRefs().subscribe((/**
|
|
207
|
-
* @param {?} data
|
|
208
|
-
* @return {?}
|
|
209
|
-
*/
|
|
210
|
-
function (data) { return _this.orderRef = data; }));
|
|
211
|
-
this.OrderslistService.getorderCCDEvents().subscribe((/**
|
|
212
|
-
* @param {?} data
|
|
213
|
-
* @return {?}
|
|
214
|
-
*/
|
|
215
|
-
function (data) { return _this.orderCCDEvent = data; }));
|
|
216
|
-
this.OrderslistService.getorderCreateds().subscribe((/**
|
|
217
|
-
* @param {?} data
|
|
218
|
-
* @return {?}
|
|
219
|
-
*/
|
|
220
|
-
function (data) { return _this.orderCreated = data; }));
|
|
221
|
-
this.OrderslistService.getorderDetail().subscribe((/**
|
|
222
|
-
* @param {?} data
|
|
223
|
-
* @return {?}
|
|
224
|
-
*/
|
|
225
|
-
function (data) { return _this.orderDetail = data; }));
|
|
226
|
-
this.OrderslistService.getorderPartys().subscribe((/**
|
|
227
|
-
* @param {?} data
|
|
228
|
-
* @return {?}
|
|
229
|
-
*/
|
|
230
|
-
function (data) { return _this.orderParty = data; }));
|
|
231
|
-
this.OrderslistService.getorderRemissionTotals().subscribe((/**
|
|
232
|
-
* @param {?} data
|
|
233
|
-
* @return {?}
|
|
234
|
-
*/
|
|
235
|
-
function (data) { return _this.orderRemissionTotal = data; }));
|
|
236
|
-
this.OrderslistService.getorderFeesTotals().subscribe((/**
|
|
237
|
-
* @param {?} data
|
|
238
|
-
* @return {?}
|
|
239
|
-
*/
|
|
240
|
-
function (data) { return _this.orderFeesTotal = data; }));
|
|
241
|
-
this.OrderslistService.getoorderTotalPaymentss().subscribe((/**
|
|
242
|
-
* @param {?} data
|
|
243
|
-
* @return {?}
|
|
244
|
-
*/
|
|
245
|
-
function (data) { return _this.orderTotalPayments = data; }));
|
|
246
|
-
this.viewStatus = 'order-full-view';
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* @param {?} fee
|
|
251
|
-
* @return {?}
|
|
252
|
-
*/
|
|
253
|
-
PaymentViewComponent.prototype.addRemission = /**
|
|
254
|
-
* @param {?} fee
|
|
255
|
-
* @return {?}
|
|
256
|
-
*/
|
|
257
|
-
function (fee) {
|
|
258
|
-
var _this = this;
|
|
259
|
-
if (this.chkForAddRemission(fee.code)) {
|
|
260
|
-
this.feeId = fee;
|
|
261
|
-
this.paymentViewService.getApportionPaymentDetails(this.paymentGroup.payments[0].reference).subscribe((/**
|
|
262
|
-
* @param {?} paymentGroup
|
|
263
|
-
* @return {?}
|
|
264
|
-
*/
|
|
265
|
-
function (paymentGroup) {
|
|
266
|
-
_this.paymentGroup = paymentGroup;
|
|
267
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
268
|
-
* @param {?} paymentGroupObj
|
|
269
|
-
* @return {?}
|
|
270
|
-
*/
|
|
271
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.paymentLibComponent.paymentReference); }));
|
|
272
|
-
_this.payment = _this.paymentGroup.payments[0];
|
|
273
|
-
_this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
274
|
-
_this.viewStatus = 'addremission';
|
|
275
|
-
_this.isRefundRemission = true;
|
|
276
|
-
_this.cd.detectChanges();
|
|
277
|
-
}), (/**
|
|
278
|
-
* @param {?} error
|
|
279
|
-
* @return {?}
|
|
280
|
-
*/
|
|
281
|
-
function (error) { return _this.errorMessage = error; }));
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
/**
|
|
285
|
-
* @param {?} paymentGroup
|
|
286
|
-
* @return {?}
|
|
287
|
-
*/
|
|
288
|
-
PaymentViewComponent.prototype.checkForFees = /**
|
|
289
|
-
* @param {?} paymentGroup
|
|
290
|
-
* @return {?}
|
|
291
|
-
*/
|
|
292
|
-
function (paymentGroup) {
|
|
293
|
-
if (paymentGroup !== null && paymentGroup !== undefined) {
|
|
294
|
-
if (paymentGroup.fees !== null && paymentGroup.fees !== undefined) {
|
|
295
|
-
return true;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
return false;
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* @param {?} payment
|
|
302
|
-
* @param {?} remission
|
|
303
|
-
* @param {?} fees
|
|
304
|
-
* @return {?}
|
|
305
|
-
*/
|
|
306
|
-
PaymentViewComponent.prototype.addRefundForRemission = /**
|
|
307
|
-
* @param {?} payment
|
|
308
|
-
* @param {?} remission
|
|
309
|
-
* @param {?} fees
|
|
310
|
-
* @return {?}
|
|
311
|
-
*/
|
|
312
|
-
function (payment, remission, fees) {
|
|
313
|
-
var _this = this;
|
|
314
|
-
if (this.chkIsRefundRemissionBtnEnable()) {
|
|
315
|
-
this.payment = payment;
|
|
316
|
-
this.paymentViewService.getApportionPaymentDetails(this.payment.reference).subscribe((/**
|
|
317
|
-
* @param {?} paymentGroup
|
|
318
|
-
* @return {?}
|
|
319
|
-
*/
|
|
320
|
-
function (paymentGroup) {
|
|
321
|
-
_this.paymentGroup = paymentGroup;
|
|
322
|
-
_this.paymentGroup.payments = _this.paymentGroup.payments.filter((/**
|
|
323
|
-
* @param {?} paymentGroupObj
|
|
324
|
-
* @return {?}
|
|
325
|
-
*/
|
|
326
|
-
function (paymentGroupObj) { return paymentGroupObj['reference'].includes(_this.payment.reference); }));
|
|
327
|
-
_this.payment = _this.paymentGroup.payments[0];
|
|
328
|
-
_this.remissions = remission;
|
|
329
|
-
_this.remissionFeeAmt = fees.filter((/**
|
|
330
|
-
* @param {?} data
|
|
331
|
-
* @return {?}
|
|
332
|
-
*/
|
|
333
|
-
function (data) { return data.code === _this.remissions['fee_code']; }))[0].net_amount;
|
|
334
|
-
_this.viewStatus = 'addrefundforremission';
|
|
335
|
-
// const paymentAllocation = this.paymentGroup.payments[0].payment_allocation;
|
|
336
|
-
// this.isStatusAllocated = paymentAllocation.length > 0 && paymentAllocation[0].allocation_status === 'Allocated' || paymentAllocation.length === 0;
|
|
337
|
-
}), (/**
|
|
338
|
-
* @param {?} error
|
|
339
|
-
* @return {?}
|
|
340
|
-
*/
|
|
341
|
-
function (error) { return _this.errorMessage = error; }));
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
/**
|
|
345
|
-
* @return {?}
|
|
346
|
-
*/
|
|
347
|
-
PaymentViewComponent.prototype.chkIsRefundRemissionBtnEnable = /**
|
|
348
|
-
* @return {?}
|
|
349
|
-
*/
|
|
350
|
-
function () {
|
|
351
|
-
var _this = this;
|
|
352
|
-
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
353
|
-
this.paymentGroup.payments.forEach((/**
|
|
354
|
-
* @param {?} payment
|
|
355
|
-
* @return {?}
|
|
356
|
-
*/
|
|
357
|
-
function (payment) {
|
|
358
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && payment.status.toLocaleLowerCase() === 'success' && _this.allowFurtherAccessAfter4Days(payment)) {
|
|
359
|
-
_this.isRefundRemissionBtnEnable = true;
|
|
360
|
-
}
|
|
361
|
-
}));
|
|
362
|
-
if (this.isRefundRemissionBtnEnable) {
|
|
363
|
-
return true;
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
return false;
|
|
367
|
-
}
|
|
368
|
-
;
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
/**
|
|
372
|
-
* @param {?} paymentgrp
|
|
373
|
-
* @return {?}
|
|
374
|
-
*/
|
|
375
|
-
PaymentViewComponent.prototype.issueRefund = /**
|
|
376
|
-
* @param {?} paymentgrp
|
|
377
|
-
* @return {?}
|
|
378
|
-
*/
|
|
379
|
-
function (paymentgrp) {
|
|
380
|
-
if (paymentgrp !== null && paymentgrp !== undefined) {
|
|
381
|
-
if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
|
|
382
|
-
this.paymentGroup = paymentgrp;
|
|
383
|
-
this.viewStatus = 'issuerefund';
|
|
384
|
-
this.isRefundRemission = true;
|
|
385
|
-
this.paymentLibComponent.isFromPaymentDetailPage = true;
|
|
386
|
-
this.isFromPaymentDetailPage = true;
|
|
387
|
-
this.isFromServiceRequestPage = this.paymentLibComponent.isFromServiceRequestPage;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
|
-
/**
|
|
392
|
-
* @param {?} feeCode
|
|
393
|
-
* @param {?} remissions
|
|
394
|
-
* @return {?}
|
|
395
|
-
*/
|
|
396
|
-
PaymentViewComponent.prototype.getRemissionByFeeCode = /**
|
|
397
|
-
* @param {?} feeCode
|
|
398
|
-
* @param {?} remissions
|
|
399
|
-
* @return {?}
|
|
400
|
-
*/
|
|
401
|
-
function (feeCode, remissions) {
|
|
402
|
-
var e_1, _a;
|
|
403
|
-
if (remissions && remissions.length > 0) {
|
|
404
|
-
try {
|
|
405
|
-
for (var remissions_1 = tslib_1.__values(remissions), remissions_1_1 = remissions_1.next(); !remissions_1_1.done; remissions_1_1 = remissions_1.next()) {
|
|
406
|
-
var remission = remissions_1_1.value;
|
|
407
|
-
if (remission.fee_code === feeCode) {
|
|
408
|
-
return remission;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
413
|
-
finally {
|
|
414
|
-
try {
|
|
415
|
-
if (remissions_1_1 && !remissions_1_1.done && (_a = remissions_1.return)) _a.call(remissions_1);
|
|
416
|
-
}
|
|
417
|
-
finally { if (e_1) throw e_1.error; }
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
return null;
|
|
421
|
-
};
|
|
422
|
-
/**
|
|
423
|
-
* @param {?} payment
|
|
424
|
-
* @return {?}
|
|
425
|
-
*/
|
|
426
|
-
PaymentViewComponent.prototype.chkIssueRefundBtnEnable = /**
|
|
427
|
-
* @param {?} payment
|
|
428
|
-
* @return {?}
|
|
429
|
-
*/
|
|
430
|
-
function (payment) {
|
|
431
|
-
if (this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(payment) &&
|
|
432
|
-
payment.method === 'payment by account' && payment.status.toLocaleLowerCase() === 'success') {
|
|
433
|
-
this.isIssueRefunfBtnEnable = true;
|
|
434
|
-
}
|
|
435
|
-
if (this.isIssueRefunfBtnEnable) {
|
|
436
|
-
return true;
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
return false;
|
|
440
|
-
}
|
|
441
|
-
;
|
|
442
|
-
};
|
|
443
|
-
/**
|
|
444
|
-
* @return {?}
|
|
445
|
-
*/
|
|
446
|
-
PaymentViewComponent.prototype.chkForPBAPayment = /**
|
|
447
|
-
* @return {?}
|
|
448
|
-
*/
|
|
449
|
-
function () {
|
|
450
|
-
if (this.paymentGroup !== null && this.paymentGroup !== undefined) {
|
|
451
|
-
/** @type {?} */
|
|
452
|
-
var payment = this.paymentGroup.payments[0];
|
|
453
|
-
if (payment.method.toLocaleLowerCase() === 'payment by account' && this.allowFurtherAccessAfter4Days(payment)) {
|
|
454
|
-
return true;
|
|
455
|
-
}
|
|
456
|
-
return false;
|
|
457
|
-
}
|
|
458
|
-
};
|
|
459
|
-
/**
|
|
460
|
-
* @param {?} feeCode
|
|
461
|
-
* @return {?}
|
|
462
|
-
*/
|
|
463
|
-
PaymentViewComponent.prototype.chkForAddRemission = /**
|
|
464
|
-
* @param {?} feeCode
|
|
465
|
-
* @return {?}
|
|
466
|
-
*/
|
|
467
|
-
function (feeCode) {
|
|
468
|
-
var e_2, _a;
|
|
469
|
-
if (this.chkForPBAPayment() && this.check4AllowedRoles2AccessRefund() && this.allowFurtherAccessAfter4Days(this.paymentGroup.payments[0])) {
|
|
470
|
-
if (this.paymentGroup.remissions && this.paymentGroup.remissions.length > 0) {
|
|
471
|
-
try {
|
|
472
|
-
for (var _b = tslib_1.__values(this.paymentGroup.remissions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
473
|
-
var remission = _c.value;
|
|
474
|
-
if (remission.fee_code === feeCode) {
|
|
475
|
-
return false;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
480
|
-
finally {
|
|
481
|
-
try {
|
|
482
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
483
|
-
}
|
|
484
|
-
finally { if (e_2) throw e_2.error; }
|
|
485
|
-
}
|
|
486
|
-
return true;
|
|
487
|
-
}
|
|
488
|
-
return true;
|
|
489
|
-
}
|
|
490
|
-
else {
|
|
491
|
-
return false;
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
/**
|
|
495
|
-
* @return {?}
|
|
496
|
-
*/
|
|
497
|
-
PaymentViewComponent.prototype.resetOrderData = /**
|
|
498
|
-
* @return {?}
|
|
499
|
-
*/
|
|
500
|
-
function () {
|
|
501
|
-
this.OrderslistService.setOrderRef(null);
|
|
502
|
-
this.OrderslistService.setorderCCDEvent(null);
|
|
503
|
-
this.OrderslistService.setorderCreated(null);
|
|
504
|
-
this.OrderslistService.setorderDetail(null);
|
|
505
|
-
this.OrderslistService.setorderParty(null);
|
|
506
|
-
this.OrderslistService.setorderTotalPayments(null);
|
|
507
|
-
this.OrderslistService.setorderRemissionTotal(null);
|
|
508
|
-
this.OrderslistService.setorderFeesTotal(null);
|
|
509
|
-
};
|
|
510
|
-
/**
|
|
511
|
-
* @param {?} payment
|
|
512
|
-
* @return {?}
|
|
513
|
-
*/
|
|
514
|
-
PaymentViewComponent.prototype.goToPaymentFailuePage = /**
|
|
515
|
-
* @param {?} payment
|
|
516
|
-
* @return {?}
|
|
517
|
-
*/
|
|
518
|
-
function (payment) {
|
|
519
|
-
this.viewStatus = 'payment-failure';
|
|
520
|
-
this.selectedPaymentsStatus = payment;
|
|
521
|
-
};
|
|
522
|
-
/**
|
|
523
|
-
* @param {?} event
|
|
524
|
-
* @return {?}
|
|
525
|
-
*/
|
|
526
|
-
PaymentViewComponent.prototype.goBackToPaymentView = /**
|
|
527
|
-
* @param {?} event
|
|
528
|
-
* @return {?}
|
|
529
|
-
*/
|
|
530
|
-
function (event) {
|
|
531
|
-
event.preventDefault();
|
|
532
|
-
this.viewStatus = 'paymentview';
|
|
533
|
-
};
|
|
534
|
-
PaymentViewComponent.decorators = [
|
|
535
|
-
{ type: Component, args: [{
|
|
536
|
-
selector: 'ccpay-payment-view',
|
|
537
|
-
template: "\n<ng-container *ngIf=\"viewStatus === 'paymentview'\">\n<div class=\"govuk-width-container\">\n\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goToCaseTransationPage($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n\n <main class=\"govuk-main-wrapper govuk-!-padding-top-0\" id=\"main-content\" role=\"main\">\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 Payment details could not be retrieved\n </h2>\n <div class=\"govuk-error-summary__body\">\n {{ errorMessage }}\n </div>\n </div>\n </div>\n\n <div class=\"payment-view-alignment\" *ngIf=\"!errorMessage && paymentGroup?.payments[0]\">\n\n <input #myInput type='hidden' class='iFrameDrivenImageValue' value='PAYMENTDETAILS'>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Payment details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Service request reference</td>\n <td class=\"tb-col-w\">{{ serviceReference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Payment amount</td>\n <td class=\"tb-col-w\">\u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Payment asset number(DCN)</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.document_control_number }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.document_control_number && !paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">Banked date</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.banked_date | date:'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0] && paymentGroup?.payments[0]?.external_reference\">\n <td class=\"bold tb-col-w\">GovPay Transaction ID</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.external_reference }}</td>\n </tr>\n <tr class=\"section\" >\n <td class=\"bold tb-col-w\">Payment method</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.method }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.method === 'payment by account'\" >\n <td class=\"bold tb-col-w\">Type</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">Credit</td>\n <td class=\"tb-col-w\" *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">Card</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Channel</td>\n <td class=\"tb-col-w text-transform\">{{ paymentGroup?.payments[0]?.channel }}</td>\n </tr>\n <!-- <tr class=\"section\">\n <td class=\"bold tb-col-w\">Method</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method !== 'card'\">{{ paymentGroup?.payments[0]?.method }}</td>\n <td *ngIf=\"paymentGroup?.payments[0]?.method === 'card'\">CARD</td>\n </tr> -->\n <!-- <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.channel !== 'telephony'\">\n <td class=\"bold tb-col-w\">Status</td>\n <td>{{ paymentGroup?.payments[0]?.status }}</td>\n </tr> -->\n <tr class=\"section\" *ngIf=\"paymentGroup?.payments[0]?.payment_allocation[0] !== undefined\">\n <td class=\"bold tb-col-w\">Allocaton status</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.payment_allocation[0]?.allocation_status }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].organisation_name\">\n <td class=\"bold tb-col-w\">PBA account name</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.organisation_name }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].account_number\">\n <td class=\"bold tb-col-w\">PBA number</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.account_number }}</td>\n </tr>\n\n <tr *ngIf=\"paymentGroup?.payments[0].customer_reference\">\n <td class=\"bold tb-col-w\">Customer internal reference</td>\n <td class=\"tb-col-w\">{{ paymentGroup?.payments[0]?.customer_reference }}</td>\n </tr>\n\n </tbody>\n </table>\n\n <div>\n <!-- Status histories -->\n <ccpay-payment-statuses *ngIf=\"isStatusAllocated\" [isTakePayment]=\"isTakePayment\"></ccpay-payment-statuses>\n </div>\n <div class=\"remission\">\n <button [disabled]=\"!chkIssueRefundBtnEnable(paymentGroup?.payments[0])\" (click)=\"issueRefund(paymentGroup)\" class=\"govuk-button govuk-button--secondary\">Issue refund</button>\n </div>\n<div *ngIf=\"ISPAYMENTSTATUSENABLED\">\n <div class=\"column\">\n <h2 class=\"heading-medium\">Disputed payment history</h2>\n </div>\n \n <div>\n <table>\n <thead>\n <tr>\n <th>Status</th>\n <th>Amount</th>\n <th>Date</th>\n <th>Payment reference</th>\n <th>Event</th>\n <th></th>\n </tr>\n </thead> \n <tbody *ngIf=\"!errorMsg && allPaymentsFailure.length > 0\">\n <tr *ngFor=\"let payment of allPaymentsFailure\">\n <td>{{ payment.status | capitalize }}</td>\n <td>\u00A3{{ payment.disputed_amount | number:'.2' }}</td>\n <td>{{(payment.representment_date ? payment.representment_date : payment.failure_event_date_time) | date:'dd MMM yyyy'}}</td>\n <td>{{ payment.payment_reference }}</td>\n <td >{{ payment.failure_type }}</td>\n <td>\n \n <a href=\"javascript:void(0)\" (click)=\"goToPaymentFailuePage(payment)\">Show detail</a>\n\n </td>\n </tr>\n </tbody>\n <tbody *ngIf=\"errorMsg || allPaymentsFailure.length === 0\">\n <tr>\n <td colspan=\"6\"> No disputed payment history available. </td>\n </tr>\n </tbody>\n </table>\n </div>\n <br/>\n <br/>\n </div>\n \n <div *ngIf=\"checkForFees(paymentGroup)\">\n <div *ngIf=\"paymentGroup.fees.length > 0\">\n <div class=\"column\">\n <br/>\n <br/>\n <h2 class=\"heading-large\">Fee and remission details</h2>\n\n </div>\n </div>\n\n <div *ngFor=\"let fee of paymentGroup.fees\">\n <table class=\"table\">\n <tbody>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Description</td>\n <td class=\"tb-col-w\">Application for {{ fee.description }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\">Fee code</td>\n <td class=\"tb-col-w\">{{ fee?.code }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold tb-col-w\" [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff }\">Fee amount</td>\n <td [ngClass]=\"{'tr-border': !fee.apportion_amount && !fee.remissions && !isTurnOff}\">\u00A3{{ fee?.calculated_amount | number:'.2' }}</td>\n </tr>\n\n <tr *ngIf=\"fee.apportion_amount\">\n <td class=\"bold tb-col-w tr-border\" [ngClass]=\"{'tr-border': !fee.remissions}\">Allocated amount</td>\n <td [ngClass]=\"{'tr-border': !fee.remissions}\">\u00A3{{ fee?.apportion_amount | number:'.2' }}</td>\n </tr>\n\n </tbody>\n </table>\n <button [disabled]=\"!chkForAddRemission(fee.code)\" (click)=\"addRemission(fee)\" class=\"govuk-button govuk-button--secondary\"> Add remission</button>\n </div>\n\n <!-- remissions -->\n <div class=\"order-class\">\n <div class=\"column\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header col-24 whitespace-inherit\" scope=\"col\">Help with fees or remission code</td>\n <td class=\"govuk-table__header col-27 whitespace-inherit\" scope=\"col\">Reference</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Fee</td>\n <td class=\"govuk-table__header whitespace-inherit\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header whitespace-inherit refundBtn\" scope=\"col\"></td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\" *ngFor=\"let remission of paymentGroup.remissions\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.remission_reference }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.fee_code }}</td>\n <td class=\"govuk-table__cell whitespace-inherit\">{{ remission?.hwf_amount | currency:'GBP':'symbol-narrow':'1.2-2'}}</td>\n <td class=\"govuk-table__cell refundBtn whitespace-inherit\" >\n <button [disabled]=\"!chkIsRefundRemissionBtnEnable()\" (click)=\"addRefundForRemission(paymentGroup.payments[0],remission,paymentGroup.fees)\" class=\"govuk-button govuk-button--secondary\"> Add refund</button>\n </td>\n </tr>\n </tbody>\n\n\n </table>\n </div></div>\n\n <div *ngIf=\"paymentGroup.remissions?.length === 0\">\n <span class=\"mar-17\" >No help with fees or remissions.</span>\n </div>\n\n </div>\n </div>\n </main>\n</div>\n\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'addremission' && feeId\">\n<ccpay-add-remission\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[fee]=\"feeId\"\n[payment] = \"payment\"\n[orderStatus] =\"paymentGroup.payments[0].status\"\n[paidAmount]= \"paymentGroup.payments[0].amount\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[isFromPaymentDetailPage] = \"true\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'addrefundforremission' && payment\">\n\n<ccpay-add-remission\n[isTurnOff]=\"isTurnOff\"\n[isStrategicFixEnable]=\"isStrategicFixEnable\"\n[viewCompStatus]= \"viewStatus\"\n[payment]=\"payment\"\n[orderStatus] =\"orderStatus\"\n[paidAmount]= \"orderTotalPayments\"\n[isRefundRemission]=\"isRefundRemission\"\n[caseType]=\"caseType\"\n[feeamount]=\"remissionFeeAmt\"\n[remission] = \"remissions\"\n[isFromServiceRequestPage]=\"false\"\n[paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n[ccdCaseNumber]=\"ccdCaseNumber\"\n[orderFeesTotal] = \"orderFeesTotal\"\n[orderTotalPayments] = \"orderTotalPayments\"\n[orderRemissionTotal] = \"orderRemissionTotal\"\n[orderRef] = \"orderRef\"\n[orderCreated] = \"orderCreated\"\n[orderParty] = \"orderParty\"\n[orderCCDEvent] = \"orderCCDEvent\"\n[orderDetail] = \"orderDetail\"\n[LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"></ccpay-add-remission>\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'issuerefund'\">\n <ccpay-add-remission\n [isTurnOff]=\"isTurnOff\"\n [isStrategicFixEnable]=\"isStrategicFixEnable\"\n [payment] = 'paymentGroup.payments[0]'\n [viewCompStatus]= \"viewStatus\"\n [orderStatus] =\"paymentGroup.payments[0].status\"\n [paidAmount]= \"paymentGroup.payments[0].amount\"\n [isRefundRemission]=\"isRefundRemission\"\n [caseType]=\"caseType\"\n [isFromServiceRequestPage]=\"isFromServiceRequestPage\"\n [isFromPaymentDetailPage] = \"isFromPaymentDetailPage\"\n [paymentGroupRef]=\"paymentGroup.payment_group_reference\"\n [ccdCaseNumber]=\"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [orderRef] = \"orderRef\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\">\n ></ccpay-add-remission>\n</ng-container>\n<ng-container *ngIf=\"viewStatus === 'order-full-view'\">\n <ccpay-service-request\n [viewStatus] = \"viewStatus\"\n [orderRef] = \"orderRef\"\n [orderStatus] = \"orderStatus\"\n [orderCreated] = \"orderCreated\"\n [orderParty] = \"orderParty\"\n [orderCCDEvent] = \"orderCCDEvent\"\n [orderDetail] = \"orderDetail\"\n [LOGGEDINUSERROLES] = \"LOGGEDINUSERROLES\"\n [takePayment] = \"isTakePayment\"\n [ccdCaseNumber] = \"ccdCaseNumber\"\n [orderFeesTotal] = \"orderFeesTotal\"\n [orderTotalPayments] = \"orderTotalPayments\"\n [orderRemissionTotal] = \"orderRemissionTotal\"\n [isServiceRequest] = \"isServiceRequest\"\n (goToServiceRquestComponent) = \"goToServiceRequestPage()\"\n>\n</ccpay-service-request>\n\n</ng-container>\n\n<ng-container *ngIf=\"viewStatus === 'payment-failure'\">\n <div class=\"payment-failure-alignment\">\n <div class=\"govuk-breadcrumbs\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"goBackToPaymentView($event)\" class=\"govuk-back-link\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"govuk-grid-row\">\n <div class=\"column\">\n <h1 class=\"heading-large govuk-!-margin-top-0\">Failure event details</h1>\n </div>\n </div>\n <table>\n <tbody>\n\n <tr class=\"section\">\n <td class=\"bold\">Failure reference</td>\n <td>\t{{selectedPaymentsStatus.failure_reference}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure reason</td>\n <td>\t{{selectedPaymentsStatus.failure_reason}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment reference</td>\n <td>{{ selectedPaymentsStatus.payment_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Payment amount</td>\n <td> \u00A3{{ paymentGroup?.payments[0]?.amount | number:'.2' }}</td>\n\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Disputed amount</td>\n <td>\t\u00A3{{selectedPaymentsStatus.disputed_amount | number:'.2'}}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Additional information</td>\n <td>\t{{selectedPaymentsStatus.additional_reference }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure type</td>\n <td>\t{{ selectedPaymentsStatus.failure_type }}</td>\n </tr>\n <tr class=\"section\">\n <td class=\"bold\">Failure event date and time</td>\n <td> {{ selectedPaymentsStatus.failure_event_date_time | date:'dd MMM yyyy HH:mm:ss' }}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.has_amount_debited\">\n <td class=\"bold\">Has disputed amount debited</td>\n <td>\t{{selectedPaymentsStatus.has_amount_debited}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_status\">\n <td class=\"bold\">Status following representation of payment</td>\n <td>\t{{(selectedPaymentsStatus.representment_status === 'Yes' || selectedPaymentsStatus.representment_status === 'yes') ? 'Success' : 'Failure'}}</td>\n </tr>\n <tr class=\"section\" *ngIf=\"selectedPaymentsStatus.representment_date\">\n <td class=\"bold\">Date payment represented</td>\n <td>\t{{selectedPaymentsStatus.representment_date | date:'dd MMM yyyy HH:mm:ss'}}</td>\n </tr>\n </tbody>\n </table>\n\n <div>\n </div>\n </div>\n</ng-container>\n",
|
|
538
|
-
styles: [".tb-col-w{width:330px}.tr-border{border-bottom:2px solid}.payment-view-alignment{margin-left:30px}.govuk-button{font-size:19px;float:left;margin-top:2em}.remission{margin-bottom:7em}.govuk-error-summary__title{font-size:24px!important}.govuk-table__cell,.govuk-table__header{padding:0;line-height:1.3;vertical-align:middle}.govuk-table__row{line-height:1.3}.govuk-table__cell:last-child{text-align:right}.text-transform::first-letter{text-transform:capitalize}.govuk-link{cursor:pointer}.mar-17{font-size:19px!important}.payment-failure-alignment{margin-bottom:50px!important;margin-left:15px!important}"]
|
|
539
|
-
}] }
|
|
540
|
-
];
|
|
541
|
-
/** @nocollapse */
|
|
542
|
-
PaymentViewComponent.ctorParameters = function () { return [
|
|
543
|
-
{ type: PaymentViewService },
|
|
544
|
-
{ type: PaymentLibComponent },
|
|
545
|
-
{ type: ChangeDetectorRef },
|
|
546
|
-
{ type: OrderslistService }
|
|
547
|
-
]; };
|
|
548
|
-
PaymentViewComponent.propDecorators = {
|
|
549
|
-
isTurnOff: [{ type: Input }],
|
|
550
|
-
isTakePayment: [{ type: Input }],
|
|
551
|
-
caseType: [{ type: Input }],
|
|
552
|
-
orderRef: [{ type: Input }],
|
|
553
|
-
orderStatus: [{ type: Input }],
|
|
554
|
-
orderTotalPayments: [{ type: Input }],
|
|
555
|
-
payment: [{ type: Input }],
|
|
556
|
-
LOGGEDINUSERROLES: [{ type: Input }],
|
|
557
|
-
ISPAYMENTSTATUSENABLED: [{ type: Input }],
|
|
558
|
-
orderParty: [{ type: Input }],
|
|
559
|
-
orderCreated: [{ type: Input }],
|
|
560
|
-
orderCCDEvent: [{ type: Input }],
|
|
561
|
-
orderFeesTotal: [{ type: Input }],
|
|
562
|
-
orderRemissionTotal: [{ type: Input }],
|
|
563
|
-
orderDetail: [{ type: Input }],
|
|
564
|
-
isServiceRequest: [{ type: Input, args: ["isServiceRequest",] }]
|
|
565
|
-
};
|
|
566
|
-
return PaymentViewComponent;
|
|
567
|
-
}());
|
|
568
|
-
export { PaymentViewComponent };
|
|
569
|
-
if (false) {
|
|
570
|
-
/** @type {?} */
|
|
571
|
-
PaymentViewComponent.prototype.isTurnOff;
|
|
572
|
-
/** @type {?} */
|
|
573
|
-
PaymentViewComponent.prototype.isTakePayment;
|
|
574
|
-
/** @type {?} */
|
|
575
|
-
PaymentViewComponent.prototype.caseType;
|
|
576
|
-
/** @type {?} */
|
|
577
|
-
PaymentViewComponent.prototype.orderRef;
|
|
578
|
-
/** @type {?} */
|
|
579
|
-
PaymentViewComponent.prototype.orderStatus;
|
|
580
|
-
/** @type {?} */
|
|
581
|
-
PaymentViewComponent.prototype.orderTotalPayments;
|
|
582
|
-
/** @type {?} */
|
|
583
|
-
PaymentViewComponent.prototype.payment;
|
|
584
|
-
/** @type {?} */
|
|
585
|
-
PaymentViewComponent.prototype.LOGGEDINUSERROLES;
|
|
586
|
-
/** @type {?} */
|
|
587
|
-
PaymentViewComponent.prototype.ISPAYMENTSTATUSENABLED;
|
|
588
|
-
/** @type {?} */
|
|
589
|
-
PaymentViewComponent.prototype.orderParty;
|
|
590
|
-
/** @type {?} */
|
|
591
|
-
PaymentViewComponent.prototype.orderCreated;
|
|
592
|
-
/** @type {?} */
|
|
593
|
-
PaymentViewComponent.prototype.orderCCDEvent;
|
|
594
|
-
/** @type {?} */
|
|
595
|
-
PaymentViewComponent.prototype.orderFeesTotal;
|
|
596
|
-
/** @type {?} */
|
|
597
|
-
PaymentViewComponent.prototype.orderRemissionTotal;
|
|
598
|
-
/** @type {?} */
|
|
599
|
-
PaymentViewComponent.prototype.orderDetail;
|
|
600
|
-
/** @type {?} */
|
|
601
|
-
PaymentViewComponent.prototype.isServiceRequest;
|
|
602
|
-
/** @type {?} */
|
|
603
|
-
PaymentViewComponent.prototype.errorMsg;
|
|
604
|
-
/** @type {?} */
|
|
605
|
-
PaymentViewComponent.prototype.paymentGroup;
|
|
606
|
-
/** @type {?} */
|
|
607
|
-
PaymentViewComponent.prototype.errorMessage;
|
|
608
|
-
/** @type {?} */
|
|
609
|
-
PaymentViewComponent.prototype.ccdCaseNumber;
|
|
610
|
-
/** @type {?} */
|
|
611
|
-
PaymentViewComponent.prototype.selectedOption;
|
|
612
|
-
/** @type {?} */
|
|
613
|
-
PaymentViewComponent.prototype.dcnNumber;
|
|
614
|
-
/** @type {?} */
|
|
615
|
-
PaymentViewComponent.prototype.isStatusAllocated;
|
|
616
|
-
/** @type {?} */
|
|
617
|
-
PaymentViewComponent.prototype.isRemissionsMatch;
|
|
618
|
-
/** @type {?} */
|
|
619
|
-
PaymentViewComponent.prototype.feeId;
|
|
620
|
-
/** @type {?} */
|
|
621
|
-
PaymentViewComponent.prototype.viewStatus;
|
|
622
|
-
/** @type {?} */
|
|
623
|
-
PaymentViewComponent.prototype.isRefundRemission;
|
|
624
|
-
/** @type {?} */
|
|
625
|
-
PaymentViewComponent.prototype.isStrategicFixEnable;
|
|
626
|
-
/** @type {?} */
|
|
627
|
-
PaymentViewComponent.prototype.isAddFeeBtnEnabled;
|
|
628
|
-
/** @type {?} */
|
|
629
|
-
PaymentViewComponent.prototype.isIssueRefunfBtnEnable;
|
|
630
|
-
/** @type {?} */
|
|
631
|
-
PaymentViewComponent.prototype.allowedRolesToAccessRefund;
|
|
632
|
-
/** @type {?} */
|
|
633
|
-
PaymentViewComponent.prototype.remissions;
|
|
634
|
-
/** @type {?} */
|
|
635
|
-
PaymentViewComponent.prototype.allPaymentsFailure;
|
|
636
|
-
/** @type {?} */
|
|
637
|
-
PaymentViewComponent.prototype.selectedPaymentsStatus;
|
|
638
|
-
/** @type {?} */
|
|
639
|
-
PaymentViewComponent.prototype.remissionFeeAmt;
|
|
640
|
-
/** @type {?} */
|
|
641
|
-
PaymentViewComponent.prototype.isRefundRemissionBtnEnable;
|
|
642
|
-
/** @type {?} */
|
|
643
|
-
PaymentViewComponent.prototype.serviceReference;
|
|
644
|
-
/** @type {?} */
|
|
645
|
-
PaymentViewComponent.prototype.isFromServiceRequestPage;
|
|
646
|
-
/** @type {?} */
|
|
647
|
-
PaymentViewComponent.prototype.isFromPaymentDetailPage;
|
|
648
|
-
/** @type {?} */
|
|
649
|
-
PaymentViewComponent.prototype.check4AllowedRoles2AccessRefund;
|
|
650
|
-
/** @type {?} */
|
|
651
|
-
PaymentViewComponent.prototype.allowFurtherAccessAfter4Days;
|
|
652
|
-
/**
|
|
653
|
-
* @type {?}
|
|
654
|
-
* @private
|
|
655
|
-
*/
|
|
656
|
-
PaymentViewComponent.prototype.paymentViewService;
|
|
657
|
-
/**
|
|
658
|
-
* @type {?}
|
|
659
|
-
* @private
|
|
660
|
-
*/
|
|
661
|
-
PaymentViewComponent.prototype.paymentLibComponent;
|
|
662
|
-
/**
|
|
663
|
-
* @type {?}
|
|
664
|
-
* @private
|
|
665
|
-
*/
|
|
666
|
-
PaymentViewComponent.prototype.cd;
|
|
667
|
-
/**
|
|
668
|
-
* @type {?}
|
|
669
|
-
* @private
|
|
670
|
-
*/
|
|
671
|
-
PaymentViewComponent.prototype.OrderslistService;
|
|
672
|
-
}
|
|
673
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9jY3BheS13ZWItY29tcG9uZW50LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvcGF5bWVudC12aWV3L3BheW1lbnQtdm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lciA9IHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5EQ05fTlVNQkVSO1xuICAgIHRoaXMuaXNUdXJuT2ZmID0gdGhpcy5wYXltZW50TGliQ29tcG9uZW50LklTVFVSTk9GRjtcbiAgICB0aGlzLnNlcnZpY2VSZWZlcmVuY2UgPSB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQucGF5bWVudEdyb3VwUmVmZXJlbmNlO1xuICAgIHRoaXMudmlld1N0YXR1cyA9ICdwYXltZW50dmlldyc7XG4gICAgdGhpcy5wYXltZW50Vmlld1NlcnZpY2UuZ2V0QXBwb3J0aW9uUGF5bWVudERldGFpbHModGhpcy5wYXltZW50TGliQ29tcG9uZW50LnBheW1lbnRSZWZlcmVuY2UpLnN1YnNjcmliZShcbiAgICAgIHBheW1lbnRHcm91cCA9PiB7XG4gICAgICAgIGxldCBmZWVzID0gW107XG4gICAgICAgIHBheW1lbnRHcm91cC5mZWVzLmZvckVhY2goZmVlID0+IHtcbiAgICAgICAgICB0aGlzLmlzUmVtaXNzaW9uc01hdGNoID0gZmFsc2U7XG5cbiAgICAgICAgICBwYXltZW50R3JvdXAucmVtaXNzaW9ucy5mb3JFYWNoKHJlbSA9PiB7XG4gICAgICAgICAgICBpZiAocmVtLmZlZV9jb2RlID09PSBmZWUuY29kZSkge1xuICAgICAgICAgICAgICB0aGlzLmlzUmVtaXNzaW9uc01hdGNoID0gdHJ1ZTtcbiAgICAgICAgICAgICAgZmVlWydyZW1pc3Npb25zJ10gPSByZW07XG4gICAgICAgICAgICAgIGZlZXMucHVzaChmZWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGlmICghdGhpcy5pc1JlbWlzc2lvbnNNYXRjaCkge1xuICAgICAgICAgICAgZmVlcy5wdXNoKGZlZSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgcGF5bWVudEdyb3VwLmZlZXMgPSBmZWVzXG4gICAgICAgIHRoaXMucGF5bWVud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