@justifi/webcomponents 5.3.4 → 5.3.6
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/{Checkout-1c07dc32.js → Checkout-eef27045.js} +11 -6
- package/dist/cjs/{SubAccount-b4811a8e.js → SubAccount-df3d28dc.js} +70 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-86a6a7f8.js → badge-79e56b99.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-797bb3cc.js} +1 -1
- package/dist/cjs/{Analytics-2fb20059.js → check-pkg-version-1f8b660c.js} +21 -1
- package/dist/cjs/{checkout.service-b23994d2.js → checkout.service-c01e2cd7.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{checkouts-table-cf3e245e.js → checkouts-table-61543249.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-399de502.js} +2 -2
- package/dist/cjs/{table-fc82fa81.js → event-types-666f1f22.js} +9 -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-b782cdd0.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-ca3c8155.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-11a983a0.js} +2 -2
- package/dist/cjs/{get-subaccounts-b2e6ab82.js → get-subaccounts-224f9497.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-b202dbbb.js → header-1-ff669f3f.js} +1 -1
- package/dist/cjs/{header-3-5f78acd1.js → header-3-f6642390.js} +1 -1
- package/dist/cjs/{insurance-state-ba0c39a9.js → insurance-state-66c9bea7.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 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
- 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 +7 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +31 -25
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -6
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +187 -41
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
- 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 -6
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +79 -13
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -26
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +9 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-e8aa0c51.js → package-d34fcfa5.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-c2655003.js → parts-1fb925c2.js} +3 -5
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-f53022c3.js → payment.service-f369b33c.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +10 -11
- package/dist/cjs/{payments-status-92abe577.js → payments-status-ffdc54ff.js} +1 -1
- package/dist/cjs/{payments-table-c58e3ca8.js → payments-table-98b4e5e3.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +10 -11
- package/dist/cjs/{payouts-status-703d62af.js → payouts-status-64fd0c68.js} +1 -1
- package/dist/cjs/{payouts-table-70fc1498.js → payouts-table-ecfb826b.js} +2 -2
- package/dist/cjs/{skeleton-84102a44.js → skeleton-2ae76f16.js} +1 -1
- package/dist/cjs/{spinner-70f38e5e.js → spinner-15764f3c.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +31 -11
- package/dist/cjs/terminal-orders-table-f1bed365.js +56 -0
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +36 -0
- package/dist/cjs/terminal.service-4fd34835.js +35 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{terminals-table-db58a0c0.js → terminals-table-30298ce4.js} +6 -4
- package/dist/cjs/{utils-7c5b2837.js → utils-3e3b8061.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/actions/terminal/get-terminal-orders.js +34 -0
- package/dist/collection/actions/terminal/order-terminals.js +29 -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 +11 -0
- package/dist/collection/api/services/terminal_orders.service.js +9 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
- 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-loading.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +159 -35
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector-loading.js +5 -0
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +153 -0
- 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 +23 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +53 -7
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +52 -11
- package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +17 -5
- 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 +530 -50
- package/dist/esm/{Checkout-919eb1ba.js → Checkout-2bc873fb.js} +6 -1
- package/dist/esm/{SubAccount-9aad3891.js → SubAccount-dbd4e50c.js} +69 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-2eb79416.js → badge-6f5acf30.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-79dcea75.js} +1 -1
- package/dist/esm/{Analytics-759c7da5.js → check-pkg-version-8e7e585e.js} +21 -2
- package/dist/esm/{checkout.service-bb45d248.js → checkout.service-382a16ec.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +7 -8
- package/dist/esm/{checkouts-table-53981285.js → checkouts-table-8a53cef9.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-97887804.js} +2 -2
- package/dist/esm/{table-e287f1c0.js → event-types-82515a49.js} +10 -3
- 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-466c252b.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-242916e3.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-6826271a.js} +2 -2
- package/dist/esm/{get-subaccounts-3af0844a.js → get-subaccounts-f21220dc.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-797ca789.js → header-1-b43590e5.js} +1 -1
- package/dist/esm/{header-3-544afa0b.js → header-3-b90e161e.js} +1 -1
- package/dist/esm/{insurance-state-307335d6.js → insurance-state-9e4a3359.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 +4 -5
- package/dist/esm/justifi-business-form.entry.js +8 -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 -7
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +9 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +5 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +30 -24
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -5
- package/dist/esm/justifi-order-terminals.entry.js +187 -41
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +7 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +10 -11
- package/dist/esm/justifi-payout-details.entry.js +7 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +11 -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 +4 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +80 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminals-list.entry.js +11 -24
- package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-49477570.js → package-46c7f3a6.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-489f0af6.js → parts-2c5c609b.js} +3 -4
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment.service-a8ee345c.js → payment.service-a8aa5be7.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +9 -10
- package/dist/esm/{payments-status-35255b2c.js → payments-status-6e203ce4.js} +1 -1
- package/dist/esm/{payments-table-6e97396a.js → payments-table-4c6093e1.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +9 -10
- package/dist/esm/{payouts-status-a0cc00c5.js → payouts-status-66e830f1.js} +1 -1
- package/dist/esm/{payouts-table-6b8ba8f1.js → payouts-table-46fbedb6.js} +2 -2
- package/dist/esm/{skeleton-74fbfb68.js → skeleton-122648e6.js} +1 -1
- package/dist/esm/{spinner-6b708842.js → spinner-14cd9ac7.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +30 -10
- package/dist/esm/terminal-orders-table-83b905fd.js +52 -0
- package/dist/esm/terminal-quantity-selector.entry.js +32 -0
- package/dist/esm/terminal.service-20445fc1.js +33 -0
- package/dist/esm/terminals-list-core.entry.js +8 -9
- package/dist/esm/{terminals-table-c6258344.js → terminals-table-dbbf9a99.js} +6 -4
- package/dist/esm/{utils-6c26bccc.js → utils-4cb0d852.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/check-pkg-version.js +80 -1
- package/dist/module/checkouts-list-core2.js +1 -2
- 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/dispute-response.js +1 -2
- package/dist/module/duplicate-charge.js +9 -14
- package/dist/module/electronic-evidence.js +9 -14
- package/dist/module/event-types2.js +55 -1
- 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-business-details.js +1 -2
- package/dist/module/justifi-business-form.js +1 -2
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-checkouts-list.js +1 -2
- package/dist/module/justifi-dispute-management.js +1 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-order-terminals.js +211 -41
- package/dist/module/justifi-payment-details.js +1 -2
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -3
- package/dist/module/justifi-payout-details.js +1 -2
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -3
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -2
- package/dist/module/justifi-terminal-orders-list.js +75 -12
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +4 -18
- package/dist/module/justifi-tokenize-payment-method.js +3 -4
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +3 -4
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-provisioning-core.js +2 -2
- package/dist/module/payments-list-core2.js +2 -3
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +2 -3
- 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 +67 -10
- 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 +33 -0
- package/dist/module/terminals-list-core2.js +6 -5
- package/dist/types/actions/terminal/get-terminal-models.d.ts +8 -0
- package/dist/types/actions/terminal/get-terminal-orders.d.ts +11 -0
- package/dist/types/actions/terminal/order-terminals.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 +4 -0
- package/dist/types/api/services/terminal_orders.service.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -1
- 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 +30 -3
- package/dist/types/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector-loading.d.ts +1 -0
- package/dist/types/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.d.ts +17 -0
- 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 +7 -5
- package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +8 -2
- package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +16 -5
- package/dist/types/components/terminals-list/terminals-table.d.ts +3 -1
- package/dist/types/components.d.ts +87 -8
- package/dist/types/global.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +2 -0
- package/dist/webcomponents/p-0137575f.entry.js +1 -0
- package/dist/webcomponents/{p-f7d9ea0b.entry.js → p-030a8806.entry.js} +1 -1
- package/dist/webcomponents/p-039a09b8.entry.js +1 -0
- package/dist/webcomponents/{p-29688e30.js → p-046ecd01.js} +1 -1
- package/dist/webcomponents/{p-1278dedf.js → p-087758d3.js} +1 -1
- package/dist/webcomponents/{p-060896c4.entry.js → p-0a60d356.entry.js} +1 -1
- package/dist/webcomponents/p-0ba77d53.entry.js +1 -0
- package/dist/webcomponents/p-0c22225c.entry.js +1 -0
- package/dist/webcomponents/{p-5a96a2a2.entry.js → p-0cefd846.entry.js} +1 -1
- package/dist/webcomponents/{p-ae271c06.entry.js → p-10a14943.entry.js} +1 -1
- package/dist/webcomponents/p-10e32428.entry.js +1 -0
- package/dist/webcomponents/p-1705af62.js +1 -0
- package/dist/webcomponents/{p-553dba95.entry.js → p-19b8c3c8.entry.js} +1 -1
- package/dist/webcomponents/p-1a48d917.entry.js +1 -0
- package/dist/webcomponents/{p-300a99ee.js → p-1e300d41.js} +1 -1
- package/dist/webcomponents/p-2027145a.entry.js +1 -0
- package/dist/webcomponents/p-222fa126.entry.js +1 -0
- package/dist/webcomponents/{p-a31ba276.entry.js → p-33a17e80.entry.js} +1 -1
- package/dist/webcomponents/p-34e18d17.entry.js +1 -0
- package/dist/webcomponents/{p-e3e0d791.entry.js → p-36edba41.entry.js} +1 -1
- package/dist/webcomponents/p-3732aa87.js +1 -0
- package/dist/webcomponents/p-382ab4e8.js +1 -0
- package/dist/webcomponents/p-3947a309.entry.js +1 -0
- package/dist/webcomponents/p-3cbdca1b.js +1 -0
- package/dist/webcomponents/{p-939d0a35.entry.js → p-4d5c553d.entry.js} +1 -1
- package/dist/webcomponents/{p-8b16a20f.js → p-547b51e9.js} +1 -1
- package/dist/webcomponents/p-5ee67fad.js +1 -0
- package/dist/webcomponents/p-5efe9572.entry.js +1 -0
- package/dist/webcomponents/p-638b91ff.entry.js +1 -0
- package/dist/webcomponents/{p-e007002a.entry.js → p-685c7028.entry.js} +1 -1
- package/dist/webcomponents/{p-14f40baa.js → p-694078d2.js} +1 -1
- package/dist/webcomponents/p-69ac2640.entry.js +1 -0
- package/dist/webcomponents/p-6a2d6298.entry.js +1 -0
- package/dist/webcomponents/{p-b57cfe54.entry.js → p-6ef3de11.entry.js} +1 -1
- package/dist/webcomponents/p-71897cbc.js +1 -0
- package/dist/webcomponents/{p-4fbdf440.entry.js → p-759f25a1.entry.js} +1 -1
- package/dist/webcomponents/p-7dc9fb75.js +1 -0
- package/dist/webcomponents/p-7e93eac9.entry.js +1 -0
- package/dist/webcomponents/p-7ed52fbc.entry.js +1 -0
- package/dist/webcomponents/{p-8a7266b4.js → p-8066b866.js} +1 -1
- package/dist/webcomponents/p-830f0971.entry.js +1 -0
- package/dist/webcomponents/{p-020e7d5d.entry.js → p-833ef79e.entry.js} +1 -1
- package/dist/webcomponents/p-8971f9da.entry.js +1 -0
- package/dist/webcomponents/p-8c461ebc.entry.js +1 -0
- package/dist/webcomponents/p-8fad4359.entry.js +1 -0
- package/dist/webcomponents/{p-dfebd7a4.js → p-9dc9aaba.js} +1 -1
- package/dist/webcomponents/p-9f1a3199.js +1 -0
- package/dist/webcomponents/{p-19063270.entry.js → p-a07afdcc.entry.js} +1 -1
- package/dist/webcomponents/p-a173ccd5.entry.js +1 -0
- package/dist/webcomponents/p-a3d75257.js +1 -0
- package/dist/webcomponents/p-a957612b.entry.js +1 -0
- package/dist/webcomponents/p-aa21cdb1.entry.js +1 -0
- package/dist/webcomponents/p-aa923138.entry.js +1 -0
- package/dist/webcomponents/p-ad473d5c.entry.js +1 -0
- package/dist/webcomponents/p-b11468b5.entry.js +1 -0
- package/dist/webcomponents/{p-3b680e50.js → p-b5addd78.js} +1 -1
- package/dist/webcomponents/p-b62403c2.entry.js +1 -0
- package/dist/webcomponents/{p-bfe339d5.js → p-b69beb1c.js} +1 -1
- package/dist/webcomponents/{p-78a204f9.entry.js → p-b76f755a.entry.js} +1 -1
- package/dist/webcomponents/p-b8ee505d.entry.js +1 -0
- package/dist/webcomponents/p-b92aac9b.entry.js +1 -0
- package/dist/webcomponents/{p-fea43254.entry.js → p-b92f125b.entry.js} +1 -1
- package/dist/webcomponents/{p-a90d8f4f.entry.js → p-bd2340f7.entry.js} +1 -1
- package/dist/webcomponents/{p-b2d57b2c.entry.js → p-bd2d9d29.entry.js} +1 -1
- package/dist/webcomponents/p-bdf0ab42.js +1 -0
- package/dist/webcomponents/p-c406c0fa.js +1 -0
- package/dist/webcomponents/{p-09496255.js → p-c54f54ed.js} +1 -1
- package/dist/webcomponents/p-c5cc443e.entry.js +1 -0
- package/dist/webcomponents/p-cd68707b.entry.js +1 -0
- package/dist/webcomponents/p-d5a481e4.entry.js +1 -0
- package/dist/webcomponents/{p-389e1eb7.js → p-daf0303f.js} +1 -1
- package/dist/webcomponents/p-e366ef1e.js +1 -0
- package/dist/webcomponents/p-e400e31f.entry.js +1 -0
- package/dist/webcomponents/{p-235abbd1.entry.js → p-e4514af8.entry.js} +1 -1
- package/dist/webcomponents/{p-06f5b709.js → p-e60867c6.js} +1 -1
- package/dist/webcomponents/{p-89ecfbf4.entry.js → p-e754d8e7.entry.js} +1 -1
- package/dist/webcomponents/p-eb05bd1e.entry.js +1 -0
- package/dist/webcomponents/p-ede13cc8.js +1 -0
- package/dist/webcomponents/{p-df2559c7.js → p-ee9d433f.js} +1 -1
- package/dist/webcomponents/{p-ebbe93ac.entry.js → p-f04dbd80.entry.js} +1 -1
- package/dist/webcomponents/p-f2111e68.js +1 -0
- package/dist/webcomponents/p-f3061f2a.entry.js +1 -0
- package/dist/webcomponents/{p-906a6027.js → p-fa987dcf.js} +1 -1
- package/dist/webcomponents/p-fae67ab3.js +1 -0
- package/dist/webcomponents/p-fd4607f9.entry.js +1 -0
- package/dist/webcomponents/p-ffd0c24b.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/check-pkg-version-f5a3d421.js +0 -24
- package/dist/cjs/event-types-b6d34593.js +0 -8
- package/dist/cjs/terminal-orders-table-61081532.js +0 -18
- package/dist/esm/check-pkg-version-1d6e48c8.js +0 -22
- package/dist/esm/event-types-0a83d0b4.js +0 -8
- package/dist/esm/terminal-orders-table-765c44d5.js +0 -14
- package/dist/module/Analytics.js +0 -82
- package/dist/module/table.js +0 -55
- package/dist/webcomponents/p-08a17c5c.entry.js +0 -1
- package/dist/webcomponents/p-0b38cfbf.js +0 -1
- package/dist/webcomponents/p-0f4d851d.entry.js +0 -1
- package/dist/webcomponents/p-1aa22806.js +0 -1
- package/dist/webcomponents/p-1f4e26f3.entry.js +0 -1
- package/dist/webcomponents/p-1f99a902.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-39a63e0c.entry.js +0 -1
- package/dist/webcomponents/p-3ab7a49e.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-4a71c90b.entry.js +0 -1
- package/dist/webcomponents/p-4b6256e0.entry.js +0 -1
- package/dist/webcomponents/p-53b660a3.entry.js +0 -1
- package/dist/webcomponents/p-56697a12.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-670296bf.entry.js +0 -1
- package/dist/webcomponents/p-75b7dfe7.entry.js +0 -1
- package/dist/webcomponents/p-794cce10.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-7ee5a90e.entry.js +0 -1
- package/dist/webcomponents/p-8548edd6.entry.js +0 -1
- package/dist/webcomponents/p-9055aa6e.entry.js +0 -1
- package/dist/webcomponents/p-9a4d0e1d.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-a6b66c88.entry.js +0 -1
- package/dist/webcomponents/p-acca56ec.entry.js +0 -1
- package/dist/webcomponents/p-af945fc0.entry.js +0 -1
- package/dist/webcomponents/p-c2196cb8.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-d279545a.entry.js +0 -1
- package/dist/webcomponents/p-d398ce81.js +0 -1
- package/dist/webcomponents/p-d432f0fd.entry.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-fa843aad.entry.js +0 -1
- package/dist/webcomponents/p-fc3d2a9e.entry.js +0 -1
- package/dist/webcomponents/p-ff1f2d65.js +0 -1
|
@@ -8,62 +8,131 @@ import { ErrorState } from "../../ui-components/details/utils";
|
|
|
8
8
|
import { Business } from "../../api/Business";
|
|
9
9
|
import { makeGetBusiness } from "../../actions/business/get-business";
|
|
10
10
|
import { OrderTerminalsLoading } from "./order-terminals-loading";
|
|
11
|
-
import {
|
|
11
|
+
import { buttonPrimary, heading4, heading5, text } from "../../styles/parts";
|
|
12
|
+
import { TerminalSelectorLoading } from "./terminal-quantity-selector/terminal-quantity-selector-loading";
|
|
13
|
+
import { makeGetTerminalModels } from "../../actions/terminal/get-terminal-models";
|
|
14
|
+
import { TerminalService } from "../../api/services/terminal.service";
|
|
15
|
+
import { TerminalOrder, TerminalOrderType } from "../../api/TerminalOrder";
|
|
16
|
+
import { makeOrderTerminals } from "../../actions/terminal/order-terminals";
|
|
12
17
|
export class OrderTerminals {
|
|
13
18
|
constructor() {
|
|
14
19
|
this.businessId = undefined;
|
|
15
20
|
this.authToken = undefined;
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
21
|
+
this.accountId = undefined;
|
|
22
|
+
this.shipping = false;
|
|
23
|
+
this.loading = {
|
|
24
|
+
business: true,
|
|
25
|
+
terminals: true,
|
|
26
|
+
};
|
|
27
|
+
this.submitting = false;
|
|
28
|
+
this.error = null;
|
|
18
29
|
this.business = undefined;
|
|
30
|
+
this.terminalModels = undefined;
|
|
31
|
+
this.orderLimit = undefined;
|
|
32
|
+
this.order = undefined;
|
|
33
|
+
this.totalQuantity = 0;
|
|
19
34
|
}
|
|
20
35
|
componentWillLoad() {
|
|
36
|
+
this.order = new TerminalOrder({
|
|
37
|
+
business_id: this.businessId,
|
|
38
|
+
account_id: this.accountId,
|
|
39
|
+
order_type: this.shipping ? TerminalOrderType.boardingShipping : TerminalOrderType.boardingOnly,
|
|
40
|
+
});
|
|
21
41
|
checkPkgVersion();
|
|
22
42
|
this.analytics = new JustifiAnalytics(this);
|
|
23
|
-
this.
|
|
43
|
+
this.loadData();
|
|
24
44
|
}
|
|
25
|
-
|
|
45
|
+
handleError(errorMessage, code, severity) {
|
|
46
|
+
this.error = { message: errorMessage, code, severity };
|
|
47
|
+
this.errorEvent.emit({ errorCode: code, message: errorMessage, severity });
|
|
48
|
+
}
|
|
49
|
+
loadData() {
|
|
26
50
|
if (!this.businessId || !this.authToken) {
|
|
27
|
-
this.
|
|
28
|
-
this.errorEvent.emit({
|
|
29
|
-
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
30
|
-
message: this.errorMessage,
|
|
31
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
32
|
-
});
|
|
51
|
+
this.handleError("Invalid business id or auth token", ComponentErrorCodes.MISSING_PROPS, ComponentErrorSeverity.ERROR);
|
|
33
52
|
return;
|
|
34
53
|
}
|
|
35
|
-
|
|
54
|
+
this.initializeGetBusiness();
|
|
55
|
+
this.initializeGetTerminalModels();
|
|
56
|
+
}
|
|
57
|
+
initializeGetBusiness() {
|
|
58
|
+
makeGetBusiness({
|
|
36
59
|
id: this.businessId,
|
|
37
60
|
authToken: this.authToken,
|
|
38
61
|
service: new BusinessService(),
|
|
39
|
-
})
|
|
40
|
-
getBusiness({
|
|
62
|
+
})({
|
|
41
63
|
onSuccess: ({ business }) => {
|
|
42
64
|
this.business = new Business(business);
|
|
43
|
-
this.
|
|
65
|
+
this.loading.business = false;
|
|
66
|
+
},
|
|
67
|
+
onError: ({ error, code, severity }) => {
|
|
68
|
+
this.handleError(error, code, severity);
|
|
69
|
+
this.loading.business = false;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
initializeGetTerminalModels() {
|
|
74
|
+
makeGetTerminalModels({
|
|
75
|
+
id: this.accountId,
|
|
76
|
+
authToken: this.authToken,
|
|
77
|
+
service: new TerminalService(),
|
|
78
|
+
})({
|
|
79
|
+
onSuccess: ({ terminals, orderLimit }) => {
|
|
80
|
+
this.terminalModels = terminals;
|
|
81
|
+
this.orderLimit = orderLimit;
|
|
82
|
+
this.loading.terminals = false;
|
|
83
|
+
},
|
|
84
|
+
onError: ({ error, code, severity }) => {
|
|
85
|
+
this.handleError(error, code, severity);
|
|
86
|
+
this.loading.terminals = false;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
submitOrder() {
|
|
91
|
+
const orderTerminals = makeOrderTerminals({
|
|
92
|
+
authToken: this.authToken,
|
|
93
|
+
service: new TerminalService(),
|
|
94
|
+
});
|
|
95
|
+
this.submitting = true;
|
|
96
|
+
orderTerminals({
|
|
97
|
+
terminalOrder: this.order.payload,
|
|
98
|
+
onSuccess: ({ data }) => {
|
|
99
|
+
this.submitted.emit(data);
|
|
100
|
+
this.submitting = false;
|
|
44
101
|
},
|
|
45
102
|
onError: ({ error, code, severity }) => {
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
errorCode: code,
|
|
49
|
-
message: error,
|
|
50
|
-
severity,
|
|
51
|
-
});
|
|
52
|
-
this.isLoading = false;
|
|
103
|
+
this.handleError(error, code, severity);
|
|
104
|
+
this.submitting = false;
|
|
53
105
|
}
|
|
54
106
|
});
|
|
55
107
|
}
|
|
108
|
+
onSelectedQuantityChange(event) {
|
|
109
|
+
this.order.updateTerminal(event.detail.modelName, event.detail.quantity);
|
|
110
|
+
this.totalQuantity = this.order.totalQuantity;
|
|
111
|
+
}
|
|
112
|
+
renderLoading() {
|
|
113
|
+
return (h("div", null, this.loading.business && h(OrderTerminalsLoading, null), this.loading.terminals && (h("div", { class: "mt-5" }, h(TerminalSelectorLoading, null), h(TerminalSelectorLoading, null), h(TerminalSelectorLoading, null)))));
|
|
114
|
+
}
|
|
115
|
+
renderError() {
|
|
116
|
+
if (!this.loading.business && this.error) {
|
|
117
|
+
return ErrorState(this.error.message);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
renderBusinessDetails() {
|
|
121
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
122
|
+
if (!this.loading.business && this.business) {
|
|
123
|
+
return (h("div", { class: "gap-5 pt-5 mb-5" }, h("div", { class: "row" }, h("div", { class: "col-12" }, h("h2", { part: heading4 }, this.business.legal_name))), h("div", { class: "row" }, h("h5", { part: heading5 }, "Representative:"), h("div", null, h("div", null, (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 : _b.name), h("div", null, (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 : _d.title), h("div", null, (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 : _f.email), h("div", null, (_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 : _h.phone)))));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
renderTerminals() {
|
|
127
|
+
if (!this.loading.terminals && this.terminalModels) {
|
|
128
|
+
return (h("div", { class: "d-flex flex-column gap-2 mt-5" }, this.terminalModels.map((terminal) => (h("terminal-quantity-selector", { modelName: terminal.model_name, description: terminal.description, imageUrl: terminal.image_url, helpUrl: terminal.help_url, limit: this.orderLimit - this.order.totalQuantity, onSelectedQuantityChange: this.onSelectedQuantityChange.bind(this) })))));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
renderOrderSection() {
|
|
132
|
+
return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : 'Submit Order'))));
|
|
133
|
+
}
|
|
56
134
|
render() {
|
|
57
|
-
|
|
58
|
-
return (h(StyledHost, { key: 'd5ac7406c2ec045832411cb7a7deecde13243a41' }, this.isLoading && h(OrderTerminalsLoading, { key: 'ec71fe4b766244bbf2c04714bca66b69f367ece5' }), !this.isLoading && this.errorMessage && ErrorState(this.errorMessage), !this.isLoading && !this.errorMessage && this.business && (h("div", { key: '6492a8df913cb3360153715192bd30d656df4968', class: "row gap-5 pt-5", part: text }, h("div", { key: '607b534001238efc4d226cb26d8f1c1288b5ac29', class: "row" }, h("div", { key: '55e7bae0aad2ae9ec9a28961269cd532a2e00922', class: "col-12" }, h("h2", { key: 'c4e01bd6e3a9e46cb15d8b72093dc9de2d463feb', part: heading4 }, "Business Information:"), h("p", { key: 'cd3c01f074c8d55b968e713ec4805a22f1ffc3ba' }, "Business Name: ", this.business.legal_name))), h("div", { key: '20062e4aa0cad46f002821972fec7ec1fc8be01e', class: "row" }, h("div", { key: '433a4a200edd564fa0d206378a706ad84aa2696e', class: "col-6" }, h("h2", { key: 'e4a4fc4c632ccb3b6b187ccb87fb5cce398e43ca', part: heading4 }, "Representative:"), h("ul", { key: '02449f299dddc9fee8544fed405acc436217a60b', class: "list-group", part: listGroup }, h("li", { key: 'a1eff4e8974b8fe57c206fb9c6ce30e89c79d702', class: "list-group-item", part: listGroupItem }, "Name: ", (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 :
|
|
59
|
-
_b.name), h("li", { key: '4e04f41d044b92560f401e6edbb1993b84fca7a6', class: "list-group-item", part: listGroupItem }, "Title: ", (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 :
|
|
60
|
-
_d.title), h("li", { key: 'b354a893098b9f26819ab34966a5e47226fd280b', class: "list-group-item", part: listGroupItem }, "Email: ", (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 :
|
|
61
|
-
_f.email), h("li", { key: 'd1d94089d4f7db78c64143820601b359a77ab09f', class: "list-group-item", part: listGroupItem }, "Phone: ", (_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 :
|
|
62
|
-
_h.phone))), h("div", { key: '91ee402f8f7886c1750b8050433992cfd9964b02', class: "col-6" }, h("h2", { key: '143f76c17de7af724c325439767275efa7c8e903', part: heading4 }, "Shipping Address:"), h("ul", { key: 'dae75ec772c3971a9e690648e4e28b2eec22c638', class: "list-group", part: listGroup }, h("li", { key: '0d83cea35521361eee13912f1cb107bf7496abcc', class: "list-group-item", part: listGroupItem }, "Street: ", (_j = this.business.legal_address) === null || _j === void 0 ? void 0 :
|
|
63
|
-
_j.line1), h("li", { key: 'be4d3d8a0c61645ac4f622235f7ecf2f3ac8e097', class: "list-group-item", part: listGroupItem }, (_k = this.business.legal_address) === null || _k === void 0 ? void 0 : _k.line2), h("li", { key: '2572604b85008e401a835abdbf6c291c3191a9c7', class: "list-group-item", part: listGroupItem }, "Postal Code: ", (_l = this.business.legal_address) === null || _l === void 0 ? void 0 :
|
|
64
|
-
_l.postal_code), h("li", { key: 'e5fd5aa1d9b1bf78c75ca667b058629575be06d3', class: "list-group-item", part: listGroupItem }, "City: ", (_m = this.business.legal_address) === null || _m === void 0 ? void 0 :
|
|
65
|
-
_m.city), h("li", { key: '9acd18a7faed0ab283e110c616d9314410a93cee', class: "list-group-item", part: listGroupItem }, "State: ", (_o = this.business.legal_address) === null || _o === void 0 ? void 0 :
|
|
66
|
-
_o.state))))))));
|
|
135
|
+
return (h(StyledHost, { key: 'b8861877f987b473d37858e3b36a5f3901521dd3' }, h("div", { key: '4fd38462c88f52afbf48898c417a87acdce46e54', part: text }, this.renderLoading(), this.renderError(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
67
136
|
}
|
|
68
137
|
static get is() { return "justifi-order-terminals"; }
|
|
69
138
|
static get encapsulation() { return "shadow"; }
|
|
@@ -102,14 +171,54 @@ export class OrderTerminals {
|
|
|
102
171
|
},
|
|
103
172
|
"attribute": "auth-token",
|
|
104
173
|
"reflect": false
|
|
174
|
+
},
|
|
175
|
+
"accountId": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"mutable": false,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "string",
|
|
180
|
+
"resolved": "string",
|
|
181
|
+
"references": {}
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"optional": false,
|
|
185
|
+
"docs": {
|
|
186
|
+
"tags": [],
|
|
187
|
+
"text": ""
|
|
188
|
+
},
|
|
189
|
+
"attribute": "account-id",
|
|
190
|
+
"reflect": false
|
|
191
|
+
},
|
|
192
|
+
"shipping": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "boolean",
|
|
197
|
+
"resolved": "boolean",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": false,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": ""
|
|
205
|
+
},
|
|
206
|
+
"attribute": "shipping",
|
|
207
|
+
"reflect": false,
|
|
208
|
+
"defaultValue": "false"
|
|
105
209
|
}
|
|
106
210
|
};
|
|
107
211
|
}
|
|
108
212
|
static get states() {
|
|
109
213
|
return {
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
214
|
+
"loading": {},
|
|
215
|
+
"submitting": {},
|
|
216
|
+
"error": {},
|
|
217
|
+
"business": {},
|
|
218
|
+
"terminalModels": {},
|
|
219
|
+
"orderLimit": {},
|
|
220
|
+
"order": {},
|
|
221
|
+
"totalQuantity": {}
|
|
113
222
|
};
|
|
114
223
|
}
|
|
115
224
|
static get events() {
|
|
@@ -134,6 +243,21 @@ export class OrderTerminals {
|
|
|
134
243
|
}
|
|
135
244
|
}
|
|
136
245
|
}
|
|
246
|
+
}, {
|
|
247
|
+
"method": "submitted",
|
|
248
|
+
"name": "submit-event",
|
|
249
|
+
"bubbles": true,
|
|
250
|
+
"cancelable": true,
|
|
251
|
+
"composed": true,
|
|
252
|
+
"docs": {
|
|
253
|
+
"tags": [],
|
|
254
|
+
"text": ""
|
|
255
|
+
},
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "any",
|
|
258
|
+
"resolved": "any",
|
|
259
|
+
"references": {}
|
|
260
|
+
}
|
|
137
261
|
}];
|
|
138
262
|
}
|
|
139
263
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Skeleton } from "../../../ui-components";
|
|
3
|
+
export const TerminalSelectorLoading = () => {
|
|
4
|
+
return (h("div", { class: "terminal-selector-skeleton mt-4 rounded shadow-sm" }, h("div", { class: "d-flex align-items-center gap-3" }, h(Skeleton, { width: "125px", height: "125px", styles: { borderRadius: '8px' } }), h("div", { class: "flex-grow-1" }, h("div", { class: "d-flex row flex-row" }, h("div", { class: "col-6 flex-column" }, h(Skeleton, null), h(Skeleton, { width: "60%" })), h("div", { class: "d-flex justify-content-end align-items-center gap-2 col-6" }, h(Skeleton, { width: "32px", height: "32px", styles: { borderRadius: '50%' } }), h(Skeleton, { width: "80px", height: "32px" }), h(Skeleton, { width: "32px", height: "32px", styles: { borderRadius: '50%' } }))), h("div", { class: "mt-4" }, h("div", { class: "d-flex flex-column gap-2" }, h(Skeleton, null), h(Skeleton, null)))))));
|
|
5
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { buttonLink, image, text } from "../../../styles/parts";
|
|
3
|
+
export class TerminalQuantitySelector {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.removeUnit = () => {
|
|
6
|
+
if (this.selectedQuantity > 0) {
|
|
7
|
+
this.selectedQuantity--;
|
|
8
|
+
this.selectedQuantityChange.emit({ modelName: this.modelName, quantity: this.selectedQuantity });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
this.addUnit = () => {
|
|
12
|
+
if (this.limit > 0) {
|
|
13
|
+
this.selectedQuantity++;
|
|
14
|
+
this.selectedQuantityChange.emit({ modelName: this.modelName, quantity: this.selectedQuantity });
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
this.modelName = undefined;
|
|
18
|
+
this.imageUrl = undefined;
|
|
19
|
+
this.description = undefined;
|
|
20
|
+
this.helpUrl = undefined;
|
|
21
|
+
this.limit = Infinity;
|
|
22
|
+
this.selectedQuantity = 0;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (h("div", { key: '5bbf669ab479523290b2d8a9f5b6ec2000ff0f96', class: "rounded shadow-sm card p-2", part: text }, h("div", { key: '47ead96654c97aeae6b24058a4f7759918d3d0ad', class: "d-flex gap-3" }, h("div", { key: '3763eda68e7849c87f0e67b905e09267c10481c8', class: "d-flex align-items-center" }, h("img", { key: 'ef0a61d5c1d27c600fd93813b594ec2ec2fadec3', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '5a632f69e2045fbfcd35932af3c5fd027dcca66f', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'be00d142f07945a15e882d2da4c505ffbf67fe88', class: "row" }, h("div", { key: '1c434628ae872d22efa7d2adb611b04868c85eb1', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '21f571a1b0e5ba7d528727f6476e134b9657e124', helpText: this.description })), h("div", { key: 'f4077bfa6beb4f0070bdbf4bd28021f88bcaf5b1', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: '7dc6853fb7641b99a9a9ee82dcb3db8fce1d6c01', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: 'faab14e72773f12f69ea69e855bafb27ef3328b8', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '390e6b4b049fa64e2b7354a3676621844291feb0', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
|
|
26
|
+
}
|
|
27
|
+
static get is() { return "terminal-quantity-selector"; }
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"modelName": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "TerminalModelName",
|
|
35
|
+
"resolved": "TerminalModelName.e285 | TerminalModelName.p400 | TerminalModelName.v400",
|
|
36
|
+
"references": {
|
|
37
|
+
"TerminalModelName": {
|
|
38
|
+
"location": "import",
|
|
39
|
+
"path": "../../../api",
|
|
40
|
+
"id": "src/api/index.ts::TerminalModelName"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"attribute": "model-name",
|
|
51
|
+
"reflect": false
|
|
52
|
+
},
|
|
53
|
+
"imageUrl": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "string",
|
|
58
|
+
"resolved": "string",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": ""
|
|
66
|
+
},
|
|
67
|
+
"attribute": "image-url",
|
|
68
|
+
"reflect": false
|
|
69
|
+
},
|
|
70
|
+
"description": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "string",
|
|
75
|
+
"resolved": "string",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": ""
|
|
83
|
+
},
|
|
84
|
+
"attribute": "description",
|
|
85
|
+
"reflect": false
|
|
86
|
+
},
|
|
87
|
+
"helpUrl": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "string",
|
|
92
|
+
"resolved": "string",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"attribute": "help-url",
|
|
102
|
+
"reflect": false
|
|
103
|
+
},
|
|
104
|
+
"limit": {
|
|
105
|
+
"type": "number",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "number",
|
|
109
|
+
"resolved": "number",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": ""
|
|
117
|
+
},
|
|
118
|
+
"attribute": "limit",
|
|
119
|
+
"reflect": false,
|
|
120
|
+
"defaultValue": "Infinity"
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
static get states() {
|
|
125
|
+
return {
|
|
126
|
+
"selectedQuantity": {}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static get events() {
|
|
130
|
+
return [{
|
|
131
|
+
"method": "selectedQuantityChange",
|
|
132
|
+
"name": "selectedQuantityChange",
|
|
133
|
+
"bubbles": true,
|
|
134
|
+
"cancelable": true,
|
|
135
|
+
"composed": true,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [],
|
|
138
|
+
"text": ""
|
|
139
|
+
},
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "{ modelName: TerminalModelName, quantity: number }",
|
|
142
|
+
"resolved": "{ modelName: TerminalModelName; quantity: number; }",
|
|
143
|
+
"references": {
|
|
144
|
+
"TerminalModelName": {
|
|
145
|
+
"location": "import",
|
|
146
|
+
"path": "../../../api",
|
|
147
|
+
"id": "src/api/index.ts::TerminalModelName"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}];
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -39,14 +39,14 @@ export class PaymentDetailsCore {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(StyledHost, { key: '
|
|
43
|
-
this.payment && (h("justifi-details", { key: '
|
|
44
|
-
h(DetailSectionTitle, { key: '
|
|
45
|
-
h("div", { key: '
|
|
42
|
+
return (h(StyledHost, { key: '00ba42c81617d9593246956e97b6b962817cc167' }, this.loading && h(PaymentDetailsLoading, { key: '1c0fee27dec985cad2cc7d41f61d137246ffcc3e' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
43
|
+
this.payment && (h("justifi-details", { key: 'e264b42451a8966a4e6313486bc9d1ccaea0141b', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'af96a0f502cce1be451160e8ac2f92074b0ee168', slot: "head-info", badge: MapPaymentStatusToBadge(this.payment.status), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '94f876bd62dd9ccaa6f63f25326390b03c9938d5', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '96c629e2d1a99eca277ec7337cb3e00e88c1b31e', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '0d18abfae7e9fd0a692ac54640194033a5c36f41', title: "ID", value: this.payment.id })), h("div", { key: '7f9e14d7e0312ba1136cf5734754bf0af6c19774', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'a11b47796dada4f9678487edf19dcd7928b08e94', sectionTitle: "Details" }), h("div", { key: 'fa8a895e037adbbcf5856aae4f40306b789a90c8', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '84a8fa2b0dc39aa331501e00a8eb9bf93e8bb8c2', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '632fa4e703aabc7b606b939e95d1633a43fedfaa', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'bc37a80a15fea95932d04676f2c5a8a57276958b', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '588a76203897cd31b9d0c1c8de1b7b9b0b107421', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: 'c0fea24390417c591327c76568829cbf9f9147a9', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: 'e332a896b55bb58f3fd26ee892556acb08ced52d', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '844fdb40ed55ca0e2f848e7325dcb64f134fa5d6', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'dce95b409eb465e8d6373ad80b7b14a0eecc5aca', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: 'bed2051bd720b1a790ff59b50bee7f01e3fb222a', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
|
|
44
|
+
h(DetailSectionTitle, { key: '3283ea5236fab75a32fe569ad29d9b70c62b49a0', sectionTitle: "Payment Method" }),
|
|
45
|
+
h("div", { key: 'b9a0d9cfca791e3afb4a2e1e73b036319191d485', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '15da44c97292af05a14b3f7840b07bdcf34ae953', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'd8a4a431c3e3ab0d14be8992521ee89b5e126a04', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '1a8ed38a316ea943761d2dd7fda58490180ef3bc', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'db695d1b89896a7a73c83fd8a7d5837ad1e69909', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: 'd94879fb30ac0a05a16ce9ddb199fb5cb003a8c1', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
46
46
|
], this.payment.payment_method.bank_account && [
|
|
47
|
-
h(DetailSectionTitle, { key: '
|
|
48
|
-
h("div", { key: '
|
|
49
|
-
], h(DetailSectionTitle, { key: '
|
|
47
|
+
h(DetailSectionTitle, { key: '84dae904db3c22ff5ed03abaeb57d3b0736d1fbb', sectionTitle: "Payment Method" }),
|
|
48
|
+
h("div", { key: '400801019a53feec0478273866fffa5683b408aa', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'ca7bb52e4275659b18daacfa6367de2f32617e70', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '4885d2b5f05b6a713d61074271c7a95b23604dca', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '604ec4efe78a12a1c36d8416c9fdec70351a6dad', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '1ef77a81232e19d1063af9e863f5c9ada183715f', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
49
|
+
], h(DetailSectionTitle, { key: '1d0a45dd7b7f44b2bad75db9ddb7886b9fc36c9c', sectionTitle: 'Metadata' }), h("div", { key: '364dfb72b9585b672a510b11ecf794c8293ac88d', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '1b9254f2f5f81959ea4e190a3a84129d8c54eccd', metadata: this.payment.metadata })))))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "payment-details-core"; }
|
|
52
52
|
static get properties() {
|
|
@@ -88,7 +88,7 @@ export class PaymentsListCore {
|
|
|
88
88
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: '91c30f03d9b807ff84224ae25a0bcc84b5c17d20' }, h("div", { key: '447c694f9dcfee6363bafd369f53152ef1797c60', class: "table-wrapper" }, h("table", { key: 'fe3a2911b4d7aa109319d6dabc77eb338b910df9', class: "table table-hover", part: table }, h("thead", { key: 'a3ec810da46e43f786def86991f74e1c0f3c269b', class: "table-head sticky-top" }, h("tr", { key: '94b80f23224624d2f4be81cffa5365d9a725bf33', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'd2c24a19bebcd4872dc36c4f8c6a47678a912d6d', class: "table-body" }, h(TableLoadingState, { key: 'dfcc51f6307996ea5383c4da3ddde61c973d946b', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a81643fd528bff0ad8a57ea17aed718dbfcff6c5', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: '3c50d2d7ee8bd5e8c03db7c1d01db8fbb6de4b9b', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.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: '601bb3cd6f8b54fa262d572f715a6208df515f47', class: "sticky-bottom" }, h("tr", { key: '3fbcc03fc841c196cc52b2572387d243d74b2f44', class: "table-light align-middle" }, h("td", { key: 'a1d593b29235432bc668564d784b594dea8ae13c', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: '1a427ec2e181baad95ffd14a6c77485f86786f6d', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "payments-list-core"; }
|
|
94
94
|
static get properties() {
|
|
@@ -48,8 +48,8 @@ export class PaymentsListFilters {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
51
|
-
return (h(StyledHost, { key: '
|
|
52
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '
|
|
51
|
+
return (h(StyledHost, { key: 'e86e4d5f0a36516103a04539fd9ba2d1b698a06c' }, h("table-filters-menu", { key: 'bf4986bea9280046e8c5719dfdba6390d0cc7419', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: 'c9e898c5e4944f97ba66a8b72d6f940fce47f3f3', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '02eb01fee1165a1cd7174aa066147812d7a9cb44', class: "p-2" }, h("form-control-text", { key: 'cbeeef72894b2016d101b933412b797827513dd2', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '5daedbb20682ad6b295049a865c3377e2ef79d8a', class: "p-2" }, h("form-control-text", { key: '26cd105c075114cfd062fccde5500f2eeb55888b', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: '92349a4ebb343af3a8d54601fea4c177c2ff14b2', class: "p-2" }, h("form-control-select", { key: '0e5f7cf57a22d3eeb6e4aebdbac2fe1bb13288eb', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: '5d5cc079285045a858bfbcf9646a54b8f4c70b8b', class: "p-2" }, h("form-control-date", { key: 'b8fb06fa8506503bcf89c50523dd8e036852557c', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
52
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '3d6a1de1b08e1a326e107e60c78580848ffdda19', class: "p-2" }, h("form-control-date", { key: '6f7bf72ac396429a3d8318ee17d5459147a4f60e', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
53
53
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "justifi-payments-list-filters"; }
|
|
@@ -49,7 +49,7 @@ export class PaymentsList {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(StyledHost, { key: '
|
|
52
|
+
return (h(StyledHost, { key: 'ade68405b7b039032dc8d4a271bdafd6b5b3dfe8' }, h("payments-list-core", { key: '30844738130c05a96bd93d670bad14d544368fb2', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "justifi-payments-list"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,7 +54,7 @@ export class PayoutDetailsCore {
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
var _a;
|
|
57
|
-
return (h(StyledHost, { key: '
|
|
57
|
+
return (h(StyledHost, { key: '6aab170bbe708372d913c14bcb58b3b0d60dafd8' }, this.loading && h(PayoutDetailsLoading, { key: '0aee9ad36b3c4e74b1cb3f8251d0488cede1355c' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'c9ad74b0385260d4b1f2d2f7b3e66563b2d706a4', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '6b67e623a6cb67207007ba4319aa437996118dd9', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: 'ff1c335e90ad0403a607491e4ff0b0adac52f255', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '0c2e9555136ce806bc744dd2a83c7a1e10fa7ea7', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '0c813d23ddbe26f29f1ad03dc43b9c5fbf2d6ab6', title: "ID", value: this.payout.id }), h("div", { key: '762b4fc60643def05b7f8e84ce170d6295654631', class: "m-4" }, h(Button, { key: 'c5f304fb7f54838da6785a0bf19c423a98bdbf34', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'b307f177086cd6b1eeb0f384cce772cd04ff33ad', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'bad67a9d2cde5bff23b5c959f9b7564fdc996300', sectionTitle: "Details" }), h("div", { key: '6986bef4813aadb505acaf5cdd07b853c271e442', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'dad10fde82b1009a9821f1e1cc2c2e65baa5f6b7', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'bf21ac446b54bdfcec020d6086546a0b20f42d01', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '30f7609216b42f3918929a6a02b30a6a23689921', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'e7d93fa8d865162098e105d4041c12af757db68b', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: '99b76f8abc8f0077df988cf38cfb74e77a7e881f', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'cfef47442eeb83514ca10fab25d12f1439414fc0', sectionTitle: "Account" }), h("div", { key: '901423f1ca47bf79ab6daa63368fea0032e46d58', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'f3e215b7aad43a3a3914b885189700e87758cca6', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '795054cd2f8bda2a735e9ac64652da92dac34f61', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '9c190036635aed95d74bce36ec257ada41b57cba', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'c1002cff85b80024804a858ef519feb4a86d46ff', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '0183bef106233f302cd8762c7483482bea849ac2', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'e87d57050d5dee72a8dccfe2ca2deee385e6dc61', sectionTitle: 'Metadata' }), h("div", { key: '9aefd212e7aa680b34f5af6a373a47997238496e', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a9c9337a788cb2611787278768968e638a8c000d', metadata: this.payout.metadata })))))));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "payout-details-core"; }
|
|
60
60
|
static get properties() {
|
|
@@ -142,7 +142,7 @@ export class PayoutsListCore {
|
|
|
142
142
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h("div", { key: '
|
|
145
|
+
return (h("div", { key: 'ed85d9ce4cc88007b8c623ba57cb8dfbd4de7874' }, h("div", { key: '5760742d19653abb6ce3e45f4f773cd1bd5e612f', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: 'f09a0ea7fff83b23e8e82fda18c73b25e0a46b07', class: "table table-hover", part: table }, h("thead", { key: 'b056f2ef2b6a229cd436ed0e4789f9d19849e956', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '16e6651c934d1d4120ceaeb4732e807666f0404d', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '4b552d171131958f696077a66c4256e45ccaf7b2', class: "table-body" }, h(TableLoadingState, { key: 'aded291b5961c14d828ecff475120e48d3913293', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a3044be9a44798a4f8800978fd0734de31de6809', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: '98c909ea58a0dd7f0cbbd8ac9842380b91b92386', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.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: '0c58d215c797798f87affb37d1f7622de3ca7407', class: "sticky-bottom" }, h("tr", { key: '9a3b39c8836bb817428bd307110fee62db8d7589', class: "table-light align-middle" }, h("td", { key: 'a3eef122632c9459d5fa31d4542b6b085645b738', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '8d77a7e40f9e7c6770812ba8b45a6e0f5f57193e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
146
146
|
}
|
|
147
147
|
static get is() { return "payouts-list-core"; }
|
|
148
148
|
static get properties() {
|
|
@@ -28,8 +28,8 @@ export class PayoutsListFilters {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
31
|
-
return (h(StyledHost, { key: '
|
|
32
|
-
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '
|
|
31
|
+
return (h(StyledHost, { key: 'fca8f3d0daf92026b7d3cccdd096c8650eb31d28' }, h("table-filters-menu", { key: 'b166ff52682804bd241866ffbe53ada0cf6133e8', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: 'f72774348aac13463934af8c8bfb3aa9b29a3942', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '87ee14df90cd83394e573f1f4e75d315cd48b2d3', class: "p-2" }, h("form-control-date", { key: 'f14e2dd16a24d8f6ac41ed110bdf2e5f0e7b0389', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
|
|
32
|
+
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'fe9b41fcc98571f9f5f477a0006a2a00a5bdba1c', class: "p-2" }, h("form-control-date", { key: '9ab09d81f389f410ea7d1d533a0f25995d261aef', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
|
|
33
33
|
convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "justifi-payouts-list-filters"; }
|
|
@@ -70,7 +70,7 @@ export class PayoutsList {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h(StyledHost, { key: '
|
|
73
|
+
return (h(StyledHost, { key: '7456971cf903af6fd77385fd01dac69760b9df11', exportedparts: tableExportedParts }, h("payouts-list-core", { key: '6bf911cb5a793f49fb19903013c48e6df93f9866', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "justifi-payouts-list"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -74,7 +74,7 @@ export class RefundForm {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
var _a;
|
|
77
|
-
return (h(StyledHost, { key: '
|
|
77
|
+
return (h(StyledHost, { key: '7becd3fcc3a0beefef5efdb860616aa60f7e61ad' }, h("h1", { key: '7125ac0e8452db4013d9065054aca8d65ead0138' }, "Refund"), this.refundInfoText && (h("div", { key: 'b60dbcac95e75469bab9e575efe5eba40d629693', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '231e5bcb4fdd82ea4e9bb0597bfe194759eb8e22', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '21faa4040e99ee142e0f06246fc8317dcc5dfa28', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '4a8671c7f833279c14e29ae0f4054586fa7ecbba', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: 'd4296520cb377a6b61547615a2b95a3088ace83a', class: "form-group" }, h("form-control-monetary", { key: 'dbe00249e022722aea24f9967408625b7460f0f7', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '765d36337fc31bd6ade5b9a94397b83e7f46e2a8', class: "form-group" }, h("form-control-text", { key: '3f3bc7e95568944d876fcf95e98ba9d871479096', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '4576ce0e5d04f063fd53045845fa5a4cf5bc6383', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '6165726b003006432d82ce5792a961ea2f42d654', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "justifi-refund-form"; }
|
|
80
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Badge, BadgeVariant } from "../../ui-components/badge/badge";
|
|
3
|
+
export const MapTerminalOrderStatusToBadge = (status) => {
|
|
4
|
+
const statusToBadgeProps = {
|
|
5
|
+
submitted: {
|
|
6
|
+
variant: BadgeVariant.PRIMARY,
|
|
7
|
+
title: 'This order is submitted',
|
|
8
|
+
text: 'Submitted',
|
|
9
|
+
},
|
|
10
|
+
completed: {
|
|
11
|
+
variant: BadgeVariant.SUCCESS,
|
|
12
|
+
title: 'This order has been completed',
|
|
13
|
+
text: 'Completed',
|
|
14
|
+
},
|
|
15
|
+
created: {
|
|
16
|
+
variant: BadgeVariant.SECONDARY,
|
|
17
|
+
title: 'This order is created',
|
|
18
|
+
text: 'Created',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
const badgeProps = statusToBadgeProps[status];
|
|
22
|
+
return h(Badge, Object.assign({}, badgeProps));
|
|
23
|
+
};
|