@justifi/webcomponents 4.19.3-rc-1 → 4.19.3
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-84cccd4a.js → Analytics-a0a86d82.js} +4 -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-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
- package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
- package/dist/cjs/config-05767cba.js +15 -0
- 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-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +14 -13
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +4 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
- package/dist/cjs/{package-d2e04416.js → package-99f4d813.js} +2 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
- 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-2733de42.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 +2 -1
- package/dist/collection/api/services/business.service.js +6 -5
- package/dist/collection/api/services/checkout.service.js +3 -2
- package/dist/collection/api/services/insurance.service.js +3 -2
- package/dist/collection/api/services/payment.service.js +3 -2
- package/dist/collection/api/services/payout.service.js +4 -3
- package/dist/collection/api/services/provision.service.js +2 -1
- package/dist/collection/api/services/reports.service.js +2 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
- package/dist/collection/components/business-forms/business-form/business-form.js +5 -5
- 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 +4 -3
- 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 +4 -3
- 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 +4 -3
- package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
- package/dist/collection/components/card-form/card-form.js +4 -3
- package/dist/collection/components/checkout/checkout-core.js +4 -3
- package/dist/collection/components/checkout/new-payment-method.js +4 -3
- package/dist/collection/components/checkout/payment-method-options.js +4 -3
- package/dist/collection/components/checkout/saved-payment-method.js +4 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
- package/dist/collection/components/payment-form/payment-form.js +4 -3
- package/dist/collection/components/refund-form/refund-form.js +3 -2
- package/dist/config.js +11 -0
- package/dist/docs.json +9 -9
- package/dist/esm/{Analytics-a742f6d2.js → Analytics-e460ab05.js} +4 -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-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
- package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
- package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
- package/dist/esm/config-27764a9d.js +13 -0
- 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-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
- package/dist/esm/justifi-bank-account-form.entry.js +6 -5
- package/dist/esm/justifi-billing-form_2.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +6 -5
- package/dist/esm/justifi-business-form.entry.js +13 -12
- package/dist/esm/justifi-card-form.entry.js +6 -5
- package/dist/esm/justifi-checkout-core.entry.js +4 -3
- package/dist/esm/justifi-checkout.entry.js +6 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +10 -9
- package/dist/esm/justifi-owner-form_3.entry.js +11 -10
- package/dist/esm/justifi-payment-details.entry.js +5 -4
- package/dist/esm/justifi-payment-form.entry.js +8 -7
- package/dist/esm/justifi-payment-method-form.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
- package/dist/esm/justifi-payments-list.entry.js +5 -4
- package/dist/esm/justifi-payout-details.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -4
- package/dist/esm/justifi-refund-form.entry.js +4 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -5
- package/dist/esm/{package-a70c900f.js → package-0935c5e5.js} +2 -2
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
- 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-a83ff220.js → schema-validations-e725d701.js} +2 -2
- package/dist/esm/{utils-3c1dd2fa.js → utils-e66d8bca.js} +1 -16
- package/dist/module/Analytics.js +2 -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 +4 -3
- package/dist/module/business-core-info-form-step-core.js +3 -5
- package/dist/module/business-document-upload-form-step.js +4 -3
- 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-form-options.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 +4 -3
- package/dist/module/business.service.js +6 -5
- package/dist/module/checkout-core.js +3 -2
- package/dist/module/config.js +13 -0
- package/dist/module/get-payout-csv.js +4 -3
- package/dist/module/justifi-bank-account-form.js +3 -2
- package/dist/module/justifi-business-form.js +5 -5
- package/dist/module/justifi-card-form.js +3 -2
- package/dist/module/justifi-checkout.js +3 -2
- package/dist/module/justifi-gross-payment-chart.js +2 -1
- package/dist/module/justifi-payment-form.js +4 -3
- package/dist/module/justifi-payment-provisioning.js +2 -1
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/legal-address-form-step-core.js +3 -4
- package/dist/module/new-payment-method.js +3 -2
- package/dist/module/owner-form-core2.js +4 -5
- package/dist/module/package.js +2 -2
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- 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 +4 -3
- package/dist/module/sezzle-payment-method.js +3 -2
- 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/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
- package/dist/webcomponents/p-056e75be.entry.js +1 -0
- package/dist/webcomponents/p-11b6ed0c.entry.js +1 -0
- package/dist/webcomponents/{p-462dc522.entry.js → p-124c1ecd.entry.js} +1 -1
- package/dist/webcomponents/p-15976984.entry.js +1 -0
- package/dist/webcomponents/p-1815a43b.js +1 -0
- package/dist/webcomponents/p-1cf90026.entry.js +1 -0
- package/dist/webcomponents/{p-1a43e355.entry.js → p-1eee25f3.entry.js} +1 -1
- package/dist/webcomponents/{p-3fd13ca3.js → p-277aee05.js} +1 -1
- package/dist/webcomponents/p-3423ddfd.entry.js +1 -0
- package/dist/webcomponents/p-39c6f36a.entry.js +1 -0
- package/dist/webcomponents/p-401d6607.js +1 -0
- package/dist/webcomponents/p-421ed39d.entry.js +1 -0
- package/dist/webcomponents/p-4e017b58.js +1 -0
- package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
- package/dist/webcomponents/{p-89887332.js → p-5022f21c.js} +1 -1
- package/dist/webcomponents/p-55182a59.js +1 -0
- package/dist/webcomponents/p-5a62fca2.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-69c18f39.entry.js +1 -0
- package/dist/webcomponents/p-6abb2a04.entry.js +1 -0
- package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
- package/dist/webcomponents/{p-62b32c4c.entry.js → p-721dcf51.entry.js} +1 -1
- package/dist/webcomponents/{p-29c0b182.js → p-7d3be485.js} +1 -1
- package/dist/webcomponents/p-7ff329b1.js +1 -0
- package/dist/webcomponents/{p-52021fa1.entry.js → p-817da23c.entry.js} +1 -1
- package/dist/webcomponents/p-a99032e1.entry.js +1 -0
- package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
- package/dist/webcomponents/p-aedb421f.entry.js +1 -0
- package/dist/webcomponents/p-b676bca5.entry.js +1 -0
- package/dist/webcomponents/p-b6c3b7bc.entry.js +1 -0
- package/dist/webcomponents/{p-080fedb5.entry.js → p-bd278ff4.entry.js} +1 -1
- package/dist/webcomponents/p-d4a44a1e.entry.js +1 -0
- package/dist/webcomponents/{p-4abc17f0.entry.js → p-d76002d5.entry.js} +1 -1
- package/dist/webcomponents/p-d78eb6ce.js +1 -0
- package/dist/webcomponents/{p-8e541a32.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-e3f4a2a6.js +1 -0
- package/dist/webcomponents/p-e7fd1357.entry.js +1 -0
- package/dist/webcomponents/{p-fe33151d.entry.js → p-eccf2e8e.entry.js} +1 -1
- package/dist/webcomponents/p-edb62047.entry.js +1 -0
- package/dist/webcomponents/p-f5ebca3e.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- 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-0e1bc91e.js +0 -1
- package/dist/webcomponents/p-0e3e3544.entry.js +0 -1
- package/dist/webcomponents/p-1295970b.entry.js +0 -1
- package/dist/webcomponents/p-15b9b267.entry.js +0 -1
- package/dist/webcomponents/p-17e4246f.entry.js +0 -1
- package/dist/webcomponents/p-232278e0.entry.js +0 -1
- package/dist/webcomponents/p-30a493cd.entry.js +0 -1
- package/dist/webcomponents/p-32211b2f.entry.js +0 -1
- package/dist/webcomponents/p-3352353a.entry.js +0 -1
- package/dist/webcomponents/p-47d79529.js +0 -1
- package/dist/webcomponents/p-701e03a8.entry.js +0 -1
- package/dist/webcomponents/p-79cfbcfa.entry.js +0 -1
- package/dist/webcomponents/p-85fc69e5.js +0 -1
- package/dist/webcomponents/p-8e263202.js +0 -1
- package/dist/webcomponents/p-99899e7e.entry.js +0 -1
- package/dist/webcomponents/p-9993e959.entry.js +0 -1
- package/dist/webcomponents/p-af244664.js +0 -1
- package/dist/webcomponents/p-b29f5084.entry.js +0 -1
- package/dist/webcomponents/p-b4b8b531.js +0 -1
- package/dist/webcomponents/p-ba5fae28.js +0 -1
- package/dist/webcomponents/p-cc97f21b.entry.js +0 -1
- package/dist/webcomponents/p-cd37a87e.entry.js +0 -1
- package/dist/webcomponents/p-d4c94340.entry.js +0 -1
- package/dist/webcomponents/p-d5c9e036.entry.js +0 -1
- package/dist/webcomponents/p-d6a998e4.js +0 -1
- package/dist/webcomponents/p-ea3598f3.entry.js +0 -1
- package/dist/webcomponents/p-eca70b1d.entry.js +0 -1
- package/dist/webcomponents/p-f117d1d1.entry.js +0 -1
- package/dist/{globals.d.ts → types/global.d.ts} +1 -1
|
@@ -34,6 +34,15 @@ export declare class Address implements IAddress {
|
|
|
34
34
|
created_at?: string;
|
|
35
35
|
updated_at?: string;
|
|
36
36
|
constructor(address: IAddress);
|
|
37
|
+
get payload(): {
|
|
38
|
+
platform_account_id: string;
|
|
39
|
+
line1: string;
|
|
40
|
+
line2: string;
|
|
41
|
+
postal_code: string;
|
|
42
|
+
city: string;
|
|
43
|
+
state: string;
|
|
44
|
+
country: string;
|
|
45
|
+
};
|
|
37
46
|
}
|
|
38
47
|
export interface ProductCategories {
|
|
39
48
|
credit: boolean;
|
|
@@ -49,6 +58,7 @@ export interface IAdditionalQuestions {
|
|
|
49
58
|
business_recurring_payments_percentage?: string;
|
|
50
59
|
business_seasonal?: string;
|
|
51
60
|
business_other_payment_details?: string;
|
|
61
|
+
payload?: any;
|
|
52
62
|
}
|
|
53
63
|
export declare class AdditionalQuestions implements IAdditionalQuestions {
|
|
54
64
|
business_revenue?: string;
|
|
@@ -59,6 +69,15 @@ export declare class AdditionalQuestions implements IAdditionalQuestions {
|
|
|
59
69
|
business_seasonal?: string;
|
|
60
70
|
business_other_payment_details?: string;
|
|
61
71
|
constructor(additionalQuestions: IAdditionalQuestions);
|
|
72
|
+
get payload(): {
|
|
73
|
+
business_revenue: string;
|
|
74
|
+
business_payment_volume: string;
|
|
75
|
+
business_when_service_received: string;
|
|
76
|
+
business_recurring_payments: string;
|
|
77
|
+
business_recurring_payments_percentage: string;
|
|
78
|
+
business_seasonal: string;
|
|
79
|
+
business_other_payment_details: string;
|
|
80
|
+
};
|
|
62
81
|
}
|
|
63
82
|
export interface ICoreBusinessInfo {
|
|
64
83
|
classification?: BusinessClassification;
|
|
@@ -82,6 +101,17 @@ export declare class CoreBusinessInfo implements ICoreBusinessInfo {
|
|
|
82
101
|
phone: string;
|
|
83
102
|
date_of_incorporation: string;
|
|
84
103
|
constructor(coreBusinessInfo: ICoreBusinessInfo);
|
|
104
|
+
get payload(): {
|
|
105
|
+
classification: string;
|
|
106
|
+
legal_name: string;
|
|
107
|
+
doing_business_as: string;
|
|
108
|
+
industry: string;
|
|
109
|
+
tax_id: string;
|
|
110
|
+
website_url: string;
|
|
111
|
+
email: string;
|
|
112
|
+
phone: string;
|
|
113
|
+
date_of_incorporation: string;
|
|
114
|
+
};
|
|
85
115
|
}
|
|
86
116
|
export interface IBusiness {
|
|
87
117
|
additional_questions: IAdditionalQuestions;
|
|
@@ -109,7 +139,7 @@ export interface IBusiness {
|
|
|
109
139
|
date_of_incorporation?: string;
|
|
110
140
|
}
|
|
111
141
|
export declare class Business implements IBusiness {
|
|
112
|
-
additional_questions:
|
|
142
|
+
additional_questions: IAdditionalQuestions;
|
|
113
143
|
associated_accounts: any[];
|
|
114
144
|
classification: BusinessClassification;
|
|
115
145
|
bank_accounts: IBankAccount[];
|
|
@@ -133,6 +163,62 @@ export declare class Business implements IBusiness {
|
|
|
133
163
|
date_of_incorporation?: string;
|
|
134
164
|
product_categories: ProductCategories;
|
|
135
165
|
constructor(business: IBusiness);
|
|
166
|
+
get payload(): {
|
|
167
|
+
additional_questions: {
|
|
168
|
+
business_revenue: string;
|
|
169
|
+
business_payment_volume: string;
|
|
170
|
+
business_when_service_received: string;
|
|
171
|
+
business_recurring_payments: string;
|
|
172
|
+
business_recurring_payments_percentage: string;
|
|
173
|
+
business_seasonal: string;
|
|
174
|
+
business_other_payment_details: string;
|
|
175
|
+
};
|
|
176
|
+
classification: string;
|
|
177
|
+
doing_business_as: string;
|
|
178
|
+
email: string;
|
|
179
|
+
industry: string;
|
|
180
|
+
legal_address: {
|
|
181
|
+
platform_account_id: string;
|
|
182
|
+
line1: string;
|
|
183
|
+
line2: string;
|
|
184
|
+
postal_code: string;
|
|
185
|
+
city: string;
|
|
186
|
+
state: string;
|
|
187
|
+
country: string;
|
|
188
|
+
};
|
|
189
|
+
legal_name: string;
|
|
190
|
+
metadata: any;
|
|
191
|
+
owners: {
|
|
192
|
+
id: string;
|
|
193
|
+
}[];
|
|
194
|
+
phone: string;
|
|
195
|
+
platform_account_id: string;
|
|
196
|
+
representative: {
|
|
197
|
+
address: {
|
|
198
|
+
platform_account_id: string;
|
|
199
|
+
line1: string;
|
|
200
|
+
line2: string;
|
|
201
|
+
postal_code: string;
|
|
202
|
+
city: string;
|
|
203
|
+
state: string;
|
|
204
|
+
country: string;
|
|
205
|
+
};
|
|
206
|
+
dob_day: string;
|
|
207
|
+
dob_month: string;
|
|
208
|
+
dob_year: string;
|
|
209
|
+
email: string;
|
|
210
|
+
is_owner: boolean;
|
|
211
|
+
identification_number: string;
|
|
212
|
+
metadata: any;
|
|
213
|
+
name: string;
|
|
214
|
+
phone: string;
|
|
215
|
+
platform_account_id: string;
|
|
216
|
+
title: string;
|
|
217
|
+
};
|
|
218
|
+
tax_id: string;
|
|
219
|
+
website_url: string;
|
|
220
|
+
date_of_incorporation: string;
|
|
221
|
+
};
|
|
136
222
|
}
|
|
137
223
|
export interface IProductReadiness {
|
|
138
224
|
business_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, IAddress } from
|
|
1
|
+
import { Address, IAddress } from './Business';
|
|
2
2
|
export interface Identity {
|
|
3
3
|
address?: IAddress;
|
|
4
4
|
created_at?: string;
|
|
@@ -40,6 +40,28 @@ export declare class Owner implements Identity {
|
|
|
40
40
|
title?: string;
|
|
41
41
|
updated_at?: string;
|
|
42
42
|
constructor(owner: Identity);
|
|
43
|
+
get payload(): {
|
|
44
|
+
address: {
|
|
45
|
+
platform_account_id: string;
|
|
46
|
+
line1: string;
|
|
47
|
+
line2: string;
|
|
48
|
+
postal_code: string;
|
|
49
|
+
city: string;
|
|
50
|
+
state: string;
|
|
51
|
+
country: string;
|
|
52
|
+
};
|
|
53
|
+
dob_day: string;
|
|
54
|
+
dob_month: string;
|
|
55
|
+
dob_year: string;
|
|
56
|
+
email: string;
|
|
57
|
+
identification_number: string;
|
|
58
|
+
is_owner: boolean;
|
|
59
|
+
metadata: any;
|
|
60
|
+
name: string;
|
|
61
|
+
phone: string;
|
|
62
|
+
platform_account_id: string;
|
|
63
|
+
title: string;
|
|
64
|
+
};
|
|
43
65
|
}
|
|
44
66
|
export declare class Representative implements Identity {
|
|
45
67
|
address?: Address;
|
|
@@ -62,4 +84,26 @@ export declare class Representative implements Identity {
|
|
|
62
84
|
title?: string;
|
|
63
85
|
updated_at?: string;
|
|
64
86
|
constructor(representative: Identity);
|
|
87
|
+
get payload(): {
|
|
88
|
+
address: {
|
|
89
|
+
platform_account_id: string;
|
|
90
|
+
line1: string;
|
|
91
|
+
line2: string;
|
|
92
|
+
postal_code: string;
|
|
93
|
+
city: string;
|
|
94
|
+
state: string;
|
|
95
|
+
country: string;
|
|
96
|
+
};
|
|
97
|
+
dob_day: string;
|
|
98
|
+
dob_month: string;
|
|
99
|
+
dob_year: string;
|
|
100
|
+
email: string;
|
|
101
|
+
is_owner: boolean;
|
|
102
|
+
identification_number: string;
|
|
103
|
+
metadata: any;
|
|
104
|
+
name: string;
|
|
105
|
+
phone: string;
|
|
106
|
+
platform_account_id: string;
|
|
107
|
+
title: string;
|
|
108
|
+
};
|
|
65
109
|
}
|
|
@@ -28,7 +28,50 @@ export declare class BusinessOwnerFormCore {
|
|
|
28
28
|
validate(): Promise<boolean>;
|
|
29
29
|
submit(): Promise<boolean>;
|
|
30
30
|
validateAndSubmit(event: any): Promise<void>;
|
|
31
|
-
get payload():
|
|
31
|
+
get payload(): {
|
|
32
|
+
address: {
|
|
33
|
+
platform_account_id: string;
|
|
34
|
+
line1: string;
|
|
35
|
+
line2: string;
|
|
36
|
+
postal_code: string;
|
|
37
|
+
city: string;
|
|
38
|
+
state: string;
|
|
39
|
+
country: string;
|
|
40
|
+
};
|
|
41
|
+
dob_day: string;
|
|
42
|
+
dob_month: string;
|
|
43
|
+
dob_year: string;
|
|
44
|
+
email: string;
|
|
45
|
+
identification_number: string;
|
|
46
|
+
is_owner: boolean;
|
|
47
|
+
metadata: any;
|
|
48
|
+
name: string;
|
|
49
|
+
phone: string;
|
|
50
|
+
platform_account_id: string;
|
|
51
|
+
title: string;
|
|
52
|
+
} | {
|
|
53
|
+
business_id: string;
|
|
54
|
+
address: {
|
|
55
|
+
platform_account_id: string;
|
|
56
|
+
line1: string;
|
|
57
|
+
line2: string;
|
|
58
|
+
postal_code: string;
|
|
59
|
+
city: string;
|
|
60
|
+
state: string;
|
|
61
|
+
country: string;
|
|
62
|
+
};
|
|
63
|
+
dob_day: string;
|
|
64
|
+
dob_month: string;
|
|
65
|
+
dob_year: string;
|
|
66
|
+
email: string;
|
|
67
|
+
identification_number: string;
|
|
68
|
+
is_owner: boolean;
|
|
69
|
+
metadata: any;
|
|
70
|
+
name: string;
|
|
71
|
+
phone: string;
|
|
72
|
+
platform_account_id: string;
|
|
73
|
+
title: string;
|
|
74
|
+
};
|
|
32
75
|
get formTitle(): "Edit Business Owner" | "Add Business Owner";
|
|
33
76
|
get submitButtonText(): "Update" | "Add";
|
|
34
77
|
get showRemoveButton(): boolean;
|
|
@@ -16,7 +16,17 @@ export declare class AdditionalQuestionsFormStepCore {
|
|
|
16
16
|
validateAndSubmit({ onSuccess }: {
|
|
17
17
|
onSuccess: any;
|
|
18
18
|
}): Promise<void>;
|
|
19
|
-
get patchPayload():
|
|
19
|
+
get patchPayload(): {
|
|
20
|
+
additional_questions: {
|
|
21
|
+
business_revenue: string;
|
|
22
|
+
business_payment_volume: string;
|
|
23
|
+
business_when_service_received: string;
|
|
24
|
+
business_recurring_payments: string;
|
|
25
|
+
business_recurring_payments_percentage: string;
|
|
26
|
+
business_seasonal: string;
|
|
27
|
+
business_other_payment_details: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
20
30
|
componentWillLoad(): void;
|
|
21
31
|
componentDidLoad(): void;
|
|
22
32
|
private getData;
|
|
@@ -17,7 +17,17 @@ export declare class BusinessCoreInfoFormStepCore {
|
|
|
17
17
|
validateAndSubmit({ onSuccess }: {
|
|
18
18
|
onSuccess: any;
|
|
19
19
|
}): Promise<void>;
|
|
20
|
-
get patchPayload():
|
|
20
|
+
get patchPayload(): {
|
|
21
|
+
classification: string;
|
|
22
|
+
legal_name: string;
|
|
23
|
+
doing_business_as: string;
|
|
24
|
+
industry: string;
|
|
25
|
+
tax_id: string;
|
|
26
|
+
website_url: string;
|
|
27
|
+
email: string;
|
|
28
|
+
phone: string;
|
|
29
|
+
date_of_incorporation: string;
|
|
30
|
+
};
|
|
21
31
|
componentWillLoad(): void;
|
|
22
32
|
componentDidLoad(): void;
|
|
23
33
|
private getData;
|
|
@@ -16,7 +16,30 @@ export declare class BusinessRepresentativeFormStepCore {
|
|
|
16
16
|
validateAndSubmit({ onSuccess }: {
|
|
17
17
|
onSuccess: any;
|
|
18
18
|
}): Promise<void>;
|
|
19
|
-
get patchPayload():
|
|
19
|
+
get patchPayload(): {
|
|
20
|
+
representative: {
|
|
21
|
+
address: {
|
|
22
|
+
platform_account_id: string;
|
|
23
|
+
line1: string;
|
|
24
|
+
line2: string;
|
|
25
|
+
postal_code: string;
|
|
26
|
+
city: string;
|
|
27
|
+
state: string;
|
|
28
|
+
country: string;
|
|
29
|
+
};
|
|
30
|
+
dob_day: string;
|
|
31
|
+
dob_month: string;
|
|
32
|
+
dob_year: string;
|
|
33
|
+
email: string;
|
|
34
|
+
is_owner: boolean;
|
|
35
|
+
identification_number: string;
|
|
36
|
+
metadata: any;
|
|
37
|
+
name: string;
|
|
38
|
+
phone: string;
|
|
39
|
+
platform_account_id: string;
|
|
40
|
+
title: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
20
43
|
componentWillLoad(): void;
|
|
21
44
|
componentDidLoad(): void;
|
|
22
45
|
private getData;
|
|
@@ -16,7 +16,17 @@ export declare class LegalAddressFormStepCore {
|
|
|
16
16
|
validateAndSubmit({ onSuccess }: {
|
|
17
17
|
onSuccess: any;
|
|
18
18
|
}): Promise<void>;
|
|
19
|
-
get patchPayload():
|
|
19
|
+
get patchPayload(): {
|
|
20
|
+
legal_address: {
|
|
21
|
+
platform_account_id: string;
|
|
22
|
+
line1: string;
|
|
23
|
+
line2: string;
|
|
24
|
+
postal_code: string;
|
|
25
|
+
city: string;
|
|
26
|
+
state: string;
|
|
27
|
+
country: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
20
30
|
componentWillLoad(): void;
|
|
21
31
|
componentDidLoad(): void;
|
|
22
32
|
private getData;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const config: {
|
|
2
|
+
iframeOrigin: string;
|
|
3
|
+
proxyApiOrigin: string;
|
|
4
|
+
proxyAuthToken: string;
|
|
5
|
+
exampleAccountId: string;
|
|
6
|
+
exampleBusinessId: string;
|
|
7
|
+
examplePaymentId: string;
|
|
8
|
+
examplePayoutId: string;
|
|
9
|
+
privateApiOrigin: string;
|
|
10
|
+
privateAuthToken: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s}from"./p-fad19d75.js";import{c as i,d as a,e as r}from"./p-5968ff8a.js";import{I as o}from"./p-401d6607.js";import{F as d}from"./p-2eab3c90.js";import{O as h}from"./p-5e7c60d8.js";import{a as c}from"./p-d89bad72.js";import{i as n}from"./p-55182a59.js";import{B as f}from"./p-9c9c7dac.js";import{S as b,P as l}from"./p-525db3e8.js";import{u as m,a as u,b as p}from"./p-7d85af5c.js";import"./p-14c91ffd.js";import"./p-8115b2f4.js";import"./p-5a62fca2.js";import"./p-7d3be485.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-5022f21c.js";import"./p-1815a43b.js";const v=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.authToken=void 0,this.ownerId=void 0,this.businessId=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:t}){this.coreComponent.validateAndSubmit({onSuccess:t})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=a({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=r({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"332d1e77d01886f13aba09b32b2d5f2199131619",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:t=>this.coreComponent=t})}},y=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){t(this,s),this.submitted=e(this,"submitted",7),this.ownerSubmitted=e(this,"ownerSubmitted",7),this.clickEvent=e(this,"click-event",7),this.formLoading=e(this,"formLoading",7),this.errorEvent=e(this,"error-event",7),this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:t=>{this.instantiateOwner(t.data)},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((t=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:e=>{this.submitted.emit({data:e,metadata:{ownerID:e.data.id}}),this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.submitted.emit({data:{error:e}}),this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:e=>{this.submitted.emit({data:e,metadata:{ownerID:e.data.id}}),this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.submitted.emit({data:{error:e}}),this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async t=>{this.owner=Object.assign({},new h(t)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?c.updateOwner:c.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:c.removeOwner})},this.isLoading=!1,this.formController=void 0,this.errors={},this.owner={},this.ownerId=void 0,this.businessId=void 0,this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0,this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(t){t.preventDefault(),await this.validate()&&this.submit()}get payload(){let t=new h(this.formController.values.getValue()).payload;return this.ownerId?t:Object.assign(Object.assign({},t),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(n("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((t=>this.errors=Object.assign({},t)))}render(){return s("form",{key:"27f0d989f017bd03b84cf8c994fa96f9a65aad08",onSubmit:this.validateAndSubmit},s("fieldset",{key:"2c793f1f8777181e5db0a4cae5b9994d9188685e"},s("legend",{key:"a8951fcd990c8136cf6672424869f5c96def3cef",class:"fw-semibold fs-5"},this.formTitle),s("br",{key:"faaf0cc27c448452a5172ad7fcfcf510ec586d2b"}),s("div",{key:"486638ad24414a05f84ada3f37a89d0cc12e7ffb",class:"row gy-3"},s("owner-form-inputs",{key:"bdfe7cb3305f31d93321319ef14eee3e5b331381",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"9e5c63e0637e0bffe5ab77a1f73c203704115479",class:"d-flex gap-2 justify-content-start"},s(f,{key:"85de4b69c697ebf96778f538b1535bd1fb2c43e7",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(f,{key:"1dd026432f19f84ae2142101191e511ebd62c2b3",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"2570611bbe663e2e128f03806ecb036ce750c80b"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},k=class{constructor(e){t(this,e),this.inputHandler=(t,e)=>{m(this.formController,{[t]:e})},this.onAddressFormUpdate=t=>{u(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),t))},this.ownerDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){return s("div",{key:"6fcc165d4bc75b92403d9031ad98f05f6b1dcd34",class:"row gy-3"},s("div",{key:"74f1e42a13892e95497a99684ba9de64719edb72",class:"col-12 col-md-6"},s("form-control-text",{key:"29caea2b0b0a62822cc20c99e697f3db7c22a541",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"5b0f8da9a0512de70558baa9cb188b4d5e773dc2",class:"col-12 col-md-4"},s("form-control-text",{key:"5967094f115a64876f8dc943a273f5a22b193f1c",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler})),s("div",{key:"6c05fec9b87f8ba5e3be9ce74ef727a1e4b14905",class:"col-12 col-md-6"},s("form-control-text",{key:"8c5b2839b6de605915d8e7c14a0ba22d3f440bda",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"d7eae882aea84b8562e459e66bc1ba885c4be3c7",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"2d6b33f47e4008745fd65c5ef3cb60dd92b85eba",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:l.US})),s("div",{key:"92b825163aedf052bdb89721397da69c717e595d",class:"col-12 col-md-4"},s("form-control-date",{key:"cd884b773ef0eb60effc61e8cfbf42b21620cd1c",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:t=>p(t,this.formController)})),s("div",{key:"614ba65972946645ba5c7a299c00efd0e85abf5e",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"7cd9fe7a1b56d351942a0b962f3c7227459406ae",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b})),s("div",{key:"ce08f35a16de4b9be65377cde0a9daa5b4cbe876",class:"col-12"},s("justifi-identity-address-form",{key:"79a7f5e8c08fc57383c1975145a6b06bd4e615dd",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{v as justifi_owner_form,y as owner_form_core,k as owner_form_inputs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as i}from"./p-fad19d75.js";import{C as s,a as o}from"./p-14c91ffd.js";import{g as r,a as c}from"./p-8115b2f4.js";import{A as a}from"./p-7d3be485.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as h}from"./p-5a62fca2.js";import{J as n}from"./p-4e017b58.js";import"./p-d78eb6ce.js";class d{async fetchCheckout(e,t){const i=`checkouts/${t}`;return a({authToken:e,apiOrigin:h.proxyApiOrigin}).get(i)}async complete(e,t,i){const s=`checkouts/${t}/complete`,o={payment_mode:i.payment_mode};return i.payment_token&&(o.payment_token=i.payment_token),a({authToken:e,apiOrigin:h.proxyApiOrigin}).post(s,o)}}const u=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.iframeOrigin=void 0,this.authToken=void 0,this.checkoutId=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.getCheckout=void 0,this.complete=void 0,this.errorMessage=""}componentWillLoad(){this.analytics=new n(this),this.initializeGetCheckout()}disconnectedCallback(){this.analytics.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:e,checkoutId:t,service:i})=>async({onSuccess:o,onError:a})=>{var h;try{const n=await i.fetchCheckout(e,t);if(n.error)return a({error:r(n.error),code:c(null===(h=n.error)||void 0===h?void 0:h.code),severity:s.ERROR});o({checkout:n.data})}catch(e){const t=c(null==e?void 0:e.code);return a({error:e.message||e,code:t,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new d}),this.complete=(({authToken:e,checkoutId:t,service:i})=>async({payment:o,onSuccess:a,onError:h})=>{var n;try{const d=await i.complete(e,t,o);if(d.error)return h({error:r(d.error),code:c(null===(n=d.error)||void 0===n?void 0:n.code),severity:s.ERROR});a(d)}catch(e){const t=c(null==e?void 0:e.code);return h({error:e.message||e,code:t,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new d})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:o.MISSING_PROPS,severity:s.ERROR})}propChanged(){this.initializeGetCheckout()}async fillBillingForm(e){this.checkoutCoreRef.fillBillingForm(e)}render(){return i("justifi-checkout-core",{key:"d2f6bfed1be767edcf4ba21cddc503ff5efbec1a",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,ref:e=>{e&&(this.checkoutCoreRef=e)}},i("div",{key:"45ac1bea74ca8ef7999211b51fe7791225d61f00",slot:"insurance"},i("slot",{key:"13e051844cc7cb4aed98076ccd64954b2dd68228",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{u as justifi_checkout}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as a,h as t}from"./p-fad19d75.js";import{M as d,f as s,b,c as i,s as f}from"./p-
|
|
1
|
+
import{r as e,c as a,h as t}from"./p-fad19d75.js";import{M as d,f as s,b,c as i,s as f}from"./p-5e2c9ec8.js";import{a as c,b as l,D as h,c as r,C as o,E as y,L as n}from"./p-dce846bf.js";import{S as u}from"./p-ba4bae6f.js";const k=class{constructor(t){e(this,t),this.errorEvent=a(this,"error-event",7),this.getPaymentDetails=void 0,this.payment=void 0,this.loading=!0,this.errorMessage=void 0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.loading=!1,this.errorMessage=null},onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t}),this.loading=!1}})}render(){var e;return t(u,{key:"aaaea4076938af5a74197256dba1093265f0e2d6"},this.loading&&n(),!this.loading&&this.errorMessage&&y(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&t("justifi-details",{key:"12f06fa05915380403e244cbed053d0c04bfa1d4","error-message":this.errorMessage},t(c,{key:"4d496def6abfc728e6f184fb0729ac648fb2deaf",slot:"head-info",badge:t("span",{slot:"badge",innerHTML:d(this.payment.status)}),title:`${s(this.payment.amount)} ${null===(e=this.payment)||void 0===e?void 0:e.currency.toUpperCase()}`},t(l,{key:"78dcff13206646d594bdc80f6297d45dc9932694",classes:"border-1 border-end",title:"Updated At",value:`${b(this.payment.updated_at)} ${i(this.payment.updated_at)}`}),t(l,{key:"dfa0de667ebd28efd217b6bdf548b9b1b728b57e",classes:"border-1 border-end",title:"Created At",value:`${b(this.payment.created_at)} ${i(this.payment.created_at)}`}),t(l,{key:"b449b180034f28504007a9c2fb0598607dc00efb",title:"ID",value:this.payment.id})),t("div",{key:"62af84e244e38b24b32f791d13f1b21b49942597",slot:"detail-sections"},t(h,{key:"0ddb0366b4ab737c7b08a37764b8ce2f7ec4a1e9",sectionTitle:"Details"}),t("div",{key:"cb699194db16cb8608834779f560e882f6f9da7c",class:"d-table gap-2 w-100"},t(r,{key:"3b6eb4a8b782668951bba90be3b5d522f3f7c69b",title:"Amount",value:s(this.payment.amount)}),t(r,{key:"7a59ab0b12a263c38c40a98acbff6492d370b28b",title:"Fees",value:s(this.payment.fee_amount)}),t(r,{key:"a9eaa5d1959425205c144dc2aa7c7fad77014290",title:"Refunded",value:s(this.payment.amount_refunded)}),t(r,{key:"d70c3a4bf48c9c69625d5f27f1095f9b0744a71e",title:"Net",value:s(this.payment.balance)}),t(r,{key:"28f526b1adcd475c2ae88a8bf09ae4aea7935df6",title:"Status",value:d(this.payment.status)}),t(r,{key:"700f51d787f20f575e3e11aa72a8da29a9587c2a",title:"Payment ID",value:this.payment.id}),t(r,{key:"ea72ecc9c2f5055d4b0f6b37cd16cb318f9a797c",title:"Processing Fees",value:s(this.payment.fee_amount)}),t(r,{key:"9d66af2c0c0baef4e8b7b021daf0b4d6adb267d2",title:"Statement Descriptor",value:this.payment.statement_descriptor}),t(r,{key:"3f21501c1e08feeee1e7427a42faf1c5d1d9c84d",title:"Description",value:this.payment.description})),this.payment.payment_method.card&&[t(h,{key:"b7767b93e090c0195aca6c99b66b48d61b6134b3",sectionTitle:"Payment Method"}),t("div",{key:"a363c7a7e69932a8ffeddb5e0d53f7df13119a9a",class:"d-table gap-2 w-100"},t(r,{key:"fb0e1f64fcec23e513590b3048593565685d8400",title:"ID",value:this.payment.payment_method.card.id}),t(r,{key:"bc181b1b94039e1aad341a8e563ba923976c806b",title:"Payment Type",value:"Card"}),t(r,{key:"88b21dd2368b88232cd0f464c381d4423fe3c774",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),t(r,{key:"040fd71315ead633f9c89e9a9dad906889759d77",title:"Brand",value:f(this.payment.payment_method.card.brand)}),t(r,{key:"35ebc74de2c5c8fafd95fc5b15ff4f2ca85220cc",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[t(h,{key:"f10eef0b4e4067fb78dbff16719a6f266f4e6bab",sectionTitle:"Payment Method"}),t("div",{key:"6c1ef713b5dcabba5b516f3cbbd088d098873303",class:"d-table gap-2 w-100"},t(r,{key:"8880fd0fb2b16ee6f177aba15d6f4485c95af252",title:"ID",value:this.payment.payment_method.bank_account.id}),t(r,{key:"baa70304d2972f69ce8a5d077a076b16f986745b",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),t(r,{key:"dcb63b9258bea698bf2d165c611dfa05cb320f30",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),t(r,{key:"806696c15aa5ef242c230d9c9aea642ddfdfd93d",title:"Account Owner",value:this.payment.payment_method.payersName}))],t(h,{key:"83289d8f2cf57a624678260555f00af4ea96a566",sectionTitle:"Metadata"}),t("div",{key:"02e248b962e0c06f4d83bae75a5759b234fea36b",class:"d-table gap-2 w-100"},t(o,{key:"5d81879c7815102219ed010dab9f573ad6b7985d",metadata:this.payment.metadata})))))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{k as payment_details_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as r}from"./p-fad19d75.js";import{c as e}from"./p-5a62fca2.js";import{A as o}from"./p-7d3be485.js";import{C as i,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as c}from"./p-dce846bf.js";import{J as p}from"./p-4e017b58.js";import"./p-d78eb6ce.js";class d{async fetchGrossVolumeChartData(s,t){return o({authToken:t,apiOrigin:e.proxyApiOrigin}).get(`account/${s}/reports/gross_volume`)}}const m=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.accountId=void 0,this.authToken=void 0,this.getGrossPayment=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new p(this),this.initializeGetGrossPayment()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:e,onError:o})=>{var a;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?o({error:n(c.error),code:h(null===(a=c.error)||void 0===a?void 0:a.code),severity:i.ERROR}):e(c.data)}catch(s){const t=h(null==s?void 0:s.code);o({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_gross_payment_chart}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./p-5e7c60d8.js";const a=[{label:"Choose business classification",value:""},{label:"Sole Proprietor",value:e.sole_proprietor},{label:"Partnership",value:e.partnership},{label:"Corporation",value:e.corporation},{label:"Public Company",value:e.public_company},{label:"Limited Liability Company (LLC)",value:e.limited},{label:"Non Profit",value:e.non_profit},{label:"Government",value:e.government}],l=[{label:"Within 7 days",value:"Within 7 days"},{label:"Within 30 days",value:"Within 30 days"},{label:"Within 90 days",value:"Within 90 days"},{label:"Within 120 days",value:"Within 120 days"},{label:"More than 120 days",value:"More than 120 days"}],s=[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],i=[{label:"Yes. The majority of the business revenue is generated in 3-6 months.",value:"Yes"},{label:"No. The business revenue is generated evenly throughout the year.",value:"No"}],n=[{label:"Checking",value:"checking"},{label:"Savings",value:"savings"}];export{l as a,a as b,n as c,s as r,i as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as r}from"./p-fad19d75.js";import{t as o}from"./p-2b6c9c4f.js";import{m as e,P as a}from"./p-7ff329b1.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as n}from"./p-e3fab0e2.js";import{C as p,a as c}from"./p-14c91ffd.js";import{g as h,a as d}from"./p-8115b2f4.js";import{E as u}from"./p-dce846bf.js";import{J as m}from"./p-4e017b58.js";import"./p-7d3be485.js";import"./p-5a62fca2.js";import"./p-d78eb6ce.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:o,onError:e})=>{var a,c;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return e({error:h(u.error),code:d(null===(c=u.error)||void 0===c?void 0:c.code),severity:p.ERROR});{const t=Object.assign({},u.page_info);o({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){return e({error:h(t),code:d(null==t?void 0:t.code),severity:p.ERROR})}})(t),this.getPayoutCSV=e(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Account ID and Auth Token are required"})}render(){return this.errorMessage?u(this.errorMessage):i(r,{exportedparts:o},i("payouts-list-core",{getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as s}from"./p-fad19d75.js";import{f as n,a as r}from"./p-
|
|
1
|
+
import{r as t,c as i,h as e,H as s}from"./p-fad19d75.js";import{f as n,a as r}from"./p-5e2c9ec8.js";import{E as o,L as h}from"./p-dce846bf.js";
|
|
2
2
|
/*!
|
|
3
3
|
* @kurkle/color v0.3.2
|
|
4
4
|
* https://github.com/kurkle/color#readme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./p-2eab3c90.js";import{
|
|
1
|
+
import{c as e}from"./p-2eab3c90.js";import{b as s,w as n,e as a,p as i,d as r,a as t,i as u,t as _,c as o,r as c,f as b,g as l,h as m,j as p,s as d,o as g}from"./p-5022f21c.js";const y=c=>{const b=e({legal_name:s.required("Enter legal name"),website_url:n.required("Enter business website url"),email:a.required("Enter business email"),phone:i.required("Enter phone number"),doing_business_as:r.required("Enter doing business as"),classification:t.required("Select business classification"),industry:u.required("Enter a business industry"),tax_id:_.required("Enter tax id, SSN, or EIN"),date_of_incorporation:o.required("Enter date of incorporation")}),l=e({legal_name:s.required("Enter legal name"),website_url:n.nullable(),email:a.nullable(),phone:i.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:u.nullable(),tax_id:_.nullable(),date_of_incorporation:o.nullable()});return c?l:b},v=s=>{const n=e({business_revenue:c.required("Enter business revenue"),business_payment_volume:b.required("Enter business payment volume"),business_when_service_received:l.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:p,business_seasonal:d.required("Select business seasonal"),business_other_payment_details:g.nullable()}),a=e({business_revenue:c.nullable(),business_payment_volume:b.nullable(),business_when_service_received:l.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:p,business_seasonal:d.nullable(),business_other_payment_details:g.nullable()});return s?a:n};export{v as a,y as b}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-fad19d75.js";import{m as o,P as e}from"./p-7ff329b1.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as r}from"./p-e3fab0e2.js";import{C as a,a as h}from"./p-14c91ffd.js";import{g as p,a as d}from"./p-8115b2f4.js";import{E as n}from"./p-dce846bf.js";import{J as c}from"./p-4e017b58.js";import"./p-7d3be485.js";import"./p-5a62fca2.js";import"./p-d78eb6ce.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.payoutId=void 0,this.authToken=void 0,this.getPayout=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var h;try{const n=await i.fetchPayout(t,s);n.error?e({error:p(n.error),code:d(null===(h=n.error)||void 0===h?void 0:h.code),severity:a.ERROR}):o(new r(n.data))}catch(t){e({error:p(t),code:d(null==t?void 0:t.code),severity:a.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new e}),this.getPayoutCSV=o({authToken:this.authToken,service:new e})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:a.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payout_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t,H as r}from"./p-fad19d75.js";import{E as e}from"./p-dce846bf.js";import{B as o}from"./p-401d6607.js";import{B as a}from"./p-5e7c60d8.js";import{C as n,a as d}from"./p-14c91ffd.js";import{g as c,a as h}from"./p-8115b2f4.js";import{J as p}from"./p-4e017b58.js";import"./p-5a62fca2.js";import"./p-7d3be485.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-d78eb6ce.js";const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){this.analytics=new p(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:r,onError:e})=>{var o;try{const d=await t.fetchBusiness(s,i);if(d.error)return e({error:c(d.error),code:h(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});r({business:new a(d.data)})}catch(s){const i=h(null==s?void 0:s.code);return e({error:s.message||s,code:i,severity:n.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?e(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{m as justifi_business_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as t}from"./p-5a62fca2.js";import{A as i}from"./p-7d3be485.js";class n{async fetchBusiness(n,s){const e=`entities/business/${n}`;return i({authToken:s,apiOrigin:t.proxyApiOrigin}).get(e)}async patchBusiness(n,s,e){const a=`entities/business/${s}`;return i({authToken:n,apiOrigin:t.proxyApiOrigin}).patch(a,e)}}class s{async fetchIdentity(n,s){const e=`entities/identity/${n}`;return i({authToken:s,apiOrigin:t.proxyApiOrigin}).get(e)}async patchIdentity(n,s,e){const a=`entities/identity/${s}`;return i({authToken:n,apiOrigin:t.proxyApiOrigin}).patch(a,e)}async postIdentity(n,s){return i({authToken:n,apiOrigin:t.proxyApiOrigin}).post("entities/identity",s)}}export{n as B,s as I}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-fad19d75.js";import{P as i}from"./p-e3f4a2a6.js";import"./p-56f6ce4c.js";import{P as r}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as p}from"./p-dce846bf.js";import{J as d}from"./p-4e017b58.js";import"./p-7d3be485.js";import"./p-5a62fca2.js";import"./p-d78eb6ce.js";const c=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.paymentService=new i,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new d(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:e})=>async({onSuccess:i,onError:a})=>{var p;try{const d=await e.fetchPayment(t,s);d.error?a({error:n(d.error),code:h(null===(p=d.error)||void 0===p?void 0:p.code),severity:o.ERROR}):i({payment:new r(d.data)})}catch(t){const s=h(null==t?void 0:t.code);a({error:n(t),code:s,severity:o.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new i}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):e("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_payment_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t}from"./p-d78eb6ce.js";import{c as i}from"./p-5a62fca2.js";import{A as s}from"./p-7d3be485.js";class e{async record(t){return s({apiOrigin:i.proxyApiOrigin}).post("analytics",t)}}class r{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents()}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submitted","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(i=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:i.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}export{r as J}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as r,c as o}from"./p-fad19d75.js";import{c as a,F as t}from"./p-2eab3c90.js";import{u as d,l as i,k as c,m as f,n as s,q as l}from"./p-5022f21c.js";import{S as n}from"./p-6078a370.js";import{n as b}from"./p-8df7bde8.js";import{S as m}from"./p-ba4bae6f.js";import"./p-1815a43b.js";import"./p-5e7c60d8.js";import"./p-1ff8810b.js";const h=a({name:d.required("Enter full name"),address_line1:i.required("Enter street address"),address_line2:c.nullable(),address_city:f.required("Enter city"),address_state:s.required("Select state"),address_postal_code:l.required("Enter postal code")}),p=class{constructor(r){e(this,r),this.inputHandler=(e,r)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:r}))},this.legend=void 0,this.formController=void 0,this.billingInfo=void 0,this.errors={}}componentWillLoad(){this.formController=new t(h)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate()}}render(){const e=this.formController.getInitialValues();return r(m,{key:"b08094d3c44d35cdb3c21b4bc360dbbee19d7d15",exportparts:"label,input,input-invalid"},r("form",{key:"392538a781ffa2ac299cbc4203bab5efd10e77cc"},r("fieldset",{key:"f4b5a5ec9a91e9f50a3847c5eb16635c4f9d569a"},this.legend&&r("legend",{key:"eb75e22f9df33c13e3851ece784d237b8973e2c5"},this.legend),r("div",{key:"d7ffdc1cfeda5568ad003a4d3bbe94765de04605",class:"row gy-3"},r("div",{key:"c22f9e7b2f33b5c298bb5f0a5c7bcaa709c231a0",class:"col-12"},r("form-control-text",{key:"d6eb4d2f4d1a2a709e0f29bf18b5d9700bd91a13",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),r("div",{key:"8494ee3c14f8923d18d8708077e030c2f141a251",class:"col-12"},r("form-control-text",{key:"63266eb0e2b2b006a3c914a68703ee1cdf848f83",name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),r("div",{key:"0a19fcf5c172d2539f23e147f39461d84dfd9d37",class:"col-12"},r("form-control-text",{key:"0e5fae5d65d5ea195de0227d1e4f79cee7c7a0fb",name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),r("div",{key:"13104554e8247cb0534c3dc9e6a16b2f44397795",class:"col-12"},r("form-control-text",{key:"430e59713ec66ff7a6f735ca24640c27b05cbeee",name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),r("div",{key:"5b81499717f67d5f499f4ebfc585056ef5bd3d56",class:"col-12"},r("form-control-select",{key:"726c724eda5f25a92bad7e549ff7845ece7b41e1",name:"address_state",label:"State",options:n,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),r("div",{key:"5d5a6e0949c5ad93da5bc1837dadf88c2128212d",class:"col-12"},r("form-control-text",{key:"ebb4e77126d86011d9a1ed5d118461198b399092",name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:b}))))))}};p.style=":host{display:block}justifi-billing-form{margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}";const u=class{constructor(r){e(this,r),this.checkboxChanged=o(this,"checkboxChanged",7),this.isChecked=!1}handleCheckboxChange(e){this.isChecked=e.target.checked,this.checkboxChanged.emit(this.isChecked)}render(){return r("div",{key:"f22a132a518a98786c8486e08c9a65050f3c5ea0",class:"mt-4 form-check"},r("input",{key:"6f1392f9dd29a9761f5942b0a40e05a899858ada",type:"checkbox",checked:this.isChecked,onChange:e=>this.handleCheckboxChange(e),class:"form-check-input"}),r("label",{key:"e6e5908ba70ece8ea19370a04104d88d17237fc7",class:"form-check-label"},"Save new payment method"))}};export{p as justifi_billing_form,u as justifi_save_new_payment_method}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as s}from"./p-2eab3c90.js";import{S as t}from"./p-6078a370.js";import{b as a,a as r,r as n,s as i,c as l}from"./p-
|
|
1
|
+
import{a as e,b as s}from"./p-2eab3c90.js";import{S as t}from"./p-6078a370.js";import{b as a,a as r,r as n,s as i,c as l}from"./p-1815a43b.js";const c=e=>""===e?null:e,o=/^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/,d=/^(?!^\s+$)[a-zA-Z\s]*$/,u=/^\d+$/,m=/^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/,h=/P\.?\s?O\.?\s?Box|Postal\sBox/i;var b,v;!function(e){e.voidedCheck="voided_check",e.balanceSheet="balance_sheet",e.bankStatement="bank_statement",e.governmentId="government_id",e.profitAndLossStatement="profit_and_loss_statement",e.taxReturn="tax_return",e.other="other"}(b||(b={})),function(e){e.pending="pending",e.uploaded="uploaded",e.canceled="canceled",e.needed="needed"}(v||(v={}));class E{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class p{constructor(e,s){this.file=e.file,this.fileString=this.getFileString(),this.document_type=e.document_type,this.presigned_url=null,this.record_data={business_id:s,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}getFileString(){let e=new FileReader;return e.onload=e=>{this.fileString=e.target.result},e.readAsDataURL(this.file),this.fileString}setPresignedUrl(e){this.presigned_url=e}}const S=e().email("Enter valid email").transform(c),N=e().matches(/^\d{10}$/,"Enter valid phone number").transform(c),g=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(o,"Enter valid business name").transform(c),f=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(o,"Enter valid doing business as").transform(c),y=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(c),_=e().oneOf(a.map((e=>e.value)),"Select business classification").transform(c),$=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").matches(d,"Enter valid industry").transform(c),w=e().matches(u,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(c),A=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(c),x=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(d,"Enter valid name").transform(c),I=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").matches(d,"Enter valid title").transform(c),P=s=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${s} must be at least 18 years old`,(e=>{const s=new Date(e),t=new Date;return t.setFullYear(t.getFullYear()-18),s<=t})).transform(c),D=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(c),z=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").matches(m,"Enter valid address line 1").test("not-po-box","A PO Box is not a valid address entry",(e=>!h.test(e))).transform(c),k=e().max(100,"Address must be less than 100 characters").matches(m,"Enter valid address line 2").test("not-po-box","A PO Box is not a valid address entry",(e=>!h.test(e))).transform(c),B=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").matches(d,"Enter valid city").transform(c),Z=e().oneOf(t.map((e=>e.value)),"Select state").transform(c),j=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(c),q=e().matches(u,"Enter valid revenue").transform(c),C=e().matches(u,"Enter valid payment volume").transform(c),F=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(c),O=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(c),R=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(c),T=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(c),G=e().transform(c),H=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").matches(d,"Enter valid bank name").transform(c),J=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").matches(d,"Enter valid nickname").transform(c),K=e().oneOf(l.map((e=>e.value)),"Select account type").transform(c),L=e().min(8,"Account number must be at least 8 digits").max(17,"Account number must be less than 17 digits").matches(u,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(c),M=e().length(9,"Routing number must be 9 digits").matches(u,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const s=Array.from(String(e),Number);return 9===s.length&&0==(3*(s[0]+s[3]+s[6])+7*(s[1]+s[4]+s[7])+(s[2]+s[5]+s[8]))%10})(e))).transform(c),U=s(),Y=U,Q=U,V=U,W=(e,s)=>e.some((e=>e.document_type===b.voidedCheck))||s?U.nullable():U.required("Please select one or more files"),X=(e,s,t)=>{const a=parseInt(e);return s.some((e=>e.document_type===b.bankStatement))||t?U.nullable():a>=25e4&&!t?U.required("Please select one or more files"):void 0},ee=(e,s,t)=>{const a=parseInt(e);return s.some((e=>e.document_type===b.balanceSheet))||t?U.nullable():a>=1e6&&!t?U.required("Please select one or more files"):void 0},se=(e,s,t)=>{const a=parseInt(e);return s.some((e=>e.document_type===b.profitAndLossStatement))||t?U.nullable():a>=1e6&&!t?U.required("Please select one or more files"):void 0};export{J as A,K as B,L as C,M as D,W as E,Q as F,Y as G,V as H,ee as I,X as J,se as K,p as L,E as M,b as N,_ as a,g as b,A as c,f as d,S as e,C as f,F as g,O as h,$ as i,R as j,k,z as l,B as m,Z as n,G as o,N as p,j as q,q as r,T as s,w as t,x as u,I as v,y as w,P as x,D as y,H as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,a as t}from"./p-2eab3c90.js";import{l as a,k as n,m as s,n as r,q as o,u as i,v as l,e as c,p as m,x as d,y as p}from"./p-5022f21c.js";const u=i=>{const l=e({line1:a.required("Enter street address"),line2:n.nullable(),city:s.required("Enter city"),state:r.required("Select state"),postal_code:o.required("Enter postal code"),country:t().required("Select country")}),c=e({line1:a.nullable(),line2:n.nullable(),city:s.nullable(),state:r.nullable(),postal_code:o.nullable(),country:t().required("Select country")});return i?c:l},E=(a,n)=>{const s=e({name:i.required(`Enter ${a} name`),title:l.required(`Enter ${a} title`),email:c.required(`Enter ${a} email`),phone:m.required("Enter phone number"),dob_full:d(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p,address:u(n)}),r=e({name:i.required(`Enter ${a} name`),title:l.nullable(),email:c.nullable(),phone:m.nullable(),dob_full:d(a).nullable(),ssn_last4:t().nullable(),identification_number:p.nullable(),address:u(n)});return n?r:s};export{u as a,E as i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i={iframeOrigin:"https://components.justifi.ai/v1",proxyApiOrigin:"https://wc-proxy.justifi.ai",proxyAuthToken:"eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g",exampleAccountId:"acc_5Et9iXrSSAZR2KSouQGAWi",exampleBusinessId:"biz_3bh69bq1rk3dmXNoAKVonu",examplePaymentId:"py_1NNeEnf4FbelxDCQN2RHcE",examplePayoutId:"po_17745yESnHyEgWNeunmhmR",privateApiOrigin:"",privateAuthToken:""};export{i as c}
|