@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BusinessType } from "../../../api/Business";
|
|
1
|
+
import { BusinessStructure, BusinessType } from "../../../api/Business";
|
|
2
2
|
export var BusinessFormServerErrors;
|
|
3
3
|
(function (BusinessFormServerErrors) {
|
|
4
4
|
BusinessFormServerErrors["fetchData"] = "Error retrieving business data";
|
|
@@ -45,3 +45,61 @@ export const BusinessTypeOptions = [
|
|
|
45
45
|
value: BusinessType.government_entity,
|
|
46
46
|
},
|
|
47
47
|
];
|
|
48
|
+
export const BusinessStructureOptions = [
|
|
49
|
+
{
|
|
50
|
+
label: 'Choose business structure',
|
|
51
|
+
value: '',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: 'Sole Proprietorship',
|
|
55
|
+
value: BusinessStructure.sole_proprietorship,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: 'LLC (Single)',
|
|
59
|
+
value: BusinessStructure.single_llc,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: 'LLC (Multiple)',
|
|
63
|
+
value: BusinessStructure.multi_llc,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: 'Private Partnership',
|
|
67
|
+
value: BusinessStructure.private_partnership,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: 'Private Corporation',
|
|
71
|
+
value: BusinessStructure.private_corporation,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: 'Unincorporated Association',
|
|
75
|
+
value: BusinessStructure.unincorporated_association,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: 'Public Partnership',
|
|
79
|
+
value: BusinessStructure.public_partnership,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: 'Public Corporation',
|
|
83
|
+
value: BusinessStructure.public_corporation,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: 'Incorporated',
|
|
87
|
+
value: BusinessStructure.incorporated,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
label: 'Unincorporated',
|
|
91
|
+
value: BusinessStructure.unincorporated,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: 'Government Unit',
|
|
95
|
+
value: BusinessStructure.government_unit,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: 'Government Instrumentality',
|
|
99
|
+
value: BusinessStructure.government_instrumentality,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: 'Tax Exempt Government Instrumentality',
|
|
103
|
+
value: BusinessStructure.tax_exempt_government_instrumentality,
|
|
104
|
+
},
|
|
105
|
+
];
|
|
@@ -72,11 +72,11 @@ export class PaymentMethodForm {
|
|
|
72
72
|
render() {
|
|
73
73
|
return (h(Host, null, h("iframe", { id: `justifi-payment-method-form-${this.paymentMethodFormType}`, src: this.getIframeSrc(), ref: el => {
|
|
74
74
|
this.iframeElement = el;
|
|
75
|
+
this.initializeFrameCommunicationService();
|
|
75
76
|
}, onLoad: () => {
|
|
76
77
|
iFrameResize({
|
|
77
78
|
scrollbars: false,
|
|
78
79
|
}, this.iframeElement);
|
|
79
|
-
this.initializeFrameCommunicationService();
|
|
80
80
|
this.sendStyleOverrides();
|
|
81
81
|
} })));
|
|
82
82
|
}
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-05-
|
|
2
|
+
"timestamp": "2024-05-14T19:14:35",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.10.0",
|
|
@@ -922,24 +922,12 @@
|
|
|
922
922
|
}
|
|
923
923
|
],
|
|
924
924
|
"dependents": [
|
|
925
|
-
"justifi-business-owners"
|
|
926
|
-
"justifi-business-representative",
|
|
927
|
-
"justifi-business-representative-form-step",
|
|
928
|
-
"justifi-owner-form"
|
|
925
|
+
"justifi-business-owners"
|
|
929
926
|
],
|
|
930
927
|
"dependencies": [],
|
|
931
928
|
"dependencyGraph": {
|
|
932
929
|
"justifi-business-owners": [
|
|
933
930
|
"form-control-number"
|
|
934
|
-
],
|
|
935
|
-
"justifi-business-representative": [
|
|
936
|
-
"form-control-number"
|
|
937
|
-
],
|
|
938
|
-
"justifi-business-representative-form-step": [
|
|
939
|
-
"form-control-number"
|
|
940
|
-
],
|
|
941
|
-
"justifi-owner-form": [
|
|
942
|
-
"form-control-number"
|
|
943
931
|
]
|
|
944
932
|
}
|
|
945
933
|
},
|
|
@@ -3121,7 +3109,6 @@
|
|
|
3121
3109
|
"form-control-text",
|
|
3122
3110
|
"form-control-number-masked",
|
|
3123
3111
|
"form-control-date",
|
|
3124
|
-
"form-control-number",
|
|
3125
3112
|
"justifi-identity-address-form"
|
|
3126
3113
|
],
|
|
3127
3114
|
"justifi-identity-address-form": [
|
|
@@ -3569,7 +3556,6 @@
|
|
|
3569
3556
|
"form-control-text",
|
|
3570
3557
|
"form-control-number-masked",
|
|
3571
3558
|
"form-control-date",
|
|
3572
|
-
"form-control-number",
|
|
3573
3559
|
"justifi-identity-address-form"
|
|
3574
3560
|
],
|
|
3575
3561
|
"justifi-identity-address-form": [
|
|
@@ -3630,7 +3616,6 @@
|
|
|
3630
3616
|
"form-control-text",
|
|
3631
3617
|
"form-control-number-masked",
|
|
3632
3618
|
"form-control-date",
|
|
3633
|
-
"form-control-number",
|
|
3634
3619
|
"justifi-identity-address-form"
|
|
3635
3620
|
],
|
|
3636
3621
|
"dependencyGraph": {
|
|
@@ -3638,7 +3623,6 @@
|
|
|
3638
3623
|
"form-control-text",
|
|
3639
3624
|
"form-control-number-masked",
|
|
3640
3625
|
"form-control-date",
|
|
3641
|
-
"form-control-number",
|
|
3642
3626
|
"justifi-identity-address-form"
|
|
3643
3627
|
],
|
|
3644
3628
|
"justifi-identity-address-form": [
|
|
@@ -3826,7 +3810,6 @@
|
|
|
3826
3810
|
"form-control-text",
|
|
3827
3811
|
"form-control-number-masked",
|
|
3828
3812
|
"form-control-date",
|
|
3829
|
-
"form-control-number",
|
|
3830
3813
|
"justifi-identity-address-form"
|
|
3831
3814
|
],
|
|
3832
3815
|
"dependencyGraph": {
|
|
@@ -3834,7 +3817,6 @@
|
|
|
3834
3817
|
"form-control-text",
|
|
3835
3818
|
"form-control-number-masked",
|
|
3836
3819
|
"form-control-date",
|
|
3837
|
-
"form-control-number",
|
|
3838
3820
|
"justifi-identity-address-form"
|
|
3839
3821
|
],
|
|
3840
3822
|
"justifi-identity-address-form": [
|
|
@@ -5455,7 +5437,6 @@
|
|
|
5455
5437
|
"form-control-text",
|
|
5456
5438
|
"form-control-number-masked",
|
|
5457
5439
|
"form-control-date",
|
|
5458
|
-
"form-control-number",
|
|
5459
5440
|
"justifi-identity-address-form"
|
|
5460
5441
|
],
|
|
5461
5442
|
"dependencyGraph": {
|
|
@@ -5463,7 +5444,6 @@
|
|
|
5463
5444
|
"form-control-text",
|
|
5464
5445
|
"form-control-number-masked",
|
|
5465
5446
|
"form-control-date",
|
|
5466
|
-
"form-control-number",
|
|
5467
5447
|
"justifi-identity-address-form"
|
|
5468
5448
|
],
|
|
5469
5449
|
"justifi-identity-address-form": [
|
|
@@ -6929,7 +6909,6 @@
|
|
|
6929
6909
|
"form-control-text",
|
|
6930
6910
|
"form-control-number-masked",
|
|
6931
6911
|
"form-control-date",
|
|
6932
|
-
"form-control-number",
|
|
6933
6912
|
"justifi-identity-address-form"
|
|
6934
6913
|
],
|
|
6935
6914
|
"justifi-identity-address-form": [
|
|
@@ -6943,7 +6922,6 @@
|
|
|
6943
6922
|
"form-control-text",
|
|
6944
6923
|
"form-control-number-masked",
|
|
6945
6924
|
"form-control-date",
|
|
6946
|
-
"form-control-number",
|
|
6947
6925
|
"justifi-identity-address-form"
|
|
6948
6926
|
]
|
|
6949
6927
|
}
|
|
@@ -9816,7 +9794,7 @@
|
|
|
9816
9794
|
"path": "src/api/Business.ts"
|
|
9817
9795
|
},
|
|
9818
9796
|
"src/api/Business.ts::IBusiness": {
|
|
9819
|
-
"declaration": "export interface IBusiness {\n additional_questions: IAdditionalQuestions | {};\n business_type: BusinessType;\n bank_accounts: BankAccount[];\n created_at: string;\n documents: Document[];\n doing_business_as: string;\n email: string;\n id: string;\n industry: string;\n legal_address: IAddress | {};\n legal_name: string;\n metadata: any;\n owners: Identity[];\n phone: string;\n platform_account_id: string;\n product_categories: ProductCategories;\n representative: Identity | {};\n tax_id: string;\n updated_at: string;\n website_url: string;\n}",
|
|
9797
|
+
"declaration": "export interface IBusiness {\n additional_questions: IAdditionalQuestions | {};\n business_type: BusinessType;\n business_structure: BusinessStructure;\n bank_accounts: BankAccount[];\n created_at: string;\n documents: Document[];\n doing_business_as: string;\n email: string;\n id: string;\n industry: string;\n legal_address: IAddress | {};\n legal_name: string;\n metadata: any;\n owners: Identity[];\n phone: string;\n platform_account_id: string;\n product_categories: ProductCategories;\n representative: Identity | {};\n tax_id: string;\n updated_at: string;\n website_url: string;\n}",
|
|
9820
9798
|
"docstring": "",
|
|
9821
9799
|
"path": "src/api/Business.ts"
|
|
9822
9800
|
},
|
|
@@ -9826,7 +9804,7 @@
|
|
|
9826
9804
|
"path": "src/api/Business.ts"
|
|
9827
9805
|
},
|
|
9828
9806
|
"src/api/Identity.ts::Identity": {
|
|
9829
|
-
"declaration": "export interface Identity {\n address?: IAddress;\n created_at?: string;\n dob_day?: string;\n dob_month?: string;\n dob_year?: string;\n documents?: Document[];\n email?: string;\n id?: string;\n business_id?: string;\n is_owner?: boolean;\n metadata?: any;\n name?: string;\n phone?: string;\n platform_account_id?: string;\n ssn_last4?: string;\n title?: string;\n updated_at?: string;\n}",
|
|
9807
|
+
"declaration": "export interface Identity {\n address?: IAddress;\n created_at?: string;\n dob_day?: string;\n dob_month?: string;\n dob_year?: string;\n documents?: Document[];\n email?: string;\n id?: string;\n business_id?: string;\n is_owner?: boolean;\n metadata?: any;\n name?: string;\n phone?: string;\n platform_account_id?: string;\n identification_number?: string;\n ssn_last4?: string;\n title?: string;\n updated_at?: string;\n}",
|
|
9830
9808
|
"docstring": "",
|
|
9831
9809
|
"path": "src/api/Identity.ts"
|
|
9832
9810
|
},
|
|
@@ -39,6 +39,7 @@ class Owner {
|
|
|
39
39
|
this.name = owner.name;
|
|
40
40
|
this.phone = owner.phone;
|
|
41
41
|
this.platform_account_id = owner.platform_account_id;
|
|
42
|
+
this.identification_number = owner.identification_number;
|
|
42
43
|
this.ssn_last4 = owner.ssn_last4;
|
|
43
44
|
this.title = owner.title;
|
|
44
45
|
this.updated_at = owner.updated_at;
|
|
@@ -61,6 +62,7 @@ class Representative {
|
|
|
61
62
|
this.name = representative.name;
|
|
62
63
|
this.phone = representative.phone;
|
|
63
64
|
this.platform_account_id = representative.platform_account_id;
|
|
65
|
+
this.identification_number = representative.identification_number;
|
|
64
66
|
this.ssn_last4 = representative.ssn_last4;
|
|
65
67
|
this.title = representative.title;
|
|
66
68
|
this.updated_at = representative.updated_at;
|
|
@@ -74,6 +76,22 @@ var BusinessType;
|
|
|
74
76
|
BusinessType["non_profit"] = "non_profit";
|
|
75
77
|
BusinessType["government_entity"] = "government_entity";
|
|
76
78
|
})(BusinessType || (BusinessType = {}));
|
|
79
|
+
var BusinessStructure;
|
|
80
|
+
(function (BusinessStructure) {
|
|
81
|
+
BusinessStructure["sole_proprietorship"] = "sole_proprietorship";
|
|
82
|
+
BusinessStructure["single_llc"] = "single_llc";
|
|
83
|
+
BusinessStructure["multi_llc"] = "multi_llc";
|
|
84
|
+
BusinessStructure["private_partnership"] = "private_partnership";
|
|
85
|
+
BusinessStructure["private_corporation"] = "private_corporation";
|
|
86
|
+
BusinessStructure["unincorporated_association"] = "unincorporated_association";
|
|
87
|
+
BusinessStructure["public_partnership"] = "public_partnership";
|
|
88
|
+
BusinessStructure["public_corporation"] = "public_corporation";
|
|
89
|
+
BusinessStructure["incorporated"] = "incorporated";
|
|
90
|
+
BusinessStructure["unincorporated"] = "unincorporated";
|
|
91
|
+
BusinessStructure["government_unit"] = "government_unit";
|
|
92
|
+
BusinessStructure["government_instrumentality"] = "government_instrumentality";
|
|
93
|
+
BusinessStructure["tax_exempt_government_instrumentality"] = "tax_exempt_government_instrumentality";
|
|
94
|
+
})(BusinessStructure || (BusinessStructure = {}));
|
|
77
95
|
class Address {
|
|
78
96
|
constructor(address) {
|
|
79
97
|
this.id = address.id;
|
|
@@ -99,6 +117,7 @@ class AdditionalQuestions {
|
|
|
99
117
|
class CoreBusinessInfo {
|
|
100
118
|
constructor(coreBusinessInfo) {
|
|
101
119
|
this.business_type = coreBusinessInfo.business_type;
|
|
120
|
+
this.business_structure = coreBusinessInfo.business_structure;
|
|
102
121
|
this.legal_name = coreBusinessInfo.legal_name;
|
|
103
122
|
this.doing_business_as = coreBusinessInfo.doing_business_as;
|
|
104
123
|
this.industry = coreBusinessInfo.industry;
|
|
@@ -113,6 +132,7 @@ class Business {
|
|
|
113
132
|
this.additional_questions = business.additional_questions || {};
|
|
114
133
|
this.bank_accounts = business.bank_accounts;
|
|
115
134
|
this.business_type = business.business_type;
|
|
135
|
+
this.business_structure = business.business_structure;
|
|
116
136
|
this.created_at = business.created_at;
|
|
117
137
|
this.documents = business.documents;
|
|
118
138
|
this.doing_business_as = business.doing_business_as;
|
|
@@ -133,4 +153,4 @@ class Business {
|
|
|
133
153
|
}
|
|
134
154
|
}
|
|
135
155
|
|
|
136
|
-
export { AdditionalQuestions as A, Business as B, CoreBusinessInfo as C, Owner as O, Representative as R, BusinessType as a,
|
|
156
|
+
export { AdditionalQuestions as A, Business as B, CoreBusinessInfo as C, Owner as O, Representative as R, BusinessType as a, BusinessStructure as b, Address as c, deconstructDate as d };
|
|
@@ -26,10 +26,10 @@ const GenericInfoDetails = class {
|
|
|
26
26
|
this.business = undefined;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
29
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
30
30
|
if (!this.business)
|
|
31
31
|
return null;
|
|
32
|
-
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: "
|
|
32
|
+
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 }))))));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
GenericInfoDetails.style = genericInfoDetailsCss;
|
|
@@ -1,55 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as
|
|
3
|
-
import { b as businessNameRegex, t as transformEmptyString, u as urlRegex, c as phoneRegex, s as stringLettersOnlyRegex, d as taxIdRegex } from './payload-parsers-192e0c3e.js';
|
|
1
|
+
import { c as create$3, a as create$6 } from './index.esm-22b47398.js';
|
|
2
|
+
import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, c as phoneValidation, d as doingBusinessAsValidation, f as businessTypeValidation, g as businessStructureValidation, h as industryValidation, t as taxIdValidation } from './payload-parsers-0c4fc2b1.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,4 +1,4 @@
|
|
|
1
|
-
import { a as BusinessType } from './Business-
|
|
1
|
+
import { a as BusinessType, b as BusinessStructure } from './Business-0e8a9a3a.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, BusinessFormClickActions as a, BusinessTypeOptions as b,
|
|
108
|
+
export { BusinessFormServerErrors as B, OwnerFormClickActions as O, BusinessFormClickActions as a, BusinessTypeOptions as b, BusinessStructureOptions as c, OwnerFormServerErrors as d };
|