@justifi/webcomponents 4.13.0 → 4.15.0
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/{Api-ab34a402.js → Api-3bc6e43f.js} +7 -2
- package/dist/cjs/{Payment-eceed10f.js → Payment-24f22eca.js} +2 -1
- package/dist/cjs/{SubAccount-b3902202.js → SubAccount-f1eda5da.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/business-additional-questions-schema-e7dd7bc3.js +57 -0
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/{index.esm-d25bd7bf.js → index.esm-a32e1831.js} +727 -0
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +20 -17
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +4 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1796 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +12 -6
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +13 -11
- package/dist/cjs/justifi-owner-form.cjs.entry.js +12 -8
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js +39 -5
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/payload-parsers-c2df4b29.js +95 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-336189d3.js → payment.service-35298e95.js} +4 -4
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payout.service-6012d576.js → payout.service-eec372aa.js} +4 -4
- package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{payload-parsers-6c4b5323.js → schema-validations-3c70335c.js} +15 -89
- package/dist/cjs/select-input.cjs.entry.js +31 -0
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +1 -1
- package/dist/cjs/text-input.cjs.entry.js +30 -0
- package/dist/cjs/{utils-6f62f7a1.js → utils-e58fe016.js} +0 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +7 -2
- package/dist/collection/api/Payment.js +2 -1
- package/dist/collection/api/services/business.service.js +1 -1
- package/dist/collection/api/services/checkout.service.js +5 -3
- package/dist/collection/api/services/payment.service.js +2 -2
- package/dist/collection/api/services/payout.service.js +2 -2
- package/dist/collection/api/services/reports.service.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/billing-form/billing-form-schema.js +8 -8
- package/dist/collection/components/billing-form/billing-form.js +49 -89
- package/dist/collection/components/billing-form/test/billing-form.spec.js +2 -1
- package/dist/collection/components/business-forms/business-form/business-form.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +4 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +6 -2
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +5 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +4 -2
- package/dist/collection/components/business-forms/schemas/schema-validations.js +5 -0
- package/dist/collection/components/business-list/business-list.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +74 -2
- package/dist/collection/components/checkout/checkout.js +73 -1
- package/dist/collection/components/checkout/payment-method-options.css +6 -6
- package/dist/collection/components/checkout/payment-method-options.js +42 -6
- package/dist/collection/components/checkout/{sezzel-payment-method.js → sezzle-payment-method.js} +2 -2
- package/dist/collection/components/checkout/test/checkout-core.spec.js +1 -1
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +1 -1
- package/dist/collection/components/payment-form/payment-form.js +56 -6
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js +18 -35
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-details.js +2 -2
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
- package/dist/docs.json +287 -81
- package/dist/esm/{Api-e9d568c7.js → Api-b09a2f6a.js} +7 -2
- package/dist/esm/{Payment-ef9fc1ae.js → Payment-3e94da9c.js} +2 -1
- package/dist/esm/{SubAccount-f4ae9809.js → SubAccount-80d46814.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-e96b0509.js → business-additional-questions-schema-1fdc5c40.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/{index.esm-22b47398.js → index.esm-d98bc080.js} +727 -1
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +16 -13
- package/dist/esm/justifi-additional-questions_4.entry.js +4 -1
- package/dist/esm/justifi-billing-form_2.entry.js +1791 -0
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +7 -7
- package/dist/esm/justifi-business-list.entry.js +4 -4
- package/dist/esm/justifi-checkout-core.entry.js +7 -3
- package/dist/esm/justifi-checkout.entry.js +12 -6
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-new-payment-method_4.entry.js +13 -11
- package/dist/esm/justifi-owner-form.entry.js +11 -7
- package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -4
- package/dist/esm/justifi-payment-details.entry.js +3 -3
- package/dist/esm/justifi-payment-form.entry.js +39 -5
- package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-proceeds-list.entry.js +4 -4
- package/dist/esm/justifi-refund-form.entry.js +4 -5
- package/dist/esm/justifi-subaccount-details.entry.js +6 -6
- package/dist/esm/justifi-subaccounts-list.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/payload-parsers-fd35eeca.js +88 -0
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-2fdc5018.js → payment.service-c62d82d3.js} +4 -4
- package/dist/esm/payments-list-core.entry.js +2 -2
- package/dist/esm/payout-details-core.entry.js +1 -1
- package/dist/esm/{payout.service-15064bcc.js → payout.service-28b9594f.js} +4 -4
- package/dist/esm/payouts-list-core.entry.js +2 -2
- package/dist/esm/{payload-parsers-32028700.js → schema-validations-31feaa53.js} +7 -84
- package/dist/{module/select-input2.js → esm/select-input.entry.js} +7 -30
- package/dist/esm/subaccount-account-details_4.entry.js +1 -1
- package/dist/{module/text-input2.js → esm/text-input.entry.js} +7 -29
- package/dist/esm/{utils-243abdb4.js → utils-37533368.js} +1 -2
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +7 -2
- package/dist/module/Payment.js +2 -1
- package/dist/module/billing-form.js +41 -62
- package/dist/module/business-additional-questions-form-step.js +2 -2
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-core-info-form-step.js +2 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-form-types.js +1 -154
- package/dist/module/business-identity-schema.js +5 -3
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-step.js +6 -3
- package/dist/module/business-representative.js +4 -1
- package/dist/module/checkout-core.js +27 -19
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/index.esm.js +727 -1
- package/dist/module/justifi-business-details.js +2 -2
- package/dist/module/justifi-business-form.js +4 -5
- package/dist/module/justifi-business-list.js +1 -1
- package/dist/module/justifi-checkout.js +34 -24
- package/dist/module/justifi-gross-payment-chart.js +2 -2
- package/dist/module/justifi-payment-balance-transactions.js +1 -1
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-form.js +50 -15
- package/dist/module/justifi-payment-provisioning.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-proceeds-list.js +1 -1
- package/dist/module/justifi-refund-form.js +2 -3
- package/dist/module/justifi-sezzle-payment-method.d.ts +11 -0
- package/dist/module/justifi-sezzle-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +2 -2
- package/dist/module/justifi-subaccounts-list.js +1 -1
- package/dist/module/legal-address-form-step.js +3 -3
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/new-payment-method.js +9 -9
- package/dist/module/owner-form.js +9 -5
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-options.js +26 -22
- package/dist/module/payment.service.js +2 -2
- package/dist/module/payout.service.js +2 -2
- package/dist/module/schema-validations.js +159 -0
- package/dist/module/select-input.js +48 -1
- package/dist/module/{sezzel-payment-method.js → sezzle-payment-method.js} +6 -6
- package/dist/module/text-input.js +46 -1
- package/dist/module/utils2.js +1 -2
- package/dist/module/utils3.js +12 -21
- package/dist/module/utils4.js +21 -12
- package/dist/types/api/Api.d.ts +5 -1
- package/dist/types/api/Payment.d.ts +2 -1
- package/dist/types/components/billing-form/billing-form.d.ts +8 -15
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -1
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +2 -0
- package/dist/types/components/checkout/checkout-core.d.ts +4 -0
- package/dist/types/components/checkout/checkout.d.ts +4 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +2 -0
- package/dist/types/components/checkout/{sezzel-payment-method.d.ts → sezzle-payment-method.d.ts} +1 -1
- package/dist/types/components/payment-form/payment-form.d.ts +7 -1
- package/dist/types/components.d.ts +38 -29
- package/dist/webcomponents/p-0603a526.entry.js +1 -0
- package/dist/webcomponents/{p-3917edbf.entry.js → p-09a6df17.entry.js} +1 -1
- package/dist/webcomponents/{p-7da249b8.entry.js → p-1367c4c7.entry.js} +1 -1
- package/dist/webcomponents/p-1b959678.entry.js +1 -0
- package/dist/webcomponents/{p-a6f170ba.entry.js → p-1f23c9d5.entry.js} +1 -1
- package/dist/webcomponents/p-21f301a0.entry.js +1 -0
- package/dist/webcomponents/p-243caf7c.entry.js +1 -0
- package/dist/webcomponents/{p-c6e207f6.entry.js → p-27ea1f3f.entry.js} +1 -1
- package/dist/webcomponents/{p-13e2f667.js → p-29c0b182.js} +1 -1
- package/dist/webcomponents/{p-28b38699.js → p-3cd675e7.js} +1 -1
- package/dist/webcomponents/p-3d70b0f1.entry.js +1 -0
- package/dist/webcomponents/{p-41bdee27.entry.js → p-55d37253.entry.js} +1 -1
- package/dist/webcomponents/{p-02b18979.entry.js → p-60ea8fd1.entry.js} +1 -1
- package/dist/webcomponents/p-624ed594.entry.js +1 -0
- package/dist/webcomponents/p-62bbcdfb.entry.js +1 -0
- package/dist/webcomponents/p-76e74f01.js +1 -0
- package/dist/webcomponents/p-7ca334d6.entry.js +1 -0
- package/dist/webcomponents/p-7d6c67bb.js +1 -0
- package/dist/webcomponents/{p-78b32fb9.entry.js → p-7ea5b11c.entry.js} +1 -1
- package/dist/webcomponents/p-83ae34bf.js +1 -0
- package/dist/webcomponents/p-84aea66c.entry.js +1 -0
- package/dist/webcomponents/p-8960e936.entry.js +1 -0
- package/dist/webcomponents/p-8d53f1de.entry.js +1 -0
- package/dist/webcomponents/p-969572f2.entry.js +1 -0
- package/dist/webcomponents/{p-fce2b224.entry.js → p-9a36fca6.entry.js} +1 -1
- package/dist/webcomponents/p-a38fdda7.entry.js +1 -0
- package/dist/webcomponents/{p-1334f776.entry.js → p-adc9ae0f.entry.js} +1 -1
- package/dist/webcomponents/p-b53d7b7f.js +1 -0
- package/dist/webcomponents/p-b8d70349.entry.js +1 -0
- package/dist/webcomponents/p-b9db1c52.entry.js +1 -0
- package/dist/webcomponents/p-ca39c89f.js +1 -0
- package/dist/webcomponents/p-d6b980a3.entry.js +1 -0
- package/dist/webcomponents/p-dd609661.js +1 -0
- package/dist/webcomponents/{p-9ba31a6a.entry.js → p-de4ffaa1.entry.js} +1 -1
- package/dist/webcomponents/{p-9f529959.entry.js → p-e1a3a670.entry.js} +1 -1
- package/dist/webcomponents/p-e4be71ee.entry.js +1 -0
- package/dist/webcomponents/p-e8706cc4.js +1 -0
- package/dist/webcomponents/{p-65510838.js → p-f4dec164.js} +1 -1
- package/dist/webcomponents/p-f942f90b.entry.js +1 -0
- package/dist/webcomponents/p-fea93cb9.entry.js +1 -0
- package/dist/webcomponents/{p-f76283a5.entry.js → p-fee64d38.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-additional-questions-schema-0a35f597.js +0 -57
- package/dist/cjs/form-2ad3d374.js +0 -729
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +0 -1864
- package/dist/esm/form-5279c05a.js +0 -727
- package/dist/esm/justifi-billing-form_4.entry.js +0 -1857
- package/dist/module/form.js +0 -727
- package/dist/module/justifi-sezzel-payment-method.d.ts +0 -11
- package/dist/module/justifi-sezzel-payment-method.js +0 -6
- package/dist/webcomponents/p-02fa533c.js +0 -1
- package/dist/webcomponents/p-101b2648.entry.js +0 -1
- package/dist/webcomponents/p-132ba228.js +0 -1
- package/dist/webcomponents/p-1885c478.entry.js +0 -1
- package/dist/webcomponents/p-23099f1f.entry.js +0 -1
- package/dist/webcomponents/p-230b96df.entry.js +0 -1
- package/dist/webcomponents/p-3da23f21.js +0 -1
- package/dist/webcomponents/p-4c84952f.entry.js +0 -1
- package/dist/webcomponents/p-64710363.entry.js +0 -1
- package/dist/webcomponents/p-731085e3.js +0 -1
- package/dist/webcomponents/p-7e334dce.entry.js +0 -1
- package/dist/webcomponents/p-7faacb1e.entry.js +0 -1
- package/dist/webcomponents/p-9b4b91ba.js +0 -1
- package/dist/webcomponents/p-a9af8f40.entry.js +0 -1
- package/dist/webcomponents/p-ade12f56.js +0 -1
- package/dist/webcomponents/p-b81afd51.entry.js +0 -1
- package/dist/webcomponents/p-bb58e656.entry.js +0 -1
- package/dist/webcomponents/p-bc12b8b9.js +0 -1
- package/dist/webcomponents/p-bfe7c55c.entry.js +0 -1
- package/dist/webcomponents/p-c1be3378.entry.js +0 -1
- package/dist/webcomponents/p-cb31488b.entry.js +0 -1
- package/dist/webcomponents/p-d0a8c631.entry.js +0 -1
- package/dist/webcomponents/p-d7d40d26.entry.js +0 -1
- package/dist/webcomponents/p-efbc8ffc.entry.js +0 -1
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning.cjs\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form.cjs\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout.cjs\",[[0,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details.cjs\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions.cjs\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form.cjs\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list.cjs\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form.cjs\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form.cjs\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"gross-payment-chart-core.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-gross-payment-chart.cjs\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"form-control-file.cjs\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"subaccount-bank-details.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core.cjs\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"creatingNewPaymentMethod\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3.cjs\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form.cjs\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2.cjs\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4.cjs\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}]]],[\"subaccount-account-details_4.cjs\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary.cjs\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"maskOptions\":[8,\"mask-options\"]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5.cjs\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5.cjs\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2.cjs\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"justifi-billing-form_4.cjs\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4.cjs\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"paymentAmount\":[1,\"payment-amount\"],\"selectedPaymentMethodId\":[32],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzel-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]],[\"form-control-select_2.cjs\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]]]"), options);
|
|
20
|
+
return index.bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning.cjs\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form.cjs\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout.cjs\",[[0,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"disableCreditCard\":[4,\"disable-credit-card\"],\"disableBankAccount\":[4,\"disable-bank-account\"],\"disableBnpl\":[4,\"disable-bnpl\"],\"disablePaymentMethodGroup\":[4,\"disable-payment-method-group\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"authToken\":[1,\"auth-token\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details.cjs\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions.cjs\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form.cjs\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list.cjs\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form.cjs\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form.cjs\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-gross-payment-chart.cjs\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"form-control-file.cjs\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"select-input.cjs\",[[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}]]],[\"subaccount-bank-details.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"text-input.cjs\",[[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}]]],[\"justifi-checkout-core.cjs\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"disableCreditCard\":[4,\"disable-credit-card\"],\"disableBankAccount\":[4,\"disable-bank-account\"],\"disableBnpl\":[4,\"disable-bnpl\"],\"disablePaymentMethodGroup\":[4,\"disable-payment-method-group\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"creatingNewPaymentMethod\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"justifi-table_2.cjs\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"gross-payment-chart-core.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-select_2.cjs\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"form-control-date_3.cjs\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form.cjs\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2.cjs\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"form-control-monetary.cjs\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"maskOptions\":[8,\"mask-options\"]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4.cjs\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}]]],[\"subaccount-account-details_4.cjs\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"justifi-additional-questions-form-step_5.cjs\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5.cjs\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-billing-form_2.cjs\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"formController\":[32],\"billingInfo\":[32],\"errors\":[32],\"getValues\":[64],\"fill\":[64],\"validate\":[64]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4.cjs\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"showBnpl\":[4,\"show-bnpl\"],\"showSavedPaymentMethods\":[4,\"show-saved-payment-methods\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"paymentAmount\":[1,\"payment-amount\"],\"selectedPaymentMethodId\":[32],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzle-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]]]"), options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { v4 as uuidv4 } from "uuid";
|
|
2
|
-
const Api = (authToken, apiOrigin) => {
|
|
2
|
+
const Api = ({ authToken, apiOrigin }) => {
|
|
3
3
|
async function getAuthorizationHeader() {
|
|
4
|
+
if (!authToken) {
|
|
5
|
+
return {
|
|
6
|
+
'Content-Type': 'application/json',
|
|
7
|
+
};
|
|
8
|
+
}
|
|
4
9
|
return {
|
|
5
|
-
|
|
10
|
+
Authorization: `Bearer ${authToken}`,
|
|
6
11
|
'Idempotency-Key': uuidv4(),
|
|
7
12
|
'Content-Type': 'application/json',
|
|
8
13
|
};
|
|
@@ -7,7 +7,8 @@ export var PaymentMethodTypes;
|
|
|
7
7
|
(function (PaymentMethodTypes) {
|
|
8
8
|
PaymentMethodTypes["card"] = "card";
|
|
9
9
|
PaymentMethodTypes["bankAccount"] = "bankAccount";
|
|
10
|
-
PaymentMethodTypes["
|
|
10
|
+
PaymentMethodTypes["sezzle"] = "sezzle";
|
|
11
|
+
PaymentMethodTypes["saved"] = "saved";
|
|
11
12
|
})(PaymentMethodTypes || (PaymentMethodTypes = {}));
|
|
12
13
|
export var PaymentStatuses;
|
|
13
14
|
(function (PaymentStatuses) {
|
|
@@ -3,6 +3,6 @@ import Api from "../Api";
|
|
|
3
3
|
export class BusinessService {
|
|
4
4
|
async fetchBusiness(businessId, authToken) {
|
|
5
5
|
const endpoint = `entities/business/${businessId}`;
|
|
6
|
-
return Api(authToken, config.proxyApiOrigin).get(endpoint);
|
|
6
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -3,14 +3,16 @@ import { config } from "../../../config";
|
|
|
3
3
|
export class CheckoutService {
|
|
4
4
|
async fetchCheckout(authToken, checkoutId) {
|
|
5
5
|
const endpoint = `checkouts/${checkoutId}`;
|
|
6
|
-
return Api(authToken, config.proxyApiOrigin).get(endpoint);
|
|
6
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
7
7
|
}
|
|
8
8
|
async complete(authToken, checkoutId, payment) {
|
|
9
9
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
10
|
-
const payload = {
|
|
10
|
+
const payload = {
|
|
11
|
+
payment_mode: payment.payment_mode,
|
|
12
|
+
};
|
|
11
13
|
if (payment.payment_token) {
|
|
12
14
|
payload.payment_token = payment.payment_token;
|
|
13
15
|
}
|
|
14
|
-
return Api(authToken, config.proxyApiOrigin).post(endpoint, JSON.stringify(payload));
|
|
16
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -2,12 +2,12 @@ import { Api } from "..";
|
|
|
2
2
|
import { config } from "../../../config";
|
|
3
3
|
export class PaymentService {
|
|
4
4
|
async fetchPayments(accountId, authToken, params) {
|
|
5
|
-
const api = Api(authToken, config.proxyApiOrigin);
|
|
5
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
6
6
|
const endpoint = `account/${accountId}/payments`;
|
|
7
7
|
return api.get(endpoint, params);
|
|
8
8
|
}
|
|
9
9
|
async fetchPayment(paymentId, authToken) {
|
|
10
10
|
const endpoint = `payments/${paymentId}`;
|
|
11
|
-
return Api(authToken, config.proxyApiOrigin).get(endpoint);
|
|
11
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -2,12 +2,12 @@ import { Api } from "..";
|
|
|
2
2
|
import { config } from "../../../config";
|
|
3
3
|
export class PayoutService {
|
|
4
4
|
async fetchPayouts(accountId, authToken, params) {
|
|
5
|
-
const api = Api(authToken, config.proxyApiOrigin);
|
|
5
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
6
6
|
const endpoint = `account/${accountId}/payouts`;
|
|
7
7
|
return api.get(endpoint, params);
|
|
8
8
|
}
|
|
9
9
|
async fetchPayout(payoutId, authToken) {
|
|
10
|
-
const api = Api(authToken, config.proxyApiOrigin);
|
|
10
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
11
11
|
const endpoint = `payouts/${payoutId}`;
|
|
12
12
|
return api.get(endpoint);
|
|
13
13
|
}
|
|
@@ -2,7 +2,7 @@ import { config } from "../../../config";
|
|
|
2
2
|
import Api from "../Api";
|
|
3
3
|
export class ReportsService {
|
|
4
4
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
5
|
-
const api = Api(authToken, config.proxyApiOrigin);
|
|
5
|
+
const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
|
|
6
6
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
7
7
|
return api.get(endpoint);
|
|
8
8
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"components/checkout/new-payment-method.js",
|
|
34
34
|
"components/checkout/payment-method-options.js",
|
|
35
35
|
"components/checkout/saved-payment-method.js",
|
|
36
|
-
"components/checkout/
|
|
36
|
+
"components/checkout/sezzle-payment-method.js",
|
|
37
37
|
"components/details/details.js",
|
|
38
38
|
"components/form/form-control-date.js",
|
|
39
39
|
"components/form/form-control-datepart.js",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { object
|
|
2
|
-
import {
|
|
1
|
+
import { object } from "yup";
|
|
2
|
+
import { cityValidation, identityNameValidation, lineOneValidation, lineTwoValidation, postalValidation, stateValidation } from "../business-forms/schemas/schema-validations";
|
|
3
3
|
const BillingFormSchema = object({
|
|
4
|
-
name:
|
|
5
|
-
address_line1:
|
|
6
|
-
address_line2:
|
|
7
|
-
address_city:
|
|
8
|
-
address_state:
|
|
9
|
-
address_postal_code:
|
|
4
|
+
name: identityNameValidation.required('Enter full name'),
|
|
5
|
+
address_line1: lineOneValidation.required('Enter street address'),
|
|
6
|
+
address_line2: lineTwoValidation.nullable(),
|
|
7
|
+
address_city: cityValidation.required('Enter city'),
|
|
8
|
+
address_state: stateValidation.required('Select state'),
|
|
9
|
+
address_postal_code: postalValidation.required('Enter postal code'),
|
|
10
10
|
});
|
|
11
11
|
export default BillingFormSchema;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import BillingFormSchema from "./billing-form-schema";
|
|
3
3
|
import StateOptions from "../../utils/state-options";
|
|
4
|
+
import { FormController } from "../form/form";
|
|
5
|
+
import { filterPostalInput } from "../form/utils";
|
|
4
6
|
/**
|
|
5
7
|
* @exportedPart label: Label for inputs
|
|
6
8
|
* @exportedPart input: The input fields
|
|
@@ -8,59 +10,36 @@ import StateOptions from "../../utils/state-options";
|
|
|
8
10
|
*/
|
|
9
11
|
export class BillingForm {
|
|
10
12
|
constructor() {
|
|
11
|
-
this.
|
|
12
|
-
|
|
13
|
-
name: '',
|
|
14
|
-
address_line1: '',
|
|
15
|
-
address_line2: '',
|
|
16
|
-
address_city: '',
|
|
17
|
-
address_state: '',
|
|
18
|
-
address_postal_code: '',
|
|
13
|
+
this.inputHandler = (name, value) => {
|
|
14
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
19
15
|
};
|
|
20
|
-
this.
|
|
16
|
+
this.legend = undefined;
|
|
17
|
+
this.formController = undefined;
|
|
18
|
+
this.billingInfo = undefined;
|
|
19
|
+
this.errors = {};
|
|
20
|
+
}
|
|
21
|
+
componentWillLoad() {
|
|
22
|
+
this.formController = new FormController(BillingFormSchema);
|
|
21
23
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
componentDidLoad() {
|
|
25
|
+
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
26
|
+
this.formController.errors.subscribe(errors => {
|
|
27
|
+
this.errors = Object.assign({}, errors);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async getValues() {
|
|
31
|
+
return this.formController.values.getValue();
|
|
29
32
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Method for filling the form with provided data
|
|
32
|
-
* @argument {BillingFormFields} fields - The fields to fill the form with
|
|
33
|
-
*/
|
|
34
33
|
async fill(fields) {
|
|
35
|
-
this.
|
|
34
|
+
this.formController.setValues(fields);
|
|
36
35
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Run validation on the form
|
|
39
|
-
*/
|
|
40
36
|
async validate() {
|
|
41
|
-
|
|
42
|
-
let isValid = true;
|
|
43
|
-
try {
|
|
44
|
-
await BillingFormSchema.validate(this.billingFields, { abortEarly: false });
|
|
45
|
-
}
|
|
46
|
-
catch (err) {
|
|
47
|
-
isValid = false;
|
|
48
|
-
err.inner.map((item) => {
|
|
49
|
-
newErrors[item.path] = item.message;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
this.billingFieldsErrors = newErrors;
|
|
37
|
+
let isValid = await this.formController.validate();
|
|
53
38
|
return { isValid: isValid };
|
|
54
39
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns the values of the form as an object
|
|
57
|
-
* @returns {Promise<BillingFormFields>} The values of the form
|
|
58
|
-
*/
|
|
59
|
-
async getValues() {
|
|
60
|
-
return this.billingFields;
|
|
61
|
-
}
|
|
62
40
|
render() {
|
|
63
|
-
|
|
41
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
42
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, this.legend && h("legend", null, this.legend), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, error: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, error: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, error: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, error: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, error: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: filterPostalInput })))))));
|
|
64
43
|
}
|
|
65
44
|
static get is() { return "justifi-billing-form"; }
|
|
66
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,20 +76,17 @@ export class BillingForm {
|
|
|
97
76
|
}
|
|
98
77
|
static get states() {
|
|
99
78
|
return {
|
|
100
|
-
"
|
|
101
|
-
"
|
|
79
|
+
"formController": {},
|
|
80
|
+
"billingInfo": {},
|
|
81
|
+
"errors": {}
|
|
102
82
|
};
|
|
103
83
|
}
|
|
104
84
|
static get methods() {
|
|
105
85
|
return {
|
|
106
|
-
"
|
|
86
|
+
"getValues": {
|
|
107
87
|
"complexType": {
|
|
108
|
-
"signature": "(
|
|
109
|
-
"parameters": [
|
|
110
|
-
"name": "fields",
|
|
111
|
-
"type": "BillingFormFields",
|
|
112
|
-
"docs": "- The fields to fill the form with"
|
|
113
|
-
}],
|
|
88
|
+
"signature": "() => Promise<BillingFormFields>",
|
|
89
|
+
"parameters": [],
|
|
114
90
|
"references": {
|
|
115
91
|
"Promise": {
|
|
116
92
|
"location": "global",
|
|
@@ -122,72 +98,56 @@ export class BillingForm {
|
|
|
122
98
|
"id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
123
99
|
}
|
|
124
100
|
},
|
|
125
|
-
"return": "Promise<
|
|
101
|
+
"return": "Promise<BillingFormFields>"
|
|
126
102
|
},
|
|
127
103
|
"docs": {
|
|
128
|
-
"text": "
|
|
129
|
-
"tags": [
|
|
130
|
-
"name": "argument",
|
|
131
|
-
"text": "fields - The fields to fill the form with"
|
|
132
|
-
}]
|
|
104
|
+
"text": "",
|
|
105
|
+
"tags": []
|
|
133
106
|
}
|
|
134
107
|
},
|
|
135
|
-
"
|
|
108
|
+
"fill": {
|
|
136
109
|
"complexType": {
|
|
137
|
-
"signature": "() => Promise<
|
|
138
|
-
"parameters": [
|
|
110
|
+
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
111
|
+
"parameters": [{
|
|
112
|
+
"name": "fields",
|
|
113
|
+
"type": "BillingFormFields",
|
|
114
|
+
"docs": ""
|
|
115
|
+
}],
|
|
139
116
|
"references": {
|
|
140
117
|
"Promise": {
|
|
141
118
|
"location": "global",
|
|
142
119
|
"id": "global::Promise"
|
|
143
120
|
},
|
|
144
|
-
"
|
|
121
|
+
"BillingFormFields": {
|
|
145
122
|
"location": "import",
|
|
146
|
-
"path": "
|
|
147
|
-
"id": "
|
|
123
|
+
"path": "./billing-form-schema",
|
|
124
|
+
"id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
148
125
|
}
|
|
149
126
|
},
|
|
150
|
-
"return": "Promise<
|
|
127
|
+
"return": "Promise<void>"
|
|
151
128
|
},
|
|
152
129
|
"docs": {
|
|
153
|
-
"text": "
|
|
130
|
+
"text": "",
|
|
154
131
|
"tags": []
|
|
155
132
|
}
|
|
156
133
|
},
|
|
157
|
-
"
|
|
134
|
+
"validate": {
|
|
158
135
|
"complexType": {
|
|
159
|
-
"signature": "() => Promise<
|
|
136
|
+
"signature": "() => Promise<{ isValid: boolean; }>",
|
|
160
137
|
"parameters": [],
|
|
161
138
|
"references": {
|
|
162
139
|
"Promise": {
|
|
163
140
|
"location": "global",
|
|
164
141
|
"id": "global::Promise"
|
|
165
|
-
},
|
|
166
|
-
"BillingFormFields": {
|
|
167
|
-
"location": "import",
|
|
168
|
-
"path": "./billing-form-schema",
|
|
169
|
-
"id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
170
142
|
}
|
|
171
143
|
},
|
|
172
|
-
"return": "Promise<
|
|
144
|
+
"return": "Promise<{ isValid: boolean; }>"
|
|
173
145
|
},
|
|
174
146
|
"docs": {
|
|
175
|
-
"text": "
|
|
176
|
-
"tags": [
|
|
177
|
-
"name": "returns",
|
|
178
|
-
"text": "The values of the form"
|
|
179
|
-
}]
|
|
147
|
+
"text": "",
|
|
148
|
+
"tags": []
|
|
180
149
|
}
|
|
181
150
|
}
|
|
182
151
|
};
|
|
183
152
|
}
|
|
184
|
-
static get listeners() {
|
|
185
|
-
return [{
|
|
186
|
-
"name": "fieldReceivedInput",
|
|
187
|
-
"method": "setFormValue",
|
|
188
|
-
"target": undefined,
|
|
189
|
-
"capture": false,
|
|
190
|
-
"passive": false
|
|
191
|
-
}];
|
|
192
|
-
}
|
|
193
153
|
}
|
|
@@ -16,7 +16,8 @@ describe('justifi-billing-form', () => {
|
|
|
16
16
|
address_postal_code: '10000',
|
|
17
17
|
};
|
|
18
18
|
await instance.fill(fields);
|
|
19
|
-
|
|
19
|
+
const values = await instance.getValues();
|
|
20
|
+
expect(values).toEqual(fields);
|
|
20
21
|
});
|
|
21
22
|
it('validates the form', async () => {
|
|
22
23
|
const page = await newSpecPage({
|
|
@@ -84,7 +84,7 @@ export class BusinessForm {
|
|
|
84
84
|
if (!this.businessId)
|
|
85
85
|
console.error(missingBusinessIdMessage);
|
|
86
86
|
this.formController = new FormController(businessFormSchema);
|
|
87
|
-
this.api = Api(this.authToken, config.proxyApiOrigin);
|
|
87
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
88
88
|
this.fetchData();
|
|
89
89
|
}
|
|
90
90
|
handleReponse(response) {
|
|
@@ -17,13 +17,16 @@ export class BusinessRepresentative {
|
|
|
17
17
|
this.errors = {};
|
|
18
18
|
this.representative = {};
|
|
19
19
|
}
|
|
20
|
+
get identificationNumberLabel() {
|
|
21
|
+
return this.representative.ssn_last4 ? 'Update SSN (optional)' : 'SSN';
|
|
22
|
+
}
|
|
20
23
|
componentDidLoad() {
|
|
21
24
|
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors.representative)));
|
|
22
25
|
this.formController.values.subscribe(values => (this.representative = Object.assign({}, values.representative)));
|
|
23
26
|
}
|
|
24
27
|
render() {
|
|
25
28
|
const representativeDefaultValue = this.formController.getInitialValues().representative;
|
|
26
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label:
|
|
29
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
27
30
|
}
|
|
28
31
|
static get is() { return "justifi-business-representative"; }
|
|
29
32
|
static get originalStyleUrls() {
|
|
@@ -30,6 +30,7 @@ export class BusinessOwnerForm {
|
|
|
30
30
|
}
|
|
31
31
|
finally {
|
|
32
32
|
this.isLoading = false;
|
|
33
|
+
console.log(this.formController.getInitialValues());
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
36
|
this.sendData = async () => {
|
|
@@ -99,6 +100,9 @@ export class BusinessOwnerForm {
|
|
|
99
100
|
get identityEndpoint() {
|
|
100
101
|
return this.ownerId ? `entities/identity/${this.ownerId}` : 'entities/identity';
|
|
101
102
|
}
|
|
103
|
+
get identificationNumberLabel() {
|
|
104
|
+
return this.owner.ssn_last4 ? 'Update SSN (optional)' : 'SSN';
|
|
105
|
+
}
|
|
102
106
|
get formTitle() {
|
|
103
107
|
return this.ownerId ? 'Edit Business Owner' : 'Add Business Owner';
|
|
104
108
|
}
|
|
@@ -139,7 +143,7 @@ export class BusinessOwnerForm {
|
|
|
139
143
|
if (!this.authToken)
|
|
140
144
|
console.error(missingAuthTokenMessage);
|
|
141
145
|
this.formController = new FormController(identitySchema('owner', this.allowOptionalFields));
|
|
142
|
-
this.api = Api(this.authToken, config.proxyApiOrigin);
|
|
146
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
143
147
|
this.fetchData();
|
|
144
148
|
}
|
|
145
149
|
componentDidLoad() {
|
|
@@ -157,7 +161,7 @@ export class BusinessOwnerForm {
|
|
|
157
161
|
}
|
|
158
162
|
render() {
|
|
159
163
|
const ownerDefaultValue = this.formController.getInitialValues();
|
|
160
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", { onSubmit: this.validateAndSubmit }, h("fieldset", null, h("legend", null, this.formTitle), h("div", { class: 'row gy-3' }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label:
|
|
164
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", { onSubmit: this.validateAndSubmit }, h("fieldset", null, h("legend", null, this.formTitle), h("div", { class: 'row gy-3' }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: this.identificationNumberLabel, defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })), h("div", { class: "container d-flex gap-2" }, h("button", { type: "submit", class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}`, onClick: () => this.handleAddOwner(), disabled: this.isLoading }, this.isLoading ? LoadingSpinner() : this.submitButtonText), this.showRemoveButton &&
|
|
161
165
|
h("button", { type: "button", class: "btn btn-danger", onClick: () => this.handleRemoveOwner() }, "Remove owner"))), h("hr", null)))));
|
|
162
166
|
}
|
|
163
167
|
static get is() { return "justifi-owner-form"; }
|
|
@@ -76,7 +76,7 @@ export class AdditionalQuestionsFormStep {
|
|
|
76
76
|
if (!this.businessId)
|
|
77
77
|
console.error(missingBusinessIdMessage);
|
|
78
78
|
this.formController = new FormController(additionalQuestionsSchema(this.allowOptionalFields));
|
|
79
|
-
this.api = Api(this.authToken, config.proxyApiOrigin);
|
|
79
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
80
80
|
this.fetchData();
|
|
81
81
|
}
|
|
82
82
|
componentDidLoad() {
|
|
@@ -83,7 +83,7 @@ export class BusinessCoreInfoFormStep {
|
|
|
83
83
|
if (!this.businessId)
|
|
84
84
|
console.error(missingBusinessIdMessage);
|
|
85
85
|
this.formController = new FormController(businessCoreInfoSchema(this.allowOptionalFields));
|
|
86
|
-
this.api = Api(this.authToken, config.proxyApiOrigin);
|
|
86
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
87
87
|
this.fetchData();
|
|
88
88
|
}
|
|
89
89
|
componentDidLoad() {
|
|
@@ -124,7 +124,7 @@ export class BusinessOwnersFormStep {
|
|
|
124
124
|
console.error(missingAuthTokenMessage);
|
|
125
125
|
if (!this.businessId)
|
|
126
126
|
console.error(missingBusinessIdMessage);
|
|
127
|
-
this.api = Api(this.authToken, config.proxyApiOrigin);
|
|
127
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
128
128
|
this.fetchData();
|
|
129
129
|
}
|
|
130
130
|
onOwnersUpdated() {
|