@justifi/webcomponents 5.3.2 → 5.3.4-rc
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/{check-pkg-version-fe4c6467.js → Analytics-25d07997.js} +8 -23
- package/dist/cjs/{Api-089e7501.js → Api-f5280a80.js} +0 -13
- package/dist/cjs/{Business-cfd6a2dd.js → Business-d88b77fd.js} +6 -2
- package/dist/cjs/{Checkout-0f1c8abe.js → Checkout-1c07dc32.js} +14 -7
- package/dist/cjs/{SubAccount-509ebf93.js → SubAccount-b4811a8e.js} +6 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-ccfe03bf.js → badge-86a6a7f8.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +9 -9
- package/dist/cjs/bank-account-form_9.cjs.entry.js +78 -5
- package/dist/cjs/billing-form_3.cjs.entry.js +11 -11
- package/dist/cjs/{business-additional-questions-schema-2cc0c6f7.js → business-additional-questions-schema-5c100f58.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business-form-options-4bcb8943.js → business-form-options-62e9c8ab.js} +1 -1
- package/dist/cjs/{business-identity-schema-7d462eb3.js → business-identity-schema-3b4d16f1.js} +1 -1
- package/dist/cjs/{business.service-33d7c7f2.js → business.service-776142b1.js} +8 -8
- package/dist/cjs/{button-8b634147.js → button-5f6c437f.js} +1 -1
- package/dist/cjs/check-pkg-version-407ee257.js +24 -0
- package/dist/cjs/{checkout.service-d9047ddb.js → checkout.service-b23994d2.js} +6 -6
- package/dist/cjs/checkouts-list-core.cjs.entry.js +16 -15
- package/dist/cjs/checkouts-list-params-state-644d3639.js +22 -0
- package/dist/cjs/{checkouts-table-efa1cbab.js → checkouts-table-cf3e245e.js} +2 -2
- package/dist/cjs/custom-popper_4.cjs.entry.js +8 -8
- package/dist/cjs/{dispute.service-739631c7.js → dispute.service-c192dd33.js} +7 -7
- package/dist/cjs/event-types-b6d34593.js +8 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- 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-46a7f2dd.js → form-control-error-text-9905e3b8.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-help-text-98c882e3.js → form-control-help-text-8d031bfb.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/get-business-0bd063d2.js +34 -0
- package/dist/cjs/{get-payout-csv-bdaff21b.js → get-payout-csv-78297c3a.js} +6 -15
- package/dist/cjs/{get-subaccounts-2db9fc01.js → get-subaccounts-b2e6ab82.js} +4 -7
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-4c21f7ca.js → header-1-b202dbbb.js} +1 -1
- package/dist/cjs/{header-3-130206cc.js → header-3-5f78acd1.js} +1 -1
- package/dist/cjs/{insurance-state-21fde44f.js → insurance-state-ba0c39a9.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +10 -10
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -9
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-details.cjs.entry.js +13 -38
- package/dist/cjs/justifi-business-form.cjs.entry.js +17 -16
- 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 +11 -10
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +32 -9
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -9
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -14
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -7
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +102 -0
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +20 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -14
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -9
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +41 -0
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +27 -6
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -20
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +11 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-8b04bef0.js → package-74690e82.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-b2ff8b68.js → parts-c2655003.js} +32 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-87924c1a.js → payment.service-f53022c3.js} +5 -8
- package/dist/cjs/payments-list-core.cjs.entry.js +17 -16
- package/dist/cjs/{payments-status-ec12ee6a.js → payments-status-92abe577.js} +1 -1
- package/dist/cjs/{payments-table-f3aa174d.js → payments-table-c58e3ca8.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +22 -17
- package/dist/cjs/payouts-list-params-state-033b76d6.js +22 -0
- package/dist/cjs/{payouts-status-9f2e9a3a.js → payouts-status-703d62af.js} +1 -1
- package/dist/cjs/{payouts-table-4efa53fa.js → payouts-table-70fc1498.js} +3 -3
- package/dist/cjs/{schema-validations-f948158d.js → schema-validations-47a256f4.js} +1 -1
- package/dist/cjs/{skeleton-0353466d.js → skeleton-84102a44.js} +1 -1
- package/dist/cjs/{spinner-4fc60a51.js → spinner-70f38e5e.js} +1 -1
- package/dist/cjs/{event-types-34b103b4.js → table-fc82fa81.js} +2 -9
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +80 -0
- package/dist/cjs/terminal-orders-table-61081532.js +18 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +16 -15
- package/dist/cjs/terminals-list-params-state-236f06f6.js +22 -0
- package/dist/cjs/{terminals-table-5e4bce93.js → terminals-table-db58a0c0.js} +3 -3
- package/dist/cjs/{utils-134dda01.js → utils-7c5b2837.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/{api → actions/sub-account}/get-subaccounts.js +2 -3
- package/dist/collection/api/Analytics.js +5 -0
- package/dist/collection/api/Business.js +6 -2
- package/dist/collection/api/Checkout.js +8 -1
- package/dist/collection/api/Payout.js +0 -3
- package/dist/collection/api/Terminal.js +6 -6
- package/dist/collection/api/services/analytics.service.js +1 -2
- package/dist/collection/api/services/business.service.js +7 -8
- package/dist/collection/api/services/checkout.service.js +4 -5
- package/dist/collection/api/services/dispute.service.js +4 -5
- package/dist/collection/api/services/insurance.service.js +2 -3
- package/dist/collection/api/services/payment.service.js +2 -6
- package/dist/collection/api/services/payout.service.js +3 -13
- package/dist/collection/api/services/provision.service.js +1 -2
- package/dist/collection/api/services/reports.service.js +1 -2
- package/dist/collection/api/services/subaccounts.service.js +1 -5
- package/dist/collection/api/services/terminal.service.js +2 -9
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/business-details/business-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form.js +1 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
- package/dist/collection/components/checkout/bank-account-form/bank-account-form-skeleton.js +10 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +24 -1
- package/dist/collection/components/checkout/card-form/card-form-skeleton.js +10 -0
- package/dist/collection/components/checkout/card-form/card-form.js +26 -1
- package/dist/collection/components/checkout/checkout.js +5 -6
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +7 -9
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +75 -9
- package/dist/collection/components/checkouts-list/checkouts-list-params-state.js +11 -5
- package/dist/collection/components/checkouts-list/checkouts-list.js +5 -6
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +4 -5
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +3 -4
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +2 -2
- package/dist/collection/components/order-terminals/order-terminals-loading.js +6 -0
- package/dist/collection/components/order-terminals/order-terminals.js +139 -0
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payment-details/payment-details.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +7 -7
- package/dist/collection/components/payments-list/payments-list-filters.js +3 -3
- package/dist/collection/components/payments-list/payments-list.js +4 -5
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +12 -10
- package/dist/collection/components/payouts-list/payouts-list-filters.js +58 -3
- package/dist/collection/components/payouts-list/payouts-list-params-state.js +11 -5
- package/dist/collection/components/payouts-list/payouts-list.js +5 -6
- package/dist/collection/components/payouts-list/payouts-table.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +2 -3
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +141 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +113 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +11 -0
- package/dist/collection/components/terminals-list/terminals-list-core.js +7 -9
- package/dist/collection/components/terminals-list/terminals-list-filters.js +64 -6
- package/dist/collection/components/terminals-list/terminals-list-params-state.js +11 -5
- package/dist/collection/components/terminals-list/terminals-list.js +5 -6
- package/dist/collection/components/terminals-list/terminals-table.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
- package/dist/collection/styles/parts.js +19 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- 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 +1 -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-select.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 +23 -7
- package/dist/docs.json +515 -14
- package/dist/esm/{check-pkg-version-e2273f4f.js → Analytics-1051e87d.js} +9 -23
- package/dist/esm/{Api-97801a4b.js → Api-391d00e2.js} +1 -13
- package/dist/esm/{Business-29c69f22.js → Business-0855931c.js} +6 -2
- package/dist/esm/{Checkout-8325c97a.js → Checkout-919eb1ba.js} +9 -2
- package/dist/esm/{ComponentError-3ce7f437.js → ComponentError-c61dce41.js} +1 -1
- package/dist/esm/{SubAccount-a73bf971.js → SubAccount-9aad3891.js} +7 -10
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-938ba4b1.js → badge-2eb79416.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
- package/dist/esm/bank-account-form_9.entry.js +79 -6
- package/dist/esm/billing-form_3.entry.js +12 -12
- package/dist/esm/{business-additional-questions-schema-60e9b76a.js → business-additional-questions-schema-df76728f.js} +1 -1
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-form-options-018f62a5.js → business-form-options-86a13078.js} +1 -1
- package/dist/esm/{business-identity-schema-191d85c2.js → business-identity-schema-0a78fc59.js} +1 -1
- package/dist/esm/{business.service-45c7df3c.js → business.service-f7c3b9f7.js} +8 -8
- package/dist/esm/{button-4b3f3934.js → button-cc455199.js} +1 -1
- package/dist/esm/check-pkg-version-cdc4a3de.js +22 -0
- package/dist/esm/{checkout.service-36e3355e.js → checkout.service-bb45d248.js} +7 -7
- package/dist/esm/checkouts-list-core.entry.js +16 -15
- package/dist/esm/checkouts-list-params-state-7bdf00bd.js +16 -0
- package/dist/esm/{checkouts-table-1634366d.js → checkouts-table-53981285.js} +2 -2
- package/dist/esm/custom-popper_4.entry.js +8 -8
- package/dist/esm/{dispute.service-9b9b87e5.js → dispute.service-9008b3b7.js} +8 -8
- package/dist/esm/event-types-0a83d0b4.js +8 -0
- package/dist/esm/form-alert_5.entry.js +3 -3
- 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-b3d14e92.js → form-control-error-text-74c6b38a.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +4 -4
- package/dist/esm/{form-control-help-text-7b07fc37.js → form-control-help-text-76a4196e.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/get-business-464419f6.js +32 -0
- package/dist/esm/{get-payout-csv-80210301.js → get-payout-csv-be3ee3f0.js} +8 -17
- package/dist/esm/{get-subaccounts-d3eeb85d.js → get-subaccounts-3af0844a.js} +6 -9
- package/dist/esm/gross-payment-chart-core.entry.js +4 -4
- package/dist/esm/{header-1-4db0c986.js → header-1-797ca789.js} +1 -1
- package/dist/esm/{header-3-fd150ccf.js → header-3-544afa0b.js} +1 -1
- package/dist/esm/{insurance-state-529e2d0d.js → insurance-state-307335d6.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +11 -11
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-business-details.entry.js +11 -36
- package/dist/esm/justifi-business-form.entry.js +17 -16
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +7 -7
- package/dist/esm/justifi-checkout.entry.js +12 -11
- package/dist/esm/justifi-checkouts-list-filters.entry.js +32 -9
- package/dist/esm/justifi-checkouts-list.entry.js +15 -14
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +11 -10
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -15
- package/dist/esm/justifi-gross-payment-chart.entry.js +9 -8
- package/dist/esm/justifi-order-terminals.entry.js +98 -0
- package/dist/esm/justifi-owner-form_3.entry.js +11 -11
- package/dist/esm/justifi-payment-details.entry.js +11 -10
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +15 -14
- package/dist/esm/justifi-payout-details.entry.js +11 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +20 -3
- package/dist/esm/justifi-payouts-list.entry.js +16 -15
- package/dist/esm/justifi-refund-form.entry.js +6 -6
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -10
- package/dist/esm/justifi-terminal-orders-list.entry.js +37 -0
- package/dist/esm/justifi-terminals-list-filters.entry.js +27 -6
- package/dist/esm/justifi-terminals-list.entry.js +16 -21
- package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-a8e8f775.js → package-8bc1e068.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-ab2bb4b5.js → parts-489f0af6.js} +21 -1
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment-provisioning-actions-726795a0.js → payment-provisioning-actions-beadac34.js} +2 -2
- package/dist/esm/{payment.service-c847c1f6.js → payment.service-a8ee345c.js} +6 -9
- package/dist/esm/payments-list-core.entry.js +17 -16
- package/dist/esm/{payments-status-abf1724b.js → payments-status-35255b2c.js} +1 -1
- package/dist/esm/{payments-table-88fbab49.js → payments-table-6e97396a.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +22 -17
- package/dist/esm/payouts-list-params-state-ebcee300.js +16 -0
- package/dist/esm/{payouts-status-d9987a8a.js → payouts-status-a0cc00c5.js} +1 -1
- package/dist/esm/{payouts-table-055d3633.js → payouts-table-6b8ba8f1.js} +3 -3
- package/dist/esm/{schema-validations-38e8bc7b.js → schema-validations-b1aec6a0.js} +1 -1
- package/dist/esm/{skeleton-ee7c3b32.js → skeleton-74fbfb68.js} +1 -1
- package/dist/esm/{spinner-8ec6669a.js → spinner-6b708842.js} +1 -1
- package/dist/esm/{event-types-fd7a05d9.js → table-e287f1c0.js} +3 -10
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +76 -0
- package/dist/esm/terminal-orders-table-765c44d5.js +14 -0
- package/dist/esm/terminals-list-core.entry.js +16 -15
- package/dist/esm/terminals-list-params-state-e4b2ec23.js +16 -0
- package/dist/esm/{terminals-table-2963e65b.js → terminals-table-c6258344.js} +3 -3
- package/dist/esm/{utils-c2dc83b2.js → utils-6c26bccc.js} +1 -1
- package/dist/esm/{utils-b10dae27.js → utils-fd99b806.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +82 -0
- package/dist/module/{config.js → Api.js} +1 -13
- package/dist/module/Business.js +6 -2
- package/dist/module/Checkout.js +9 -2
- package/dist/module/SubAccount.js +7 -10
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form2.js +37 -2
- package/dist/module/business-terms-conditions-form-step.js +3 -3
- package/dist/module/business.service.js +8 -8
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +43 -2
- package/dist/module/check-pkg-version.js +1 -75
- package/dist/module/checkout.service.js +4 -4
- package/dist/module/checkouts-list-core2.js +9 -9
- package/dist/module/checkouts-list-params-state.js +11 -5
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-actions.js +5 -5
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +4 -4
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/event-types2.js +1 -55
- 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 +1 -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-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/get-business.js +32 -0
- package/dist/module/get-payout-csv.js +4 -13
- package/dist/module/get-subaccounts.js +2 -5
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +6 -7
- package/dist/module/justifi-business-details.js +4 -31
- package/dist/module/justifi-business-form.js +4 -3
- package/dist/module/justifi-checkout.js +5 -5
- package/dist/module/justifi-checkouts-list-filters.js +34 -10
- package/dist/module/justifi-checkouts-list.js +4 -4
- package/dist/module/justifi-dispute-management.js +4 -4
- package/dist/module/justifi-gross-payment-chart.js +4 -3
- package/dist/module/justifi-order-terminals.d.ts +11 -0
- package/dist/module/justifi-order-terminals.js +119 -0
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-provisioning.js +4 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +4 -4
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list-filters.js +24 -4
- package/dist/module/justifi-payouts-list.js +4 -4
- package/dist/module/justifi-refund-form.js +3 -3
- package/dist/module/justifi-season-interruption-insurance.js +6 -5
- package/dist/module/justifi-terminal-orders-list.d.ts +11 -0
- package/dist/module/justifi-terminal-orders-list.js +73 -0
- package/dist/module/justifi-terminals-list-filters.js +29 -7
- package/dist/module/justifi-terminals-list.js +7 -12
- package/dist/module/justifi-tokenize-payment-method.js +4 -4
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +21 -1
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment.service.js +3 -6
- package/dist/module/payments-list-core2.js +9 -8
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +15 -11
- package/dist/module/payouts-list-params-state.js +11 -5
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +55 -0
- package/dist/module/terminal-orders-list-core.d.ts +11 -0
- package/dist/module/terminal-orders-list-core.js +6 -0
- package/dist/module/terminal-orders-list-core2.js +117 -0
- package/dist/module/terminals-list-core2.js +10 -10
- package/dist/module/terminals-list-params-state.js +11 -5
- package/dist/types/api/Business.d.ts +4 -4
- package/dist/types/api/Checkout.d.ts +6 -1
- package/dist/types/api/Payout.d.ts +0 -1
- package/dist/types/api/Terminal.d.ts +6 -12
- package/dist/types/components/checkout/bank-account-form/bank-account-form-skeleton.d.ts +6 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +2 -0
- package/dist/types/components/checkout/card-form/card-form-skeleton.d.ts +6 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +2 -0
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +5 -2
- package/dist/types/components/checkouts-list/checkouts-list-params-state.d.ts +4 -3
- package/dist/types/components/order-terminals/order-terminals-loading.d.ts +1 -0
- package/dist/types/components/order-terminals/order-terminals.d.ts +16 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -1
- package/dist/types/components/payouts-list/payouts-list-filters.d.ts +3 -0
- package/dist/types/components/payouts-list/payouts-list-params-state.d.ts +4 -3
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +25 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +11 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +9 -0
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +1 -1
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +4 -1
- package/dist/types/components/terminals-list/terminals-list-params-state.d.ts +4 -3
- package/dist/types/components.d.ts +117 -2
- package/dist/types/styles/parts.d.ts +14 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
- package/dist/webcomponents/p-020e7d5d.entry.js +1 -0
- package/dist/webcomponents/{p-0f6ae5ea.entry.js → p-060896c4.entry.js} +1 -1
- package/dist/webcomponents/p-06d34949.entry.js +1 -0
- package/dist/webcomponents/{p-298e290e.js → p-06f5b709.js} +1 -1
- package/dist/webcomponents/p-092515e0.js +1 -0
- package/dist/webcomponents/{p-94eba309.js → p-09496255.js} +1 -1
- package/dist/webcomponents/p-0b38cfbf.js +1 -0
- package/dist/webcomponents/p-0e180654.js +1 -0
- package/dist/webcomponents/{p-f19f9f61.js → p-1278dedf.js} +1 -1
- package/dist/webcomponents/p-13de2830.entry.js +1 -0
- package/dist/webcomponents/p-14f40baa.js +1 -0
- package/dist/webcomponents/{p-5bf4535a.entry.js → p-19063270.entry.js} +1 -1
- package/dist/webcomponents/p-1f270bb9.entry.js +1 -0
- package/dist/webcomponents/p-1f4e26f3.entry.js +1 -0
- package/dist/webcomponents/p-1f99a902.js +1 -0
- package/dist/webcomponents/p-2208ab4c.entry.js +1 -0
- package/dist/webcomponents/{p-bada4783.entry.js → p-235abbd1.entry.js} +1 -1
- package/dist/webcomponents/p-27c72b92.entry.js +1 -0
- package/dist/webcomponents/p-29fbbc93.js +1 -0
- package/dist/webcomponents/p-2e0ae487.js +1 -0
- package/dist/webcomponents/p-2e1081d7.entry.js +1 -0
- package/dist/webcomponents/p-2f9af679.js +1 -0
- package/dist/webcomponents/{p-21431a04.js → p-300a99ee.js} +1 -1
- package/dist/webcomponents/p-37b7b200.entry.js +1 -0
- package/dist/webcomponents/p-389e1eb7.js +1 -0
- package/dist/webcomponents/p-39d421c9.entry.js +1 -0
- package/dist/webcomponents/p-3ab7a49e.entry.js +1 -0
- package/dist/webcomponents/{p-938993c7.js → p-3b680e50.js} +1 -1
- package/dist/webcomponents/p-3d486f37.entry.js +1 -0
- package/dist/webcomponents/p-42a48c59.js +1 -0
- package/dist/webcomponents/p-49df4962.entry.js +1 -0
- package/dist/webcomponents/{p-ab1504b6.entry.js → p-4a71c90b.entry.js} +1 -1
- package/dist/webcomponents/{p-b0b40bcd.js → p-4acf8ca2.js} +1 -1
- package/dist/webcomponents/p-4b6256e0.entry.js +1 -0
- package/dist/webcomponents/p-4b718a6c.entry.js +1 -0
- package/dist/webcomponents/{p-2710884e.entry.js → p-4fbdf440.entry.js} +1 -1
- package/dist/webcomponents/p-553dba95.entry.js +1 -0
- package/dist/webcomponents/p-58a3c5a6.entry.js +1 -0
- package/dist/webcomponents/p-595479da.entry.js +1 -0
- package/dist/webcomponents/p-59918c9e.entry.js +1 -0
- package/dist/webcomponents/p-5a96a2a2.entry.js +1 -0
- package/dist/webcomponents/p-5ab25e5d.js +1 -0
- package/dist/webcomponents/{p-275f2154.js → p-5d1d2fd7.js} +1 -1
- package/dist/webcomponents/p-5d2d11be.entry.js +1 -0
- package/dist/webcomponents/p-60948775.entry.js +1 -0
- package/dist/webcomponents/p-65880158.entry.js +1 -0
- package/dist/webcomponents/p-66ae2a0e.entry.js +1 -0
- package/dist/webcomponents/p-7746acac.js +1 -0
- package/dist/webcomponents/p-78a204f9.entry.js +1 -0
- package/dist/webcomponents/p-794cce10.entry.js +1 -0
- package/dist/webcomponents/p-7c541199.entry.js +1 -0
- package/dist/webcomponents/p-7ee5a90e.entry.js +1 -0
- package/dist/webcomponents/p-82cbcce9.js +1 -0
- package/dist/webcomponents/{p-8115b2f4.js → p-87f8c596.js} +1 -1
- package/dist/webcomponents/{p-5afefc50.entry.js → p-89ecfbf4.entry.js} +2 -2
- package/dist/webcomponents/{p-3e716e03.js → p-8a7266b4.js} +1 -1
- package/dist/webcomponents/{p-8f25f016.js → p-8b16a20f.js} +1 -1
- package/dist/webcomponents/p-8b6a3249.entry.js +1 -0
- package/dist/webcomponents/{p-e63fdbca.js → p-906a6027.js} +1 -1
- package/dist/webcomponents/p-939d0a35.entry.js +1 -0
- package/dist/webcomponents/p-93accc9a.entry.js +1 -0
- package/dist/webcomponents/{p-27c8ffa2.js → p-95e55bb1.js} +1 -1
- package/dist/webcomponents/p-9a4d0e1d.entry.js +1 -0
- package/dist/webcomponents/{p-14c91ffd.js → p-9dd8685c.js} +1 -1
- package/dist/webcomponents/p-9edd6ad8.js +1 -0
- package/dist/webcomponents/p-a0082e77.entry.js +1 -0
- package/dist/webcomponents/{p-1820fd87.entry.js → p-a31ba276.entry.js} +1 -1
- package/dist/webcomponents/p-a90d8f4f.entry.js +1 -0
- package/dist/webcomponents/p-ab45511e.js +1 -0
- package/dist/webcomponents/p-ad0fffc5.entry.js +1 -0
- package/dist/webcomponents/p-af945fc0.entry.js +1 -0
- package/dist/webcomponents/p-b2d57b2c.entry.js +1 -0
- package/dist/webcomponents/p-b4ed5a2c.js +1 -0
- package/dist/webcomponents/p-b57cfe54.entry.js +1 -0
- package/dist/webcomponents/{p-f2f2e20e.js → p-b84ee6d8.js} +1 -1
- package/dist/webcomponents/p-c3ada049.entry.js +1 -0
- package/dist/webcomponents/p-c4ca0038.js +1 -0
- package/dist/webcomponents/{p-0ea387a2.js → p-c9b78275.js} +1 -1
- package/dist/webcomponents/p-cba89310.entry.js +1 -0
- package/dist/webcomponents/p-cbe05f11.js +1 -0
- package/dist/webcomponents/p-d398ce81.js +1 -0
- package/dist/webcomponents/p-d432f0fd.entry.js +1 -0
- package/dist/webcomponents/{p-849c68e5.js → p-d43a38a4.js} +1 -1
- package/dist/webcomponents/p-d5c41ec6.js +1 -0
- package/dist/webcomponents/p-dfebd7a4.js +1 -0
- package/dist/webcomponents/{p-db37b175.entry.js → p-e007002a.entry.js} +1 -1
- package/dist/webcomponents/{p-1882d7d6.entry.js → p-e3e0d791.entry.js} +1 -1
- package/dist/webcomponents/p-e8cd9691.js +1 -0
- package/dist/webcomponents/{p-5baec916.entry.js → p-e8fc36c1.entry.js} +1 -1
- package/dist/webcomponents/p-e8fdbc36.entry.js +1 -0
- package/dist/webcomponents/p-e9e80a62.js +1 -0
- package/dist/webcomponents/p-ebbe93ac.entry.js +1 -0
- package/dist/webcomponents/p-ec019b89.js +1 -0
- package/dist/webcomponents/p-f30cb232.js +1 -0
- package/dist/webcomponents/p-f4739d31.js +1 -0
- package/dist/webcomponents/p-f6aa31bc.entry.js +1 -0
- package/dist/webcomponents/{p-facada09.entry.js → p-f7d9ea0b.entry.js} +1 -1
- package/dist/webcomponents/p-f9ff808d.js +1 -0
- package/dist/webcomponents/{p-3e0f3d87.entry.js → p-fea43254.entry.js} +1 -1
- package/dist/webcomponents/p-ff1f2d65.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/checkouts-list-params-state-418c75a3.js +0 -14
- package/dist/cjs/payouts-list-params-state-16348184.js +0 -14
- package/dist/cjs/terminals-list-params-state-95ff6a64.js +0 -14
- package/dist/config.js +0 -11
- package/dist/esm/checkouts-list-params-state-1d968971.js +0 -10
- package/dist/esm/payouts-list-params-state-49618e7a.js +0 -10
- package/dist/esm/terminals-list-params-state-2c48d35f.js +0 -10
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
- package/dist/webcomponents/p-01d4e35a.js +0 -1
- package/dist/webcomponents/p-02d36485.entry.js +0 -1
- package/dist/webcomponents/p-045d4ebf.entry.js +0 -1
- package/dist/webcomponents/p-08d87a52.entry.js +0 -1
- package/dist/webcomponents/p-0e68b7d6.entry.js +0 -1
- package/dist/webcomponents/p-131db5d1.entry.js +0 -1
- package/dist/webcomponents/p-1603fe4d.js +0 -1
- package/dist/webcomponents/p-16ba9bea.js +0 -1
- package/dist/webcomponents/p-18a7a9e6.entry.js +0 -1
- package/dist/webcomponents/p-1e8a1e01.entry.js +0 -1
- package/dist/webcomponents/p-25c9c88c.entry.js +0 -1
- package/dist/webcomponents/p-2916bb62.entry.js +0 -1
- package/dist/webcomponents/p-2f94d478.entry.js +0 -1
- package/dist/webcomponents/p-31e2d12c.entry.js +0 -1
- package/dist/webcomponents/p-35b00a0d.js +0 -1
- package/dist/webcomponents/p-39696abd.entry.js +0 -1
- package/dist/webcomponents/p-40e23b13.js +0 -1
- package/dist/webcomponents/p-40eabfca.entry.js +0 -1
- package/dist/webcomponents/p-44d2c762.entry.js +0 -1
- package/dist/webcomponents/p-4810f227.entry.js +0 -1
- package/dist/webcomponents/p-485814d8.entry.js +0 -1
- package/dist/webcomponents/p-4bad3621.js +0 -1
- package/dist/webcomponents/p-57206dc4.entry.js +0 -1
- package/dist/webcomponents/p-58f5e37b.entry.js +0 -1
- package/dist/webcomponents/p-5b72bab7.js +0 -1
- package/dist/webcomponents/p-62696f63.entry.js +0 -1
- package/dist/webcomponents/p-63a8b08f.entry.js +0 -1
- package/dist/webcomponents/p-63caad6e.entry.js +0 -1
- package/dist/webcomponents/p-66b6c56b.js +0 -1
- package/dist/webcomponents/p-67b75e01.entry.js +0 -1
- package/dist/webcomponents/p-68bf1a1d.entry.js +0 -1
- package/dist/webcomponents/p-6d2c8be2.entry.js +0 -1
- package/dist/webcomponents/p-72992c97.entry.js +0 -1
- package/dist/webcomponents/p-7b04f492.entry.js +0 -1
- package/dist/webcomponents/p-7bcec768.entry.js +0 -1
- package/dist/webcomponents/p-7c31ec70.js +0 -1
- package/dist/webcomponents/p-8da3667c.js +0 -1
- package/dist/webcomponents/p-933537ca.js +0 -1
- package/dist/webcomponents/p-9540d2f2.js +0 -1
- package/dist/webcomponents/p-960a8ec2.js +0 -1
- package/dist/webcomponents/p-98dad117.entry.js +0 -1
- package/dist/webcomponents/p-9ad6e792.entry.js +0 -1
- package/dist/webcomponents/p-9f773228.js +0 -1
- package/dist/webcomponents/p-a2076a0e.js +0 -1
- package/dist/webcomponents/p-a47c14cb.entry.js +0 -1
- package/dist/webcomponents/p-aa02cf71.js +0 -1
- package/dist/webcomponents/p-b01405ab.entry.js +0 -1
- package/dist/webcomponents/p-b15ad5df.js +0 -1
- package/dist/webcomponents/p-b2209632.entry.js +0 -1
- package/dist/webcomponents/p-b2edb944.js +0 -1
- package/dist/webcomponents/p-b6e90400.entry.js +0 -1
- package/dist/webcomponents/p-c75481bf.entry.js +0 -1
- package/dist/webcomponents/p-d0bde1cb.js +0 -1
- package/dist/webcomponents/p-d8c04275.js +0 -1
- package/dist/webcomponents/p-dd867d1f.js +0 -1
- package/dist/webcomponents/p-ddcd2ff7.entry.js +0 -1
- package/dist/webcomponents/p-e22df884.entry.js +0 -1
- package/dist/webcomponents/p-e8c3c23f.js +0 -1
- package/dist/webcomponents/p-e8d0f978.entry.js +0 -1
- package/dist/webcomponents/p-f0c0cbc8.entry.js +0 -1
- package/dist/webcomponents/p-f694e1c8.js +0 -1
- package/dist/webcomponents/p-fa2b405c.entry.js +0 -1
- package/dist/webcomponents/p-fbe16023.entry.js +0 -1
- package/dist/webcomponents/p-fdbcd486.js +0 -1
- package/dist/webcomponents/p-ff955a18.entry.js +0 -1
- /package/dist/collection/{components/business-details → actions/business}/get-business.js +0 -0
- /package/dist/collection/{components → actions}/checkout/checkout-actions.js +0 -0
- /package/dist/collection/{components/checkouts-list → actions/checkout}/get-checkouts.js +0 -0
- /package/dist/collection/{components/dispute-management → actions/dispute}/dispute-actions.js +0 -0
- /package/dist/collection/{components/gross-payment-chart → actions/gross-payment}/get-gross-payment-chart-data.js +0 -0
- /package/dist/collection/{components → actions}/insurance/insurance-actions.js +0 -0
- /package/dist/collection/{components/payment-details → actions/payment}/get-payment-details.js +0 -0
- /package/dist/collection/{components/payments-list → actions/payment}/get-payments.js +0 -0
- /package/dist/collection/{components/payout-details → actions/payout}/get-payout-details.js +0 -0
- /package/dist/collection/{components/payouts-list → actions/payout}/get-payouts.js +0 -0
- /package/dist/collection/{components/terminals-list → actions/terminal}/get-terminal-detail.js +0 -0
- /package/dist/collection/{components/terminals-list → actions/terminal}/get-terminals.js +0 -0
- /package/dist/types/{components/business-details → actions/business}/get-business.d.ts +0 -0
- /package/dist/types/{components → actions}/checkout/checkout-actions.d.ts +0 -0
- /package/dist/types/{components/checkouts-list → actions/checkout}/get-checkouts.d.ts +0 -0
- /package/dist/types/{components/dispute-management → actions/dispute}/dispute-actions.d.ts +0 -0
- /package/dist/types/{components/gross-payment-chart → actions/gross-payment}/get-gross-payment-chart-data.d.ts +0 -0
- /package/dist/types/{components → actions}/insurance/insurance-actions.d.ts +0 -0
- /package/dist/types/{components/payment-details → actions/payment}/get-payment-details.d.ts +0 -0
- /package/dist/types/{components/payments-list → actions/payment}/get-payments.d.ts +0 -0
- /package/dist/types/{components/payout-details → actions/payout}/get-payout-details.d.ts +0 -0
- /package/dist/types/{components/payouts-list → actions/payout}/get-payouts.d.ts +0 -0
- /package/dist/types/{api → actions/sub-account}/get-subaccounts.d.ts +0 -0
- /package/dist/types/{components/terminals-list → actions/terminal}/get-terminal-detail.d.ts +0 -0
- /package/dist/types/{components/terminals-list → actions/terminal}/get-terminals.d.ts +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const _package = require('./package-
|
|
4
|
-
const Api = require('./Api-
|
|
3
|
+
const _package = require('./package-74690e82.js');
|
|
4
|
+
const Api = require('./Api-f5280a80.js');
|
|
5
5
|
|
|
6
6
|
class AnalyticsService {
|
|
7
7
|
async record(body) {
|
|
8
8
|
const endpoint = 'analytics';
|
|
9
|
-
return Api.Api({ apiOrigin:
|
|
9
|
+
return Api.Api({ apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, body);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -22,6 +22,11 @@ class JustifiAnalytics {
|
|
|
22
22
|
// Track the event
|
|
23
23
|
await this.service.record(data);
|
|
24
24
|
};
|
|
25
|
+
// dont track analytics in local or storybook
|
|
26
|
+
if (window.location.origin.includes('localhost') ||
|
|
27
|
+
window.location.origin.includes('storybook')) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
25
30
|
this.service = new AnalyticsService();
|
|
26
31
|
this.componentInstance = component;
|
|
27
32
|
this.setUpBasicData();
|
|
@@ -76,24 +81,4 @@ class JustifiAnalytics {
|
|
|
76
81
|
}
|
|
77
82
|
}
|
|
78
83
|
|
|
79
|
-
const latestVersion = async (packageName) => {
|
|
80
|
-
const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
|
|
81
|
-
const json = await response.json();
|
|
82
|
-
return json.version;
|
|
83
|
-
};
|
|
84
|
-
const checkPkgVersion = async () => {
|
|
85
|
-
const version = _package.packageJson.version;
|
|
86
|
-
const packageName = _package.packageJson.name;
|
|
87
|
-
const latest = await latestVersion(packageName);
|
|
88
|
-
// remove rc from version and everything that comes after -rc
|
|
89
|
-
const latestNotRC = latest.replace(/-rc.*/, '');
|
|
90
|
-
// checkif there's a major version difference
|
|
91
|
-
const versionParts = version.split('.');
|
|
92
|
-
const latestParts = latest.split('.');
|
|
93
|
-
if (versionParts[0] !== latestParts[0]) {
|
|
94
|
-
console.warn(`The package ${packageName} is out of date. The latest version is ${latestNotRC}. Please update.`);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
84
|
exports.JustifiAnalytics = JustifiAnalytics;
|
|
99
|
-
exports.checkPkgVersion = checkPkgVersion;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const config = {
|
|
4
|
-
proxyApiOrigin: "https://wc-proxy.justifi.ai",
|
|
5
|
-
iFrameOrigin: "https://components.justifi.ai/v2",
|
|
6
|
-
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
7
|
-
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
8
|
-
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
|
9
|
-
examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
|
|
10
|
-
examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
|
|
11
|
-
privateApiOrigin: '',
|
|
12
|
-
privateAuthToken: '',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
3
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
16
4
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
17
5
|
// generators (like Math.random()).
|
|
@@ -128,4 +116,3 @@ function handleError(requestUrl) {
|
|
|
128
116
|
}
|
|
129
117
|
|
|
130
118
|
exports.Api = Api;
|
|
131
|
-
exports.config = config;
|
|
@@ -189,14 +189,18 @@ class Business {
|
|
|
189
189
|
this.email = business.email;
|
|
190
190
|
this.id = business.id;
|
|
191
191
|
this.industry = business.industry;
|
|
192
|
-
this.legal_address =
|
|
192
|
+
this.legal_address = (business === null || business === void 0 ? void 0 : business.legal_address)
|
|
193
|
+
? new Address(business.legal_address)
|
|
194
|
+
: null;
|
|
193
195
|
this.legal_name = business.legal_name;
|
|
194
196
|
this.metadata = business.metadata;
|
|
195
197
|
this.owners = business.owners;
|
|
196
198
|
this.phone = business.phone;
|
|
197
199
|
this.platform_account_id = business.platform_account_id;
|
|
198
200
|
this.product_categories = business.product_categories;
|
|
199
|
-
this.representative =
|
|
201
|
+
this.representative = business.representative
|
|
202
|
+
? new Representative(business.representative)
|
|
203
|
+
: null;
|
|
200
204
|
this.tax_id = business.tax_id;
|
|
201
205
|
this.terms_conditions_accepted = business.terms_conditions_accepted;
|
|
202
206
|
this.updated_at = business.updated_at;
|
|
@@ -4,7 +4,7 @@ const utils = require('./utils-337befa9.js');
|
|
|
4
4
|
|
|
5
5
|
class Completion {
|
|
6
6
|
constructor(data) {
|
|
7
|
-
this.payment_mode = ICheckoutPaymentMode[data.payment_mode];
|
|
7
|
+
this.payment_mode = exports.ICheckoutPaymentMode[data.payment_mode];
|
|
8
8
|
this.payment_token = data.payment_token;
|
|
9
9
|
this.payment_status = data.payment_status;
|
|
10
10
|
this.payment_response = data.payment_response;
|
|
@@ -36,7 +36,7 @@ class Checkout {
|
|
|
36
36
|
this.bnpl = data.bnpl;
|
|
37
37
|
this.total_amount = data.total_amount;
|
|
38
38
|
this.insurance_amount = data.insurance_amount;
|
|
39
|
-
this.status = data.status;
|
|
39
|
+
this.status = exports.ICheckoutStatus[data.status];
|
|
40
40
|
this.payment_currency = data.payment_currency;
|
|
41
41
|
this.mode = data.mode;
|
|
42
42
|
this.statement_descriptor = data.statement_descriptor;
|
|
@@ -50,7 +50,7 @@ class Checkout {
|
|
|
50
50
|
var _a, _b, _c, _d, _e, _f;
|
|
51
51
|
let paymentMode;
|
|
52
52
|
if (!this.completions || this.completions.length === 0) {
|
|
53
|
-
return ICheckoutPaymentMode.unknown;
|
|
53
|
+
return exports.ICheckoutPaymentMode.unknown;
|
|
54
54
|
}
|
|
55
55
|
const sortedCompletions = this.completions.sort((a, b) => {
|
|
56
56
|
return new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime();
|
|
@@ -60,10 +60,10 @@ class Checkout {
|
|
|
60
60
|
paymentMode = lastCompletion.payment_mode;
|
|
61
61
|
}
|
|
62
62
|
else if ((_c = (_b = (_a = lastCompletion.payment_response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.payment_method) === null || _c === void 0 ? void 0 : _c.card) {
|
|
63
|
-
paymentMode = ICheckoutPaymentMode.card;
|
|
63
|
+
paymentMode = exports.ICheckoutPaymentMode.card;
|
|
64
64
|
}
|
|
65
65
|
else if ((_f = (_e = (_d = lastCompletion.payment_response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.payment_method) === null || _f === void 0 ? void 0 : _f.bank_account) {
|
|
66
|
-
paymentMode = ICheckoutPaymentMode.bank_account;
|
|
66
|
+
paymentMode = exports.ICheckoutPaymentMode.bank_account;
|
|
67
67
|
}
|
|
68
68
|
return paymentMode;
|
|
69
69
|
}
|
|
@@ -73,7 +73,7 @@ class Checkout {
|
|
|
73
73
|
}
|
|
74
74
|
;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
exports.ICheckoutPaymentMode = void 0;
|
|
77
77
|
(function (ICheckoutPaymentMode) {
|
|
78
78
|
ICheckoutPaymentMode["bnpl"] = "Buy Now Pay Later";
|
|
79
79
|
ICheckoutPaymentMode["ecom"] = "E-commerce";
|
|
@@ -81,7 +81,14 @@ var ICheckoutPaymentMode;
|
|
|
81
81
|
ICheckoutPaymentMode["bank_account"] = "Bank Account";
|
|
82
82
|
ICheckoutPaymentMode["card_present"] = "Card Present";
|
|
83
83
|
ICheckoutPaymentMode["unknown"] = "";
|
|
84
|
-
})(ICheckoutPaymentMode || (ICheckoutPaymentMode = {}));
|
|
84
|
+
})(exports.ICheckoutPaymentMode || (exports.ICheckoutPaymentMode = {}));
|
|
85
|
+
exports.ICheckoutStatus = void 0;
|
|
86
|
+
(function (ICheckoutStatus) {
|
|
87
|
+
ICheckoutStatus["created"] = "created";
|
|
88
|
+
ICheckoutStatus["completed"] = "completed";
|
|
89
|
+
ICheckoutStatus["attempted"] = "attempted";
|
|
90
|
+
ICheckoutStatus["expired"] = "expired";
|
|
91
|
+
})(exports.ICheckoutStatus || (exports.ICheckoutStatus = {}));
|
|
85
92
|
var CompletionStatuses;
|
|
86
93
|
(function (CompletionStatuses) {
|
|
87
94
|
CompletionStatuses["failed"] = "failed";
|
|
@@ -42,20 +42,17 @@ class Payout {
|
|
|
42
42
|
this.created_at = payout.created_at;
|
|
43
43
|
this.updated_at = payout.updated_at;
|
|
44
44
|
}
|
|
45
|
-
get csv() {
|
|
46
|
-
return this.id;
|
|
47
|
-
}
|
|
48
45
|
formattedPaymentAmount(amount) {
|
|
49
46
|
return utils.formatCurrency(amount, this.currency);
|
|
50
47
|
}
|
|
51
48
|
}
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
(function (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
})(
|
|
50
|
+
exports.ITerminalStatus = void 0;
|
|
51
|
+
(function (ITerminalStatus) {
|
|
52
|
+
ITerminalStatus["connected"] = "connected";
|
|
53
|
+
ITerminalStatus["disconnected"] = "disconnected";
|
|
54
|
+
ITerminalStatus["unknown"] = "unknown";
|
|
55
|
+
})(exports.ITerminalStatus || (exports.ITerminalStatus = {}));
|
|
59
56
|
var TerminalProviders;
|
|
60
57
|
(function (TerminalProviders) {
|
|
61
58
|
TerminalProviders["verifone"] = "verifone";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const utils$1 = require('./utils-
|
|
6
|
+
const utils$1 = require('./utils-7c5b2837.js');
|
|
7
7
|
const utils = require('./utils-337befa9.js');
|
|
8
|
-
require('./parts-
|
|
8
|
+
require('./parts-c2655003.js');
|
|
9
9
|
|
|
10
10
|
const AdditionalQuestionsDetails = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
require('./ComponentError-233ac749.js');
|
|
7
|
-
require('./Checkout-
|
|
7
|
+
require('./Checkout-1c07dc32.js');
|
|
8
8
|
require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-c47ed1e1.js');
|
|
10
|
-
require('./SubAccount-
|
|
10
|
+
require('./SubAccount-b4811a8e.js');
|
|
11
11
|
const Document = require('./Document-0b828345.js');
|
|
12
|
-
const businessFormOptions = require('./business-form-options-
|
|
12
|
+
const businessFormOptions = require('./business-form-options-62e9c8ab.js');
|
|
13
13
|
require('./event-types-180a85a9.js');
|
|
14
14
|
const utils = require('./utils-bc03ca40.js');
|
|
15
15
|
const utils$1 = require('./utils-337befa9.js');
|
|
16
|
-
const parts = require('./parts-
|
|
17
|
-
const skeleton = require('./skeleton-
|
|
18
|
-
const formControlErrorText = require('./form-control-error-text-
|
|
16
|
+
const parts = require('./parts-c2655003.js');
|
|
17
|
+
const skeleton = require('./skeleton-84102a44.js');
|
|
18
|
+
const formControlErrorText = require('./form-control-error-text-9905e3b8.js');
|
|
19
19
|
require('./Dispute-eb6bad54.js');
|
|
20
|
-
require('./Business-
|
|
20
|
+
require('./Business-d88b77fd.js');
|
|
21
21
|
require('./helpers-602962eb.js');
|
|
22
22
|
require('./state-options-4fbcb48a.js');
|
|
23
23
|
|
|
@@ -116,10 +116,10 @@ const FileInput = class {
|
|
|
116
116
|
return part;
|
|
117
117
|
}
|
|
118
118
|
render() {
|
|
119
|
-
return (index.h(index.Host, { key: '
|
|
119
|
+
return (index.h(index.Host, { key: '09e633d625a1f8f2233d80e8b999fcd7e4a16f62' }, index.h("div", { key: 'b788fd0963c0ab62d0f7e236fb47ea86430b522e', class: "form-group d-flex flex-column" }, index.h("div", { key: '1e7a11e13ec3c386c9f30b5cd38c3afa99c88da5', class: "d-flex align-items-start gap-2" }, index.h("label", { key: '45cd0d97ae44c32b4d1e0d87187ac1871511c319', part: parts.label, class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: 'd312e4f181dfb18c0b86048960ec0a333760f290', helpText: this.helpText })), index.h("input", { key: '73ff59959c75dc99cccddde819ebbeb6bc1de4ab', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
120
120
|
this.isFocused = false;
|
|
121
121
|
this.formControlBlur.emit();
|
|
122
|
-
} }), index.h(formControlErrorText.FormControlErrorText, { key: '
|
|
122
|
+
} }), index.h(formControlErrorText.FormControlErrorText, { key: 'cb9c8bd4f623ebd82bdbd9725805f6038b0e1f8c', errorText: this.errorText, name: this.name }))));
|
|
123
123
|
}
|
|
124
124
|
get el() { return index.getElement(this); }
|
|
125
125
|
};
|
|
@@ -3,18 +3,36 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
+
const skeleton = require('./skeleton-84102a44.js');
|
|
6
7
|
const iframeInputStylesState = require('./iframe-input-styles-state-d0de0b24.js');
|
|
7
|
-
const parts = require('./parts-
|
|
8
|
-
const header3 = require('./header-3-
|
|
8
|
+
const parts = require('./parts-c2655003.js');
|
|
9
|
+
const header3 = require('./header-3-5f78acd1.js');
|
|
9
10
|
const Payment = require('./Payment-c47ed1e1.js');
|
|
10
11
|
const utils = require('./utils-337befa9.js');
|
|
11
12
|
require('./index-d2d0b181.js');
|
|
12
13
|
require('./Dispute-eb6bad54.js');
|
|
13
14
|
|
|
15
|
+
const BankAccountFormSkeleton = (props) => {
|
|
16
|
+
const { isReady } = props;
|
|
17
|
+
if (isReady) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return (index.h("div", { class: "container-fluid p-0" },
|
|
21
|
+
index.h("div", { class: "row mb-3" },
|
|
22
|
+
index.h("div", { class: "col-12 align-content-end" },
|
|
23
|
+
index.h(skeleton.Skeleton, { height: "18px", width: "120px" }),
|
|
24
|
+
index.h(skeleton.Skeleton, { height: "36px" }))),
|
|
25
|
+
index.h("div", { class: "row" },
|
|
26
|
+
index.h("div", { class: "col-12 align-content-end" },
|
|
27
|
+
index.h(skeleton.Skeleton, { height: "18px", width: "110px" }),
|
|
28
|
+
index.h(skeleton.Skeleton, { height: "36px" })))));
|
|
29
|
+
};
|
|
30
|
+
|
|
14
31
|
const BankAccountForm = class {
|
|
15
32
|
constructor(hostRef) {
|
|
16
33
|
index.registerInstance(this, hostRef);
|
|
17
34
|
this.iframeOrigin = undefined;
|
|
35
|
+
this.isReady = false;
|
|
18
36
|
}
|
|
19
37
|
async validate() {
|
|
20
38
|
const accountNumberIsValid = await this.accountNumberIframeElement.validate();
|
|
@@ -24,15 +42,67 @@ const BankAccountForm = class {
|
|
|
24
42
|
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
25
43
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
26
44
|
}
|
|
45
|
+
componentDidRender() {
|
|
46
|
+
const elements = [
|
|
47
|
+
this.accountNumberIframeElement,
|
|
48
|
+
this.routingNumberIframeElement,
|
|
49
|
+
];
|
|
50
|
+
Promise.all(elements.map((element) => {
|
|
51
|
+
return new Promise((resolve) => {
|
|
52
|
+
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
53
|
+
});
|
|
54
|
+
})).then(() => {
|
|
55
|
+
this.isReady = true;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
27
58
|
render() {
|
|
28
|
-
return (index.h(index.Host, { key: '
|
|
59
|
+
return (index.h(index.Host, { key: '18ace2e10e76c27166f2432a84880be2e14e7d23' }, index.h(BankAccountFormSkeleton, { key: 'd2d3eb44c8854913866e2f1178418ab5cd43429e', isReady: this.isReady }), index.h("div", { key: '84987e3e4d8e5ed4f314f7e306f7e8e48f457bcb', class: "container-fluid p-0", style: {
|
|
60
|
+
opacity: this.isReady ? '1' : '0',
|
|
61
|
+
height: this.isReady ? 'auto' : '0',
|
|
62
|
+
} }, index.h("div", { key: 'b74ce1520cc0dd97d527ba0b8607ad891a645142', class: "row mb-3" }, index.h("iframe-input", { key: '6966eae250b2d702d0fb887a09fa1b14467fd823', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), index.h("div", { key: '02da6bb34dd86fd0e3dddd0d12bdcb7b85bfc70c', class: "row" }, index.h("iframe-input", { key: '3f8439860fae1d743e10f6b51f9d10cbe451bcae', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
29
63
|
}
|
|
30
64
|
};
|
|
31
65
|
|
|
66
|
+
const CardFormSkeleton = (props) => {
|
|
67
|
+
const { isReady } = props;
|
|
68
|
+
if (isReady) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
return (index.h("div", { class: "container-fluid p-0" },
|
|
72
|
+
index.h("div", { class: "mb-3" },
|
|
73
|
+
index.h(skeleton.Skeleton, { height: "18px", width: "100px" }),
|
|
74
|
+
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
75
|
+
index.h("div", { class: "row" },
|
|
76
|
+
index.h("div", { class: "col-4 align-content-end" },
|
|
77
|
+
index.h(skeleton.Skeleton, { height: "18px", width: "80px" }),
|
|
78
|
+
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
79
|
+
index.h("div", { class: "col-4 align-content-end" },
|
|
80
|
+
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
81
|
+
index.h("div", { class: "col-4 align-content-end" },
|
|
82
|
+
index.h(skeleton.Skeleton, { height: "18px", width: "30px" }),
|
|
83
|
+
index.h(skeleton.Skeleton, { height: "36px" })))));
|
|
84
|
+
};
|
|
85
|
+
|
|
32
86
|
const CardForm = class {
|
|
33
87
|
constructor(hostRef) {
|
|
34
88
|
index.registerInstance(this, hostRef);
|
|
35
89
|
this.iframeOrigin = undefined;
|
|
90
|
+
this.isReady = false;
|
|
91
|
+
}
|
|
92
|
+
componentDidRender() {
|
|
93
|
+
const elements = [
|
|
94
|
+
this.cardNumberIframeElement,
|
|
95
|
+
this.expirationMonthIframeElement,
|
|
96
|
+
this.expirationYearIframeElement,
|
|
97
|
+
this.cvvIframeElement,
|
|
98
|
+
];
|
|
99
|
+
Promise.all(elements.map((element) => {
|
|
100
|
+
return new Promise((resolve) => {
|
|
101
|
+
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
102
|
+
});
|
|
103
|
+
})).then(() => {
|
|
104
|
+
this.isReady = true;
|
|
105
|
+
});
|
|
36
106
|
}
|
|
37
107
|
async validate() {
|
|
38
108
|
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
@@ -45,7 +115,10 @@ const CardForm = class {
|
|
|
45
115
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
46
116
|
}
|
|
47
117
|
render() {
|
|
48
|
-
return (index.h(index.Host, { key: '
|
|
118
|
+
return (index.h(index.Host, { key: 'a97247efa8298a7e4c3498690974e482e36ae966' }, index.h(CardFormSkeleton, { key: '52f338782020b5926377c9968bb85364ad720c68', isReady: this.isReady }), index.h("div", { key: '7cb7e827c407a18e09c1e0c925896644032428b8', class: "container-fluid p-0", style: {
|
|
119
|
+
opacity: this.isReady ? '1' : '0',
|
|
120
|
+
height: this.isReady ? 'auto' : '0',
|
|
121
|
+
} }, index.h("div", { key: '9a49fd64a1464ae0ae032883bd79c8a7e9c5d4b3', class: "mb-3" }, index.h("iframe-input", { key: '8778a816cbbd96f5b0c7e8f3364a704bd7aab2d8', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), index.h("div", { key: '53ab4f9f636acfa72744cd5d364a4ae3a3c732d4', class: "row" }, index.h("div", { key: '01aec684cab29a4aa24839acfc3ecc9e914c9911', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '9c87ff44375de2d46028f2532a33856cf608c6a0', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), index.h("div", { key: 'bc9176ebc7561c7cc0b654e837852a18c1b49f60', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '5f6b133bc5ae94f912648d210a6e58dd4fe1e880', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), index.h("div", { key: '404c90decbac6b142b45c21a2997c0771bb59092', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '1b9e89656a437b080fbf92b4ebd74772ae1f26f4', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
49
122
|
}
|
|
50
123
|
};
|
|
51
124
|
|
|
@@ -122,7 +195,7 @@ const HiddenInput = class {
|
|
|
122
195
|
return parts.input;
|
|
123
196
|
}
|
|
124
197
|
render() {
|
|
125
|
-
return (index.h(index.Host, { key: '
|
|
198
|
+
return (index.h(index.Host, { key: '7bfd14ae6eb04d3bccb6f95398213655bc5c1073' }, index.h("input", { key: 'a40b6c6b2fd4e217af572f2032b158cc0ad603d2', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
|
|
126
199
|
}
|
|
127
200
|
};
|
|
128
201
|
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const index_esm = require('./index.esm-a397536a.js');
|
|
7
|
-
const schemaValidations = require('./schema-validations-
|
|
7
|
+
const schemaValidations = require('./schema-validations-47a256f4.js');
|
|
8
8
|
const stateOptions = require('./state-options-4fbcb48a.js');
|
|
9
9
|
const utils = require('./utils-bc03ca40.js');
|
|
10
|
-
const formControlErrorText = require('./form-control-error-text-
|
|
11
|
-
const _package = require('./package-
|
|
10
|
+
const formControlErrorText = require('./form-control-error-text-9905e3b8.js');
|
|
11
|
+
const _package = require('./package-74690e82.js');
|
|
12
12
|
const iframeInputStylesState = require('./iframe-input-styles-state-d0de0b24.js');
|
|
13
|
-
const parts = require('./parts-
|
|
14
|
-
require('./business-form-options-
|
|
15
|
-
require('./Business-
|
|
13
|
+
const parts = require('./parts-c2655003.js');
|
|
14
|
+
require('./business-form-options-62e9c8ab.js');
|
|
15
|
+
require('./Business-d88b77fd.js');
|
|
16
16
|
require('./helpers-602962eb.js');
|
|
17
17
|
require('./Document-0b828345.js');
|
|
18
18
|
require('./index-d2d0b181.js');
|
|
@@ -1600,6 +1600,7 @@ const MessageEventType = {
|
|
|
1600
1600
|
const IframeInput = class {
|
|
1601
1601
|
constructor(hostRef) {
|
|
1602
1602
|
index.registerInstance(this, hostRef);
|
|
1603
|
+
this.iframeLoaded = index.createEvent(this, "iframeLoaded", 7);
|
|
1603
1604
|
this.dispatchMessageEvent = (event) => {
|
|
1604
1605
|
const { eventType, data } = event.data;
|
|
1605
1606
|
if ((data === null || data === void 0 ? void 0 : data.id) !== this.inputId) {
|
|
@@ -1615,7 +1616,6 @@ const IframeInput = class {
|
|
|
1615
1616
|
this.isFocused = false;
|
|
1616
1617
|
this.isValid = true;
|
|
1617
1618
|
this.errorText = undefined;
|
|
1618
|
-
this.iframeLoaded = false;
|
|
1619
1619
|
this.inputId = undefined;
|
|
1620
1620
|
this.label = undefined;
|
|
1621
1621
|
this.iframeOrigin = undefined;
|
|
@@ -1674,20 +1674,20 @@ const IframeInput = class {
|
|
|
1674
1674
|
return params;
|
|
1675
1675
|
}
|
|
1676
1676
|
render() {
|
|
1677
|
-
return (index.h(index.Host, { key: '
|
|
1677
|
+
return (index.h(index.Host, { key: '871d71c6240e94e24f7ccc4c4ec8225b4123d865', class: "form-group d-flex flex-column" }, index.h("div", { key: '0a1d98cba0960599d29db3c269bb8b458cdfddc8', style: {
|
|
1678
1678
|
visibility: this.iframeLoaded ? 'visible' : 'hidden',
|
|
1679
1679
|
height: this.iframeLoaded ? 'auto' : '0',
|
|
1680
|
-
} }, index.h("label", { key: '
|
|
1680
|
+
} }, index.h("label", { key: 'bfd2e61b544db648cada7a52b45809bebf5722a8', class: "form-label", htmlFor: "", part: parts.label }, this.label || ''), index.h("div", { key: '53e9f9a29e07edcdcbb00b023ba0f24d09d852ab', class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }, index.h("iframe", { key: '2adc709c4094c44181dd83906763b4809b3f168b', id: this.inputId, name: this.inputId, src: `${this.iframeOrigin}?${this.urlParams}`, ref: el => {
|
|
1681
1681
|
this.iframeElement = el;
|
|
1682
1682
|
this.initializeFrameCommunicationService();
|
|
1683
1683
|
}, width: "100%", onLoad: () => {
|
|
1684
1684
|
iFrameResize({
|
|
1685
1685
|
log: false,
|
|
1686
1686
|
onResized: () => {
|
|
1687
|
-
this.iframeLoaded
|
|
1687
|
+
this.iframeLoaded.emit();
|
|
1688
1688
|
}
|
|
1689
1689
|
}, this.iframeElement);
|
|
1690
|
-
} })), index.h(formControlErrorText.FormControlErrorText, { key: '
|
|
1690
|
+
} })), index.h(formControlErrorText.FormControlErrorText, { key: 'c54bafd097b1e3e896901252d3520bfdfe5c71b6', errorText: this.errorText, name: this.inputId }))));
|
|
1691
1691
|
}
|
|
1692
1692
|
get el() { return index.getElement(this); }
|
|
1693
1693
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index_esm = require('./index.esm-a397536a.js');
|
|
4
|
-
const schemaValidations = require('./schema-validations-
|
|
4
|
+
const schemaValidations = require('./schema-validations-47a256f4.js');
|
|
5
5
|
|
|
6
6
|
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
7
7
|
const schema = index_esm.create$3({
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-7c5b2837.js');
|
|
7
7
|
const styledHost = require('./styled-host-94309bab.js');
|
|
8
|
-
const skeleton = require('./skeleton-
|
|
9
|
-
require('./parts-
|
|
8
|
+
const skeleton = require('./skeleton-84102a44.js');
|
|
9
|
+
require('./parts-c2655003.js');
|
|
10
10
|
|
|
11
11
|
const BusinessDetailsLoading = () => {
|
|
12
12
|
const Block = () => (index.h("div", { class: "mt-5" },
|
package/dist/cjs/{business-identity-schema-7d462eb3.js → business-identity-schema-3b4d16f1.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index_esm = require('./index.esm-a397536a.js');
|
|
4
|
-
const schemaValidations = require('./schema-validations-
|
|
4
|
+
const schemaValidations = require('./schema-validations-47a256f4.js');
|
|
5
5
|
|
|
6
6
|
const addressSchema = (allowOptionalFields) => {
|
|
7
7
|
const schema = index_esm.create$3({
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const Api = require('./Api-
|
|
3
|
+
const Api = require('./Api-f5280a80.js');
|
|
4
4
|
|
|
5
5
|
class BusinessService {
|
|
6
6
|
async fetchBusiness(businessId, authToken) {
|
|
7
7
|
const endpoint = `entities/business/${businessId}`;
|
|
8
|
-
return Api.Api({ authToken, apiOrigin:
|
|
8
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
9
9
|
}
|
|
10
10
|
async patchBusiness(authToken, businessId, payload) {
|
|
11
11
|
const endpoint = `entities/business/${businessId}`;
|
|
12
|
-
return Api.Api({ authToken, apiOrigin:
|
|
12
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).patch(endpoint, payload);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
class IdentityService {
|
|
16
16
|
async fetchIdentity(identityId, authToken) {
|
|
17
17
|
const endpoint = `entities/identity/${identityId}`;
|
|
18
|
-
return Api.Api({ authToken, apiOrigin:
|
|
18
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
19
19
|
}
|
|
20
20
|
async patchIdentity(authToken, identityId, payload) {
|
|
21
21
|
const endpoint = `entities/identity/${identityId}`;
|
|
22
|
-
return Api.Api({ authToken, apiOrigin:
|
|
22
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).patch(endpoint, payload);
|
|
23
23
|
}
|
|
24
24
|
async postIdentity(authToken, payload) {
|
|
25
25
|
const endpoint = `entities/identity`;
|
|
26
|
-
return Api.Api({ authToken, apiOrigin:
|
|
26
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
class BusinessBankAccountService {
|
|
30
30
|
async postBankAccount(authToken, payload) {
|
|
31
31
|
const endpoint = `entities/bank_accounts`;
|
|
32
|
-
return Api.Api({ authToken, apiOrigin:
|
|
32
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
class DocumentRecordService {
|
|
36
36
|
async postDocumentRecord(authToken, payload) {
|
|
37
37
|
const endpoint = `entities/document`;
|
|
38
|
-
return Api.Api({ authToken, apiOrigin:
|
|
38
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-5b9a3b5f.js');
|
|
4
|
-
const parts = require('./parts-
|
|
4
|
+
const parts = require('./parts-c2655003.js');
|
|
5
5
|
|
|
6
6
|
const ButtonSpinner = () => (index.h("div", { class: "spinner-border spinner-border-sm", role: "status", part: "button-spinner" },
|
|
7
7
|
index.h("span", { class: "visually-hidden" }, "Loading...")));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const _package = require('./package-74690e82.js');
|
|
4
|
+
|
|
5
|
+
const latestVersion = async (packageName) => {
|
|
6
|
+
const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
|
|
7
|
+
const json = await response.json();
|
|
8
|
+
return json.version;
|
|
9
|
+
};
|
|
10
|
+
const checkPkgVersion = async () => {
|
|
11
|
+
const version = _package.packageJson.version;
|
|
12
|
+
const packageName = _package.packageJson.name;
|
|
13
|
+
const latest = await latestVersion(packageName);
|
|
14
|
+
// remove rc from version and everything that comes after -rc
|
|
15
|
+
const latestNotRC = latest.replace(/-rc.*/, '');
|
|
16
|
+
// checkif there's a major version difference
|
|
17
|
+
const versionParts = version.split('.');
|
|
18
|
+
const latestParts = latest.split('.');
|
|
19
|
+
if (versionParts[0] !== latestParts[0]) {
|
|
20
|
+
console.warn(`The package ${packageName} is out of date. The latest version is ${latestNotRC}. Please update.`);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.checkPkgVersion = checkPkgVersion;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const Api = require('./Api-
|
|
3
|
+
const Api = require('./Api-f5280a80.js');
|
|
4
4
|
require('./ComponentError-233ac749.js');
|
|
5
|
-
require('./Checkout-
|
|
5
|
+
require('./Checkout-1c07dc32.js');
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
7
|
require('./Payment-c47ed1e1.js');
|
|
8
|
-
require('./SubAccount-
|
|
8
|
+
require('./SubAccount-b4811a8e.js');
|
|
9
9
|
require('./Document-0b828345.js');
|
|
10
10
|
|
|
11
11
|
class CheckoutService {
|
|
12
12
|
async fetchCheckout(authToken, checkoutId) {
|
|
13
13
|
const endpoint = `checkouts/${checkoutId}`;
|
|
14
|
-
return Api.Api({ authToken, apiOrigin:
|
|
14
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).get(endpoint);
|
|
15
15
|
}
|
|
16
16
|
async fetchCheckouts(accountId, authToken, params, apiOrigin) {
|
|
17
17
|
if (!apiOrigin) {
|
|
18
|
-
apiOrigin =
|
|
18
|
+
apiOrigin = "https://wc-proxy.justifi.ai";
|
|
19
19
|
}
|
|
20
20
|
const headers = { Account: accountId };
|
|
21
21
|
const api = Api.Api({ authToken, apiOrigin: apiOrigin });
|
|
@@ -30,7 +30,7 @@ class CheckoutService {
|
|
|
30
30
|
if (payment.payment_token) {
|
|
31
31
|
payload.payment_token = payment.payment_token;
|
|
32
32
|
}
|
|
33
|
-
return Api.Api({ authToken, apiOrigin:
|
|
33
|
+
return Api.Api({ authToken, apiOrigin: "https://wc-proxy.justifi.ai" }).post(endpoint, payload);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|