@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
|
@@ -5,17 +5,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
7
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
8
|
-
const business_service = require('./business.service-
|
|
8
|
+
const business_service = require('./business.service-031c0084.js');
|
|
9
9
|
const index_esm = require('./index.esm-52757963.js');
|
|
10
10
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
11
|
-
const schemaValidations = require('./schema-validations-
|
|
12
|
-
const businessFormOptions = require('./business-form-options-
|
|
13
|
-
const Api = require('./Api-
|
|
11
|
+
const schemaValidations = require('./schema-validations-0a7e46a3.js');
|
|
12
|
+
const businessFormOptions = require('./business-form-options-5db0bd5e.js');
|
|
13
|
+
const Api = require('./Api-b98b256f.js');
|
|
14
14
|
require('./Pagination-0da8f095.js');
|
|
15
15
|
require('./Payment-1a8a8ca6.js');
|
|
16
16
|
require('./Payout-a2dd7b01.js');
|
|
17
|
+
const config = require('./config-05767cba.js');
|
|
17
18
|
const utils = require('./utils-ddacfc44.js');
|
|
18
|
-
const Business = require('./Business-
|
|
19
|
+
const Business = require('./Business-aa799fec.js');
|
|
19
20
|
const skeleton = require('./skeleton-748c5dde.js');
|
|
20
21
|
const button = require('./button-3f400a66.js');
|
|
21
22
|
require('./utils-7a478c37.js');
|
|
@@ -147,7 +148,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
147
148
|
try {
|
|
148
149
|
const formValues = this.formController.values.getValue();
|
|
149
150
|
const payload = Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
|
|
150
|
-
const response = await this.api.post(this.bankAccountEndpoint,
|
|
151
|
+
const response = await this.api.post(this.bankAccountEndpoint, payload);
|
|
151
152
|
this.handleResponse(response, onSuccess);
|
|
152
153
|
}
|
|
153
154
|
catch (error) {
|
|
@@ -203,7 +204,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
203
204
|
;
|
|
204
205
|
componentWillLoad() {
|
|
205
206
|
this.formController = new index_esm.FormController(businessBankAccountSchema(this.allowOptionalFields));
|
|
206
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
207
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
207
208
|
if (this.businessId && this.authToken) {
|
|
208
209
|
this.fetchData();
|
|
209
210
|
}
|
|
@@ -216,7 +217,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
216
217
|
}
|
|
217
218
|
render() {
|
|
218
219
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
219
|
-
return (index.h("form", { key: '
|
|
220
|
+
return (index.h("form", { key: 'c2bdcd5ab6301d1a39e4d774df101281c41e2002' }, index.h("fieldset", { key: '7f6b607be5b7bc5fcd0dc1687adaa1ad00d7d2e9' }, index.h("legend", { key: '91b68746c65bb68f4fbd2eef151258e6915f8e35' }, "Bank Account Info"), index.h("hr", { key: '5eceedbf59faef10757c9e2b04d4dc4cd6b88a9b' }), index.h("div", { key: 'd3185db7fceb9851ccb44c1c89f8cbe5a37c24e0', class: "row gy-3" }, index.h("div", { key: '625caf0e9b93c244d94c69174ffff57126d39fa1', class: "col-12" }, index.h("form-control-text", { key: 'ddf3206b09047dfea56df850babe6c8f92ed33ee', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'd7d498353eec8e1947ce748aa35cbee63e793817', class: "col-12" }, index.h("form-control-text", { key: 'a80050dcd088db0209c2e5da65b310d7fc7877f5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'ea5578470e0e4d0fd5b973807475a02c7764c9c8', class: "col-12" }, index.h("form-control-text", { key: 'dd8c77b43ddfca61cfd5ed39ce6e142654f18d9f', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'cb3256226c5fdfa5ff2a02c456a6c384e06d16a6', class: "col-12" }, index.h("form-control-select", { key: 'a865f48350a0ae6b6a2a540dc2d54de72a8af074', name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'aa9062a25dade06db1f175d4233f2e5bb4e7ecd7', class: "col-12" }, index.h("form-control-text", { key: '1a87920e4df50178625446c770e4182d918664c7', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled })), index.h("div", { key: 'c72858a29aa1289b367c0eb89d6cc0eded23346d', class: "col-12" }, index.h("form-control-text", { key: 'b7fb93bcf16c01689245d5aca11142b013fe6adc', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled }))))));
|
|
220
221
|
}
|
|
221
222
|
};
|
|
222
223
|
|
|
@@ -334,7 +335,7 @@ const BusinessDocumentFormStep = class {
|
|
|
334
335
|
this.formLoading.emit(true);
|
|
335
336
|
const payload = docData.record_data;
|
|
336
337
|
try {
|
|
337
|
-
const response = await this.api.post(this.documentEndpoint,
|
|
338
|
+
const response = await this.api.post(this.documentEndpoint, payload);
|
|
338
339
|
return this.handleDocRecordResponse(docData, response);
|
|
339
340
|
}
|
|
340
341
|
catch (error) {
|
|
@@ -433,7 +434,7 @@ const BusinessDocumentFormStep = class {
|
|
|
433
434
|
return 'entities/document';
|
|
434
435
|
}
|
|
435
436
|
componentWillLoad() {
|
|
436
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
437
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
437
438
|
if (this.businessId && this.authToken) {
|
|
438
439
|
this.fetchData();
|
|
439
440
|
}
|
|
@@ -466,7 +467,7 @@ const BusinessDocumentFormStep = class {
|
|
|
466
467
|
return (index.h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
467
468
|
}
|
|
468
469
|
render() {
|
|
469
|
-
return (index.h("form", { key: '
|
|
470
|
+
return (index.h("form", { key: '38bb9070ca04f773ec092ebb14ce8ad20f33d8cf' }, index.h("fieldset", { key: '9c736d11200bb9c5a37c1319f3bfb349b7a5e93f' }, index.h("legend", { key: '92ed2fb864e85e38532af364518c25ef4bd275a5' }, "Document Uploads"), index.h("p", { key: 'f5803df74a5d0bc4e544c6cc968333f2a3f77385' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), index.h("hr", { key: '0c696d1bdb614bdacb3cbadeee66c95149efda68' }), this.documentsOnFile, index.h("div", { key: '7919205dfda677526d810a9fa1507ed8a55eafb8', class: "d-flex flex-column" }, this.formInputs))));
|
|
470
471
|
}
|
|
471
472
|
};
|
|
472
473
|
|
|
@@ -607,7 +608,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
607
608
|
this.sendData = async (onSuccess) => {
|
|
608
609
|
this.formLoading.emit(true);
|
|
609
610
|
try {
|
|
610
|
-
const payload =
|
|
611
|
+
const payload = this.termsPayload;
|
|
611
612
|
const response = await this.api.post(this.termsConditionsEndpoint, payload);
|
|
612
613
|
this.handleResponse(response, onSuccess);
|
|
613
614
|
}
|
|
@@ -650,7 +651,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
650
651
|
};
|
|
651
652
|
}
|
|
652
653
|
async componentWillLoad() {
|
|
653
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
654
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
654
655
|
this.formController = new index_esm.FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
655
656
|
if (this.businessId && this.authToken) {
|
|
656
657
|
this.fetchData();
|
|
@@ -686,7 +687,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
686
687
|
});
|
|
687
688
|
}
|
|
688
689
|
render() {
|
|
689
|
-
return (index.h("form", { key: '
|
|
690
|
+
return (index.h("form", { key: 'a292e2b1b69d152009000d9e7009e5ab07698bc8' }, index.h("fieldset", { key: '30843e9ed0029f64abcf076512af82974dd99598' }, index.h("legend", { key: '6453679a074056668bdd93cb91d2d725b73fb0da' }, "Terms and Conditions"), index.h("hr", { key: '6a44c1128e3dceb770b16533aa61fb5e81f5dda2' }), index.h("justifi-business-terms-conditions-text", { key: '714c9f81c1d1f91712a276259acf4eb6734b40d4' }), index.h("br", { key: '5e955908e53af5ade77fca9f2a47e8a9d10e7ad8' }), index.h("div", { key: '7c6ca9d2634c7cc6988292ffedf86b64c3865557', class: "row-gy-3" }, index.h("div", { key: 'e8f01c4bdcc07e0063e3b8f5f1acbabc9b3310f7', class: "col-12" }, index.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 }))))));
|
|
690
691
|
}
|
|
691
692
|
};
|
|
692
693
|
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
7
|
+
const Analytics = require('./Analytics-a0a86d82.js');
|
|
8
|
+
require('./package-99f4d813.js');
|
|
9
|
+
require('./Api-b98b256f.js');
|
|
9
10
|
|
|
10
11
|
const BankAccountForm = class {
|
|
11
12
|
constructor(hostRef) {
|
|
@@ -15,7 +16,7 @@ const BankAccountForm = class {
|
|
|
15
16
|
this.bankAccountFormTokenized = index.createEvent(this, "bankAccountFormTokenize", 7);
|
|
16
17
|
this.bankAccountFormValidated = index.createEvent(this, "bankAccountFormValidate", 7);
|
|
17
18
|
this.validationMode = undefined;
|
|
18
|
-
this.iframeOrigin =
|
|
19
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
19
20
|
this.internalStyleOverrides = undefined;
|
|
20
21
|
}
|
|
21
22
|
readyHandler(event) {
|
|
@@ -67,7 +68,7 @@ const BankAccountForm = class {
|
|
|
67
68
|
return this.childRef.resize();
|
|
68
69
|
}
|
|
69
70
|
render() {
|
|
70
|
-
return (index.h("justifi-payment-method-form", { key: '
|
|
71
|
+
return (index.h("justifi-payment-method-form", { key: 'e2fa64d199a6c550329c9797a6951335e7c12bc6', ref: el => {
|
|
71
72
|
if (el) {
|
|
72
73
|
this.childRef = el;
|
|
73
74
|
}
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const index_esm = require('./index.esm-52757963.js');
|
|
7
|
-
const schemaValidations = require('./schema-validations-
|
|
7
|
+
const schemaValidations = require('./schema-validations-0a7e46a3.js');
|
|
8
8
|
const stateOptions = require('./state-options-4fbcb48a.js');
|
|
9
9
|
const utils = require('./utils-ddacfc44.js');
|
|
10
10
|
const styledHost = require('./styled-host-cc053016.js');
|
|
11
|
-
require('./business-form-options-
|
|
12
|
-
require('./Business-
|
|
11
|
+
require('./business-form-options-5db0bd5e.js');
|
|
12
|
+
require('./Business-aa799fec.js');
|
|
13
13
|
require('./helpers-602962eb.js');
|
|
14
14
|
|
|
15
15
|
const BillingFormSchema = index_esm.create$3({
|
|
@@ -4,15 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
7
|
-
const business_service = require('./business.service-
|
|
8
|
-
const Business = require('./Business-
|
|
7
|
+
const business_service = require('./business.service-031c0084.js');
|
|
8
|
+
const Business = require('./Business-aa799fec.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
const utils = require('./utils-7a478c37.js');
|
|
11
|
-
const Analytics = require('./Analytics-
|
|
12
|
-
require('./
|
|
11
|
+
const Analytics = require('./Analytics-a0a86d82.js');
|
|
12
|
+
require('./config-05767cba.js');
|
|
13
|
+
require('./Api-b98b256f.js');
|
|
13
14
|
require('./helpers-602962eb.js');
|
|
14
15
|
require('./state-options-4fbcb48a.js');
|
|
15
|
-
require('./package-
|
|
16
|
+
require('./package-99f4d813.js');
|
|
16
17
|
|
|
17
18
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
19
|
var _a;
|
|
@@ -4,23 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const index_esm = require('./index.esm-52757963.js');
|
|
7
|
-
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-
|
|
8
|
-
const
|
|
9
|
-
const Api = require('./Api-
|
|
7
|
+
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-26b0eecb.js');
|
|
8
|
+
const businessIdentitySchema = require('./business-identity-schema-503ecb77.js');
|
|
9
|
+
const Api = require('./Api-b98b256f.js');
|
|
10
10
|
require('./Pagination-0da8f095.js');
|
|
11
11
|
require('./Payment-1a8a8ca6.js');
|
|
12
12
|
require('./Payout-a2dd7b01.js');
|
|
13
|
+
const config = require('./config-05767cba.js');
|
|
13
14
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
14
|
-
const Business = require('./Business-
|
|
15
|
-
const Analytics = require('./Analytics-
|
|
15
|
+
const Business = require('./Business-aa799fec.js');
|
|
16
|
+
const Analytics = require('./Analytics-a0a86d82.js');
|
|
16
17
|
const styledHost = require('./styled-host-cc053016.js');
|
|
17
|
-
require('./schema-validations-
|
|
18
|
+
require('./schema-validations-0a7e46a3.js');
|
|
18
19
|
require('./state-options-4fbcb48a.js');
|
|
19
|
-
require('./business-form-options-
|
|
20
|
+
require('./business-form-options-5db0bd5e.js');
|
|
20
21
|
require('./helpers-602962eb.js');
|
|
21
|
-
require('./package-
|
|
22
|
+
require('./package-99f4d813.js');
|
|
22
23
|
|
|
23
|
-
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address:
|
|
24
|
+
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: businessIdentitySchema.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchema('representative') }));
|
|
24
25
|
|
|
25
26
|
const businessFormCss = ":host{display:block}*::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){font-family:var(--jfi-layout-font-family);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-checkbox){font-family:var(--jfi-layout-font-family);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-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);line-height:var(--jfi-form-control-line-height)}*::part(input-checkbox):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-checkbox-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-checkbox-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-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)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
|
|
26
27
|
const JustifiBusinessFormStyle0 = businessFormCss;
|
|
@@ -40,8 +41,8 @@ const BusinessForm = class {
|
|
|
40
41
|
try {
|
|
41
42
|
const values = this.formController.values.getValue();
|
|
42
43
|
const initialValues = this.formController.getInitialValues();
|
|
43
|
-
const payload =
|
|
44
|
-
const response = await this.api.patch(this.businessEndpoint,
|
|
44
|
+
const payload = new Business.Business(Object.assign(Object.assign({}, initialValues), values)).payload;
|
|
45
|
+
const response = await this.api.patch(this.businessEndpoint, payload);
|
|
45
46
|
this.handleReponse(response);
|
|
46
47
|
}
|
|
47
48
|
catch (error) {
|
|
@@ -85,7 +86,7 @@ const BusinessForm = class {
|
|
|
85
86
|
if (!this.businessId)
|
|
86
87
|
console.error(missingBusinessIdMessage);
|
|
87
88
|
this.formController = new index_esm.FormController(businessFormSchema);
|
|
88
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
89
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
89
90
|
this.fetchData();
|
|
90
91
|
}
|
|
91
92
|
disconnectedCallback() {
|
|
@@ -113,7 +114,7 @@ const BusinessForm = class {
|
|
|
113
114
|
this.instantiateBusiness(response.data);
|
|
114
115
|
}
|
|
115
116
|
render() {
|
|
116
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
117
|
+
return (index.h(styledHost.StyledHost, { key: 'e388e1e7658969f0e5687102a62345e2790da97a', exportparts: "label,input,input-invalid" }, index.h("form", { key: 'c22a562e57539e982a071b1906e5bf0bcc249e7d', onSubmit: this.validateAndSubmit }, index.h("div", { key: '44243cd965b448f5be9058880aa2deb32f4ce8dc', class: "row gap-3" }, index.h("h1", { key: 'd666ed8ddacc8ac05d7f42c2f4824208b92cdb3f' }, this.title), index.h("form-alert", { key: 'b1d4025078c4373a789609f2e14d309f0ee280fe', text: this.errorMessage, hideAlert: this.hideErrors }), index.h("div", { key: 'cdc1d597a5dbf9581182de302a453e4ea98bb28f', class: "col-12 mb-4" }, index.h("justifi-business-core-info", { key: '2333164de020eadf54da91cabdcbeb87a2fd1b75', formController: this.formController })), index.h("div", { key: '74eafa5c419f6d6fe2eb3eeb8521e12175f7ee3a', class: "col-12 mb-4" }, index.h("justifi-legal-address-form", { key: '1e5a373f95a77bf3aba1a9f3538b3a2ac3dbf716', formController: this.formController })), index.h("div", { key: 'ec9f6195f3674b426722463341445f0ed1746178', class: "col-12 mb-4" }, index.h("justifi-additional-questions", { key: '0adbc60492f4ad71e3877c446376999418b7dc15', formController: this.formController })), index.h("div", { key: 'cdfb8d0d40e9f888afd9c23cd97d33d861d16f62', class: "col-12 mb-4" }, index.h("justifi-business-representative", { key: '4d03ec95b7c2918494c9970b3e6a5826d4d69a10', formController: this.formController })), index.h("div", { key: '0682dba469e57a938b175499312de5d5c4f55a69', class: "col-12 d-flex flex-row-reverse" }, index.h("button", { key: '64791e2742ee129787094c7123e87c4262735556', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: businessFormTypes.BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
120
|
BusinessForm.style = JustifiBusinessFormStyle0;
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
7
|
+
const Analytics = require('./Analytics-a0a86d82.js');
|
|
8
|
+
require('./package-99f4d813.js');
|
|
9
|
+
require('./Api-b98b256f.js');
|
|
9
10
|
|
|
10
11
|
const CardForm = class {
|
|
11
12
|
constructor(hostRef) {
|
|
@@ -15,7 +16,7 @@ const CardForm = class {
|
|
|
15
16
|
this.cardFormTokenized = index.createEvent(this, "cardFormTokenize", 7);
|
|
16
17
|
this.cardFormValidated = index.createEvent(this, "cardFormValidate", 7);
|
|
17
18
|
this.validationMode = undefined;
|
|
18
|
-
this.iframeOrigin =
|
|
19
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
19
20
|
this.singleLine = false;
|
|
20
21
|
this.internalStyleOverrides = undefined;
|
|
21
22
|
}
|
|
@@ -68,7 +69,7 @@ const CardForm = class {
|
|
|
68
69
|
return this.childRef.resize();
|
|
69
70
|
}
|
|
70
71
|
render() {
|
|
71
|
-
return (index.h("justifi-payment-method-form", { key: '
|
|
72
|
+
return (index.h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
|
|
72
73
|
if (el) {
|
|
73
74
|
this.childRef = el;
|
|
74
75
|
}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-af1b60a9.js');
|
|
7
|
+
const config = require('./config-05767cba.js');
|
|
7
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
9
|
const insuranceState = require('./insurance-state-80e24caf.js');
|
|
9
10
|
const button = require('./button-3f400a66.js');
|
|
@@ -48,7 +49,7 @@ const CheckoutCore = class {
|
|
|
48
49
|
});
|
|
49
50
|
this.renderState = 'error';
|
|
50
51
|
};
|
|
51
|
-
this.iframeOrigin =
|
|
52
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
52
53
|
this.authToken = undefined;
|
|
53
54
|
this.getCheckout = undefined;
|
|
54
55
|
this.complete = undefined;
|
|
@@ -144,7 +145,7 @@ const CheckoutCore = class {
|
|
|
144
145
|
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h(skeleton.Skeleton, { height: "24px" })), index.h("div", { class: this.isLoading && 'visually-hidden' }, index.h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), index.h("div", { class: "jfi-payment-total" }, index.h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", index.h("span", { class: "jfi-payment-total-amount" }, utils.formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
145
146
|
}
|
|
146
147
|
render() {
|
|
147
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
148
|
+
return (index.h(styledHost.StyledHost, { key: 'e322f280a57bb0baab61174bca21f0a7e9afa3c1' }, index.h("div", { key: '4ad8cc4f6243de8ddc03fb184ac4e960a04280eb', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: '7f13e26b36790558c8eb455f4d5ab3d0952b4e62', class: "col-12" }, index.h("h2", { key: 'c5e4b6fc30f51821537915f3ce5d4830ed3f8da9', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), index.h("div", { key: '164b7a2cc51d871ad4a92044d0f7240e376bd4b3', class: "col-12" }, index.h("slot", { key: 'a98b7c6a0bb9e4d1b102e832ee7aa43218432298', name: "insurance" })), index.h("div", { key: '415d3aac64b4190f54d785695c50a92ce02a76c2', class: "col-12 mt-4" }, index.h("h2", { key: '6d7f0df1165ec359877459a8bada855ef353c3b3', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), index.h("h3", { key: 'be8495d792cf065d2cbc7d3b46648c887951e313', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), index.h("div", { key: '5c9d8baffb50b0b10e9911463f307581cad7619c', class: "d-flex flex-column" }, this.paymentType)), index.h("div", { key: '9351832b69a8e5285cae35534299b51193248719', class: "col-12" }, index.h("div", { key: '5b0e382836c858369caf93a287272922024ce72b', class: "d-flex justify-content-end" }, index.h(button.Button, { key: 'f76d37000f7b026e97f083e7cf817bed8f84f34f', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
148
149
|
}
|
|
149
150
|
};
|
|
150
151
|
CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
|
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
7
|
const utils = require('./utils-7a478c37.js');
|
|
8
|
-
const Api = require('./Api-
|
|
8
|
+
const Api = require('./Api-b98b256f.js');
|
|
9
9
|
require('./Pagination-0da8f095.js');
|
|
10
10
|
require('./Payment-1a8a8ca6.js');
|
|
11
11
|
require('./Payout-a2dd7b01.js');
|
|
12
|
-
const
|
|
13
|
-
require('./
|
|
12
|
+
const config = require('./config-05767cba.js');
|
|
13
|
+
const Analytics = require('./Analytics-a0a86d82.js');
|
|
14
|
+
require('./package-99f4d813.js');
|
|
14
15
|
|
|
15
16
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
16
17
|
var _a;
|
|
@@ -69,7 +70,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
|
|
|
69
70
|
class CheckoutService {
|
|
70
71
|
async fetchCheckout(authToken, checkoutId) {
|
|
71
72
|
const endpoint = `checkouts/${checkoutId}`;
|
|
72
|
-
return Api.Api({ authToken, apiOrigin:
|
|
73
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
|
|
73
74
|
}
|
|
74
75
|
async complete(authToken, checkoutId, payment) {
|
|
75
76
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
@@ -79,7 +80,7 @@ class CheckoutService {
|
|
|
79
80
|
if (payment.payment_token) {
|
|
80
81
|
payload.payment_token = payment.payment_token;
|
|
81
82
|
}
|
|
82
|
-
return Api.Api({ authToken, apiOrigin:
|
|
83
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
7
|
+
const Api = require('./Api-b98b256f.js');
|
|
7
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
9
|
const utils = require('./utils-7a478c37.js');
|
|
9
10
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
10
|
-
const Analytics = require('./Analytics-
|
|
11
|
-
require('./package-
|
|
11
|
+
const Analytics = require('./Analytics-a0a86d82.js');
|
|
12
|
+
require('./package-99f4d813.js');
|
|
12
13
|
|
|
13
14
|
class ReportsService {
|
|
14
15
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
15
|
-
const api = Api.Api({ authToken: authToken, apiOrigin:
|
|
16
|
+
const api = Api.Api({ authToken: authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
16
17
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
17
18
|
return api.get(endpoint);
|
|
18
19
|
}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
6
7
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
7
|
-
const utils = require('./utils-
|
|
8
|
+
const utils = require('./utils-af1b60a9.js');
|
|
8
9
|
|
|
9
10
|
const PaymentMethodTypeLabels = {
|
|
10
11
|
bankAccount: 'New bank account',
|
|
@@ -17,7 +18,7 @@ const NewPaymentMethod = class {
|
|
|
17
18
|
this.onPaymentMethodOptionClick = () => {
|
|
18
19
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
19
20
|
};
|
|
20
|
-
this.iframeOrigin =
|
|
21
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
21
22
|
this.authToken = undefined;
|
|
22
23
|
this.accountId = undefined;
|
|
23
24
|
this.paymentMethodOption = undefined;
|
|
@@ -77,7 +78,7 @@ const NewPaymentMethod = class {
|
|
|
77
78
|
}
|
|
78
79
|
render() {
|
|
79
80
|
var _a, _b, _c, _d;
|
|
80
|
-
return (index.h("div", { key: '
|
|
81
|
+
return (index.h("div", { key: '7b17c9f060764f959286e739a2c05a43d1363f0e', class: "payment-method" }, index.h("div", { key: '5f09658f3be4cf75ee6df659d02b9bb29a0af2c3', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '5187b4d23e10272df064b554130b856332b77e43', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: '1814812e3246a5f9a5734cbb40af529a61e73f21', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
|
|
@@ -120,7 +121,7 @@ const PaymentMethodOptions = class {
|
|
|
120
121
|
this.insuranceToggled = undefined;
|
|
121
122
|
this.authToken = undefined;
|
|
122
123
|
this.accountId = undefined;
|
|
123
|
-
this.iframeOrigin =
|
|
124
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
124
125
|
this.savedPaymentMethods = [];
|
|
125
126
|
this.paymentAmount = undefined;
|
|
126
127
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -166,7 +167,7 @@ const PaymentMethodOptions = class {
|
|
|
166
167
|
}
|
|
167
168
|
render() {
|
|
168
169
|
var _a;
|
|
169
|
-
return (index.h(index.Host, { key: '
|
|
170
|
+
return (index.h(index.Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
170
171
|
const newCard = paymentMethodOption.id === Payment.PaymentMethodTypes.card;
|
|
171
172
|
const newBankAccount = paymentMethodOption.id === Payment.PaymentMethodTypes.bankAccount;
|
|
172
173
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -207,7 +208,7 @@ const SavedPaymentMethod = class {
|
|
|
207
208
|
this.onPaymentMethodOptionClick = () => {
|
|
208
209
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
209
210
|
};
|
|
210
|
-
this.iframeOrigin =
|
|
211
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
211
212
|
this.paymentMethodOption = undefined;
|
|
212
213
|
this.isSelected = undefined;
|
|
213
214
|
}
|
|
@@ -221,7 +222,7 @@ const SavedPaymentMethod = class {
|
|
|
221
222
|
;
|
|
222
223
|
render() {
|
|
223
224
|
var _a, _b, _c, _d, _e;
|
|
224
|
-
return (index.h(index.Fragment, { key: '
|
|
225
|
+
return (index.h(index.Fragment, { key: '9c2174123f1675d60bc48d8109821c0bc2ad7682' }, index.h("div", { key: '07bffce2603110d44f38ffb2f57a60f07faddb3b', class: "payment-method" }, index.h("div", { key: 'f489d3a05db45c2b2581bc8f0fc093afed453d91', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '70681612520aa621c39a017b72b25a7dd3211282', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: 'a58e14ae9d199b0e0eb01b4c0a4a8bd9c8fec41d', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
|
|
225
226
|
_e.acct_last_four)))));
|
|
226
227
|
}
|
|
227
228
|
};
|
|
@@ -266,7 +267,7 @@ const SezzlePaymentMethod = class {
|
|
|
266
267
|
this.sezzleCheckout = checkout;
|
|
267
268
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
268
269
|
};
|
|
269
|
-
this.iframeOrigin =
|
|
270
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
270
271
|
this.bnpl = undefined;
|
|
271
272
|
this.clientId = undefined;
|
|
272
273
|
this.accountId = undefined;
|
|
@@ -292,7 +293,7 @@ const SezzlePaymentMethod = class {
|
|
|
292
293
|
}
|
|
293
294
|
render() {
|
|
294
295
|
var _a, _b, _c, _d, _e;
|
|
295
|
-
return (index.h("div", { key: '
|
|
296
|
+
return (index.h("div", { key: 'a71ee3b09669bd27f82f13fc2e924978df3b3883', class: "payment-method" }, index.h("script", { key: 'def81ad89dfc5d5038ee0de6ea6e3d430f45842c', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", { key: 'b7c0afa6b157a981d61b4825dcf7fa5d031d701e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '5c52a82646f941e7df87b99cd326c32b64ab1373', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: 'bb520c7addf37652ad0f22cc5a08c3afb0a23cd8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, index.h("div", { key: '0e43ff1520bece6a98c61be7fa31acb3fd4711e9' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (index.h("small", { key: '9413c186f4dd6ee5b5296a4e0e60d469f5bec5c0' }, index.h("span", { key: 'dbc4ff1d6c5c7d0a189ea4f09773de501b21d5d1' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", index.h("span", { key: '72a4d2a7b34fffaee04d466a981a1dab3160c639' }, this.installmentPlan.schedule, " payments of"), "\u00A0", index.h("span", { key: 'c2e2c5c4eaec1d03120239c00b47ae4bac548be6', class: "fw-bold" }, utils.formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
296
297
|
}
|
|
297
298
|
};
|
|
298
299
|
|
|
@@ -4,21 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
7
|
-
const business_service = require('./business.service-
|
|
7
|
+
const business_service = require('./business.service-031c0084.js');
|
|
8
8
|
const index_esm = require('./index.esm-52757963.js');
|
|
9
|
-
const Business = require('./Business-
|
|
9
|
+
const Business = require('./Business-aa799fec.js');
|
|
10
10
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
11
|
-
const
|
|
11
|
+
const businessIdentitySchema = require('./business-identity-schema-503ecb77.js');
|
|
12
12
|
const button = require('./button-3f400a66.js');
|
|
13
13
|
const formInputMasks = require('./form-input-masks-0879c139.js');
|
|
14
14
|
const inputHandlers = require('./input-handlers-cff032bb.js');
|
|
15
15
|
require('./ComponentError-233ac749.js');
|
|
16
16
|
require('./utils-7a478c37.js');
|
|
17
|
-
require('./
|
|
17
|
+
require('./config-05767cba.js');
|
|
18
|
+
require('./Api-b98b256f.js');
|
|
18
19
|
require('./helpers-602962eb.js');
|
|
19
20
|
require('./state-options-4fbcb48a.js');
|
|
20
|
-
require('./schema-validations-
|
|
21
|
-
require('./business-form-options-
|
|
21
|
+
require('./schema-validations-0a7e46a3.js');
|
|
22
|
+
require('./business-form-options-5db0bd5e.js');
|
|
22
23
|
|
|
23
24
|
const BusinessOwnerForm = class {
|
|
24
25
|
constructor(hostRef) {
|
|
@@ -200,12 +201,12 @@ const BusinessOwnerFormCore = class {
|
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
get payload() {
|
|
203
|
-
let formValues =
|
|
204
|
+
let formValues = new Business.Owner(this.formController.values.getValue()).payload;
|
|
204
205
|
if (this.ownerId) {
|
|
205
|
-
return
|
|
206
|
+
return formValues;
|
|
206
207
|
}
|
|
207
208
|
else {
|
|
208
|
-
return
|
|
209
|
+
return Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
|
|
209
210
|
}
|
|
210
211
|
}
|
|
211
212
|
get formTitle() {
|
|
@@ -229,14 +230,14 @@ const BusinessOwnerFormCore = class {
|
|
|
229
230
|
}
|
|
230
231
|
}
|
|
231
232
|
componentWillLoad() {
|
|
232
|
-
this.formController = new index_esm.FormController(
|
|
233
|
+
this.formController = new index_esm.FormController(businessIdentitySchema.identitySchema('owner', this.allowOptionalFields));
|
|
233
234
|
this.ownerId ? this.getData() : this.instantiateOwner({});
|
|
234
235
|
}
|
|
235
236
|
componentDidLoad() {
|
|
236
237
|
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
237
238
|
}
|
|
238
239
|
render() {
|
|
239
|
-
return (index.h("form", { key: '
|
|
240
|
+
return (index.h("form", { key: '27f0d989f017bd03b84cf8c994fa96f9a65aad08', onSubmit: this.validateAndSubmit }, index.h("fieldset", { key: '2c793f1f8777181e5db0a4cae5b9994d9188685e' }, index.h("legend", { key: 'a8951fcd990c8136cf6672424869f5c96def3cef', class: "fw-semibold fs-5" }, this.formTitle), index.h("br", { key: 'faaf0cc27c448452a5172ad7fcfcf510ec586d2b' }), index.h("div", { key: '486638ad24414a05f84ada3f37a89d0cc12e7ffb', class: "row gy-3" }, index.h("owner-form-inputs", { key: 'bdfe7cb3305f31d93321319ef14eee3e5b331381', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), index.h("div", { key: '9e5c63e0637e0bffe5ab77a1f73c203704115479', class: "d-flex gap-2 justify-content-start" }, index.h(button.Button, { key: '85de4b69c697ebf96778f538b1535bd1fb2c43e7', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), index.h(button.Button, { key: '1dd026432f19f84ae2142101191e511ebd62c2b3', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), index.h("hr", { key: '2570611bbe663e2e128f03806ecb036ce750c80b' }))));
|
|
240
241
|
}
|
|
241
242
|
static get watchers() { return {
|
|
242
243
|
"isLoading": ["loadingWatcher"]
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const payment_service = require('./payment.service-
|
|
6
|
+
const payment_service = require('./payment.service-4b1c0a20.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
8
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
9
9
|
require('./Payout-a2dd7b01.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
14
|
-
require('./Api-
|
|
15
|
-
require('./
|
|
13
|
+
const Analytics = require('./Analytics-a0a86d82.js');
|
|
14
|
+
require('./Api-b98b256f.js');
|
|
15
|
+
require('./config-05767cba.js');
|
|
16
|
+
require('./package-99f4d813.js');
|
|
16
17
|
|
|
17
18
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
19
|
var _a;
|