@justifi/webcomponents 4.10.0 → 4.12.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-f8e37adb.js +144 -0
- package/dist/cjs/{Payment-89a8bc21.js → Payment-eceed10f.js} +1 -0
- package/dist/cjs/{SubAccount-05867651.js → SubAccount-b3902202.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +5 -6
- package/dist/cjs/business-additional-questions-schema-bdfd29c3.js +78 -0
- package/dist/cjs/business-details-core.cjs.entry.js +9 -4
- package/dist/cjs/{business-form-types-3cdd5447.js → business-form-types-61b8196a.js} +33 -0
- package/dist/cjs/{form-control-datepart_3.cjs.entry.js → form-control-date_4.cjs.entry.js} +70 -56
- package/dist/cjs/form-control-datepart.cjs.entry.js +80 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/{form-control-number_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +4 -46
- package/dist/cjs/{form-input-masks-e3bf2614.js → form-input-masks-baa06faf.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +10 -5
- package/dist/cjs/{index-69b9386b.js → index-5d5f2219.js} +3 -0
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +38 -26
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +20 -21
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +23 -7
- package/dist/cjs/justifi-business-form.cjs.entry.js +71 -54
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -6
- package/dist/cjs/justifi-business-owners.cjs.entry.js +2 -2
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +34 -24
- package/dist/cjs/justifi-checkout.cjs.entry.js +15 -11
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +30 -6
- package/dist/cjs/{justifi-new-payment-method_3.cjs.entry.js → justifi-new-payment-method_4.cjs.entry.js} +95 -11
- package/dist/cjs/justifi-owner-form.cjs.entry.js +42 -20
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +29 -8
- package/dist/cjs/justifi-payment-form.cjs.entry.js +19 -7
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +25 -18
- package/dist/cjs/justifi-payments-list.cjs.entry.js +29 -9
- package/dist/cjs/justifi-payout-details.cjs.entry.js +31 -11
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +30 -10
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +5 -6
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -5
- package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/payload-parsers-32c43c76.js +144 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -5
- package/dist/cjs/{payment.service-0b0086dc.js → payment.service-9db24ab9.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +11 -6
- package/dist/cjs/payout-details-core.cjs.entry.js +11 -7
- package/dist/cjs/{payout.service-5cc3b4e9.js → payout.service-a0efb71a.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +11 -6
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +5 -6
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +2 -2
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +2 -2
- package/dist/cjs/{utils-23e70ef2.js → utils-6e35fa70.js} +1 -1
- package/dist/cjs/{utils-2b9940e1.js → utils-6f62f7a1.js} +0 -7
- package/dist/cjs/utils-f8079741.js +41 -0
- package/dist/cjs/{utils-df5167a8.js → utils-fc72268d.js} +8 -1
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +3 -20
- package/dist/collection/api/Checkout.js +6 -1
- package/dist/collection/api/ComponentError.js +14 -0
- package/dist/collection/api/Identity.js +7 -4
- package/dist/collection/api/Payment.js +1 -0
- package/dist/collection/api/services/checkout.service.js +7 -3
- package/dist/collection/api/services/utils.js +11 -0
- package/dist/collection/api/shared.js +11 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/business-details/additional-questions-details/test/additional-questions.spec.js +1 -1
- package/dist/collection/components/business-details/business-details-core.js +30 -2
- package/dist/collection/components/business-details/business-details.js +30 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -2
- package/dist/collection/components/business-details/generic-info-details/test/generic-info-details.spec.js +1 -1
- package/dist/collection/components/business-details/get-business.js +15 -3
- package/dist/collection/components/business-details/legal-address-details/test/legal-address-details.spec.js +1 -1
- package/dist/collection/components/business-details/owner-details/test/owner-details.spec.js +1 -1
- package/dist/collection/components/business-details/representative-details/test/representative-details.spec.js +1 -1
- package/dist/collection/components/business-details/test/busines-details-core.spec.js +56 -16
- package/dist/collection/components/business-details/test/business-details.spec.js +20 -4
- package/dist/collection/components/business-details/test/get-business.spec.js +13 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-form.js +124 -50
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +12 -12
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -2
- package/dist/collection/components/business-forms/{business-form/business-address/business-address-form.js → owner-form/identity-address/identity-address-form.js} +13 -10
- package/dist/collection/components/business-forms/owner-form/identity-address/test/identity-address.e2e.js +9 -0
- package/dist/collection/components/business-forms/{business-form/business-address/test/business-address.spec.js → owner-form/identity-address/test/identity-address.spec.js} +21 -14
- package/dist/collection/components/business-forms/owner-form/owner-form.js +75 -13
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +20 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +21 -4
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +44 -4
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +31 -6
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +23 -4
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +74 -15
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +15 -6
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +40 -14
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +55 -12
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +4 -4
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +40 -34
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +8 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +30 -0
- package/dist/collection/components/business-forms/utils/helpers.js +22 -0
- package/dist/collection/components/business-forms/utils/payload-parsers.js +1 -0
- package/dist/collection/components/business-list/business-list.js +0 -2
- package/dist/collection/components/checkout/checkout-actions.js +2 -2
- package/dist/collection/components/checkout/checkout-core.css +361 -0
- package/dist/collection/components/checkout/checkout-core.js +32 -27
- package/dist/collection/components/checkout/checkout.js +5 -5
- package/dist/collection/components/checkout/new-payment-method.js +12 -6
- package/dist/collection/components/checkout/payment-method-options.css +18 -2
- package/dist/collection/components/checkout/payment-method-options.js +62 -5
- package/dist/collection/components/checkout/payment-method-payload.js +1 -0
- package/dist/collection/components/checkout/saved-payment-method.js +11 -6
- package/dist/collection/components/checkout/sezzel-payment-method.js +247 -0
- package/dist/collection/components/form/form-control-date.css +1803 -0
- package/dist/collection/components/form/form-control-date.js +192 -0
- package/dist/collection/components/form/form-control-text.js +35 -1
- package/dist/collection/components/form/utils.js +6 -0
- package/dist/collection/components/gross-payment-chart/get-gross-payment-chart-data.js +17 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +30 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +35 -1
- package/dist/collection/components/gross-payment-chart/test/get-gross-payment-chart-data.spec.js +26 -8
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart-core.spec.js +51 -11
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +55 -3
- package/dist/collection/components/payment-details/get-payment-details.js +15 -3
- package/dist/collection/components/payment-details/payment-details-core.js +30 -1
- package/dist/collection/components/payment-details/payment-details.js +35 -1
- package/dist/collection/components/payment-details/test/get-payment-details.spec.js +11 -3
- package/dist/collection/components/payment-details/test/payment-details-core.spec.js +55 -12
- package/dist/collection/components/payment-details/test/payment-details.spec.js +69 -3
- package/dist/collection/components/payment-form/payment-form.js +54 -3
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js +60 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/payments-list/get-payments.js +15 -4
- package/dist/collection/components/payments-list/payments-list-core.js +28 -2
- package/dist/collection/components/payments-list/payments-list.js +35 -1
- package/dist/collection/components/payments-list/test/get-payments.spec.js +11 -3
- package/dist/collection/components/payments-list/test/payments-list-core.spec.js +43 -28
- package/dist/collection/components/payments-list/test/payments-list.spec.js +31 -3
- package/dist/collection/components/payout-details/get-payout-details.js +17 -6
- package/dist/collection/components/payout-details/payout-details-core.js +31 -3
- package/dist/collection/components/payout-details/payout-details.js +35 -1
- package/dist/collection/components/payout-details/test/get-payout-details.spec.js +15 -5
- package/dist/collection/components/payout-details/test/payout-details-core.spec.js +54 -16
- package/dist/collection/components/payout-details/test/payout-details.spec.js +50 -1
- package/dist/collection/components/payouts-list/get-payouts.js +17 -5
- package/dist/collection/components/payouts-list/payouts-list-core.js +28 -2
- package/dist/collection/components/payouts-list/payouts-list.js +34 -1
- package/dist/collection/components/payouts-list/test/get-payouts.spec.js +11 -3
- package/dist/collection/components/payouts-list/test/payouts-list-core.spec.js +42 -29
- package/dist/collection/components/payouts-list/test/payouts-list.spec.js +33 -0
- package/dist/collection/components/select-input/select-input.js +1 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +4 -4
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +3 -3
- package/dist/collection/components/text-input/test/text-input.spec.js +4 -4
- package/dist/collection/components/text-input/text-input.js +1 -1
- package/dist/collection/utils/form-input-masks.js +1 -1
- package/dist/collection/utils/utils.js +0 -5
- package/dist/docs.json +1583 -607
- package/dist/esm/Business-2410f7e3.js +136 -0
- package/dist/esm/{Payment-55886c86.js → Payment-ef9fc1ae.js} +1 -0
- package/dist/esm/{SubAccount-61ac70eb.js → SubAccount-f4ae9809.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +5 -6
- package/dist/esm/business-additional-questions-schema-5571d40f.js +75 -0
- package/dist/esm/business-details-core.entry.js +9 -4
- package/dist/esm/business-form-types-46ecd908.js +50 -0
- package/dist/esm/{form-control-datepart_3.entry.js → form-control-date_4.entry.js} +68 -55
- package/dist/esm/form-control-datepart.entry.js +76 -0
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/{form-control-number_3.entry.js → form-control-select_2.entry.js} +5 -46
- package/dist/esm/{form-input-masks-a8187c77.js → form-input-masks-850c8cd4.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +10 -5
- package/dist/esm/{index-df86d9a2.js → index-83dcf934.js} +3 -0
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +36 -24
- package/dist/esm/justifi-additional-questions_4.entry.js +20 -21
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_4.entry.js +5 -5
- package/dist/esm/justifi-business-details.entry.js +23 -7
- package/dist/esm/justifi-business-form.entry.js +71 -54
- package/dist/esm/justifi-business-list.entry.js +4 -6
- package/dist/esm/justifi-business-owners.entry.js +2 -2
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +34 -24
- package/dist/esm/justifi-checkout.entry.js +15 -11
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +29 -5
- package/dist/esm/{justifi-new-payment-method_3.entry.js → justifi-new-payment-method_4.entry.js} +95 -12
- package/dist/esm/justifi-owner-form.entry.js +42 -20
- package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -4
- package/dist/esm/justifi-payment-details.entry.js +29 -8
- package/dist/esm/justifi-payment-form.entry.js +19 -7
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +25 -18
- package/dist/esm/justifi-payments-list.entry.js +29 -9
- package/dist/esm/justifi-payout-details.entry.js +31 -11
- package/dist/esm/justifi-payouts-list.entry.js +30 -10
- package/dist/esm/justifi-proceeds-list.entry.js +3 -4
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-subaccount-details.entry.js +5 -6
- package/dist/esm/justifi-subaccounts-list.entry.js +4 -5
- package/dist/esm/justifi-table_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/payload-parsers-192e0c3e.js +131 -0
- package/dist/esm/payment-details-core.entry.js +10 -5
- package/dist/esm/{payment.service-f274ef98.js → payment.service-ec28a959.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +11 -6
- package/dist/esm/payout-details-core.entry.js +11 -7
- package/dist/esm/{payout.service-af293f61.js → payout.service-5fd5986c.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +11 -6
- package/dist/esm/subaccount-account-details_4.entry.js +5 -6
- package/dist/esm/subaccount-bank-details.entry.js +2 -2
- package/dist/esm/subaccount-terms-details.entry.js +2 -2
- package/dist/esm/{utils-d01c5f3a.js → utils-210fdf39.js} +1 -1
- package/dist/esm/{utils-d9e90399.js → utils-243abdb4.js} +1 -7
- package/dist/esm/utils-4609f32c.js +38 -0
- package/dist/esm/{utils-2828201a.js → utils-6f05d9d7.js} +8 -2
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +48 -21
- package/dist/module/Payment.js +1 -0
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +4 -2
- package/dist/module/business-additional-questions-schema.js +16 -7
- package/dist/module/business-address-schema.js +42 -16
- package/dist/module/business-core-info-form-step.js +5 -4
- package/dist/module/business-core-info-schema.js +56 -13
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-details-core2.js +8 -3
- package/dist/module/business-form-types.js +32 -1
- package/dist/module/business-identity-schema.js +41 -35
- package/dist/module/business-owners-form-step.js +14 -10
- package/dist/module/business-representative-form-step.js +22 -13
- package/dist/module/business-representative.js +17 -17
- package/dist/module/checkout-core.js +50 -33
- package/dist/module/form-control-date.d.ts +11 -0
- package/dist/module/form-control-date.js +6 -0
- package/dist/module/form-control-date2.js +68 -0
- package/dist/module/form-control-text2.js +5 -1
- package/dist/module/form-input-masks.js +1 -1
- package/dist/module/generic-info-details2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +8 -2
- package/dist/module/helpers.js +25 -0
- package/dist/module/{business-address-form.js → identity-address-form.js} +17 -20
- package/dist/module/justifi-business-details.js +22 -5
- package/dist/module/justifi-business-form.js +81 -61
- package/dist/module/justifi-business-list.js +1 -3
- package/dist/module/justifi-checkout.js +31 -21
- package/dist/module/justifi-gross-payment-chart.js +28 -4
- package/dist/module/justifi-identity-address-form.d.ts +11 -0
- package/dist/module/justifi-identity-address-form.js +6 -0
- package/dist/module/justifi-payment-balance-transactions.js +1 -1
- package/dist/module/justifi-payment-details.js +26 -5
- package/dist/module/justifi-payment-form.js +18 -4
- package/dist/module/justifi-payment-provisioning.js +35 -27
- package/dist/module/justifi-payments-list.js +26 -6
- package/dist/module/justifi-payout-details.js +28 -8
- package/dist/module/justifi-payouts-list.js +27 -7
- package/dist/module/justifi-sezzel-payment-method.d.ts +11 -0
- package/dist/module/justifi-sezzel-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +1 -1
- package/dist/module/justifi-subaccounts-list.js +1 -1
- package/dist/module/legal-address-form-step.js +10 -13
- package/dist/module/legal-address-form.js +5 -9
- package/dist/module/new-payment-method.js +5 -4
- package/dist/module/owner-form.js +46 -20
- package/dist/module/payload-parsers.js +11 -1
- package/dist/module/payment-details-core2.js +9 -3
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-options.js +34 -12
- package/dist/module/payments-list-core2.js +9 -3
- package/dist/module/payout-details-core2.js +10 -5
- package/dist/module/payouts-list-core2.js +9 -3
- package/dist/module/saved-payment-method.js +4 -4
- package/dist/module/select-input2.js +1 -1
- package/dist/module/sezzel-payment-method.js +99 -0
- package/dist/module/subaccount-merchant-details2.js +3 -3
- package/dist/module/text-input2.js +1 -1
- package/dist/module/utils2.js +1 -7
- package/dist/module/utils3.js +31 -1
- package/dist/module/utils4.js +7 -1
- package/dist/types/api/Business.d.ts +0 -19
- package/dist/types/api/Checkout.d.ts +63 -2
- package/dist/types/api/ComponentError.d.ts +18 -0
- package/dist/types/api/Identity.d.ts +2 -0
- package/dist/types/api/Payment.d.ts +2 -1
- package/dist/types/api/SubAccount.d.ts +0 -2
- package/dist/types/api/services/checkout.service.d.ts +8 -2
- package/dist/types/api/services/utils.d.ts +2 -0
- package/dist/types/api/shared.d.ts +9 -0
- package/dist/types/components/business-details/business-details-core.d.ts +3 -0
- package/dist/types/components/business-details/business-details.d.ts +3 -0
- package/dist/types/components/business-forms/business-form/business-form.d.ts +9 -2
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +3 -3
- package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +10 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -3
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +3 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +6 -2
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +1 -1
- package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +1 -12
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +3 -3
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +11 -11
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +7 -37
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +6 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +15 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +8 -0
- package/dist/types/components/checkout/checkout-actions.d.ts +3 -3
- package/dist/types/components/checkout/checkout-core.d.ts +5 -4
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +2 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +5 -1
- package/dist/types/components/checkout/payment-method-payload.d.ts +8 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +2 -1
- package/dist/types/components/checkout/sezzel-payment-method.d.ts +23 -0
- package/dist/types/components/form/form-control-date.d.ts +18 -0
- package/dist/types/components/form/form-control-text.d.ts +2 -0
- package/dist/types/components/form/utils.d.ts +1 -0
- package/dist/types/components/gross-payment-chart/get-gross-payment-chart-data.d.ts +5 -8
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +3 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +4 -0
- package/dist/types/components/payment-details/payment-details-core.d.ts +3 -0
- package/dist/types/components/payment-details/payment-details.d.ts +4 -0
- package/dist/types/components/payment-form/payment-form.d.ts +4 -1
- package/dist/types/components/payments-list/payments-list-core.d.ts +2 -0
- package/dist/types/components/payments-list/payments-list.d.ts +4 -0
- package/dist/types/components/payout-details/payout-details-core.d.ts +3 -0
- package/dist/types/components/payout-details/payout-details.d.ts +4 -0
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +2 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +4 -0
- package/dist/types/components.d.ts +329 -52
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/webcomponents/p-02fa533c.js +1 -0
- package/dist/webcomponents/p-0315876e.entry.js +1 -0
- package/dist/webcomponents/p-0c269feb.entry.js +1 -0
- package/dist/webcomponents/p-0eb56b44.entry.js +1 -0
- package/dist/webcomponents/p-0eb77101.entry.js +1 -0
- package/dist/webcomponents/p-1334f776.entry.js +1 -0
- package/dist/webcomponents/p-19001cc5.entry.js +1 -0
- package/dist/webcomponents/p-2319abaf.entry.js +1 -0
- package/dist/webcomponents/p-26fe62d6.entry.js +1 -0
- package/dist/webcomponents/p-28b38699.js +1 -0
- package/dist/webcomponents/{p-4df6174c.entry.js → p-29376518.entry.js} +1 -1
- package/dist/webcomponents/p-2bee72bd.entry.js +1 -0
- package/dist/webcomponents/p-3302bc76.js +1 -0
- package/dist/webcomponents/p-3adc0688.entry.js +1 -0
- package/dist/webcomponents/p-3fe05c4a.entry.js +1 -0
- package/dist/webcomponents/p-41b1ad3a.entry.js +1 -0
- package/dist/webcomponents/p-4616768c.entry.js +1 -0
- package/dist/webcomponents/p-56780f10.entry.js +1 -0
- package/dist/webcomponents/p-5c269619.js +1 -0
- package/dist/webcomponents/p-5ff7826e.entry.js +1 -0
- package/dist/webcomponents/{p-8482c23f.js → p-65510838.js} +1 -1
- package/dist/webcomponents/p-6f294d5d.js +1 -0
- package/dist/webcomponents/{p-4d50d08a.entry.js → p-7d8d2984.entry.js} +1 -1
- package/dist/webcomponents/p-7da249b8.entry.js +1 -0
- package/dist/webcomponents/p-84b9ffc9.entry.js +1 -0
- package/dist/webcomponents/{p-07b326d0.entry.js → p-8657128b.entry.js} +1 -1
- package/dist/webcomponents/p-8abba4c2.entry.js +1 -0
- package/dist/webcomponents/p-8c9d9812.entry.js +1 -0
- package/dist/webcomponents/p-910bb656.js +1 -0
- package/dist/webcomponents/p-9245777b.js +1 -0
- package/dist/webcomponents/{p-221b9504.entry.js → p-927150b4.entry.js} +1 -1
- package/dist/webcomponents/p-96cebc8b.entry.js +1 -0
- package/dist/webcomponents/{p-0e189d6a.entry.js → p-99d6b67e.entry.js} +1 -1
- package/dist/webcomponents/p-9e3f9e05.entry.js +1 -0
- package/dist/webcomponents/{p-688bb5da.js → p-9ee8ad4d.js} +1 -1
- package/dist/webcomponents/{p-a46174e0.entry.js → p-9f3facf1.entry.js} +1 -1
- package/dist/webcomponents/p-9f529959.entry.js +1 -0
- package/dist/webcomponents/{p-fb49ef28.entry.js → p-a6f170ba.entry.js} +1 -1
- package/dist/webcomponents/p-a8caec98.entry.js +1 -0
- package/dist/webcomponents/p-a90f7ca0.js +1 -0
- package/dist/webcomponents/p-abc03d5a.entry.js +1 -0
- package/dist/webcomponents/p-b318b899.js +1 -0
- package/dist/webcomponents/{p-1bfadb9f.entry.js → p-c1b92cec.entry.js} +1 -1
- package/dist/webcomponents/{p-a68519e5.entry.js → p-c556deda.entry.js} +1 -1
- package/dist/webcomponents/{p-3d4aaa4a.entry.js → p-c6e207f6.entry.js} +1 -1
- package/dist/webcomponents/{p-b68f1dd9.entry.js → p-cdfde1ca.entry.js} +1 -1
- package/dist/webcomponents/p-d69a485a.entry.js +1 -0
- package/dist/webcomponents/p-e2ba8d84.entry.js +1 -0
- package/dist/webcomponents/{p-ebf7c70f.entry.js → p-e4342f49.entry.js} +1 -1
- package/dist/webcomponents/p-ed72a5cc.js +1 -0
- package/dist/webcomponents/{p-6b51cf97.entry.js → p-f0698778.entry.js} +1 -1
- package/dist/webcomponents/p-f4ae621e.entry.js +1 -0
- package/dist/webcomponents/p-f76283a5.entry.js +19 -0
- package/dist/webcomponents/p-fce2b224.entry.js +1 -0
- package/dist/webcomponents/p-fd60d5af.js +1 -0
- package/dist/webcomponents/p-ff211f76.js +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Business-663db337.js +0 -92
- package/dist/cjs/Identity-1c4528b8.js +0 -49
- package/dist/cjs/business-additional-questions-schema-cbac27f2.js +0 -26
- package/dist/cjs/business-form-select-options-7ccd8dca.js +0 -85
- package/dist/cjs/justifi-business-address-form-step.cjs.entry.js +0 -35
- package/dist/cjs/payload-parsers-9e72e80f.js +0 -99
- package/dist/cjs/utils-f5d82f21.js +0 -10
- package/dist/collection/api/mockData/MockOnboardingData.js +0 -117
- package/dist/collection/api/mockData/MockPayments.js +0 -243
- package/dist/collection/api/mockData/MockSubAccount.js +0 -102
- package/dist/collection/api/mockData/mockGrossVolumeReport.js +0 -125
- package/dist/collection/components/business-forms/business-form/business-address/test/business-address.e2e.js +0 -9
- package/dist/collection/components/business-forms/payment-provisioning/business-address/business-address-form-step.css +0 -2536
- package/dist/collection/components/business-forms/payment-provisioning/business-address/business-address-form-step.js +0 -97
- package/dist/collection/components/business-forms/payment-provisioning/business-address/test/business-address-form-step.spec.js +0 -97
- package/dist/collection/components/business-forms/schemas/business-owners-schema.js +0 -16
- package/dist/collection/components/business-forms/utils/business-form-select-options.js +0 -80
- package/dist/collection/components/card-form/test/card-form.e2e.js +0 -13
- package/dist/esm/Business-6cc4e473.js +0 -87
- package/dist/esm/Identity-5f8f916f.js +0 -46
- package/dist/esm/business-additional-questions-schema-2cb80f70.js +0 -23
- package/dist/esm/business-form-select-options-6b9293fe.js +0 -82
- package/dist/esm/business-form-types-de9f38cd.js +0 -19
- package/dist/esm/justifi-business-address-form-step.entry.js +0 -31
- package/dist/esm/payload-parsers-caea809d.js +0 -91
- package/dist/esm/utils-546ca6aa.js +0 -8
- package/dist/module/Identity.js +0 -46
- package/dist/module/business-form-select-options.js +0 -82
- package/dist/module/justifi-business-address-form-step.d.ts +0 -11
- package/dist/module/justifi-business-address-form-step.js +0 -75
- package/dist/module/justifi-business-address-form.d.ts +0 -11
- package/dist/module/justifi-business-address-form.js +0 -6
- package/dist/types/api/mockData/MockOnboardingData.d.ts +0 -8
- package/dist/types/api/mockData/MockPayments.d.ts +0 -3
- package/dist/types/api/mockData/MockSubAccount.d.ts +0 -3
- package/dist/types/components/business-forms/business-form/business-address/business-address-form.d.ts +0 -9
- package/dist/types/components/business-forms/payment-provisioning/business-address/business-address-form-step.d.ts +0 -9
- package/dist/types/components/business-forms/schemas/business-owners-schema.d.ts +0 -33
- package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +0 -11
- package/dist/webcomponents/p-03b1d0d5.entry.js +0 -1
- package/dist/webcomponents/p-0923e39c.js +0 -1
- package/dist/webcomponents/p-16dcf053.entry.js +0 -1
- package/dist/webcomponents/p-17d72f4a.js +0 -1
- package/dist/webcomponents/p-2df32b4a.entry.js +0 -1
- package/dist/webcomponents/p-34352d04.js +0 -1
- package/dist/webcomponents/p-38ba2848.entry.js +0 -1
- package/dist/webcomponents/p-41870765.entry.js +0 -1
- package/dist/webcomponents/p-461f42b8.entry.js +0 -1
- package/dist/webcomponents/p-48c2400e.js +0 -1
- package/dist/webcomponents/p-491ca87f.js +0 -1
- package/dist/webcomponents/p-5be4e217.entry.js +0 -1
- package/dist/webcomponents/p-60714f2a.entry.js +0 -1
- package/dist/webcomponents/p-60b2344a.js +0 -1
- package/dist/webcomponents/p-63296409.js +0 -1
- package/dist/webcomponents/p-65500b31.entry.js +0 -19
- package/dist/webcomponents/p-6d39b8bc.entry.js +0 -1
- package/dist/webcomponents/p-6ed680e9.js +0 -1
- package/dist/webcomponents/p-7b2cddc7.js +0 -1
- package/dist/webcomponents/p-7ec301b5.entry.js +0 -1
- package/dist/webcomponents/p-817211f2.entry.js +0 -1
- package/dist/webcomponents/p-9207ccb2.entry.js +0 -1
- package/dist/webcomponents/p-975ab96e.js +0 -1
- package/dist/webcomponents/p-9b99370e.js +0 -1
- package/dist/webcomponents/p-9e4b81ad.entry.js +0 -1
- package/dist/webcomponents/p-a141c531.js +0 -1
- package/dist/webcomponents/p-a2dbe90f.entry.js +0 -1
- package/dist/webcomponents/p-a4122c35.entry.js +0 -1
- package/dist/webcomponents/p-af8363a1.entry.js +0 -1
- package/dist/webcomponents/p-b1bc23af.entry.js +0 -1
- package/dist/webcomponents/p-b37d6888.entry.js +0 -1
- package/dist/webcomponents/p-b5a3bf86.entry.js +0 -1
- package/dist/webcomponents/p-b8f22856.js +0 -1
- package/dist/webcomponents/p-cb8f9cb8.entry.js +0 -1
- package/dist/webcomponents/p-d0761829.entry.js +0 -1
- package/dist/webcomponents/p-da34bba7.entry.js +0 -1
- package/dist/webcomponents/p-dbe32e75.entry.js +0 -1
- package/dist/webcomponents/p-e0c1cba8.js +0 -1
- package/dist/webcomponents/p-e924f2e1.entry.js +0 -1
- package/dist/webcomponents/p-ea03b424.entry.js +0 -1
- package/dist/webcomponents/p-ec230480.entry.js +0 -1
- package/dist/webcomponents/p-eed5f4ad.entry.js +0 -1
- package/dist/webcomponents/p-fe8a94c1.entry.js +0 -1
- /package/dist/collection/components/business-forms/{business-form/business-address/business-address-form.css → owner-form/identity-address/identity-address-form.css} +0 -0
- /package/dist/types/{api → home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil}/mockData/mockGrossVolumeReport.d.ts +0 -0
- /package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/{config.d.ts → packages/webcomponents/config.d.ts} +0 -0
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
import { Identity } from './Identity';
|
|
2
2
|
import { BankAccount } from './shared';
|
|
3
|
-
export declare enum BusinessStructure {
|
|
4
|
-
sole_proprietorship = "sole_proprietorship",
|
|
5
|
-
single_llc = "single_llc",
|
|
6
|
-
multi_llc = "multi_llc",
|
|
7
|
-
private_partnership = "private_partnership",
|
|
8
|
-
private_corporation = "private_corporation",
|
|
9
|
-
unincorporated_association = "unincorporated_association",
|
|
10
|
-
public_partnership = "public_partnership",
|
|
11
|
-
public_corporation = "public_corporation",
|
|
12
|
-
incorporated = "incorporated",
|
|
13
|
-
unincorporated = "unincorporated",
|
|
14
|
-
government_unit = "government_unit",
|
|
15
|
-
government_instrumentality = "government_instrumentality",
|
|
16
|
-
tax_exempt_government_instrumentality = "tax_exempt_government_instrumentality"
|
|
17
|
-
}
|
|
18
3
|
export declare enum BusinessType {
|
|
19
4
|
individual = "individual",
|
|
20
5
|
for_profit = "for_profit",
|
|
@@ -81,7 +66,6 @@ export declare class AdditionalQuestions implements IAdditionalQuestions {
|
|
|
81
66
|
constructor(additionalQuestions: IAdditionalQuestions);
|
|
82
67
|
}
|
|
83
68
|
export interface ICoreBusinessInfo {
|
|
84
|
-
business_structure?: BusinessStructure;
|
|
85
69
|
business_type?: BusinessType;
|
|
86
70
|
legal_name?: string;
|
|
87
71
|
doing_business_as?: string;
|
|
@@ -92,7 +76,6 @@ export interface ICoreBusinessInfo {
|
|
|
92
76
|
phone?: string;
|
|
93
77
|
}
|
|
94
78
|
export declare class CoreBusinessInfo implements ICoreBusinessInfo {
|
|
95
|
-
business_structure: BusinessStructure;
|
|
96
79
|
business_type: BusinessType;
|
|
97
80
|
legal_name: string;
|
|
98
81
|
doing_business_as: string;
|
|
@@ -105,7 +88,6 @@ export declare class CoreBusinessInfo implements ICoreBusinessInfo {
|
|
|
105
88
|
}
|
|
106
89
|
export interface IBusiness {
|
|
107
90
|
additional_questions: IAdditionalQuestions | {};
|
|
108
|
-
business_structure: BusinessStructure;
|
|
109
91
|
business_type: BusinessType;
|
|
110
92
|
bank_accounts: BankAccount[];
|
|
111
93
|
created_at: string;
|
|
@@ -128,7 +110,6 @@ export interface IBusiness {
|
|
|
128
110
|
}
|
|
129
111
|
export declare class Business implements IBusiness {
|
|
130
112
|
additional_questions: IAdditionalQuestions | {};
|
|
131
|
-
business_structure: BusinessStructure;
|
|
132
113
|
business_type: BusinessType;
|
|
133
114
|
bank_accounts: BankAccount[];
|
|
134
115
|
created_at: string;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { IApiResponse } from './Api';
|
|
2
|
+
export interface IBnpl {
|
|
3
|
+
provider: string;
|
|
4
|
+
provider_client_id: string;
|
|
5
|
+
provider_mode: string;
|
|
6
|
+
provider_checkout_url: string;
|
|
7
|
+
provider_order_id: string;
|
|
8
|
+
provider_api_version: string;
|
|
9
|
+
}
|
|
1
10
|
export interface ICheckout {
|
|
2
11
|
payment_intent_id: string;
|
|
3
12
|
account_id: string;
|
|
@@ -5,10 +14,62 @@ export interface ICheckout {
|
|
|
5
14
|
payment_amount: string;
|
|
6
15
|
payment_client_id: string;
|
|
7
16
|
payment_description: string;
|
|
8
|
-
payment_methods:
|
|
9
|
-
|
|
17
|
+
payment_methods: {
|
|
18
|
+
id: string;
|
|
19
|
+
status: string;
|
|
20
|
+
invalid_reason: null;
|
|
21
|
+
name: string;
|
|
22
|
+
brand: string;
|
|
23
|
+
acct_last_four: string;
|
|
24
|
+
month: string;
|
|
25
|
+
year: string;
|
|
26
|
+
address_line1_check: string;
|
|
27
|
+
address_postal_code_check: string;
|
|
28
|
+
bin_details: null;
|
|
29
|
+
}[];
|
|
30
|
+
payment_method_group_id: string;
|
|
10
31
|
payment_settings: {
|
|
32
|
+
ach_payments: boolean;
|
|
33
|
+
bnpl_payments: boolean;
|
|
11
34
|
credit_card_payments: boolean;
|
|
35
|
+
};
|
|
36
|
+
bnpl?: IBnpl;
|
|
37
|
+
}
|
|
38
|
+
export declare class Checkout implements ICheckout {
|
|
39
|
+
payment_intent_id: string;
|
|
40
|
+
account_id: string;
|
|
41
|
+
platform_account_id: string;
|
|
42
|
+
payment_amount: string;
|
|
43
|
+
payment_client_id: string;
|
|
44
|
+
payment_description: string;
|
|
45
|
+
payment_methods: {
|
|
46
|
+
id: string;
|
|
47
|
+
status: string;
|
|
48
|
+
invalid_reason: null;
|
|
49
|
+
name: string;
|
|
50
|
+
brand: string;
|
|
51
|
+
acct_last_four: string;
|
|
52
|
+
month: string;
|
|
53
|
+
year: string;
|
|
54
|
+
address_line1_check: string;
|
|
55
|
+
address_postal_code_check: string;
|
|
56
|
+
bin_details: null;
|
|
57
|
+
}[];
|
|
58
|
+
payment_method_group_id: string;
|
|
59
|
+
payment_settings: {
|
|
12
60
|
ach_payments: boolean;
|
|
61
|
+
bnpl_payments: boolean;
|
|
62
|
+
credit_card_payments: boolean;
|
|
13
63
|
};
|
|
64
|
+
bnpl?: IBnpl;
|
|
65
|
+
constructor(data: ICheckout);
|
|
14
66
|
}
|
|
67
|
+
export type ICheckoutCompleteResponse = IApiResponse<{
|
|
68
|
+
payment_mode: 'ecom' | 'bnpl';
|
|
69
|
+
payment_token: null;
|
|
70
|
+
payment_status: string;
|
|
71
|
+
payment_response: null;
|
|
72
|
+
checkout_id: string;
|
|
73
|
+
additional_transactions: any[];
|
|
74
|
+
checkout: ICheckout;
|
|
75
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum ComponentErrorCodes {
|
|
2
|
+
MISSING_PROPS = "missing-props",
|
|
3
|
+
FETCH_ERROR = "fetch-error",
|
|
4
|
+
UNKNOWN_ERROR = "unknown-error",
|
|
5
|
+
TOKENIZE_ERROR = "tokenize-error",
|
|
6
|
+
NOT_AUTHENTICATED = "not-authenticated"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ComponentErrorSeverity {
|
|
9
|
+
INFO = "info",
|
|
10
|
+
WARNING = "warning",
|
|
11
|
+
ERROR = "error"
|
|
12
|
+
}
|
|
13
|
+
export interface ComponentError {
|
|
14
|
+
errorCode: ComponentErrorCodes;
|
|
15
|
+
message: string;
|
|
16
|
+
severity?: ComponentErrorSeverity;
|
|
17
|
+
data?: any;
|
|
18
|
+
}
|
|
@@ -24,6 +24,7 @@ export declare class Owner implements Identity {
|
|
|
24
24
|
dob_day?: string;
|
|
25
25
|
dob_month?: string;
|
|
26
26
|
dob_year?: string;
|
|
27
|
+
dob_full?: string;
|
|
27
28
|
documents?: Document[];
|
|
28
29
|
email?: string;
|
|
29
30
|
id?: string;
|
|
@@ -44,6 +45,7 @@ export declare class Representative implements Identity {
|
|
|
44
45
|
dob_day?: string;
|
|
45
46
|
dob_month?: string;
|
|
46
47
|
dob_year?: string;
|
|
48
|
+
dob_full?: string;
|
|
47
49
|
documents?: Document[];
|
|
48
50
|
email?: string;
|
|
49
51
|
id?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BusinessStructure } from './Business';
|
|
2
1
|
export declare enum TagTypes {
|
|
3
2
|
neutral = "neutral",
|
|
4
3
|
info = "info",
|
|
@@ -105,7 +104,6 @@ export declare class SubAccount implements ISubAccount {
|
|
|
105
104
|
export interface SubAccountBusinessDetails {
|
|
106
105
|
url?: string;
|
|
107
106
|
type?: BusinessType;
|
|
108
|
-
structure?: BusinessStructure;
|
|
109
107
|
industry?: string;
|
|
110
108
|
tax_id?: string;
|
|
111
109
|
phone?: string;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { IApiResponse, ICheckout } from '..';
|
|
2
2
|
export interface ICheckoutService {
|
|
3
3
|
fetchCheckout(authToken: string, checkoutId: string): Promise<IApiResponse<ICheckout>>;
|
|
4
|
-
|
|
4
|
+
complete(authToken: string, checkoutId: string, payment: {
|
|
5
|
+
payment_mode: string;
|
|
6
|
+
payment_token?: string;
|
|
7
|
+
}): Promise<IApiResponse<ICheckout>>;
|
|
5
8
|
}
|
|
6
9
|
export declare class CheckoutService implements ICheckoutService {
|
|
7
10
|
fetchCheckout(authToken: string, checkoutId: string): Promise<IApiResponse<ICheckout>>;
|
|
8
|
-
|
|
11
|
+
complete(authToken: string, checkoutId: string, payment: {
|
|
12
|
+
payment_mode: string;
|
|
13
|
+
payment_token?: string;
|
|
14
|
+
}): Promise<IApiResponse<ICheckout>>;
|
|
9
15
|
}
|
|
@@ -9,3 +9,12 @@ export interface BankAccount {
|
|
|
9
9
|
nickname: string;
|
|
10
10
|
account_type: string;
|
|
11
11
|
}
|
|
12
|
+
export declare const API_ERRORS: {
|
|
13
|
+
NOT_AUTHENTICATED: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const API_NOT_AUTHENTICATED_ERROR: {
|
|
16
|
+
error: {
|
|
17
|
+
code: string;
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
import { Business } from '../../api/Business';
|
|
3
|
+
import { ComponentError } from '../../api/ComponentError';
|
|
2
4
|
declare enum RENDER_STATES {
|
|
3
5
|
LOADING = "loading",
|
|
4
6
|
READY = "ready",
|
|
@@ -9,6 +11,7 @@ export declare class BusinessDetailsCore {
|
|
|
9
11
|
business: Business;
|
|
10
12
|
renderState: RENDER_STATES;
|
|
11
13
|
errorMessage: string;
|
|
14
|
+
errorEvent: EventEmitter<ComponentError>;
|
|
12
15
|
componentWillLoad(): Promise<void>;
|
|
13
16
|
fetchData(): void;
|
|
14
17
|
render(): any;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ComponentError } from '../../api/ComponentError';
|
|
1
3
|
/**
|
|
2
4
|
*
|
|
3
5
|
* @exportedPart detail-section
|
|
@@ -11,6 +13,7 @@ export declare class BusinessDetails {
|
|
|
11
13
|
authToken: string;
|
|
12
14
|
errorMessage: string;
|
|
13
15
|
getBusiness: Function;
|
|
16
|
+
errorEvent: EventEmitter<ComponentError>;
|
|
14
17
|
componentWillLoad(): void;
|
|
15
18
|
private initializeGetBusiness;
|
|
16
19
|
render(): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
import { BusinessFormClickEvent, BusinessFormServerErrors, BusinessFormSubmitEvent } from '../utils/business-form-types';
|
|
3
|
+
import { IBusiness } from '../../../api/Business';
|
|
3
4
|
/**
|
|
4
5
|
* @exportedPart label: Label for inputs
|
|
5
6
|
* @exportedPart input: The input fields
|
|
@@ -9,19 +10,25 @@ export declare class BusinessForm {
|
|
|
9
10
|
authToken: string;
|
|
10
11
|
businessId: string;
|
|
11
12
|
hideErrors?: boolean;
|
|
13
|
+
formTitle?: string;
|
|
14
|
+
removeTitle?: boolean;
|
|
12
15
|
isLoading: boolean;
|
|
13
16
|
errorMessage: BusinessFormServerErrors;
|
|
14
|
-
clickEvent: EventEmitter<BusinessFormClickEvent>;
|
|
15
17
|
submitted: EventEmitter<BusinessFormSubmitEvent>;
|
|
18
|
+
clickEventNew: EventEmitter<BusinessFormClickEvent>;
|
|
19
|
+
clickEventOld: EventEmitter<BusinessFormClickEvent>;
|
|
20
|
+
fireClickEvents(event: BusinessFormClickEvent): void;
|
|
21
|
+
get title(): string;
|
|
16
22
|
get disabledState(): boolean;
|
|
17
23
|
get showErrors(): boolean;
|
|
18
24
|
get businessEndpoint(): string;
|
|
19
25
|
private formController;
|
|
20
26
|
private api;
|
|
21
|
-
|
|
27
|
+
instantiateBusiness: (data: IBusiness) => void;
|
|
22
28
|
componentWillLoad(): void;
|
|
23
29
|
private sendData;
|
|
24
30
|
private fetchData;
|
|
25
31
|
private validateAndSubmit;
|
|
32
|
+
handleReponse(response: any): void;
|
|
26
33
|
render(): any;
|
|
27
34
|
}
|
|
@@ -3,9 +3,9 @@ export declare class BusinessRepresentative {
|
|
|
3
3
|
formController: FormController;
|
|
4
4
|
errors: any;
|
|
5
5
|
representative: any;
|
|
6
|
-
constructor();
|
|
7
6
|
componentDidLoad(): void;
|
|
8
|
-
inputHandler(name: string, value: string)
|
|
9
|
-
onAddressFormUpdate(values: any)
|
|
7
|
+
inputHandler: (name: string, value: string) => void;
|
|
8
|
+
onAddressFormUpdate: (values: any) => void;
|
|
9
|
+
onDateOfBirthUpdate: (event: any) => void;
|
|
10
10
|
render(): any;
|
|
11
11
|
}
|
package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IAddress } from '../../../../api/Business';
|
|
2
|
+
export declare class IdentityAddressForm {
|
|
3
|
+
handleFormUpdate: (values: any) => void;
|
|
4
|
+
errors: any;
|
|
5
|
+
defaultValues: any;
|
|
6
|
+
address: IAddress;
|
|
7
|
+
handleAddressChange(newValues: any): void;
|
|
8
|
+
inputHandler: (name: string, value: string) => void;
|
|
9
|
+
render(): any;
|
|
10
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
import { FormController } from '../../form/form';
|
|
3
|
-
import { Owner } from '../../../api/Identity';
|
|
4
|
-
import { OwnerFormSubmitEvent, OwnerFormServerErrorEvent } from '../utils/business-form-types';
|
|
3
|
+
import { Identity, Owner } from '../../../api/Identity';
|
|
4
|
+
import { OwnerFormSubmitEvent, OwnerFormServerErrorEvent, OwnerFormClickEvent } from '../utils/business-form-types';
|
|
5
5
|
export declare class BusinessOwnerForm {
|
|
6
6
|
authToken: string;
|
|
7
7
|
ownerId?: string;
|
|
8
8
|
businessId?: string;
|
|
9
|
+
allowOptionalFields?: boolean;
|
|
9
10
|
removeOwner: (id: string) => void;
|
|
10
11
|
newFormOpen?: boolean;
|
|
11
12
|
ownersLength?: number;
|
|
@@ -14,6 +15,7 @@ export declare class BusinessOwnerForm {
|
|
|
14
15
|
errors: any;
|
|
15
16
|
owner: Owner;
|
|
16
17
|
submitted: EventEmitter<OwnerFormSubmitEvent>;
|
|
18
|
+
clickEvent: EventEmitter<OwnerFormClickEvent>;
|
|
17
19
|
formLoading: EventEmitter<boolean>;
|
|
18
20
|
serverError: EventEmitter<OwnerFormServerErrorEvent>;
|
|
19
21
|
private api;
|
|
@@ -22,6 +24,7 @@ export declare class BusinessOwnerForm {
|
|
|
22
24
|
get submitButtonText(): "Update" | "Add";
|
|
23
25
|
get showRemoveButton(): boolean;
|
|
24
26
|
loadingWatcher(): void;
|
|
27
|
+
instantiateOwner: (data: Identity) => void;
|
|
25
28
|
private fetchData;
|
|
26
29
|
private sendData;
|
|
27
30
|
handleResponse(response: any): boolean;
|
|
@@ -29,8 +32,11 @@ export declare class BusinessOwnerForm {
|
|
|
29
32
|
componentDidLoad(): void;
|
|
30
33
|
inputHandler: (name: string, value: string) => void;
|
|
31
34
|
onAddressFormUpdate: (values: any) => void;
|
|
35
|
+
onDateOfBirthUpdate: (event: any) => void;
|
|
36
|
+
handleAddOwner: () => void;
|
|
37
|
+
handleRemoveOwner: () => void;
|
|
32
38
|
validate(): Promise<boolean>;
|
|
33
39
|
submit(): Promise<boolean>;
|
|
34
|
-
validateAndSubmit: (event: any) => void
|
|
40
|
+
validateAndSubmit: (event: any) => Promise<void>;
|
|
35
41
|
render(): any;
|
|
36
42
|
}
|
|
@@ -10,6 +10,7 @@ import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../uti
|
|
|
10
10
|
export declare class AdditionalQuestionsFormStep {
|
|
11
11
|
authToken: string;
|
|
12
12
|
businessId: string;
|
|
13
|
+
allowOptionalFields?: boolean;
|
|
13
14
|
formController: FormController;
|
|
14
15
|
errors: any;
|
|
15
16
|
additional_questions: IAdditionalQuestions;
|
|
@@ -15,6 +15,7 @@ import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../uti
|
|
|
15
15
|
export declare class BusinessCoreInfoFormStep {
|
|
16
16
|
authToken: string;
|
|
17
17
|
businessId: string;
|
|
18
|
+
allowOptionalFields?: boolean;
|
|
18
19
|
formController: FormController;
|
|
19
20
|
errors: any;
|
|
20
21
|
coreInfo: ICoreBusinessInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
-
import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../utils/business-form-types';
|
|
3
2
|
import { Owner } from '../../../../api/Identity';
|
|
3
|
+
import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent, OwnerFormClickEvent } from '../../utils/business-form-types';
|
|
4
4
|
/**
|
|
5
5
|
* @exportedPart label: Label for inputs
|
|
6
6
|
* @exportedPart input: The input fields
|
|
@@ -9,10 +9,12 @@ import { Owner } from '../../../../api/Identity';
|
|
|
9
9
|
export declare class BusinessOwnersFormStep {
|
|
10
10
|
authToken: string;
|
|
11
11
|
businessId: string;
|
|
12
|
+
allowOptionalFields?: boolean;
|
|
12
13
|
owners: Owner[];
|
|
13
14
|
newFormOpen: boolean;
|
|
14
15
|
refs: any[];
|
|
15
16
|
submitted: EventEmitter<BusinessFormSubmitEvent>;
|
|
17
|
+
clickEvent: EventEmitter<OwnerFormClickEvent>;
|
|
16
18
|
formLoading: EventEmitter<boolean>;
|
|
17
19
|
serverError: EventEmitter<BusinessFormServerErrorEvent>;
|
|
18
20
|
private api;
|
|
@@ -5,6 +5,7 @@ import { Representative } from '../../../../api/Identity';
|
|
|
5
5
|
export declare class BusinessRepresentativeFormStep {
|
|
6
6
|
authToken: string;
|
|
7
7
|
businessId: string;
|
|
8
|
+
allowOptionalFields?: boolean;
|
|
8
9
|
formController: FormController;
|
|
9
10
|
errors: any;
|
|
10
11
|
representative: Representative;
|
|
@@ -23,5 +24,6 @@ export declare class BusinessRepresentativeFormStep {
|
|
|
23
24
|
componentDidLoad(): void;
|
|
24
25
|
inputHandler: (name: string, value: string) => void;
|
|
25
26
|
onAddressFormUpdate: (values: any) => void;
|
|
27
|
+
onDateOfBirthUpdate: (event: any) => void;
|
|
26
28
|
render(): any;
|
|
27
29
|
}
|
|
@@ -10,6 +10,7 @@ import { BusinessFormServerErrorEvent, BusinessFormSubmitEvent } from '../../uti
|
|
|
10
10
|
export declare class LegalAddressFormStep {
|
|
11
11
|
authToken: string;
|
|
12
12
|
businessId: string;
|
|
13
|
+
allowOptionalFields?: boolean;
|
|
13
14
|
formController: FormController;
|
|
14
15
|
errors: any;
|
|
15
16
|
legal_address: IAddress;
|
|
@@ -10,11 +10,15 @@ export declare class PaymentProvisioning {
|
|
|
10
10
|
businessId: string;
|
|
11
11
|
testMode: boolean;
|
|
12
12
|
hideErrors?: boolean;
|
|
13
|
+
allowOptionalFields?: boolean;
|
|
14
|
+
formTitle?: string;
|
|
15
|
+
removeTitle?: boolean;
|
|
13
16
|
formLoading: boolean;
|
|
14
17
|
errorMessage: string;
|
|
15
18
|
currentStep: number;
|
|
16
19
|
totalSteps: number;
|
|
17
20
|
clickEvent: EventEmitter<BusinessFormClickEvent>;
|
|
21
|
+
get title(): string;
|
|
18
22
|
get showErrors(): boolean;
|
|
19
23
|
get businessEndpoint(): string;
|
|
20
24
|
private coreInfoRef;
|
|
@@ -31,8 +35,8 @@ export declare class PaymentProvisioning {
|
|
|
31
35
|
4: () => any;
|
|
32
36
|
};
|
|
33
37
|
componentWillLoad(): void;
|
|
34
|
-
handleFormLoading(e: CustomEvent)
|
|
35
|
-
handleServerErrors(e: CustomEvent)
|
|
38
|
+
handleFormLoading: (e: CustomEvent) => void;
|
|
39
|
+
handleServerErrors: (e: CustomEvent) => void;
|
|
36
40
|
showPreviousStepButton(): boolean;
|
|
37
41
|
showNextStepButton(): boolean;
|
|
38
42
|
incrementSteps: () => number;
|
package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const additionalQuestionsSchema: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
|
|
2
2
|
business_revenue: string;
|
|
3
3
|
business_payment_volume: string;
|
|
4
4
|
business_dispute_volume: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const addressSchema: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
|
|
2
2
|
line1: string;
|
|
3
3
|
line2: string;
|
|
4
4
|
city: string;
|
|
@@ -13,14 +13,3 @@ export declare const legalAddressSchema: import("yup").ObjectSchema<{
|
|
|
13
13
|
postal_code: undefined;
|
|
14
14
|
country: undefined;
|
|
15
15
|
}, "">;
|
|
16
|
-
export declare const identityAddressSchema: import("yup").ObjectSchema<{
|
|
17
|
-
line1: string;
|
|
18
|
-
city: string;
|
|
19
|
-
state: string;
|
|
20
|
-
postal_code: string;
|
|
21
|
-
}, import("yup").AnyObject, {
|
|
22
|
-
line1: undefined;
|
|
23
|
-
city: undefined;
|
|
24
|
-
state: undefined;
|
|
25
|
-
postal_code: undefined;
|
|
26
|
-
}, "">;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const businessCoreInfoSchema: import("yup").ObjectSchema<{
|
|
1
|
+
export declare const businessCoreInfoSchema: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
|
|
2
2
|
legal_name: string;
|
|
3
3
|
website_url: string;
|
|
4
4
|
email: string;
|
|
5
5
|
phone: string;
|
|
6
6
|
doing_business_as: string;
|
|
7
7
|
business_type: string;
|
|
8
|
-
business_structure: string;
|
|
9
8
|
industry: string;
|
|
9
|
+
tax_id: string;
|
|
10
10
|
}, import("yup").AnyObject, {
|
|
11
11
|
legal_name: undefined;
|
|
12
12
|
website_url: undefined;
|
|
@@ -14,6 +14,6 @@ export declare const businessCoreInfoSchema: import("yup").ObjectSchema<{
|
|
|
14
14
|
phone: undefined;
|
|
15
15
|
doing_business_as: undefined;
|
|
16
16
|
business_type: undefined;
|
|
17
|
-
business_structure: undefined;
|
|
18
17
|
industry: undefined;
|
|
18
|
+
tax_id: undefined;
|
|
19
19
|
}, "">;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
2
2
|
legal_address: {
|
|
3
|
-
city?: string;
|
|
4
|
-
state?: string;
|
|
5
3
|
line1?: string;
|
|
6
4
|
line2?: string;
|
|
5
|
+
city?: string;
|
|
6
|
+
state?: string;
|
|
7
7
|
postal_code?: string;
|
|
8
8
|
country?: string;
|
|
9
9
|
};
|
|
@@ -15,17 +15,17 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
15
15
|
};
|
|
16
16
|
representative: {
|
|
17
17
|
address?: {
|
|
18
|
+
line1?: string;
|
|
19
|
+
line2?: string;
|
|
18
20
|
city?: string;
|
|
19
21
|
state?: string;
|
|
20
|
-
line1?: string;
|
|
21
22
|
postal_code?: string;
|
|
23
|
+
country?: string;
|
|
22
24
|
};
|
|
23
25
|
name?: string;
|
|
24
26
|
email?: string;
|
|
25
27
|
phone?: string;
|
|
26
|
-
|
|
27
|
-
dob_month?: string;
|
|
28
|
-
dob_year?: string;
|
|
28
|
+
dob_full?: string;
|
|
29
29
|
identification_number?: string;
|
|
30
30
|
};
|
|
31
31
|
legal_name: unknown;
|
|
@@ -34,8 +34,8 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
34
34
|
phone: unknown;
|
|
35
35
|
doing_business_as: unknown;
|
|
36
36
|
business_type: unknown;
|
|
37
|
-
business_structure: unknown;
|
|
38
37
|
industry: unknown;
|
|
38
|
+
tax_id: unknown;
|
|
39
39
|
}, import("yup").AnyObject, {
|
|
40
40
|
legal_address: {
|
|
41
41
|
line1: undefined;
|
|
@@ -55,15 +55,15 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
55
55
|
name: undefined;
|
|
56
56
|
email: undefined;
|
|
57
57
|
phone: undefined;
|
|
58
|
-
|
|
59
|
-
dob_month: undefined;
|
|
60
|
-
dob_year: undefined;
|
|
58
|
+
dob_full: undefined;
|
|
61
59
|
identification_number: undefined;
|
|
62
60
|
address: {
|
|
63
61
|
line1: undefined;
|
|
62
|
+
line2: undefined;
|
|
64
63
|
city: undefined;
|
|
65
64
|
state: undefined;
|
|
66
65
|
postal_code: undefined;
|
|
66
|
+
country: undefined;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
legal_name: undefined;
|
|
@@ -72,6 +72,6 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
72
72
|
phone: undefined;
|
|
73
73
|
doing_business_as: undefined;
|
|
74
74
|
business_type: undefined;
|
|
75
|
-
business_structure: undefined;
|
|
76
75
|
industry: undefined;
|
|
76
|
+
tax_id: undefined;
|
|
77
77
|
}, "">;
|
|
@@ -1,59 +1,29 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const representativeSchema: import("yup").ObjectSchema<{
|
|
1
|
+
export declare const identitySchema: (title: string, allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
|
|
3
2
|
name: string;
|
|
4
3
|
email: string;
|
|
5
4
|
phone: string;
|
|
6
|
-
|
|
7
|
-
dob_month: string;
|
|
8
|
-
dob_year: string;
|
|
5
|
+
dob_full: string;
|
|
9
6
|
identification_number: string;
|
|
10
7
|
address: {
|
|
11
|
-
city?: string;
|
|
12
|
-
state?: string;
|
|
13
8
|
line1?: string;
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
}, import("yup").AnyObject, {
|
|
17
|
-
name: undefined;
|
|
18
|
-
email: undefined;
|
|
19
|
-
phone: undefined;
|
|
20
|
-
dob_day: undefined;
|
|
21
|
-
dob_month: undefined;
|
|
22
|
-
dob_year: undefined;
|
|
23
|
-
identification_number: undefined;
|
|
24
|
-
address: {
|
|
25
|
-
line1: undefined;
|
|
26
|
-
city: undefined;
|
|
27
|
-
state: undefined;
|
|
28
|
-
postal_code: undefined;
|
|
29
|
-
};
|
|
30
|
-
}, "">;
|
|
31
|
-
export declare const ownerSchema: import("yup").ObjectSchema<{
|
|
32
|
-
name: string;
|
|
33
|
-
email: string;
|
|
34
|
-
phone: string;
|
|
35
|
-
dob_day: string;
|
|
36
|
-
dob_month: string;
|
|
37
|
-
dob_year: string;
|
|
38
|
-
identification_number: string;
|
|
39
|
-
address: {
|
|
9
|
+
line2?: string;
|
|
40
10
|
city?: string;
|
|
41
11
|
state?: string;
|
|
42
|
-
line1?: string;
|
|
43
12
|
postal_code?: string;
|
|
13
|
+
country?: string;
|
|
44
14
|
};
|
|
45
15
|
}, import("yup").AnyObject, {
|
|
46
16
|
name: undefined;
|
|
47
17
|
email: undefined;
|
|
48
18
|
phone: undefined;
|
|
49
|
-
|
|
50
|
-
dob_month: undefined;
|
|
51
|
-
dob_year: undefined;
|
|
19
|
+
dob_full: undefined;
|
|
52
20
|
identification_number: undefined;
|
|
53
21
|
address: {
|
|
54
22
|
line1: undefined;
|
|
23
|
+
line2: undefined;
|
|
55
24
|
city: undefined;
|
|
56
25
|
state: undefined;
|
|
57
26
|
postal_code: undefined;
|
|
27
|
+
country: undefined;
|
|
58
28
|
};
|
|
59
29
|
}, "">;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const transformEmptyString: (value: string) => string;
|
|
2
|
+
export declare const businessNameRegex: RegExp;
|
|
3
|
+
export declare const phoneRegex: RegExp;
|
|
4
|
+
export declare const urlRegex: RegExp;
|
|
5
|
+
export declare const taxIdRegex: RegExp;
|
|
6
|
+
export declare const stringLettersOnlyRegex: RegExp;
|