@hmcts/ccpay-web-component 5.2.10 → 6.0.0-beta01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/hmcts-ccpay-web-component.mjs +5 -0
- package/esm2022/lib/components/add-remission/add-remission.component.mjs +1189 -0
- package/esm2022/lib/components/allocate-payments/allocate-payments.component.mjs +407 -0
- package/esm2022/lib/components/card-details/card-details.component.mjs +32 -0
- package/esm2022/lib/components/case-transactions/case-transactions.component.mjs +794 -0
- package/esm2022/lib/components/contact-details/contact-details.component.mjs +338 -0
- package/esm2022/lib/components/error-banner/error-banner.component.mjs +18 -0
- package/esm2022/lib/components/fee-summary/fee-summary.component.mjs +247 -0
- package/esm2022/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.mjs +195 -0
- package/esm2022/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.mjs +255 -0
- package/esm2022/lib/components/notification-preview/notification-preview.component.mjs +79 -0
- package/esm2022/lib/components/page-not-found.component.mjs +17 -0
- package/esm2022/lib/components/payment-list/payment-list.component.mjs +36 -0
- package/esm2022/lib/components/payment-view/payment-view.component.mjs +416 -0
- package/esm2022/lib/components/pba-details/pba-details.component.mjs +18 -0
- package/esm2022/lib/components/pba-payment/pba-payment.component.mjs +151 -0
- package/esm2022/lib/components/process-refund/process-refund.component.mjs +417 -0
- package/esm2022/lib/components/processed-payments/processed-payments.component.mjs +37 -0
- package/esm2022/lib/components/refund-list/refund-list.component.mjs +73 -0
- package/esm2022/lib/components/refund-status/refund-status.component.mjs +453 -0
- package/esm2022/lib/components/reports/reports.component.mjs +291 -0
- package/esm2022/lib/components/service-request/service-request.component.mjs +456 -0
- package/esm2022/lib/components/status-history/status-history.component.mjs +33 -0
- package/esm2022/lib/components/table/table.component.mjs +128 -0
- package/esm2022/lib/components/unprocessed-payments/unprocessed-payments.component.mjs +236 -0
- package/esm2022/lib/interfaces/AddRemissionRequest.mjs +17 -0
- package/esm2022/lib/interfaces/AddRetroRemissionRequest.mjs +9 -0
- package/esm2022/lib/interfaces/AllocatePaymentRequest.mjs +41 -0
- package/esm2022/lib/interfaces/IAllocationPaymentsRequest.mjs +20 -0
- package/esm2022/lib/interfaces/IPaymentStatus.mjs +12 -0
- package/esm2022/lib/interfaces/IPutNotificationRequest.mjs +13 -0
- package/esm2022/lib/interfaces/IResubmitRefundRequest.mjs +13 -0
- package/esm2022/lib/interfaces/IserviceRequestCardPayment.mjs +11 -0
- package/esm2022/lib/interfaces/IserviceRequestPbaPayment.mjs +15 -0
- package/esm2022/lib/interfaces/IssueRefundRequest.mjs +11 -0
- package/esm2022/lib/interfaces/NotificationPreviewRequest.mjs +45 -0
- package/esm2022/lib/interfaces/PayhubAntennaRequest.mjs +12 -0
- package/esm2022/lib/interfaces/PaymentToPayhubRequest.mjs +15 -0
- package/esm2022/lib/interfaces/PostIssueRefundRetroRemission.mjs +9 -0
- package/esm2022/lib/interfaces/PostRefundRetroRemission.mjs +18 -0
- package/esm2022/lib/interfaces/RefundsRequest.mjs +9 -0
- package/esm2022/lib/interfaces/UnidentifiedPaymentsRequest.mjs +16 -0
- package/esm2022/lib/interfaces/UnsolicitedPaymentsRequest.mjs +22 -0
- package/esm2022/lib/payment-lib.component.mjs +288 -0
- package/esm2022/lib/payment-lib.module.mjs +187 -0
- package/esm2022/lib/payment-lib.service.mjs +49 -0
- package/esm2022/lib/pipes/capitalize.pipe.mjs +18 -0
- package/esm2022/lib/pipes/ccd-hyphens.pipe.mjs +22 -0
- package/esm2022/lib/pipes/key-value.pipe.mjs +23 -0
- package/esm2022/lib/pipes/sanitize-html.pipe.mjs +20 -0
- package/esm2022/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.mjs +87 -0
- package/esm2022/lib/services/card-details/card-details.service.mjs +39 -0
- package/esm2022/lib/services/case-transactions/case-transactions.service.mjs +39 -0
- package/esm2022/lib/services/notification/notification.service.mjs +70 -0
- package/esm2022/lib/services/orderslist.service.mjs +154 -0
- package/esm2022/lib/services/payment-list/payment-list.service.mjs +40 -0
- package/esm2022/lib/services/payment-view/payment-view.service.mjs +152 -0
- package/esm2022/lib/services/refunds/refunds.service.mjs +117 -0
- package/{esm2015/lib/services/shared/error-handler.service.js → esm2022/lib/services/shared/error-handler.service.mjs} +9 -8
- package/esm2022/lib/services/shared/httpclient/webcomponent.http.client.mjs +64 -0
- package/esm2022/lib/services/shared/logger/console-logger.service.mjs +43 -0
- package/esm2022/lib/services/shared/logger/logger.service.mjs +23 -0
- package/esm2022/lib/services/status-history/status-history.service.mjs +41 -0
- package/esm2022/lib/services/xl-file/xl-file.service.mjs +153 -0
- package/fesm2022/hmcts-ccpay-web-component.mjs +7870 -0
- package/fesm2022/hmcts-ccpay-web-component.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/add-remission/add-remission.component.d.ts +5 -3
- package/lib/components/allocate-payments/allocate-payments.component.d.ts +5 -7
- package/lib/components/card-details/card-details.component.d.ts +3 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +4 -2
- package/lib/components/contact-details/contact-details.component.d.ts +4 -2
- package/lib/components/error-banner/error-banner.component.d.ts +3 -1
- package/lib/components/fee-summary/fee-summary.component.d.ts +4 -2
- package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.d.ts +4 -2
- package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.d.ts +4 -2
- package/lib/components/notification-preview/notification-preview.component.d.ts +4 -6
- package/lib/components/page-not-found.component.d.ts +3 -1
- package/lib/components/payment-list/payment-list.component.d.ts +4 -2
- package/lib/components/payment-view/payment-view.component.d.ts +4 -2
- package/lib/components/pba-details/pba-details.component.d.ts +3 -1
- package/lib/components/pba-payment/pba-payment.component.d.ts +4 -2
- package/lib/components/process-refund/process-refund.component.d.ts +4 -2
- package/lib/components/processed-payments/processed-payments.component.d.ts +3 -1
- package/lib/components/refund-list/refund-list.component.d.ts +3 -1
- package/lib/components/refund-status/refund-status.component.d.ts +4 -2
- package/lib/components/reports/reports.component.d.ts +4 -6
- package/lib/components/service-request/service-request.component.d.ts +4 -2
- package/lib/components/status-history/status-history.component.d.ts +4 -2
- package/lib/components/table/table.component.d.ts +4 -2
- package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts +4 -2
- package/lib/interfaces/AddRemissionRequest.d.ts +0 -1
- package/lib/interfaces/AddRetroRemissionRequest.d.ts +0 -1
- package/lib/interfaces/AllocatePaymentRequest.d.ts +0 -1
- package/lib/interfaces/IAllocationPaymentsRequest.d.ts +0 -1
- package/lib/interfaces/IBSPayments.d.ts +0 -1
- package/lib/interfaces/ICardDetails.d.ts +0 -1
- package/lib/interfaces/IFee.d.ts +0 -1
- package/lib/interfaces/INotificationPreview.d.ts +0 -1
- package/lib/interfaces/IOrderReferenceFee.d.ts +0 -1
- package/lib/interfaces/IPatchRefundAction.d.ts +0 -1
- package/lib/interfaces/IPayment.d.ts +0 -1
- package/lib/interfaces/IPaymentFailure.d.ts +0 -1
- package/lib/interfaces/IPaymentGroup.d.ts +0 -1
- package/lib/interfaces/IPaymentStatus.d.ts +0 -1
- package/lib/interfaces/IPaymentView.d.ts +0 -1
- package/lib/interfaces/IPayments.d.ts +0 -1
- package/lib/interfaces/IPutNotificationRequest.d.ts +0 -1
- package/lib/interfaces/IRefundAction.d.ts +0 -1
- package/lib/interfaces/IRefundContactDetails.d.ts +0 -1
- package/lib/interfaces/IRefundFee.d.ts +0 -1
- package/lib/interfaces/IRefundList.d.ts +0 -1
- package/lib/interfaces/IRefundReasons.d.ts +0 -1
- package/lib/interfaces/IRefundRejectReason.d.ts +0 -1
- package/lib/interfaces/IRefundStatus.d.ts +0 -1
- package/lib/interfaces/IRefundStatusHistory.d.ts +0 -1
- package/lib/interfaces/IRefundsNotifications.d.ts +0 -1
- package/lib/interfaces/IRemission.d.ts +0 -1
- package/lib/interfaces/IResubmitRefundRequest.d.ts +0 -1
- package/lib/interfaces/IStatusHistories.d.ts +0 -1
- package/lib/interfaces/IStatusHistory.d.ts +0 -1
- package/lib/interfaces/IserviceRequestCardPayment.d.ts +0 -1
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts +0 -1
- package/lib/interfaces/IssueRefundRequest.d.ts +0 -1
- package/lib/interfaces/NotificationPreviewRequest.d.ts +0 -1
- package/lib/interfaces/PayhubAntennaRequest.d.ts +0 -1
- package/lib/interfaces/PaymentToPayhubRequest.d.ts +0 -1
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +0 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts +0 -1
- package/lib/interfaces/RefundsRequest.d.ts +0 -1
- package/lib/interfaces/UnidentifiedPaymentsRequest.d.ts +0 -1
- package/lib/interfaces/UnsolicitedPaymentsRequest.d.ts +0 -1
- package/lib/payment-lib.component.d.ts +3 -1
- package/lib/payment-lib.module.d.ts +40 -1
- package/lib/payment-lib.service.d.ts +3 -1
- package/lib/pipes/capitalize.pipe.d.ts +3 -1
- package/lib/pipes/ccd-hyphens.pipe.d.ts +3 -1
- package/lib/pipes/key-value.pipe.d.ts +3 -1
- package/lib/pipes/sanitize-html.pipe.d.ts +3 -1
- package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.d.ts +4 -2
- package/lib/services/card-details/card-details.service.d.ts +3 -1
- package/lib/services/case-transactions/case-transactions.service.d.ts +4 -2
- package/lib/services/notification/notification.service.d.ts +4 -2
- package/lib/services/orderslist.service.d.ts +3 -1
- package/lib/services/payment-list/payment-list.service.d.ts +3 -1
- package/lib/services/payment-view/payment-view.service.d.ts +3 -1
- package/lib/services/refunds/refunds.service.d.ts +4 -2
- package/lib/services/shared/error-handler.service.d.ts +3 -1
- package/lib/services/shared/httpclient/webcomponent.http.client.d.ts +3 -1
- package/lib/services/shared/logger/console-logger.service.d.ts +3 -1
- package/lib/services/shared/logger/logger.service.d.ts +3 -1
- package/lib/services/status-history/status-history.service.d.ts +3 -1
- package/lib/services/xl-file/xl-file.service.d.ts +3 -1
- package/package.json +17 -11
- package/public_api.d.ts +0 -1
- package/bundles/hmcts-ccpay-web-component.umd.js +0 -7537
- package/bundles/hmcts-ccpay-web-component.umd.js.map +0 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +0 -2
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +0 -1
- package/esm2015/hmcts-ccpay-web-component.js +0 -47
- package/esm2015/lib/components/add-remission/add-remission.component.js +0 -1045
- package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +0 -381
- package/esm2015/lib/components/card-details/card-details.component.js +0 -28
- package/esm2015/lib/components/case-transactions/case-transactions.component.js +0 -731
- package/esm2015/lib/components/contact-details/contact-details.component.js +0 -315
- package/esm2015/lib/components/error-banner/error-banner.component.js +0 -18
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +0 -223
- package/esm2015/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.js +0 -184
- package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js +0 -238
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +0 -59
- package/esm2015/lib/components/page-not-found.component.js +0 -11
- package/esm2015/lib/components/payment-list/payment-list.component.js +0 -31
- package/esm2015/lib/components/payment-view/payment-view.component.js +0 -335
- package/esm2015/lib/components/pba-details/pba-details.component.js +0 -18
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +0 -144
- package/esm2015/lib/components/process-refund/process-refund.component.js +0 -398
- package/esm2015/lib/components/processed-payments/processed-payments.component.js +0 -34
- package/esm2015/lib/components/refund-list/refund-list.component.js +0 -59
- package/esm2015/lib/components/refund-status/refund-status.component.js +0 -399
- package/esm2015/lib/components/reports/reports.component.js +0 -280
- package/esm2015/lib/components/service-request/service-request.component.js +0 -339
- package/esm2015/lib/components/status-history/status-history.component.js +0 -28
- package/esm2015/lib/components/table/table.component.js +0 -99
- package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +0 -197
- package/esm2015/lib/interfaces/AddRemissionRequest.js +0 -10
- package/esm2015/lib/interfaces/AddRetroRemissionRequest.js +0 -7
- package/esm2015/lib/interfaces/AllocatePaymentRequest.js +0 -27
- package/esm2015/lib/interfaces/IAllocationPaymentsRequest.js +0 -14
- package/esm2015/lib/interfaces/IPaymentStatus.js +0 -3
- package/esm2015/lib/interfaces/IPutNotificationRequest.js +0 -11
- package/esm2015/lib/interfaces/IResubmitRefundRequest.js +0 -9
- package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +0 -8
- package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +0 -10
- package/esm2015/lib/interfaces/IssueRefundRequest.js +0 -8
- package/esm2015/lib/interfaces/NotificationPreviewRequest.js +0 -37
- package/esm2015/lib/interfaces/PayhubAntennaRequest.js +0 -9
- package/esm2015/lib/interfaces/PaymentToPayhubRequest.js +0 -12
- package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +0 -7
- package/esm2015/lib/interfaces/PostRefundRetroRemission.js +0 -11
- package/esm2015/lib/interfaces/RefundsRequest.js +0 -7
- package/esm2015/lib/interfaces/UnidentifiedPaymentsRequest.js +0 -12
- package/esm2015/lib/interfaces/UnsolicitedPaymentsRequest.js +0 -15
- package/esm2015/lib/payment-lib.component.js +0 -132
- package/esm2015/lib/payment-lib.module.js +0 -99
- package/esm2015/lib/payment-lib.service.js +0 -43
- package/esm2015/lib/pipes/capitalize.pipe.js +0 -14
- package/esm2015/lib/pipes/ccd-hyphens.pipe.js +0 -18
- package/esm2015/lib/pipes/key-value.pipe.js +0 -20
- package/esm2015/lib/pipes/sanitize-html.pipe.js +0 -17
- package/esm2015/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.js +0 -87
- package/esm2015/lib/services/card-details/card-details.service.js +0 -39
- package/esm2015/lib/services/case-transactions/case-transactions.service.js +0 -39
- package/esm2015/lib/services/notification/notification.service.js +0 -70
- package/esm2015/lib/services/orderslist.service.js +0 -154
- package/esm2015/lib/services/payment-list/payment-list.service.js +0 -39
- package/esm2015/lib/services/payment-view/payment-view.service.js +0 -150
- package/esm2015/lib/services/refunds/refunds.service.js +0 -117
- package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +0 -61
- package/esm2015/lib/services/shared/logger/console-logger.service.js +0 -43
- package/esm2015/lib/services/shared/logger/logger.service.js +0 -17
- package/esm2015/lib/services/status-history/status-history.service.js +0 -41
- package/esm2015/lib/services/xl-file/xl-file.service.js +0 -151
- package/fesm2015/hmcts-ccpay-web-component.js +0 -6968
- package/fesm2015/hmcts-ccpay-web-component.js.map +0 -1
- package/hmcts-ccpay-web-component.d.ts +0 -47
- package/hmcts-ccpay-web-component.d.ts.map +0 -1
- package/hmcts-ccpay-web-component.metadata.json +0 -1
- package/lib/components/add-remission/add-remission.component.d.ts.map +0 -1
- package/lib/components/add-remission/add-remission.component.ngfactory.d.ts.map +0 -1
- package/lib/components/add-remission/add-remission.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/allocate-payments/allocate-payments.component.d.ts.map +0 -1
- package/lib/components/allocate-payments/allocate-payments.component.ngfactory.d.ts.map +0 -1
- package/lib/components/allocate-payments/allocate-payments.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/card-details/card-details.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/card-details/card-details.component.d.ts.map +0 -1
- package/lib/components/card-details/card-details.component.ngfactory.d.ts.map +0 -1
- package/lib/components/case-transactions/case-transactions.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts.map +0 -1
- package/lib/components/case-transactions/case-transactions.component.ngfactory.d.ts.map +0 -1
- package/lib/components/contact-details/contact-details.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/contact-details/contact-details.component.d.ts.map +0 -1
- package/lib/components/contact-details/contact-details.component.ngfactory.d.ts.map +0 -1
- package/lib/components/error-banner/error-banner.component.d.ts.map +0 -1
- package/lib/components/error-banner/error-banner.component.ngfactory.d.ts.map +0 -1
- package/lib/components/error-banner/error-banner.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/fee-summary/fee-summary.component.d.ts.map +0 -1
- package/lib/components/fee-summary/fee-summary.component.ngfactory.d.ts.map +0 -1
- package/lib/components/fee-summary/fee-summary.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.d.ts.map +0 -1
- package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.ngfactory.d.ts.map +0 -1
- package/lib/components/mark-unidentified-payment/mark-unidentified-payment.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.d.ts.map +0 -1
- package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.ngfactory.d.ts.map +0 -1
- package/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/notification-preview/notification-preview.component.d.ts.map +0 -1
- package/lib/components/notification-preview/notification-preview.component.ngfactory.d.ts.map +0 -1
- package/lib/components/notification-preview/notification-preview.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/page-not-found.component.d.ts.map +0 -1
- package/lib/components/page-not-found.component.ngfactory.d.ts.map +0 -1
- package/lib/components/payment-list/payment-list.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/payment-list/payment-list.component.d.ts.map +0 -1
- package/lib/components/payment-list/payment-list.component.ngfactory.d.ts.map +0 -1
- package/lib/components/payment-view/payment-view.component.d.ts.map +0 -1
- package/lib/components/payment-view/payment-view.component.ngfactory.d.ts.map +0 -1
- package/lib/components/payment-view/payment-view.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/pba-details/pba-details.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/pba-details/pba-details.component.d.ts.map +0 -1
- package/lib/components/pba-details/pba-details.component.ngfactory.d.ts.map +0 -1
- package/lib/components/pba-payment/pba-payment.component.d.ts.map +0 -1
- package/lib/components/pba-payment/pba-payment.component.ngfactory.d.ts.map +0 -1
- package/lib/components/pba-payment/pba-payment.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/process-refund/process-refund.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/process-refund/process-refund.component.d.ts.map +0 -1
- package/lib/components/process-refund/process-refund.component.ngfactory.d.ts.map +0 -1
- package/lib/components/processed-payments/processed-payments.component.d.ts.map +0 -1
- package/lib/components/processed-payments/processed-payments.component.ngfactory.d.ts.map +0 -1
- package/lib/components/processed-payments/processed-payments.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/refund-list/refund-list.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/refund-list/refund-list.component.d.ts.map +0 -1
- package/lib/components/refund-list/refund-list.component.ngfactory.d.ts.map +0 -1
- package/lib/components/refund-status/refund-status.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/refund-status/refund-status.component.d.ts.map +0 -1
- package/lib/components/refund-status/refund-status.component.ngfactory.d.ts.map +0 -1
- package/lib/components/reports/reports.component.d.ts.map +0 -1
- package/lib/components/reports/reports.component.ngfactory.d.ts.map +0 -1
- package/lib/components/reports/reports.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/service-request/service-request.component.d.ts.map +0 -1
- package/lib/components/service-request/service-request.component.ngfactory.d.ts.map +0 -1
- package/lib/components/service-request/service-request.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/status-history/status-history.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/status-history/status-history.component.d.ts.map +0 -1
- package/lib/components/status-history/status-history.component.ngfactory.d.ts.map +0 -1
- package/lib/components/table/table.component.css.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/table/table.component.d.ts.map +0 -1
- package/lib/components/table/table.component.ngfactory.d.ts.map +0 -1
- package/lib/components/unprocessed-payments/unprocessed-payments.component.d.ts.map +0 -1
- package/lib/components/unprocessed-payments/unprocessed-payments.component.ngfactory.d.ts.map +0 -1
- package/lib/components/unprocessed-payments/unprocessed-payments.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/interfaces/AddRemissionRequest.d.ts.map +0 -1
- package/lib/interfaces/AddRetroRemissionRequest.d.ts.map +0 -1
- package/lib/interfaces/AllocatePaymentRequest.d.ts.map +0 -1
- package/lib/interfaces/IAllocationPaymentsRequest.d.ts.map +0 -1
- package/lib/interfaces/IBSPayments.d.ts.map +0 -1
- package/lib/interfaces/ICardDetails.d.ts.map +0 -1
- package/lib/interfaces/IFee.d.ts.map +0 -1
- package/lib/interfaces/INotificationPreview.d.ts.map +0 -1
- package/lib/interfaces/IOrderReferenceFee.d.ts.map +0 -1
- package/lib/interfaces/IPatchRefundAction.d.ts.map +0 -1
- package/lib/interfaces/IPayment.d.ts.map +0 -1
- package/lib/interfaces/IPaymentFailure.d.ts.map +0 -1
- package/lib/interfaces/IPaymentGroup.d.ts.map +0 -1
- package/lib/interfaces/IPaymentStatus.d.ts.map +0 -1
- package/lib/interfaces/IPaymentView.d.ts.map +0 -1
- package/lib/interfaces/IPayments.d.ts.map +0 -1
- package/lib/interfaces/IPutNotificationRequest.d.ts.map +0 -1
- package/lib/interfaces/IRefundAction.d.ts.map +0 -1
- package/lib/interfaces/IRefundContactDetails.d.ts.map +0 -1
- package/lib/interfaces/IRefundFee.d.ts.map +0 -1
- package/lib/interfaces/IRefundList.d.ts.map +0 -1
- package/lib/interfaces/IRefundReasons.d.ts.map +0 -1
- package/lib/interfaces/IRefundRejectReason.d.ts.map +0 -1
- package/lib/interfaces/IRefundStatus.d.ts.map +0 -1
- package/lib/interfaces/IRefundStatusHistory.d.ts.map +0 -1
- package/lib/interfaces/IRefundsNotifications.d.ts.map +0 -1
- package/lib/interfaces/IRemission.d.ts.map +0 -1
- package/lib/interfaces/IResubmitRefundRequest.d.ts.map +0 -1
- package/lib/interfaces/IStatusHistories.d.ts.map +0 -1
- package/lib/interfaces/IStatusHistory.d.ts.map +0 -1
- package/lib/interfaces/IserviceRequestCardPayment.d.ts.map +0 -1
- package/lib/interfaces/IserviceRequestPbaPayment.d.ts.map +0 -1
- package/lib/interfaces/IssueRefundRequest.d.ts.map +0 -1
- package/lib/interfaces/NotificationPreviewRequest.d.ts.map +0 -1
- package/lib/interfaces/PayhubAntennaRequest.d.ts.map +0 -1
- package/lib/interfaces/PaymentToPayhubRequest.d.ts.map +0 -1
- package/lib/interfaces/PostIssueRefundRetroRemission.d.ts.map +0 -1
- package/lib/interfaces/PostRefundRetroRemission.d.ts.map +0 -1
- package/lib/interfaces/RefundsRequest.d.ts.map +0 -1
- package/lib/interfaces/UnidentifiedPaymentsRequest.d.ts.map +0 -1
- package/lib/interfaces/UnsolicitedPaymentsRequest.d.ts.map +0 -1
- package/lib/payment-lib.component.d.ts.map +0 -1
- package/lib/payment-lib.component.ngfactory.d.ts.map +0 -1
- package/lib/payment-lib.module.d.ts.map +0 -1
- package/lib/payment-lib.module.ngfactory.d.ts.map +0 -1
- package/lib/payment-lib.service.d.ts.map +0 -1
- package/lib/payment-lib.service.ngfactory.d.ts.map +0 -1
- package/lib/pipes/capitalize.pipe.d.ts.map +0 -1
- package/lib/pipes/capitalize.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/ccd-hyphens.pipe.d.ts.map +0 -1
- package/lib/pipes/ccd-hyphens.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/key-value.pipe.d.ts.map +0 -1
- package/lib/pipes/key-value.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/sanitize-html.pipe.d.ts.map +0 -1
- package/lib/pipes/sanitize-html.pipe.ngfactory.d.ts.map +0 -1
- package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.d.ts.map +0 -1
- package/lib/services/bulk-scaning-payment/bulk-scaning-payment.service.ngfactory.d.ts.map +0 -1
- package/lib/services/card-details/card-details.service.d.ts.map +0 -1
- package/lib/services/card-details/card-details.service.ngfactory.d.ts.map +0 -1
- package/lib/services/case-transactions/case-transactions.service.d.ts.map +0 -1
- package/lib/services/case-transactions/case-transactions.service.ngfactory.d.ts.map +0 -1
- package/lib/services/notification/notification.service.d.ts.map +0 -1
- package/lib/services/notification/notification.service.ngfactory.d.ts.map +0 -1
- package/lib/services/orderslist.service.d.ts.map +0 -1
- package/lib/services/orderslist.service.ngfactory.d.ts.map +0 -1
- package/lib/services/payment-list/payment-list.service.d.ts.map +0 -1
- package/lib/services/payment-list/payment-list.service.ngfactory.d.ts.map +0 -1
- package/lib/services/payment-view/payment-view.service.d.ts.map +0 -1
- package/lib/services/payment-view/payment-view.service.ngfactory.d.ts.map +0 -1
- package/lib/services/refunds/refunds.service.d.ts.map +0 -1
- package/lib/services/refunds/refunds.service.ngfactory.d.ts.map +0 -1
- package/lib/services/shared/error-handler.service.d.ts.map +0 -1
- package/lib/services/shared/error-handler.service.ngfactory.d.ts.map +0 -1
- package/lib/services/shared/httpclient/webcomponent.http.client.d.ts.map +0 -1
- package/lib/services/shared/httpclient/webcomponent.http.client.ngfactory.d.ts.map +0 -1
- package/lib/services/shared/logger/console-logger.service.d.ts.map +0 -1
- package/lib/services/shared/logger/console-logger.service.ngfactory.d.ts.map +0 -1
- package/lib/services/shared/logger/logger.service.d.ts.map +0 -1
- package/lib/services/shared/logger/logger.service.ngfactory.d.ts.map +0 -1
- package/lib/services/status-history/status-history.service.d.ts.map +0 -1
- package/lib/services/status-history/status-history.service.ngfactory.d.ts.map +0 -1
- package/lib/services/xl-file/xl-file.service.d.ts.map +0 -1
- package/lib/services/xl-file/xl-file.service.ngfactory.d.ts.map +0 -1
- package/public_api.d.ts.map +0 -1
- /package/{esm2015/lib/interfaces/IBSPayments.js → esm2022/lib/interfaces/IBSPayments.mjs} +0 -0
- /package/{esm2015/lib/interfaces/ICardDetails.js → esm2022/lib/interfaces/ICardDetails.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IFee.js → esm2022/lib/interfaces/IFee.mjs} +0 -0
- /package/{esm2015/lib/interfaces/INotificationPreview.js → esm2022/lib/interfaces/INotificationPreview.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IOrderReferenceFee.js → esm2022/lib/interfaces/IOrderReferenceFee.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IPatchRefundAction.js → esm2022/lib/interfaces/IPatchRefundAction.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IPayment.js → esm2022/lib/interfaces/IPayment.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IPaymentFailure.js → esm2022/lib/interfaces/IPaymentFailure.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IPaymentGroup.js → esm2022/lib/interfaces/IPaymentGroup.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IPaymentView.js → esm2022/lib/interfaces/IPaymentView.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IPayments.js → esm2022/lib/interfaces/IPayments.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundAction.js → esm2022/lib/interfaces/IRefundAction.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundContactDetails.js → esm2022/lib/interfaces/IRefundContactDetails.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundFee.js → esm2022/lib/interfaces/IRefundFee.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundList.js → esm2022/lib/interfaces/IRefundList.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundReasons.js → esm2022/lib/interfaces/IRefundReasons.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundRejectReason.js → esm2022/lib/interfaces/IRefundRejectReason.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundStatus.js → esm2022/lib/interfaces/IRefundStatus.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundStatusHistory.js → esm2022/lib/interfaces/IRefundStatusHistory.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRefundsNotifications.js → esm2022/lib/interfaces/IRefundsNotifications.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IRemission.js → esm2022/lib/interfaces/IRemission.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IStatusHistories.js → esm2022/lib/interfaces/IStatusHistories.mjs} +0 -0
- /package/{esm2015/lib/interfaces/IStatusHistory.js → esm2022/lib/interfaces/IStatusHistory.mjs} +0 -0
- /package/{esm2015/public_api.js → esm2022/public_api.mjs} +0 -0
package/esm2015/lib/components/mark-unsolicited-payment/mark-unsolicited-payment.component.js
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { FormBuilder, Validators, FormControl } from '@angular/forms';
|
|
3
|
-
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
|
-
import { BulkScaningPaymentService } from '../../services/bulk-scaning-payment/bulk-scaning-payment.service';
|
|
5
|
-
import { UnsolicitedPaymentsRequest } from '../../interfaces/UnsolicitedPaymentsRequest';
|
|
6
|
-
import { PaymentViewService } from '../../services/payment-view/payment-view.service';
|
|
7
|
-
import { AllocatePaymentRequest } from '../../interfaces/AllocatePaymentRequest';
|
|
8
|
-
export class MarkUnsolicitedPaymentComponent {
|
|
9
|
-
constructor(formBuilder, paymentViewService, paymentLibComponent, bulkScaningPaymentService) {
|
|
10
|
-
this.formBuilder = formBuilder;
|
|
11
|
-
this.paymentViewService = paymentViewService;
|
|
12
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
13
|
-
this.bulkScaningPaymentService = bulkScaningPaymentService;
|
|
14
|
-
this.reasonHasError = false;
|
|
15
|
-
this.isReasonEmpty = false;
|
|
16
|
-
this.reasonMinHasError = false;
|
|
17
|
-
this.reasonMaxHasError = false;
|
|
18
|
-
this.responsibleOfficeHasError = false;
|
|
19
|
-
this.isResponsibleOfficeEmpty = false;
|
|
20
|
-
this.errorMessage = this.getErrorMessage(false);
|
|
21
|
-
this.siteID = null;
|
|
22
|
-
this.isConfirmButtondisabled = false;
|
|
23
|
-
this.isContinueButtondisabled = false;
|
|
24
|
-
this.ccdReference = null;
|
|
25
|
-
this.exceptionReference = null;
|
|
26
|
-
this.isStrategicFixEnable = true;
|
|
27
|
-
}
|
|
28
|
-
ngOnInit() {
|
|
29
|
-
this.resetForm([false, false, false, false, false, false], 'all');
|
|
30
|
-
this.viewStatus = 'mainForm';
|
|
31
|
-
this.ccdCaseNumber = this.paymentLibComponent.CCD_CASE_NUMBER;
|
|
32
|
-
this.bspaymentdcn = this.paymentLibComponent.bspaymentdcn;
|
|
33
|
-
this.isStrategicFixEnable = this.paymentLibComponent.ISSFENABLE;
|
|
34
|
-
this.getUnassignedPayment();
|
|
35
|
-
this.paymentViewService.getSiteID().subscribe(siteids => {
|
|
36
|
-
this.isContinueButtondisabled = false;
|
|
37
|
-
this.errorMessage = this.getErrorMessage(false);
|
|
38
|
-
this.siteIDList = JSON.parse(siteids);
|
|
39
|
-
}, err => {
|
|
40
|
-
window.scrollTo(0, 0);
|
|
41
|
-
this.isContinueButtondisabled = true;
|
|
42
|
-
this.errorMessage = this.getErrorMessage(true);
|
|
43
|
-
});
|
|
44
|
-
this.markPaymentUnsolicitedForm = this.formBuilder.group({
|
|
45
|
-
reason: new FormControl('', Validators.compose([
|
|
46
|
-
Validators.required,
|
|
47
|
-
Validators.minLength(3),
|
|
48
|
-
Validators.maxLength(255),
|
|
49
|
-
Validators.pattern('^([a-zA-Z0-9\\s,\\.]*)$')
|
|
50
|
-
])),
|
|
51
|
-
responsibleOffice: new FormControl('', Validators.compose([
|
|
52
|
-
Validators.required,
|
|
53
|
-
Validators.pattern('^([a-zA-Z0-9\\s\\n,\\.-:]*)$')
|
|
54
|
-
])),
|
|
55
|
-
responsiblePerson: new FormControl(''),
|
|
56
|
-
emailId: new FormControl('')
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
trimUnderscore(method) {
|
|
60
|
-
return this.bulkScaningPaymentService.removeUnwantedString(method, ' ');
|
|
61
|
-
}
|
|
62
|
-
confirmPayments() {
|
|
63
|
-
this.isConfirmButtondisabled = true;
|
|
64
|
-
const controls = this.markPaymentUnsolicitedForm.controls;
|
|
65
|
-
if (!this.isStrategicFixEnable) {
|
|
66
|
-
let allocatedRequest = {
|
|
67
|
-
allocation_status: 'Transferred',
|
|
68
|
-
payment_allocation_status: {
|
|
69
|
-
description: '',
|
|
70
|
-
name: 'Transferred'
|
|
71
|
-
},
|
|
72
|
-
unidentified_reason: controls.reason.value,
|
|
73
|
-
receiving_office: this.selectedSiteId,
|
|
74
|
-
user_id: this.caseType,
|
|
75
|
-
};
|
|
76
|
-
const postStrategicBody = new AllocatePaymentRequest(this.ccdReference, this.unassignedRecord, this.caseType, this.exceptionReference, allocatedRequest);
|
|
77
|
-
this.bulkScaningPaymentService.postBSWoPGStrategic(postStrategicBody).subscribe(res => {
|
|
78
|
-
this.errorMessage = this.getErrorMessage(false);
|
|
79
|
-
let response = JSON.parse(res);
|
|
80
|
-
if (response.success) {
|
|
81
|
-
this.gotoCasetransationPage();
|
|
82
|
-
}
|
|
83
|
-
}, (error) => {
|
|
84
|
-
this.errorMessage = this.getErrorMessage(true);
|
|
85
|
-
this.isConfirmButtondisabled = false;
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
// controls.responsibleOffice.setValue('P219');
|
|
90
|
-
this.bulkScaningPaymentService.patchBSChangeStatus(this.unassignedRecord.dcn_reference, 'PROCESSED').subscribe(res1 => {
|
|
91
|
-
this.errorMessage = this.getErrorMessage(false);
|
|
92
|
-
const response1 = JSON.parse(res1), requestBody = new AllocatePaymentRequest(this.ccdReference, this.unassignedRecord, this.siteID, this.exceptionReference);
|
|
93
|
-
this.paymentViewService.postBSPayments(requestBody).subscribe(res2 => {
|
|
94
|
-
this.errorMessage = this.getErrorMessage(false);
|
|
95
|
-
const response2 = JSON.parse(res2), reqBody = new UnsolicitedPaymentsRequest(response2['data'].payment_group_reference, response2['data'].reference, controls.reason.value, this.selectedSiteId, controls.responsiblePerson.value, controls.emailId.value);
|
|
96
|
-
if (response2.success) {
|
|
97
|
-
this.paymentViewService.postBSUnsolicitedPayments(reqBody).subscribe(res3 => {
|
|
98
|
-
this.errorMessage = this.getErrorMessage(false);
|
|
99
|
-
const response3 = JSON.parse(res3);
|
|
100
|
-
if (response3.success) {
|
|
101
|
-
this.gotoCasetransationPage();
|
|
102
|
-
}
|
|
103
|
-
}, (error) => {
|
|
104
|
-
this.bulkScaningPaymentService.patchBSChangeStatus(this.unassignedRecord.dcn_reference, 'COMPLETE').subscribe();
|
|
105
|
-
this.errorMessage = this.getErrorMessage(true);
|
|
106
|
-
this.isConfirmButtondisabled = false;
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}, (error) => {
|
|
110
|
-
this.bulkScaningPaymentService.patchBSChangeStatus(this.unassignedRecord.dcn_reference, 'COMPLETE').subscribe();
|
|
111
|
-
this.errorMessage = this.getErrorMessage(true);
|
|
112
|
-
this.isConfirmButtondisabled = false;
|
|
113
|
-
});
|
|
114
|
-
}, (error) => {
|
|
115
|
-
this.errorMessage = this.getErrorMessage(true);
|
|
116
|
-
this.isConfirmButtondisabled = false;
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
saveAndContinue() {
|
|
121
|
-
this.resetForm([false, false, false, false, false, false], 'all');
|
|
122
|
-
const formerror = this.markPaymentUnsolicitedForm.controls.reason.errors;
|
|
123
|
-
const reasonField = this.markPaymentUnsolicitedForm.controls.reason;
|
|
124
|
-
//const officeIdField = this.selectedSiteId;
|
|
125
|
-
const officeIdField = this.markPaymentUnsolicitedForm.controls.responsibleOffice;
|
|
126
|
-
if (this.markPaymentUnsolicitedForm.dirty && this.markPaymentUnsolicitedForm.valid) {
|
|
127
|
-
const controls = this.markPaymentUnsolicitedForm.controls;
|
|
128
|
-
this.emailId = controls.emailId.value;
|
|
129
|
-
this.responsibleOffice = officeIdField.value;
|
|
130
|
-
this.responsiblePerson = controls.responsiblePerson.value;
|
|
131
|
-
this.reason = controls.reason.value;
|
|
132
|
-
this.viewStatus = 'unsolicitedContinueConfirm';
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
if (reasonField.value == '') {
|
|
136
|
-
this.resetForm([true, false, false, false, false, false], 'reason');
|
|
137
|
-
}
|
|
138
|
-
if (reasonField.value != '' && this.markPaymentUnsolicitedForm.controls.reason.invalid) {
|
|
139
|
-
this.resetForm([false, true, false, false, false, false], 'reason');
|
|
140
|
-
}
|
|
141
|
-
if (formerror && formerror.minlength && formerror.minlength.actualLength < 3) {
|
|
142
|
-
this.resetForm([false, false, true, false, false, false], 'reason');
|
|
143
|
-
}
|
|
144
|
-
if (formerror && formerror.maxlength && formerror.maxlength.actualLength > 255) {
|
|
145
|
-
this.resetForm([false, false, false, true, false, false], 'reason');
|
|
146
|
-
}
|
|
147
|
-
if (officeIdField.value == '') {
|
|
148
|
-
this.resetForm([false, false, false, false, true, false], 'responsibleOffice');
|
|
149
|
-
}
|
|
150
|
-
if (officeIdField.value != '' && officeIdField.invalid) {
|
|
151
|
-
this.resetForm([false, false, false, false, false, true], 'responsibleOffice');
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
resetForm(val, field) {
|
|
156
|
-
if (field === 'reason' || field === 'all') {
|
|
157
|
-
this.isReasonEmpty = val[0];
|
|
158
|
-
this.reasonHasError = val[1];
|
|
159
|
-
this.reasonMinHasError = val[2];
|
|
160
|
-
this.reasonMaxHasError = val[3];
|
|
161
|
-
}
|
|
162
|
-
if (field === 'responsibleOffice' || field === 'all') {
|
|
163
|
-
this.isResponsibleOfficeEmpty = val[4];
|
|
164
|
-
this.responsibleOfficeHasError = val[5];
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
cancelMarkUnsolicitedPayments(type) {
|
|
168
|
-
if (type && type === 'cancel') {
|
|
169
|
-
if (this.checkingFormValue()) {
|
|
170
|
-
this.viewStatus = 'unsolicitedCancelConfirm';
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
this.gotoCasetransationPage();
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
this.markPaymentUnsolicitedForm.controls.responsibleOffice.setValue('');
|
|
178
|
-
this.viewStatus = 'mainForm';
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
checkingFormValue() {
|
|
182
|
-
const formFields = this.markPaymentUnsolicitedForm.value;
|
|
183
|
-
let valueExists = false;
|
|
184
|
-
for (var field in formFields) {
|
|
185
|
-
if (formFields.hasOwnProperty(field) && formFields[field] !== "") {
|
|
186
|
-
valueExists = true;
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
return valueExists;
|
|
191
|
-
}
|
|
192
|
-
gotoCasetransationPage() {
|
|
193
|
-
this.paymentLibComponent.viewName = 'case-transactions';
|
|
194
|
-
this.paymentLibComponent.TAKEPAYMENT = true;
|
|
195
|
-
this.paymentLibComponent.ISBSENABLE = true;
|
|
196
|
-
}
|
|
197
|
-
getUnassignedPayment() {
|
|
198
|
-
this.bulkScaningPaymentService.getBSPaymentsByDCN(this.bspaymentdcn).subscribe(unassignedPayments => {
|
|
199
|
-
this.unassignedRecord = unassignedPayments['data'].payments.filter(payment => {
|
|
200
|
-
return payment && payment.dcn_reference == this.bspaymentdcn;
|
|
201
|
-
})[0];
|
|
202
|
-
this.siteID = unassignedPayments['data'].responsible_service_id;
|
|
203
|
-
const beCcdNumber = unassignedPayments['data'].ccd_reference, beExceptionNumber = unassignedPayments['data'].exception_record_reference, exceptionReference = beCcdNumber ? beCcdNumber === this.ccdCaseNumber ? null : this.ccdCaseNumber : this.ccdCaseNumber;
|
|
204
|
-
this.ccdReference = beCcdNumber ? beCcdNumber : null;
|
|
205
|
-
this.exceptionReference = beExceptionNumber ? beExceptionNumber : exceptionReference;
|
|
206
|
-
}, (error) => {
|
|
207
|
-
this.errorMessage = this.getErrorMessage(true);
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
getErrorMessage(isErrorExist) {
|
|
211
|
-
return {
|
|
212
|
-
title: "Something went wrong.",
|
|
213
|
-
body: "Please try again later.",
|
|
214
|
-
showError: isErrorExist
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
selectchange(args) {
|
|
218
|
-
this.selectedSiteId = args.target.value;
|
|
219
|
-
this.selectedSiteName = args.target.options[args.target.selectedIndex].text;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
MarkUnsolicitedPaymentComponent.decorators = [
|
|
223
|
-
{ type: Component, args: [{
|
|
224
|
-
selector: 'app-mark-unsolicited-payment',
|
|
225
|
-
template: "<div class=\"mkpay-unidentified\">\n <div *ngIf=\"viewStatus === 'mainForm'\">\n <ccpay-error-banner *ngIf=\"errorMessage.showError\" [errorMessage]=\"errorMessage\"></ccpay-error-banner>\n <h1 class=\"heading-large\">Mark payment as transferred</h1>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Payment asset number (DCN)</td>\n <td class=\"govuk-table__header\" scope=\"col\">Banked date</td>\n <td class=\"govuk-table__header\" scope=\"col\">Amount</td>\n <td class=\"govuk-table__header\" scope=\"col\">Method</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\">{{unassignedRecord.dcn_reference}}</td>\n <td class=\"govuk-table__cell\"> {{unassignedRecord.date_banked | date:'dd MMM yyyy'}}</td>\n <td class=\"govuk-table__cell\"> {{unassignedRecord.amount | currency :'GBP':'symbol':'1.2-2'}}</td>\n <td class=\"capitalize govuk-table__cell\"> {{trimUnderscore(unassignedRecord.payment_method) | lowercase}} </td>\n </tr>\n </tbody>\n </table>\n </div>\n \n <form [formGroup]=\"markPaymentUnsolicitedForm\" novalidate>\n <input #myInput type='hidden' class='iFrameDrivenImageValue' value='MARKTRANSFERRED'>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label custom-govuk-label custom-govuk-label\" for=\"reason\">\n Reason for payment being marked as transferred \n </label>\n <textarea class=\"form-control form-control-3-4\" [ngClass]=\"{'inline-error-class': reasonHasError || reasonMinHasError || reasonMaxHasError}\" name=\"reason\" id=\"reason\" rows=\"5\" formControlName=\"reason\">\n </textarea>\n <p class=\"inline-error-message\" *ngIf=\"isReasonEmpty || reasonHasError || reasonMinHasError || reasonMaxHasError\">\n <span *ngIf=\"isReasonEmpty\">Enter a reason for marking this payment as transferred.</span>\n <span *ngIf=\"reasonHasError\">Enter a valid reason</span>\n <span *ngIf=\"reasonMinHasError\">Reason should be at least 3 characters.</span>\n <span *ngIf=\"reasonMaxHasError\">Reason should be 255 characters or under.</span>\n </p>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label custom-govuk-label\" for=\"responsibleOffice\">\n Receiving Site ID (Receiving court/Bulk centre site ID) \n </label>\n <select class=\"form-control short-input\" id=\"responsibleOffice\" formControlName=\"responsibleOffice\" (change)=\"selectchange($event)\">\n <option value=\"\" selected='selected'>Please select</option>\n <option *ngFor=\"let siteID of siteIDList;\" value=\"{{siteID.siteId}}\">{{siteID.siteName}} ({{siteID.siteId}})</option>\n </select>\n <p class=\"inline-error-message\" *ngIf=\"isResponsibleOfficeEmpty || responsibleOfficeHasError\">\n <span *ngIf=\"isResponsibleOfficeEmpty\">Please select Receiving Site ID</span>\n <span *ngIf=\"responsibleOfficeHasError\">Please select a valid Receiving Site ID</span>\n </p>\n </div>\n <div class=\"govuk-button--group\">\n <button type=\"submit\" [disabled]=\"isContinueButtondisabled\" class=\"button\" (click)=\"saveAndContinue()\">\n Confirm\n </button>\n <button type=\"button\" class=\"button govuk-button--secondary\" (click)=\"cancelMarkUnsolicitedPayments('cancel')\">\n Cancel\n </button>\n </div>\n </form>\n \n</div>\n <ng-container *ngIf=\"viewStatus === 'unsolicitedContinueConfirm'\">\n <ccpay-error-banner *ngIf=\"errorMessage.showError\" [errorMessage]=\"errorMessage\"></ccpay-error-banner>\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n <h1 class=\"heading-small\"> Are you sure you want to mark this payment as transferred? </h1>\n </strong>\n <input #myInput type='hidden' class='iFrameDrivenImageValue' value='TRANSFERREDCONFIRMATION'>\n <div class=\"govuk-grid-column-full govuk-!-padding-bottom-3\">\n <hr class=\"govuk-section-break govuk-section-break--visible\">\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" scope=\"col\">Reason</td>\n <td class=\"govuk-table__header\" scope=\"col\">Receiving site ID</td>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\">{{reason}}</td>\n <td class=\"govuk-table__cell\">{{selectedSiteName}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n\n </div>\n <div class=\"govuk-button--group\">\n <button type=\"submit\" class=\"button\" [disabled]=\"isConfirmButtondisabled\" (click)=\"confirmPayments()\">\n Confirm\n </button>\n <button type=\"button\" class=\"button govuk-button--secondary\" (click)=\"cancelMarkUnsolicitedPayments()\">\n Cancel\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"viewStatus === 'unsolicitedCancelConfirm'\">\n <input #myInput type='hidden' class='iFrameDrivenImageValue' value='CANCELTRANSFERRED'>\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n Are you sure you want to cancel?\n </strong>\n </div>\n <div class=\"govuk-button--group\">\n <button type=\"submit\" class=\"button\" (click)=\"gotoCasetransationPage()\">\n Yes\n </button>\n <button type=\"button\" class=\"button govuk-button--secondary\" (click)=\"cancelMarkUnsolicitedPayments()\">\n No\n </button>\n </div>\n </ng-container>\n</div>",
|
|
226
|
-
styles: [".mkpay-unidentified{margin:10px 0 20px}.mkpay-unidentified .govuk-button--secondary{margin-left:10px;background-color:rgba(179,184,189,.9490196078431372)}.mkpay-unidentified .inline-error-class{outline:3px solid #a71414;outline-offset:0}.mkpay-unidentified .inline-error-message{color:#a71414;font-weight:700;margin-top:10px}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.custom-govuk-label,.govuk-warning-text__text{font-size:19px}#responsibleOffice{color:#000;width:75%;font-weight:white}select option{background:#fff}"]
|
|
227
|
-
},] }
|
|
228
|
-
];
|
|
229
|
-
MarkUnsolicitedPaymentComponent.ctorParameters = () => [
|
|
230
|
-
{ type: FormBuilder },
|
|
231
|
-
{ type: PaymentViewService },
|
|
232
|
-
{ type: PaymentLibComponent },
|
|
233
|
-
{ type: BulkScaningPaymentService }
|
|
234
|
-
];
|
|
235
|
-
MarkUnsolicitedPaymentComponent.propDecorators = {
|
|
236
|
-
caseType: [{ type: Input }]
|
|
237
|
-
};
|
|
238
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFyay11bnNvbGljaXRlZC1wYXltZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BheW1lbnQtbGliL3NyYy9saWIvY29tcG9uZW50cy9tYXJrLXVuc29saWNpdGVkLXBheW1lbnQvbWFyay11bnNvbGljaXRlZC1wYXltZW50LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsV0FBVyxFQUFhLFVBQVUsRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNqRixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNsRSxPQUFPLEVBQUUseUJBQX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ShyZXMzKTtcbiAgICAgICAgICAgICAgICAgIGlmIChyZXNwb25zZTMuc3VjY2Vzcykge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmdvdG9DYXNldHJhbnNhdGlvblBhZ2UoKTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIChlcnJvcjogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICB0aGlzLmJ1bGtTY2FuaW5nUGF5bWVudFNlcnZpY2UucGF0Y2hCU0NoYW5nZVN0YXR1cyh0aGlzLnVuYXNzaWduZWRSZWNvcmQuZGNuX3JlZmVyZW5jZSwgJ0NPTVBMRVRFJykuc3Vic2NyaWJlKCk7XG4gICAgICAgICAgICAgICAgICB0aGlzLmVycm9yTWVzc2FnZSA9IHRoaXMuZ2V0RXJyb3JNZXNzYWdlKHRydWUpO1xuICAgICAgICAgICAgICAgICAgdGhpcy5pc0NvbmZpcm1CdXR0b25kaXNhYmxlZCA9IGZhbHNlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIChlcnJvcjogYW55KSA9PiB7XG4gICAgICAgICAgICB0aGlzLmJ1bGtTY2FuaW5nUGF5bWVudFNlcnZpY2UucGF0Y2hCU0NoYW5nZVN0YXR1cyh0aGlzLnVuYXNzaWduZWRSZWNvcmQuZGNuX3JlZmVyZW5jZSwgJ0NPTVBMRVRFJykuc3Vic2NyaWJlKCk7XG4gICAgICAgICAgICB0aGlzLmVycm9yTWVzc2FnZSA9IHRoaXMuZ2V0RXJyb3JNZXNzYWdlKHRydWUpO1xuICAgICAgICAgICAgdGhpcy5pc0NvbmZpcm1CdXR0b25kaXNhYmxlZCA9IGZhbHNlO1xuICAgICAgICAgIH1cbiAgICAgICAgKTtcbiAgICAgIH0sXG4gICAgICAoZXJyb3I6IGFueSkgPT4ge1xuICAgICAgICB0aGlzLmVycm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7XG4gICAgICB9XG4gICAgKTtcbiAgfVxuXG4gIGdldEVycm9yTWVzc2FnZShpc0Vycm9yRXhpc3QpIHtcbiAgICByZXR1cm4ge1xuICAgICAgdGl0bGU6IFwiU29tZXRoaW5nIHdlbnQgd3JvbmcuXCIsXG4gICAgICBib2R5OiBcIlBsZWFzZSB0cnkgYWdhaW4gbGF0ZXIuXCIsXG4gICAgICBzaG93RXJyb3I6IGlzRXJyb3JFeGlzdFxuICAgIH07XG4gIH1cblxuICBzZWxlY3RjaGFuZ2UoYXJncyl7IFxuICAgIHRoaXMuc2VsZWN0ZWRTaXRlSWQgPSBhcmdzLnRhcmdldC52YWx1ZTsgXG4gICAgdGhpcy5zZWxlY3RlZFNpdGVOYW1lID0gYXJncy50YXJnZXQub3B0aW9uc1thcmdzLnRhcmdldC5zZWxlY3RlZEluZGV4XS50ZXh0OyBcbiAgfSBcblxufVxuIl19
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { NotificationPreviewRequest } from '../../interfaces/NotificationPreviewRequest';
|
|
3
|
-
import { NotificationService } from '../../services/notification/notification.service';
|
|
4
|
-
import { ErrorHandlerService } from '../../services/shared/error-handler.service';
|
|
5
|
-
import { Output, EventEmitter } from '@angular/core';
|
|
6
|
-
export class NotificationPreviewComponent {
|
|
7
|
-
constructor(errorHandlerService, notificationService) {
|
|
8
|
-
this.errorHandlerService = errorHandlerService;
|
|
9
|
-
this.notificationService = notificationService;
|
|
10
|
-
this.notificationPreviewEvent = new EventEmitter();
|
|
11
|
-
this.today = Date.now();
|
|
12
|
-
this.errorMessage = this.errorHandlerService.getServerErrorMessage(false, false, '');
|
|
13
|
-
}
|
|
14
|
-
ngOnInit() {
|
|
15
|
-
if (this.previewJourney != undefined && this.previewJourney != null && this.previewJourney === 'Notifications sent') {
|
|
16
|
-
this.notification = this.notificationSent;
|
|
17
|
-
if (this.notification != undefined && this.notification != null && this.notification.template_type === 'letter') {
|
|
18
|
-
this.notification.body = this.notification.body.replace(/\r\n/g, '<br/>');
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
const notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
|
|
23
|
-
this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe(res => {
|
|
24
|
-
this.errorMessage = this.errorHandlerService.getServerErrorMessage(false, false, '');
|
|
25
|
-
this.notification = JSON.parse(res);
|
|
26
|
-
if (this.notification != undefined && this.notification != null && this.notification.template_type === 'letter') {
|
|
27
|
-
this.notification.body = this.notification.body.replace(/\r\n/g, '<br/>');
|
|
28
|
-
}
|
|
29
|
-
}, (error) => {
|
|
30
|
-
this.errorMessage = this.errorHandlerService.getServerErrorMessage(true, false, '');
|
|
31
|
-
console.log(this.errorMessage);
|
|
32
|
-
});
|
|
33
|
-
this.notificationPreviewEvent.emit(this.notification);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
NotificationPreviewComponent.decorators = [
|
|
38
|
-
{ type: Component, args: [{
|
|
39
|
-
selector: 'app-notification-preview',
|
|
40
|
-
template: "<div class=\"govuk-grid-column-full\">\n <table class=\"govuk-table\">\n <tbody class=\"govuk-table__body\">\n <ng-container *ngIf=\"notification?.template_type === 'email'\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\"><span class=\"govuk-!-font-weight-bold\">From:</span>\n {{notification?.from?.from_email_address}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\"><span class=\"govuk-!-font-weight-bold\">To:</span>\n {{notification?.recipient_contact?.recipient_email_address}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\"><span class=\"govuk-!-font-weight-bold\">Subject:</span>\n {{notification?.subject}}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <div [innerHTML]=\"notification?.html\"></div>\n </td>\n </tr>\n </ng-container>\n <ng-container *ngIf=\"notification?.template_type === 'letter'\">\n <tr class=\"govuk-table__row\">\n <td class=\"letter-row-border\">\n <ng-container *ngIf=\"notification?.recipient_contact?.recipient_mail_address?.address_line\">\n {{notification?.recipient_contact?.recipient_mail_address?.address_line}}<br /></ng-container>\n <ng-container *ngIf=\"notification?.recipient_contact?.recipient_mail_address?.city\">\n {{notification?.recipient_contact?.recipient_mail_address?.city}}<br /></ng-container>\n <ng-container *ngIf=\"notification?.recipient_contact?.recipient_mail_address?.county\">\n {{notification?.recipient_contact?.recipient_mail_address?.county}}<br /></ng-container>\n <ng-container *ngIf=\"notification?.recipient_contact?.recipient_mail_address?.country\">\n {{notification?.recipient_contact?.recipient_mail_address?.country}}<br /></ng-container>\n {{notification?.recipient_contact?.recipient_mail_address?.postal_code}}\n </td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"letter-row-border\">{{ today | date:'d MMMM y' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"letter-row-border\"><span class=\"govuk-!-font-weight-bold\">{{notification?.subject}}</span></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell whitespace-inherit\">\n <div [innerHTML]=\"notification?.body\"></div>\n </td>\n </tr>\n </ng-container>\n \n </tbody>\n </table>\n</div>\n",
|
|
41
|
-
styles: [".right{float:right}.letter-row-border{border-bottom:none}"]
|
|
42
|
-
},] }
|
|
43
|
-
];
|
|
44
|
-
NotificationPreviewComponent.ctorParameters = () => [
|
|
45
|
-
{ type: ErrorHandlerService },
|
|
46
|
-
{ type: NotificationService }
|
|
47
|
-
];
|
|
48
|
-
NotificationPreviewComponent.propDecorators = {
|
|
49
|
-
payment: [{ type: Input }],
|
|
50
|
-
contactDetails: [{ type: Input }],
|
|
51
|
-
refundReason: [{ type: Input }],
|
|
52
|
-
refundAmount: [{ type: Input }],
|
|
53
|
-
paymentReference: [{ type: Input }],
|
|
54
|
-
refundReference: [{ type: Input }],
|
|
55
|
-
previewJourney: [{ type: Input }],
|
|
56
|
-
notificationSent: [{ type: Input }],
|
|
57
|
-
notificationPreviewEvent: [{ type: Output }]
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLXByZXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcGF5bWVudC1saWIvc3JjL2xpYi9jb21wb25lbnRzL25vdGlmaWNhdGlvbi1wcmV2aWV3L25vdGlmaWNhdGlvbi1wcmV2aWV3LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUl6RCxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSw2Q0FBNkMsQ0FBQztBQUN6RixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxrREFBa0QsQ0FBQztBQUN2RixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSw2Q0FBNkMsQ0FBQztBQUNsRixPQUFPLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQU9yRCxNQUFNLE9BQU8sNEJBQTRCO0lBaUJ2QyxZQUFvQixtQkFBd0MsRUFDbEQsbUJBQXdDO1FBRDlCLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBcUI7UUFDbEQsd0JBQW1CLEdBQW5CLG1CQUFtQixDQUFxQjtRQVJ4Qyw2QkFBd0IsR0FBRyxJQUFJLFlBQVksRUFBd0IsQ0FBQztRQUk5RSxVQUFLLEdBQVcsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDO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pY2F0aW9uID0gSlNPTi5wYXJzZShyZXMpO1xuXG4gICAgICAgICAgaWYgKHRoaXMubm90aWZpY2F0aW9uICE9IHVuZGVmaW5lZCAmJiB0aGlzLm5vdGlmaWNhdGlvbiAhPSBudWxsICYmIHRoaXMubm90aWZpY2F0aW9uLnRlbXBsYXRlX3R5cGUgPT09ICdsZXR0ZXInKSB7XG4gICAgICAgICAgICB0aGlzLm5vdGlmaWNhdGlvbi5ib2R5ID0gdGhpcy5ub3RpZmljYXRpb24uYm9keS5yZXBsYWNlKC9cXHJcXG4vZywgJzxici8+Jyk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICAoZXJyb3I6IGFueSkgPT4ge1xuICAgICAgICAgIHRoaXMuZXJyb3JNZXNzYWdlID0gdGhpcy5lcnJvckhhbmRsZXJTZXJ2aWNlLmdldFNlcnZlckVycm9yTWVzc2FnZSh0cnVlLCBmYWxzZSwgJycpO1xuICAgICAgICAgIGNvbnNvbGUubG9nKHRoaXMuZXJyb3JNZXNzYWdlKTtcbiAgICAgICAgfVxuICAgICAgKTtcblxuICAgICAgdGhpcy5ub3RpZmljYXRpb25QcmV2aWV3RXZlbnQuZW1pdCh0aGlzLm5vdGlmaWNhdGlvbik7XG5cbiAgICB9XG4gIH1cblxufVxuIl19
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
export class PageNotFoundComponent {
|
|
3
|
-
}
|
|
4
|
-
PageNotFoundComponent.decorators = [
|
|
5
|
-
{ type: Component, args: [{
|
|
6
|
-
template: `
|
|
7
|
-
<h1>This is not the page you were looking for!</h1>
|
|
8
|
-
`
|
|
9
|
-
},] }
|
|
10
|
-
];
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1ub3QtZm91bmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcGF5bWVudC1saWIvc3JjL2xpYi9jb21wb25lbnRzL3BhZ2Utbm90LWZvdW5kLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBTzFDLE1BQU0sT0FBTyxxQkFBcUI7OztZQUxqQyxTQUFTLFNBQUM7Z0JBQ1AsUUFBUSxFQUFFOztLQUVUO2FBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gICAgdGVtcGxhdGU6IGBcbiAgICA8aDE+VGhpcyBpcyBub3QgdGhlIHBhZ2UgeW91IHdlcmUgbG9va2luZyBmb3IhPC9oMT5cbiAgICBgXG59KVxuZXhwb3J0IGNsYXNzIFBhZ2VOb3RGb3VuZENvbXBvbmVudCB7IH1cbiJdfQ==
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { PaymentListService } from '../../services/payment-list/payment-list.service';
|
|
3
|
-
import { PaymentLibComponent } from '../../payment-lib.component';
|
|
4
|
-
export class PaymentListComponent {
|
|
5
|
-
constructor(paymentListService, paymentLibComponent) {
|
|
6
|
-
this.paymentListService = paymentListService;
|
|
7
|
-
this.paymentLibComponent = paymentLibComponent;
|
|
8
|
-
}
|
|
9
|
-
ngOnInit() {
|
|
10
|
-
this.paymentListService.getPaymentByCcdCaseNumber(this.paymentLibComponent.CCD_CASE_NUMBER, this.paymentLibComponent.PAYMENT_METHOD)
|
|
11
|
-
.subscribe(payments => this.payments = payments, (error) => this.errorMessage = error);
|
|
12
|
-
}
|
|
13
|
-
loadPaymentViewComponent(paymentGroupReference, paymentReference, paymentMethod) {
|
|
14
|
-
this.paymentLibComponent.paymentMethod = paymentMethod;
|
|
15
|
-
this.paymentLibComponent.paymentGroupReference = paymentGroupReference;
|
|
16
|
-
this.paymentLibComponent.paymentReference = paymentReference;
|
|
17
|
-
this.paymentLibComponent.viewName = 'payment-view';
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
PaymentListComponent.decorators = [
|
|
21
|
-
{ type: Component, args: [{
|
|
22
|
-
selector: 'ccpay-payment-list',
|
|
23
|
-
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",
|
|
24
|
-
styles: [""]
|
|
25
|
-
},] }
|
|
26
|
-
];
|
|
27
|
-
PaymentListComponent.ctorParameters = () => [
|
|
28
|
-
{ type: PaymentListService },
|
|
29
|
-
{ type: PaymentLibComponent }
|
|
30
|
-
];
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BheW1lbnQtbGliL3NyYy9saWIvY29tcG9uZW50cy9wYXltZW50LWxpc3QvcGF5bWVudC1saXN0LmNvbXBvbmVudC50cyJdLCJ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