@justifi/webcomponents 4.19.1 → 4.19.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/{Analytics-f870b3ee.js → Analytics-c866f471.js} +3 -3
- package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
- package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-11ce0005.js → business-additional-questions-schema-26b0eecb.js} +1 -1
- package/dist/cjs/{business-form-options-26f9900c.js → business-form-options-5db0bd5e.js} +1 -1
- package/dist/cjs/{payload-parsers-969ab9b6.js → business-identity-schema-503ecb77.js} +1 -47
- package/dist/cjs/{business.service-f63650f5.js → business.service-65b0dbc8.js} +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
- package/dist/cjs/{get-payout-csv-f3aee6d0.js → get-payout-csv-b98b0651.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +11 -11
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +12 -12
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +1 -1
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/{package-1321b070.js → package-0c613220.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-0a64f9cd.js → payment.service-33d6ac16.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/{schema-validations-f3db892c.js → schema-validations-0a7e46a3.js} +1 -1
- package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
- package/dist/collection/api/Api.js +3 -3
- package/dist/collection/api/Business.js +66 -7
- package/dist/collection/api/Identity.js +39 -3
- package/dist/collection/api/services/analytics.service.js +1 -1
- package/dist/collection/api/services/checkout.service.js +1 -1
- package/dist/collection/api/services/insurance.service.js +2 -2
- package/dist/collection/api/services/provision.service.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form.js +3 -4
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/docs.json +2 -2
- package/dist/esm/{Analytics-262cdde5.js → Analytics-3e74964a.js} +3 -3
- package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
- package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-e39bc781.js → business-additional-questions-schema-a5583cf8.js} +1 -1
- package/dist/esm/{business-form-options-0b08e08c.js → business-form-options-d790973e.js} +1 -1
- package/dist/esm/{payload-parsers-62f443e1.js → business-identity-schema-9e3269fb.js} +2 -44
- package/dist/esm/{business.service-74bd1212.js → business.service-6f139c2b.js} +1 -1
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox_9.entry.js +21 -21
- package/dist/esm/{get-payout-csv-b494abfe.js → get-payout-csv-383d96c1.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +11 -11
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form.entry.js +11 -11
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +4 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +1 -1
- package/dist/esm/justifi-owner-form_3.entry.js +10 -10
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-form.entry.js +4 -4
- package/dist/esm/justifi-payment-method-form.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +4 -4
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +4 -4
- package/dist/esm/justifi-refund-form.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/{package-d88677e9.js → package-925a0fdd.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-3ca4a492.js → payment.service-e4fb5953.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payout-details-core.entry.js +1 -1
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/{schema-validations-2f4fdebb.js → schema-validations-e725d701.js} +2 -2
- package/dist/esm/{utils-3c1dd2fa.js → utils-e66d8bca.js} +1 -16
- package/dist/module/Analytics.js +1 -1
- package/dist/module/Api.js +3 -3
- package/dist/module/Business.js +104 -9
- package/dist/module/business-additional-questions-form-step-core.js +3 -3
- package/dist/module/business-bank-account-form-step.js +2 -2
- package/dist/module/business-core-info-form-step-core.js +3 -5
- package/dist/module/business-document-upload-form-step.js +2 -2
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-owners-form-step-core.js +3 -3
- package/dist/module/business-representative-form-step-core.js +3 -4
- package/dist/module/business-terms-conditions-form-step.js +2 -2
- package/dist/module/justifi-business-form.js +3 -4
- package/dist/module/justifi-checkout.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -2
- package/dist/module/legal-address-form-step-core.js +3 -4
- package/dist/module/owner-form-core2.js +4 -5
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/utils2.js +1 -16
- package/dist/types/api/Business.d.ts +87 -1
- package/dist/types/api/Identity.d.ts +45 -1
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
- package/dist/webcomponents/{p-d765d638.js → p-0052db77.js} +1 -1
- package/dist/webcomponents/{p-60a370fc.entry.js → p-039183f1.entry.js} +1 -1
- package/dist/webcomponents/{p-b16dfd5d.entry.js → p-08a39a65.entry.js} +1 -1
- package/dist/webcomponents/{p-462dc522.entry.js → p-124c1ecd.entry.js} +1 -1
- package/dist/webcomponents/{p-d1c8d794.entry.js → p-1647f06b.entry.js} +1 -1
- package/dist/webcomponents/{p-d25c2f12.js → p-1815a43b.js} +1 -1
- package/dist/webcomponents/p-1cb2a51c.entry.js +1 -0
- package/dist/webcomponents/{p-1a43e355.entry.js → p-1eee25f3.entry.js} +1 -1
- package/dist/webcomponents/{p-3affadfc.entry.js → p-20cee11b.entry.js} +1 -1
- package/dist/webcomponents/{p-04a0dbb6.js → p-277aee05.js} +1 -1
- package/dist/webcomponents/{p-65b561da.entry.js → p-2a5cc4ee.entry.js} +1 -1
- package/dist/webcomponents/p-3b1340dc.js +1 -0
- package/dist/webcomponents/{p-890b3254.entry.js → p-43eff822.entry.js} +1 -1
- package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
- package/dist/webcomponents/{p-241b0ed9.js → p-5022f21c.js} +1 -1
- package/dist/webcomponents/p-55182a59.js +1 -0
- package/dist/webcomponents/{p-83125497.js → p-5e2c9ec8.js} +1 -1
- package/dist/webcomponents/p-5e7c60d8.js +1 -0
- package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
- package/dist/webcomponents/{p-198994c0.entry.js → p-6c2fc744.entry.js} +1 -1
- package/dist/webcomponents/{p-62b32c4c.entry.js → p-721dcf51.entry.js} +1 -1
- package/dist/webcomponents/p-77e55bfc.entry.js +1 -0
- package/dist/webcomponents/{p-29c0b182.js → p-7d3be485.js} +1 -1
- package/dist/webcomponents/{p-52021fa1.entry.js → p-817da23c.entry.js} +1 -1
- package/dist/webcomponents/p-82cff30c.js +1 -0
- package/dist/webcomponents/{p-8603348a.js → p-8eb10f02.js} +1 -1
- package/dist/webcomponents/{p-061dcb79.entry.js → p-8f9fb5c3.entry.js} +1 -1
- package/dist/webcomponents/p-9649b022.entry.js +1 -0
- package/dist/webcomponents/{p-9dc36f76.entry.js → p-9c076da2.entry.js} +1 -1
- package/dist/webcomponents/p-af0aeba4.entry.js +1 -0
- package/dist/webcomponents/p-b1408dea.entry.js +1 -0
- package/dist/webcomponents/{p-72c9e6b3.entry.js → p-ba95679b.entry.js} +1 -1
- package/dist/webcomponents/{p-1f70fa27.entry.js → p-bd2bb302.entry.js} +1 -1
- package/dist/webcomponents/{p-bc92235c.entry.js → p-d2af90c2.entry.js} +1 -1
- package/dist/webcomponents/{p-4abc17f0.entry.js → p-d76002d5.entry.js} +1 -1
- package/dist/webcomponents/{p-9ccfa1c9.entry.js → p-da1d174d.entry.js} +1 -1
- package/dist/webcomponents/{p-53e64f15.entry.js → p-e2b2213f.entry.js} +1 -1
- package/dist/webcomponents/{p-fe33151d.entry.js → p-eccf2e8e.entry.js} +1 -1
- package/dist/webcomponents/p-edab484a.entry.js +1 -0
- package/dist/webcomponents/{p-75b4daef.js → p-f5b5e47b.js} +1 -1
- package/dist/webcomponents/{p-4bac636e.entry.js → p-f844d67b.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
- package/dist/module/payload-parsers.js +0 -43
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
- package/dist/webcomponents/p-2799383d.entry.js +0 -1
- package/dist/webcomponents/p-3d4d566d.entry.js +0 -1
- package/dist/webcomponents/p-3dd4c6c3.entry.js +0 -1
- package/dist/webcomponents/p-46f679a9.js +0 -1
- package/dist/webcomponents/p-48ae16e0.entry.js +0 -1
- package/dist/webcomponents/p-53948ff8.entry.js +0 -1
- package/dist/webcomponents/p-554a3c18.js +0 -1
- package/dist/webcomponents/p-92bb1e5f.entry.js +0 -1
- package/dist/webcomponents/p-ad41c8c7.entry.js +0 -1
- package/dist/webcomponents/p-af244664.js +0 -1
- package/dist/webcomponents/p-d101c5db.js +0 -1
- package/dist/webcomponents/p-d2a5054f.entry.js +0 -1
|
@@ -28,7 +28,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
28
28
|
this.sendData = async (onSuccess) => {
|
|
29
29
|
this.formLoading.emit(true);
|
|
30
30
|
try {
|
|
31
|
-
const payload =
|
|
31
|
+
const payload = this.termsPayload;
|
|
32
32
|
const response = await this.api.post(this.termsConditionsEndpoint, payload);
|
|
33
33
|
this.handleResponse(response, onSuccess);
|
|
34
34
|
}
|
|
@@ -107,7 +107,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (h("form", { key: '
|
|
110
|
+
return (h("form", { key: 'a292e2b1b69d152009000d9e7009e5ab07698bc8' }, h("fieldset", { key: '30843e9ed0029f64abcf076512af82974dd99598' }, h("legend", { key: '6453679a074056668bdd93cb91d2d725b73fb0da' }, "Terms and Conditions"), h("hr", { key: '6a44c1128e3dceb770b16533aa61fb5e81f5dda2' }), h("justifi-business-terms-conditions-text", { key: '714c9f81c1d1f91712a276259acf4eb6734b40d4' }), h("br", { key: '5e955908e53af5ade77fca9f2a47e8a9d10e7ad8' }), h("div", { key: '7c6ca9d2634c7cc6988292ffedf86b64c3865557', class: "row-gy-3" }, h("div", { key: 'e8f01c4bdcc07e0063e3b8f5f1acbabc9b3310f7', class: "col-12" }, h("form-control-checkbox", { key: 'e09eeb02dc30a9461e958bf43685d2c58f4a608f', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "justifi-business-terms-conditions-form-step"; }
|
|
113
113
|
static get properties() {
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-10-03T19:21:08",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.19.2",
|
|
@@ -13945,7 +13945,7 @@
|
|
|
13945
13945
|
"path": "src/api/ComponentError.ts"
|
|
13946
13946
|
},
|
|
13947
13947
|
"src/api/Business.ts::IAdditionalQuestions": {
|
|
13948
|
-
"declaration": "export interface IAdditionalQuestions {\n business_revenue?: string;\n business_payment_volume?: string;\n business_when_service_received?: string;\n business_recurring_payments?: string;\n business_recurring_payments_percentage?: string;\n business_seasonal?: string;\n business_other_payment_details?: string;\n}",
|
|
13948
|
+
"declaration": "export interface IAdditionalQuestions {\n business_revenue?: string;\n business_payment_volume?: string;\n business_when_service_received?: string;\n business_recurring_payments?: string;\n business_recurring_payments_percentage?: string;\n business_seasonal?: string;\n business_other_payment_details?: string;\n payload?: any;\n}",
|
|
13949
13949
|
"docstring": "",
|
|
13950
13950
|
"path": "src/api/Business.ts"
|
|
13951
13951
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
1
|
+
import { p as packageJson } from './package-925a0fdd.js';
|
|
2
2
|
import { c as config } from './config-476c7241.js';
|
|
3
|
-
import { A as Api } from './Api-
|
|
3
|
+
import { A as Api } from './Api-c8abc2e0.js';
|
|
4
4
|
|
|
5
5
|
class AnalyticsService {
|
|
6
6
|
async record(body) {
|
|
7
7
|
const endpoint = 'analytics';
|
|
8
|
-
return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint,
|
|
8
|
+
return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint, body);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -94,13 +94,13 @@ const Api = ({ authToken, apiOrigin }) => {
|
|
|
94
94
|
return makeRequest(endpoint, 'GET', params, null, signal);
|
|
95
95
|
}
|
|
96
96
|
async function post(endpoint, body, params, signal) {
|
|
97
|
-
return makeRequest(endpoint, 'POST', params, body, signal);
|
|
97
|
+
return makeRequest(endpoint, 'POST', params, JSON.stringify(body), signal);
|
|
98
98
|
}
|
|
99
99
|
async function put(endpoint, body, params, signal) {
|
|
100
|
-
return makeRequest(endpoint, 'PUT', params, body, signal);
|
|
100
|
+
return makeRequest(endpoint, 'PUT', params, JSON.stringify(body), signal);
|
|
101
101
|
}
|
|
102
102
|
async function patch(endpoint, body, params, signal) {
|
|
103
|
-
return makeRequest(endpoint, 'PATCH', params, body, signal);
|
|
103
|
+
return makeRequest(endpoint, 'PATCH', params, JSON.stringify(body), signal);
|
|
104
104
|
}
|
|
105
105
|
async function destroy(endpoint, params, signal) {
|
|
106
106
|
return makeRequest(endpoint, 'DELETE', params, null, signal);
|
|
@@ -7,7 +7,8 @@ class Owner {
|
|
|
7
7
|
this.dob_day = filterNumber(owner.dob_day);
|
|
8
8
|
this.dob_month = filterNumber(owner.dob_month);
|
|
9
9
|
this.dob_year = owner.dob_year;
|
|
10
|
-
this.dob_full =
|
|
10
|
+
this.dob_full =
|
|
11
|
+
constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
|
|
11
12
|
this.documents = owner.documents;
|
|
12
13
|
this.email = owner.email;
|
|
13
14
|
this.id = owner.id;
|
|
@@ -22,6 +23,23 @@ class Owner {
|
|
|
22
23
|
this.title = owner.title;
|
|
23
24
|
this.updated_at = owner.updated_at;
|
|
24
25
|
}
|
|
26
|
+
// Getter method to return the payload in the desired shape
|
|
27
|
+
get payload() {
|
|
28
|
+
return {
|
|
29
|
+
address: new Address(this.address || {}).payload,
|
|
30
|
+
dob_day: this.dob_day || '',
|
|
31
|
+
dob_month: this.dob_month || '',
|
|
32
|
+
dob_year: this.dob_year || '',
|
|
33
|
+
email: this.email || '',
|
|
34
|
+
identification_number: this.identification_number || undefined,
|
|
35
|
+
is_owner: this.is_owner || false,
|
|
36
|
+
metadata: this.metadata || null,
|
|
37
|
+
name: this.name || '',
|
|
38
|
+
phone: this.phone || '',
|
|
39
|
+
platform_account_id: this.platform_account_id || null,
|
|
40
|
+
title: this.title || '',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
25
43
|
}
|
|
26
44
|
class Representative {
|
|
27
45
|
constructor(representative) {
|
|
@@ -30,7 +48,8 @@ class Representative {
|
|
|
30
48
|
this.dob_day = filterNumber(representative.dob_day);
|
|
31
49
|
this.dob_month = filterNumber(representative.dob_month);
|
|
32
50
|
this.dob_year = representative.dob_year;
|
|
33
|
-
this.dob_full =
|
|
51
|
+
this.dob_full =
|
|
52
|
+
constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
|
|
34
53
|
this.documents = representative.documents;
|
|
35
54
|
this.email = representative.email;
|
|
36
55
|
this.id = representative.id;
|
|
@@ -45,6 +64,23 @@ class Representative {
|
|
|
45
64
|
this.title = representative.title;
|
|
46
65
|
this.updated_at = representative.updated_at;
|
|
47
66
|
}
|
|
67
|
+
// Getter method to return the payload in the desired shape
|
|
68
|
+
get payload() {
|
|
69
|
+
return {
|
|
70
|
+
address: new Address(this.address || {}).payload,
|
|
71
|
+
dob_day: this.dob_day || '',
|
|
72
|
+
dob_month: this.dob_month || '',
|
|
73
|
+
dob_year: this.dob_year || '',
|
|
74
|
+
email: this.email || '',
|
|
75
|
+
is_owner: this.is_owner || false,
|
|
76
|
+
identification_number: this.identification_number || undefined,
|
|
77
|
+
metadata: this.metadata || null,
|
|
78
|
+
name: this.name || '',
|
|
79
|
+
phone: this.phone || '',
|
|
80
|
+
platform_account_id: this.platform_account_id || null,
|
|
81
|
+
title: this.title || '',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
48
84
|
}
|
|
49
85
|
|
|
50
86
|
var BusinessClassification;
|
|
@@ -70,16 +106,42 @@ class Address {
|
|
|
70
106
|
this.created_at = address.created_at;
|
|
71
107
|
this.updated_at = address.updated_at;
|
|
72
108
|
}
|
|
109
|
+
get payload() {
|
|
110
|
+
return {
|
|
111
|
+
platform_account_id: this.platform_account_id || '',
|
|
112
|
+
line1: this.line1 || '',
|
|
113
|
+
line2: this.line2 || '',
|
|
114
|
+
postal_code: this.postal_code || '',
|
|
115
|
+
city: this.city || '',
|
|
116
|
+
state: this.state || '',
|
|
117
|
+
country: this.country || '',
|
|
118
|
+
};
|
|
119
|
+
}
|
|
73
120
|
}
|
|
74
121
|
class AdditionalQuestions {
|
|
75
122
|
constructor(additionalQuestions) {
|
|
76
123
|
this.business_revenue = additionalQuestions.business_revenue;
|
|
77
124
|
this.business_payment_volume = additionalQuestions.business_payment_volume;
|
|
78
|
-
this.business_when_service_received =
|
|
79
|
-
|
|
80
|
-
this.
|
|
125
|
+
this.business_when_service_received =
|
|
126
|
+
additionalQuestions.business_when_service_received;
|
|
127
|
+
this.business_recurring_payments =
|
|
128
|
+
additionalQuestions.business_recurring_payments;
|
|
129
|
+
this.business_recurring_payments_percentage =
|
|
130
|
+
additionalQuestions.business_recurring_payments_percentage;
|
|
81
131
|
this.business_seasonal = additionalQuestions.business_seasonal;
|
|
82
|
-
this.business_other_payment_details =
|
|
132
|
+
this.business_other_payment_details =
|
|
133
|
+
additionalQuestions.business_other_payment_details;
|
|
134
|
+
}
|
|
135
|
+
get payload() {
|
|
136
|
+
return {
|
|
137
|
+
business_revenue: this.business_revenue || '',
|
|
138
|
+
business_payment_volume: this.business_payment_volume || '',
|
|
139
|
+
business_when_service_received: this.business_when_service_received || '',
|
|
140
|
+
business_recurring_payments: this.business_recurring_payments || '',
|
|
141
|
+
business_recurring_payments_percentage: this.business_recurring_payments_percentage || '',
|
|
142
|
+
business_seasonal: this.business_seasonal || '',
|
|
143
|
+
business_other_payment_details: this.business_other_payment_details || '',
|
|
144
|
+
};
|
|
83
145
|
}
|
|
84
146
|
}
|
|
85
147
|
class CoreBusinessInfo {
|
|
@@ -94,10 +156,23 @@ class CoreBusinessInfo {
|
|
|
94
156
|
this.phone = coreBusinessInfo.phone;
|
|
95
157
|
this.date_of_incorporation = coreBusinessInfo.date_of_incorporation;
|
|
96
158
|
}
|
|
159
|
+
get payload() {
|
|
160
|
+
return {
|
|
161
|
+
classification: this.classification || '',
|
|
162
|
+
legal_name: this.legal_name || '',
|
|
163
|
+
doing_business_as: this.doing_business_as || '',
|
|
164
|
+
industry: this.industry || '',
|
|
165
|
+
tax_id: this.tax_id || '',
|
|
166
|
+
website_url: this.website_url || '',
|
|
167
|
+
email: this.email || '',
|
|
168
|
+
phone: this.phone || '',
|
|
169
|
+
date_of_incorporation: this.date_of_incorporation || '',
|
|
170
|
+
};
|
|
171
|
+
}
|
|
97
172
|
}
|
|
98
173
|
class Business {
|
|
99
174
|
constructor(business) {
|
|
100
|
-
this.additional_questions =
|
|
175
|
+
this.additional_questions = new AdditionalQuestions(business.additional_questions || {});
|
|
101
176
|
this.associated_accounts = business.associated_accounts;
|
|
102
177
|
this.classification = business.classification;
|
|
103
178
|
this.bank_accounts = business.bank_accounts;
|
|
@@ -107,20 +182,40 @@ class Business {
|
|
|
107
182
|
this.email = business.email;
|
|
108
183
|
this.id = business.id;
|
|
109
184
|
this.industry = business.industry;
|
|
110
|
-
this.legal_address =
|
|
185
|
+
this.legal_address = new Address(business.legal_address || {});
|
|
111
186
|
this.legal_name = business.legal_name;
|
|
112
187
|
this.metadata = business.metadata;
|
|
113
188
|
this.owners = business.owners;
|
|
114
189
|
this.phone = business.phone;
|
|
115
190
|
this.platform_account_id = business.platform_account_id;
|
|
116
191
|
this.product_categories = business.product_categories;
|
|
117
|
-
this.representative =
|
|
192
|
+
this.representative = new Representative(business.representative || {});
|
|
118
193
|
this.tax_id = business.tax_id;
|
|
119
194
|
this.terms_conditions_accepted = business.terms_conditions_accepted;
|
|
120
195
|
this.updated_at = business.updated_at;
|
|
121
196
|
this.website_url = business.website_url;
|
|
122
197
|
this.date_of_incorporation = business.date_of_incorporation;
|
|
123
198
|
}
|
|
199
|
+
get payload() {
|
|
200
|
+
return {
|
|
201
|
+
additional_questions: new AdditionalQuestions(this.additional_questions)
|
|
202
|
+
.payload,
|
|
203
|
+
classification: this.classification || '',
|
|
204
|
+
doing_business_as: this.doing_business_as || '',
|
|
205
|
+
email: this.email || '',
|
|
206
|
+
industry: this.industry || '',
|
|
207
|
+
legal_address: new Address(this.legal_address).payload,
|
|
208
|
+
legal_name: this.legal_name || '',
|
|
209
|
+
metadata: this.metadata || {},
|
|
210
|
+
owners: this.owners.map((owner) => ({ id: owner.id })),
|
|
211
|
+
phone: this.phone || '',
|
|
212
|
+
platform_account_id: this.platform_account_id || '',
|
|
213
|
+
representative: new Representative(this.representative).payload,
|
|
214
|
+
tax_id: this.tax_id || '',
|
|
215
|
+
website_url: this.website_url || '',
|
|
216
|
+
date_of_incorporation: this.date_of_incorporation || '',
|
|
217
|
+
};
|
|
218
|
+
}
|
|
124
219
|
}
|
|
125
220
|
|
|
126
221
|
export { AdditionalQuestions as A, Business as B, CoreBusinessInfo as C, Owner as O, Representative as R, BusinessClassification as a, Address as b };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-57431c24.js';
|
|
2
2
|
import { c as DetailItem, D as DetailSectionTitle } from './utils-01413a95.js';
|
|
3
|
-
import { i as isEmptyObject, s as snakeCaseToHumanReadable, e as formatMediumDate } from './utils-
|
|
3
|
+
import { i as isEmptyObject, s as snakeCaseToHumanReadable, e as formatMediumDate } from './utils-e66d8bca.js';
|
|
4
4
|
|
|
5
5
|
const sharedBusinessDetailsCss$4 = ".flex-1{flex:1}";
|
|
6
6
|
const AdditionalQuestionsDetailsStyle0 = sharedBusinessDetailsCss$4;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as create$3 } from './index.esm-fc4f5c0c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, p as phoneValidation, d as doingBusinessAsValidation, a as businessClassificationValidation, i as industryValidation, t as taxIdValidation, c as dateOfIncorporationValidation, r as revenueValidation, f as paymentVolumeValidation, g as whenServiceReceivedValidation, h as recurringPaymentsValidation, j as recurringPaymentsPercentageValidation, s as seasonalBusinessValidation, o as otherPaymentDetailsValidation } from './schema-validations-e725d701.js';
|
|
3
3
|
|
|
4
4
|
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
5
5
|
const schema = create$3({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as create$3, a as create$6 } from './index.esm-fc4f5c0c.js';
|
|
2
|
-
import { l as lineOneValidation,
|
|
2
|
+
import { l as lineOneValidation, k as lineTwoValidation, m as cityValidation, n as stateValidation, q as postalValidation, u as identityNameValidation, v as identityTitleValidation, e as emailValidation, p as phoneValidation, x as dobValidation, y as ssnValidation } from './schema-validations-e725d701.js';
|
|
3
3
|
|
|
4
4
|
const addressSchema = (allowOptionalFields) => {
|
|
5
5
|
const schema = create$3({
|
|
@@ -45,46 +45,4 @@ const identitySchema = (role, allowOptionalFields) => {
|
|
|
45
45
|
return allowOptionalFields ? easySchema : schema;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
// This function is for the larger business form.
|
|
50
|
-
const parseBusiness = (values, initialValues) => {
|
|
51
|
-
var _a;
|
|
52
|
-
parseCoreInfo(values);
|
|
53
|
-
parseAddressInfo(values.legal_address);
|
|
54
|
-
parseIdentityInfo(values.representative);
|
|
55
|
-
((_a = initialValues.owners) === null || _a === void 0 ? void 0 : _a.length) && delete values.owners;
|
|
56
|
-
return values;
|
|
57
|
-
};
|
|
58
|
-
// These functions are for the stepped business form.
|
|
59
|
-
const parseCoreInfo = (values) => {
|
|
60
|
-
delete values.id;
|
|
61
|
-
delete values.documents;
|
|
62
|
-
delete values.bank_accounts;
|
|
63
|
-
delete values.product_categories;
|
|
64
|
-
delete values.created_at;
|
|
65
|
-
delete values.updated_at;
|
|
66
|
-
delete values.associated_accounts;
|
|
67
|
-
delete values.terms_conditions_accepted;
|
|
68
|
-
return values;
|
|
69
|
-
};
|
|
70
|
-
const parseAddressInfo = (values) => {
|
|
71
|
-
delete values.id;
|
|
72
|
-
delete values.created_at;
|
|
73
|
-
delete values.updated_at;
|
|
74
|
-
return values;
|
|
75
|
-
};
|
|
76
|
-
const parseIdentityInfo = (values) => {
|
|
77
|
-
delete values.id;
|
|
78
|
-
delete values.documents;
|
|
79
|
-
delete values.created_at;
|
|
80
|
-
delete values.updated_at;
|
|
81
|
-
delete values.address.id;
|
|
82
|
-
delete values.address.created_at;
|
|
83
|
-
delete values.address.updated_at;
|
|
84
|
-
delete values.business_id;
|
|
85
|
-
delete values.dob_full;
|
|
86
|
-
delete values.ssn_last4;
|
|
87
|
-
return values;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export { addressSchema as a, parseCoreInfo as b, parseIdentityInfo as c, parseAddressInfo as d, identitySchema as i, parseBusiness as p };
|
|
48
|
+
export { addressSchema as a, identitySchema as i };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-
|
|
2
|
+
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-d790973e.js';
|
|
3
3
|
import { C as CURRENCY_MASK, T as TAX_ID_MASKS, P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks-0e18300f.js';
|
|
4
|
-
import { C as CoreBusinessInfo } from './Business-
|
|
4
|
+
import { C as CoreBusinessInfo } from './Business-b73d5055.js';
|
|
5
5
|
import { d as deconstructDate } from './helpers-96ea3464.js';
|
|
6
6
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
7
7
|
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-
|
|
2
|
+
import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-a5583cf8.js';
|
|
3
3
|
import { F as FormController } from './index.esm-fc4f5c0c.js';
|
|
4
|
-
import { A as AdditionalQuestions, C as CoreBusinessInfo, R as Representative, b as Address } from './Business-
|
|
4
|
+
import { A as AdditionalQuestions, C as CoreBusinessInfo, R as Representative, b as Address } from './Business-b73d5055.js';
|
|
5
5
|
import { C as CURRENCY_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js';
|
|
6
|
-
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-
|
|
7
|
-
import { b as parseCoreInfo, c as parseIdentityInfo, i as identitySchema, d as parseAddressInfo, a as addressSchema } from './payload-parsers-62f443e1.js';
|
|
8
|
-
import { h as flattenNestedObject, j as isInRange, s as snakeCaseToHumanReadable, b as formatDate, k as formatTimeSeconds } from './utils-3c1dd2fa.js';
|
|
6
|
+
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-d790973e.js';
|
|
9
7
|
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
10
|
-
import { N as EntityDocumentType } from './schema-validations-
|
|
8
|
+
import { N as EntityDocumentType } from './schema-validations-e725d701.js';
|
|
9
|
+
import { h as isInRange, s as snakeCaseToHumanReadable, b as formatDate, j as formatTimeSeconds } from './utils-e66d8bca.js';
|
|
11
10
|
import { b as BusinessFormStep, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
12
11
|
import { B as Button } from './button-34e75e0f.js';
|
|
12
|
+
import { i as identitySchema, a as addressSchema } from './business-identity-schema-9e3269fb.js';
|
|
13
13
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
14
14
|
import './helpers-96ea3464.js';
|
|
15
15
|
|
|
@@ -110,8 +110,8 @@ const AdditionalQuestionsFormStepCore = class {
|
|
|
110
110
|
}
|
|
111
111
|
;
|
|
112
112
|
get patchPayload() {
|
|
113
|
-
let formValues = this.formController.values.getValue();
|
|
114
|
-
return
|
|
113
|
+
let formValues = new AdditionalQuestions(this.formController.values.getValue()).payload;
|
|
114
|
+
return { additional_questions: formValues };
|
|
115
115
|
}
|
|
116
116
|
componentWillLoad() {
|
|
117
117
|
this.getBusiness && this.getData();
|
|
@@ -125,7 +125,7 @@ const AdditionalQuestionsFormStepCore = class {
|
|
|
125
125
|
render() {
|
|
126
126
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
127
127
|
const additionalQuestionsDefaultValue = this.formController.getInitialValues();
|
|
128
|
-
return (h("form", { key: '
|
|
128
|
+
return (h("form", { key: '275b193388d360ab6dacfb70ea9e06d68d68cbf8' }, h("fieldset", { key: '740ce0b08ad00efa1345f69cf977e64283307533' }, h("legend", { key: '7f531cdf699ad93234bbdd5d9336ee782e770597' }, "Additional Questions"), h("hr", { key: 'cb81b0b4dc9e6a52ff9bf70571a200fee50e8146' }), h("div", { key: '9100fdb4857a5a9a2b42f0188cfac075974afbeb', class: 'row gy-3' }, h("div", { key: 'ee0885251b8e49cb33359a42897097552e9d0ff9', class: 'col-12 col-md-6' }, h("form-control-monetary", { key: '555b00e0b6728dca26a42813991f35dec41e2577', name: 'business_revenue', label: 'What is the business\u2019 estimated annual revenue from its primary business activities?', inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '689ecc46bffe9cfe7190428e191802332485f139', class: 'col-12 col-md-6' }, h("form-control-monetary", { key: '19a4269b31af12f9e07655c9dc0d9db1de46caa2', name: 'business_payment_volume', label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'f6eebbdd589cf4eb506d3d94502a027e639889d9', class: 'col-12' }, h("form-control-select", { key: '112bb7ee88335d9b8e8f9300ff190f164b750b39', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: '49864b5aeca86d221cc12690e2f9976fe9ee86ef', class: 'col-12' }, h("form-control-select", { key: 'a07159d8e7e49b9b1df5bcf2dcede994d0059595', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '3a03321d7dd9202c290443d756105bb2565a3e55', class: 'col-12' }, h("form-control-text", { key: '319a5fcb7ac6e975c41cfd5b19d5de0e98504f5d', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: 'e108f26d04e7f9510f89ab09daab53e86f5c30e1', class: 'col-12' }, h("form-control-select", { key: '45fb9296592415ddb947b55e3c7c73d198b96fac', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: '0b40ac8429c07279acb3d360124853a608a01664', class: 'col-12' }, h("form-control-text", { key: '880e00acdfa51f95b643f1ecc8d6fccba1167e6c', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
|
|
@@ -191,8 +191,8 @@ const BusinessCoreInfoFormStepCore = class {
|
|
|
191
191
|
}
|
|
192
192
|
;
|
|
193
193
|
get patchPayload() {
|
|
194
|
-
let formValues =
|
|
195
|
-
return
|
|
194
|
+
let formValues = new CoreBusinessInfo(this.formController.values.getValue()).payload;
|
|
195
|
+
return formValues;
|
|
196
196
|
}
|
|
197
197
|
componentWillLoad() {
|
|
198
198
|
this.getBusiness && this.getData();
|
|
@@ -205,7 +205,7 @@ const BusinessCoreInfoFormStepCore = class {
|
|
|
205
205
|
}
|
|
206
206
|
render() {
|
|
207
207
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
208
|
-
return (h("form", { key: '
|
|
208
|
+
return (h("form", { key: 'ab0ae9821e19c2a2d1e87ce16b23cfe56bafb31b' }, h("fieldset", { key: 'eec949b50436218cee02c6410c34959a6b10ebf8' }, h("legend", { key: '34b37dddcb967275ddd3d561dd2931b74103c0ce' }, "General Info"), h("hr", { key: 'af37f3171790265c3b7d22d2328c31842c5a12ea' }), h("div", { key: 'ba4780eec04a8b34f644895913e99ea49c587f81', class: 'row gy-3' }, h("div", { key: '8109ee7485afc5a5ee3e38c947ef9387cab5daa4', class: 'col-12' }, h("form-control-text", { key: '885bc9f67fc4738cb5abc6165bf1f6f5b3382a90', name: 'legal_name', label: 'Legal Name', defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '453b4e25b812015a50f72e76159111818d0065f5', class: 'col-12' }, h("form-control-text", { key: 'a63ec6c1e936ab1104b92e6fdd5f6a350559009c', name: 'doing_business_as', label: 'Doing Business As (DBA)', defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '8a39b25c7d9c414569e22e73a98d7b136b0623dd', class: 'col-12 col-md-8' }, h("form-control-select", { key: '41d6d3a45431953746e86a5aea6ebb0a39674009', name: 'classification', label: 'Business Classification', options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: 'd98e5f2ee6e7d3ddc23ba5501db4f698cc88ba40', class: 'col-12 col-md-4' }, h("form-control-date", { key: '4ea36622261e3a649b934700ee676c062789c519', name: 'date_of_incorporation', label: 'Date of Incorporation', defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: '8617887e16cbc3a40b0c1ab56597d7098c7ac62f', class: 'col-12 col-md-6' }, h("form-control-text", { key: '9357ddb686194100fe705111bbc965c2956dddb4', name: 'industry', label: 'Industry', defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '968b0f492f354279736b531295a1e4813a5de0b0', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'd082445d9f876794e525839fb35457f114e89dac', name: 'tax_id', label: 'Tax ID (EIN or SSN)', defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9 })), h("div", { key: 'a0e041bb3fa323e378d2b9730dd9055c9ecf1dfc', class: 'col-12' }, h("form-control-text", { key: '4994efe8c6cb5faf84accd0f2965b508d084144e', name: 'website_url', label: 'Website URL', defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '0f7f1548e704095aaef9d4fccd7c81284ff7bbed', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'e1cffd24b03e5e3655649b68900c74fcc89513c5', name: 'email', label: 'Email Address', defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '1732635477c58d1f57aa5b8dc0c560ae0c215501', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: '04979d08463efc69557b782fda772702935349a7', name: 'phone', label: 'Phone Number', defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
|
|
@@ -351,7 +351,7 @@ const BusinessOwnersFormStepCore = class {
|
|
|
351
351
|
let submittedData;
|
|
352
352
|
this.formLoading.emit(true);
|
|
353
353
|
this.patchBusiness({
|
|
354
|
-
payload:
|
|
354
|
+
payload: { owners: this.ownersPayload },
|
|
355
355
|
onSuccess: (response) => {
|
|
356
356
|
submittedData = response;
|
|
357
357
|
onSuccess();
|
|
@@ -425,9 +425,9 @@ const BusinessOwnersFormStepCore = class {
|
|
|
425
425
|
this.ownersPayload = updatedOwners;
|
|
426
426
|
}
|
|
427
427
|
render() {
|
|
428
|
-
return (h("div", { key: '
|
|
428
|
+
return (h("div", { key: 'f2358952d2d28841fb8e6bc66e9846eb2cdcc97e' }, h("legend", { key: 'ab3f7e6758cc50760681a9fdd07f8e137da65980' }, "Owners"), h("hr", { key: '57828746f9991da89e77a1f96b51f6df2d33d666' }), h("div", { key: '4f7f58bf1b5d40079228eef118946e17b407db63', class: 'row gy-3' }, this.ownersPayload.map((owner) => {
|
|
429
429
|
return (h("justifi-owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
|
|
430
|
-
})), h("div", { key: '
|
|
430
|
+
})), h("div", { key: '88dad43cc24d7c1e1220acb6b7791c2172074d61', class: 'd-flex justify-content-start' }, h("div", { key: '9359481d78e5c3ba9599d2fce5837c5fdfe1d6f0', class: 'gap-2' }, h(Button, { key: '04ee1c49c34567b079432df8fb2b1b298fb7d7a3', variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
|
|
431
431
|
}
|
|
432
432
|
static get watchers() { return {
|
|
433
433
|
"ownersPayload": ["ownersWatcher"]
|
|
@@ -491,8 +491,8 @@ const BusinessRepresentativeFormStepCore = class {
|
|
|
491
491
|
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
492
492
|
}
|
|
493
493
|
get patchPayload() {
|
|
494
|
-
let formValues =
|
|
495
|
-
return
|
|
494
|
+
let formValues = new Representative(this.formController.values.getValue()).payload;
|
|
495
|
+
return { representative: formValues };
|
|
496
496
|
}
|
|
497
497
|
componentWillLoad() {
|
|
498
498
|
this.getBusiness && this.getData();
|
|
@@ -504,7 +504,7 @@ const BusinessRepresentativeFormStepCore = class {
|
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
506
|
render() {
|
|
507
|
-
return (h("justifi-business-representative-form-inputs", { key: '
|
|
507
|
+
return (h("justifi-business-representative-form-inputs", { key: '855736c2c1565b0b9e2cf57131a72298ccc889d5', representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
|
|
@@ -582,8 +582,8 @@ const LegalAddressFormStepCore = class {
|
|
|
582
582
|
}
|
|
583
583
|
;
|
|
584
584
|
get patchPayload() {
|
|
585
|
-
let formValues =
|
|
586
|
-
return
|
|
585
|
+
let formValues = new Address(this.formController.values.getValue()).payload;
|
|
586
|
+
return { legal_address: formValues };
|
|
587
587
|
}
|
|
588
588
|
componentWillLoad() {
|
|
589
589
|
this.getBusiness && this.getData();
|
|
@@ -597,7 +597,7 @@ const LegalAddressFormStepCore = class {
|
|
|
597
597
|
render() {
|
|
598
598
|
var _a, _b, _c, _d, _e, _f;
|
|
599
599
|
const legalAddressDefaultValue = this.formController.getInitialValues();
|
|
600
|
-
return (h("form", { key: '
|
|
600
|
+
return (h("form", { key: '5a95fe5a130deded7e160e6fe4ba1d09e6a6aabc' }, h("fieldset", { key: '2011fac5c860b7beee5eaac28e697b284067f2e6' }, h("legend", { key: 'dbe411d80d10a71bc63f18fcdb58a40b124e8eaf' }, "Business Legal Address"), h("hr", { key: '4a91dd5e67e5770778d2dd59716e1e532d644ee9' }), h("div", { key: 'cd53516a98498ab82ab347a1f7c836be262b9fdb', class: 'row gy-3' }, h("div", { key: '14cd5fee5661681ccff95eabf8cd6f2d4cff2296', class: 'col-12' }, h("form-control-text", { key: 'e4b0a5e30fc1a35e5127a76710211874fb68898b', name: 'line1', label: 'Legal Address', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { key: '2c35da509732e73e2abb4365d6d9e2056d7ce771', class: 'col-12' }, h("form-control-text", { key: 'c8ae2a5c75d0fe8c5ddd46d9150590b8a4f99a5e', name: 'line2', label: 'Address Line 2', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { key: '07649ebd5a848eee63398965c30e8e30fcc88354', class: 'col-12' }, h("form-control-text", { key: 'cb25047c3458124f7d837b7948e807214f1a0a0a', name: 'city', label: 'City', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { key: 'ce3ddc5f3639503dbc02668aea7139ffff376545', class: 'col-12' }, h("form-control-select", { key: '00d18b4af1f415828b40404888a6c69d0611d0cc', name: 'state', label: 'State', options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { key: '1988bd739af107d9595f6fed897f257da13ac997', class: 'col-12' }, h("form-control-text", { key: '55144c39845d4cc36704170b73458f761f311d00', name: 'postal_code', label: 'Postal Code', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'cccba799a75280693f461f390121b13006877f35', class: 'col-12' }, h("form-control-select", { key: 'e49b21a781280fb2e9cc9f6b88ddcc6d7408c5f8', name: 'country', label: 'Country', options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
|
|
601
601
|
// just for now so we skip handling country specificities
|
|
602
602
|
disabled: true }))))));
|
|
603
603
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { f as formatCurrency, a as formatDisplayDate } from './utils-
|
|
2
|
+
import { f as formatCurrency, a as formatDisplayDate } from './utils-e66d8bca.js';
|
|
3
3
|
import { E as ErrorState, L as LoadingState } from './utils-01413a95.js';
|
|
4
4
|
|
|
5
5
|
/*!
|