@justifi/webcomponents 4.19.3-rc-2 → 4.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-adc90fc6.js → Analytics-03981aad.js} +4 -3
- package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
- package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
- package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
- package/dist/cjs/check-pkg-version-89d6d146.js +24 -0
- package/dist/cjs/config-05767cba.js +15 -0
- package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
- package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
- package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +17 -14
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -7
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +11 -8
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-22d30c5d.js → package-7fdd14b9.js} +4 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
- package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
- package/dist/cjs/styled-host-9e0b67b3.js +14 -0
- package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
- package/dist/cjs/utils-f8a6962c.js +25 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +3 -3
- package/dist/collection/api/Business.js +66 -7
- package/dist/collection/api/Identity.js +39 -3
- package/dist/collection/api/services/analytics.service.js +2 -1
- package/dist/collection/api/services/business.service.js +6 -5
- package/dist/collection/api/services/checkout.service.js +3 -2
- package/dist/collection/api/services/insurance.service.js +3 -2
- package/dist/collection/api/services/payment.service.js +3 -2
- package/dist/collection/api/services/payout.service.js +4 -3
- package/dist/collection/api/services/provision.service.js +2 -1
- package/dist/collection/api/services/reports.service.js +2 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
- package/dist/collection/components/business-details/business-details.js +2 -0
- package/dist/collection/components/business-forms/business-form/business-form.js +7 -5
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
- package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
- package/dist/collection/components/card-form/card-form.js +4 -3
- package/dist/collection/components/checkout/checkout-core.js +4 -4
- package/dist/collection/components/checkout/checkout.js +4 -2
- package/dist/collection/components/checkout/new-payment-method.js +4 -6
- package/dist/collection/components/checkout/payment-method-options.js +4 -3
- package/dist/collection/components/checkout/saved-payment-method.js +4 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
- package/dist/collection/components/form/form-control-date.js +26 -28
- package/dist/collection/components/form/form-control-select.js +45 -45
- package/dist/collection/components/form/form-control-text.js +34 -34
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
- package/dist/collection/components/payment-details/payment-details.js +2 -0
- package/dist/collection/components/payment-form/payment-form.js +6 -3
- package/dist/collection/components/payments-list/payments-list-core.js +14 -9
- package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
- package/dist/collection/components/payments-list/payments-list.js +2 -0
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details.js +2 -0
- package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +2 -0
- package/dist/collection/components/refund-form/refund-form.js +3 -2
- package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
- package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
- package/dist/collection/ui-components/filters/utils.js +20 -0
- package/dist/collection/utils/check-pkg-version.js +19 -0
- package/dist/config.js +11 -0
- package/dist/docs.json +531 -27
- package/dist/{webcomponents/p-15eafa87.js → esm/Analytics-3103f8e9.js} +4 -3
- package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
- package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
- package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
- package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
- package/dist/esm/check-pkg-version-44e6ad15.js +22 -0
- package/dist/esm/config-27764a9d.js +13 -0
- package/dist/esm/custom-popper.entry.js +1890 -0
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox_9.entry.js +21 -21
- package/dist/esm/form-control-date_3.entry.js +4 -4
- package/dist/esm/form-control-error-text_4.entry.js +9 -9
- package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
- package/dist/esm/justifi-bank-account-form.entry.js +6 -5
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +8 -5
- package/dist/esm/justifi-business-form.entry.js +16 -13
- package/dist/esm/justifi-card-form.entry.js +6 -5
- package/dist/esm/justifi-checkout-core.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +10 -7
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +10 -12
- package/dist/esm/justifi-owner-form_3.entry.js +11 -10
- package/dist/esm/justifi-payment-details.entry.js +7 -4
- package/dist/esm/justifi-payment-form.entry.js +11 -8
- package/dist/esm/justifi-payment-method-form.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -6
- package/dist/esm/justifi-payments-list.entry.js +7 -4
- package/dist/esm/justifi-payout-details.entry.js +7 -4
- package/dist/esm/justifi-payouts-list.entry.js +7 -4
- package/dist/esm/justifi-refund-form.entry.js +5 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -6
- package/dist/esm/loader.js +1 -1
- package/dist/{webcomponents/p-2e8f4937.js → esm/package-0e3cc41e.js} +4 -2
- package/dist/esm/payment-details-core.entry.js +2 -2
- package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
- package/dist/esm/payments-list-core.entry.js +16 -11
- package/dist/esm/payments-list-filters_2.entry.js +17261 -0
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +4 -4
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
- package/dist/esm/styled-host-3171ae1f.js +12 -0
- package/dist/esm/utils-3a4d8f3a.js +22 -0
- package/dist/{webcomponents/p-83125497.js → esm/utils-e66d8bca.js} +1 -16
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +2 -1
- package/dist/module/Api.js +3 -3
- package/dist/module/Business.js +104 -9
- package/dist/module/business-additional-questions-form-step-core.js +3 -3
- package/dist/module/business-bank-account-form-step.js +4 -3
- package/dist/module/business-core-info-form-step-core.js +3 -5
- package/dist/module/business-document-upload-form-step.js +4 -3
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-owners-form-step-core.js +3 -3
- package/dist/module/business-representative-form-step-core.js +3 -4
- package/dist/module/business-terms-conditions-form-step.js +4 -3
- package/dist/module/business.service.js +6 -5
- package/dist/module/check-pkg-version.js +22 -0
- package/dist/module/checkout-core.js +3 -3
- package/dist/module/config.js +13 -0
- package/dist/module/custom-popper.d.ts +11 -0
- package/dist/module/custom-popper.js +6 -0
- package/dist/module/custom-popper2.js +1912 -0
- package/dist/module/form-control-date2.js +7 -7
- package/dist/module/form-control-select2.js +9 -9
- package/dist/module/form-control-text2.js +7 -7
- package/dist/module/get-payout-csv.js +4 -3
- package/dist/module/justifi-bank-account-form.js +3 -2
- package/dist/module/justifi-business-details.js +2 -0
- package/dist/module/justifi-business-form.js +7 -5
- package/dist/module/justifi-card-form.js +3 -2
- package/dist/module/justifi-checkout.js +7 -4
- package/dist/module/justifi-gross-payment-chart.js +4 -1
- package/dist/module/justifi-payment-details.js +2 -0
- package/dist/module/justifi-payment-form.js +6 -3
- package/dist/module/justifi-payment-provisioning.js +5 -2
- package/dist/module/justifi-payments-list.js +42 -10
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payouts-list.js +2 -0
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-season-interruption-insurance.js +6 -3
- package/dist/module/legal-address-form-step-core.js +3 -4
- package/dist/module/new-payment-method.js +3 -5
- package/dist/module/owner-form-core2.js +4 -5
- package/dist/module/package.js +4 -2
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- package/dist/module/payments-list-core2.js +52 -18
- package/dist/module/payments-list-filters.d.ts +11 -0
- package/dist/module/payments-list-filters.js +6 -0
- package/dist/module/payments-list-filters2.js +17294 -0
- package/dist/module/payout-details-core2.js +2 -2
- package/dist/module/payouts-list-core2.js +3 -3
- package/dist/module/saved-payment-method.js +4 -3
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu.d.ts +11 -0
- package/dist/module/table-filters-menu.js +6 -0
- package/dist/module/table-filters-menu2.js +80 -0
- package/dist/module/utils2.js +1 -16
- package/dist/types/api/Business.d.ts +87 -1
- package/dist/types/api/Identity.d.ts +45 -1
- package/dist/types/api/Payment.d.ts +8 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
- package/dist/types/components/form/form-control-date.d.ts +4 -4
- package/dist/types/components/form/form-control-select.d.ts +6 -6
- package/dist/types/components/form/form-control-text.d.ts +4 -4
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
- package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
- package/dist/types/components.d.ts +89 -10
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
- package/dist/types/ui-components/filters/utils.d.ts +2 -0
- package/dist/types/utils/check-pkg-version.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +0 -1
- package/dist/webcomponents/p-056e75be.entry.js +1 -0
- package/dist/webcomponents/p-05718341.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -41
- package/dist/webcomponents/p-0de026dd.entry.js +1 -0
- package/dist/webcomponents/p-0e84986e.entry.js +10 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-14c91ffd.js +1 -20
- package/dist/webcomponents/p-1612894d.js +1 -0
- package/dist/webcomponents/p-1815a43b.js +1 -0
- package/dist/webcomponents/p-1ad5995e.js +1 -3599
- package/dist/webcomponents/p-1eee25f3.entry.js +19 -0
- package/dist/webcomponents/p-1ff8810b.js +1 -29
- package/dist/webcomponents/p-20dafb46.entry.js +1 -0
- package/dist/webcomponents/p-2338affa.js +1 -213
- package/dist/webcomponents/p-277aee05.js +1 -0
- package/dist/webcomponents/p-2b6c9c4f.js +1 -7
- package/dist/webcomponents/p-2c51d29f.js +1 -0
- package/dist/webcomponents/p-2eab3c90.js +1 -3052
- package/dist/webcomponents/p-3a1f19f3.entry.js +1 -0
- package/dist/webcomponents/p-3c7fac29.entry.js +1 -0
- package/dist/webcomponents/p-401d6607.js +1 -0
- package/dist/webcomponents/p-428e9b64.entry.js +1 -0
- package/dist/webcomponents/p-430f81c6.entry.js +1 -0
- package/dist/webcomponents/p-437f9114.js +1 -0
- package/dist/webcomponents/p-44055818.js +1 -0
- package/dist/webcomponents/p-4628cc9b.entry.js +1 -0
- package/dist/webcomponents/p-4cc9df76.entry.js +1 -0
- package/dist/webcomponents/p-5022f21c.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -22
- package/dist/webcomponents/p-55182a59.js +1 -0
- package/dist/webcomponents/p-5540a47c.entry.js +1 -0
- package/dist/webcomponents/p-56f6ce4c.js +1 -10
- package/dist/webcomponents/p-570a0f02.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -178
- package/dist/webcomponents/p-59cf5391.entry.js +1 -0
- package/dist/webcomponents/p-5a62fca2.js +1 -0
- package/dist/webcomponents/p-5e2c9ec8.js +1 -0
- package/dist/webcomponents/p-5e7c60d8.js +1 -0
- package/dist/webcomponents/p-6078a370.js +1 -244
- package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
- package/dist/webcomponents/p-7bdffc78.entry.js +1 -0
- package/dist/webcomponents/p-7d3be485.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -16
- package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
- package/dist/webcomponents/p-7fe67d7f.entry.js +1 -0
- package/dist/webcomponents/p-7ff329b1.js +1 -0
- package/dist/webcomponents/p-804c0f1f.entry.js +1 -0
- package/dist/webcomponents/p-8115b2f4.js +1 -28
- package/dist/webcomponents/p-8281f09a.js +1 -0
- package/dist/webcomponents/p-8921a478.entry.js +1 -0
- package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
- package/dist/webcomponents/p-8c83b73e.entry.js +1 -0
- package/dist/webcomponents/p-8d03a7bd.entry.js +1 -0
- package/dist/webcomponents/p-8df7bde8.js +1 -27
- package/dist/webcomponents/p-938bf2b4.entry.js +1 -0
- package/dist/webcomponents/p-9b154d98.entry.js +1 -0
- package/dist/webcomponents/p-9c9c7dac.js +1 -24
- package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
- package/dist/webcomponents/p-aedb421f.entry.js +1 -0
- package/dist/webcomponents/p-b14da2fd.entry.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/p-bdc91c61.entry.js +1 -0
- package/dist/webcomponents/p-c64ce69d.entry.js +1 -0
- package/dist/webcomponents/p-d76002d5.entry.js +1 -0
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -39
- package/dist/webcomponents/p-da1d174d.entry.js +1 -0
- package/dist/webcomponents/p-dbc1d7b3.entry.js +1 -0
- package/dist/webcomponents/p-dce846bf.js +1 -27
- package/dist/webcomponents/p-df21aaad.js +1 -120
- package/dist/webcomponents/p-e1255160.js +1 -3
- package/dist/webcomponents/p-e2c88817.entry.js +1 -0
- package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
- package/dist/webcomponents/p-e333620e.js +1 -34
- package/dist/webcomponents/p-e3f4a2a6.js +1 -0
- package/dist/webcomponents/p-e3fab0e2.js +1 -43
- package/dist/webcomponents/p-eea79a55.entry.js +1 -0
- package/dist/webcomponents/p-f0866375.entry.js +1 -0
- package/dist/webcomponents/p-f6a2dc78.entry.js +1 -0
- package/dist/webcomponents/p-fad19d75.js +2 -1638
- package/dist/webcomponents/webcomponents.css +4 -362
- package/dist/webcomponents/webcomponents.esm.js +1 -20
- package/package.json +4 -2
- package/dist/cjs/styled-host-cc053016.js +0 -14
- package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
- package/dist/esm/Analytics-a8eb7344.js +0 -77
- package/dist/esm/package-ccb774a9.js +0 -79
- package/dist/esm/styled-host-ab9da520.js +0 -12
- package/dist/esm/utils-3c1dd2fa.js +0 -4027
- package/dist/module/payload-parsers.js +0 -43
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
- package/dist/webcomponents/p-01a404ca.entry.js +0 -44
- package/dist/webcomponents/p-03d35880.entry.js +0 -130
- package/dist/webcomponents/p-06ff0429.entry.js +0 -65
- package/dist/webcomponents/p-0e1bc91e.js +0 -28
- package/dist/webcomponents/p-10875f3d.entry.js +0 -97
- package/dist/webcomponents/p-157acba8.entry.js +0 -98
- package/dist/webcomponents/p-18fa0479.entry.js +0 -131
- package/dist/webcomponents/p-1a5120f4.entry.js +0 -145
- package/dist/webcomponents/p-24dc023a.entry.js +0 -791
- package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
- package/dist/webcomponents/p-27d87fe2.entry.js +0 -133
- package/dist/webcomponents/p-29c0b182.js +0 -114
- package/dist/webcomponents/p-3395e896.entry.js +0 -74
- package/dist/webcomponents/p-3fd13ca3.js +0 -52
- package/dist/webcomponents/p-47d79529.js +0 -18
- package/dist/webcomponents/p-53ecc8b9.entry.js +0 -261
- package/dist/webcomponents/p-5482d030.entry.js +0 -21
- package/dist/webcomponents/p-576826b1.entry.js +0 -43
- package/dist/webcomponents/p-5f835b89.entry.js +0 -606
- package/dist/webcomponents/p-6124b1b3.entry.js +0 -80
- package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
- package/dist/webcomponents/p-7582b554.entry.js +0 -18
- package/dist/webcomponents/p-75fd6367.entry.js +0 -149
- package/dist/webcomponents/p-79646550.entry.js +0 -61
- package/dist/webcomponents/p-800d31fe.entry.js +0 -162
- package/dist/webcomponents/p-85fc69e5.js +0 -90
- package/dist/webcomponents/p-89887332.js +0 -301
- package/dist/webcomponents/p-8eb774df.entry.js +0 -54
- package/dist/webcomponents/p-9e17630d.entry.js +0 -1684
- package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
- package/dist/webcomponents/p-a4e8573e.entry.js +0 -94
- package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
- package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
- package/dist/webcomponents/p-ab4816e1.entry.js +0 -117
- package/dist/webcomponents/p-ac086069.entry.js +0 -58
- package/dist/webcomponents/p-af244664.js +0 -126
- package/dist/webcomponents/p-b4b8b531.js +0 -44
- package/dist/webcomponents/p-b82c146f.entry.js +0 -111
- package/dist/webcomponents/p-ba4bae6f.js +0 -12
- package/dist/webcomponents/p-ba5fae28.js +0 -90
- package/dist/webcomponents/p-bd66f9d2.entry.js +0 -101
- package/dist/webcomponents/p-cc39384f.entry.js +0 -99
- package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
- package/dist/webcomponents/p-dad3e069.entry.js +0 -298
- package/dist/webcomponents/p-e1e7525b.entry.js +0 -73
- package/dist/webcomponents/p-e356f280.entry.js +0 -29
- package/dist/webcomponents/p-e9a5cb95.entry.js +0 -94
- package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
- package/dist/webcomponents/p-edc37d1f.entry.js +0 -75
- package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
- package/dist/{globals.d.ts → types/global.d.ts} +1 -1
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
-
import { a as BusinessFormClickActions } from './p-d89bad72.js';
|
|
3
|
-
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './p-14c91ffd.js';
|
|
4
|
-
import { a as checkProvisioningStatus } from './p-1ff8810b.js';
|
|
5
|
-
import { S as StyledHost } from './p-ba4bae6f.js';
|
|
6
|
-
import './p-6078a370.js';
|
|
7
|
-
|
|
8
|
-
const PaymentProvisioningCore = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.clickEvent = createEvent(this, "click-event", 7);
|
|
12
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
13
|
-
this.submitted = createEvent(this, "submitted", 7);
|
|
14
|
-
this.setBusinessProvisioned = () => {
|
|
15
|
-
this.getBusiness({
|
|
16
|
-
onSuccess: (response) => {
|
|
17
|
-
this.businessProvisioned = checkProvisioningStatus(response.data);
|
|
18
|
-
if (this.businessProvisioned) {
|
|
19
|
-
this.errorEvent.emit({
|
|
20
|
-
message: 'A request to provision payments for this business has already been submitted.',
|
|
21
|
-
errorCode: ComponentErrorCodes.PROVISIONING_REQUESTED,
|
|
22
|
-
severity: ComponentErrorSeverity.INFO,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
onError: ({ error, code, severity }) => {
|
|
27
|
-
this.errorEvent.emit({
|
|
28
|
-
message: error,
|
|
29
|
-
errorCode: code,
|
|
30
|
-
severity: severity
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
this.postProvisioningData = () => {
|
|
36
|
-
this.postProvisioning({
|
|
37
|
-
onSuccess: (response) => {
|
|
38
|
-
this.submitted.emit({ data: { response } });
|
|
39
|
-
},
|
|
40
|
-
onError: ({ error, code, severity }) => {
|
|
41
|
-
this.submitted.emit({ data: { error } });
|
|
42
|
-
this.errorEvent.emit({
|
|
43
|
-
message: error,
|
|
44
|
-
errorCode: code,
|
|
45
|
-
severity: severity
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
this.refs = [];
|
|
51
|
-
this.incrementSteps = () => {
|
|
52
|
-
if (this.currentStep < this.totalSteps) {
|
|
53
|
-
return this.currentStep++;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
this.decrementSteps = () => { return this.currentStep--; };
|
|
57
|
-
this.previousStepButtonOnClick = () => {
|
|
58
|
-
this.clickEvent.emit({ name: BusinessFormClickActions.previousStep });
|
|
59
|
-
this.decrementSteps();
|
|
60
|
-
};
|
|
61
|
-
this.nextStepButtonOnClick = (e, clickEventName) => {
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
this.clickEvent.emit({ name: clickEventName });
|
|
64
|
-
const currentStep = this.refs[this.currentStep];
|
|
65
|
-
currentStep.validateAndSubmit({ onSuccess: this.incrementSteps });
|
|
66
|
-
};
|
|
67
|
-
this.loading = false;
|
|
68
|
-
this.businessProvisioned = false;
|
|
69
|
-
this.currentStep = 0;
|
|
70
|
-
this.errorMessage = undefined;
|
|
71
|
-
this.businessId = undefined;
|
|
72
|
-
this.authToken = undefined;
|
|
73
|
-
this.allowOptionalFields = false;
|
|
74
|
-
this.formTitle = undefined;
|
|
75
|
-
this.getBusiness = undefined;
|
|
76
|
-
this.postProvisioning = undefined;
|
|
77
|
-
}
|
|
78
|
-
componentWillLoad() {
|
|
79
|
-
this.getBusiness && this.setBusinessProvisioned();
|
|
80
|
-
this.refs = [this.coreInfoRef, this.legalAddressRef, this.additionalQuestionsRef, this.representativeRef, this.ownersRef, this.bankAccountRef, this.documentUploadRef, this.termsRef];
|
|
81
|
-
}
|
|
82
|
-
get businessEndpoint() {
|
|
83
|
-
return `entities/business/${this.businessId}`;
|
|
84
|
-
}
|
|
85
|
-
get formDisabled() {
|
|
86
|
-
return this.loading || this.businessProvisioned;
|
|
87
|
-
}
|
|
88
|
-
get totalSteps() {
|
|
89
|
-
return this.refs.length - 1;
|
|
90
|
-
}
|
|
91
|
-
get stepCounter() {
|
|
92
|
-
return `${this.currentStep + 1} of ${this.totalSteps + 1}`;
|
|
93
|
-
}
|
|
94
|
-
handleFormLoading(event) {
|
|
95
|
-
this.loading = event.detail;
|
|
96
|
-
}
|
|
97
|
-
render() {
|
|
98
|
-
return (h(StyledHost, { key: '80f2730a6a4e273391888b086c3633a3dec012b8', exportparts: 'label,input,input-invalid' }, h("div", { key: 'b4e7be2fed14b404ee7bcbe42c3c1c54bb78fdb6', class: 'row gap-3' }, h("h1", { key: 'f477beb7934a94a74dfc6b8a9c18cc54a720f70e' }, this.formTitle), h("justifi-payment-provisioning-form-steps", { key: 'e74aa3a01cfe7550f4917d28ccda1aca211d9394', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading, onFormCompleted: () => this.postProvisioningData() }), h("div", { key: '26a585ec4b6b677cb01ac17696269168887f4c76', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: 'ca5ddc176f8c2eb3315620076b401e47f45039bd', class: 'd-flex align-items-center' }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: '8299387bf859b33c829d29d66947c3c053ffa53c', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export { PaymentProvisioningCore as justifi_payment_provisioning_core };
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
-
import './p-56f6ce4c.js';
|
|
3
|
-
import { a as PaymentMethodTypes } from './p-df21aaad.js';
|
|
4
|
-
import './p-e3fab0e2.js';
|
|
5
|
-
import { l as loadFontsOnParent } from './p-83125497.js';
|
|
6
|
-
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './p-14c91ffd.js';
|
|
7
|
-
import { g as getErrorMessage } from './p-8115b2f4.js';
|
|
8
|
-
import { J as JustifiAnalytics } from './p-15eafa87.js';
|
|
9
|
-
import { B as Button } from './p-9c9c7dac.js';
|
|
10
|
-
import { S as StyledHost } from './p-ba4bae6f.js';
|
|
11
|
-
import './p-2e8f4937.js';
|
|
12
|
-
import './p-29c0b182.js';
|
|
13
|
-
|
|
14
|
-
const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
|
|
15
|
-
const JustifiPaymentFormStyle0 = paymentFormCss;
|
|
16
|
-
|
|
17
|
-
const PaymentForm = class {
|
|
18
|
-
constructor(hostRef) {
|
|
19
|
-
registerInstance(this, hostRef);
|
|
20
|
-
this.submitted = createEvent(this, "submitted", 7);
|
|
21
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
22
|
-
this.bankAccount = undefined;
|
|
23
|
-
this.card = undefined;
|
|
24
|
-
this.email = undefined;
|
|
25
|
-
this.clientId = undefined;
|
|
26
|
-
this.authToken = undefined;
|
|
27
|
-
this.accountId = undefined;
|
|
28
|
-
this.submitButtonText = undefined;
|
|
29
|
-
this.submitButtonEnabled = true;
|
|
30
|
-
this.isLoading = false;
|
|
31
|
-
this.selectedPaymentMethodType = PaymentMethodTypes.card;
|
|
32
|
-
}
|
|
33
|
-
componentWillLoad() {
|
|
34
|
-
this.analytics = new JustifiAnalytics(this);
|
|
35
|
-
if (!this.validateProps()) {
|
|
36
|
-
this.errorEvent.emit({
|
|
37
|
-
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
38
|
-
message: 'clientId or authToken is required',
|
|
39
|
-
severity: ComponentErrorSeverity.ERROR
|
|
40
|
-
});
|
|
41
|
-
this.submitButtonEnabled = false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
connectedCallback() {
|
|
45
|
-
loadFontsOnParent();
|
|
46
|
-
}
|
|
47
|
-
disconnectedCallback() {
|
|
48
|
-
this.analytics.cleanup();
|
|
49
|
-
}
|
|
50
|
-
async fillBillingForm(fields) {
|
|
51
|
-
this.billingFormRef.fill(fields);
|
|
52
|
-
}
|
|
53
|
-
async enableSubmitButton() {
|
|
54
|
-
this.submitButtonEnabled = true;
|
|
55
|
-
}
|
|
56
|
-
async disableSubmitButton() {
|
|
57
|
-
this.submitButtonEnabled = false;
|
|
58
|
-
}
|
|
59
|
-
showPaymentMethodTypeSelector() {
|
|
60
|
-
return this.card && this.bankAccount;
|
|
61
|
-
}
|
|
62
|
-
getSelectedPaymentMethodType() {
|
|
63
|
-
if (this.showPaymentMethodTypeSelector()) {
|
|
64
|
-
return this.selectedPaymentMethodType;
|
|
65
|
-
}
|
|
66
|
-
else if (this.card) {
|
|
67
|
-
return PaymentMethodTypes.card;
|
|
68
|
-
}
|
|
69
|
-
else if (this.bankAccount) {
|
|
70
|
-
return PaymentMethodTypes.bankAccount;
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return PaymentMethodTypes.card;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
paymentMethodSelectedHandler(event) {
|
|
77
|
-
const paymentMethodType = event.detail;
|
|
78
|
-
this.selectedPaymentMethodType = paymentMethodType;
|
|
79
|
-
}
|
|
80
|
-
validateProps() {
|
|
81
|
-
return !!(this.clientId || this.authToken);
|
|
82
|
-
}
|
|
83
|
-
getToken() {
|
|
84
|
-
return this.authToken || this.clientId;
|
|
85
|
-
}
|
|
86
|
-
async submit(event) {
|
|
87
|
-
event.preventDefault();
|
|
88
|
-
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
89
|
-
return;
|
|
90
|
-
const billingFormValidation = await this.billingFormRef.validate();
|
|
91
|
-
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
92
|
-
if (!billingFormValidation.isValid || !paymentMethodFormValidation.isValid)
|
|
93
|
-
return;
|
|
94
|
-
this.isLoading = true;
|
|
95
|
-
try {
|
|
96
|
-
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
97
|
-
const paymentMethodData = Object.assign({ email: this.email }, billingFormFieldValues);
|
|
98
|
-
const tokenizeResponse = await this.paymentMethodFormRef.tokenize(this.getToken(), paymentMethodData, this.accountId);
|
|
99
|
-
if (tokenizeResponse.error) {
|
|
100
|
-
this.errorEvent.emit({
|
|
101
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
102
|
-
message: tokenizeResponse.error.message,
|
|
103
|
-
severity: ComponentErrorSeverity.ERROR
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
this.submitted.emit(tokenizeResponse);
|
|
107
|
-
}
|
|
108
|
-
catch (error) {
|
|
109
|
-
this.errorEvent.emit({
|
|
110
|
-
errorCode: ComponentErrorCodes.UNKNOWN_ERROR,
|
|
111
|
-
message: getErrorMessage(error),
|
|
112
|
-
severity: ComponentErrorSeverity.ERROR
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
finally {
|
|
116
|
-
this.isLoading = false;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
render() {
|
|
120
|
-
return (h(StyledHost, { key: '8cb6e3903a0045fbffed5f17dc29aacc6b57ad7f' }, h("form", { key: '4e8f00c3d29c0db0bc99fd79da46abe7c40e3e30', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '344a1356f6f482493a35015c32f8e9a9b4cc8a80', class: "col-12" }, h("justifi-payment-method-selector", { key: '36b9dd7a9bc8336b4bef0d12f56c811effbc0a0b', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: '225a260f817f9dd02a7f0a5b25562179ab80f7de', class: "col-12" }, h("justifi-payment-method-form", { key: '52e2bf20b265cc96ab556571a323370cc27ac278', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: "", ref: el => {
|
|
121
|
-
if (el) {
|
|
122
|
-
this.paymentMethodFormRef = el;
|
|
123
|
-
}
|
|
124
|
-
} })), h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
|
|
125
|
-
if (el) {
|
|
126
|
-
this.billingFormRef = el;
|
|
127
|
-
}
|
|
128
|
-
} })), h("slot", { key: '9397ae7fdd2677cd61a425fcf5818ae14fabbed0', name: 'insurance' }), h("div", { key: 'db9131f6f35165e69d3b59da7fa25b95f1e46168', class: "col-12" }, h(Button, { key: 'c280836cf6445a7132ff9202a09b6fdac8e29f77', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
PaymentForm.style = JustifiPaymentFormStyle0;
|
|
132
|
-
|
|
133
|
-
export { PaymentForm as justifi_payment_form };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
2
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
3
|
-
// generators (like Math.random()).
|
|
4
|
-
let getRandomValues;
|
|
5
|
-
const rnds8 = new Uint8Array(16);
|
|
6
|
-
function rng() {
|
|
7
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
8
|
-
if (!getRandomValues) {
|
|
9
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
10
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
11
|
-
|
|
12
|
-
if (!getRandomValues) {
|
|
13
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return getRandomValues(rnds8);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
22
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
const byteToHex = [];
|
|
26
|
-
|
|
27
|
-
for (let i = 0; i < 256; ++i) {
|
|
28
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function unsafeStringify(arr, offset = 0) {
|
|
32
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
33
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
34
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
38
|
-
const native = {
|
|
39
|
-
randomUUID
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
function v4(options, buf, offset) {
|
|
43
|
-
if (native.randomUUID && !buf && !options) {
|
|
44
|
-
return native.randomUUID();
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
options = options || {};
|
|
48
|
-
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
49
|
-
|
|
50
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
51
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
52
|
-
|
|
53
|
-
if (buf) {
|
|
54
|
-
offset = offset || 0;
|
|
55
|
-
|
|
56
|
-
for (let i = 0; i < 16; ++i) {
|
|
57
|
-
buf[offset + i] = rnds[i];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return buf;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return unsafeStringify(rnds);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const Api = ({ authToken, apiOrigin }) => {
|
|
67
|
-
async function getAuthorizationHeader() {
|
|
68
|
-
if (!authToken) {
|
|
69
|
-
return {
|
|
70
|
-
'Content-Type': 'application/json',
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
Authorization: `Bearer ${authToken}`,
|
|
75
|
-
'Idempotency-Key': v4(),
|
|
76
|
-
'Content-Type': 'application/json',
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
async function makeRequest(endpoint, method, params, body, signal) {
|
|
80
|
-
const url = `${apiOrigin}/v1/${endpoint}`;
|
|
81
|
-
const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;
|
|
82
|
-
const response = await fetch(requestUrl, {
|
|
83
|
-
method: method,
|
|
84
|
-
headers: await getAuthorizationHeader(),
|
|
85
|
-
body: body,
|
|
86
|
-
signal: signal,
|
|
87
|
-
});
|
|
88
|
-
if (response) {
|
|
89
|
-
return response.status === 204 ? {} : response.json();
|
|
90
|
-
}
|
|
91
|
-
handleError(requestUrl);
|
|
92
|
-
}
|
|
93
|
-
async function get(endpoint, params, signal) {
|
|
94
|
-
return makeRequest(endpoint, 'GET', params, null, signal);
|
|
95
|
-
}
|
|
96
|
-
async function post(endpoint, body, params, signal) {
|
|
97
|
-
return makeRequest(endpoint, 'POST', params, body, signal);
|
|
98
|
-
}
|
|
99
|
-
async function put(endpoint, body, params, signal) {
|
|
100
|
-
return makeRequest(endpoint, 'PUT', params, body, signal);
|
|
101
|
-
}
|
|
102
|
-
async function patch(endpoint, body, params, signal) {
|
|
103
|
-
return makeRequest(endpoint, 'PATCH', params, body, signal);
|
|
104
|
-
}
|
|
105
|
-
async function destroy(endpoint, params, signal) {
|
|
106
|
-
return makeRequest(endpoint, 'DELETE', params, null, signal);
|
|
107
|
-
}
|
|
108
|
-
return { get, post, put, patch, destroy };
|
|
109
|
-
};
|
|
110
|
-
function handleError(requestUrl) {
|
|
111
|
-
console.error(`Error fetching from ${requestUrl}`);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export { Api as A };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './p-15eafa87.js';
|
|
3
|
-
import './p-2e8f4937.js';
|
|
4
|
-
import './p-29c0b182.js';
|
|
5
|
-
|
|
6
|
-
const BankAccountForm = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.bankAccountFormReady = createEvent(this, "bankAccountFormReady", 7);
|
|
10
|
-
this.ready = createEvent(this, "ready", 7);
|
|
11
|
-
this.bankAccountFormTokenized = createEvent(this, "bankAccountFormTokenize", 7);
|
|
12
|
-
this.bankAccountFormValidated = createEvent(this, "bankAccountFormValidate", 7);
|
|
13
|
-
this.validationMode = undefined;
|
|
14
|
-
this.iframeOrigin = "";
|
|
15
|
-
this.internalStyleOverrides = undefined;
|
|
16
|
-
}
|
|
17
|
-
readyHandler(event) {
|
|
18
|
-
console.warn(`The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'`);
|
|
19
|
-
this.bankAccountFormReady.emit(event);
|
|
20
|
-
this.ready.emit(event);
|
|
21
|
-
}
|
|
22
|
-
tokenizeHandler(event) {
|
|
23
|
-
console.warn(`The 'bankAccountFormTokenized' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`);
|
|
24
|
-
this.bankAccountFormTokenized.emit(event);
|
|
25
|
-
}
|
|
26
|
-
validateHandler(event) {
|
|
27
|
-
console.warn(`The 'bankAccountFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`);
|
|
28
|
-
this.bankAccountFormValidated.emit(event);
|
|
29
|
-
}
|
|
30
|
-
componentWillLoad() {
|
|
31
|
-
this.analytics = new JustifiAnalytics(this);
|
|
32
|
-
}
|
|
33
|
-
disconnectedCallback() {
|
|
34
|
-
this.analytics.cleanup();
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Makes a tokenization request to the iframe
|
|
38
|
-
*/
|
|
39
|
-
async tokenize(...args) {
|
|
40
|
-
if (!this.childRef) {
|
|
41
|
-
throw new Error('Cannot call tokenize');
|
|
42
|
-
}
|
|
43
|
-
return this.childRef.tokenize(...args);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Runs a validation on the form and shows errors if any
|
|
47
|
-
*/
|
|
48
|
-
async validate() {
|
|
49
|
-
if (!this.childRef) {
|
|
50
|
-
throw new Error('Cannot call validate');
|
|
51
|
-
}
|
|
52
|
-
return this.childRef.validate();
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Manually resizes the iframe to fit the contents of the iframe
|
|
56
|
-
* @deprecated This method will be removed in future releases.
|
|
57
|
-
*/
|
|
58
|
-
async resize() {
|
|
59
|
-
console.warn(`The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach.`);
|
|
60
|
-
if (!this.childRef) {
|
|
61
|
-
throw new Error('Cannot call validate');
|
|
62
|
-
}
|
|
63
|
-
return this.childRef.resize();
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return (h("justifi-payment-method-form", { key: '646e392c1a9ed38e73780ed6a01b6f019767794c', ref: el => {
|
|
67
|
-
if (el) {
|
|
68
|
-
this.childRef = el;
|
|
69
|
-
}
|
|
70
|
-
}, "iframe-origin": this.iframeOrigin, "payment-method-form-type": "bankAccount", "payment-method-form-ready": this.bankAccountFormReady, "payment-method-form-validated": this.bankAccountFormValidated, "payment-method-form-tokenize": this.bankAccountFormTokenized, "payment-method-form-validation-mode": this.validationMode || 'onSubmit' }));
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export { BankAccountForm as justifi_bank_account_form };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { c as create$3 } from './p-2eab3c90.js';
|
|
2
|
-
import { h as businessNameValidation, w as websiteUrlValidation, e as emailValidation, d as phoneValidation, j as doingBusinessAsValidation, k as businessClassificationValidation, m as industryValidation, t as taxIdValidation, n as dateOfIncorporationValidation, r as revenueValidation, o as paymentVolumeValidation, q as whenServiceReceivedValidation, u as recurringPaymentsValidation, v as recurringPaymentsPercentageValidation, x as seasonalBusinessValidation, y as otherPaymentDetailsValidation } from './p-89887332.js';
|
|
3
|
-
|
|
4
|
-
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
5
|
-
const schema = create$3({
|
|
6
|
-
legal_name: businessNameValidation.required('Enter legal name'),
|
|
7
|
-
website_url: websiteUrlValidation.required('Enter business website url'),
|
|
8
|
-
email: emailValidation.required('Enter business email'),
|
|
9
|
-
phone: phoneValidation.required('Enter phone number'),
|
|
10
|
-
doing_business_as: doingBusinessAsValidation.required('Enter doing business as'),
|
|
11
|
-
classification: businessClassificationValidation.required('Select business classification'),
|
|
12
|
-
industry: industryValidation.required('Enter a business industry'),
|
|
13
|
-
tax_id: taxIdValidation.required('Enter tax id, SSN, or EIN'),
|
|
14
|
-
date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
|
|
15
|
-
});
|
|
16
|
-
const easySchema = create$3({
|
|
17
|
-
legal_name: businessNameValidation.required('Enter legal name'),
|
|
18
|
-
website_url: websiteUrlValidation.nullable(),
|
|
19
|
-
email: emailValidation.nullable(),
|
|
20
|
-
phone: phoneValidation.nullable(),
|
|
21
|
-
doing_business_as: doingBusinessAsValidation.nullable(),
|
|
22
|
-
classification: businessClassificationValidation.nullable(),
|
|
23
|
-
industry: industryValidation.nullable(),
|
|
24
|
-
tax_id: taxIdValidation.nullable(),
|
|
25
|
-
date_of_incorporation: dateOfIncorporationValidation.nullable(),
|
|
26
|
-
});
|
|
27
|
-
return allowOptionalFields ? easySchema : schema;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const additionalQuestionsSchema = (allowOptionalFields) => {
|
|
31
|
-
const schema = create$3({
|
|
32
|
-
business_revenue: revenueValidation.required('Enter business revenue'),
|
|
33
|
-
business_payment_volume: paymentVolumeValidation.required('Enter business payment volume'),
|
|
34
|
-
business_when_service_received: whenServiceReceivedValidation.required('Select when service is received'),
|
|
35
|
-
business_recurring_payments: recurringPaymentsValidation.required('Select recurring payments'),
|
|
36
|
-
business_recurring_payments_percentage: recurringPaymentsPercentageValidation,
|
|
37
|
-
business_seasonal: seasonalBusinessValidation.required('Select business seasonal'),
|
|
38
|
-
business_other_payment_details: otherPaymentDetailsValidation.nullable(),
|
|
39
|
-
});
|
|
40
|
-
const easySchema = create$3({
|
|
41
|
-
business_revenue: revenueValidation.nullable(),
|
|
42
|
-
business_payment_volume: paymentVolumeValidation.nullable(),
|
|
43
|
-
business_when_service_received: whenServiceReceivedValidation.nullable(),
|
|
44
|
-
business_recurring_payments: recurringPaymentsValidation.nullable(),
|
|
45
|
-
business_recurring_payments_percentage: recurringPaymentsPercentageValidation,
|
|
46
|
-
business_seasonal: seasonalBusinessValidation.nullable(),
|
|
47
|
-
business_other_payment_details: otherPaymentDetailsValidation.nullable(),
|
|
48
|
-
});
|
|
49
|
-
return allowOptionalFields ? easySchema : schema;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { additionalQuestionsSchema as a, businessCoreInfoSchema as b };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { A as Api } from './p-29c0b182.js';
|
|
2
|
-
import './p-56f6ce4c.js';
|
|
3
|
-
import './p-df21aaad.js';
|
|
4
|
-
import './p-e3fab0e2.js';
|
|
5
|
-
|
|
6
|
-
class PaymentService {
|
|
7
|
-
async fetchPayments(accountId, authToken, params) {
|
|
8
|
-
const api = Api({ authToken, apiOrigin: "" });
|
|
9
|
-
const endpoint = `account/${accountId}/payments`;
|
|
10
|
-
return api.get(endpoint, params);
|
|
11
|
-
}
|
|
12
|
-
async fetchPayment(paymentId, authToken) {
|
|
13
|
-
const endpoint = `payments/${paymentId}`;
|
|
14
|
-
return Api({ authToken, apiOrigin: "" }).get(endpoint);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { PaymentService as P };
|