@justifi/webcomponents 4.8.3 → 4.10.0-rc.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/{Business-42d0c522.js → Business-79361c8a.js} +7 -7
- package/dist/cjs/Identity-b6364aee.js +27 -0
- package/dist/cjs/{Payout-44b49b2d.js → Payment-89a8bc21.js} +0 -43
- package/dist/cjs/Payout-a2dd7b01.js +45 -0
- package/dist/cjs/{SubAccount-2a803b22.js → SubAccount-b3902202.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +24 -10
- package/dist/cjs/business-additional-questions-schema-cbac27f2.js +26 -0
- package/dist/cjs/business-details-core.cjs.entry.js +55 -0
- package/dist/cjs/business-form-select-options-7ccd8dca.js +85 -0
- package/dist/cjs/business-form-types-3cdd5447.js +19 -0
- package/dist/cjs/form-control-datepart_3.cjs.entry.js +32 -46
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +44 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +11036 -0
- package/dist/cjs/{index-55950669.js → index-69b9386b.js} +57 -3
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +505 -0
- package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_4.cjs.entry.js} +12 -42
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/{select-input_2.cjs.entry.js → justifi-billing-form_4.cjs.entry.js} +1810 -1
- package/dist/cjs/justifi-business-address-form-step.cjs.entry.js +35 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +43 -57
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +36 -89
- package/dist/cjs/justifi-business-form.cjs.entry.js +18 -16
- package/dist/cjs/justifi-business-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +95 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +99 -0
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +39 -11008
- package/dist/cjs/justifi-new-payment-method_3.cjs.entry.js +168 -0
- package/dist/cjs/justifi-owner-form.cjs.entry.js +160 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -4
- package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → justifi-payment-method-selector.cjs.entry.js} +4 -79
- package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/payload-parsers-25ed3936.js +98 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -4
- package/dist/cjs/{payment.service-605896dc.js → payment.service-0b0086dc.js} +2 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +4 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{payout.service-b39f2739.js → payout.service-5cc3b4e9.js} +2 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -3
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +7 -7
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -3
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -3
- package/dist/cjs/{utils-d126d17c.js → utils-23e70ef2.js} +5 -5
- package/dist/cjs/{utils-29a8a91d.js → utils-6f62f7a1.js} +29 -2
- package/dist/cjs/utils-df5167a8.js +13 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +6 -7
- package/dist/collection/api/Checkout.js +1 -0
- package/dist/collection/api/Identity.js +43 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/services/business.service.js +8 -0
- package/dist/collection/api/services/checkout.service.js +12 -0
- package/dist/collection/api/services/reports.service.js +9 -0
- package/dist/collection/collection-manifest.json +22 -8
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/components/billing-form/billing-form.js +1 -2
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +5 -2
- package/dist/collection/components/business-details/additional-questions-details/test/additional-questions.spec.js +16 -0
- package/dist/collection/components/business-details/business-details-core.js +86 -0
- package/dist/collection/components/business-details/business-details.js +20 -65
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +4 -2
- package/dist/collection/components/business-details/generic-info-details/test/generic-info-details.spec.js +16 -0
- package/dist/collection/components/business-details/get-business.js +17 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +5 -2
- package/dist/collection/components/business-details/legal-address-details/test/legal-address-details.spec.js +16 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js +12 -14
- package/dist/collection/components/business-details/owner-details/test/owner-details.spec.js +16 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js +7 -5
- package/dist/collection/components/business-details/representative-details/test/representative-details.spec.js +16 -0
- package/dist/collection/components/business-details/test/busines-details-core.spec.js +53 -0
- package/dist/collection/components/business-details/test/business-details.spec.js +40 -0
- package/dist/collection/components/business-details/test/get-business.spec.js +60 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-address/business-address-form.css +2536 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-address/business-address-form.js +4 -4
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.css +2493 -0
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +77 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-form.js +32 -24
- package/dist/collection/components/business-forms/business-form/business-owners/business-owners.css +7779 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-owners/business-owners.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.css +2493 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/business-representative/business-representative.js +3 -3
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.css +2493 -0
- package/dist/collection/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/business-form-stepped/additional-questions/business-additional-questions-form-step.js +218 -0
- package/dist/collection/components/business-forms/business-form-stepped/additional-questions/test/business-additional-questions-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-address/business-address-form-step.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-address/test/business-address-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-core-info/business-core-info-form-step.js +239 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-core-info/test/business-core-info-form-step.spec.js +97 -0
- package/dist/collection/components/{business-form → business-forms/business-form-stepped}/business-form-stepped.css +105 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-form-stepped.js +199 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-owners/business-owners-form-step.js +284 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-owners/test/business-owners-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-representative/business-representative-form-step.js +230 -0
- package/dist/collection/components/business-forms/business-form-stepped/business-representative/test/business-representative-form-step.spec.js +97 -0
- package/dist/collection/components/business-forms/business-form-stepped/legal-address-form/legal-address-form-step.js +232 -0
- package/dist/collection/components/business-forms/business-form-stepped/test/business-form-stepped.spec.js +61 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.css +7779 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +367 -0
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +7 -0
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +15 -0
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +13 -0
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +6 -0
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +35 -0
- package/dist/collection/components/business-forms/schemas/business-owners-schema.js +16 -0
- package/dist/collection/components/business-forms/utils/business-form-select-options.js +80 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +17 -0
- package/dist/collection/components/business-forms/utils/payload-parsers.js +37 -0
- package/dist/collection/components/checkout/checkout-actions.js +33 -0
- package/dist/collection/components/checkout/checkout-core.css +2604 -0
- package/dist/collection/components/checkout/checkout-core.js +248 -0
- package/dist/collection/components/checkout/checkout.js +112 -0
- package/dist/collection/components/checkout/new-payment-method.js +188 -0
- package/dist/collection/components/checkout/payment-method-option-utils.js +19 -0
- package/dist/collection/components/checkout/payment-method-options.css +7073 -0
- package/dist/collection/components/checkout/payment-method-options.js +248 -0
- package/dist/collection/components/checkout/saved-payment-method.js +123 -0
- package/dist/collection/components/checkout/test/checkout.js +22 -0
- package/dist/collection/components/checkout/test/checkout.spec.js +166 -0
- package/dist/collection/components/checkout/test/mockCheckout.js +19 -0
- package/dist/collection/components/details/utils.js +4 -1
- package/dist/collection/components/form/utils.js +1 -0
- package/dist/collection/components/gross-payment-chart/get-gross-payment-chart-data.js +14 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +119 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +25 -73
- package/dist/collection/components/gross-payment-chart/test/get-gross-payment-chart-data.spec.js +69 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart-core.spec.js +64 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +23 -8
- package/dist/collection/components/payment-details/payment-details-core.js +8 -2
- package/dist/collection/components/payment-details/payment-details.js +0 -1
- package/dist/collection/components/payment-form/payment-form.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +2 -2
- package/dist/collection/utils/utils.js +25 -3
- package/dist/docs.json +2945 -590
- package/dist/esm/{Business-e9340f6b.js → Business-1df362e0.js} +7 -8
- package/dist/esm/Identity-774788c0.js +25 -0
- package/dist/esm/{Payout-dc5f009c.js → Payment-55886c86.js} +1 -43
- package/dist/esm/Payout-dfe15b00.js +43 -0
- package/dist/esm/{SubAccount-46b4c2b1.js → SubAccount-f4ae9809.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +24 -10
- package/dist/esm/business-additional-questions-schema-2cb80f70.js +23 -0
- package/dist/esm/business-details-core.entry.js +51 -0
- package/dist/esm/business-form-select-options-6b9293fe.js +82 -0
- package/dist/esm/business-form-types-de9f38cd.js +19 -0
- package/dist/esm/form-control-datepart_3.entry.js +32 -46
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/{form-control-select_2.entry.js → form-control-number_3.entry.js} +44 -2
- package/dist/esm/gross-payment-chart-core.entry.js +11032 -0
- package/dist/esm/{index-62b8aa8a.js → index-df86d9a2.js} +57 -3
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +497 -0
- package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_4.entry.js} +12 -41
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/{select-input_2.entry.js → justifi-billing-form_4.entry.js} +1809 -2
- package/dist/esm/justifi-business-address-form-step.entry.js +31 -0
- package/dist/esm/justifi-business-details.entry.js +42 -56
- package/dist/esm/justifi-business-form-stepped.entry.js +36 -89
- package/dist/esm/justifi-business-form.entry.js +17 -15
- package/dist/esm/justifi-business-list.entry.js +5 -4
- package/dist/esm/justifi-business-owners.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +91 -0
- package/dist/esm/justifi-checkout.entry.js +95 -0
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +39 -11008
- package/dist/esm/justifi-new-payment-method_3.entry.js +162 -0
- package/dist/esm/justifi-owner-form.entry.js +156 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -3
- package/dist/esm/justifi-payment-details.entry.js +5 -4
- package/dist/esm/justifi-payment-form.entry.js +4 -3
- package/dist/esm/{justifi-billing-form_2.entry.js → justifi-payment-method-selector.entry.js} +4 -78
- package/dist/esm/justifi-payments-list.entry.js +5 -4
- package/dist/esm/justifi-payout-details.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -4
- package/dist/esm/justifi-proceeds-list.entry.js +4 -3
- package/dist/esm/justifi-refund-form.entry.js +3 -2
- package/dist/esm/justifi-subaccount-details.entry.js +6 -5
- package/dist/esm/justifi-subaccounts-list.entry.js +5 -4
- package/dist/esm/justifi-table_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/payload-parsers-1dd7474f.js +90 -0
- package/dist/esm/payment-details-core.entry.js +10 -4
- package/dist/esm/{payment.service-bea02ccf.js → payment.service-f274ef98.js} +2 -1
- package/dist/esm/payments-list-core.entry.js +4 -3
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/{payout.service-92e56814.js → payout.service-af293f61.js} +2 -1
- package/dist/esm/payouts-list-core.entry.js +4 -3
- package/dist/esm/subaccount-account-details_4.entry.js +7 -7
- package/dist/esm/subaccount-bank-details.entry.js +3 -3
- package/dist/esm/subaccount-terms-details.entry.js +3 -3
- package/dist/esm/{utils-76a93600.js → utils-243abdb4.js} +26 -3
- package/dist/esm/utils-2828201a.js +10 -0
- package/dist/esm/{utils-576874df.js → utils-d01c5f3a.js} +5 -5
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +7 -8
- package/dist/module/Payment.js +138 -0
- package/dist/module/Payout.js +1 -138
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/additional-questions-details2.js +5 -2
- package/dist/module/billing-form.js +2 -3
- package/dist/module/business-additional-questions-form-step.js +120 -0
- package/dist/module/business-additional-questions-schema.js +10 -0
- package/dist/module/business-address-form.js +3 -3
- package/dist/module/business-address-schema.js +18 -0
- package/dist/module/business-core-info-form-step.js +141 -0
- package/dist/module/business-core-info-schema.js +16 -0
- package/dist/module/business-core-info.js +69 -0
- package/dist/module/business-details-core.d.ts +11 -0
- package/dist/module/business-details-core.js +6 -0
- package/dist/module/business-details-core2.js +101 -0
- package/dist/module/business-form-select-options.js +82 -0
- package/dist/module/business-form-types.js +19 -0
- package/dist/module/business-identity-schema.js +38 -0
- package/dist/module/business-owners-form-step.js +213 -0
- package/dist/module/business-representative-form-step.js +157 -0
- package/dist/module/business-representative.js +1 -1
- package/dist/module/checkout-core.js +163 -0
- package/dist/module/generic-info-details2.js +4 -2
- package/dist/module/gross-payment-chart-core.d.ts +11 -0
- package/dist/module/gross-payment-chart-core.js +6 -0
- package/dist/module/gross-payment-chart-core2.js +11055 -0
- package/dist/module/justifi-additional-questions-form-step.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step.js +6 -0
- package/dist/module/justifi-business-address-form-step.d.ts +11 -0
- package/dist/module/justifi-business-address-form-step.js +75 -0
- package/dist/module/justifi-business-core-info-form-step.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step.js +6 -0
- package/dist/module/justifi-business-core-info.d.ts +11 -0
- package/dist/module/justifi-business-core-info.js +6 -0
- package/dist/module/justifi-business-details.js +51 -60
- package/dist/module/justifi-business-form-stepped.js +72 -112
- package/dist/module/justifi-business-form.js +20 -14
- package/dist/module/justifi-business-list.js +2 -1
- package/dist/module/justifi-business-owners-form-step.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step.js +6 -0
- package/dist/module/justifi-business-representative-form-step.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step.js +6 -0
- package/dist/module/justifi-checkout-core.d.ts +11 -0
- package/dist/module/justifi-checkout-core.js +6 -0
- package/dist/module/justifi-checkout.d.ts +11 -0
- package/dist/module/justifi-checkout.js +172 -0
- package/dist/module/justifi-gross-payment-chart.js +49 -11016
- package/dist/module/justifi-legal-address-form-step.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step.js +6 -0
- package/dist/module/justifi-new-payment-method.d.ts +11 -0
- package/dist/module/justifi-new-payment-method.js +6 -0
- package/dist/module/justifi-owner-form.d.ts +11 -0
- package/dist/module/justifi-owner-form.js +6 -0
- package/dist/module/justifi-payment-balance-transactions.js +3 -2
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-form.js +2 -1
- package/dist/module/justifi-payment-method-options.d.ts +11 -0
- package/dist/module/justifi-payment-method-options.js +6 -0
- package/dist/module/justifi-payments-list.js +2 -1
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list.js +2 -1
- package/dist/module/justifi-proceeds-list.js +2 -1
- package/dist/module/justifi-refund-form.js +1 -0
- package/dist/module/justifi-saved-payment-method.d.ts +11 -0
- package/dist/module/justifi-saved-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +2 -1
- package/dist/module/justifi-subaccounts-list.js +2 -1
- package/dist/module/legal-address-details2.js +5 -2
- package/dist/module/legal-address-form-step.js +136 -0
- package/dist/module/new-payment-method.js +105 -0
- package/dist/module/owner-details2.js +10 -4
- package/dist/module/owner-form.js +244 -0
- package/dist/module/payload-parsers.js +39 -0
- package/dist/module/payment-details-core2.js +9 -3
- package/dist/module/payment-method-form.js +4 -10
- package/dist/module/payment-method-options.js +128 -0
- package/dist/module/payment-method-selector.js +2 -1
- package/dist/module/payment.service.js +1 -0
- package/dist/module/payments-list-core2.js +2 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +1 -0
- package/dist/module/payouts-list-core2.js +3 -2
- package/dist/module/representative-details2.js +5 -3
- package/dist/module/saved-payment-method.js +66 -0
- package/dist/module/subaccount-account-details2.js +2 -2
- package/dist/module/subaccount-bank-details.js +2 -2
- package/dist/module/subaccount-merchant-details2.js +3 -3
- package/dist/module/subaccount-owners-details2.js +2 -2
- package/dist/module/subaccount-representative-details2.js +2 -2
- package/dist/module/subaccount-terms-details.js +2 -2
- package/dist/module/utils.js +4 -4
- package/dist/module/utils2.js +26 -3
- package/dist/module/utils4.js +10 -0
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Business.d.ts +1 -18
- package/dist/types/api/Checkout.d.ts +14 -0
- package/dist/types/api/Identity.d.ts +60 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/services/business.service.d.ts +8 -0
- package/dist/types/api/services/checkout.service.d.ts +9 -0
- package/dist/types/api/services/reports.service.d.ts +5 -0
- package/dist/types/components/billing-form/billing-form-schema.d.ts +0 -1
- package/dist/types/components/billing-form/billing-form.d.ts +0 -1
- package/dist/types/components/business-details/business-details-core.d.ts +16 -0
- package/dist/types/components/business-details/business-details.d.ts +3 -13
- package/dist/types/components/business-details/get-business.d.ts +8 -0
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -9
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/business-address/business-address-form.d.ts +1 -1
- package/dist/types/components/{business-form/business-generic-info/business-generic-info.d.ts → business-forms/business-form/business-core-info/business-core-info.d.ts} +5 -5
- package/dist/types/components/{business-form → business-forms/business-form}/business-form.d.ts +5 -10
- package/dist/types/components/{business-form → business-forms/business-form}/business-owners/business-owners.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/business-representative/business-representative.d.ts +1 -1
- package/dist/types/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.d.ts +2 -2
- package/dist/types/components/business-forms/business-form-stepped/additional-questions/business-additional-questions-form-step.d.ts +30 -0
- package/dist/types/components/business-forms/business-form-stepped/business-address/business-address-form-step.d.ts +9 -0
- package/dist/types/components/business-forms/business-form-stepped/business-core-info/business-core-info-form-step.d.ts +36 -0
- package/dist/types/components/business-forms/business-form-stepped/business-form-stepped.d.ts +45 -0
- package/dist/types/components/business-forms/business-form-stepped/business-owners/business-owners-form-step.d.ts +36 -0
- package/dist/types/components/business-forms/business-form-stepped/business-representative/business-representative-form-step.d.ts +26 -0
- package/dist/types/components/business-forms/business-form-stepped/legal-address-form/legal-address-form-step.d.ts +31 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +36 -0
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +11 -0
- package/dist/types/components/{business-form/business-address/business-address-form-schema.d.ts → business-forms/schemas/business-address-schema.d.ts} +11 -8
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +19 -0
- package/dist/types/components/{business-form → business-forms/schemas}/business-form-schema.d.ts +2 -26
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +59 -0
- package/dist/types/components/business-forms/schemas/business-owners-schema.d.ts +33 -0
- package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +11 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +39 -0
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +4 -0
- package/dist/types/components/checkout/checkout-actions.d.ts +17 -0
- package/dist/types/components/checkout/checkout-core.d.ts +28 -0
- package/dist/types/components/checkout/checkout.d.ts +12 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +17 -0
- package/dist/types/components/checkout/payment-method-option-utils.d.ts +16 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +18 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +11 -0
- package/dist/types/components/checkout/test/checkout.d.ts +1 -0
- package/dist/types/components/checkout/test/mockCheckout.d.ts +19 -0
- package/dist/types/components/details/utils.d.ts +1 -1
- package/dist/types/components/form/form.d.ts +1 -1
- package/dist/types/components/form/utils.d.ts +1 -0
- package/dist/types/components/gross-payment-chart/get-gross-payment-chart-data.d.ts +11 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +18 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +4 -14
- package/dist/types/components/payment-details/payment-details.d.ts +0 -1
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +3 -9
- package/dist/types/components.d.ts +626 -91
- package/dist/types/utils/utils.d.ts +3 -0
- package/dist/webcomponents/p-0399f02b.entry.js +1 -0
- package/dist/webcomponents/{p-6478f3ca.js → p-04a98c63.js} +1 -1
- package/dist/webcomponents/p-06888c2e.entry.js +1 -0
- package/dist/webcomponents/{p-234bc840.entry.js → p-07b326d0.entry.js} +1 -1
- package/dist/webcomponents/p-0811bc77.entry.js +1 -0
- package/dist/webcomponents/p-0923e39c.js +1 -0
- package/dist/webcomponents/p-17d72f4a.js +1 -0
- package/dist/webcomponents/p-17f64853.entry.js +1 -0
- package/dist/webcomponents/p-1bfadb9f.entry.js +1 -0
- package/dist/webcomponents/p-22085999.entry.js +1 -0
- package/dist/webcomponents/p-252835df.entry.js +1 -0
- package/dist/webcomponents/{p-22c1acd6.js → p-28b38699.js} +1 -1
- package/dist/webcomponents/p-34352d04.js +1 -0
- package/dist/webcomponents/p-374c44e6.entry.js +1 -0
- package/dist/webcomponents/{p-0a0cf2e6.entry.js → p-4697ccfa.entry.js} +1 -1
- package/dist/webcomponents/p-4781cd06.js +1 -0
- package/dist/webcomponents/{p-4c01df65.entry.js → p-4d50d08a.entry.js} +1 -1
- package/dist/webcomponents/p-4d806131.entry.js +1 -0
- package/dist/webcomponents/{p-7a1a06c0.entry.js → p-4df6174c.entry.js} +1 -1
- package/dist/webcomponents/p-4e0b3206.entry.js +1 -0
- package/dist/webcomponents/{p-4ee44c76.entry.js → p-583dd5a2.entry.js} +1 -1
- package/dist/webcomponents/p-5be4e217.entry.js +1 -0
- package/dist/webcomponents/p-5da4fbe7.entry.js +1 -0
- package/dist/webcomponents/{p-40349ffc.entry.js → p-6103c20d.entry.js} +1 -1
- package/dist/webcomponents/p-63296409.js +1 -0
- package/dist/webcomponents/{p-5c0310ee.js → p-65510838.js} +1 -1
- package/dist/webcomponents/p-688bb5da.js +2 -0
- package/dist/webcomponents/p-6b51cf97.entry.js +1 -0
- package/dist/webcomponents/p-7654c70d.entry.js +1 -0
- package/dist/webcomponents/p-7b2cddc7.js +1 -0
- package/dist/webcomponents/p-847441ce.entry.js +1 -0
- package/dist/webcomponents/p-861ba3fc.entry.js +1 -0
- package/dist/webcomponents/p-9207ccb2.entry.js +1 -0
- package/dist/webcomponents/p-975ab96e.js +1 -0
- package/dist/webcomponents/p-9ce8d98c.entry.js +1 -0
- package/dist/webcomponents/p-9e4b81ad.entry.js +1 -0
- package/dist/webcomponents/p-a141c531.js +1 -0
- package/dist/webcomponents/p-a2dbe90f.entry.js +1 -0
- package/dist/webcomponents/{p-4fa27a28.entry.js → p-a46174e0.entry.js} +1 -1
- package/dist/webcomponents/p-a98eea84.entry.js +1 -0
- package/dist/webcomponents/p-b1bc23af.entry.js +1 -0
- package/dist/webcomponents/p-b27c9b0d.entry.js +1 -0
- package/dist/webcomponents/{p-7c0f91fa.entry.js → p-b68f1dd9.entry.js} +1 -1
- package/dist/webcomponents/p-b8f22856.js +1 -0
- package/dist/webcomponents/p-c8d62072.entry.js +1 -0
- package/dist/webcomponents/{p-08833966.entry.js → p-da34bba7.entry.js} +1 -1
- package/dist/webcomponents/p-e3748ea4.entry.js +1 -0
- package/dist/webcomponents/p-e3fab0e2.js +1 -0
- package/dist/webcomponents/p-e924f2e1.entry.js +1 -0
- package/dist/webcomponents/p-ebf7c70f.entry.js +1 -0
- package/dist/webcomponents/p-eef5ed19.entry.js +1 -0
- package/dist/webcomponents/p-efc7025c.entry.js +1 -0
- package/dist/webcomponents/p-f3453ca2.js +1 -0
- package/dist/webcomponents/p-f3ca6fda.entry.js +1 -0
- package/dist/webcomponents/p-fb49ef28.entry.js +1 -0
- package/dist/webcomponents/p-fe2af0cf.entry.js +19 -0
- package/dist/webcomponents/p-fe8a94c1.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +3 -2
- package/dist/cjs/BusinessFormEventTypes-863f48e9.js +0 -42
- package/dist/cjs/business-form-schema-37e5381d.js +0 -148
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1747
- package/dist/collection/components/business-form/BusinessFormEventTypes.js +0 -6
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js +0 -13
- package/dist/collection/components/business-form/business-form-schema.js +0 -159
- package/dist/collection/components/business-form/business-form-stepped.js +0 -260
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +0 -77
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js +0 -1
- package/dist/collection/components/business-form/helpers.js +0 -23
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +0 -10
- package/dist/esm/BusinessFormEventTypes-989960ba.js +0 -39
- package/dist/esm/business-form-schema-f8f554d1.js +0 -144
- package/dist/esm/justifi-payment-method-form.entry.js +0 -1743
- package/dist/module/BusinessFormEventTypes.js +0 -39
- package/dist/module/business-generic-info.js +0 -210
- package/dist/module/justifi-business-generic-info.d.ts +0 -11
- package/dist/module/justifi-business-generic-info.js +0 -6
- package/dist/types/components/business-form/BusinessFormEventTypes.d.ts +0 -5
- package/dist/types/components/business-form/business-form-stepped.d.ts +0 -48
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +0 -17
- package/dist/types/components/business-form/helpers.d.ts +0 -1
- package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +0 -17
- package/dist/webcomponents/p-081cf5f6.entry.js +0 -1
- package/dist/webcomponents/p-0bc8b02e.entry.js +0 -1
- package/dist/webcomponents/p-112acd3c.entry.js +0 -1
- package/dist/webcomponents/p-1555e6b1.js +0 -1
- package/dist/webcomponents/p-16f41fd0.entry.js +0 -1
- package/dist/webcomponents/p-17715325.js +0 -1
- package/dist/webcomponents/p-3a4d4869.entry.js +0 -1
- package/dist/webcomponents/p-3cb0b96d.js +0 -1
- package/dist/webcomponents/p-4ba2c711.entry.js +0 -1
- package/dist/webcomponents/p-4f14df36.js +0 -2
- package/dist/webcomponents/p-5422a24b.entry.js +0 -1
- package/dist/webcomponents/p-578e0a05.entry.js +0 -1
- package/dist/webcomponents/p-640d90dc.entry.js +0 -1
- package/dist/webcomponents/p-663bfe87.js +0 -1
- package/dist/webcomponents/p-696396c7.entry.js +0 -1
- package/dist/webcomponents/p-6ab67031.entry.js +0 -1
- package/dist/webcomponents/p-6d0725ef.entry.js +0 -1
- package/dist/webcomponents/p-810b72b5.js +0 -1
- package/dist/webcomponents/p-8516d602.entry.js +0 -1
- package/dist/webcomponents/p-894a7475.entry.js +0 -19
- package/dist/webcomponents/p-94ebfafb.entry.js +0 -1
- package/dist/webcomponents/p-9cb3ff78.entry.js +0 -1
- package/dist/webcomponents/p-9e81808f.entry.js +0 -1
- package/dist/webcomponents/p-a432110c.entry.js +0 -1
- package/dist/webcomponents/p-b1881723.entry.js +0 -1
- package/dist/webcomponents/p-b5aba473.entry.js +0 -1
- package/dist/webcomponents/p-b8a8b551.js +0 -1
- package/dist/webcomponents/p-bd099662.entry.js +0 -1
- package/dist/webcomponents/p-bfd917b8.entry.js +0 -1
- package/dist/webcomponents/p-c90fa055.entry.js +0 -1
- package/dist/webcomponents/p-ebb91944.entry.js +0 -1
- package/dist/webcomponents/p-ec4f27e7.entry.js +0 -1
- package/dist/webcomponents/p-fa495a43.entry.js +0 -1
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.e2e.js +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.spec.js +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/business-form.css +0 -0
- /package/dist/collection/components/{business-form → business-forms/business-form}/test/business-form.spec.js +0 -0
- /package/dist/collection/components/{business-form/business-address/business-address-form.css → business-forms/business-form-stepped/business-address/business-address-form-step.css} +0 -0
- /package/dist/collection/components/{business-form/business-generic-info/business-generic-info.css → business-forms/business-form-stepped/business-core-info/business-core-info-form-step.css} +0 -0
- /package/dist/collection/components/{business-form/business-owners/business-owners.css → business-forms/business-form-stepped/business-owners/business-owners-form-step.css} +0 -0
- /package/dist/collection/components/{business-form/business-representative/business-representative.css → business-forms/business-form-stepped/business-representative/business-representative-form-step.css} +0 -0
- /package/dist/collection/components/{business-form/legal-address-form/legal-address-form.css → business-forms/business-form-stepped/legal-address-form/legal-address-form-step.css} +0 -0
package/dist/module/utils2.js
CHANGED
|
@@ -3839,6 +3839,7 @@ var Dinero = function Dinero(options) {
|
|
|
3839
3839
|
|
|
3840
3840
|
var dinero = Object.assign(Dinero, Defaults, Globals, Static);
|
|
3841
3841
|
|
|
3842
|
+
const RegExZip = /^\d{5}/;
|
|
3842
3843
|
function formatCurrency(amount, withSymbol = true) {
|
|
3843
3844
|
if (!amount)
|
|
3844
3845
|
amount = 0;
|
|
@@ -3887,7 +3888,9 @@ function formatMediumDate(input) {
|
|
|
3887
3888
|
}
|
|
3888
3889
|
function formatDisplayDate(value, endDate) {
|
|
3889
3890
|
const isEndingDate = value === endDate;
|
|
3890
|
-
return
|
|
3891
|
+
return isEndingDate
|
|
3892
|
+
? 'Today'
|
|
3893
|
+
: format(new Date(value.replace(/-/g, '/')), 'MMM d');
|
|
3891
3894
|
}
|
|
3892
3895
|
function formatTime(dateString) {
|
|
3893
3896
|
if (!dateString)
|
|
@@ -3972,11 +3975,28 @@ const MapSubAccountStatusToBadge = (status) => {
|
|
|
3972
3975
|
* console.log(readable); // Outputs: "Sole Proprietorship"
|
|
3973
3976
|
*/
|
|
3974
3977
|
function snakeCaseToHumanReadable(snakeCaseStr) {
|
|
3978
|
+
if (!snakeCaseStr)
|
|
3979
|
+
return '';
|
|
3975
3980
|
return snakeCaseStr
|
|
3976
3981
|
.split('_')
|
|
3977
|
-
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
|
3982
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
3978
3983
|
.join(' ');
|
|
3979
3984
|
}
|
|
3985
|
+
function flattenNestedObject(obj) {
|
|
3986
|
+
const result = {};
|
|
3987
|
+
for (const key in obj) {
|
|
3988
|
+
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
3989
|
+
const nestedObj = flattenNestedObject(obj[key]);
|
|
3990
|
+
for (const nestedKey in nestedObj) {
|
|
3991
|
+
result[nestedKey] = nestedObj[nestedKey];
|
|
3992
|
+
}
|
|
3993
|
+
}
|
|
3994
|
+
else {
|
|
3995
|
+
result[key] = obj[key];
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
return result;
|
|
3999
|
+
}
|
|
3980
4000
|
function composeQueryParams(values) {
|
|
3981
4001
|
const queryParams = values.map((value) => {
|
|
3982
4002
|
if (value === values[0]) {
|
|
@@ -4008,5 +4028,8 @@ async function loadFontsOnParent() {
|
|
|
4008
4028
|
fonts.href = fontHref;
|
|
4009
4029
|
parent.append(fonts);
|
|
4010
4030
|
}
|
|
4031
|
+
function isEmptyObject(obj) {
|
|
4032
|
+
return Object.keys(obj).length === 0 && obj.constructor === Object;
|
|
4033
|
+
}
|
|
4011
4034
|
|
|
4012
|
-
export { MapPaymentStatusToBadge as M,
|
|
4035
|
+
export { MapPaymentStatusToBadge as M, RegExZip as R, formatCurrency as a, formatDisplayDate as b, composeQueryParams as c, flattenNestedObject as d, formatDate as e, formatMediumDate as f, extractComputedFontsToLoad as g, formatTime as h, isEmptyObject as i, MapPayoutStatusToBadge as j, MapSubAccountStatusToBadge as k, loadFontsOnParent as l, formatPercentage as m, formatLegalAddress as n, snakeCaseToHumanReadable as s };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const FormAlert = (message) => (h("div", { class: 'alert alert-danger d-flex align-items-center', role: 'alert' },
|
|
4
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "currentColor", class: "bi bi-exclamation-triangle-fill flex-shrink-0 me-2", viewBox: "0 0 16 16", role: "img", "aria-label": "Warning:" },
|
|
5
|
+
h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" })),
|
|
6
|
+
h("div", null, message)));
|
|
7
|
+
const LoadingSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status" },
|
|
8
|
+
h("span", { class: "visually-hidden" }, "Loading...")));
|
|
9
|
+
|
|
10
|
+
export { FormAlert as F, LoadingSpinner as L };
|
package/dist/types/api/Api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Identity } from './Identity';
|
|
1
2
|
import { BankAccount } from './shared';
|
|
2
3
|
export declare enum BusinessStructure {
|
|
3
4
|
sole_proprietorship = "sole_proprietorship",
|
|
@@ -60,24 +61,6 @@ export interface Document {
|
|
|
60
61
|
status: string;
|
|
61
62
|
updated_at: string;
|
|
62
63
|
}
|
|
63
|
-
export interface Identity {
|
|
64
|
-
address?: IAddress;
|
|
65
|
-
created_at?: string;
|
|
66
|
-
dob_day?: string;
|
|
67
|
-
dob_month?: string;
|
|
68
|
-
dob_year?: string;
|
|
69
|
-
documents?: Document[];
|
|
70
|
-
email?: string;
|
|
71
|
-
id?: string;
|
|
72
|
-
is_owner?: boolean;
|
|
73
|
-
metadata?: any;
|
|
74
|
-
name?: string;
|
|
75
|
-
phone?: string;
|
|
76
|
-
platform_account_id?: string;
|
|
77
|
-
ssn_last4?: string;
|
|
78
|
-
title?: string;
|
|
79
|
-
updated_at?: string;
|
|
80
|
-
}
|
|
81
64
|
export interface ProductCategories {
|
|
82
65
|
credit: boolean;
|
|
83
66
|
insurance: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ICheckout {
|
|
2
|
+
payment_intent_id: string;
|
|
3
|
+
account_id: string;
|
|
4
|
+
platform_account_id: string;
|
|
5
|
+
payment_amount: string;
|
|
6
|
+
payment_client_id: string;
|
|
7
|
+
payment_description: string;
|
|
8
|
+
payment_methods: string[];
|
|
9
|
+
payment_method_group_id: string | null;
|
|
10
|
+
payment_settings: {
|
|
11
|
+
credit_card_payments: boolean;
|
|
12
|
+
ach_payments: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Address, IAddress } from "./Business";
|
|
2
|
+
export interface Identity {
|
|
3
|
+
address?: IAddress;
|
|
4
|
+
created_at?: string;
|
|
5
|
+
dob_day?: string;
|
|
6
|
+
dob_month?: string;
|
|
7
|
+
dob_year?: string;
|
|
8
|
+
documents?: Document[];
|
|
9
|
+
email?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
business_id?: string;
|
|
12
|
+
is_owner?: boolean;
|
|
13
|
+
metadata?: any;
|
|
14
|
+
name?: string;
|
|
15
|
+
phone?: string;
|
|
16
|
+
platform_account_id?: string;
|
|
17
|
+
ssn_last4?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
updated_at?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class Owner implements Identity {
|
|
22
|
+
address?: Address;
|
|
23
|
+
created_at?: string;
|
|
24
|
+
dob_day?: string;
|
|
25
|
+
dob_month?: string;
|
|
26
|
+
dob_year?: string;
|
|
27
|
+
documents?: Document[];
|
|
28
|
+
email?: string;
|
|
29
|
+
id?: string;
|
|
30
|
+
business_id?: string;
|
|
31
|
+
is_owner?: boolean;
|
|
32
|
+
metadata?: any;
|
|
33
|
+
name?: string;
|
|
34
|
+
phone?: string;
|
|
35
|
+
platform_account_id?: string;
|
|
36
|
+
ssn_last4?: string;
|
|
37
|
+
title?: string;
|
|
38
|
+
updated_at?: string;
|
|
39
|
+
constructor(owner: Identity);
|
|
40
|
+
}
|
|
41
|
+
export declare class Representative implements Identity {
|
|
42
|
+
address?: Address;
|
|
43
|
+
created_at?: string;
|
|
44
|
+
dob_day?: string;
|
|
45
|
+
dob_month?: string;
|
|
46
|
+
dob_year?: string;
|
|
47
|
+
documents?: Document[];
|
|
48
|
+
email?: string;
|
|
49
|
+
id?: string;
|
|
50
|
+
business_id?: string;
|
|
51
|
+
is_owner?: boolean;
|
|
52
|
+
metadata?: any;
|
|
53
|
+
name?: string;
|
|
54
|
+
phone?: string;
|
|
55
|
+
platform_account_id?: string;
|
|
56
|
+
ssn_last4?: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
updated_at?: string;
|
|
59
|
+
constructor(representative: Identity);
|
|
60
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IApiResponse } from '../Api';
|
|
2
|
+
import { IBusiness } from '../Business';
|
|
3
|
+
export interface IBusinessService {
|
|
4
|
+
fetchBusiness(businessId: string, authToken: string): Promise<IApiResponse<IBusiness>>;
|
|
5
|
+
}
|
|
6
|
+
export declare class BusinessService implements IBusinessService {
|
|
7
|
+
fetchBusiness(businessId: string, authToken: string): Promise<IApiResponse<IBusiness>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IApiResponse, ICheckout } from '..';
|
|
2
|
+
export interface ICheckoutService {
|
|
3
|
+
fetchCheckout(authToken: string, checkoutId: string): Promise<IApiResponse<ICheckout>>;
|
|
4
|
+
pay(authToken: string, checkoutId: string, tokenizedPaymentMethod: string): Promise<IApiResponse<ICheckout>>;
|
|
5
|
+
}
|
|
6
|
+
export declare class CheckoutService implements ICheckoutService {
|
|
7
|
+
fetchCheckout(authToken: string, checkoutId: string): Promise<IApiResponse<ICheckout>>;
|
|
8
|
+
pay(authToken: string, checkoutId: string, paymentMethodToken: string): Promise<IApiResponse<ICheckout>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Business } from '../../api/Business';
|
|
2
|
+
declare enum RENDER_STATES {
|
|
3
|
+
LOADING = "loading",
|
|
4
|
+
READY = "ready",
|
|
5
|
+
ERROR = "error"
|
|
6
|
+
}
|
|
7
|
+
export declare class BusinessDetailsCore {
|
|
8
|
+
getBusiness: Function;
|
|
9
|
+
business: Business;
|
|
10
|
+
renderState: RENDER_STATES;
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
componentWillLoad(): Promise<void>;
|
|
13
|
+
fetchData(): void;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { Business } from '../../api/Business';
|
|
2
|
-
declare enum RENDER_STATES {
|
|
3
|
-
LOADING = "loading",
|
|
4
|
-
READY = "ready",
|
|
5
|
-
ERROR = "error"
|
|
6
|
-
}
|
|
7
1
|
/**
|
|
8
2
|
*
|
|
9
3
|
* @exportedPart detail-section
|
|
@@ -15,13 +9,9 @@ declare enum RENDER_STATES {
|
|
|
15
9
|
export declare class BusinessDetails {
|
|
16
10
|
businessId: string;
|
|
17
11
|
authToken: string;
|
|
18
|
-
business: Business;
|
|
19
|
-
renderState: RENDER_STATES;
|
|
20
12
|
errorMessage: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
fetchBusiness(businessId: any): Promise<void>;
|
|
13
|
+
getBusiness: Function;
|
|
14
|
+
componentWillLoad(): void;
|
|
15
|
+
private initializeGetBusiness;
|
|
25
16
|
render(): any;
|
|
26
17
|
}
|
|
27
|
-
export {};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import { Identity } from '../../../api/
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @exportedPart detail-section
|
|
5
|
-
* @exportedPart detail-section-title
|
|
6
|
-
* @exportedPart detail-section-item-title
|
|
7
|
-
* @exportedPart detail-section-item-data
|
|
8
|
-
* @exportedPart detail-empty-state
|
|
9
|
-
*/
|
|
1
|
+
import { Identity } from '../../../api/Identity';
|
|
10
2
|
export declare class OwnerDetails {
|
|
11
3
|
owners: Identity[];
|
|
12
4
|
render(): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FormController } from '
|
|
2
|
-
import { ICoreBusinessInfo } from '
|
|
1
|
+
import { FormController } from '../../../form/form';
|
|
2
|
+
import { ICoreBusinessInfo } from '../../../../api/Business';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
* The difference between this component and business-
|
|
5
|
+
* The difference between this component and business-core-info-details
|
|
6
6
|
* is that this component is meant to be a form and send data
|
|
7
7
|
* and the other one is meant to be just read only.
|
|
8
8
|
*
|
|
@@ -10,10 +10,10 @@ import { ICoreBusinessInfo } from '../../../api/Business';
|
|
|
10
10
|
* @exportedPart input: The input fields
|
|
11
11
|
* @exportedPart input-invalid: Invalid state for inputfs
|
|
12
12
|
*/
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class BusinessCoreInfo {
|
|
14
14
|
formController: FormController;
|
|
15
15
|
errors: any;
|
|
16
|
-
|
|
16
|
+
coreInfo: ICoreBusinessInfo;
|
|
17
17
|
constructor();
|
|
18
18
|
componentDidLoad(): void;
|
|
19
19
|
inputHandler(name: string, value: string): void;
|
package/dist/types/components/{business-form → business-forms/business-form}/business-form.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EventEmitter } from '
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { BusinessFormClickEvent, BusinessFormServerErrors, BusinessFormSubmitEvent } from '../utils/business-form-types';
|
|
2
3
|
/**
|
|
3
4
|
* @exportedPart label: Label for inputs
|
|
4
5
|
* @exportedPart input: The input fields
|
|
@@ -9,15 +10,9 @@ export declare class BusinessForm {
|
|
|
9
10
|
businessId: string;
|
|
10
11
|
hideErrors?: boolean;
|
|
11
12
|
isLoading: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
data?: any;
|
|
16
|
-
name: string;
|
|
17
|
-
}>;
|
|
18
|
-
submitted: EventEmitter<{
|
|
19
|
-
data: any;
|
|
20
|
-
}>;
|
|
13
|
+
errorMessage: BusinessFormServerErrors;
|
|
14
|
+
clickEvent: EventEmitter<BusinessFormClickEvent>;
|
|
15
|
+
submitted: EventEmitter<BusinessFormSubmitEvent>;
|
|
21
16
|
get disabledState(): boolean;
|
|
22
17
|
get showErrors(): boolean;
|
|
23
18
|
get businessEndpoint(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormController } from '
|
|
2
|
-
import { IAddress } from '
|
|
1
|
+
import { FormController } from '../../../form/form';
|
|
2
|
+
import { IAddress } from '../../../../api/Business';
|
|
3
3
|
/**
|
|
4
4
|
* @exportedPart label: Label for inputs
|
|
5
5
|
* @exportedPart input: The input fields
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { FormController } from '../../../form/form';
|
|
3
|
+
import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../utils/business-form-types';
|
|
4
|
+
/**
|
|
5
|
+
* @exportedPart label: Label for inputs
|
|
6
|
+
* @exportedPart input: The input fields
|
|
7
|
+
* @exportedPart input-invalid: Invalid state for inputfs
|
|
8
|
+
*/
|
|
9
|
+
export declare class AdditionalQuestionsFormStep {
|
|
10
|
+
authToken: string;
|
|
11
|
+
businessId: string;
|
|
12
|
+
formController: FormController;
|
|
13
|
+
errors: any;
|
|
14
|
+
additional_questions: any;
|
|
15
|
+
submitted: EventEmitter<BusinessFormSubmitEvent>;
|
|
16
|
+
formLoading: EventEmitter<boolean>;
|
|
17
|
+
serverError: EventEmitter<BusinessFormServerErrorEvent>;
|
|
18
|
+
private api;
|
|
19
|
+
get businessEndpoint(): string;
|
|
20
|
+
private fetchData;
|
|
21
|
+
private sendData;
|
|
22
|
+
handleResponse(response: any, onSuccess: any): void;
|
|
23
|
+
validateAndSubmit({ onSuccess }: {
|
|
24
|
+
onSuccess: any;
|
|
25
|
+
}): Promise<void>;
|
|
26
|
+
componentWillLoad(): void;
|
|
27
|
+
componentDidLoad(): void;
|
|
28
|
+
inputHandler: (name: string, value: string) => void;
|
|
29
|
+
render(): any;
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { FormController } from '../../../form/form';
|
|
3
|
+
import { ICoreBusinessInfo } from '../../../../api/Business';
|
|
4
|
+
import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../utils/business-form-types';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* The difference between this component and business-generic-info-details
|
|
8
|
+
* is that this component is meant to be a form and send data
|
|
9
|
+
* and the other one is meant to be just read only.
|
|
10
|
+
*
|
|
11
|
+
* @exportedPart label: Label for inputs
|
|
12
|
+
* @exportedPart input: The input fields
|
|
13
|
+
* @exportedPart input-invalid: Invalid state for inputfs
|
|
14
|
+
*/
|
|
15
|
+
export declare class BusinessCoreInfoFormStep {
|
|
16
|
+
authToken: string;
|
|
17
|
+
businessId: string;
|
|
18
|
+
formController: FormController;
|
|
19
|
+
errors: any;
|
|
20
|
+
coreInfo: ICoreBusinessInfo;
|
|
21
|
+
submitted: EventEmitter<BusinessFormSubmitEvent>;
|
|
22
|
+
formLoading: EventEmitter<boolean>;
|
|
23
|
+
serverError: EventEmitter<BusinessFormServerErrorEvent>;
|
|
24
|
+
private api;
|
|
25
|
+
get businessEndpoint(): string;
|
|
26
|
+
private fetchData;
|
|
27
|
+
private sendData;
|
|
28
|
+
handleResponse(response: any, onSuccess: any): void;
|
|
29
|
+
validateAndSubmit({ onSuccess }: {
|
|
30
|
+
onSuccess: any;
|
|
31
|
+
}): Promise<void>;
|
|
32
|
+
componentWillLoad(): void;
|
|
33
|
+
componentDidLoad(): void;
|
|
34
|
+
inputHandler: (name: string, value: string) => void;
|
|
35
|
+
render(): any;
|
|
36
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { BusinessFormClickEvent } from '../utils/business-form-types';
|
|
3
|
+
/**
|
|
4
|
+
* @exportedPart label: Label for inputs
|
|
5
|
+
* @exportedPart input: The input fields
|
|
6
|
+
* @exportedPart input-invalid: Invalid state for inputfs
|
|
7
|
+
*/
|
|
8
|
+
export declare class BusinessFormStepped {
|
|
9
|
+
authToken: string;
|
|
10
|
+
businessId: string;
|
|
11
|
+
testMode: boolean;
|
|
12
|
+
hideErrors?: boolean;
|
|
13
|
+
formLoading: boolean;
|
|
14
|
+
errorMessage: string;
|
|
15
|
+
currentStep: number;
|
|
16
|
+
totalSteps: number;
|
|
17
|
+
clickEvent: EventEmitter<BusinessFormClickEvent>;
|
|
18
|
+
get showErrors(): boolean;
|
|
19
|
+
get businessEndpoint(): string;
|
|
20
|
+
private coreInfoRef;
|
|
21
|
+
private legalAddressRef;
|
|
22
|
+
private additionalQuestionsRef;
|
|
23
|
+
private representativeRef;
|
|
24
|
+
private ownersRef;
|
|
25
|
+
private refs;
|
|
26
|
+
componentStepMapping: {
|
|
27
|
+
0: () => any;
|
|
28
|
+
1: () => any;
|
|
29
|
+
2: () => any;
|
|
30
|
+
3: () => any;
|
|
31
|
+
4: () => any;
|
|
32
|
+
};
|
|
33
|
+
componentWillLoad(): void;
|
|
34
|
+
handleFormLoading(e: CustomEvent): void;
|
|
35
|
+
handleServerErrors(e: CustomEvent): void;
|
|
36
|
+
showPreviousStepButton(): boolean;
|
|
37
|
+
showNextStepButton(): boolean;
|
|
38
|
+
incrementSteps: () => number;
|
|
39
|
+
decrementSteps: () => number;
|
|
40
|
+
previousStepButtonOnClick(): void;
|
|
41
|
+
nextStepButtonOnClick(e: any, clickEventName: any): void;
|
|
42
|
+
showSubmitButton(): boolean;
|
|
43
|
+
currentStepComponent(): any;
|
|
44
|
+
render(): any;
|
|
45
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../utils/business-form-types';
|
|
3
|
+
import { Owner } from '../../../../api/Identity';
|
|
4
|
+
/**
|
|
5
|
+
* @exportedPart label: Label for inputs
|
|
6
|
+
* @exportedPart input: The input fields
|
|
7
|
+
* @exportedPart input-invalid: Invalid state for inputfs
|
|
8
|
+
*/
|
|
9
|
+
export declare class BusinessOwnersFormStep {
|
|
10
|
+
authToken: string;
|
|
11
|
+
businessId: string;
|
|
12
|
+
owners: Owner[];
|
|
13
|
+
newFormOpen: boolean;
|
|
14
|
+
refs: any[];
|
|
15
|
+
submitted: EventEmitter<BusinessFormSubmitEvent>;
|
|
16
|
+
formLoading: EventEmitter<boolean>;
|
|
17
|
+
serverError: EventEmitter<BusinessFormServerErrorEvent>;
|
|
18
|
+
private api;
|
|
19
|
+
get businessEndpoint(): string;
|
|
20
|
+
get showAddOwnerButton(): boolean;
|
|
21
|
+
private manageRefs;
|
|
22
|
+
private managePayload;
|
|
23
|
+
private matchRef;
|
|
24
|
+
private fetchData;
|
|
25
|
+
private sendData;
|
|
26
|
+
handleResponse(response: any, onSuccess: any): void;
|
|
27
|
+
validateAndSubmit({ onSuccess }: {
|
|
28
|
+
onSuccess: any;
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
componentWillLoad(): void;
|
|
31
|
+
private addOwnerForm;
|
|
32
|
+
private removeOwnerForm;
|
|
33
|
+
onOwnersUpdated(): void;
|
|
34
|
+
private handleOwnerSubmit;
|
|
35
|
+
render(): any;
|
|
36
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { FormController } from '../../../form/form';
|
|
3
|
+
import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../utils/business-form-types';
|
|
4
|
+
export declare class BusinessRepresentativeFormStep {
|
|
5
|
+
authToken: string;
|
|
6
|
+
businessId: string;
|
|
7
|
+
formController: FormController;
|
|
8
|
+
errors: any;
|
|
9
|
+
representative: any;
|
|
10
|
+
submitted: EventEmitter<BusinessFormSubmitEvent>;
|
|
11
|
+
formLoading: EventEmitter<boolean>;
|
|
12
|
+
serverError: EventEmitter<BusinessFormServerErrorEvent>;
|
|
13
|
+
private api;
|
|
14
|
+
get businessEndpoint(): string;
|
|
15
|
+
private fetchData;
|
|
16
|
+
private sendData;
|
|
17
|
+
handleResponse(response: any, onSuccess: any): void;
|
|
18
|
+
validateAndSubmit({ onSuccess }: {
|
|
19
|
+
onSuccess: any;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
componentWillLoad(): void;
|
|
22
|
+
componentDidLoad(): void;
|
|
23
|
+
inputHandler: (name: string, value: string) => void;
|
|
24
|
+
onAddressFormUpdate: (values: any) => void;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { FormController } from '../../../form/form';
|
|
3
|
+
import { IAddress } from '../../../../api/Business';
|
|
4
|
+
import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../utils/business-form-types';
|
|
5
|
+
/**
|
|
6
|
+
* @exportedPart label: Label for inputs
|
|
7
|
+
* @exportedPart input: The input fields
|
|
8
|
+
* @exportedPart input-invalid: Invalid state for inputfs
|
|
9
|
+
*/
|
|
10
|
+
export declare class LegalAddressFormStep {
|
|
11
|
+
authToken: string;
|
|
12
|
+
businessId: string;
|
|
13
|
+
formController: FormController;
|
|
14
|
+
errors: any;
|
|
15
|
+
legal_address: IAddress;
|
|
16
|
+
submitted: EventEmitter<BusinessFormSubmitEvent>;
|
|
17
|
+
formLoading: EventEmitter<boolean>;
|
|
18
|
+
serverError: EventEmitter<BusinessFormServerErrorEvent>;
|
|
19
|
+
private api;
|
|
20
|
+
get businessEndpoint(): string;
|
|
21
|
+
private fetchData;
|
|
22
|
+
private sendData;
|
|
23
|
+
handleResponse(response: any, onSuccess: any): void;
|
|
24
|
+
validateAndSubmit({ onSuccess }: {
|
|
25
|
+
onSuccess: any;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
componentWillLoad(): void;
|
|
28
|
+
componentDidLoad(): void;
|
|
29
|
+
inputHandler: (name: string, value: string) => void;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|