@justifi/webcomponents 5.3.4 → 5.3.5
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/dist/cjs/{Analytics-2fb20059.js → Analytics-e91a5523.js} +1 -1
- package/dist/cjs/{Checkout-1c07dc32.js → Checkout-eef27045.js} +11 -6
- package/dist/cjs/{SubAccount-b4811a8e.js → SubAccount-f9069337.js} +70 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-86a6a7f8.js → badge-6abf6ed3.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form_9.cjs.entry.js +4 -4
- package/dist/cjs/billing-form_3.cjs.entry.js +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{button-5f6c437f.js → button-aed2ce1a.js} +1 -1
- package/dist/cjs/{check-pkg-version-f5a3d421.js → check-pkg-version-d19c6fdb.js} +1 -1
- package/dist/cjs/{checkout.service-b23994d2.js → checkout.service-0643396e.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +7 -7
- package/dist/cjs/{checkouts-table-cf3e245e.js → checkouts-table-f88ad3c8.js} +2 -2
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -141
- package/dist/cjs/{dispute.service-c192dd33.js → dispute.service-53c80520.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-9905e3b8.js → form-control-error-text-74fb8498.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -4
- package/dist/cjs/{form-control-help-text-8d031bfb.js → form-control-help-text-3cffd918.js} +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
- package/dist/cjs/{get-payout-csv-13d68dab.js → get-payout-csv-bdd7d9c0.js} +2 -2
- package/dist/cjs/{get-subaccounts-b2e6ab82.js → get-subaccounts-40c4a0b6.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-b202dbbb.js → header-1-cc98bae2.js} +1 -1
- package/dist/cjs/{header-3-5f78acd1.js → header-3-05ce2ad0.js} +1 -1
- package/dist/cjs/{insurance-state-ba0c39a9.js → insurance-state-211cd636.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +71 -108
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +31 -24
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +114 -21
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -5
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -25
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-e8aa0c51.js → package-82b16c28.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-c2655003.js → parts-63f60e81.js} +3 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-f53022c3.js → payment.service-23b0dcb8.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payments-status-92abe577.js → payments-status-b9192db7.js} +1 -1
- package/dist/cjs/{payments-table-c58e3ca8.js → payments-table-dba2f145.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payouts-status-703d62af.js → payouts-status-385a794d.js} +1 -1
- package/dist/cjs/{payouts-table-70fc1498.js → payouts-table-8cd537de.js} +2 -2
- package/dist/cjs/{skeleton-84102a44.js → skeleton-65afa2f5.js} +1 -1
- package/dist/cjs/{spinner-70f38e5e.js → spinner-a95e9b8d.js} +1 -1
- package/dist/cjs/{table-fc82fa81.js → table-ad35ff09.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +61 -8
- package/dist/cjs/terminal-orders-table-8baa5461.js +51 -0
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +36 -0
- package/dist/cjs/terminal.service-2f41898f.js +30 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{terminals-table-db58a0c0.js → terminals-table-c4c01dc3.js} +6 -4
- package/dist/cjs/{utils-7c5b2837.js → utils-f752bd45.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/terminal/get-terminal-models.js +30 -0
- package/dist/collection/api/Checkout.js +5 -0
- package/dist/collection/api/Terminal.js +1 -0
- package/dist/collection/api/TerminalModel.js +15 -0
- package/dist/collection/api/TerminalOrder.js +51 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/terminal.service.js +6 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -8
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +27 -15
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +22 -14
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/file-input-handler.js +11 -0
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +26 -12
- package/dist/collection/components/order-terminals/order-terminals.js +79 -16
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-order-status.js +18 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +17 -5
- package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector-loading.js +5 -0
- package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector.js +153 -0
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-table.js +4 -2
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +3 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +2 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/docs.json +428 -36
- package/dist/esm/{Analytics-759c7da5.js → Analytics-d0f79dc3.js} +1 -1
- package/dist/esm/{Checkout-919eb1ba.js → Checkout-2bc873fb.js} +6 -1
- package/dist/esm/{SubAccount-9aad3891.js → SubAccount-f31bdeb4.js} +69 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-2eb79416.js → badge-7768a2b1.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
- package/dist/esm/bank-account-form_9.entry.js +4 -4
- package/dist/esm/billing-form_3.entry.js +6 -6
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{button-cc455199.js → button-b3d07089.js} +1 -1
- package/dist/esm/{check-pkg-version-1d6e48c8.js → check-pkg-version-2e9f961e.js} +1 -1
- package/dist/esm/{checkout.service-bb45d248.js → checkout.service-020aaf97.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +7 -7
- package/dist/esm/{checkouts-table-53981285.js → checkouts-table-974c57ba.js} +2 -2
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -140
- package/dist/esm/{dispute.service-9008b3b7.js → dispute.service-b234b5c7.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-74c6b38a.js → form-control-error-text-923afdfa.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -4
- package/dist/esm/{form-control-help-text-76a4196e.js → form-control-help-text-c7bdd493.js} +1 -1
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +139 -0
- package/dist/esm/{get-payout-csv-8450b60d.js → get-payout-csv-9528b0a2.js} +2 -2
- package/dist/esm/{get-subaccounts-3af0844a.js → get-subaccounts-212c162d.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-797ca789.js → header-1-649109a3.js} +1 -1
- package/dist/esm/{header-3-544afa0b.js → header-3-ca7bb57b.js} +1 -1
- package/dist/esm/{insurance-state-307335d6.js → insurance-state-e3b48bb2.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +5 -5
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +4 -4
- package/dist/esm/justifi-additional-statement_8.entry.js +71 -108
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +10 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +6 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +31 -24
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +115 -22
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +8 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +11 -11
- package/dist/esm/justifi-payout-details.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +12 -12
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminals-list.entry.js +12 -24
- package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-49477570.js → package-b9d805ae.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-489f0af6.js → parts-18c966b1.js} +3 -1
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment.service-a8ee345c.js → payment.service-81752187.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +9 -9
- package/dist/esm/{payments-status-35255b2c.js → payments-status-f451caf6.js} +1 -1
- package/dist/esm/{payments-table-6e97396a.js → payments-table-a7836555.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +9 -9
- package/dist/esm/{payouts-status-a0cc00c5.js → payouts-status-bfae9f42.js} +1 -1
- package/dist/esm/{payouts-table-6b8ba8f1.js → payouts-table-55f1a8a3.js} +2 -2
- package/dist/esm/{skeleton-74fbfb68.js → skeleton-ca37b248.js} +1 -1
- package/dist/esm/{spinner-6b708842.js → spinner-30abb9b0.js} +1 -1
- package/dist/esm/{table-e287f1c0.js → table-03e4dfc0.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +61 -8
- package/dist/esm/terminal-orders-table-a340c409.js +47 -0
- package/dist/esm/terminal-quantity-selector.entry.js +32 -0
- package/dist/esm/terminal.service-3c3f2c3f.js +28 -0
- package/dist/esm/terminals-list-core.entry.js +8 -8
- package/dist/esm/{terminals-table-c6258344.js → terminals-table-88549e54.js} +6 -4
- package/dist/esm/{utils-6c26bccc.js → utils-e7df4815.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +6 -1
- package/dist/module/SubAccount.js +69 -1
- package/dist/module/additional-statement.js +9 -14
- package/dist/module/cancellation-policy.js +9 -14
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +9 -14
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +22 -14
- package/dist/module/duplicate-charge.js +9 -14
- package/dist/module/electronic-evidence.js +9 -14
- package/dist/module/{dispute-response-form-types.js → file-input-handler.js} +23 -13
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +2 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-order-terminals.js +134 -18
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +3 -16
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +3 -1
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/product-or-service.js +17 -16
- package/dist/module/refund-policy.js +9 -14
- package/dist/module/shipping-details.js +9 -12
- package/dist/module/terminal-orders-list-core2.js +92 -7
- package/dist/module/terminal-quantity-selector.d.ts +11 -0
- package/dist/module/terminal-quantity-selector.js +6 -0
- package/dist/module/terminal-quantity-selector2.js +66 -0
- package/dist/module/terminal.service.js +28 -0
- package/dist/module/terminals-list-core2.js +5 -3
- package/dist/types/actions/terminal/get-terminal-models.d.ts +8 -0
- package/dist/types/api/Checkout.d.ts +4 -0
- package/dist/types/api/Terminal.d.ts +2 -0
- package/dist/types/api/TerminalModel.d.ts +31 -0
- package/dist/types/api/TerminalOrder.d.ts +53 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/terminal.service.d.ts +2 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +3 -3
- package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +5 -2
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +5 -4
- package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/file-input-handler.d.ts +2 -0
- package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +5 -2
- package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +4 -1
- package/dist/types/components/order-terminals/order-terminals.d.ts +12 -2
- package/dist/types/components/terminal-orders-list/terminal-order-status.d.ts +2 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +4 -3
- package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +16 -5
- package/dist/types/components/terminal-quantity-selector/terminal-quantity-selector-loading.d.ts +1 -0
- package/dist/types/components/terminal-quantity-selector/terminal-quantity-selector.d.ts +17 -0
- package/dist/types/components/terminals-list/terminals-table.d.ts +3 -1
- package/dist/types/components.d.ts +61 -4
- package/dist/types/global.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +2 -0
- package/dist/webcomponents/{p-b57cfe54.entry.js → p-0a271654.entry.js} +1 -1
- package/dist/webcomponents/{p-553dba95.entry.js → p-0ef25316.entry.js} +1 -1
- package/dist/webcomponents/{p-1aa22806.js → p-0ef50c81.js} +1 -1
- package/dist/webcomponents/{p-d279545a.entry.js → p-0f85fde5.entry.js} +1 -1
- package/dist/webcomponents/{p-c2196cb8.entry.js → p-0faaae79.entry.js} +1 -1
- package/dist/webcomponents/{p-b2d57b2c.entry.js → p-121e9167.entry.js} +1 -1
- package/dist/webcomponents/p-140836f1.entry.js +1 -0
- package/dist/webcomponents/{p-4fbdf440.entry.js → p-1a9d60b1.entry.js} +1 -1
- package/dist/webcomponents/p-1d019dda.entry.js +1 -0
- package/dist/webcomponents/p-1e3cc191.entry.js +1 -0
- package/dist/webcomponents/p-1fcde0de.entry.js +1 -0
- package/dist/webcomponents/{p-8548edd6.entry.js → p-229c841e.entry.js} +1 -1
- package/dist/webcomponents/p-2481c1d3.entry.js +1 -0
- package/dist/webcomponents/{p-ebbe93ac.entry.js → p-29988e8f.entry.js} +1 -1
- package/dist/webcomponents/p-31507b3a.entry.js +1 -0
- package/dist/webcomponents/p-348fc9b1.js +1 -0
- package/dist/webcomponents/{p-794cce10.entry.js → p-36060c36.entry.js} +1 -1
- package/dist/webcomponents/{p-1278dedf.js → p-3744006f.js} +1 -1
- package/dist/webcomponents/{p-89ecfbf4.entry.js → p-4014d084.entry.js} +1 -1
- package/dist/webcomponents/p-418ab812.entry.js +1 -0
- package/dist/webcomponents/{p-fea43254.entry.js → p-420d6572.entry.js} +1 -1
- package/dist/webcomponents/{p-0b38cfbf.js → p-45bed1b7.js} +1 -1
- package/dist/webcomponents/{p-235abbd1.entry.js → p-49fc12b2.entry.js} +1 -1
- package/dist/webcomponents/{p-f7d9ea0b.entry.js → p-4a580682.entry.js} +1 -1
- package/dist/webcomponents/p-4bb0d6fd.js +1 -0
- package/dist/webcomponents/{p-ff1f2d65.js → p-4c4a2c48.js} +1 -1
- package/dist/webcomponents/p-4f9a2f1f.js +1 -0
- package/dist/webcomponents/{p-e3e0d791.entry.js → p-54502491.entry.js} +1 -1
- package/dist/webcomponents/{p-9a4d0e1d.entry.js → p-55a6599a.entry.js} +1 -1
- package/dist/webcomponents/{p-5a96a2a2.entry.js → p-566883fb.entry.js} +1 -1
- package/dist/webcomponents/{p-a90d8f4f.entry.js → p-57ddf983.entry.js} +1 -1
- package/dist/webcomponents/p-5bf5f7d7.entry.js +1 -0
- package/dist/webcomponents/p-5dc767d8.js +1 -0
- package/dist/webcomponents/{p-a31ba276.entry.js → p-6501cb6e.entry.js} +1 -1
- package/dist/webcomponents/{p-06f5b709.js → p-66cdd475.js} +1 -1
- package/dist/webcomponents/{p-bfe339d5.js → p-6776df16.js} +1 -1
- package/dist/webcomponents/{p-a6b66c88.entry.js → p-6815a6cb.entry.js} +1 -1
- package/dist/webcomponents/{p-dfebd7a4.js → p-69ae193c.js} +1 -1
- package/dist/webcomponents/{p-53b660a3.entry.js → p-76d1036b.entry.js} +1 -1
- package/dist/webcomponents/{p-8a7266b4.js → p-77245638.js} +1 -1
- package/dist/webcomponents/p-77e3ed67.js +1 -0
- package/dist/webcomponents/p-7d43c1d6.entry.js +1 -0
- package/dist/webcomponents/{p-e007002a.entry.js → p-7dc34297.entry.js} +1 -1
- package/dist/webcomponents/{p-3ab7a49e.entry.js → p-7e4c84f7.entry.js} +1 -1
- package/dist/webcomponents/{p-09496255.js → p-808f61aa.js} +1 -1
- package/dist/webcomponents/p-834c12a0.entry.js +1 -0
- package/dist/webcomponents/p-8548d8de.js +1 -0
- package/dist/webcomponents/{p-39a63e0c.entry.js → p-867e34b8.entry.js} +1 -1
- package/dist/webcomponents/p-8a3f1a56.entry.js +1 -0
- package/dist/webcomponents/p-8a9debac.entry.js +1 -0
- package/dist/webcomponents/p-8b3842ce.js +1 -0
- package/dist/webcomponents/{p-300a99ee.js → p-913d51b9.js} +1 -1
- package/dist/webcomponents/{p-906a6027.js → p-930e2e05.js} +1 -1
- package/dist/webcomponents/p-96a491aa.js +1 -0
- package/dist/webcomponents/{p-08a17c5c.entry.js → p-9a6eacd0.entry.js} +1 -1
- package/dist/webcomponents/{p-4a71c90b.entry.js → p-9d8cf927.entry.js} +1 -1
- package/dist/webcomponents/{p-14f40baa.js → p-9ffed802.js} +1 -1
- package/dist/webcomponents/{p-060896c4.entry.js → p-adf30888.entry.js} +1 -1
- package/dist/webcomponents/p-b0335a17.entry.js +1 -0
- package/dist/webcomponents/{p-939d0a35.entry.js → p-b075211e.entry.js} +1 -1
- package/dist/webcomponents/{p-8b16a20f.js → p-b40bcf59.js} +1 -1
- package/dist/webcomponents/p-b7a407fb.entry.js +1 -0
- package/dist/webcomponents/{p-d398ce81.js → p-b894423f.js} +1 -1
- package/dist/webcomponents/{p-acca56ec.entry.js → p-bc6e3e59.entry.js} +1 -1
- package/dist/webcomponents/p-bc73a554.entry.js +1 -0
- package/dist/webcomponents/{p-670296bf.entry.js → p-c17af2a4.entry.js} +1 -1
- package/dist/webcomponents/p-c1af1fdb.entry.js +1 -0
- package/dist/webcomponents/{p-df2559c7.js → p-ca19fd2e.js} +1 -1
- package/dist/webcomponents/p-ca55be58.js +1 -0
- package/dist/webcomponents/{p-3b680e50.js → p-d019b800.js} +1 -1
- package/dist/webcomponents/{p-020e7d5d.entry.js → p-d37d20ca.entry.js} +1 -1
- package/dist/webcomponents/p-d979d9ea.entry.js +1 -0
- package/dist/webcomponents/p-d981a599.entry.js +1 -0
- package/dist/webcomponents/{p-75b7dfe7.entry.js → p-da415c08.entry.js} +1 -1
- package/dist/webcomponents/{p-389e1eb7.js → p-daf0303f.js} +1 -1
- package/dist/webcomponents/{p-29688e30.js → p-dd535097.js} +1 -1
- package/dist/webcomponents/p-e0befd51.js +1 -0
- package/dist/webcomponents/{p-7ee5a90e.entry.js → p-e7d2eba7.entry.js} +1 -1
- package/dist/webcomponents/{p-fa843aad.entry.js → p-e895bc2a.entry.js} +1 -1
- package/dist/webcomponents/{p-ae271c06.entry.js → p-ec3f9d80.entry.js} +1 -1
- package/dist/webcomponents/{p-d432f0fd.entry.js → p-ee991c9e.entry.js} +1 -1
- package/dist/webcomponents/p-f1580c62.js +1 -0
- package/dist/webcomponents/{p-19063270.entry.js → p-f48dd1ef.entry.js} +1 -1
- package/dist/webcomponents/p-fe0399a1.js +1 -0
- package/dist/webcomponents/{p-56697a12.entry.js → p-fe439eb2.entry.js} +1 -1
- package/dist/webcomponents/p-fe8be5fa.entry.js +1 -0
- package/dist/webcomponents/p-ffbd95d0.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/terminal-orders-table-61081532.js +0 -18
- package/dist/esm/terminal-orders-table-765c44d5.js +0 -14
- package/dist/webcomponents/p-0f4d851d.entry.js +0 -1
- package/dist/webcomponents/p-1f4e26f3.entry.js +0 -1
- package/dist/webcomponents/p-27c72b92.entry.js +0 -1
- package/dist/webcomponents/p-29fbbc93.js +0 -1
- package/dist/webcomponents/p-2e0ae487.js +0 -1
- package/dist/webcomponents/p-2f9af679.js +0 -1
- package/dist/webcomponents/p-37b7b200.entry.js +0 -1
- package/dist/webcomponents/p-3d486f37.entry.js +0 -1
- package/dist/webcomponents/p-42a48c59.js +0 -1
- package/dist/webcomponents/p-49df4962.entry.js +0 -1
- package/dist/webcomponents/p-4b6256e0.entry.js +0 -1
- package/dist/webcomponents/p-595479da.entry.js +0 -1
- package/dist/webcomponents/p-66ae2a0e.entry.js +0 -1
- package/dist/webcomponents/p-78a204f9.entry.js +0 -1
- package/dist/webcomponents/p-7c541199.entry.js +0 -1
- package/dist/webcomponents/p-7d2538d9.entry.js +0 -1
- package/dist/webcomponents/p-9055aa6e.entry.js +0 -1
- package/dist/webcomponents/p-9cbbe9cb.entry.js +0 -1
- package/dist/webcomponents/p-9edd6ad8.js +0 -1
- package/dist/webcomponents/p-a0082e77.entry.js +0 -1
- package/dist/webcomponents/p-af945fc0.entry.js +0 -1
- package/dist/webcomponents/p-c4ca0038.js +0 -1
- package/dist/webcomponents/p-cba89310.entry.js +0 -1
- package/dist/webcomponents/p-cbe05f11.js +0 -1
- package/dist/webcomponents/p-d5c41ec6.js +0 -1
- package/dist/webcomponents/p-e8cd9691.js +0 -1
- package/dist/webcomponents/p-e9e80a62.js +0 -1
- package/dist/webcomponents/p-ec019b89.js +0 -1
- package/dist/webcomponents/p-fc3d2a9e.entry.js +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, a as create$6, F as FormController } from './form.js';
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
|
|
4
4
|
import { T as heading5 } from './parts.js';
|
|
5
|
-
import { d as defineCustomElement$
|
|
5
|
+
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
6
|
+
import { d as defineCustomElement$4 } from './form-control-date2.js';
|
|
6
7
|
import { d as defineCustomElement$3 } from './form-control-file-v22.js';
|
|
7
8
|
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
8
9
|
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
@@ -16,24 +17,18 @@ const ProductOrService = /*@__PURE__*/ proxyCustomElement(class ProductOrService
|
|
|
16
17
|
constructor() {
|
|
17
18
|
super();
|
|
18
19
|
this.__registerHost();
|
|
19
|
-
this.handleFileSelection = (e) => {
|
|
20
|
-
const target = e.target;
|
|
21
|
-
const name = target.name;
|
|
22
|
-
const files = target.files;
|
|
23
|
-
for (const file of files) {
|
|
24
|
-
this.documentList.push(new DisputeEvidenceDocument(file, name));
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
20
|
this.inputHandler = (name, value) => {
|
|
28
21
|
this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
|
|
29
22
|
};
|
|
30
23
|
this.disputeResponse = undefined;
|
|
24
|
+
this.documentErrors = {};
|
|
31
25
|
this.form = undefined;
|
|
32
26
|
this.errors = {};
|
|
33
|
-
this.
|
|
27
|
+
this.documents = { service_documentation: [] };
|
|
34
28
|
}
|
|
35
29
|
async validateAndSubmit(onSuccess) {
|
|
36
|
-
|
|
30
|
+
const documentList = Object.values(this.documents).flat();
|
|
31
|
+
this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.productOrService));
|
|
37
32
|
}
|
|
38
33
|
;
|
|
39
34
|
componentWillLoad() {
|
|
@@ -45,21 +40,22 @@ const ProductOrService = /*@__PURE__*/ proxyCustomElement(class ProductOrService
|
|
|
45
40
|
});
|
|
46
41
|
}
|
|
47
42
|
render() {
|
|
48
|
-
var _a, _b;
|
|
49
|
-
return (h("div", { key: '
|
|
43
|
+
var _a, _b, _c;
|
|
44
|
+
return (h("div", { key: '0e2648d399af18f7959bed2e0fff56fd63b541df' }, h("div", { key: '4322c227617147721ab7cf33a5e75a09bc370a0c', class: "row gy-3" }, h("div", { key: 'e2bc9f0642356a864e7fa323262ead13d4825fdc', class: "col-12" }, h("h2", { key: '88af660c9add83da7edc7758d4645db796c80fdf', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: 'dcfb0f64e1b611eb8d53f97950d5922f7358a64c', class: "col-12" }, h("form-control-text", { key: '42959d4b7c03d14fdef29a656a5f18d0d89d3b2e', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '1f4173e79f10a6ac32b860ecbd62fe5c612cc5b2', class: "col-12" }, h("form-control-date", { key: '6e8bab228b3a23655cbf71fe6dc72a850b38947c', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: '2e32f65cc5388302d067fb1a8db34e3e529435c2', class: "col-12" }, h("form-control-file-v2", { key: 'f9fb2ac0c6a2f37a7584eeda2460702b1e0d6cc0', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
|
|
50
45
|
}
|
|
51
46
|
}, [0, "justifi-product-or-service", {
|
|
52
47
|
"disputeResponse": [8, "dispute-response"],
|
|
48
|
+
"documentErrors": [8, "document-errors"],
|
|
53
49
|
"form": [32],
|
|
54
50
|
"errors": [32],
|
|
55
|
-
"
|
|
51
|
+
"documents": [32],
|
|
56
52
|
"validateAndSubmit": [64]
|
|
57
53
|
}]);
|
|
58
54
|
function defineCustomElement() {
|
|
59
55
|
if (typeof customElements === "undefined") {
|
|
60
56
|
return;
|
|
61
57
|
}
|
|
62
|
-
const components = ["justifi-product-or-service", "custom-popper", "form-control-file-v2", "form-control-text", "form-control-tooltip"];
|
|
58
|
+
const components = ["justifi-product-or-service", "custom-popper", "form-control-date", "form-control-file-v2", "form-control-text", "form-control-tooltip"];
|
|
63
59
|
components.forEach(tagName => { switch (tagName) {
|
|
64
60
|
case "justifi-product-or-service":
|
|
65
61
|
if (!customElements.get(tagName)) {
|
|
@@ -67,6 +63,11 @@ function defineCustomElement() {
|
|
|
67
63
|
}
|
|
68
64
|
break;
|
|
69
65
|
case "custom-popper":
|
|
66
|
+
if (!customElements.get(tagName)) {
|
|
67
|
+
defineCustomElement$5();
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
case "form-control-date":
|
|
70
71
|
if (!customElements.get(tagName)) {
|
|
71
72
|
defineCustomElement$4();
|
|
72
73
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, a as create$6, F as FormController } from './form.js';
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
|
|
4
4
|
import { T as heading5 } from './parts.js';
|
|
5
5
|
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
6
6
|
import { d as defineCustomElement$4 } from './form-control-file-v22.js';
|
|
@@ -20,21 +20,15 @@ const RefundPolicy = /*@__PURE__*/ proxyCustomElement(class RefundPolicy extends
|
|
|
20
20
|
this.inputHandler = (name, value) => {
|
|
21
21
|
this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
|
|
22
22
|
};
|
|
23
|
-
this.handleFileSelection = (e) => {
|
|
24
|
-
const target = e.target;
|
|
25
|
-
const name = target.name;
|
|
26
|
-
const files = target.files;
|
|
27
|
-
for (const file of files) {
|
|
28
|
-
this.documentList.push(new DisputeEvidenceDocument(file, name));
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
23
|
this.disputeResponse = undefined;
|
|
24
|
+
this.documentErrors = {};
|
|
32
25
|
this.form = undefined;
|
|
33
26
|
this.errors = {};
|
|
34
|
-
this.
|
|
27
|
+
this.documents = { refund_policy: [], receipt: [] };
|
|
35
28
|
}
|
|
36
29
|
async validateAndSubmit(onSuccess) {
|
|
37
|
-
|
|
30
|
+
const documentList = Object.values(this.documents).flat();
|
|
31
|
+
this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.refundPolicy));
|
|
38
32
|
}
|
|
39
33
|
;
|
|
40
34
|
componentWillLoad() {
|
|
@@ -46,14 +40,15 @@ const RefundPolicy = /*@__PURE__*/ proxyCustomElement(class RefundPolicy extends
|
|
|
46
40
|
});
|
|
47
41
|
}
|
|
48
42
|
render() {
|
|
49
|
-
var _a, _b;
|
|
50
|
-
return (h("div", { key: '
|
|
43
|
+
var _a, _b, _c, _d;
|
|
44
|
+
return (h("div", { key: '882eb01880bcfdde30abe10465fecd7390654ed6' }, h("div", { key: 'de2f238310e4b80976888d147e90047688ad5ada', class: "row gy-3" }, h("div", { key: '305af62aa762ae6abff0678998132e8f56707550', class: "col-12" }, h("h2", { key: '6e224996b82639c426d129bfd28633f3d3839f6f', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'b2b8d444c594bf92d04fed6640230745c5fb49ba', class: "col-12" }, h("form-control-textarea", { key: 'f75c6c360c485ac5253164be5d4941d859deb902', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: '1788d1e6ba1ddbe82795ce1a41b901a81c055f6d', class: "col-12" }, h("form-control-textarea", { key: 'f47fac9b8e0d6b9766311b13c760129bb6335ddd', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: 'd96552fee8b4cdddf31148b2d3783a4e1dfb031b', class: "col-12" }, h("form-control-file-v2", { key: '3c6c06201ef3a730aed41ab6b8cb62d5ee8d8128', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: 'ec2271dd9646596df3106f56c6e96f618196046a', class: "col-12" }, h("form-control-file-v2", { key: '48f956f2580187fc7baecc5426d5ed0a1050150b', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
|
|
51
45
|
}
|
|
52
46
|
}, [0, "justifi-refund-policy", {
|
|
53
47
|
"disputeResponse": [8, "dispute-response"],
|
|
48
|
+
"documentErrors": [8, "document-errors"],
|
|
54
49
|
"form": [32],
|
|
55
50
|
"errors": [32],
|
|
56
|
-
"
|
|
51
|
+
"documents": [32],
|
|
57
52
|
"validateAndSubmit": [64]
|
|
58
53
|
}]);
|
|
59
54
|
function defineCustomElement() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, a as create$6, F as FormController } from './form.js';
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
|
|
4
4
|
import { T as heading5 } from './parts.js';
|
|
5
5
|
import { d as defineCustomElement$7 } from './custom-popper2.js';
|
|
6
6
|
import { d as defineCustomElement$6 } from './form-control-date2.js';
|
|
@@ -24,21 +24,16 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
|
|
|
24
24
|
this.inputHandler = (name, value) => {
|
|
25
25
|
this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
|
|
26
26
|
};
|
|
27
|
-
this.handleFileSelection = (e) => {
|
|
28
|
-
const target = e.target;
|
|
29
|
-
const name = target.name;
|
|
30
|
-
const files = target.files;
|
|
31
|
-
for (const file of files) {
|
|
32
|
-
this.documentList.push(new DisputeEvidenceDocument(file, name));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
27
|
this.disputeResponse = undefined;
|
|
28
|
+
this.documentErrors = {};
|
|
36
29
|
this.form = undefined;
|
|
37
30
|
this.errors = {};
|
|
31
|
+
this.documents = { shipping_documentation: [] };
|
|
38
32
|
this.documentList = [];
|
|
39
33
|
}
|
|
40
34
|
async validateAndSubmit(onSuccess) {
|
|
41
|
-
|
|
35
|
+
const documentList = Object.values(this.documents).flat();
|
|
36
|
+
this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.shippingDetails));
|
|
42
37
|
}
|
|
43
38
|
;
|
|
44
39
|
componentWillLoad() {
|
|
@@ -50,13 +45,15 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
|
|
|
50
45
|
});
|
|
51
46
|
}
|
|
52
47
|
render() {
|
|
53
|
-
var _a, _b, _c, _d;
|
|
54
|
-
return (h("div", { key: '
|
|
48
|
+
var _a, _b, _c, _d, _e;
|
|
49
|
+
return (h("div", { key: '90641cea619de697d7a90e6e397790f79ceb9376' }, h("div", { key: '52d939e26bd26e99240d100897a530b89553e727', class: "row gy-3" }, h("div", { key: '01755fbca3430bd3066377e9481038370c49b2d8', class: "col-12" }, h("h2", { key: 'd273fbe6ff8b7815ba5c2369748a3a20548b0a4d', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '595f4e63dff85591713a4c895acb6628c8ef8214', class: "col-12" }, h("form-control-text", { key: '958169d07544237a72facdc016d4d12ac64a4c48', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '1d3020a30f95c5ced652871a635aba0152bbc4e3', class: "col-12" }, h("form-control-text", { key: '088af20353ec2efcb65a4e597a1fb4aec23cfcbb', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '536ee74c42d326d7f7f698274c846bfebf0d34dd', class: "col-12" }, h("form-control-date", { key: '71ef44bd4c810a567162b7fe92199eceff9be470', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '8887e0daf44be31486563e85cd989eef1da5f5ce', class: "col-12" }, h("form-control-textarea", { key: 'c34093bc4ee65f4fb092c377a98e01cd69bdbc7c', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '469a5d8c7e28fa2ad430f104f08f387448f70048', class: "col-12" }, h("form-control-file-v2", { key: 'a2b6c6c0c1cf32430582b97efe6bcc1d4c47147d', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
|
|
55
50
|
}
|
|
56
51
|
}, [0, "justifi-shipping-details", {
|
|
57
52
|
"disputeResponse": [8, "dispute-response"],
|
|
53
|
+
"documentErrors": [8, "document-errors"],
|
|
58
54
|
"form": [32],
|
|
59
55
|
"errors": [32],
|
|
56
|
+
"documents": [32],
|
|
60
57
|
"documentList": [32],
|
|
61
58
|
"validateAndSubmit": [64]
|
|
62
59
|
}]);
|
|
@@ -8,16 +8,101 @@ import { p as pagingDefaults } from './Pagination.js';
|
|
|
8
8
|
import './Payment.js';
|
|
9
9
|
import './SubAccount.js';
|
|
10
10
|
import './Document.js';
|
|
11
|
+
import { h as convertToLocal } from './utils2.js';
|
|
12
|
+
import { B as Badge, a as BadgeVariant } from './badge.js';
|
|
11
13
|
import { d as defineCustomElement$1 } from './pagination-menu2.js';
|
|
12
14
|
|
|
13
|
-
const
|
|
15
|
+
const MapTerminalOrderStatusToBadge = (status) => {
|
|
16
|
+
const statusToBadgeProps = {
|
|
17
|
+
submitted: {
|
|
18
|
+
variant: BadgeVariant.PRIMARY,
|
|
19
|
+
title: 'This order is submitted',
|
|
20
|
+
text: 'Submitted',
|
|
21
|
+
},
|
|
22
|
+
completed: {
|
|
23
|
+
variant: BadgeVariant.SUCCESS,
|
|
24
|
+
title: 'This order has been completed',
|
|
25
|
+
text: 'Completed',
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const badgeProps = statusToBadgeProps[status];
|
|
29
|
+
return h(Badge, Object.assign({}, badgeProps));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const defaultColumnsKeys = 'created_at,updated_at,order_status,quantity';
|
|
14
33
|
const terminalOrdersTableColumns = {
|
|
15
|
-
|
|
16
|
-
|
|
34
|
+
created_at: () => (h("th", { part: tableHeadCell, scope: "col", title: "The date and time the order was created" }, "Created At")),
|
|
35
|
+
updated_at: () => (h("th", { part: tableHeadCell, scope: "col", title: "The date and time the order was last updated" }, "Updated At")),
|
|
36
|
+
order_status: () => (h("th", { part: tableHeadCell, scope: "col", title: "The current status of the order" }, "Order Status")),
|
|
37
|
+
business_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The business ID associated with the order" }, "Business ID")),
|
|
38
|
+
provider: () => (h("th", { part: tableHeadCell, scope: "col", title: "The provider associated with the order" }, "Provider")),
|
|
39
|
+
order_type: () => (h("th", { part: tableHeadCell, scope: "col", title: "The type of order" }, "Order Type")),
|
|
40
|
+
quantity: () => (h("th", { part: tableHeadCell, scope: "col", title: "The number of terminals associated with the order" }, "Order Quantity")),
|
|
17
41
|
};
|
|
18
42
|
const terminalOrdersTableCells = {
|
|
19
|
-
|
|
20
|
-
|
|
43
|
+
created_at: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) },
|
|
44
|
+
h("div", { class: "fw-bold" }, convertToLocal(terminalOrder.created_at, { showDisplayDate: true })),
|
|
45
|
+
h("div", { class: "fw-bold" }, convertToLocal(terminalOrder.created_at, { showTime: true })))),
|
|
46
|
+
updated_at: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) },
|
|
47
|
+
h("div", { class: "fw-bold" }, convertToLocal(terminalOrder.updated_at, { showDisplayDate: true })),
|
|
48
|
+
h("div", { class: "fw-bold" }, convertToLocal(terminalOrder.updated_at, { showTime: true })))),
|
|
49
|
+
order_status: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, MapTerminalOrderStatusToBadge(terminalOrder.order_status))),
|
|
50
|
+
business_id: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.business_id)),
|
|
51
|
+
provider: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.provider)),
|
|
52
|
+
order_type: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.order_type)),
|
|
53
|
+
quantity: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.terminals.length)),
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const id = null;
|
|
57
|
+
const type = "array";
|
|
58
|
+
const page_info = {
|
|
59
|
+
has_previous: false,
|
|
60
|
+
has_next: false,
|
|
61
|
+
start_cursor: "mockCursorPage1",
|
|
62
|
+
end_cursor: "mockCursorPage2",
|
|
63
|
+
amount: 2
|
|
64
|
+
};
|
|
65
|
+
const data = [
|
|
66
|
+
{
|
|
67
|
+
id: "tord_ABCD1234",
|
|
68
|
+
business_id: "biz_0987",
|
|
69
|
+
account_id: "acc_5678",
|
|
70
|
+
provider: "verifone",
|
|
71
|
+
order_type: "boarding_only",
|
|
72
|
+
order_status: "submitted",
|
|
73
|
+
terminals: [
|
|
74
|
+
{
|
|
75
|
+
terminal_id: "tmn_QWER",
|
|
76
|
+
terminal_did: "11112222",
|
|
77
|
+
model_name: "v400"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
created_at: "2025-01-02T10:30:00Z",
|
|
81
|
+
updated_at: "2025-01-02T10:45:00Z"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: "tord_WXYZ5678",
|
|
85
|
+
business_id: "biz_1234",
|
|
86
|
+
account_id: "acc_4321",
|
|
87
|
+
provider: "verifone",
|
|
88
|
+
order_type: "boarding_shipping",
|
|
89
|
+
order_status: "completed",
|
|
90
|
+
terminals: [
|
|
91
|
+
{
|
|
92
|
+
terminal_id: "tmn_ASDF",
|
|
93
|
+
terminal_did: "33334444",
|
|
94
|
+
model_name: "e355"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
created_at: "2025-02-10T09:20:00Z",
|
|
98
|
+
updated_at: "2025-02-10T09:25:00Z"
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
const mockTerminalOrders = {
|
|
102
|
+
id: id,
|
|
103
|
+
type: type,
|
|
104
|
+
page_info: page_info,
|
|
105
|
+
data: data
|
|
21
106
|
};
|
|
22
107
|
|
|
23
108
|
const TerminalOrdersListCore = /*@__PURE__*/ proxyCustomElement(class TerminalOrdersListCore extends HTMLElement {
|
|
@@ -39,7 +124,7 @@ const TerminalOrdersListCore = /*@__PURE__*/ proxyCustomElement(class TerminalOr
|
|
|
39
124
|
};
|
|
40
125
|
this.getTerminalOrders = undefined;
|
|
41
126
|
this.columns = undefined;
|
|
42
|
-
this.terminalOrders =
|
|
127
|
+
this.terminalOrders = mockTerminalOrders.data;
|
|
43
128
|
this.terminalOrdersTable = undefined;
|
|
44
129
|
this.loading = true;
|
|
45
130
|
this.errorMessage = undefined;
|
|
@@ -73,7 +158,7 @@ const TerminalOrdersListCore = /*@__PURE__*/ proxyCustomElement(class TerminalOr
|
|
|
73
158
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
74
159
|
}
|
|
75
160
|
render() {
|
|
76
|
-
return (h("div", { key: '
|
|
161
|
+
return (h("div", { key: 'e07bb592d2d419079a00fe017789c98dc5814202' }, h("div", { key: '1090df8ad75e0fdcd07a625c608c2fc0d38391d9', class: "table-wrapper" }, h("table", { key: '31637db0926f2cd88d1333d5f512842406b1e0ef', class: "table table-hover", part: table }, h("thead", { key: '2af2d35a486433b2cb2bab0b7d61d4be9e8d70ab', class: "table-head sticky-top" }, h("tr", { key: 'a42e578f3369b6466a331abeb34d63d9c09c0122', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '16c4a9e940268fe2da49a9b14680d34a0f160ccc', class: "table-body" }, h(TableLoadingState, { key: 'a1ce6dcc9799bdd215b5d686d05e3014e594d975', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '135df5499de4e17855643d8ce4ebeb7f71aa5e85', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: '00d2f0bc0bceb46178970c1eb0a0eb87c6fa6054', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '49ce37b7ea5e979c8d754d48b9c803a163623387', class: "sticky-bottom" }, h("tr", { key: 'b73f32023e01d82c3eb91120c7eae907a9367517', class: "table-light align-middle" }, h("td", { key: 'cae073d169507d459d60f150fecbaad287996c74', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '9a9fa1cd2c520ee09814adf6d060d048bd77dcc1', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
77
162
|
}
|
|
78
163
|
static get watchers() { return {
|
|
79
164
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TerminalQuantitySelector extends Components.TerminalQuantitySelector, HTMLElement {}
|
|
4
|
+
export const TerminalQuantitySelector: {
|
|
5
|
+
prototype: TerminalQuantitySelector;
|
|
6
|
+
new (): TerminalQuantitySelector;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { T as TerminalQuantitySelector$1, d as defineCustomElement$1 } from './terminal-quantity-selector2.js';
|
|
2
|
+
|
|
3
|
+
const TerminalQuantitySelector = TerminalQuantitySelector$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { TerminalQuantitySelector, defineCustomElement };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { t as text, a6 as image, v as buttonLink } from './parts.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './custom-popper2.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
5
|
+
|
|
6
|
+
const TerminalQuantitySelector = /*@__PURE__*/ proxyCustomElement(class TerminalQuantitySelector extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.selectedQuantityChange = createEvent(this, "selectedQuantityChange", 7);
|
|
11
|
+
this.removeUnit = () => {
|
|
12
|
+
if (this.selectedQuantity > 0) {
|
|
13
|
+
this.selectedQuantity--;
|
|
14
|
+
this.selectedQuantityChange.emit({ modelName: this.modelName, quantity: this.selectedQuantity });
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
this.addUnit = () => {
|
|
18
|
+
if (this.limit > 0) {
|
|
19
|
+
this.selectedQuantity++;
|
|
20
|
+
this.selectedQuantityChange.emit({ modelName: this.modelName, quantity: this.selectedQuantity });
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
this.modelName = undefined;
|
|
24
|
+
this.imageUrl = undefined;
|
|
25
|
+
this.description = undefined;
|
|
26
|
+
this.helpUrl = undefined;
|
|
27
|
+
this.limit = Infinity;
|
|
28
|
+
this.selectedQuantity = 0;
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h("div", { key: 'a357a6bd3454287325a10d381d4587c39552e2a6', class: "rounded shadow-sm", part: text }, h("div", { key: '9e34e99cf6f5cefd4ef28c0fb98ad163d331c5d8', class: "d-flex gap-3" }, h("div", { key: '2dad93d7ad2cdecfd0848862bfc6a30bf0900ae6', class: "d-flex align-items-center" }, h("img", { key: '91929adc5f870eb024226a90d699ae68705f80ec', src: this.imageUrl, alt: this.modelName, height: 125, width: 125, part: image })), h("div", { key: '2fdd8c22699c09830f20f39a86a1e306702dc435', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'f25c1fbe3b6bc4cb2f262e7acce3232e3a726d7d', class: "row" }, h("div", { key: 'b18358391814b283ee5f9f4984301a3c44340986', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '2c2dc0b58140144b63be06ad273b9567ca107d9a', helpText: this.description })), h("div", { key: '7b20f58d55f9413d04185df7ecc04ebe37a3854e', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: '27d472613a8146985bfb2f7f9149ac97d71039a5', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: '45136a5b9dcb7aeeb58407f51fbb76c0f924ff93', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: 'e07c48829ebe9106d4a26e9a17728ecef01574b6', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
|
|
32
|
+
}
|
|
33
|
+
}, [0, "terminal-quantity-selector", {
|
|
34
|
+
"modelName": [1, "model-name"],
|
|
35
|
+
"imageUrl": [1, "image-url"],
|
|
36
|
+
"description": [1],
|
|
37
|
+
"helpUrl": [1, "help-url"],
|
|
38
|
+
"limit": [2],
|
|
39
|
+
"selectedQuantity": [32]
|
|
40
|
+
}]);
|
|
41
|
+
function defineCustomElement() {
|
|
42
|
+
if (typeof customElements === "undefined") {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const components = ["terminal-quantity-selector", "custom-popper", "form-control-tooltip"];
|
|
46
|
+
components.forEach(tagName => { switch (tagName) {
|
|
47
|
+
case "terminal-quantity-selector":
|
|
48
|
+
if (!customElements.get(tagName)) {
|
|
49
|
+
customElements.define(tagName, TerminalQuantitySelector);
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
case "custom-popper":
|
|
53
|
+
if (!customElements.get(tagName)) {
|
|
54
|
+
defineCustomElement$2();
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
57
|
+
case "form-control-tooltip":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
defineCustomElement$1();
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
} });
|
|
63
|
+
}
|
|
64
|
+
defineCustomElement();
|
|
65
|
+
|
|
66
|
+
export { TerminalQuantitySelector as T, defineCustomElement as d };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { A as Api } from './Api.js';
|
|
2
|
+
import './ComponentError.js';
|
|
3
|
+
import './Checkout.js';
|
|
4
|
+
import './Pagination.js';
|
|
5
|
+
import './Payment.js';
|
|
6
|
+
import './SubAccount.js';
|
|
7
|
+
import './Document.js';
|
|
8
|
+
|
|
9
|
+
class TerminalService {
|
|
10
|
+
async fetchTerminals(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
11
|
+
const headers = { Account: accountId };
|
|
12
|
+
const api = Api({ authToken, apiOrigin });
|
|
13
|
+
const endpoint = 'terminals';
|
|
14
|
+
return api.get(endpoint, params, null, headers);
|
|
15
|
+
}
|
|
16
|
+
async fetchTerminal(terminalId, authToken, apiOrigin = "https://wc-proxy.justifi.ai") {
|
|
17
|
+
const endpoint = `terminals/${terminalId}`;
|
|
18
|
+
return Api({ authToken, apiOrigin: apiOrigin }).get(endpoint);
|
|
19
|
+
}
|
|
20
|
+
async fetchTerminalModels(accountId, authToken, apiOrigin = "") {
|
|
21
|
+
const headers = { 'sub-account': accountId };
|
|
22
|
+
const api = Api({ authToken, apiOrigin });
|
|
23
|
+
const endpoint = 'terminals/order_models';
|
|
24
|
+
return api.get(endpoint, null, null, headers);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { TerminalService as T };
|
|
@@ -35,15 +35,17 @@ const MapTerminalStatusToBadge = (status) => {
|
|
|
35
35
|
return h(Badge, Object.assign({}, badgeProps));
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
const defaultColumnsKeys = 'nickname,
|
|
38
|
+
const defaultColumnsKeys = 'nickname,provider_serial_number,status';
|
|
39
39
|
const terminalTableColumns = {
|
|
40
40
|
nickname: () => (h("th", { part: tableHeadCell, scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
|
|
41
|
-
|
|
41
|
+
provider_serial_number: () => (h("th", { part: tableHeadCell, scope: "col", title: "The serial number of the terminal" }, "Serial Number")),
|
|
42
|
+
provider_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
|
|
42
43
|
sub_account_name: () => (h("th", { part: tableHeadCell, scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
|
|
43
44
|
status: () => (h("th", { part: tableHeadCell, scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
44
45
|
};
|
|
45
46
|
const terminalTableCells = {
|
|
46
47
|
nickname: (terminal, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminal.nickname)),
|
|
48
|
+
provider_serial_number: (terminal, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminal.provider_serial_number)),
|
|
47
49
|
provider_id: (terminal, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminal.provider_id)),
|
|
48
50
|
sub_account_name: (terminal, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminal.sub_account_name)),
|
|
49
51
|
status: (terminal, index) => (h("td", { part: getAlternateTableCellPart(index) }, MapTerminalStatusToBadge(terminal.status))),
|
|
@@ -171,7 +173,7 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
|
|
|
171
173
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
172
174
|
}
|
|
173
175
|
render() {
|
|
174
|
-
return (h("div", { key: '
|
|
176
|
+
return (h("div", { key: 'd700224838a23855b9cce179c23d40da07fd37ce' }, h("div", { key: '0a03d361d4482342edc5db06209f87a83735791f', class: "table-wrapper" }, h("table", { key: '690d3b7ea58065281171e005252d4969f6284719', class: "table table-hover", part: table }, h("thead", { key: 'c92fc6c7514afc995e0d4e148d715b69c96118cd', class: "table-head sticky-top" }, h("tr", { key: 'bfeff664d29eac8f52e12adf40841b74711e9de2', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '0e8c69e12b8a64020e1b10af92ce05f7e1864d28', class: "table-body" }, h(TableLoadingState, { key: '3fef62d6146938773a52c88f178438004d46f1eb', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'caec9eb5131fd8037e5cdccaf6c29d2f7f91ed7e', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: 'bd597887c2441bc070ff8ca9ec8d03564e62b9eb', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'ec61caec8ae1de6f106221f21827a89dfcad5b05', class: "sticky-bottom" }, h("tr", { key: 'e99c4133f365a7fefdc18d4a8bae9ac67b877fbd', class: "table-light align-middle" }, h("td", { key: 'ed22056d675baa32eef0bcc7fd2a4ae659d563aa', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '8dffd0065bb7d74b43d2a56a5c0356d84301e58b', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
175
177
|
}
|
|
176
178
|
static get watchers() { return {
|
|
177
179
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -133,6 +133,10 @@ export declare enum ICheckoutPaymentMode {
|
|
|
133
133
|
card_present = "Card Present",
|
|
134
134
|
unknown = ""
|
|
135
135
|
}
|
|
136
|
+
export declare enum ICheckoutPaymentModeParam {
|
|
137
|
+
bnpl = "bnpl",
|
|
138
|
+
ecom = "ecom"
|
|
139
|
+
}
|
|
136
140
|
export declare enum ICheckoutStatus {
|
|
137
141
|
created = "created",
|
|
138
142
|
completed = "completed",
|
|
@@ -15,6 +15,7 @@ export interface ITerminal {
|
|
|
15
15
|
gateway_ref_id?: string | null;
|
|
16
16
|
provider?: string | null;
|
|
17
17
|
provider_id?: string | null;
|
|
18
|
+
provider_serial_number?: string | null;
|
|
18
19
|
created_at?: string | null;
|
|
19
20
|
updated_at?: string | null;
|
|
20
21
|
verified_at?: string | null;
|
|
@@ -30,6 +31,7 @@ export declare class Terminal implements ITerminal {
|
|
|
30
31
|
platform_account_id: string;
|
|
31
32
|
provider: string;
|
|
32
33
|
provider_id: string;
|
|
34
|
+
provider_serial_number: string;
|
|
33
35
|
created_at: string;
|
|
34
36
|
updated_at: string;
|
|
35
37
|
verified_at: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum TerminalModelName {
|
|
2
|
+
v400 = "v400",
|
|
3
|
+
p400 = "p400+",
|
|
4
|
+
e285 = "e285"
|
|
5
|
+
}
|
|
6
|
+
export interface ITerminalModel {
|
|
7
|
+
id: string;
|
|
8
|
+
model_name: TerminalModelName;
|
|
9
|
+
description: string;
|
|
10
|
+
image_url: string;
|
|
11
|
+
help_url: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ITerminalModelApiResponse {
|
|
14
|
+
id: string;
|
|
15
|
+
model_name: TerminalModelName;
|
|
16
|
+
description: string;
|
|
17
|
+
image_url: string;
|
|
18
|
+
help_url: string;
|
|
19
|
+
}
|
|
20
|
+
export interface iTerminalModelsApiResponse {
|
|
21
|
+
terminal_models: ITerminalModelApiResponse[];
|
|
22
|
+
order_limit: number;
|
|
23
|
+
}
|
|
24
|
+
export declare class TerminalModel implements ITerminalModel {
|
|
25
|
+
id: string;
|
|
26
|
+
model_name: TerminalModelName;
|
|
27
|
+
description: string;
|
|
28
|
+
image_url: string;
|
|
29
|
+
help_url: string;
|
|
30
|
+
constructor(data: ITerminalModelApiResponse);
|
|
31
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { TerminalProviders } from './Terminal';
|
|
2
|
+
import { TerminalModelName } from './TerminalModel';
|
|
3
|
+
declare enum TerminalOrderType {
|
|
4
|
+
boardingOnly = "boarding_only",
|
|
5
|
+
boardingShipping = "boarding_shipping"
|
|
6
|
+
}
|
|
7
|
+
export declare enum TerminalOrderStatus {
|
|
8
|
+
submitted = "submitted",
|
|
9
|
+
completed = "completed"
|
|
10
|
+
}
|
|
11
|
+
interface OrderedTerminal {
|
|
12
|
+
terminal_id: string;
|
|
13
|
+
terminal_did: string;
|
|
14
|
+
model_name: TerminalModelName;
|
|
15
|
+
}
|
|
16
|
+
interface TerminalOrderItem {
|
|
17
|
+
model_name: TerminalModelName;
|
|
18
|
+
quantity: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ITerminalOrder {
|
|
21
|
+
id?: string;
|
|
22
|
+
business_id?: string;
|
|
23
|
+
account_id?: string;
|
|
24
|
+
provider?: TerminalProviders;
|
|
25
|
+
order_type?: TerminalOrderType;
|
|
26
|
+
order_status?: TerminalOrderStatus;
|
|
27
|
+
terminals?: OrderedTerminal[];
|
|
28
|
+
created_at?: string;
|
|
29
|
+
updated_at?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class TerminalOrder {
|
|
32
|
+
id: string;
|
|
33
|
+
business_id: string;
|
|
34
|
+
account_id: string;
|
|
35
|
+
provider: TerminalProviders;
|
|
36
|
+
order_type: TerminalOrderType;
|
|
37
|
+
order_status: TerminalOrderStatus;
|
|
38
|
+
terminals: OrderedTerminal[];
|
|
39
|
+
order_items: TerminalOrderItem[];
|
|
40
|
+
created_at: string;
|
|
41
|
+
updated_at: string;
|
|
42
|
+
constructor(data: ITerminalOrder);
|
|
43
|
+
get payload(): {
|
|
44
|
+
business_id: string;
|
|
45
|
+
account_id: string;
|
|
46
|
+
provider: TerminalProviders;
|
|
47
|
+
order_type: TerminalOrderType;
|
|
48
|
+
order_items: TerminalOrderItem[];
|
|
49
|
+
};
|
|
50
|
+
get totalQuantity(): number;
|
|
51
|
+
updateTerminal(model_name: TerminalModelName, quantity: number): void;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -8,6 +8,8 @@ export * from './Pagination';
|
|
|
8
8
|
export * from './Payment';
|
|
9
9
|
export * from './Payout';
|
|
10
10
|
export * from './Terminal';
|
|
11
|
+
export * from './TerminalOrder';
|
|
12
|
+
export * from './TerminalModel';
|
|
11
13
|
export * from './SubAccount';
|
|
12
14
|
export * from './Document';
|
|
13
15
|
export { BankAccount, IBankAccount } from './BankAccount';
|