@justifi/webcomponents 6.7.2 → 6.8.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-QUTWjGTy.js → Api-CVbEWBG6.js} +1 -1
- package/dist/cjs/{Business-DWHy_-z9.js → Business-CB8EVrhD.js} +6 -0
- package/dist/cjs/{GooglePay-BwiJ_80p.js → Plaid-DxPvVu0H.js} +54 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-Cc87HAsf.js → badge-DkOPisAV.js} +2 -2
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +532 -0
- package/dist/cjs/bank-account-form.cjs.entry.js +7 -7
- package/dist/cjs/{business-additional-questions-schema-Y1mXnwUT.js → business-additional-questions-schema-Cnh6AXQU.js} +5 -3
- package/dist/cjs/business-details-core.cjs.entry.js +7 -7
- package/dist/cjs/{business-form-options-e9UFw4P-.js → business-form-options-B3CbEmdc.js} +1 -1
- package/dist/cjs/{business-identity-schema-D_OO0Suf.js → business-identity-schema-0jg2Thn9.js} +6 -2
- package/dist/cjs/{business.service-q93NsTG_.js → business.service-zGEitIbP.js} +3 -3
- package/dist/cjs/{button-fUPGXjU_.js → button-C2p1BMP-.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +7 -7
- package/dist/cjs/{check-pkg-version-BG-Rfkh5.js → check-pkg-version-DKH70uPq.js} +12 -11
- package/dist/cjs/{checkout.service-CwelwhrT.js → checkout.service-DT13pWxH.js} +3 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +14 -14
- package/dist/cjs/{payments-list-params-state-DfZySwaC.js → checkouts-list-params-state-vGJZ6Oe2.js} +1 -1
- package/dist/cjs/{checkouts-table-BBtqxG2F.js → checkouts-table-DftTbgXr.js} +3 -3
- package/dist/cjs/{config-state-CYoBVAca.js → config-state-BIgGhhe9.js} +1 -1
- package/dist/cjs/{country-config-MCOhn8o3.js → country-config-ETD-7Wb7.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +52 -21
- package/dist/cjs/{dispute.service-q5ha39uN.js → dispute.service-GDUl1Wjs.js} +3 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +11 -11
- package/dist/cjs/form-control-checkbox.cjs.entry.js +11 -8
- package/dist/cjs/form-control-date.cjs.entry.js +7 -7
- package/dist/cjs/{form-control-error-text-Dg_65HGK.js → form-control-error-text-BC5aRpfl.js} +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +17 -10
- package/dist/cjs/{form-control-help-text-tB5u1-5M.js → form-control-help-text-B2yMic8i.js} +2 -2
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +12 -8
- package/dist/cjs/form-control-monetary.cjs.entry.js +8 -8
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +13 -11
- package/dist/cjs/{owner-form-core_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +71 -18
- package/dist/cjs/form-control-radio.cjs.entry.js +9 -6
- package/dist/cjs/form-control-select_2.cjs.entry.js +11 -11
- package/dist/cjs/{get-business-D9ZHyPem.js → get-business-CP0ALW9n.js} +1 -1
- package/dist/cjs/{get-payment-details-DidIAK2i.js → get-payment-details-IA5Toi7Z.js} +4 -4
- package/dist/cjs/{get-subaccounts-BE_wcfM7.js → get-subaccounts-DNMZjAyT.js} +5 -5
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -6
- package/dist/cjs/{header-1-Bqejh9no.js → header-1-B-nd_U7n.js} +2 -2
- package/dist/cjs/{header-3-DQ649Me2.js → header-3--BEJGMFA.js} +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +10 -10
- package/dist/cjs/{index-mmd0OhmD.js → index-W-zoNiyM.js} +90 -21
- package/dist/cjs/index-p7cvUYAE.js +4450 -0
- package/dist/cjs/{input-handlers-D6QMwPTB.js → input-handlers-gV1LyFy3.js} +1 -1
- package/dist/cjs/{insurance-state-DsGnIHMM.js → insurance-state-CiVJ5e26.js} +3 -3
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +34 -34
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +101 -67
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +247 -317
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-details.cjs.entry.js +13 -13
- package/dist/cjs/justifi-business-form.cjs.entry.js +22 -22
- package/dist/cjs/justifi-checkout.cjs.entry.js +22 -22
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +17 -17
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +11 -11
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +25 -25
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11 -11
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +20 -20
- package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +23 -11
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +18 -18
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +20 -20
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -17
- package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +18 -18
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +15 -15
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +14 -14
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-Df5lTFe6.js → package-B4vs5j7c.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +2 -2
- package/dist/cjs/{parts-BVbaniVM.js → parts-BsBVknuf.js} +1 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +21 -21
- package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
- package/dist/cjs/payment-provisioning-loading-B3hvtd9o.js +12 -0
- package/dist/cjs/{payment.service-CyHFdJ7n.js → payment.service-QODfB293.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +15 -15
- package/dist/cjs/{payouts-list-params-state-DfZySwaC.js → payments-list-params-state-vGJZ6Oe2.js} +1 -1
- package/dist/cjs/{payments-status-BP4u31jU.js → payments-status-BAR25wA6.js} +2 -2
- package/dist/cjs/{payments-table-CWXVhECV.js → payments-table-BLJ54fGU.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +13 -13
- package/dist/cjs/{payout.service-Half-hdB.js → payout.service-k7GBuYzk.js} +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +15 -15
- package/dist/cjs/{checkouts-list-params-state-DfZySwaC.js → payouts-list-params-state-vGJZ6Oe2.js} +1 -1
- package/dist/cjs/{payouts-status-CM5Zy-0J.js → payouts-status-uZAaS1RP.js} +2 -2
- package/dist/cjs/{payouts-table-ZLTcfkUm.js → payouts-table-C4jZJ8rq.js} +3 -3
- package/dist/cjs/plaid-icon-DTpONc_Q.js +46 -0
- package/dist/cjs/{schema-validations-Bf2mk2xU.js → schema-validations-BakyfJpE.js} +19 -3
- package/dist/cjs/{skeleton-B8dzxFFr.js → skeleton-BGGMhPJj.js} +2 -2
- package/dist/cjs/{spinner-jHyLNCGO.js → spinner-CV2CNXOQ.js} +2 -2
- package/dist/cjs/{styled-host-D5g7INLE.js → styled-host-DAi5SuFa.js} +1 -1
- package/dist/cjs/{table-CrtpRwGN.js → table-eTN_pRIP.js} +3 -3
- package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +14 -14
- package/dist/cjs/{terminal-orders-list-params-state-DfZySwaC.js → terminal-orders-list-params-state-vGJZ6Oe2.js} +1 -1
- package/dist/cjs/{terminal-orders-table-DT53anT3.js → terminal-orders-table-C6j6Mx_r.js} +8 -8
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +4 -4
- package/dist/cjs/{terminal.service-CFt55QNO.js → terminal.service-A90K3XNq.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +14 -14
- package/dist/cjs/terminals-list-params-state-vGJZ6Oe2.js +22 -0
- package/dist/cjs/{terminals-table-DahpSz98.js → terminals-table-DZz8k4tP.js} +3 -3
- package/dist/cjs/{utils-CMiA4X7s.js → utils-T6hRmGuY.js} +2 -2
- package/dist/cjs/webcomponents.cjs.js +30 -3
- package/dist/collection/api/Analytics.js +8 -7
- package/dist/collection/api/Business.js +3 -0
- package/dist/collection/api/Identity.js +3 -0
- package/dist/collection/api/Plaid.js +50 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/services/plaid.service.js +13 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
- package/dist/collection/components/business-details/business-details-core.js +2 -2
- package/dist/collection/components/business-details/business-details.js +2 -2
- package/dist/collection/components/business-details/core-info-details/core-info-details.js +1 -1
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +4 -4
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +3 -3
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +5 -5
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +6 -6
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -7
- package/dist/collection/components/business-forms/owner-form/owner-form.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +5 -5
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +5 -5
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +23 -8
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +35 -7
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +19 -11
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +20 -8
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +7 -7
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +433 -0
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -3
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +2 -0
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +5 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +15 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +23 -4
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +3 -3
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +4 -4
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/checkouts-list.js +3 -3
- package/dist/collection/components/dispute-management/dispute-management-core.js +4 -4
- package/dist/collection/components/dispute-management/dispute-management.js +3 -3
- package/dist/collection/components/dispute-management/dispute-notification.js +5 -5
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -4
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +2 -2
- package/dist/collection/components/filters/table-filters-menu.js +3 -3
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +7 -7
- package/dist/collection/components/modular-checkout/modular-checkout.js +3 -3
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +3 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +6 -6
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +4 -51
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +4 -4
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +5 -5
- package/dist/collection/components/payment-details/payment-details-core.js +9 -9
- package/dist/collection/components/payment-details/payment-details.js +2 -2
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +3 -3
- package/dist/collection/components/payments-list/payments-list-core.js +3 -3
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +3 -3
- package/dist/collection/components/payout-details/payout-details-core.js +5 -5
- package/dist/collection/components/payout-details/payout-details.js +2 -2
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +3 -3
- package/dist/collection/components/payouts-list/payouts-list-core.js +5 -5
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +3 -3
- package/dist/collection/components/refund-payment/refund-payment.js +3 -3
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -3
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +3 -3
- package/dist/collection/components/terminals-list/terminals-list-core.js +4 -4
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +3 -3
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +51 -17
- package/dist/collection/ui-components/details/details.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +16 -10
- package/dist/collection/ui-components/form/form-control-date.js +5 -5
- package/dist/collection/ui-components/form/form-control-file-v2.js +16 -8
- package/dist/collection/ui-components/form/form-control-file.js +16 -10
- package/dist/collection/ui-components/form/form-control-monetary.js +5 -5
- package/dist/collection/ui-components/form/form-control-number-masked.js +14 -10
- package/dist/collection/ui-components/form/form-control-number.js +10 -8
- package/dist/collection/ui-components/form/form-control-radio.js +18 -12
- package/dist/collection/ui-components/form/form-control-select.js +6 -6
- package/dist/collection/ui-components/form/form-control-text.js +5 -5
- package/dist/collection/ui-components/form/form-control-textarea.js +19 -11
- package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -2
- package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +2 -2
- package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +6 -6
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +714 -273
- package/dist/esm/{Api-Dln8a6No.js → Api-ohkSjyhl.js} +1 -1
- package/dist/esm/{Business-B5rtFhtR.js → Business-GgW1g7FQ.js} +6 -0
- package/dist/esm/{GooglePay-NNHE-OLJ.js → Plaid-CBrksnBN.js} +53 -2
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-DtrH25ss.js → badge-BW9VFFkp.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +522 -0
- package/dist/esm/bank-account-form.entry.js +7 -7
- package/dist/esm/{business-additional-questions-schema-woG5-pgK.js → business-additional-questions-schema-CQ8CuEfQ.js} +5 -3
- package/dist/esm/business-details-core.entry.js +7 -7
- package/dist/esm/{business-form-options-D6s5H4RI.js → business-form-options-DamBLV7N.js} +1 -1
- package/dist/esm/{business-identity-schema-B7VTDF4j.js → business-identity-schema-BTyJz7M9.js} +7 -3
- package/dist/esm/{business.service-BrUSam2T.js → business.service-BWm7Kqs4.js} +3 -3
- package/dist/esm/{button-Bpf3VX8Q.js → button-DMeChykB.js} +2 -2
- package/dist/esm/card-form.entry.js +7 -7
- package/dist/esm/{check-pkg-version-c_8fDHCB.js → check-pkg-version-CioeuqLV.js} +12 -11
- package/dist/esm/{checkout.service-Bxt1qPaY.js → checkout.service-D4Mljqjr.js} +3 -3
- package/dist/esm/checkouts-list-core.entry.js +14 -14
- package/dist/esm/{checkouts-list-params-state-gllzDQAb.js → checkouts-list-params-state-CiGfmyWW.js} +1 -1
- package/dist/esm/{checkouts-table-CB4GdlcZ.js → checkouts-table-B9YTe5fJ.js} +3 -3
- package/dist/esm/{config-state-C2NXATwF.js → config-state-kKn89dp1.js} +1 -1
- package/dist/esm/{country-config-BQ4D46Lb.js → country-config-D-9YmU94.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +52 -21
- package/dist/esm/{dispute.service-DYRYxxaT.js → dispute.service-ZpqfPDC0.js} +3 -3
- package/dist/esm/form-alert_5.entry.js +11 -11
- package/dist/esm/form-control-checkbox.entry.js +11 -8
- package/dist/esm/form-control-date.entry.js +7 -7
- package/dist/esm/{form-control-error-text-BZYykCDp.js → form-control-error-text-CTQxgr7_.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +17 -10
- package/dist/esm/{form-control-help-text-D-p66Yxr.js → form-control-help-text-B-aaeX6n.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +12 -8
- package/dist/esm/form-control-monetary.entry.js +8 -8
- package/dist/esm/form-control-number-masked_3.entry.js +13 -11
- package/dist/esm/{owner-form-core_2.entry.js → form-control-number_3.entry.js} +71 -19
- package/dist/esm/form-control-radio.entry.js +9 -6
- package/dist/esm/form-control-select_2.entry.js +11 -11
- package/dist/esm/{get-business-Xt7B5dSo.js → get-business-BMB2IxN_.js} +1 -1
- package/dist/esm/{get-payment-details-BJ1PLhJZ.js → get-payment-details-B71Qi6mF.js} +3 -3
- package/dist/esm/{get-subaccounts-CzGHjlUF.js → get-subaccounts-DXJdRbWg.js} +4 -4
- package/dist/esm/gross-payment-chart-core.entry.js +6 -6
- package/dist/esm/{header-1-WwkF5F9y.js → header-1-DFMANSXo.js} +2 -2
- package/dist/esm/{header-3-C5jS39cE.js → header-3-Ck64YtdM.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +10 -10
- package/dist/esm/index-CV0Pyo1O.js +4434 -0
- package/dist/esm/{index-B-fWxE5e.js → index-cDVGjRkU.js} +90 -21
- package/dist/esm/{input-handlers-D3y0TzH9.js → input-handlers-CzWCJ849.js} +1 -1
- package/dist/esm/{insurance-state-C11WKZU6.js → insurance-state-DQ3xzFpR.js} +3 -3
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +23 -23
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +89 -55
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/justifi-apple-pay_8.entry.js +35 -105
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +10 -10
- package/dist/esm/justifi-business-details.entry.js +13 -13
- package/dist/esm/justifi-business-form.entry.js +22 -22
- package/dist/esm/justifi-checkout.entry.js +15 -15
- package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -10
- package/dist/esm/justifi-checkouts-list.entry.js +16 -16
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +11 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +25 -25
- package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
- package/dist/esm/justifi-order-terminals.entry.js +17 -17
- package/dist/esm/justifi-payment-details.entry.js +14 -14
- package/dist/esm/justifi-payment-provisioning-core.entry.js +23 -11
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
- package/dist/esm/justifi-payment-transactions-list.entry.js +16 -16
- package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payments-list.entry.js +16 -16
- package/dist/esm/justifi-payout-details.entry.js +12 -12
- package/dist/esm/justifi-payout-transactions-list.entry.js +16 -16
- package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payouts-list.entry.js +17 -17
- package/dist/esm/justifi-refund-payment.entry.js +16 -16
- package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -14
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
- package/dist/esm/justifi-terminal-orders-list.entry.js +14 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
- package/dist/esm/justifi-terminals-list.entry.js +16 -16
- package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-BzT9OxlN.js → package-CekpA_KC.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-sA8HBfkI.js → parts-DrquDBSk.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +20 -20
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/payment-provisioning-loading-DU0pNyqx.js +10 -0
- package/dist/esm/{payment.service-BoGemgMw.js → payment.service-C2lFq1yV.js} +3 -3
- package/dist/esm/payments-list-core.entry.js +15 -15
- package/dist/esm/{payments-list-params-state-gllzDQAb.js → payments-list-params-state-CiGfmyWW.js} +1 -1
- package/dist/esm/{payments-status-CADg1cD0.js → payments-status-Bn-MvMcF.js} +2 -2
- package/dist/esm/{payments-table-C6zHWwGO.js → payments-table-CF3_zGnh.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +13 -13
- package/dist/esm/{payout.service-BSG50wqN.js → payout.service-ChupMPKT.js} +3 -3
- package/dist/esm/payouts-list-core.entry.js +15 -15
- package/dist/esm/{payouts-list-params-state-gllzDQAb.js → payouts-list-params-state-CiGfmyWW.js} +1 -1
- package/dist/esm/{payouts-status-4VDQvaYV.js → payouts-status-ehZrz-Xx.js} +2 -2
- package/dist/esm/{payouts-table-BU5XbzB9.js → payouts-table-CGZJfsje.js} +3 -3
- package/dist/esm/plaid-icon-wJLd-2NX.js +43 -0
- package/dist/esm/{schema-validations-iamDi5JD.js → schema-validations-CfHWzMvr.js} +19 -4
- package/dist/esm/{skeleton-Dtt56Fl3.js → skeleton-D9UXuoik.js} +2 -2
- package/dist/esm/{spinner-DikooWuI.js → spinner-ACMfJh3a.js} +2 -2
- package/dist/esm/{styled-host-DhOcKWqZ.js → styled-host-D6byRazK.js} +1 -1
- package/dist/esm/{table-1hqe6s5m.js → table-BbMG2jg9.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +14 -14
- package/dist/esm/{terminal-orders-list-params-state-gllzDQAb.js → terminal-orders-list-params-state-CiGfmyWW.js} +1 -1
- package/dist/esm/{terminal-orders-table-BsVBelxB.js → terminal-orders-table-B4_RAxxx.js} +6 -6
- package/dist/esm/terminal-quantity-selector.entry.js +4 -4
- package/dist/esm/{terminal.service-YKfi6Mr9.js → terminal.service-DqibXFHt.js} +3 -3
- package/dist/esm/terminals-list-core.entry.js +14 -14
- package/dist/esm/terminals-list-params-state-CiGfmyWW.js +16 -0
- package/dist/esm/{terminals-table-CXJTn-0I.js → terminals-table-B-7FR4ug.js} +3 -3
- package/dist/esm/{utils-CgFsPVsv.js → utils-DhCv62Pi.js} +2 -2
- package/dist/esm/webcomponents.js +31 -4
- package/dist/module/Analytics.js +9 -8
- package/dist/module/Business.js +6 -0
- package/dist/module/{Refund.js → Plaid.js} +51 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +2 -2
- package/dist/module/bank-account-form-inputs-canada2.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account-read-only-value2.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +3 -3
- package/dist/module/business-additional-questions-schema.js +3 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +47 -26
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-details-core2.js +1 -1
- package/dist/module/business-identity-schema.js +5 -1
- package/dist/module/business-owners-form-step.js +42 -8
- package/dist/module/business-representative-form-inputs.js +2 -2
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +2 -2
- package/dist/module/business-terms-conditions-form-step.js +2 -2
- package/dist/module/business.service.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.service.js +1 -1
- package/dist/module/checkout.store.js +1 -1
- package/dist/module/checkouts-list-core2.js +3 -3
- package/dist/module/custom-popper2.js +50 -17
- package/dist/module/customer-details.js +2 -2
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +2 -2
- package/dist/module/dispute-notification.js +3 -3
- package/dist/module/dispute-response-actions.js +1 -1
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +2 -2
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- package/dist/module/form-address-fields.js +1 -1
- package/dist/module/form-control-checkbox2.js +5 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +4 -1
- package/dist/module/form-control-file2.js +5 -2
- package/dist/module/form-control-monetary-provisioning2.js +6 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +4 -2
- package/dist/module/form-control-number.js +1 -84
- package/dist/module/form-control-number2.js +87 -0
- package/dist/module/form-control-radio2.js +5 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +6 -2
- package/dist/module/get-business.js +1 -1
- package/dist/module/get-payment-details.js +1 -1
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/google-pay.js +3 -3
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/index2.js +90 -21
- package/dist/module/internal-tokenize-payment-method2.js +2 -2
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +3 -3
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +74 -62
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +3 -3
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/modular-checkout.js +3 -3
- package/dist/module/owner-form-core2.js +11 -5
- package/dist/module/owner-form-inputs2.js +13 -7
- package/dist/module/owner-form.js +11 -5
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +9 -9
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +86 -62
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +67 -55
- package/dist/module/payment.service.js +1 -1
- package/dist/module/payments-list-core2.js +3 -3
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +1 -1
- package/dist/module/payouts-list-core2.js +3 -3
- package/dist/module/plaid-icon.js +3 -0
- package/dist/module/plaid-payment-method.js +3 -53
- package/dist/module/plaid-verification.d.ts +11 -0
- package/dist/module/plaid-verification.js +6 -0
- package/dist/module/plaid-verification2.js +358 -0
- package/dist/module/plaid.service.js +14 -1
- package/dist/module/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/schema-validations.js +16 -1
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +3 -3
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminal.service.js +1 -1
- package/dist/module/terminals-list-core2.js +3 -3
- package/dist/module/utils4.js +1 -1
- package/dist/types/api/Analytics.d.ts +1 -0
- package/dist/types/api/BankAccount.d.ts +1 -0
- package/dist/types/api/Business.d.ts +6 -0
- package/dist/types/api/Identity.d.ts +4 -0
- package/dist/types/api/Plaid.d.ts +54 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/services/plaid.service.d.ts +8 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +4 -0
- package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +3 -3
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.d.ts +36 -0
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +2 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +12 -0
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +10 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +19 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +3 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -25
- package/dist/types/components.d.ts +416 -239
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +4 -0
- package/dist/types/ui-components/form/form-control-checkbox.d.ts +2 -2
- package/dist/types/ui-components/form/form-control-file-v2.d.ts +2 -2
- package/dist/types/ui-components/form/form-control-file.d.ts +2 -2
- package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -2
- package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-radio.d.ts +3 -3
- package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -2
- package/dist/webcomponents/{p-Dit3fZpU.js → p--cI8fPJx.js} +1 -1
- package/dist/webcomponents/p-02f360c5.entry.js +1 -0
- package/dist/webcomponents/{p-36a0af30.entry.js → p-0467df5d.entry.js} +1 -1
- package/dist/webcomponents/p-073ca03f.entry.js +1 -0
- package/dist/webcomponents/p-0eb97b54.entry.js +1 -0
- package/dist/webcomponents/p-0f6fa1c0.entry.js +1 -0
- package/dist/webcomponents/p-0fcb7ebb.entry.js +1 -0
- package/dist/webcomponents/p-110bec2e.entry.js +1 -0
- package/dist/webcomponents/{p-d0c4b0ea.entry.js → p-172b0c96.entry.js} +1 -1
- package/dist/webcomponents/{p-725319f3.entry.js → p-1ec3d1e7.entry.js} +1 -1
- package/dist/webcomponents/p-20cab5fe.entry.js +1 -0
- package/dist/webcomponents/p-238ba771.entry.js +1 -0
- package/dist/webcomponents/p-2454c140.entry.js +1 -0
- package/dist/webcomponents/p-25666afe.entry.js +1 -0
- package/dist/webcomponents/p-26430bfe.entry.js +1 -0
- package/dist/webcomponents/p-265a7cb3.entry.js +1 -0
- package/dist/webcomponents/p-2e7143b8.entry.js +1 -0
- package/dist/webcomponents/p-32fac30b.entry.js +1 -0
- package/dist/webcomponents/p-33ab9174.entry.js +1 -0
- package/dist/webcomponents/p-393c9065.entry.js +1 -0
- package/dist/webcomponents/p-3a254390.entry.js +1 -0
- package/dist/webcomponents/p-493e73a9.entry.js +1 -0
- package/dist/webcomponents/p-4a802f82.entry.js +1 -0
- package/dist/webcomponents/p-4b928d2e.entry.js +1 -0
- package/dist/webcomponents/p-4d3e4e56.entry.js +1 -0
- package/dist/webcomponents/p-50cc771a.entry.js +1 -0
- package/dist/webcomponents/p-55e63bdd.entry.js +1 -0
- package/dist/webcomponents/p-5ae3401d.entry.js +1 -0
- package/dist/webcomponents/p-65f4681c.entry.js +1 -0
- package/dist/webcomponents/p-7068c2ad.entry.js +1 -0
- package/dist/webcomponents/p-785e8ef7.entry.js +1 -0
- package/dist/webcomponents/{p-897b794b.entry.js → p-7b4e9ae8.entry.js} +2 -2
- package/dist/webcomponents/{p-1a327b0e.entry.js → p-7fdfc2c8.entry.js} +1 -1
- package/dist/webcomponents/p-81bbd944.entry.js +1 -0
- package/dist/webcomponents/p-8ac883e4.entry.js +1 -0
- package/dist/webcomponents/p-8e6f2dc8.entry.js +1 -0
- package/dist/webcomponents/p-8ed4f485.entry.js +1 -0
- package/dist/webcomponents/p-922ddfb4.entry.js +1 -0
- package/dist/webcomponents/p-9643fe36.entry.js +1 -0
- package/dist/webcomponents/{p-20af8597.entry.js → p-99065f37.entry.js} +1 -1
- package/dist/webcomponents/p-9ce5fcb6.entry.js +1 -0
- package/dist/webcomponents/p-9d844936.entry.js +1 -0
- package/dist/webcomponents/p-AMVhBsGv.js +1 -0
- package/dist/webcomponents/{p-DfKxeSrC.js → p-B1AMrMly.js} +1 -1
- package/dist/webcomponents/p-B8CPGGs6.js +1 -0
- package/dist/webcomponents/p-BPTtWj7E.js +1 -0
- package/dist/webcomponents/p-BRPbLfCN.js +1 -0
- package/dist/webcomponents/p-BZ4YUsyP.js +1 -0
- package/dist/webcomponents/{p-CPpUGsw5.js → p-BZbvHgMz.js} +1 -1
- package/dist/webcomponents/{p-CV8xqdt6.js → p-Bhk8tHxs.js} +1 -1
- package/dist/webcomponents/{p-B4xdk4mG.js → p-Bj9n56jK.js} +1 -1
- package/dist/webcomponents/p-BqL4QuAa.js +1 -0
- package/dist/webcomponents/{p-BP2sTIQV.js → p-BqNNwq6C.js} +1 -1
- package/dist/webcomponents/p-By-Mu1IX.js +1 -0
- package/dist/webcomponents/p-C0dMwnDO.js +1 -0
- package/dist/webcomponents/p-C3E-JbVM.js +1 -0
- package/dist/webcomponents/p-C3RQHKL5.js +1 -0
- package/dist/webcomponents/{p-BMJe4lzg.js → p-CAZzU98o.js} +1 -1
- package/dist/webcomponents/p-CGKWIBVk.js +1 -0
- package/dist/webcomponents/{p-DUmUUj9r.js → p-COcg4_A3.js} +1 -1
- package/dist/webcomponents/{p-C2Senazf.js → p-CQ36pja3.js} +1 -1
- package/dist/webcomponents/p-CV0Pyo1O.js +2 -0
- package/dist/webcomponents/{p-Dlrq1iZf.js → p-CWyW004b.js} +1 -1
- package/dist/webcomponents/p-CekpA_KC.js +1 -0
- package/dist/webcomponents/p-CkYB1zGe.js +1 -0
- package/dist/webcomponents/p-CpGEMRkH.js +1 -0
- package/dist/webcomponents/{p-CBbwdoSa.js → p-CruQSM5j.js} +1 -1
- package/dist/webcomponents/p-D-07jgNC.js +1 -0
- package/dist/webcomponents/p-D4EBPNuU.js +1 -0
- package/dist/webcomponents/p-D8GTwl9v.js +1 -0
- package/dist/webcomponents/{p-C77ElQ41.js → p-DCwnBXF7.js} +1 -1
- package/dist/webcomponents/p-DKemQxaE.js +1 -0
- package/dist/webcomponents/p-DOnVHzNq.js +1 -0
- package/dist/webcomponents/{p-tGDdRx0W.js → p-DVJaoI_m.js} +1 -1
- package/dist/webcomponents/p-DaZF_q9T.js +1 -0
- package/dist/webcomponents/p-Dm07nLGs.js +1 -0
- package/dist/webcomponents/p-DrquDBSk.js +1 -0
- package/dist/webcomponents/p-Dw63wyhO.js +1 -0
- package/dist/webcomponents/p-GgW1g7FQ.js +1 -0
- package/dist/webcomponents/{p-D6bKoyRc.js → p-JO-3z7ao.js} +1 -1
- package/dist/webcomponents/p-MVBgKFOv.js +1 -0
- package/dist/webcomponents/p-Y-EhaLdV.js +1 -0
- package/dist/webcomponents/{p-W9WWoLzT.js → p-YYXsr-bI.js} +1 -1
- package/dist/webcomponents/p-a20bddd2.entry.js +1 -0
- package/dist/webcomponents/p-a3510078.entry.js +1 -0
- package/dist/webcomponents/p-a4834220.entry.js +1 -0
- package/dist/webcomponents/p-a9ecaf0f.entry.js +1 -0
- package/dist/webcomponents/p-aa02e3d7.entry.js +1 -0
- package/dist/webcomponents/p-adbe280f.entry.js +1 -0
- package/dist/webcomponents/p-af11ac6a.entry.js +1 -0
- package/dist/webcomponents/p-bbffb17f.entry.js +1 -0
- package/dist/webcomponents/p-c0829d61.entry.js +1 -0
- package/dist/webcomponents/p-c2db5db6.entry.js +1 -0
- package/dist/webcomponents/{p-f37f3e94.entry.js → p-c7c79332.entry.js} +1 -1
- package/dist/webcomponents/p-c90f7ed6.entry.js +1 -0
- package/dist/webcomponents/p-ca8d78af.entry.js +1 -0
- package/dist/webcomponents/p-d4535236.entry.js +1 -0
- package/dist/webcomponents/p-d5827cb2.entry.js +1 -0
- package/dist/webcomponents/p-d7fa8461.entry.js +1 -0
- package/dist/webcomponents/p-dff12534.entry.js +1 -0
- package/dist/webcomponents/p-e54cdb00.entry.js +1 -0
- package/dist/webcomponents/p-e926be0d.entry.js +1 -0
- package/dist/webcomponents/p-ed9db5b2.entry.js +1 -0
- package/dist/webcomponents/p-f1e012f6.entry.js +1 -0
- package/dist/webcomponents/p-f1f0f100.entry.js +1 -0
- package/dist/webcomponents/p-f5b7c322.entry.js +1 -0
- package/dist/webcomponents/p-f9475bb0.entry.js +1 -0
- package/dist/webcomponents/p-ff1cff1d.entry.js +1 -0
- package/dist/webcomponents/{p-sCHf--Vc.js → p-g0kDRH6Z.js} +1 -1
- package/dist/webcomponents/p-m_Ly-YPk.js +1 -0
- package/dist/webcomponents/p-sPEyLX4E.js +1 -0
- package/dist/webcomponents/p-wSi5d4-j.js +1 -0
- package/dist/webcomponents/p-wqq-X93m.js +1 -0
- package/dist/webcomponents/{p-yyedWKWX.js → p-y8av3w9x.js} +1 -1
- package/dist/webcomponents/p-ygekUw3Q.js +1 -0
- package/dist/webcomponents/p-ztF3Y786.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +9 -12
- package/dist/cjs/bank-account-document-form-inputs_8.cjs.entry.js +0 -207
- package/dist/cjs/form-control-number.cjs.entry.js +0 -58
- package/dist/cjs/index-BhI7cJcE.js +0 -1891
- package/dist/cjs/terminals-list-params-state-DfZySwaC.js +0 -22
- package/dist/esm/bank-account-document-form-inputs_8.entry.js +0 -198
- package/dist/esm/form-control-number.entry.js +0 -56
- package/dist/esm/index-DwYM91AU.js +0 -1879
- package/dist/esm/terminals-list-params-state-gllzDQAb.js +0 -16
- package/dist/webcomponents/p-016b3e4c.entry.js +0 -1
- package/dist/webcomponents/p-035a4adc.entry.js +0 -1
- package/dist/webcomponents/p-06cae9e2.entry.js +0 -1
- package/dist/webcomponents/p-06f81525.entry.js +0 -1
- package/dist/webcomponents/p-0935600b.entry.js +0 -1
- package/dist/webcomponents/p-0ab9a3ae.entry.js +0 -1
- package/dist/webcomponents/p-0b7c4ed5.entry.js +0 -1
- package/dist/webcomponents/p-0bb616fc.entry.js +0 -1
- package/dist/webcomponents/p-11wdbrqX.js +0 -1
- package/dist/webcomponents/p-138ada4a.entry.js +0 -1
- package/dist/webcomponents/p-148d3327.entry.js +0 -1
- package/dist/webcomponents/p-1575ca68.entry.js +0 -1
- package/dist/webcomponents/p-1e761d96.entry.js +0 -1
- package/dist/webcomponents/p-20e85114.entry.js +0 -1
- package/dist/webcomponents/p-2cb9edad.entry.js +0 -1
- package/dist/webcomponents/p-2d4a2d26.entry.js +0 -1
- package/dist/webcomponents/p-368b37ad.entry.js +0 -1
- package/dist/webcomponents/p-3a3935a3.entry.js +0 -1
- package/dist/webcomponents/p-3f14d0c4.entry.js +0 -1
- package/dist/webcomponents/p-4d2589b2.entry.js +0 -1
- package/dist/webcomponents/p-511e80a4.entry.js +0 -1
- package/dist/webcomponents/p-5996879d.entry.js +0 -1
- package/dist/webcomponents/p-5a748e49.entry.js +0 -1
- package/dist/webcomponents/p-5c6727ae.entry.js +0 -1
- package/dist/webcomponents/p-622af881.entry.js +0 -1
- package/dist/webcomponents/p-6454626a.entry.js +0 -1
- package/dist/webcomponents/p-64ebff16.entry.js +0 -1
- package/dist/webcomponents/p-66713269.entry.js +0 -1
- package/dist/webcomponents/p-679b36b5.entry.js +0 -1
- package/dist/webcomponents/p-71577fa1.entry.js +0 -1
- package/dist/webcomponents/p-77754a65.entry.js +0 -1
- package/dist/webcomponents/p-7ec4838f.entry.js +0 -1
- package/dist/webcomponents/p-88a8741b.entry.js +0 -1
- package/dist/webcomponents/p-899b981b.entry.js +0 -1
- package/dist/webcomponents/p-8c4b502d.entry.js +0 -1
- package/dist/webcomponents/p-8df30672.entry.js +0 -1
- package/dist/webcomponents/p-911b3d63.entry.js +0 -1
- package/dist/webcomponents/p-97b8bf5c.entry.js +0 -1
- package/dist/webcomponents/p-9b74a642.entry.js +0 -1
- package/dist/webcomponents/p-9b8aee30.entry.js +0 -1
- package/dist/webcomponents/p-9e94c9ef.entry.js +0 -1
- package/dist/webcomponents/p-B5rtFhtR.js +0 -1
- package/dist/webcomponents/p-BOqOio4U.js +0 -1
- package/dist/webcomponents/p-BUsqF4-J.js +0 -1
- package/dist/webcomponents/p-BYsgavgS.js +0 -1
- package/dist/webcomponents/p-BhqSAzpT.js +0 -1
- package/dist/webcomponents/p-BrRsgB8S.js +0 -1
- package/dist/webcomponents/p-BzT9OxlN.js +0 -1
- package/dist/webcomponents/p-C9VmfRis.js +0 -1
- package/dist/webcomponents/p-CCxsFwC4.js +0 -1
- package/dist/webcomponents/p-CK_XkZku.js +0 -1
- package/dist/webcomponents/p-CQGIjIgZ.js +0 -1
- package/dist/webcomponents/p-CZ3F1ZAT.js +0 -1
- package/dist/webcomponents/p-CgiDds_u.js +0 -1
- package/dist/webcomponents/p-CsgUIrv8.js +0 -1
- package/dist/webcomponents/p-D032AB34.js +0 -1
- package/dist/webcomponents/p-DATDsXcA.js +0 -1
- package/dist/webcomponents/p-DGGjRqDa.js +0 -1
- package/dist/webcomponents/p-DKGn-ILd.js +0 -1
- package/dist/webcomponents/p-DOcRWTul.js +0 -1
- package/dist/webcomponents/p-DY_3dcgR.js +0 -1
- package/dist/webcomponents/p-DdJYXOQX.js +0 -1
- package/dist/webcomponents/p-DmdEjScI.js +0 -1
- package/dist/webcomponents/p-DwYM91AU.js +0 -2
- package/dist/webcomponents/p-RTAZ4tdd.js +0 -1
- package/dist/webcomponents/p-Ty7R7tsw.js +0 -1
- package/dist/webcomponents/p-U3nU15el.js +0 -1
- package/dist/webcomponents/p-Uqevvbqm.js +0 -1
- package/dist/webcomponents/p-VRubcA-q.js +0 -1
- package/dist/webcomponents/p-a0b4c42b.entry.js +0 -1
- package/dist/webcomponents/p-af7c219d.entry.js +0 -1
- package/dist/webcomponents/p-b0f0d53c.entry.js +0 -1
- package/dist/webcomponents/p-b752c5bc.entry.js +0 -1
- package/dist/webcomponents/p-bbff6196.entry.js +0 -1
- package/dist/webcomponents/p-c0c36187.entry.js +0 -1
- package/dist/webcomponents/p-c920dc54.entry.js +0 -1
- package/dist/webcomponents/p-cdf1e61c.entry.js +0 -1
- package/dist/webcomponents/p-d077569e.entry.js +0 -1
- package/dist/webcomponents/p-d7b1b7b5.entry.js +0 -1
- package/dist/webcomponents/p-dc6c9c79.entry.js +0 -1
- package/dist/webcomponents/p-e4335938.entry.js +0 -1
- package/dist/webcomponents/p-e805b011.entry.js +0 -1
- package/dist/webcomponents/p-ecbc83bf.entry.js +0 -1
- package/dist/webcomponents/p-f30c939f.entry.js +0 -1
- package/dist/webcomponents/p-f56d7b4c.entry.js +0 -1
- package/dist/webcomponents/p-f99403d8.entry.js +0 -1
- package/dist/webcomponents/p-fb644da6.entry.js +0 -1
- package/dist/webcomponents/p-fc4b27ec.entry.js +0 -1
- package/dist/webcomponents/p-fe43449c.entry.js +0 -1
- package/dist/webcomponents/p-giyZ3C4E.js +0 -1
- package/dist/webcomponents/p-sA8HBfkI.js +0 -1
- package/docs/.eslintrc.cjs +0 -17
- package/docs/changelog/index.mdx +0 -17
- package/docs/entities/businessdetails/index.mdx +0 -143
- package/docs/entities/businessform/index.mdx +0 -241
- package/docs/entities/index.mdx +0 -19
- package/docs/entities/payment-provisioning/index.mdx +0 -128
- package/docs/frameworks/angular/index.mdx +0 -112
- package/docs/frameworks/index.mdx +0 -18
- package/docs/frameworks/react/index.mdx +0 -125
- package/docs/frameworks/vue/index.mdx +0 -102
- package/docs/helpers/PartsTable.js +0 -50
- package/docs/helpers/PropsTable.js +0 -56
- package/docs/helpers/index.ts +0 -3
- package/docs/helpers/version.js +0 -32
- package/docs/introduction/index.mdx +0 -125
- package/docs/merchant-tools/checkouts-list/index.mdx +0 -97
- package/docs/merchant-tools/gross-payments-chart/index.mdx +0 -83
- package/docs/merchant-tools/index.mdx +0 -25
- package/docs/merchant-tools/order-terminals/index.mdx +0 -84
- package/docs/merchant-tools/payment-details/index.mdx +0 -132
- package/docs/merchant-tools/payment-transactions-list/index.mdx +0 -85
- package/docs/merchant-tools/payments-list/index.mdx +0 -109
- package/docs/merchant-tools/payout-details/index.mdx +0 -84
- package/docs/merchant-tools/payout-transactions-list/index.mdx +0 -84
- package/docs/merchant-tools/payouts-list/index.mdx +0 -92
- package/docs/merchant-tools/terminal-orders-list/index.mdx +0 -85
- package/docs/merchant-tools/terminals-list/index.mdx +0 -93
- package/docs/modular-checkout/complete-examples/index.mdx +0 -20
- package/docs/modular-checkout/index.mdx +0 -20
- package/docs/modular-checkout/introduction/index.mdx +0 -102
- package/docs/modular-checkout/sub-components/apple-pay.mdx +0 -106
- package/docs/modular-checkout/sub-components/bank-account-form.mdx +0 -167
- package/docs/modular-checkout/sub-components/card-form.mdx +0 -178
- package/docs/modular-checkout/sub-components/index.mdx +0 -23
- package/docs/modular-checkout/sub-components/payment-method-options.mdx +0 -87
- package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +0 -158
- package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +0 -183
- package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +0 -221
- package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +0 -183
- package/docs/modular-checkout/sub-components/summary.mdx +0 -111
- package/docs/payment-facilitation/dispute-management/index.mdx +0 -99
- package/docs/payment-facilitation/index.mdx +0 -21
- package/docs/payment-facilitation/refund-payment/index.mdx +0 -241
- package/docs/payment-facilitation/tokenize-payment-method/index.mdx +0 -350
- package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +0 -150
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Button, StyledHost } from "../../../../ui-components";
|
|
3
|
+
import { PlaidService } from "../../../../api/services/plaid.service";
|
|
4
|
+
import { ComponentErrorSeverity } from "../../../../api/ComponentError";
|
|
5
|
+
import { PlaidErrorCodes, PLAID_ERROR_MESSAGES, PLAID_ERROR_SEVERITY, } from "../../../../api/Plaid";
|
|
6
|
+
import plaidLogoSvg from "../../../../assets/plaid-icon.svg";
|
|
7
|
+
import { buttonSecondary } from "../../../../styles/parts";
|
|
8
|
+
export class PlaidVerification {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.linkToken = null;
|
|
11
|
+
this.linkTokenId = null;
|
|
12
|
+
this.plaidLink = null;
|
|
13
|
+
this.isAuthenticating = false;
|
|
14
|
+
this.isSuccess = false;
|
|
15
|
+
this.error = null;
|
|
16
|
+
this.isLoading = false;
|
|
17
|
+
this.plaidService = new PlaidService();
|
|
18
|
+
this.abortController = null;
|
|
19
|
+
this.timeoutId = null;
|
|
20
|
+
this.initializePlaidLink = async () => {
|
|
21
|
+
try {
|
|
22
|
+
// Check if Plaid is available globally
|
|
23
|
+
if (typeof window.Plaid === 'undefined') {
|
|
24
|
+
this.handleError({
|
|
25
|
+
code: PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
|
|
26
|
+
message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
27
|
+
severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
28
|
+
retryable: true,
|
|
29
|
+
userAction: 'Refresh the page and try again',
|
|
30
|
+
});
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
// Get link token from backend
|
|
34
|
+
await this.getLinkToken();
|
|
35
|
+
if (!this.linkToken) {
|
|
36
|
+
this.handleError({
|
|
37
|
+
code: PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
|
|
38
|
+
message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
|
|
39
|
+
severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
|
|
40
|
+
retryable: true,
|
|
41
|
+
userAction: 'Click to try again',
|
|
42
|
+
});
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
// Initialize Plaid Link
|
|
46
|
+
const Plaid = window.Plaid;
|
|
47
|
+
this.plaidLink = Plaid.create({
|
|
48
|
+
token: this.linkToken,
|
|
49
|
+
onSuccess: this.handlePlaidSuccess,
|
|
50
|
+
onExit: this.handlePlaidExit,
|
|
51
|
+
onEvent: this.handlePlaidEvent,
|
|
52
|
+
onLoad: this.handlePlaidLoad,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
this.handleError({
|
|
57
|
+
code: PlaidErrorCodes.PLAID_LINK_INIT_FAILED,
|
|
58
|
+
message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
|
|
59
|
+
severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
|
|
60
|
+
originalError: error,
|
|
61
|
+
retryable: true,
|
|
62
|
+
userAction: 'Click to try again',
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
this.getLinkToken = async () => {
|
|
67
|
+
var _a, _b, _c, _d;
|
|
68
|
+
try {
|
|
69
|
+
if (!this.authToken || !this.accountId) {
|
|
70
|
+
this.handleError({
|
|
71
|
+
code: PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
|
|
72
|
+
message: 'Missing authentication. Please provide authToken and accountId.',
|
|
73
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
74
|
+
retryable: false,
|
|
75
|
+
userAction: 'Provide required props',
|
|
76
|
+
});
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
// Create abort controller for timeout handling
|
|
80
|
+
this.abortController = new AbortController();
|
|
81
|
+
// Set timeout for the request
|
|
82
|
+
this.timeoutId = setTimeout(() => {
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
85
|
+
}, 30000); // 30 second timeout
|
|
86
|
+
const response = await this.plaidService.getLinkTokenForVerification(this.authToken, this.businessId, this.abortController.signal);
|
|
87
|
+
// Clear timeout
|
|
88
|
+
if (this.timeoutId) {
|
|
89
|
+
clearTimeout(this.timeoutId);
|
|
90
|
+
this.timeoutId = null;
|
|
91
|
+
}
|
|
92
|
+
if (response.error) {
|
|
93
|
+
const errorMessage = typeof response.error === 'string'
|
|
94
|
+
? response.error
|
|
95
|
+
: response.error.message || 'Failed to get link token';
|
|
96
|
+
throw new Error(errorMessage);
|
|
97
|
+
}
|
|
98
|
+
this.linkToken = response.data.link_token;
|
|
99
|
+
this.linkTokenId = response.data.id;
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
// Clear timeout
|
|
103
|
+
if (this.timeoutId) {
|
|
104
|
+
clearTimeout(this.timeoutId);
|
|
105
|
+
this.timeoutId = null;
|
|
106
|
+
}
|
|
107
|
+
let errorCode = PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED;
|
|
108
|
+
let message = PLAID_ERROR_MESSAGES[errorCode];
|
|
109
|
+
let retryable = true;
|
|
110
|
+
// Handle specific error types
|
|
111
|
+
if (error.name === 'AbortError') {
|
|
112
|
+
errorCode = PlaidErrorCodes.PLAID_TIMEOUT;
|
|
113
|
+
message = PLAID_ERROR_MESSAGES[errorCode];
|
|
114
|
+
retryable = true;
|
|
115
|
+
}
|
|
116
|
+
else if (((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('network')) || ((_b = error.message) === null || _b === void 0 ? void 0 : _b.includes('fetch'))) {
|
|
117
|
+
errorCode = PlaidErrorCodes.PLAID_NETWORK_ERROR;
|
|
118
|
+
message = PLAID_ERROR_MESSAGES[errorCode];
|
|
119
|
+
retryable = true;
|
|
120
|
+
}
|
|
121
|
+
else if (((_c = error.message) === null || _c === void 0 ? void 0 : _c.includes('401')) || ((_d = error.message) === null || _d === void 0 ? void 0 : _d.includes('unauthorized'))) {
|
|
122
|
+
errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
|
|
123
|
+
message = 'Authentication failed. Please check your credentials.';
|
|
124
|
+
retryable = false;
|
|
125
|
+
}
|
|
126
|
+
this.handleError({
|
|
127
|
+
code: errorCode,
|
|
128
|
+
message: message,
|
|
129
|
+
severity: PLAID_ERROR_SEVERITY[errorCode],
|
|
130
|
+
originalError: error,
|
|
131
|
+
retryable,
|
|
132
|
+
userAction: retryable ? 'Click to try again' : 'Check your credentials',
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
this.openPlaidLink = () => {
|
|
137
|
+
if (this.plaidLink && this.linkToken) {
|
|
138
|
+
this.isAuthenticating = true;
|
|
139
|
+
this.clearError();
|
|
140
|
+
this.plaidLink.open();
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
this.handlePlaidSuccess = async (publicToken, _metadata) => {
|
|
144
|
+
var _a;
|
|
145
|
+
this.isAuthenticating = false;
|
|
146
|
+
this.isLoading = true;
|
|
147
|
+
this.clearError();
|
|
148
|
+
try {
|
|
149
|
+
// Send publicToken to backend
|
|
150
|
+
const response = await this.plaidService.postPlaidVerifiedBankAccountData(this.authToken, this.businessId, { public_token: publicToken, link_token_id: this.linkTokenId }, (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.signal);
|
|
151
|
+
if (response.error) {
|
|
152
|
+
const errorMessage = typeof response.error === 'string'
|
|
153
|
+
? response.error
|
|
154
|
+
: response.error.message || 'Failed to verify bank account';
|
|
155
|
+
throw new Error(errorMessage);
|
|
156
|
+
}
|
|
157
|
+
// Success - display success message
|
|
158
|
+
this.isSuccess = true;
|
|
159
|
+
this.isLoading = false;
|
|
160
|
+
// Emit success event
|
|
161
|
+
this.plaidVerificationSuccess.emit({ publicToken, bankAccount: response.data });
|
|
162
|
+
}
|
|
163
|
+
catch (error) {
|
|
164
|
+
this.isLoading = false;
|
|
165
|
+
this.handleError({
|
|
166
|
+
code: PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED,
|
|
167
|
+
message: (error === null || error === void 0 ? void 0 : error.message) || 'Failed to verify bank account',
|
|
168
|
+
severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED],
|
|
169
|
+
originalError: error,
|
|
170
|
+
retryable: true,
|
|
171
|
+
userAction: 'Click to try again',
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
this.handlePlaidExit = (err, _metadata) => {
|
|
176
|
+
this.isAuthenticating = false;
|
|
177
|
+
if (err) {
|
|
178
|
+
this.handlePlaidError(err);
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
this.handlePlaidEvent = (eventName, metadata) => {
|
|
182
|
+
// Handle specific events if needed
|
|
183
|
+
switch (eventName) {
|
|
184
|
+
case 'OPEN':
|
|
185
|
+
this.isAuthenticating = true;
|
|
186
|
+
break;
|
|
187
|
+
case 'CLOSE':
|
|
188
|
+
this.isAuthenticating = false;
|
|
189
|
+
break;
|
|
190
|
+
case 'ERROR':
|
|
191
|
+
this.handlePlaidError(metadata);
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
this.handlePlaidLoad = () => {
|
|
196
|
+
// Plaid Link loaded successfully
|
|
197
|
+
};
|
|
198
|
+
this.handlePlaidError = (error) => {
|
|
199
|
+
let errorCode = PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED;
|
|
200
|
+
let message = PLAID_ERROR_MESSAGES[errorCode];
|
|
201
|
+
let retryable = true;
|
|
202
|
+
let userAction = 'Click to try again';
|
|
203
|
+
// Map Plaid error codes to our error codes
|
|
204
|
+
if (error.error_code) {
|
|
205
|
+
switch (error.error_code) {
|
|
206
|
+
case 'INVALID_CREDENTIALS':
|
|
207
|
+
errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
|
|
208
|
+
message = PLAID_ERROR_MESSAGES[errorCode];
|
|
209
|
+
retryable = true;
|
|
210
|
+
break;
|
|
211
|
+
case 'ITEM_LOGIN_REQUIRED':
|
|
212
|
+
errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
|
|
213
|
+
message = 'Your bank requires re-authentication. Please try again.';
|
|
214
|
+
retryable = true;
|
|
215
|
+
break;
|
|
216
|
+
case 'ITEM_LOCKED':
|
|
217
|
+
errorCode = PlaidErrorCodes.PLAID_ACCOUNT_LOCKED;
|
|
218
|
+
message = PLAID_ERROR_MESSAGES[errorCode];
|
|
219
|
+
retryable = false;
|
|
220
|
+
userAction = 'Contact your bank';
|
|
221
|
+
break;
|
|
222
|
+
case 'INSTITUTION_NOT_RESPONDING':
|
|
223
|
+
errorCode = PlaidErrorCodes.PLAID_MAINTENANCE;
|
|
224
|
+
message = PLAID_ERROR_MESSAGES[errorCode];
|
|
225
|
+
retryable = true;
|
|
226
|
+
break;
|
|
227
|
+
case 'RATE_LIMIT_EXCEEDED':
|
|
228
|
+
errorCode = PlaidErrorCodes.PLAID_RATE_LIMITED;
|
|
229
|
+
message = PLAID_ERROR_MESSAGES[errorCode];
|
|
230
|
+
retryable = true;
|
|
231
|
+
break;
|
|
232
|
+
default:
|
|
233
|
+
if (error.error_message) {
|
|
234
|
+
message = error.error_message;
|
|
235
|
+
}
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
this.handleError({
|
|
240
|
+
code: errorCode,
|
|
241
|
+
message,
|
|
242
|
+
severity: PLAID_ERROR_SEVERITY[errorCode],
|
|
243
|
+
originalError: error,
|
|
244
|
+
retryable,
|
|
245
|
+
userAction,
|
|
246
|
+
});
|
|
247
|
+
this.isAuthenticating = false;
|
|
248
|
+
};
|
|
249
|
+
this.handleError = (plaidError) => {
|
|
250
|
+
this.error = plaidError;
|
|
251
|
+
this.isLoading = false;
|
|
252
|
+
// Emit error event for parent components
|
|
253
|
+
this.plaidVerificationError.emit(plaidError);
|
|
254
|
+
console.error('Plaid verification error:', plaidError);
|
|
255
|
+
};
|
|
256
|
+
this.clearError = () => {
|
|
257
|
+
if (this.error) {
|
|
258
|
+
this.error = null;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
componentDidRender() {
|
|
263
|
+
if (!this.scriptRef)
|
|
264
|
+
return;
|
|
265
|
+
this.scriptRef.onload = () => {
|
|
266
|
+
this.initializePlaidLink();
|
|
267
|
+
};
|
|
268
|
+
this.scriptRef.onerror = () => {
|
|
269
|
+
this.handleError({
|
|
270
|
+
code: PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
|
|
271
|
+
message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
272
|
+
severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
273
|
+
retryable: true,
|
|
274
|
+
userAction: 'Refresh the page and try again',
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
disconnectedCallback() {
|
|
279
|
+
// Clean up timeouts and abort controllers
|
|
280
|
+
if (this.timeoutId) {
|
|
281
|
+
clearTimeout(this.timeoutId);
|
|
282
|
+
}
|
|
283
|
+
if (this.abortController) {
|
|
284
|
+
this.abortController.abort();
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
render() {
|
|
288
|
+
const renderErrorState = () => {
|
|
289
|
+
if (!this.error)
|
|
290
|
+
return null;
|
|
291
|
+
const errorClass = this.error.severity === ComponentErrorSeverity.ERROR
|
|
292
|
+
? 'text-danger'
|
|
293
|
+
: this.error.severity === ComponentErrorSeverity.WARNING
|
|
294
|
+
? 'text-warning'
|
|
295
|
+
: 'text-info';
|
|
296
|
+
return (h("div", { class: `${errorClass} mt-2` }, h("small", null, this.error.message), h("br", null), this.error.userAction && (h("small", { class: "text-muted" }, this.error.userAction))));
|
|
297
|
+
};
|
|
298
|
+
const renderStatusState = () => {
|
|
299
|
+
if (this.error)
|
|
300
|
+
return null;
|
|
301
|
+
if (this.isLoading) {
|
|
302
|
+
return (h("div", { class: "text-info mt-2" }, h("small", null, "Verifying bank account...")));
|
|
303
|
+
}
|
|
304
|
+
if (this.isSuccess) {
|
|
305
|
+
return (h("div", { class: "text-success mt-2" }, h("small", null, "\u2713 Bank account verified successfully")));
|
|
306
|
+
}
|
|
307
|
+
if (this.isAuthenticating) {
|
|
308
|
+
return (h("div", { class: "text-info mt-2" }, h("small", null, "Connecting to your bank...")));
|
|
309
|
+
}
|
|
310
|
+
return null;
|
|
311
|
+
};
|
|
312
|
+
const plaidLogo = (h("img", { class: "plaid-logo-img", src: plaidLogoSvg, alt: "Plaid", title: "Plaid", style: {
|
|
313
|
+
display: 'inline',
|
|
314
|
+
width: '20px',
|
|
315
|
+
height: '20px',
|
|
316
|
+
marginLeft: '5px',
|
|
317
|
+
marginTop: '-2px',
|
|
318
|
+
} }));
|
|
319
|
+
return (h(StyledHost, null, h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", { class: "mb-3" }, h(Button, { variant: "secondary", type: "button", onClick: (event) => { event.preventDefault(); this.openPlaidLink(); }, disabled: this.isLoading, part: buttonSecondary }, "Link Bank Account with ", plaidLogo)), renderErrorState(), renderStatusState())));
|
|
320
|
+
}
|
|
321
|
+
static get is() { return "plaid-verification"; }
|
|
322
|
+
static get properties() {
|
|
323
|
+
return {
|
|
324
|
+
"authToken": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"mutable": false,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "string",
|
|
329
|
+
"resolved": "string",
|
|
330
|
+
"references": {}
|
|
331
|
+
},
|
|
332
|
+
"required": false,
|
|
333
|
+
"optional": false,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [],
|
|
336
|
+
"text": ""
|
|
337
|
+
},
|
|
338
|
+
"getter": false,
|
|
339
|
+
"setter": false,
|
|
340
|
+
"reflect": false,
|
|
341
|
+
"attribute": "auth-token"
|
|
342
|
+
},
|
|
343
|
+
"accountId": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "string",
|
|
348
|
+
"resolved": "string",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": ""
|
|
356
|
+
},
|
|
357
|
+
"getter": false,
|
|
358
|
+
"setter": false,
|
|
359
|
+
"reflect": false,
|
|
360
|
+
"attribute": "account-id"
|
|
361
|
+
},
|
|
362
|
+
"businessId": {
|
|
363
|
+
"type": "string",
|
|
364
|
+
"mutable": false,
|
|
365
|
+
"complexType": {
|
|
366
|
+
"original": "string",
|
|
367
|
+
"resolved": "string",
|
|
368
|
+
"references": {}
|
|
369
|
+
},
|
|
370
|
+
"required": false,
|
|
371
|
+
"optional": false,
|
|
372
|
+
"docs": {
|
|
373
|
+
"tags": [],
|
|
374
|
+
"text": ""
|
|
375
|
+
},
|
|
376
|
+
"getter": false,
|
|
377
|
+
"setter": false,
|
|
378
|
+
"reflect": false,
|
|
379
|
+
"attribute": "business-id"
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
static get states() {
|
|
384
|
+
return {
|
|
385
|
+
"linkToken": {},
|
|
386
|
+
"linkTokenId": {},
|
|
387
|
+
"plaidLink": {},
|
|
388
|
+
"isAuthenticating": {},
|
|
389
|
+
"isSuccess": {},
|
|
390
|
+
"error": {},
|
|
391
|
+
"isLoading": {}
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
static get events() {
|
|
395
|
+
return [{
|
|
396
|
+
"method": "plaidVerificationSuccess",
|
|
397
|
+
"name": "plaidVerificationSuccess",
|
|
398
|
+
"bubbles": true,
|
|
399
|
+
"cancelable": true,
|
|
400
|
+
"composed": true,
|
|
401
|
+
"docs": {
|
|
402
|
+
"tags": [],
|
|
403
|
+
"text": ""
|
|
404
|
+
},
|
|
405
|
+
"complexType": {
|
|
406
|
+
"original": "{ publicToken: string, bankAccount: any }",
|
|
407
|
+
"resolved": "{ publicToken: string; bankAccount: any; }",
|
|
408
|
+
"references": {}
|
|
409
|
+
}
|
|
410
|
+
}, {
|
|
411
|
+
"method": "plaidVerificationError",
|
|
412
|
+
"name": "plaidVerificationError",
|
|
413
|
+
"bubbles": true,
|
|
414
|
+
"cancelable": true,
|
|
415
|
+
"composed": true,
|
|
416
|
+
"docs": {
|
|
417
|
+
"tags": [],
|
|
418
|
+
"text": ""
|
|
419
|
+
},
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "PlaidError",
|
|
422
|
+
"resolved": "PlaidError",
|
|
423
|
+
"references": {
|
|
424
|
+
"PlaidError": {
|
|
425
|
+
"location": "import",
|
|
426
|
+
"path": "../../../../api/Plaid",
|
|
427
|
+
"id": "src/api/Plaid.ts::PlaidError"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}];
|
|
432
|
+
}
|
|
433
|
+
}
|
|
@@ -108,7 +108,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
108
108
|
return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h("form", { key: '
|
|
111
|
+
return (h("form", { key: '33336d0a66d63ce39951822fd570a9a0689e714d' }, h("fieldset", { key: 'fcfdb59eef671cb408ed99e2dad20d6be706688a' }, h("legend", { key: 'f0cf7f0ac15c90cf36ee25d4bf986c0e781a2e92', part: heading2 }, "Terms and Conditions"), h("hr", { key: 'd5c820e7d6523f931040a994bd103d69fd644c45' }), h("div", { key: '681b584de14afe121f5dc69ee0bad1cab51ba0d1' }, h("p", { key: '7c597bf891a108d303739126b806ded5220f56ab' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '52854c5a07611180be40df21a5f60d7d9d4c4cb7' }), h("div", { key: '7448b3f6138b996edac137b961367725e3b40556', class: "row-gy-3" }, h("div", { key: 'c732deb4e1e3a2d04dd4e09914543a7f594af108', class: "col-12" }, h("form-control-checkbox", { key: 'fca18e4843aef20d13790029b114b2ecaeb6ffa2', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "justifi-business-terms-conditions-form-step"; }
|
|
114
114
|
static get properties() {
|
|
@@ -121,7 +121,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
121
121
|
"resolved": "string",
|
|
122
122
|
"references": {}
|
|
123
123
|
},
|
|
124
|
-
"required":
|
|
124
|
+
"required": true,
|
|
125
125
|
"optional": false,
|
|
126
126
|
"docs": {
|
|
127
127
|
"tags": [],
|
|
@@ -140,7 +140,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
140
140
|
"resolved": "string",
|
|
141
141
|
"references": {}
|
|
142
142
|
},
|
|
143
|
-
"required":
|
|
143
|
+
"required": true,
|
|
144
144
|
"optional": false,
|
|
145
145
|
"docs": {
|
|
146
146
|
"tags": [],
|
package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js
CHANGED
|
@@ -4,12 +4,14 @@ export const additionalQuestionsSchema = (allowOptionalFields) => {
|
|
|
4
4
|
const schema = object({
|
|
5
5
|
business_revenue: revenueValidation.required('Enter business revenue'),
|
|
6
6
|
business_payment_volume: paymentVolumeValidation.required('Enter business payment volume'),
|
|
7
|
+
business_average_transaction_amount: revenueValidation.required('Enter average transaction amount'),
|
|
7
8
|
business_when_service_received: whenServiceReceivedValidation.required('Select when service is received'),
|
|
8
9
|
business_other_payment_details: otherPaymentDetailsValidation.nullable(),
|
|
9
10
|
});
|
|
10
11
|
const easySchema = object({
|
|
11
12
|
business_revenue: revenueValidation.nullable(),
|
|
12
13
|
business_payment_volume: paymentVolumeValidation.nullable(),
|
|
14
|
+
business_average_transaction_amount: revenueValidation.nullable(),
|
|
13
15
|
business_when_service_received: whenServiceReceivedValidation.nullable(),
|
|
14
16
|
business_other_payment_details: otherPaymentDetailsValidation.nullable(),
|
|
15
17
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { object, string } from "yup";
|
|
2
2
|
import { addressSchemaUSA, addressSchemaCAN } from "./business-address-schema";
|
|
3
|
-
import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation, makeIdentityNumberValidation, } from "./schema-validations";
|
|
3
|
+
import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation, makeIdentityNumberValidation, ownershipPercentageValidation, } from "./schema-validations";
|
|
4
4
|
import { CountryCode } from "../../../utils/country-codes";
|
|
5
5
|
// Internal USA schemas
|
|
6
6
|
const schemaUSA = (role) => object({
|
|
@@ -11,6 +11,7 @@ const schemaUSA = (role) => object({
|
|
|
11
11
|
dob_full: dobValidation(role).nullable(),
|
|
12
12
|
ssn_last4: string().nullable(),
|
|
13
13
|
identification_number: ssnValidation.nullable(),
|
|
14
|
+
ownership_percentage: ownershipPercentageValidation.nullable(),
|
|
14
15
|
address: addressSchemaUSA(true),
|
|
15
16
|
});
|
|
16
17
|
const strictSchemaUSA = (role) => object({
|
|
@@ -22,6 +23,7 @@ const strictSchemaUSA = (role) => object({
|
|
|
22
23
|
ssn_last4: string().nullable(),
|
|
23
24
|
// ssn required unless last4 provided (handled inside ssnValidation)
|
|
24
25
|
identification_number: ssnValidation,
|
|
26
|
+
ownership_percentage: ownershipPercentageValidation.nullable(),
|
|
25
27
|
address: addressSchemaUSA(false),
|
|
26
28
|
});
|
|
27
29
|
// Internal CAN schemas
|
|
@@ -33,6 +35,7 @@ const schemaCAN = (role) => object({
|
|
|
33
35
|
dob_full: dobValidation(role).nullable(),
|
|
34
36
|
ssn_last4: string().nullable(),
|
|
35
37
|
identification_number: makeIdentityNumberValidation(CountryCode.CAN).nullable(),
|
|
38
|
+
ownership_percentage: ownershipPercentageValidation.nullable(),
|
|
36
39
|
address: addressSchemaCAN(true),
|
|
37
40
|
});
|
|
38
41
|
const strictSchemaCAN = (role) => object({
|
|
@@ -43,6 +46,7 @@ const strictSchemaCAN = (role) => object({
|
|
|
43
46
|
dob_full: dobValidation(role).required('Enter date of birth'),
|
|
44
47
|
ssn_last4: string().nullable(),
|
|
45
48
|
identification_number: makeIdentityNumberValidation(CountryCode.CAN),
|
|
49
|
+
ownership_percentage: ownershipPercentageValidation.nullable(),
|
|
46
50
|
address: addressSchemaCAN(false),
|
|
47
51
|
});
|
|
48
52
|
export const identitySchemaUSA = (role, allowOptionalFields) => allowOptionalFields ? schemaUSA(role) : strictSchemaUSA(role);
|
|
@@ -124,6 +124,21 @@ export const ssnValidation = string()
|
|
|
124
124
|
return value !== '123456789';
|
|
125
125
|
})
|
|
126
126
|
.transform(transformEmptyString);
|
|
127
|
+
export const ownershipPercentageValidation = string()
|
|
128
|
+
.matches(numbersOnlyRegex, 'Enter valid percentage')
|
|
129
|
+
.test('min', 'Percentage must be at least 0', (value) => {
|
|
130
|
+
if (!value)
|
|
131
|
+
return true;
|
|
132
|
+
const num = parseFloat(value);
|
|
133
|
+
return num >= 0;
|
|
134
|
+
})
|
|
135
|
+
.test('max', 'Percentage must be at most 100', (value) => {
|
|
136
|
+
if (!value)
|
|
137
|
+
return true;
|
|
138
|
+
const num = parseFloat(value);
|
|
139
|
+
return num <= 100;
|
|
140
|
+
})
|
|
141
|
+
.transform(transformEmptyString);
|
|
127
142
|
// Address Validations
|
|
128
143
|
export const lineOneValidation = string()
|
|
129
144
|
.min(5, 'Address must be at least 5 characters')
|
|
@@ -33,10 +33,10 @@ export class BankAccountForm {
|
|
|
33
33
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'a104b2e88e818472d0158990ccf2cac6d7315616' }, h(BankAccountFormSkeleton, { key: '1ed1ac87a66aedf6a7528247e0ff3a803c74e4c3', isReady: this.isReady }), h("div", { key: 'a96c05c60c51f97c8abb7dc6a8cfebc940ea1513', class: "container-fluid p-0", style: {
|
|
37
37
|
opacity: this.isReady ? '1' : '0',
|
|
38
38
|
height: this.isReady ? 'auto' : '0',
|
|
39
|
-
} }, h("div", { key: '
|
|
39
|
+
} }, h("div", { key: '3d168fd241702b30f0c8727d3c0aae65c20b69aa', class: "row mb-3" }, h("iframe-input", { key: 'dc1da989b1577ed62b3eeafd33128aca38e4610d', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '1179ae9d6b9f476bb01a1ee4f4edd7da6f22f635', class: "row" }, h("iframe-input", { key: '7e79b383876be1711a2e21ab7462f86281ebf28c', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "bank-account-form"; }
|
|
42
42
|
static get states() {
|
|
@@ -37,10 +37,10 @@ export class CardForm {
|
|
|
37
37
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'fd58409622904cfdbe1df9e7aa893cec0b469472' }, h(CardFormSkeleton, { key: '7bd4dbc17afc1641eafa5cc6c12349901a05b862', isReady: this.isReady }), h("div", { key: '1eb88b3443cb12f592a247335d5a6de2597bf10d', class: "container-fluid p-0", style: {
|
|
41
41
|
opacity: this.isReady ? '1' : '0',
|
|
42
42
|
height: this.isReady ? 'auto' : '0',
|
|
43
|
-
} }, h("div", { key: '
|
|
43
|
+
} }, h("div", { key: '4b50883a1094343e1f039c8bafed2ecfb42be0e8', class: "mb-3" }, h("iframe-input", { key: '83930c6af6b6a7eb82bf66565fa2e9d16b3bfa59', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: '33c8a34d012abc533d5b69baa3fddfcb3714be61', class: "d-flex align-items-start" }, h("div", { key: 'b37fedaab03b543789fb2909d0daa91d28d9b772', class: "flex-fill me-3" }, h("iframe-input", { key: 'd5fa7b25f4726e6896ee8fcf0a2ab882b1df5260', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '38798bb90f5457d3e5c3659c716fe38a79a2f2a0', class: "flex-fill me-3" }, h("iframe-input", { key: '44d57ddbe4221e1d0000a9db7a19d8878211cb50', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: '233f99090baecc6097f2226d93a14d428571b03f', class: "flex-fill" }, h("iframe-input", { key: '0d353a3bc4c1ece3a5ff3aecc9aabf349d59bc90', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "card-form"; }
|
|
46
46
|
static get states() {
|
|
@@ -5,6 +5,25 @@ import { checkoutStore } from "../../store/checkout.store";
|
|
|
5
5
|
import { checkoutSummary } from "../../styles/parts";
|
|
6
6
|
import { StyledHost } from "../../ui-components";
|
|
7
7
|
import { PAYMENT_METHODS } from "../modular-checkout/ModularCheckout";
|
|
8
|
+
/**
|
|
9
|
+
* @part font-family - Controls the font family for the component.
|
|
10
|
+
* @part color - Controls the text color.
|
|
11
|
+
* @part background-color - Controls the background color.
|
|
12
|
+
* @part button - Button styles.
|
|
13
|
+
* @part button-disabled - Disabled button styles.
|
|
14
|
+
* @part input - Input field styles.
|
|
15
|
+
* @part input-focused - Input styles when focused.
|
|
16
|
+
* @part input-invalid - Input styles when invalid.
|
|
17
|
+
* @part input-invalid-and-focused - Input styles when invalid and focused.
|
|
18
|
+
* @part input-radio - Radio input styles.
|
|
19
|
+
* @part input-checkbox - Checkbox input styles.
|
|
20
|
+
* @part input-checkbox-checked - Checkbox input styles when checked.
|
|
21
|
+
* @part input-checkbox-checked-focused - Checkbox input styles when checked and focused.
|
|
22
|
+
* @part input-checkbox-focused - Checkbox input styles when focused.
|
|
23
|
+
* @part button-primary - Primary button styles.
|
|
24
|
+
* @part radio-list-item - Radio list item styles.
|
|
25
|
+
* @part checkout-summary - Summary section of the checkout component.
|
|
26
|
+
*/
|
|
8
27
|
export class Checkout {
|
|
9
28
|
constructor() {
|
|
10
29
|
this.availablePaymentMethods = [];
|
|
@@ -76,9 +95,9 @@ export class Checkout {
|
|
|
76
95
|
}
|
|
77
96
|
render() {
|
|
78
97
|
var _a, _b;
|
|
79
|
-
return (h(StyledHost, { key: '
|
|
98
|
+
return (h(StyledHost, { key: '6bbc4c4997d14ac9040b8f88075a7e9b53208d4c' }, h("justifi-modular-checkout", { key: '9b11e7df277e5e9f70cd8928f865a2e62cfc8293', ref: (el) => {
|
|
80
99
|
this.modularCheckoutRef = el;
|
|
81
|
-
}, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '
|
|
100
|
+
}, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: 'c64981c31fd2d022f886b0613bd47bd0b0fe5f2a', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '8f01af25b281a19f7fc83451a44f63836efadc20', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: 'd729ed0b26c94e74d8ce824fcf97bd3002e3a9d0', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '9cc9863b1dd2531bda52e609bba5c7c8f9883cb1' }, h("justifi-checkout-summary", { key: '00f36de593e245982bfe03c8867881fedfb7d43f' }))), h("div", { key: '3fe5390d7b8b2fbcdbfff4b71d4b7c43ddae9ff6', class: "col-12 mt-4" }, h("slot", { key: '84fa5a7e7772124d7fa61a9317499618850eb0bb', name: "insurance" })), h("div", { key: 'c8d1553c6041c0e000eab9dc953a23aa089a3f90', class: "col-12 mt-4" }, h("justifi-header", { key: 'a08fc163ba437f767ab88d78ac55ae003b09a567', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: 'bff5fc2986d37bbe49a5253d43db55663ee7be74', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'f5ca969400444639b09e423b154e47abf89c731f', class: "d-flex flex-column" }, h("section", { key: 'b70209321ebefd161ae3113293c62fe953913f2e' }, h("div", { key: '4df7539a9b8d6b52d47ad32974a59ab2d366b4b2' }, this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '023deb9a1d025e36cc2b07c3ea8144e0068ea470', class: "mb-3" }, h("justifi-apple-pay", { key: '4e52440f329bae25194e71fa30190218f5c1cecb' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.GOOGLE_PAY) && (h("div", { key: '83e12debb25e0ef095ca40d87054411396238754', class: "mb-3" }, h("justifi-google-pay", { key: 'ed6312e39ff4a98c819cf1853f416c6fbf845323', ref: (el) => (this.googlePayRef = el) }))), h("justifi-saved-payment-methods", { key: 'e059fda26ec54c4f908754663fa23f26c3df8f0c' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: '3d836539d5850abfd956b39bede6efad5954bdad', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && !this.disableBnpl && (h("justifi-radio-list-item", { key: 'ac0ac64e9f7586764e3f5671c74794c80ffcff54', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("internal-tokenize-payment-method", { key: '894e7a5bfef2eefa5d045928bb6fab3b1f39bd5e', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: '2121952545d38693f11426ef8146b39956d4f427', class: "mt-4" }, h("justifi-button", { key: '5e7cf3c699048943df68c0506a34617d0b14bf07', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
|
|
82
101
|
}
|
|
83
102
|
static get is() { return "justifi-checkout"; }
|
|
84
103
|
static get properties() {
|
|
@@ -91,7 +110,7 @@ export class Checkout {
|
|
|
91
110
|
"resolved": "string",
|
|
92
111
|
"references": {}
|
|
93
112
|
},
|
|
94
|
-
"required":
|
|
113
|
+
"required": true,
|
|
95
114
|
"optional": false,
|
|
96
115
|
"docs": {
|
|
97
116
|
"tags": [],
|
|
@@ -110,7 +129,7 @@ export class Checkout {
|
|
|
110
129
|
"resolved": "string",
|
|
111
130
|
"references": {}
|
|
112
131
|
},
|
|
113
|
-
"required":
|
|
132
|
+
"required": true,
|
|
114
133
|
"optional": false,
|
|
115
134
|
"docs": {
|
|
116
135
|
"tags": [],
|