@justifi/webcomponents 4.10.0 → 4.11.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-663db337.js → Business-7ae04d4f.js} +46 -1
- package/dist/cjs/business-additional-questions-schema-18a82d19.js +47 -0
- package/dist/cjs/business-details-core.cjs.entry.js +7 -2
- package/dist/cjs/{business-form-types-3cdd5447.js → business-form-types-29b2bad9.js} +7 -0
- package/dist/cjs/{form-control-datepart_3.cjs.entry.js → form-control-datepart_4.cjs.entry.js} +59 -12
- package/dist/cjs/{form-control-number_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +3 -45
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +7 -1
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +24 -20
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +6 -8
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +21 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +60 -51
- package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +29 -5
- package/dist/cjs/justifi-owner-form.cjs.entry.js +20 -12
- package/dist/cjs/justifi-payment-details.cjs.entry.js +25 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +16 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +16 -16
- package/dist/cjs/justifi-payments-list.cjs.entry.js +25 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +27 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +26 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/payload-parsers-f437272e.js +132 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +7 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +8 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +8 -2
- package/dist/cjs/{utils-df5167a8.js → utils-87435719.js} +7 -0
- package/dist/cjs/utils-f8079741.js +41 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Business.js +2 -1
- package/dist/collection/api/ComponentError.js +14 -0
- package/dist/collection/api/services/utils.js +11 -0
- package/dist/collection/api/shared.js +11 -1
- package/dist/collection/collection-manifest.json +1 -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/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-form.js +79 -50
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -4
- 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 +54 -8
- 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 +19 -1
- 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 +21 -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 +32 -14
- 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 +47 -12
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +24 -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 +29 -34
- package/dist/collection/components/business-forms/utils/business-form-types.js +7 -0
- package/dist/collection/components/business-forms/utils/helpers.js +2 -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/test/payment-form.spec.js +60 -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/docs.json +753 -354
- package/dist/esm/{Business-6cc4e473.js → Business-91caaccb.js} +45 -2
- package/dist/esm/business-additional-questions-schema-b642a2b7.js +44 -0
- package/dist/esm/business-details-core.entry.js +8 -3
- package/dist/esm/{business-form-types-de9f38cd.js → business-form-types-0d76133c.js} +8 -1
- package/dist/esm/{form-control-datepart_3.entry.js → form-control-datepart_4.entry.js} +59 -13
- package/dist/esm/{form-control-number_3.entry.js → form-control-select_2.entry.js} +4 -45
- package/dist/esm/gross-payment-chart-core.entry.js +8 -2
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +22 -18
- package/dist/esm/justifi-additional-questions_4.entry.js +6 -8
- package/dist/esm/justifi-billing-form_4.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +22 -5
- package/dist/esm/justifi-business-form.entry.js +60 -51
- package/dist/esm/justifi-business-list.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +28 -4
- package/dist/esm/justifi-owner-form.entry.js +19 -11
- package/dist/esm/justifi-payment-details.entry.js +26 -5
- package/dist/esm/justifi-payment-form.entry.js +16 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +16 -16
- package/dist/esm/justifi-payments-list.entry.js +26 -6
- package/dist/esm/justifi-payout-details.entry.js +28 -8
- package/dist/esm/justifi-payouts-list.entry.js +27 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/payload-parsers-920f49dd.js +123 -0
- package/dist/esm/payment-details-core.entry.js +8 -2
- package/dist/esm/payments-list-core.entry.js +8 -2
- package/dist/esm/payout-details-core.entry.js +9 -4
- package/dist/esm/payouts-list-core.entry.js +8 -2
- package/dist/esm/utils-4609f32c.js +38 -0
- package/dist/esm/{utils-2828201a.js → utils-684d2e47.js} +7 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Business.js +45 -2
- 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 +49 -14
- package/dist/module/business-core-info-form-step.js +3 -1
- package/dist/module/business-core-info-schema.js +24 -12
- package/dist/module/business-details-core2.js +8 -3
- package/dist/module/business-form-types.js +8 -1
- package/dist/module/business-identity-schema.js +30 -35
- package/dist/module/business-owners-form-step.js +12 -8
- package/dist/module/business-representative-form-step.js +9 -10
- package/dist/module/business-representative.js +4 -7
- package/dist/module/form-control-text2.js +5 -1
- package/dist/module/gross-payment-chart-core2.js +8 -2
- package/dist/module/helpers.js +4 -0
- package/dist/module/{business-address-form.js → identity-address-form.js} +17 -20
- package/dist/module/justifi-business-details.js +21 -4
- package/dist/module/justifi-business-form.js +65 -56
- 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-details.js +26 -5
- package/dist/module/justifi-payment-form.js +18 -4
- package/dist/module/justifi-payment-provisioning.js +24 -23
- 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/legal-address-form-step.js +8 -11
- package/dist/module/legal-address-form.js +5 -9
- package/dist/module/owner-form.js +22 -12
- package/dist/module/payment-details-core2.js +8 -2
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payments-list-core2.js +8 -2
- package/dist/module/payout-details-core2.js +9 -4
- package/dist/module/payouts-list-core2.js +8 -2
- package/dist/module/utils3.js +31 -1
- package/dist/module/utils4.js +7 -1
- package/dist/types/api/ComponentError.d.ts +18 -0
- 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 +4 -2
- 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 +5 -1
- 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 +1 -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 +3 -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 +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +7 -3
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +5 -31
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +10 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +2 -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 +217 -43
- package/dist/webcomponents/p-091f9732.entry.js +1 -0
- package/dist/webcomponents/p-0b76c770.entry.js +1 -0
- package/dist/webcomponents/p-0d81883d.entry.js +1 -0
- package/dist/webcomponents/{p-cb8f9cb8.entry.js → p-102b593a.entry.js} +1 -1
- package/dist/webcomponents/p-28cd23c8.entry.js +1 -0
- package/dist/webcomponents/p-2b8368d2.js +1 -0
- package/dist/webcomponents/p-436d27b9.entry.js +1 -0
- package/dist/webcomponents/p-448063ba.entry.js +1 -0
- package/dist/webcomponents/p-5341321d.entry.js +1 -0
- package/dist/webcomponents/p-5b262705.entry.js +1 -0
- package/dist/webcomponents/p-5e503d7d.entry.js +1 -0
- package/dist/webcomponents/p-6047b960.entry.js +1 -0
- package/dist/webcomponents/p-6f294d5d.js +1 -0
- package/dist/webcomponents/p-7294eb89.entry.js +1 -0
- package/dist/webcomponents/p-746bfba6.entry.js +1 -0
- package/dist/webcomponents/p-7c6a355f.entry.js +1 -0
- package/dist/webcomponents/p-935d6f55.js +1 -0
- package/dist/webcomponents/{p-e924f2e1.entry.js → p-959250e3.entry.js} +1 -1
- package/dist/webcomponents/{p-b37d6888.entry.js → p-a130a884.entry.js} +1 -1
- package/dist/webcomponents/p-ac670a3e.js +1 -0
- package/dist/webcomponents/p-ae21ed6f.entry.js +19 -0
- package/dist/webcomponents/p-c071d8c1.entry.js +1 -0
- package/dist/webcomponents/p-c340b60f.js +1 -0
- package/dist/webcomponents/p-d5aab6b5.entry.js +1 -0
- package/dist/webcomponents/p-d5c80489.entry.js +1 -0
- package/dist/webcomponents/p-d776fe10.entry.js +1 -0
- package/dist/webcomponents/p-d8679fad.entry.js +1 -0
- package/dist/webcomponents/p-e84b3616.entry.js +1 -0
- package/dist/webcomponents/p-ea2cca2a.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Identity-1c4528b8.js +0 -49
- package/dist/cjs/business-additional-questions-schema-cbac27f2.js +0 -26
- 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/card-form/test/card-form.e2e.js +0 -13
- package/dist/esm/Identity-5f8f916f.js +0 -46
- package/dist/esm/business-additional-questions-schema-2cb80f70.js +0 -23
- 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/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/webcomponents/p-03b1d0d5.entry.js +0 -1
- package/dist/webcomponents/p-0e189d6a.entry.js +0 -1
- package/dist/webcomponents/p-16dcf053.entry.js +0 -1
- package/dist/webcomponents/p-17d72f4a.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-65500b31.entry.js +0 -19
- package/dist/webcomponents/p-6ed680e9.js +0 -1
- package/dist/webcomponents/p-7ec301b5.entry.js +0 -1
- package/dist/webcomponents/p-9207ccb2.entry.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-a68519e5.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-b5a3bf86.entry.js +0 -1
- package/dist/webcomponents/p-b8f22856.js +0 -1
- package/dist/webcomponents/p-d0761829.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-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
|
@@ -2,6 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
const utils = require('./utils-2b9940e1.js');
|
|
4
4
|
|
|
5
|
+
class Owner {
|
|
6
|
+
constructor(owner) {
|
|
7
|
+
this.address = Object.assign({}, new Address(owner.address || {}));
|
|
8
|
+
this.created_at = owner.created_at;
|
|
9
|
+
this.dob_day = owner.dob_day;
|
|
10
|
+
this.dob_month = owner.dob_month;
|
|
11
|
+
this.dob_year = owner.dob_year;
|
|
12
|
+
this.documents = owner.documents;
|
|
13
|
+
this.email = owner.email;
|
|
14
|
+
this.id = owner.id;
|
|
15
|
+
this.business_id = owner.business_id;
|
|
16
|
+
this.is_owner = owner.is_owner;
|
|
17
|
+
this.metadata = owner.metadata;
|
|
18
|
+
this.name = owner.name;
|
|
19
|
+
this.phone = owner.phone;
|
|
20
|
+
this.platform_account_id = owner.platform_account_id;
|
|
21
|
+
this.ssn_last4 = owner.ssn_last4;
|
|
22
|
+
this.title = owner.title;
|
|
23
|
+
this.updated_at = owner.updated_at;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
class Representative {
|
|
27
|
+
constructor(representative) {
|
|
28
|
+
this.address = Object.assign({}, new Address(representative.address || {}));
|
|
29
|
+
this.created_at = representative.created_at;
|
|
30
|
+
this.dob_day = representative.dob_day;
|
|
31
|
+
this.dob_month = representative.dob_month;
|
|
32
|
+
this.dob_year = representative.dob_year;
|
|
33
|
+
this.documents = representative.documents;
|
|
34
|
+
this.email = representative.email;
|
|
35
|
+
this.id = representative.id;
|
|
36
|
+
this.business_id = representative.business_id;
|
|
37
|
+
this.is_owner = representative.is_owner;
|
|
38
|
+
this.metadata = representative.metadata;
|
|
39
|
+
this.name = representative.name;
|
|
40
|
+
this.phone = representative.phone;
|
|
41
|
+
this.platform_account_id = representative.platform_account_id;
|
|
42
|
+
this.ssn_last4 = representative.ssn_last4;
|
|
43
|
+
this.title = representative.title;
|
|
44
|
+
this.updated_at = representative.updated_at;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
5
48
|
var BusinessStructure;
|
|
6
49
|
(function (BusinessStructure) {
|
|
7
50
|
BusinessStructure["sole_proprietorship"] = "sole_proprietorship";
|
|
@@ -79,7 +122,7 @@ class Business {
|
|
|
79
122
|
this.phone = business.phone;
|
|
80
123
|
this.platform_account_id = business.platform_account_id;
|
|
81
124
|
this.product_categories = business.product_categories;
|
|
82
|
-
this.representative = business.representative || {};
|
|
125
|
+
this.representative = new Representative(business.representative || {});
|
|
83
126
|
this.tax_id = business.tax_id;
|
|
84
127
|
this.updated_at = business.updated_at;
|
|
85
128
|
this.website_url = business.website_url;
|
|
@@ -90,3 +133,5 @@ exports.AdditionalQuestions = AdditionalQuestions;
|
|
|
90
133
|
exports.Address = Address;
|
|
91
134
|
exports.Business = Business;
|
|
92
135
|
exports.CoreBusinessInfo = CoreBusinessInfo;
|
|
136
|
+
exports.Owner = Owner;
|
|
137
|
+
exports.Representative = Representative;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index_esm = require('./index.esm-d25bd7bf.js');
|
|
4
|
+
const payloadParsers = require('./payload-parsers-f437272e.js');
|
|
5
|
+
|
|
6
|
+
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
7
|
+
const schema = index_esm.create$3({
|
|
8
|
+
legal_name: index_esm.create$6().required('Enter legal name'),
|
|
9
|
+
website_url: index_esm.create$6().matches(payloadParsers.urlRegex, 'Enter valid website url').required('Enter website url'),
|
|
10
|
+
email: index_esm.create$6().email('Enter valid email').required('Enter email'),
|
|
11
|
+
phone: index_esm.create$6().matches(payloadParsers.phoneRegex, 'Enter valid phone number').required('Enter phone number'),
|
|
12
|
+
doing_business_as: index_esm.create$6().required('Enter doing business as'),
|
|
13
|
+
business_type: index_esm.create$6().required('Select business type'),
|
|
14
|
+
business_structure: index_esm.create$6().required('Select business structure'),
|
|
15
|
+
industry: index_esm.create$6().required('Enter a business industry'),
|
|
16
|
+
});
|
|
17
|
+
const easySchema = index_esm.create$3({
|
|
18
|
+
legal_name: index_esm.create$6().required('Enter legal name'),
|
|
19
|
+
website_url: index_esm.create$6().matches(payloadParsers.urlRegex, 'Enter valid website url').nullable(),
|
|
20
|
+
email: index_esm.create$6().email('Enter valid email').nullable(),
|
|
21
|
+
phone: index_esm.create$6().matches(payloadParsers.phoneRegex, 'Enter valid phone number').nullable(),
|
|
22
|
+
doing_business_as: index_esm.create$6().nullable(),
|
|
23
|
+
business_type: index_esm.create$6().nullable(),
|
|
24
|
+
business_structure: index_esm.create$6().nullable(),
|
|
25
|
+
industry: index_esm.create$6().nullable(),
|
|
26
|
+
});
|
|
27
|
+
return allowOptionalFields ? easySchema : schema;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const additionalQuestionsSchema = (allowOptionalFields) => {
|
|
31
|
+
const schema = index_esm.create$3({
|
|
32
|
+
business_revenue: index_esm.create$6().required('Enter business revenue'),
|
|
33
|
+
business_payment_volume: index_esm.create$6().required('Enter business payment volume'),
|
|
34
|
+
business_dispute_volume: index_esm.create$6().required('Enter business dispute volume'),
|
|
35
|
+
business_receivable_volume: index_esm.create$6().required('Enter business receivable volume'),
|
|
36
|
+
});
|
|
37
|
+
const easySchema = index_esm.create$3({
|
|
38
|
+
business_revenue: index_esm.create$6().nullable(),
|
|
39
|
+
business_payment_volume: index_esm.create$6().nullable(),
|
|
40
|
+
business_dispute_volume: index_esm.create$6().nullable(),
|
|
41
|
+
business_receivable_volume: index_esm.create$6().nullable()
|
|
42
|
+
});
|
|
43
|
+
return allowOptionalFields ? easySchema : schema;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.additionalQuestionsSchema = additionalQuestionsSchema;
|
|
47
|
+
exports.businessCoreInfoSchema = businessCoreInfoSchema;
|
|
@@ -16,6 +16,7 @@ var RENDER_STATES;
|
|
|
16
16
|
const BusinessDetailsCore = class {
|
|
17
17
|
constructor(hostRef) {
|
|
18
18
|
index.registerInstance(this, hostRef);
|
|
19
|
+
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
19
20
|
this.getBusiness = undefined;
|
|
20
21
|
this.business = undefined;
|
|
21
22
|
this.renderState = RENDER_STATES.LOADING;
|
|
@@ -33,10 +34,14 @@ const BusinessDetailsCore = class {
|
|
|
33
34
|
this.business = business;
|
|
34
35
|
this.renderState = RENDER_STATES.READY;
|
|
35
36
|
},
|
|
36
|
-
onError: ({ error }) => {
|
|
37
|
-
console.error(error);
|
|
37
|
+
onError: ({ error, code, severity }) => {
|
|
38
38
|
this.errorMessage = error;
|
|
39
39
|
this.renderState = RENDER_STATES.ERROR;
|
|
40
|
+
this.errorEvent.emit({
|
|
41
|
+
errorCode: code,
|
|
42
|
+
message: error,
|
|
43
|
+
severity,
|
|
44
|
+
});
|
|
40
45
|
}
|
|
41
46
|
});
|
|
42
47
|
}
|
|
@@ -17,3 +17,10 @@ exports.OwnerFormServerErrors = void 0;
|
|
|
17
17
|
OwnerFormServerErrors["patchData"] = "Error updating owner data";
|
|
18
18
|
OwnerFormServerErrors["postData"] = "Error adding owner data";
|
|
19
19
|
})(exports.OwnerFormServerErrors || (exports.OwnerFormServerErrors = {}));
|
|
20
|
+
exports.OwnerFormClickActions = void 0;
|
|
21
|
+
(function (OwnerFormClickActions) {
|
|
22
|
+
OwnerFormClickActions["removeOwner"] = "removeOwner";
|
|
23
|
+
OwnerFormClickActions["addOwner"] = "addOwner";
|
|
24
|
+
OwnerFormClickActions["addOwnerForm"] = "addOwnerForm";
|
|
25
|
+
OwnerFormClickActions["updateOwner"] = "updateOwner";
|
|
26
|
+
})(exports.OwnerFormClickActions || (exports.OwnerFormClickActions = {}));
|