@justifi/webcomponents 4.12.0 → 4.12.2
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 → Business-21cef37d.js} +20 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/business-additional-questions-schema-f5f303fb.js +49 -0
- package/dist/cjs/{business-form-types-61b8196a.js → business-form-types-a3cc374d.js} +60 -1
- package/dist/cjs/{form-control-date_4.cjs.entry.js → form-control-date_3.cjs.entry.js} +0 -44
- package/dist/cjs/{form-control-datepart.cjs.entry.js → form-control-datepart_2.cjs.entry.js} +46 -2
- package/dist/cjs/{form-input-masks-baa06faf.js → form-input-masks-efd44b8e.js} +2 -0
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +7 -7
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +5 -5
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
- package/dist/cjs/justifi-owner-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{payload-parsers-32c43c76.js → payload-parsers-74693a97.js} +97 -36
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Business.js +18 -0
- package/dist/collection/api/Identity.js +2 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -2
- 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-representative/business-representative.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +1 -22
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +6 -35
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +15 -32
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +1 -0
- package/dist/collection/components/business-forms/schemas/schema-validations.js +95 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +59 -1
- package/dist/collection/components/business-forms/utils/payload-parsers.js +1 -0
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/utils/form-input-masks.js +1 -0
- package/dist/docs.json +4 -26
- package/dist/esm/{Business-2410f7e3.js → Business-0e8a9a3a.js} +21 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-5571d40f.js → business-additional-questions-schema-a84dd641.js} +6 -35
- package/dist/esm/{business-form-types-46ecd908.js → business-form-types-7420dc96.js} +60 -2
- package/dist/esm/{form-control-date_4.entry.js → form-control-date_3.entry.js} +2 -45
- package/dist/esm/{form-control-datepart.entry.js → form-control-datepart_2.entry.js} +47 -4
- package/dist/esm/{form-input-masks-850c8cd4.js → form-input-masks-84875967.js} +2 -1
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +7 -7
- package/dist/esm/justifi-additional-questions_4.entry.js +5 -5
- package/dist/esm/justifi-billing-form_4.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +1 -1
- package/dist/esm/justifi-business-form.entry.js +4 -4
- package/dist/esm/justifi-business-list.entry.js +1 -1
- package/dist/esm/justifi-business-owners.entry.js +1 -1
- package/dist/esm/justifi-owner-form.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{payload-parsers-192e0c3e.js → payload-parsers-0c4fc2b1.js} +89 -31
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Business.js +21 -1
- package/dist/module/business-address-schema.js +2 -23
- package/dist/module/business-core-info-form-step.js +2 -2
- package/dist/module/business-core-info-schema.js +6 -35
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-form-types.js +60 -2
- package/dist/module/business-identity-schema.js +15 -32
- package/dist/module/business-owners-form-step.js +2 -8
- package/dist/module/business-representative-form-step.js +5 -11
- package/dist/module/business-representative.js +4 -10
- package/dist/module/form-input-masks.js +2 -1
- package/dist/module/generic-info-details2.js +2 -2
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +7 -13
- package/dist/module/justifi-business-list.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +5 -11
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/owner-form.js +6 -12
- package/dist/module/payload-parsers.js +99 -1
- package/dist/module/payment-method-form.js +2 -2
- package/dist/types/api/Business.d.ts +19 -0
- package/dist/types/api/Identity.d.ts +3 -0
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +2 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +4 -0
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +3 -1
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +1 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +18 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +5 -1
- package/dist/types/utils/form-input-masks.d.ts +1 -0
- package/dist/webcomponents/p-01913426.js +1 -0
- package/dist/webcomponents/{p-3fe05c4a.entry.js → p-18cf5a16.entry.js} +1 -1
- package/dist/webcomponents/p-2fbe8823.entry.js +1 -0
- package/dist/webcomponents/{p-8c9d9812.entry.js → p-51ee396f.entry.js} +1 -1
- package/dist/webcomponents/p-52e4cc27.js +1 -0
- package/dist/webcomponents/{p-9f3facf1.entry.js → p-5f5e730c.entry.js} +1 -1
- package/dist/webcomponents/p-602a1588.entry.js +1 -0
- package/dist/webcomponents/p-6ec77980.entry.js +1 -0
- package/dist/webcomponents/{p-99d6b67e.entry.js → p-81c43ba5.entry.js} +1 -1
- package/dist/webcomponents/{p-56780f10.entry.js → p-9e35b0f6.entry.js} +1 -1
- package/dist/webcomponents/p-9ec89299.entry.js +1 -0
- package/dist/webcomponents/{p-84b9ffc9.entry.js → p-b38baa84.entry.js} +1 -1
- package/dist/webcomponents/p-b9f04fb0.entry.js +1 -0
- package/dist/webcomponents/p-bfc634c6.entry.js +1 -0
- package/dist/webcomponents/p-cb86b2fd.js +1 -0
- package/dist/webcomponents/p-d2b7beac.js +1 -0
- package/dist/webcomponents/p-e3946c2b.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-additional-questions-schema-bdfd29c3.js +0 -78
- package/dist/webcomponents/p-0315876e.entry.js +0 -1
- package/dist/webcomponents/p-26fe62d6.entry.js +0 -1
- package/dist/webcomponents/p-41b1ad3a.entry.js +0 -1
- package/dist/webcomponents/p-5c269619.js +0 -1
- package/dist/webcomponents/p-910bb656.js +0 -1
- package/dist/webcomponents/p-96cebc8b.entry.js +0 -1
- package/dist/webcomponents/p-b318b899.js +0 -1
- package/dist/webcomponents/p-e2ba8d84.entry.js +0 -1
- package/dist/webcomponents/p-f4ae621e.entry.js +0 -1
- package/dist/webcomponents/p-fd60d5af.js +0 -1
- package/dist/webcomponents/p-ff211f76.js +0 -1
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout\",[[1,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-gross-payment-chart\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"subaccount-bank-details\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"errorMessage\":[32],\"creatingNewPaymentMethod\":[32],\"selectedPaymentMethodToken\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"form-control-datepart\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"gross-payment-chart-core\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-select_2\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"justifi-additional-questions_4\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}]]],[\"subaccount-account-details_4\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"form-control-date_4\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"justifi-billing-form_4\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"selectedPaymentMethodId\":[1,\"selected-payment-method-id\"],\"paymentAmount\":[1,\"payment-amount\"],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzel-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]]]"), options);
|
|
17
|
+
return bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout\",[[1,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-gross-payment-chart\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"subaccount-bank-details\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"errorMessage\":[32],\"creatingNewPaymentMethod\":[32],\"selectedPaymentMethodToken\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"gross-payment-chart-core\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}]]],[\"subaccount-account-details_4\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"justifi-billing-form_4\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"selectedPaymentMethodId\":[1,\"selected-payment-method-id\"],\"paymentAmount\":[1,\"payment-amount\"],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzel-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]],[\"form-control-select_2\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]]]"), options);
|
|
18
18
|
});
|
package/dist/module/Business.js
CHANGED
|
@@ -17,6 +17,7 @@ class Owner {
|
|
|
17
17
|
this.name = owner.name;
|
|
18
18
|
this.phone = owner.phone;
|
|
19
19
|
this.platform_account_id = owner.platform_account_id;
|
|
20
|
+
this.identification_number = owner.identification_number;
|
|
20
21
|
this.ssn_last4 = owner.ssn_last4;
|
|
21
22
|
this.title = owner.title;
|
|
22
23
|
this.updated_at = owner.updated_at;
|
|
@@ -39,6 +40,7 @@ class Representative {
|
|
|
39
40
|
this.name = representative.name;
|
|
40
41
|
this.phone = representative.phone;
|
|
41
42
|
this.platform_account_id = representative.platform_account_id;
|
|
43
|
+
this.identification_number = representative.identification_number;
|
|
42
44
|
this.ssn_last4 = representative.ssn_last4;
|
|
43
45
|
this.title = representative.title;
|
|
44
46
|
this.updated_at = representative.updated_at;
|
|
@@ -52,6 +54,22 @@ var BusinessType;
|
|
|
52
54
|
BusinessType["non_profit"] = "non_profit";
|
|
53
55
|
BusinessType["government_entity"] = "government_entity";
|
|
54
56
|
})(BusinessType || (BusinessType = {}));
|
|
57
|
+
var BusinessStructure;
|
|
58
|
+
(function (BusinessStructure) {
|
|
59
|
+
BusinessStructure["sole_proprietorship"] = "sole_proprietorship";
|
|
60
|
+
BusinessStructure["single_llc"] = "single_llc";
|
|
61
|
+
BusinessStructure["multi_llc"] = "multi_llc";
|
|
62
|
+
BusinessStructure["private_partnership"] = "private_partnership";
|
|
63
|
+
BusinessStructure["private_corporation"] = "private_corporation";
|
|
64
|
+
BusinessStructure["unincorporated_association"] = "unincorporated_association";
|
|
65
|
+
BusinessStructure["public_partnership"] = "public_partnership";
|
|
66
|
+
BusinessStructure["public_corporation"] = "public_corporation";
|
|
67
|
+
BusinessStructure["incorporated"] = "incorporated";
|
|
68
|
+
BusinessStructure["unincorporated"] = "unincorporated";
|
|
69
|
+
BusinessStructure["government_unit"] = "government_unit";
|
|
70
|
+
BusinessStructure["government_instrumentality"] = "government_instrumentality";
|
|
71
|
+
BusinessStructure["tax_exempt_government_instrumentality"] = "tax_exempt_government_instrumentality";
|
|
72
|
+
})(BusinessStructure || (BusinessStructure = {}));
|
|
55
73
|
class Address {
|
|
56
74
|
constructor(address) {
|
|
57
75
|
this.id = address.id;
|
|
@@ -77,6 +95,7 @@ class AdditionalQuestions {
|
|
|
77
95
|
class CoreBusinessInfo {
|
|
78
96
|
constructor(coreBusinessInfo) {
|
|
79
97
|
this.business_type = coreBusinessInfo.business_type;
|
|
98
|
+
this.business_structure = coreBusinessInfo.business_structure;
|
|
80
99
|
this.legal_name = coreBusinessInfo.legal_name;
|
|
81
100
|
this.doing_business_as = coreBusinessInfo.doing_business_as;
|
|
82
101
|
this.industry = coreBusinessInfo.industry;
|
|
@@ -91,6 +110,7 @@ class Business {
|
|
|
91
110
|
this.additional_questions = business.additional_questions || {};
|
|
92
111
|
this.bank_accounts = business.bank_accounts;
|
|
93
112
|
this.business_type = business.business_type;
|
|
113
|
+
this.business_structure = business.business_structure;
|
|
94
114
|
this.created_at = business.created_at;
|
|
95
115
|
this.documents = business.documents;
|
|
96
116
|
this.doing_business_as = business.doing_business_as;
|
|
@@ -111,4 +131,4 @@ class Business {
|
|
|
111
131
|
}
|
|
112
132
|
}
|
|
113
133
|
|
|
114
|
-
export { AdditionalQuestions as A, BusinessType as B, CoreBusinessInfo as C, Owner as O, Representative as R,
|
|
134
|
+
export { AdditionalQuestions as A, BusinessType as B, CoreBusinessInfo as C, Owner as O, Representative as R, BusinessStructure as a, Business as b, Address as c };
|
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as transformEmptyString } from './payload-parsers.js';
|
|
1
|
+
import { c as create$3, a as create$6 } from './index.esm.js';
|
|
2
|
+
import { l as lineOneValidation, m as lineTwoValidation, n as cityValidation, o as stateValidation, q as postalValidation } from './payload-parsers.js';
|
|
4
3
|
|
|
5
|
-
const lineOneValidation = create$6()
|
|
6
|
-
.min(5, 'Address must be at least 5 characters')
|
|
7
|
-
.max(100, 'Address must be less than 100 characters')
|
|
8
|
-
.matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Enter valid address line 1')
|
|
9
|
-
.transform(transformEmptyString);
|
|
10
|
-
const lineTwoValidation = create$6()
|
|
11
|
-
.max(100, 'Address must be less than 100 characters')
|
|
12
|
-
.matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Enter valid address line 2')
|
|
13
|
-
.transform(transformEmptyString);
|
|
14
|
-
const cityValidation = create$6()
|
|
15
|
-
.min(2, 'City must be at least 2 characters')
|
|
16
|
-
.max(50, 'City must be less than 50 characters')
|
|
17
|
-
.matches(/^(?!^\s+$)[a-zA-Z\s]*$/, 'Enter valid city')
|
|
18
|
-
.transform(transformEmptyString);
|
|
19
|
-
const stateValidation = create$6()
|
|
20
|
-
.oneOf(StateOptions.map((option) => option.value), 'Select state')
|
|
21
|
-
.transform(transformEmptyString);
|
|
22
|
-
const postalValidation = create$6()
|
|
23
|
-
.matches(/^[0-9]{5}$/, 'Enter valid postal code')
|
|
24
|
-
.transform(transformEmptyString);
|
|
25
4
|
const addressSchema = (allowOptionalFields) => {
|
|
26
5
|
const schema = create$3({
|
|
27
6
|
line1: lineOneValidation.required('Enter street address'),
|
|
@@ -10,7 +10,7 @@ import { b as businessCoreInfoSchema } from './business-core-info-schema.js';
|
|
|
10
10
|
import { c as config } from './config.js';
|
|
11
11
|
import { p as parseCoreInfo } from './payload-parsers.js';
|
|
12
12
|
import { d as flattenNestedObject } from './utils2.js';
|
|
13
|
-
import { B as BusinessFormServerErrors, a as BusinessTypeOptions } from './business-form-types.js';
|
|
13
|
+
import { B as BusinessFormServerErrors, a as BusinessTypeOptions, b as BusinessStructureOptions } from './business-form-types.js';
|
|
14
14
|
import { d as defineCustomElement$3 } from './form-control-number-masked2.js';
|
|
15
15
|
import { d as defineCustomElement$2 } from './form-control-select2.js';
|
|
16
16
|
import { d as defineCustomElement$1 } from './form-control-text2.js';
|
|
@@ -97,7 +97,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
|
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
99
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
100
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })))))));
|
|
100
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_structure", label: "Business Structure", options: BusinessStructureOptions, defaultValue: coreInfoDefaultValue.business_structure, error: this.errors.business_structure, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })))))));
|
|
101
101
|
}
|
|
102
102
|
static get style() { return businessCoreInfoFormStepCss; }
|
|
103
103
|
}, [0, "justifi-business-core-info-form-step", {
|
|
@@ -1,55 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { b as businessNameRegex, t as transformEmptyString, u as urlRegex, a as phoneRegex, s as stringLettersOnlyRegex, c as taxIdRegex } from './payload-parsers.js';
|
|
1
|
+
import { c as create$3 } from './index.esm.js';
|
|
2
|
+
import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, a as phoneValidation, d as doingBusinessAsValidation, c as businessTypeValidation, f as businessStructureValidation, i as industryValidation, t as taxIdValidation } from './payload-parsers.js';
|
|
4
3
|
|
|
5
|
-
const nameValidation = create$6()
|
|
6
|
-
.min(2, 'Name must be at least 2 characters')
|
|
7
|
-
.max(100, 'Name must be less than 100 characters')
|
|
8
|
-
.matches(businessNameRegex, 'Enter valid business name')
|
|
9
|
-
.transform(transformEmptyString);
|
|
10
|
-
const doingBusinessAsValidation = create$6()
|
|
11
|
-
.min(2, 'Name must be at least 2 characters')
|
|
12
|
-
.max(100, 'Name must be less than 100 characters')
|
|
13
|
-
.matches(businessNameRegex, 'Enter valid doing business as')
|
|
14
|
-
.transform(transformEmptyString);
|
|
15
|
-
const websiteUrlValidation = create$6()
|
|
16
|
-
.matches(urlRegex, 'Enter valid website url')
|
|
17
|
-
.transform(transformEmptyString);
|
|
18
|
-
const emailValidation = create$6()
|
|
19
|
-
.email('Enter valid email')
|
|
20
|
-
.transform(transformEmptyString);
|
|
21
|
-
const phoneValidation = create$6()
|
|
22
|
-
.matches(phoneRegex, 'Enter valid phone number')
|
|
23
|
-
.transform(transformEmptyString);
|
|
24
|
-
const businessTypeValidation = create$6()
|
|
25
|
-
.oneOf(BusinessTypeOptions.map((option) => option.value), 'Select business type')
|
|
26
|
-
.transform(transformEmptyString);
|
|
27
|
-
const industryValidation = create$6()
|
|
28
|
-
.min(2, 'Industry must be at least 2 characters')
|
|
29
|
-
.max(50, 'Industry must be less than 50 characters')
|
|
30
|
-
.matches(stringLettersOnlyRegex, 'Enter valid industry')
|
|
31
|
-
.transform(transformEmptyString);
|
|
32
|
-
const taxIdValidation = create$6()
|
|
33
|
-
.matches(taxIdRegex, 'Enter valid tax id')
|
|
34
|
-
.transform(transformEmptyString);
|
|
35
4
|
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
36
5
|
const schema = create$3({
|
|
37
|
-
legal_name:
|
|
6
|
+
legal_name: businessNameValidation.required('Enter legal name'),
|
|
38
7
|
website_url: websiteUrlValidation.required('Enter business website url'),
|
|
39
8
|
email: emailValidation.required('Enter business email'),
|
|
40
9
|
phone: phoneValidation.required('Enter phone number'),
|
|
41
10
|
doing_business_as: doingBusinessAsValidation.required('Enter doing business as'),
|
|
42
11
|
business_type: businessTypeValidation.required('Select business type'),
|
|
12
|
+
business_structure: businessStructureValidation.required('Select business structure'),
|
|
43
13
|
industry: industryValidation.required('Enter a business industry'),
|
|
44
14
|
tax_id: taxIdValidation.required('Enter tax id'),
|
|
45
15
|
});
|
|
46
16
|
const easySchema = create$3({
|
|
47
|
-
legal_name:
|
|
17
|
+
legal_name: businessNameValidation.required('Enter legal name'),
|
|
48
18
|
website_url: websiteUrlValidation.nullable(),
|
|
49
19
|
email: emailValidation.nullable(),
|
|
50
20
|
phone: phoneValidation.nullable(),
|
|
51
21
|
doing_business_as: doingBusinessAsValidation.nullable(),
|
|
52
22
|
business_type: businessTypeValidation.nullable(),
|
|
23
|
+
business_structure: businessStructureValidation.nullable(),
|
|
53
24
|
industry: industryValidation.nullable(),
|
|
54
25
|
tax_id: taxIdValidation.nullable(),
|
|
55
26
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as BusinessTypeOptions } from './business-form-types.js';
|
|
2
|
+
import { a as BusinessTypeOptions, b as BusinessStructureOptions } from './business-form-types.js';
|
|
3
3
|
import { T as TAX_ID_MASKS, P as PHONE_MASKS } from './form-input-masks.js';
|
|
4
4
|
import { C as CoreBusinessInfo } from './Business.js';
|
|
5
5
|
import { d as defineCustomElement$3 } from './form-control-number-masked2.js';
|
|
@@ -28,7 +28,7 @@ const BusinessCoreInfo = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfo
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
31
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
31
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_structure", label: "Business Structure", options: BusinessStructureOptions, defaultValue: coreInfoDefaultValue.business_structure, error: this.errors.business_structure, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
32
32
|
}
|
|
33
33
|
static get style() { return businessCoreInfoCss; }
|
|
34
34
|
}, [0, "justifi-business-core-info", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BusinessType } from './Business.js';
|
|
1
|
+
import { B as BusinessType, a as BusinessStructure } from './Business.js';
|
|
2
2
|
|
|
3
3
|
var BusinessFormServerErrors;
|
|
4
4
|
(function (BusinessFormServerErrors) {
|
|
@@ -46,5 +46,63 @@ const BusinessTypeOptions = [
|
|
|
46
46
|
value: BusinessType.government_entity,
|
|
47
47
|
},
|
|
48
48
|
];
|
|
49
|
+
const BusinessStructureOptions = [
|
|
50
|
+
{
|
|
51
|
+
label: 'Choose business structure',
|
|
52
|
+
value: '',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Sole Proprietorship',
|
|
56
|
+
value: BusinessStructure.sole_proprietorship,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'LLC (Single)',
|
|
60
|
+
value: BusinessStructure.single_llc,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'LLC (Multiple)',
|
|
64
|
+
value: BusinessStructure.multi_llc,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: 'Private Partnership',
|
|
68
|
+
value: BusinessStructure.private_partnership,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'Private Corporation',
|
|
72
|
+
value: BusinessStructure.private_corporation,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Unincorporated Association',
|
|
76
|
+
value: BusinessStructure.unincorporated_association,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Public Partnership',
|
|
80
|
+
value: BusinessStructure.public_partnership,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Public Corporation',
|
|
84
|
+
value: BusinessStructure.public_corporation,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Incorporated',
|
|
88
|
+
value: BusinessStructure.incorporated,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'Unincorporated',
|
|
92
|
+
value: BusinessStructure.unincorporated,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Government Unit',
|
|
96
|
+
value: BusinessStructure.government_unit,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: 'Government Instrumentality',
|
|
100
|
+
value: BusinessStructure.government_instrumentality,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: 'Tax Exempt Government Instrumentality',
|
|
104
|
+
value: BusinessStructure.tax_exempt_government_instrumentality,
|
|
105
|
+
},
|
|
106
|
+
];
|
|
49
107
|
|
|
50
|
-
export { BusinessFormServerErrors as B, OwnerFormClickActions as O, BusinessTypeOptions as a,
|
|
108
|
+
export { BusinessFormServerErrors as B, OwnerFormClickActions as O, BusinessTypeOptions as a, BusinessStructureOptions as b, BusinessFormClickActions as c, OwnerFormServerErrors as d };
|
|
@@ -1,41 +1,24 @@
|
|
|
1
|
-
import { c as create$3
|
|
1
|
+
import { c as create$3 } from './index.esm.js';
|
|
2
2
|
import { a as addressSchema } from './business-address-schema.js';
|
|
3
|
-
import { a as
|
|
3
|
+
import { h as identityNameValidation, j as identityTitleValidation, e as emailValidation, a as phoneValidation, k as dobValidation, s as ssnValidation } from './payload-parsers.js';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
return (create$6()
|
|
7
|
-
.test('min', 'Enter a valid date', (value) => {
|
|
8
|
-
const date = new Date(value);
|
|
9
|
-
const minDate = new Date('1902-01-01');
|
|
10
|
-
return date >= minDate;
|
|
11
|
-
})
|
|
12
|
-
.test('age', `${title} must be at least 18 years old`, (value) => {
|
|
13
|
-
const date = new Date(value);
|
|
14
|
-
const minAgeDate = new Date();
|
|
15
|
-
minAgeDate.setFullYear(minAgeDate.getFullYear() - 18);
|
|
16
|
-
return date <= minAgeDate;
|
|
17
|
-
})
|
|
18
|
-
.transform(transformEmptyString));
|
|
19
|
-
};
|
|
20
|
-
const identitySchema = (title, allowOptionalFields) => {
|
|
5
|
+
const identitySchema = (role, allowOptionalFields) => {
|
|
21
6
|
const schema = create$3({
|
|
22
|
-
name:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
identification_number: create$6(),
|
|
7
|
+
name: identityNameValidation.required(`Enter ${role} name`),
|
|
8
|
+
title: identityTitleValidation.required(`Enter ${role} title`),
|
|
9
|
+
email: emailValidation.required(`Enter ${role} email`),
|
|
10
|
+
phone: phoneValidation.required('Enter phone number'),
|
|
11
|
+
dob_full: dobValidation(role).required('Enter date of birth'),
|
|
12
|
+
identification_number: ssnValidation.required('Enter SSN'),
|
|
29
13
|
address: addressSchema(allowOptionalFields),
|
|
30
14
|
});
|
|
31
15
|
const easySchema = create$3({
|
|
32
|
-
name:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
identification_number: create$6().nullable(),
|
|
16
|
+
name: identityNameValidation.required(`Enter ${role} name`),
|
|
17
|
+
title: identityTitleValidation.nullable(),
|
|
18
|
+
email: emailValidation.nullable(),
|
|
19
|
+
phone: phoneValidation.nullable(),
|
|
20
|
+
dob_full: dobValidation(role).nullable(),
|
|
21
|
+
identification_number: ssnValidation.nullable(),
|
|
39
22
|
address: addressSchema(allowOptionalFields),
|
|
40
23
|
});
|
|
41
24
|
return allowOptionalFields ? easySchema : schema;
|
|
@@ -6,8 +6,7 @@ import './Payout.js';
|
|
|
6
6
|
import { c as config } from './config.js';
|
|
7
7
|
import { O as Owner } from './Business.js';
|
|
8
8
|
import { B as BusinessFormServerErrors, O as OwnerFormClickActions } from './business-form-types.js';
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$6 } from './form-control-number2.js';
|
|
9
|
+
import { d as defineCustomElement$6 } from './form-control-date2.js';
|
|
11
10
|
import { d as defineCustomElement$5 } from './form-control-number-masked2.js';
|
|
12
11
|
import { d as defineCustomElement$4 } from './form-control-select2.js';
|
|
13
12
|
import { d as defineCustomElement$3 } from './form-control-text2.js';
|
|
@@ -169,7 +168,7 @@ function defineCustomElement() {
|
|
|
169
168
|
if (typeof customElements === "undefined") {
|
|
170
169
|
return;
|
|
171
170
|
}
|
|
172
|
-
const components = ["justifi-business-owners-form-step", "form-control-date", "form-control-number
|
|
171
|
+
const components = ["justifi-business-owners-form-step", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form", "justifi-owner-form"];
|
|
173
172
|
components.forEach(tagName => { switch (tagName) {
|
|
174
173
|
case "justifi-business-owners-form-step":
|
|
175
174
|
if (!customElements.get(tagName)) {
|
|
@@ -177,11 +176,6 @@ function defineCustomElement() {
|
|
|
177
176
|
}
|
|
178
177
|
break;
|
|
179
178
|
case "form-control-date":
|
|
180
|
-
if (!customElements.get(tagName)) {
|
|
181
|
-
defineCustomElement$7();
|
|
182
|
-
}
|
|
183
|
-
break;
|
|
184
|
-
case "form-control-number":
|
|
185
179
|
if (!customElements.get(tagName)) {
|
|
186
180
|
defineCustomElement$6();
|
|
187
181
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { F as FormController } from './form.js';
|
|
3
|
-
import { P as PHONE_MASKS } from './form-input-masks.js';
|
|
3
|
+
import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks.js';
|
|
4
4
|
import { A as Api } from './Api.js';
|
|
5
|
-
import {
|
|
5
|
+
import { r as parseIdentityInfo } from './payload-parsers.js';
|
|
6
6
|
import { i as identitySchema } from './business-identity-schema.js';
|
|
7
7
|
import { c as config } from './config.js';
|
|
8
8
|
import { B as BusinessFormServerErrors } from './business-form-types.js';
|
|
9
9
|
import { R as Representative } from './Business.js';
|
|
10
10
|
import { d as deconstructDate } from './helpers.js';
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$5 } from './form-control-number2.js';
|
|
11
|
+
import { d as defineCustomElement$5 } from './form-control-date2.js';
|
|
13
12
|
import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
|
|
14
13
|
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
15
14
|
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
@@ -107,7 +106,7 @@ const BusinessRepresentativeFormStep = /*@__PURE__*/ proxyCustomElement(class Bu
|
|
|
107
106
|
}
|
|
108
107
|
render() {
|
|
109
108
|
const representativeDefaultValue = this.formController.getInitialValues();
|
|
110
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })))))));
|
|
109
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })))))));
|
|
111
110
|
}
|
|
112
111
|
static get style() { return businessRepresentativeFormStepCss; }
|
|
113
112
|
}, [0, "justifi-business-representative-form-step", {
|
|
@@ -123,7 +122,7 @@ function defineCustomElement() {
|
|
|
123
122
|
if (typeof customElements === "undefined") {
|
|
124
123
|
return;
|
|
125
124
|
}
|
|
126
|
-
const components = ["justifi-business-representative-form-step", "form-control-date", "form-control-number
|
|
125
|
+
const components = ["justifi-business-representative-form-step", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
|
|
127
126
|
components.forEach(tagName => { switch (tagName) {
|
|
128
127
|
case "justifi-business-representative-form-step":
|
|
129
128
|
if (!customElements.get(tagName)) {
|
|
@@ -131,11 +130,6 @@ function defineCustomElement() {
|
|
|
131
130
|
}
|
|
132
131
|
break;
|
|
133
132
|
case "form-control-date":
|
|
134
|
-
if (!customElements.get(tagName)) {
|
|
135
|
-
defineCustomElement$6();
|
|
136
|
-
}
|
|
137
|
-
break;
|
|
138
|
-
case "form-control-number":
|
|
139
133
|
if (!customElements.get(tagName)) {
|
|
140
134
|
defineCustomElement$5();
|
|
141
135
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { P as PHONE_MASKS } from './form-input-masks.js';
|
|
2
|
+
import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks.js';
|
|
3
3
|
import { d as deconstructDate } from './helpers.js';
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$5 } from './form-control-number2.js';
|
|
4
|
+
import { d as defineCustomElement$5 } from './form-control-date2.js';
|
|
6
5
|
import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
|
|
7
6
|
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
8
7
|
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
@@ -34,7 +33,7 @@ const BusinessRepresentative = /*@__PURE__*/ proxyCustomElement(class BusinessRe
|
|
|
34
33
|
}
|
|
35
34
|
render() {
|
|
36
35
|
const representativeDefaultValue = this.formController.getInitialValues().representative;
|
|
37
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
36
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
38
37
|
}
|
|
39
38
|
static get style() { return businessRepresentativeCss; }
|
|
40
39
|
}, [0, "justifi-business-representative", {
|
|
@@ -46,7 +45,7 @@ function defineCustomElement() {
|
|
|
46
45
|
if (typeof customElements === "undefined") {
|
|
47
46
|
return;
|
|
48
47
|
}
|
|
49
|
-
const components = ["justifi-business-representative", "form-control-date", "form-control-number
|
|
48
|
+
const components = ["justifi-business-representative", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
|
|
50
49
|
components.forEach(tagName => { switch (tagName) {
|
|
51
50
|
case "justifi-business-representative":
|
|
52
51
|
if (!customElements.get(tagName)) {
|
|
@@ -54,11 +53,6 @@ function defineCustomElement() {
|
|
|
54
53
|
}
|
|
55
54
|
break;
|
|
56
55
|
case "form-control-date":
|
|
57
|
-
if (!customElements.get(tagName)) {
|
|
58
|
-
defineCustomElement$6();
|
|
59
|
-
}
|
|
60
|
-
break;
|
|
61
|
-
case "form-control-number":
|
|
62
56
|
if (!customElements.get(tagName)) {
|
|
63
57
|
defineCustomElement$5();
|
|
64
58
|
}
|
|
@@ -12,10 +12,10 @@ const GenericInfoDetails = /*@__PURE__*/ proxyCustomElement(class GenericInfoDet
|
|
|
12
12
|
this.business = undefined;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
16
16
|
if (!this.business)
|
|
17
17
|
return null;
|
|
18
|
-
return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Type", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.business_type) }), h(DetailItem, { title: "
|
|
18
|
+
return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Type", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.business_type) }), h(DetailItem, { title: "Business Structure", value: snakeCaseToHumanReadable((_d = this.business) === null || _d === void 0 ? void 0 : _d.business_structure) }), h(DetailItem, { title: "Industry", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.tax_id }), h(DetailItem, { title: "Website URL", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.website_url }), h(DetailItem, { title: "Email Address", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.email }), h(DetailItem, { title: "Phone Number", value: (_j = this.business) === null || _j === void 0 ? void 0 : _j.phone }))))));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return genericInfoDetailsCss; }
|
|
21
21
|
}, [1, "generic-info-details", {
|