@justifi/webcomponents 4.16.0 → 4.17.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/{Analytics-423b2bb5.js → Analytics-80336968.js} +1 -1
- package/dist/cjs/{SubAccount-4f4fac22.js → SubAccount-135ff8c8.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-606d1292.js → business-additional-questions-schema-cf545610.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox_5.cjs.entry.js +7 -10
- package/dist/cjs/form-control-date_3.cjs.entry.js +3 -3
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +8 -11
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +13 -1678
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +13 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +11 -3
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +68 -26
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1688 -0
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +1 -1
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-b40227dd.js → package-7b63c02b.js} +1 -1
- package/dist/cjs/{payload-parsers-6e4cf5d7.js → payload-parsers-78445405.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{schema-validations-9668fd79.js → schema-validations-2733de42.js} +3 -4
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +5 -5
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +1 -1
- package/dist/cjs/{utils-fd644316.js → utils-742da2e3.js} +12 -3
- package/dist/cjs/{utils-17869710.js → utils-80191fbe.js} +6 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +0 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/billing-form/billing-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -5
- 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 +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -4
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +0 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -4
- package/dist/collection/components/checkout/checkout-core.js +64 -5
- package/dist/collection/components/checkout/checkout.js +59 -1
- package/dist/collection/components/checkout/new-payment-method.js +94 -14
- package/dist/collection/components/checkout/payment-method-option-utils.js +2 -0
- package/dist/collection/components/checkout/payment-method-options.css +8 -0
- package/dist/collection/components/checkout/payment-method-options.js +98 -14
- package/dist/collection/components/checkout/save-new-payment-method.js +38 -0
- package/dist/collection/components/checkout/saved-payment-method.js +11 -4
- package/dist/collection/components/checkout/sezzle-payment-method.js +11 -4
- package/dist/collection/components/details/details.js +1 -1
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +1 -1
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +1 -1
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/utils.js +12 -3
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payment-form/payment-form.js +3 -3
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.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/skeleton/skeleton.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +1 -1
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +1 -1
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
- package/dist/collection/utils/utils.js +5 -0
- package/dist/docs.json +415 -41
- package/dist/esm/{Analytics-17c33e9e.js → Analytics-c52faca6.js} +1 -1
- package/dist/esm/{SubAccount-8bf9cb0c.js → SubAccount-7fcb1450.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-b00a73ba.js → business-additional-questions-schema-956e3caf.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox_5.entry.js +7 -10
- package/dist/esm/form-control-date_3.entry.js +3 -3
- package/dist/esm/form-control-error-text_4.entry.js +2 -2
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +2 -2
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +9 -12
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +13 -1678
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +5 -5
- package/dist/esm/justifi-business-list.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +13 -5
- package/dist/esm/justifi-checkout.entry.js +11 -3
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-new-payment-method_4.entry.js +68 -26
- package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-form.entry.js +6 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1684 -0
- package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-proceeds-list.entry.js +2 -2
- package/dist/esm/justifi-refund-form.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +1 -1
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-subaccount-details.entry.js +3 -3
- package/dist/esm/justifi-subaccounts-list.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-02a6e473.js → package-8ab448a3.js} +1 -1
- package/dist/esm/{payload-parsers-a9e8f8cc.js → payload-parsers-57289fc4.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +8 -8
- package/dist/esm/payments-list-core.entry.js +2 -2
- package/dist/esm/payout-details-core.entry.js +2 -2
- package/dist/esm/payouts-list-core.entry.js +2 -2
- package/dist/esm/{schema-validations-770bdf3e.js → schema-validations-a83ff220.js} +3 -4
- package/dist/esm/subaccount-account-details_4.entry.js +5 -5
- package/dist/esm/subaccount-bank-details.entry.js +1 -1
- package/dist/esm/subaccount-terms-details.entry.js +1 -1
- package/dist/esm/{utils-61a21dea.js → utils-5f4c4faa.js} +6 -1
- package/dist/esm/{utils-8de964da.js → utils-c7b3f21a.js} +12 -3
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +3 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -4
- package/dist/module/checkout-core.js +37 -21
- package/dist/module/details.js +1 -1
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +1 -1
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +1 -1
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/justifi-checkout.js +35 -20
- package/dist/module/justifi-payment-balance-transactions.js +2 -2
- package/dist/module/justifi-payment-form.js +3 -3
- package/dist/module/justifi-proceeds-list.js +1 -1
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-save-new-payment-method.d.ts +11 -0
- package/dist/module/justifi-save-new-payment-method.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-subaccount-details.js +2 -2
- package/dist/module/justifi-subaccounts-list.js +2 -2
- package/dist/module/new-payment-method.js +52 -24
- package/dist/module/owner-form.js +2 -5
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-options.js +51 -26
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +2 -2
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/save-new-payment-method.js +36 -0
- package/dist/module/saved-payment-method.js +7 -2
- package/dist/module/schema-validations.js +3 -4
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +5 -2
- package/dist/module/skeleton.js +1 -1
- package/dist/module/subaccount-account-details2.js +1 -1
- package/dist/module/subaccount-bank-details.js +1 -1
- package/dist/module/subaccount-merchant-details2.js +2 -2
- package/dist/module/subaccount-owners-details2.js +1 -1
- package/dist/module/subaccount-representative-details2.js +1 -1
- package/dist/module/subaccount-terms-details.js +1 -1
- package/dist/module/utils2.js +6 -1
- package/dist/module/utils3.js +12 -3
- package/dist/types/api/Checkout.d.ts +6 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -1
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +0 -1
- package/dist/types/components/checkout/checkout-core.d.ts +5 -1
- package/dist/types/components/checkout/checkout.d.ts +5 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +8 -2
- package/dist/types/components/checkout/payment-method-option-utils.d.ts +1 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +6 -2
- package/dist/types/components/checkout/payment-method-payload.d.ts +1 -0
- package/dist/types/components/checkout/save-new-payment-method.d.ts +7 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/form/utils.d.ts +1 -1
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +6 -4
- package/dist/types/components.d.ts +55 -12
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/{p-4791c1f2.entry.js → p-00de4ae0.entry.js} +1 -1
- package/dist/webcomponents/{p-0f10316f.entry.js → p-015ba24e.entry.js} +1 -1
- package/dist/webcomponents/p-0575daac.js +1 -0
- package/dist/webcomponents/p-0a09edbb.entry.js +1 -0
- package/dist/webcomponents/{p-31031d15.entry.js → p-0fc18c89.entry.js} +1 -1
- package/dist/webcomponents/{p-f14db665.entry.js → p-100cb35c.entry.js} +1 -1
- package/dist/webcomponents/{p-b01c0120.entry.js → p-189dee9f.entry.js} +1 -1
- package/dist/webcomponents/{p-288c95b3.entry.js → p-1c60004a.entry.js} +1 -1
- package/dist/webcomponents/{p-65969627.entry.js → p-30a7bebc.entry.js} +2 -2
- package/dist/webcomponents/{p-7ae2d26f.entry.js → p-378bb067.entry.js} +1 -1
- package/dist/webcomponents/p-3fd13ca3.js +1 -0
- package/dist/webcomponents/{p-923c37a2.entry.js → p-404d7c56.entry.js} +1 -1
- package/dist/webcomponents/{p-f18e63c3.entry.js → p-43326623.entry.js} +1 -1
- package/dist/webcomponents/{p-9228912b.entry.js → p-4c5f9260.entry.js} +1 -1
- package/dist/webcomponents/{p-7c28a80d.entry.js → p-5309e887.entry.js} +1 -1
- package/dist/webcomponents/{p-fee616cf.entry.js → p-6006e085.entry.js} +1 -1
- package/dist/webcomponents/{p-9c00adf1.entry.js → p-61e486ad.entry.js} +1 -1
- package/dist/webcomponents/{p-eefe2f29.entry.js → p-738049aa.entry.js} +1 -1
- package/dist/webcomponents/{p-56275f64.entry.js → p-739f1e09.entry.js} +1 -1
- package/dist/webcomponents/{p-4b260a52.entry.js → p-7f77d91f.entry.js} +1 -1
- package/dist/webcomponents/{p-ebce7b2f.entry.js → p-84b3cead.entry.js} +1 -1
- package/dist/webcomponents/{p-06baf263.entry.js → p-8805d083.entry.js} +1 -1
- package/dist/webcomponents/p-89887332.js +1 -0
- package/dist/webcomponents/p-95c18035.entry.js +1 -0
- package/dist/webcomponents/{p-fa9773c0.entry.js → p-95c8c313.entry.js} +1 -1
- package/dist/webcomponents/p-97220d5b.entry.js +1 -0
- package/dist/webcomponents/{p-8e8f5033.entry.js → p-98985c7d.entry.js} +1 -1
- package/dist/webcomponents/{p-e3a31451.entry.js → p-9936c393.entry.js} +1 -1
- package/dist/webcomponents/p-9d03464e.entry.js +1 -0
- package/dist/webcomponents/{p-3a7e0753.entry.js → p-a34c28af.entry.js} +1 -1
- package/dist/webcomponents/{p-d42e284d.entry.js → p-a6477232.entry.js} +1 -1
- package/dist/webcomponents/{p-2451611d.entry.js → p-a90a6703.entry.js} +1 -1
- package/dist/webcomponents/{p-a33c3e1c.entry.js → p-b1a24d24.entry.js} +1 -1
- package/dist/webcomponents/{p-9b1e7f5e.entry.js → p-b27d2ce1.entry.js} +1 -1
- package/dist/webcomponents/{p-3394ff6c.js → p-b7d9d9fa.js} +1 -1
- package/dist/webcomponents/{p-1e53021d.entry.js → p-be049573.entry.js} +1 -1
- package/dist/webcomponents/{p-c85fb952.entry.js → p-bfe69314.entry.js} +1 -1
- package/dist/webcomponents/{p-9601cf9d.entry.js → p-c2d6a5e2.entry.js} +1 -1
- package/dist/webcomponents/{p-4b4fc43d.js → p-c4264aaf.js} +1 -1
- package/dist/webcomponents/{p-808c8988.entry.js → p-c69713c2.entry.js} +1 -1
- package/dist/webcomponents/{p-9e5d765c.js → p-c8c08fe3.js} +1 -1
- package/dist/webcomponents/{p-b94bf537.entry.js → p-d779f2f2.entry.js} +1 -1
- package/dist/webcomponents/{p-26779944.entry.js → p-da313a7e.entry.js} +1 -1
- package/dist/webcomponents/{p-6ce586e0.entry.js → p-e04f7070.entry.js} +1 -1
- package/dist/webcomponents/p-e7915927.entry.js +1 -0
- package/dist/webcomponents/{p-fb53112b.js → p-e8c651b8.js} +1 -1
- package/dist/webcomponents/p-eb142b8a.entry.js +1 -0
- package/dist/webcomponents/{p-851e57f4.js → p-edb605b3.js} +1 -1
- package/dist/webcomponents/{p-e673e681.entry.js → p-efe744ce.entry.js} +1 -1
- package/dist/webcomponents/p-f6858597.entry.js +1 -0
- package/dist/webcomponents/p-f68cf935.entry.js +1 -0
- package/dist/webcomponents/{p-3f06ce2f.entry.js → p-fcf42299.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-038fb958.entry.js +0 -1
- package/dist/webcomponents/p-144e4bda.js +0 -1
- package/dist/webcomponents/p-1feebf9c.entry.js +0 -1
- package/dist/webcomponents/p-306aea52.entry.js +0 -1
- package/dist/webcomponents/p-6b05f357.entry.js +0 -1
- package/dist/webcomponents/p-71800e4c.js +0 -1
- package/dist/webcomponents/p-88d68804.entry.js +0 -1
- package/dist/webcomponents/p-8a6049ed.js +0 -1
- package/dist/webcomponents/p-bacd9d6e.entry.js +0 -1
- package/dist/webcomponents/p-f3ae3cb6.entry.js +0 -1
|
@@ -8,12 +8,12 @@ const business_service = require('./business.service-9214509a.js');
|
|
|
8
8
|
const Business = require('./Business-aacbe893.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
const utils = require('./utils-7a478c37.js');
|
|
11
|
-
const Analytics = require('./Analytics-
|
|
11
|
+
const Analytics = require('./Analytics-80336968.js');
|
|
12
12
|
require('./config-ff2dda66.js');
|
|
13
13
|
require('./Api-3bc6e43f.js');
|
|
14
14
|
require('./helpers-602962eb.js');
|
|
15
15
|
require('./state-options-4fbcb48a.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-7b63c02b.js');
|
|
17
17
|
|
|
18
18
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
19
19
|
var _a;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b4498996.js');
|
|
6
6
|
const index_esm = require('./index.esm-52757963.js');
|
|
7
|
-
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-
|
|
8
|
-
const payloadParsers = require('./payload-parsers-
|
|
7
|
+
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-cf545610.js');
|
|
8
|
+
const payloadParsers = require('./payload-parsers-78445405.js');
|
|
9
9
|
const Api = require('./Api-3bc6e43f.js');
|
|
10
10
|
require('./Pagination-0da8f095.js');
|
|
11
11
|
require('./Payment-24f22eca.js');
|
|
@@ -13,12 +13,12 @@ require('./Payout-a2dd7b01.js');
|
|
|
13
13
|
const config = require('./config-ff2dda66.js');
|
|
14
14
|
const businessFormTypes = require('./business-form-types-11130bab.js');
|
|
15
15
|
const Business = require('./Business-aacbe893.js');
|
|
16
|
-
const Analytics = require('./Analytics-
|
|
17
|
-
require('./schema-validations-
|
|
16
|
+
const Analytics = require('./Analytics-80336968.js');
|
|
17
|
+
require('./schema-validations-2733de42.js');
|
|
18
18
|
require('./state-options-4fbcb48a.js');
|
|
19
19
|
require('./business-form-options-582467fe.js');
|
|
20
20
|
require('./helpers-602962eb.js');
|
|
21
|
-
require('./package-
|
|
21
|
+
require('./package-7b63c02b.js');
|
|
22
22
|
|
|
23
23
|
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: payloadParsers.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: payloadParsers.identitySchema('representative') }));
|
|
24
24
|
|
|
@@ -8,7 +8,7 @@ const Pagination = require('./Pagination-0da8f095.js');
|
|
|
8
8
|
require('./Payment-24f22eca.js');
|
|
9
9
|
require('./Payout-a2dd7b01.js');
|
|
10
10
|
const Business = require('./Business-aacbe893.js');
|
|
11
|
-
const utils = require('./utils-
|
|
11
|
+
const utils = require('./utils-80191fbe.js');
|
|
12
12
|
const config = require('./config-ff2dda66.js');
|
|
13
13
|
require('./helpers-602962eb.js');
|
|
14
14
|
require('./state-options-4fbcb48a.js');
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b4498996.js');
|
|
6
6
|
const config = require('./config-ff2dda66.js');
|
|
7
|
-
const Analytics = require('./Analytics-
|
|
8
|
-
require('./package-
|
|
7
|
+
const Analytics = require('./Analytics-80336968.js');
|
|
8
|
+
require('./package-7b63c02b.js');
|
|
9
9
|
require('./Api-3bc6e43f.js');
|
|
10
10
|
|
|
11
11
|
const CardForm = class {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b4498996.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-80191fbe.js');
|
|
7
7
|
const config = require('./config-ff2dda66.js');
|
|
8
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
9
|
const insuranceState = require('./insurance-state-3f044af7.js');
|
|
@@ -22,6 +22,7 @@ const CheckoutCore = class {
|
|
|
22
22
|
index.registerInstance(this, hostRef);
|
|
23
23
|
this.submitted = index.createEvent(this, "submitted", 7);
|
|
24
24
|
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
25
|
+
this.loaded = index.createEvent(this, "loaded", 7);
|
|
25
26
|
this.completeCheckout = async (payment) => {
|
|
26
27
|
this.complete({
|
|
27
28
|
payment,
|
|
@@ -57,6 +58,10 @@ const CheckoutCore = class {
|
|
|
57
58
|
this.serverError = undefined;
|
|
58
59
|
this.renderState = 'loading';
|
|
59
60
|
this.creatingNewPaymentMethod = false;
|
|
61
|
+
this.insuranceToggled = false;
|
|
62
|
+
}
|
|
63
|
+
async fillBillingForm(fields) {
|
|
64
|
+
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
60
65
|
}
|
|
61
66
|
componentWillLoad() {
|
|
62
67
|
if (this.getCheckout) {
|
|
@@ -65,6 +70,7 @@ const CheckoutCore = class {
|
|
|
65
70
|
insuranceState.insuranceValuesOn('set', (key) => {
|
|
66
71
|
const value = insuranceState.insuranceValues[key];
|
|
67
72
|
if (value !== undefined) {
|
|
73
|
+
this.insuranceToggled = value;
|
|
68
74
|
this.fetchData();
|
|
69
75
|
}
|
|
70
76
|
});
|
|
@@ -75,6 +81,8 @@ const CheckoutCore = class {
|
|
|
75
81
|
this.getCheckout({
|
|
76
82
|
onSuccess: ({ checkout }) => {
|
|
77
83
|
this.checkout = new Checkout(checkout);
|
|
84
|
+
const { status } = this.checkout;
|
|
85
|
+
this.loaded.emit({ checkout_status: status });
|
|
78
86
|
this.renderState = 'success';
|
|
79
87
|
},
|
|
80
88
|
onError: ({ error, code, severity }) => {
|
|
@@ -94,8 +102,8 @@ const CheckoutCore = class {
|
|
|
94
102
|
event.preventDefault();
|
|
95
103
|
this.renderState = 'loading';
|
|
96
104
|
const insuranceValidation = insuranceState.validateInsuranceValues();
|
|
97
|
-
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod();
|
|
98
|
-
if (
|
|
105
|
+
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod(insuranceValidation);
|
|
106
|
+
if (payload.validationError) {
|
|
99
107
|
this.renderState = 'error';
|
|
100
108
|
}
|
|
101
109
|
else if (payload.error) {
|
|
@@ -125,14 +133,14 @@ const CheckoutCore = class {
|
|
|
125
133
|
}
|
|
126
134
|
get paymentType() {
|
|
127
135
|
var _a, _b, _c, _d, _e;
|
|
128
|
-
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h("justifi-skeleton", { variant: "rounded", height: "300px" })), index.h("div", { class: this.isLoading && 'visually-hidden' }, index.h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl,
|
|
136
|
+
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h("justifi-skeleton", { variant: "rounded", height: "300px" })), index.h("div", { class: this.isLoading && 'visually-hidden' }, index.h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
|
|
129
137
|
}
|
|
130
138
|
get summary() {
|
|
131
139
|
var _a, _b;
|
|
132
140
|
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h("justifi-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)))))));
|
|
133
141
|
}
|
|
134
142
|
render() {
|
|
135
|
-
return (index.h(index.Host, { key: '
|
|
143
|
+
return (index.h(index.Host, { key: 'b4eca3c8ce6642cc307df9bf0954d8db13ec3791' }, index.h("div", { key: '652bb4e5b2b4ec189d293630d31a3c1d8f345a7e', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: '6bb0869d4632dd8937e5077dd84732f9091342d0', class: "col-12 mb-4" }, index.h("h2", { key: 'bd8d0d02f5a59ec9a5629808fea21dc3e922407a', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), index.h("div", { key: '81b1c5e141fa49da91e257eb40243e27f2c55f50', class: "col-12" }, index.h("slot", { key: '438606a898983e51141c62e7fe7ab209eadfa2a2', name: "insurance" })), index.h("div", { key: '0932dbfb2f6c57aed73f56b3563c189e76b1aa69', class: "col-12" }, index.h("h2", { key: 'd96345a9941679990d0e379293eb960751ef4063', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), index.h("h3", { key: 'cfcb5db0857f670008d5f71f3fccd53b1d05c91d', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), index.h("div", { key: 'f9f06327db4ec89b0db943de0e6d3c983d33ab55', class: "d-flex flex-column" }, this.paymentType)), index.h("div", { key: '18392f4a553848f123910bb10501821b550e0abe', class: "col-12" }, index.h("div", { key: '31f6e5b2267ab507021b285becdd2961035ffe53', class: "d-flex justify-content-end" }, index.h("button", { key: '4dc7c5af2ca0d3766a2e3371da9b241e3260a351', type: "submit", onClick: event => this.submit(event), disabled: this.isLoading, part: "pay-button", class: `btn btn-primary jfi-submit-button ${this.isLoading ? 'jfi-submit-button-loading' : ''}` }, this.isLoading ? this.loadingSpinner : 'Pay'))))));
|
|
136
144
|
}
|
|
137
145
|
};
|
|
138
146
|
CheckoutCore.style = JustifiCheckoutCoreStyle0;
|
|
@@ -10,8 +10,8 @@ require('./Pagination-0da8f095.js');
|
|
|
10
10
|
require('./Payment-24f22eca.js');
|
|
11
11
|
require('./Payout-a2dd7b01.js');
|
|
12
12
|
const config = require('./config-ff2dda66.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
14
|
-
require('./package-
|
|
13
|
+
const Analytics = require('./Analytics-80336968.js');
|
|
14
|
+
require('./package-7b63c02b.js');
|
|
15
15
|
|
|
16
16
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
17
17
|
var _a;
|
|
@@ -88,6 +88,7 @@ const Checkout = class {
|
|
|
88
88
|
constructor(hostRef) {
|
|
89
89
|
index.registerInstance(this, hostRef);
|
|
90
90
|
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
91
|
+
this.loadedEvent = index.createEvent(this, "loaded", 7);
|
|
91
92
|
this.iframeOrigin = undefined;
|
|
92
93
|
this.authToken = undefined;
|
|
93
94
|
this.checkoutId = undefined;
|
|
@@ -130,8 +131,15 @@ const Checkout = class {
|
|
|
130
131
|
propChanged() {
|
|
131
132
|
this.initializeGetCheckout();
|
|
132
133
|
}
|
|
134
|
+
async fillBillingForm(fields) {
|
|
135
|
+
this.checkoutCoreRef.fillBillingForm(fields);
|
|
136
|
+
}
|
|
133
137
|
render() {
|
|
134
|
-
return (index.h("justifi-checkout-core", { key: '
|
|
138
|
+
return (index.h("justifi-checkout-core", { key: '5dd0269c6fd04bff259204e80800803e618ffa83', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
|
|
139
|
+
if (el) {
|
|
140
|
+
this.checkoutCoreRef = el;
|
|
141
|
+
}
|
|
142
|
+
} }, index.h("div", { key: 'a659fc258e90c32b4b16ea1d92492c0e16f830a3', slot: "insurance" }, index.h("slot", { key: 'c92ba9f86f72b372cafabbdd7aba92cee0af44f7', name: "insurance" }))));
|
|
135
143
|
}
|
|
136
144
|
static get watchers() { return {
|
|
137
145
|
"authToken": ["propChanged"],
|
|
@@ -14,7 +14,7 @@ const Details = class {
|
|
|
14
14
|
this.errorMessage = undefined;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '2d6ed5cb3c548d10c9a7de29b2b1b3a94f60133f', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
|
|
18
18
|
utils.ErrorState(this.errorMessage)
|
|
19
19
|
:
|
|
20
20
|
index.h("main", { class: "p-2" }, index.h("slot", { name: "head-info" }), index.h("slot", { name: 'detail-sections' }))));
|
|
@@ -8,8 +8,8 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
8
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
9
|
const utils = require('./utils-7a478c37.js');
|
|
10
10
|
const utils$1 = require('./utils-0c3168ef.js');
|
|
11
|
-
const Analytics = require('./Analytics-
|
|
12
|
-
require('./package-
|
|
11
|
+
const Analytics = require('./Analytics-80336968.js');
|
|
12
|
+
require('./package-7b63c02b.js');
|
|
13
13
|
|
|
14
14
|
class ReportsService {
|
|
15
15
|
async fetchGrossVolumeChartData(accountId, authToken) {
|