@justifi/webcomponents 6.11.0 → 6.12.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/{check-pkg-version-Di4JmtKX.js → Analytics-DZCXB2Za.js} +1 -44
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_9.cjs.entry.js} +22 -22
- package/dist/cjs/{form-alert_5.cjs.entry.js → additional-questions_5.cjs.entry.js} +26 -26
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +203 -0
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +37 -37
- package/dist/cjs/bank-account-form.cjs.entry.js +8 -4
- package/dist/cjs/card-form.cjs.entry.js +8 -4
- package/dist/cjs/check-pkg-version-CUhnNGii.js +47 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-number-masked_3.cjs.entry.js → form-address-fields_3.cjs.entry.js} +23 -23
- package/dist/cjs/form-control-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +7 -7
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +4 -4
- package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number_3.cjs.entry.js +11 -11
- package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
- package/dist/cjs/form-control-select_2.cjs.entry.js +8 -8
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/internal-button.cjs.entry.js +18 -0
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +24 -24
- package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_11.cjs.entry.js} +337 -31
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +46 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +44 -0
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +24 -0
- package/dist/cjs/justifi-billing-form.cjs.entry.js +24 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +7 -6
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +24 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +44 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +8 -9
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-config-provider.cjs.entry.js +2 -2
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -6
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -5
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +18 -0
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-D8NG-zuY.js → package-CJg8qLYd.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/radio-list-item.cjs.entry.js +21 -0
- package/dist/cjs/save-new-payment-method.cjs.entry.js +25 -0
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +58 -52
- package/dist/collection/components/business-details/{business-details.js → justifi-business-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 +3 -3
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +3 -3
- package/dist/collection/components/business-forms/business-form/{business-form.js → justifi-business-form.js} +2 -2
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -2
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
- package/dist/collection/components/business-forms/owner-form/owner-form.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.js → additional-questions-form-step.js} +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.js → bank-account-document-form-inputs.js} +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -4
- 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 +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/{payment-provisioning.js → justifi-payment-provisioning.js} +2 -2
- 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 +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +9 -9
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +11 -16
- package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.js +16 -35
- package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.js +19 -37
- package/dist/collection/components/checkout/billing-form/billing-form.js +5 -35
- package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.js +16 -35
- package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +140 -0
- package/dist/collection/components/checkout/card-form/card-form.js +11 -16
- package/dist/collection/components/checkout/{checkout.js → justifi-checkout.js} +3 -24
- package/dist/collection/components/checkout/{saved-payment-method.js → justifi-saved-payment-method.js} +2 -2
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +73 -0
- package/dist/collection/components/checkout/{save-new-payment-method.js → save-new-payment-method/save-new-payment-method.js} +23 -6
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +3 -3
- package/dist/collection/components/checkouts-list/{checkouts-list.js → justifi-checkouts-list.js} +2 -2
- package/dist/collection/components/config-provider/{config-provider.js → justifi-config-provider.js} +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{additional-statement.js → justifi-additional-statement.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{cancellation-policy.js → justifi-cancellation-policy.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{customer-details.js → justifi-customer-details.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{dispute-response.js → justifi-dispute-response.js} +5 -4
- package/dist/collection/components/dispute-management/dispute-response/{duplicate-charge.js → justifi-duplicate-charge.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{electronic-evidence.js → justifi-electronic-evidence.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{product-or-service.js → justifi-product-or-service.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{refund-policy.js → justifi-refund-policy.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{shipping-details.js → justifi-shipping-details.js} +2 -2
- package/dist/collection/components/dispute-management/{dispute-management.js → justifi-dispute-management.js} +2 -2
- package/dist/collection/components/dispute-management/{dispute-notification.js → justifi-dispute-notification.js} +3 -3
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/gross-payment-chart/{gross-payment-chart.js → justifi-gross-payment-chart.js} +1 -1
- package/dist/collection/components/insurance/season-interruption/{season-interruption-insurance.js → justifi-season-interruption-insurance.js} +1 -1
- package/dist/collection/components/modular-checkout/{modular-checkout.js → justifi-modular-checkout.js} +41 -3
- package/dist/collection/components/modular-checkout/sub-components/{apple-pay.js → justifi-apple-pay.js} +8 -11
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +95 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +69 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +83 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +83 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +69 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +12 -0
- package/dist/collection/components/modular-checkout/sub-components/{google-pay.js → justifi-google-pay.js} +1 -1
- package/dist/collection/components/modular-checkout/sub-components/{plaid-payment-method.js → justifi-plaid-payment-method.js} +2 -2
- package/dist/collection/components/modular-checkout/sub-components/{saved-payment-methods.js → justifi-saved-payment-methods.js} +1 -1
- package/dist/collection/components/modular-checkout/sub-components/{sezzle-payment-method.js → justifi-sezzle-payment-method.js} +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/order-terminals/{order-terminals.js → justifi-order-terminals.js} +2 -2
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/{payment-details.js → justifi-payment-details.js} +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/{payment-transactions-list.js → justifi-payment-transactions-list.js} +2 -2
- package/dist/collection/components/payments-list/{payments-list-filters.js → justifi-payments-list-filters.js} +3 -3
- package/dist/collection/components/payments-list/{payments-list.js → justifi-payments-list.js} +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payout-details/{payout-details.js → justifi-payout-details.js} +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/{payout-transactions-list.js → justifi-payout-transactions-list.js} +2 -2
- package/dist/collection/components/payouts-list/{payouts-list-filters.js → justifi-payouts-list-filters.js} +3 -3
- package/dist/collection/components/payouts-list/{payouts-list.js → justifi-payouts-list.js} +2 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/refund-payment/{refund-payment.js → justifi-refund-payment.js} +1 -1
- package/dist/collection/components/terminal-orders-list/{terminal-orders-list-filters.js → justifi-terminal-orders-list-filters.js} +4 -4
- package/dist/collection/components/terminal-orders-list/{terminal-orders-list.js → justifi-terminal-orders-list.js} +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminals-list/{terminals-list-filters.js → justifi-terminals-list-filters.js} +2 -2
- package/dist/collection/components/terminals-list/{terminals-list.js → justifi-terminals-list.js} +2 -2
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/tokenize-payment-method/{internal-tokenize-payment-method.js → justifi-tokenize-payment-method.js} +73 -37
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/{details.js → justifi-details.js} +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +3 -3
- package/dist/collection/ui-components/form/form-control-date.js +3 -3
- package/dist/collection/ui-components/form/form-control-file-v2.js +2 -2
- package/dist/collection/ui-components/form/form-control-file.js +3 -3
- package/dist/collection/ui-components/form/form-control-monetary.js +3 -3
- package/dist/collection/ui-components/form/form-control-number-masked.js +3 -3
- package/dist/collection/ui-components/form/form-control-number.js +3 -3
- package/dist/collection/ui-components/form/form-control-radio.js +3 -3
- package/dist/collection/ui-components/form/form-control-select.js +3 -3
- package/dist/collection/ui-components/form/form-control-text.js +3 -3
- package/dist/collection/ui-components/form/form-control-textarea.js +3 -3
- 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 +3 -3
- package/dist/collection/ui-components/index.js +1 -1
- package/dist/collection/ui-components/internal-button.js +192 -0
- package/dist/collection/ui-components/radio-list-item.js +153 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +20 -2
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -5
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +10905 -10441
- package/dist/esm/{check-pkg-version-Dn83YYz_.js → Analytics-C2EVi4Am.js} +4 -46
- package/dist/esm/{Api-CLZVsXZg.js → Api-DI0-itk3.js} +1 -1
- package/dist/esm/{Plaid-DOdR_CNb.js → Plaid-vwPGZ5y4.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +5 -5
- package/dist/esm/{justifi-additional-questions-form-step_9.entry.js → additional-questions-form-step_9.entry.js} +22 -22
- package/dist/esm/{form-alert_5.entry.js → additional-questions_5.entry.js} +23 -23
- package/dist/esm/{badge-guwZ0VTf.js → badge-B_DdhQ3Q.js} +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +198 -0
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +43 -43
- package/dist/esm/bank-account-form.entry.js +12 -8
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-DSolii9Q.js → business.service-M3YvwC-d.js} +2 -2
- package/dist/esm/{button-CdXktiZq.js → button-B-Agn8yQ.js} +1 -1
- package/dist/esm/card-form.entry.js +12 -8
- package/dist/esm/check-pkg-version-qIHmWcbI.js +45 -0
- package/dist/esm/{checkout.service-BTXHVtxI.js → checkout.service-DdIBmfsp.js} +2 -2
- package/dist/esm/{checkout.store-iNkW80yV.js → checkout.store-C1TdhFf6.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +8 -8
- package/dist/esm/{checkouts-table-Bf6gjMf8.js → checkouts-table-4iLy6mvH.js} +3 -3
- package/dist/esm/custom-popper_2.entry.js +5 -5
- package/dist/esm/{dispute.service-CpDEYnHy.js → dispute.service-BzzA0DeT.js} +2 -2
- package/dist/esm/{form-control-number-masked_3.entry.js → form-address-fields_3.entry.js} +23 -23
- package/dist/esm/form-control-checkbox.entry.js +7 -7
- package/dist/esm/form-control-date.entry.js +6 -6
- package/dist/esm/{form-control-error-text-JYoDicr0.js → form-control-error-text-DMKhr8QA.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +8 -8
- package/dist/esm/{form-control-help-text-DxL7yVgi.js → form-control-help-text-CsdCuw5-.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
- package/dist/esm/form-control-monetary.entry.js +8 -8
- package/dist/esm/form-control-number_3.entry.js +13 -13
- package/dist/esm/form-control-radio.entry.js +5 -5
- package/dist/esm/form-control-select_2.entry.js +9 -9
- package/dist/esm/{get-payment-details-VEzqfeuZ.js → get-payment-details-CN7gUjBc.js} +1 -1
- package/dist/esm/{get-subaccounts-DUdsxExJ.js → get-subaccounts-Mwx-aVcG.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-CU8Erek9.js → header-1-bRxxOyI-.js} +1 -1
- package/dist/esm/{header-3-BwJ-9MsW.js → header-3-E533c0A3.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-gsU4kKgc.js → insurance-state-obAKb1XR.js} +1 -1
- package/dist/esm/internal-button.entry.js +16 -0
- package/dist/esm/justifi-additional-statement_8.entry.js +18 -18
- package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_11.entry.js} +338 -35
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +44 -0
- package/dist/esm/justifi-bank-account-form.entry.js +42 -0
- package/dist/esm/justifi-billing-form-full.entry.js +22 -0
- package/dist/esm/justifi-billing-form.entry.js +22 -0
- package/dist/esm/justifi-business-details.entry.js +11 -10
- package/dist/esm/justifi-business-form.entry.js +14 -13
- package/dist/esm/justifi-card-billing-form-simple.entry.js +22 -0
- package/dist/esm/justifi-card-form.entry.js +42 -0
- package/dist/esm/justifi-checkout.entry.js +12 -13
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list.entry.js +14 -13
- package/dist/esm/justifi-config-provider.entry.js +2 -2
- package/dist/esm/justifi-details.entry.js +5 -5
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +10 -9
- package/dist/esm/justifi-dispute-notification_3.entry.js +18 -17
- package/dist/esm/justifi-gross-payment-chart.entry.js +10 -9
- package/dist/esm/justifi-order-terminals.entry.js +13 -12
- package/dist/esm/justifi-payment-details.entry.js +12 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -7
- package/dist/esm/justifi-payment-provisioning.entry.js +10 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +13 -12
- package/dist/esm/justifi-payments-list-filters.entry.js +6 -6
- package/dist/esm/justifi-payments-list.entry.js +14 -13
- package/dist/esm/justifi-payout-details.entry.js +11 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +13 -12
- package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payouts-list.entry.js +15 -14
- package/dist/esm/justifi-refund-payment.entry.js +13 -12
- package/dist/esm/justifi-save-new-payment-method.entry.js +16 -0
- package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +12 -11
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +12 -11
- package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminals-list.entry.js +14 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-qNXIkzDE.js → package-CIYOQWsL.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-D3V9AE6o.js → parts-D50Rx76J.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +15 -15
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment-provisioning-loading-CQfDKCwy.js → payment-provisioning-loading-BAoIyEOj.js} +1 -1
- package/dist/esm/{payment.service-BjU4B__W.js → payment.service-0k8z2rOV.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +9 -9
- package/dist/esm/{payments-status-DT4VNKKg.js → payments-status-7P7L51CK.js} +1 -1
- package/dist/esm/{payments-table-BJ1F2ZZU.js → payments-table-Bz7LmU_J.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-CzCd8AaC.js → payout.service-C14YvCWQ.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +9 -9
- package/dist/esm/{payouts-status-LTNE_gQc.js → payouts-status-CGZRMu-q.js} +1 -1
- package/dist/esm/{payouts-table-Yp2d9OgA.js → payouts-table-Bpt__avQ.js} +3 -3
- package/dist/esm/{plaid.service-D61Eq14d.js → plaid.service-Dtxfrsm8.js} +2 -2
- package/dist/esm/radio-list-item.entry.js +19 -0
- package/dist/esm/save-new-payment-method.entry.js +23 -0
- package/dist/esm/{skeleton-CV6EpBqb.js → skeleton-DV6yJalo.js} +1 -1
- package/dist/esm/{spinner-CG3aWl8K.js → spinner--fEgBBOG.js} +1 -1
- package/dist/esm/{table-DZ6rurWg.js → table-Deugl8h5.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +8 -8
- package/dist/esm/{terminal-orders-table-CJg6dKsL.js → terminal-orders-table-DRnRR4zn.js} +4 -4
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-BBdRhDxm.js → terminal.service-rxvEhqqF.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +8 -8
- package/dist/esm/{terminals-table-iGSICJeZ.js → terminals-table-DSDZgJ77.js} +3 -3
- package/dist/esm/{utils-7bp92NC7.js → utils-C_8ZxLti.js} +1 -1
- package/dist/esm/{utils-DUArY3am.js → utils-DJOBwFeP.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +1 -43
- package/dist/module/Plaid.js +1 -1
- package/dist/module/additional-questions-form-step.d.ts +11 -0
- package/dist/module/additional-questions-form-step.js +6 -0
- package/dist/module/{business-additional-questions-form-step.js → additional-questions-form-step2.js} +5 -5
- package/dist/module/additional-questions.d.ts +11 -0
- package/dist/module/additional-questions.js +4 -76
- package/dist/module/additional-questions2.js +78 -0
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-billing-form-simple.d.ts +11 -0
- package/dist/module/bank-account-billing-form-simple.js +4 -86
- package/dist/module/bank-account-billing-form-simple2.js +91 -0
- package/dist/module/bank-account-document-form-inputs.js +1 -1
- package/dist/module/{bank-account-document-inputs.js → bank-account-document-form-inputs2.js} +1 -1
- package/dist/module/bank-account-form-inputs-canada2.js +3 -3
- package/dist/module/bank-account-form-inputs2.js +3 -3
- package/dist/module/bank-account-form.js +1 -80
- package/dist/module/{bank-account.js → bank-account-form2.js} +10 -19
- package/dist/module/bank-account-read-only-value2.js +2 -2
- package/dist/module/billing-form-full.d.ts +11 -0
- package/dist/module/billing-form-full.js +4 -97
- package/dist/module/billing-form-full2.js +105 -0
- package/dist/module/billing-form-schema.js +1 -1
- package/dist/module/billing-form.d.ts +11 -0
- package/dist/module/billing-form.js +4 -102
- package/dist/module/billing-form2.js +99 -0
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +2 -2
- package/dist/module/business-bank-account-form-step.d.ts +11 -0
- package/dist/module/business-bank-account-form-step.js +4 -602
- package/dist/module/business-bank-account-form-step2.js +604 -0
- package/dist/module/business-core-info-form-step.d.ts +11 -0
- package/dist/module/business-core-info-form-step.js +4 -215
- package/dist/module/business-core-info-form-step2.js +217 -0
- package/dist/module/{justifi-owner-form.d.ts → business-core-info.d.ts} +4 -4
- package/dist/module/business-core-info.js +4 -92
- package/dist/module/business-core-info2.js +94 -0
- package/dist/module/business-details-core2.js +1 -1
- package/dist/module/business-documents-on-file2.js +3 -3
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-identity-schema.js +2 -2
- package/dist/module/business-owners-form-step.d.ts +11 -0
- package/dist/module/business-owners-form-step.js +4 -302
- package/dist/module/business-owners-form-step2.js +304 -0
- package/dist/module/business-representative-form-inputs.d.ts +11 -0
- package/dist/module/business-representative-form-inputs.js +4 -100
- package/dist/module/business-representative-form-inputs2.js +102 -0
- package/dist/module/business-representative-form-step.d.ts +11 -0
- package/dist/module/business-representative-form-step.js +4 -220
- package/dist/module/business-representative-form-step2.js +222 -0
- package/dist/module/business-representative.d.ts +11 -0
- package/dist/module/business-representative.js +4 -114
- package/dist/module/business-representative2.js +116 -0
- package/dist/module/business-terms-conditions-form-step.d.ts +11 -0
- package/dist/module/business-terms-conditions-form-step.js +4 -165
- package/dist/module/business-terms-conditions-form-step2.js +167 -0
- package/dist/module/button.js +1 -1
- package/dist/module/card-billing-form-simple.d.ts +11 -0
- package/dist/module/card-billing-form-simple.js +4 -86
- package/dist/module/card-billing-form-simple2.js +91 -0
- package/dist/module/card-form.js +1 -84
- package/dist/module/card-form2.js +12 -21
- package/dist/module/check-pkg-version.js +45 -0
- package/dist/module/checkout.store.js +2 -2
- package/dist/module/checkouts-list-core2.js +4 -4
- package/dist/module/checkouts-list-params-state.js +1 -1
- package/dist/module/config-state.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-management-core.js +15 -15
- package/dist/module/dispute-response-actions.js +2 -2
- package/dist/module/dispute-response-core.js +13 -13
- package/dist/module/form-address-fields.d.ts +11 -0
- package/dist/module/form-address-fields.js +4 -63
- package/dist/module/form-address-fields2.js +65 -0
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox.js +2 -2
- package/dist/module/form-control-checkbox2.js +8 -8
- package/dist/module/form-control-date.js +2 -2
- package/dist/module/form-control-date2.js +7 -7
- package/dist/module/form-control-file-v2.js +2 -2
- package/dist/module/form-control-file-v22.js +4 -4
- package/dist/module/form-control-file.js +2 -2
- package/dist/module/form-control-file2.js +7 -7
- package/dist/module/form-control-help-text.js +1 -1
- package/dist/module/form-control-help-text2.js +9 -32
- package/dist/module/form-control-help-text3.js +32 -9
- package/dist/module/form-control-monetary-provisioning.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +9 -9
- package/dist/module/form-control-monetary.js +2 -2
- package/dist/module/form-control-monetary2.js +8 -8
- package/dist/module/form-control-number-masked.js +2 -2
- package/dist/module/form-control-number-masked2.js +8 -8
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-number2.js +8 -8
- package/dist/module/form-control-radio.js +2 -2
- package/dist/module/form-control-radio2.js +7 -7
- package/dist/module/form-control-select.js +2 -2
- package/dist/module/form-control-select2.js +7 -7
- package/dist/module/form-control-text.js +2 -2
- package/dist/module/form-control-text2.js +7 -7
- package/dist/module/form-control-textarea.js +2 -2
- package/dist/module/form-control-textarea2.js +7 -7
- package/dist/module/form-control-tooltip.js +2 -2
- package/dist/module/form-control-tooltip2.js +4 -4
- package/dist/module/get-business.js +2 -2
- package/dist/module/get-payment-details.js +2 -2
- package/dist/module/get-payout-csv.js +2 -2
- package/dist/module/get-subaccounts.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/header-1.js +1 -1
- package/dist/module/header-3.js +1 -1
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/identity-address-form.d.ts +11 -0
- package/dist/module/identity-address-form.js +4 -76
- package/dist/module/identity-address-form2.js +78 -0
- package/dist/module/iframe-input-styles-state.js +1 -1
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/index2.js +3567 -246
- package/dist/module/index3.js +246 -3567
- package/dist/module/insurance-state.js +1 -1
- package/dist/module/internal-button.d.ts +11 -0
- package/dist/module/internal-button.js +6 -0
- package/dist/module/internal-button2.js +42 -0
- package/dist/module/justifi-additional-statement.js +2 -2
- package/dist/module/{additional-statement.js → justifi-additional-statement2.js} +5 -5
- package/dist/module/justifi-apple-pay.js +2 -2
- package/dist/module/{apple-pay.js → justifi-apple-pay2.js} +11 -11
- package/dist/module/justifi-bank-account-billing-form-simple.js +81 -2
- package/dist/module/justifi-bank-account-form.js +72 -2
- package/dist/module/justifi-billing-form-full.js +75 -2
- package/dist/module/justifi-billing-form.js +96 -2
- package/dist/module/justifi-business-details.js +7 -6
- package/dist/module/justifi-business-form.js +38 -37
- package/dist/module/justifi-button2.js +10 -4
- package/dist/module/justifi-cancellation-policy.js +2 -2
- package/dist/module/{cancellation-policy.js → justifi-cancellation-policy2.js} +5 -5
- package/dist/module/justifi-card-billing-form-simple.js +69 -2
- package/dist/module/justifi-card-form.js +71 -1
- package/dist/module/justifi-checkout-summary.js +2 -2
- package/dist/module/{summary.js → justifi-checkout-summary2.js} +6 -6
- package/dist/module/justifi-checkout.js +73 -62
- package/dist/module/justifi-checkouts-list-filters.js +6 -6
- package/dist/module/justifi-checkouts-list.js +9 -8
- package/dist/module/justifi-config-provider.js +3 -3
- package/dist/module/justifi-customer-details.js +2 -2
- package/dist/module/{customer-details.js → justifi-customer-details2.js} +5 -5
- package/dist/module/justifi-details.js +2 -2
- package/dist/module/{details.js → justifi-details2.js} +4 -4
- package/dist/module/justifi-dispute-management-core.js +2 -2
- package/dist/module/justifi-dispute-management.js +19 -18
- package/dist/module/justifi-dispute-notification.js +2 -2
- package/dist/module/{dispute-notification.js → justifi-dispute-notification2.js} +7 -7
- package/dist/module/justifi-dispute-response-core.js +2 -2
- package/dist/module/justifi-dispute-response.js +2 -2
- package/dist/module/{dispute-response.js → justifi-dispute-response2.js} +17 -16
- package/dist/module/justifi-duplicate-charge.js +2 -2
- package/dist/module/{duplicate-charge.js → justifi-duplicate-charge2.js} +5 -5
- package/dist/module/justifi-electronic-evidence.js +2 -2
- package/dist/module/{electronic-evidence.js → justifi-electronic-evidence2.js} +4 -4
- package/dist/module/justifi-google-pay.js +2 -2
- package/dist/module/{google-pay.js → justifi-google-pay2.js} +4 -4
- package/dist/module/justifi-gross-payment-chart.js +7 -6
- package/dist/module/justifi-header.js +2 -2
- package/dist/module/justifi-header2.js +4 -4
- package/dist/module/justifi-modular-checkout.js +2 -2
- package/dist/module/{modular-checkout.js → justifi-modular-checkout2.js} +23 -9
- package/dist/module/justifi-order-terminals.js +10 -9
- package/dist/module/justifi-payment-details.js +7 -6
- package/dist/module/justifi-payment-provisioning-core.js +2 -2
- package/dist/module/justifi-payment-provisioning.js +70 -69
- package/dist/module/justifi-payment-transactions-list.js +10 -9
- package/dist/module/justifi-payments-list-filters.js +6 -6
- package/dist/module/justifi-payments-list.js +9 -8
- package/dist/module/justifi-payout-details.js +8 -7
- package/dist/module/justifi-payout-transactions-list.js +10 -9
- package/dist/module/justifi-payouts-list-filters.js +6 -6
- package/dist/module/justifi-payouts-list.js +9 -8
- package/dist/module/justifi-plaid-payment-method.js +2 -2
- package/dist/module/{plaid-payment-method.js → justifi-plaid-payment-method2.js} +7 -7
- package/dist/module/justifi-product-or-service.js +2 -2
- package/dist/module/{product-or-service.js → justifi-product-or-service2.js} +4 -4
- package/dist/module/justifi-radio-list-item2.js +11 -9
- package/dist/module/justifi-refund-payment.js +9 -8
- package/dist/module/justifi-refund-policy.js +2 -2
- package/dist/module/{refund-policy.js → justifi-refund-policy2.js} +5 -5
- package/dist/module/justifi-save-new-payment-method.js +50 -2
- package/dist/module/justifi-saved-payment-method.js +6 -6
- package/dist/module/justifi-saved-payment-methods.js +2 -2
- package/dist/module/{saved-payment-methods.js → justifi-saved-payment-methods2.js} +6 -6
- package/dist/module/justifi-season-interruption-insurance.js +10 -9
- package/dist/module/justifi-sezzle-payment-method.js +2 -2
- package/dist/module/{sezzle-payment-method.js → justifi-sezzle-payment-method2.js} +4 -4
- package/dist/module/justifi-shipping-details.js +2 -2
- package/dist/module/{shipping-details.js → justifi-shipping-details2.js} +5 -5
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +7 -7
- package/dist/module/justifi-terminal-orders-list.js +9 -8
- package/dist/module/justifi-terminals-list-filters.js +5 -5
- package/dist/module/justifi-terminals-list.js +9 -8
- package/dist/module/justifi-tokenize-payment-method.js +2 -167
- package/dist/module/{internal-tokenize-payment-method2.js → justifi-tokenize-payment-method2.js} +73 -56
- package/dist/module/legal-address-form-step.d.ts +11 -0
- package/dist/module/legal-address-form-step.js +4 -189
- package/dist/module/legal-address-form-step2.js +191 -0
- package/dist/module/legal-address-form.d.ts +11 -0
- package/dist/module/legal-address-form.js +4 -74
- package/dist/module/legal-address-form2.js +76 -0
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/owner-form-core.js +2 -2
- package/dist/module/owner-form-core2.js +23 -23
- package/dist/module/owner-form-inputs.js +2 -2
- package/dist/module/owner-form-inputs2.js +23 -23
- package/dist/module/owner-form.d.ts +11 -0
- package/dist/module/owner-form.js +4 -142
- package/dist/module/owner-form2.js +144 -0
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +10 -10
- package/dist/module/payment-method-option.js +4 -4
- package/dist/module/payment-provisioning-actions.js +2 -2
- package/dist/module/payment-provisioning-core.js +68 -68
- package/dist/module/payment-provisioning-form-buttons.d.ts +11 -0
- package/dist/module/payment-provisioning-form-buttons.js +4 -49
- package/dist/module/payment-provisioning-form-buttons2.js +51 -0
- package/dist/module/payment-provisioning-form-steps.d.ts +11 -0
- package/dist/module/payment-provisioning-form-steps.js +4 -224
- package/dist/module/payment-provisioning-form-steps2.js +226 -0
- package/dist/module/payment-provisioning-loading.js +1 -1
- package/dist/module/payments-list-core2.js +3 -3
- package/dist/module/payments-list-params-state.js +1 -1
- package/dist/module/payout-details-core2.js +5 -5
- package/dist/module/payouts-list-core2.js +4 -4
- package/dist/module/payouts-list-params-state.js +1 -1
- package/dist/module/plaid-verification2.js +3 -3
- package/dist/module/radio-list-item.d.ts +11 -0
- package/dist/module/radio-list-item.js +6 -0
- package/dist/module/radio-list-item2.js +55 -0
- package/dist/module/representative-details.js +2 -2
- package/dist/module/representative-details2.js +4 -4
- package/dist/module/save-new-payment-method.d.ts +11 -0
- package/dist/module/save-new-payment-method.js +4 -50
- package/dist/module/save-new-payment-method2.js +48 -0
- package/dist/module/schema-validations.js +2 -2
- package/dist/module/skeleton.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +3 -3
- package/dist/module/terminal-orders-list-params-state.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminals-list-core2.js +3 -3
- package/dist/module/terminals-list-params-state.js +1 -1
- package/dist/module/utils.js +1 -1
- package/dist/module/utils2.js +1 -1
- package/dist/module/utils3.js +24 -23
- package/dist/module/utils4.js +23 -24
- package/dist/types/components/business-details/{business-details.d.ts → justifi-business-details.d.ts} +1 -1
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/{business-form.d.ts → justifi-business-form.d.ts} +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/{payment-provisioning.d.ts → justifi-payment-provisioning.d.ts} +1 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +6 -6
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +5 -1
- package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.d.ts +3 -2
- package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.d.ts +4 -2
- package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +1 -1
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +0 -1
- package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.d.ts +3 -2
- package/dist/types/components/checkout/billing-form/justifi-billing-form.d.ts +14 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
- package/dist/types/components/checkout/{checkout.d.ts → justifi-checkout.d.ts} +2 -21
- package/dist/types/components/checkout/{saved-payment-method.d.ts → justifi-saved-payment-method.d.ts} +1 -1
- package/dist/types/components/checkout/save-new-payment-method/justifi-save-new-payment-method.d.ts +7 -0
- package/dist/types/components/checkout/{save-new-payment-method.d.ts → save-new-payment-method/save-new-payment-method.d.ts} +2 -1
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -1
- package/dist/types/components/checkouts-list/{checkouts-list.d.ts → justifi-checkouts-list.d.ts} +1 -1
- package/dist/types/components/config-provider/{config-provider.d.ts → justifi-config-provider.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +1 -1
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +1 -1
- package/dist/types/components/dispute-management/dispute-response/{additional-statement.d.ts → justifi-additional-statement.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{cancellation-policy.d.ts → justifi-cancellation-policy.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{customer-details.d.ts → justifi-customer-details.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{dispute-response.d.ts → justifi-dispute-response.d.ts} +2 -2
- package/dist/types/components/dispute-management/dispute-response/{duplicate-charge.d.ts → justifi-duplicate-charge.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{electronic-evidence.d.ts → justifi-electronic-evidence.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{product-or-service.d.ts → justifi-product-or-service.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{refund-policy.d.ts → justifi-refund-policy.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{shipping-details.d.ts → justifi-shipping-details.d.ts} +1 -1
- package/dist/types/components/dispute-management/{dispute-management.d.ts → justifi-dispute-management.d.ts} +1 -1
- package/dist/types/components/dispute-management/{dispute-notification.d.ts → justifi-dispute-notification.d.ts} +1 -1
- package/dist/types/components/gross-payment-chart/{gross-payment-chart.d.ts → justifi-gross-payment-chart.d.ts} +1 -1
- package/dist/types/components/insurance/season-interruption/{season-interruption-insurance.d.ts → justifi-season-interruption-insurance.d.ts} +1 -1
- package/dist/types/components/modular-checkout/{modular-checkout.d.ts → justifi-modular-checkout.d.ts} +2 -1
- package/dist/types/components/modular-checkout/sub-components/{apple-pay.d.ts → justifi-apple-pay.d.ts} +1 -4
- package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.d.ts +15 -0
- package/dist/types/components/modular-checkout/sub-components/{bank-account.d.ts → justifi-bank-account-form.d.ts} +2 -7
- package/dist/types/components/modular-checkout/sub-components/justifi-billing-form-full.d.ts +11 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-card-billing-form-simple.d.ts +11 -0
- package/dist/types/components/modular-checkout/sub-components/{card-form.d.ts → justifi-card-form.d.ts} +1 -8
- package/dist/types/components/modular-checkout/sub-components/justifi-checkout-summary.d.ts +3 -0
- package/dist/types/components/modular-checkout/sub-components/{google-pay.d.ts → justifi-google-pay.d.ts} +1 -1
- package/dist/types/components/modular-checkout/sub-components/{plaid-payment-method.d.ts → justifi-plaid-payment-method.d.ts} +1 -1
- package/dist/types/components/modular-checkout/sub-components/{saved-payment-methods.d.ts → justifi-saved-payment-methods.d.ts} +1 -1
- package/dist/types/components/modular-checkout/sub-components/{sezzle-payment-method.d.ts → justifi-sezzle-payment-method.d.ts} +1 -1
- package/dist/types/components/order-terminals/{order-terminals.d.ts → justifi-order-terminals.d.ts} +1 -1
- package/dist/types/components/payment-details/{payment-details.d.ts → justifi-payment-details.d.ts} +1 -1
- package/dist/types/components/payment-transactions-list/{payment-transactions-list.d.ts → justifi-payment-transactions-list.d.ts} +1 -1
- package/dist/types/components/payments-list/{payments-list-filters.d.ts → justifi-payments-list-filters.d.ts} +1 -1
- package/dist/types/components/payments-list/{payments-list.d.ts → justifi-payments-list.d.ts} +1 -1
- package/dist/types/components/payout-details/{payout-details.d.ts → justifi-payout-details.d.ts} +1 -1
- package/dist/types/components/payout-transactions-list/{payout-transactions-list.d.ts → justifi-payout-transactions-list.d.ts} +1 -1
- package/dist/types/components/payouts-list/{payouts-list-filters.d.ts → justifi-payouts-list-filters.d.ts} +1 -1
- package/dist/types/components/payouts-list/{payouts-list.d.ts → justifi-payouts-list.d.ts} +1 -1
- package/dist/types/components/refund-payment/{refund-payment.d.ts → justifi-refund-payment.d.ts} +1 -1
- package/dist/types/components/terminal-orders-list/{terminal-orders-list-filters.d.ts → justifi-terminal-orders-list-filters.d.ts} +1 -1
- package/dist/types/components/terminal-orders-list/{terminal-orders-list.d.ts → justifi-terminal-orders-list.d.ts} +1 -1
- package/dist/types/components/terminals-list/{terminals-list-filters.d.ts → justifi-terminals-list-filters.d.ts} +1 -1
- package/dist/types/components/terminals-list/{terminals-list.d.ts → justifi-terminals-list.d.ts} +1 -1
- package/dist/types/components/tokenize-payment-method/{internal-tokenize-payment-method.d.ts → justifi-tokenize-payment-method.d.ts} +4 -3
- package/dist/types/components.d.ts +826 -657
- package/dist/types/ui-components/details/{details.d.ts → justifi-details.d.ts} +1 -1
- package/dist/types/ui-components/form/form-control-checkbox.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-date.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-file-v2.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-file.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-monetary.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-number-masked.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-select.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-text.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-textarea.d.ts +1 -1
- package/dist/types/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +1 -1
- package/dist/types/ui-components/index.d.ts +1 -1
- package/dist/types/ui-components/internal-button.d.ts +14 -0
- package/dist/types/ui-components/radio-list-item.d.ts +12 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +1 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +0 -1
- package/dist/webcomponents/p-08424d71.entry.js +1 -0
- package/dist/webcomponents/p-089bc927.entry.js +1 -0
- package/dist/webcomponents/p-0b7fa323.entry.js +1 -0
- package/dist/webcomponents/p-16ae88d0.entry.js +1 -0
- package/dist/webcomponents/p-179fe9a0.entry.js +1 -0
- package/dist/webcomponents/p-1a9aecbf.entry.js +1 -0
- package/dist/webcomponents/{p-132c8d4c.entry.js → p-1c95ec74.entry.js} +3 -3
- package/dist/webcomponents/{p-541da1ed.entry.js → p-1d1c48c3.entry.js} +1 -1
- package/dist/webcomponents/p-1da3ba0f.entry.js +1 -0
- package/dist/webcomponents/{p-368d8543.entry.js → p-252a4f75.entry.js} +1 -1
- package/dist/webcomponents/{p-ef98982e.entry.js → p-26062991.entry.js} +1 -1
- package/dist/webcomponents/p-26074643.entry.js +1 -0
- package/dist/webcomponents/{p-251f6c90.entry.js → p-2719f4db.entry.js} +1 -1
- package/dist/webcomponents/p-2a0ce169.entry.js +1 -0
- package/dist/webcomponents/p-2b8df3c0.entry.js +1 -0
- package/dist/webcomponents/p-2bec5dca.entry.js +1 -0
- package/dist/webcomponents/p-358f7121.entry.js +1 -0
- package/dist/webcomponents/{p-ca307ba0.entry.js → p-38281490.entry.js} +1 -1
- package/dist/webcomponents/p-383798ab.entry.js +1 -0
- package/dist/webcomponents/p-3d135aee.entry.js +1 -0
- package/dist/webcomponents/{p-15919744.entry.js → p-42129686.entry.js} +1 -1
- package/dist/webcomponents/p-431ad048.entry.js +1 -0
- package/dist/webcomponents/p-485a8795.entry.js +1 -0
- package/dist/webcomponents/p-4d222f42.entry.js +1 -0
- package/dist/webcomponents/{p-c751bb5f.entry.js → p-534833ca.entry.js} +1 -1
- package/dist/webcomponents/p-534881d8.entry.js +1 -0
- package/dist/webcomponents/p-53dd8569.entry.js +1 -0
- package/dist/webcomponents/{p-e646422f.entry.js → p-56d58041.entry.js} +1 -1
- package/dist/webcomponents/p-61784c6a.entry.js +1 -0
- package/dist/webcomponents/p-6372a42a.entry.js +1 -0
- package/dist/webcomponents/p-7108eead.entry.js +1 -0
- package/dist/webcomponents/p-729c9798.entry.js +1 -0
- package/dist/webcomponents/{p-7cb910cf.entry.js → p-744f57f0.entry.js} +1 -1
- package/dist/webcomponents/p-7742cf61.entry.js +1 -0
- package/dist/webcomponents/p-774b69a0.entry.js +1 -0
- package/dist/webcomponents/p-77600a47.entry.js +1 -0
- package/dist/webcomponents/{p-f23b4474.entry.js → p-7791b55e.entry.js} +1 -1
- package/dist/webcomponents/p-783580d4.entry.js +1 -0
- package/dist/webcomponents/p-83fd4eae.entry.js +1 -0
- package/dist/webcomponents/p-848ae146.entry.js +1 -0
- package/dist/webcomponents/p-865d4604.entry.js +1 -0
- package/dist/webcomponents/{p-e86c713b.entry.js → p-89bf64ef.entry.js} +1 -1
- package/dist/webcomponents/p-8Kt4Rhcq.js +1 -0
- package/dist/webcomponents/p-8c52d10a.entry.js +1 -0
- package/dist/webcomponents/p-8df335d4.entry.js +1 -0
- package/dist/webcomponents/p-90f2c769.entry.js +1 -0
- package/dist/webcomponents/{p-7703ada7.entry.js → p-9639d9d0.entry.js} +1 -1
- package/dist/webcomponents/p-97d16844.entry.js +1 -0
- package/dist/webcomponents/p-9838b5a7.entry.js +1 -0
- package/dist/webcomponents/{p--UanYWb-.js → p-B6sIVWJW.js} +1 -1
- package/dist/webcomponents/{p-BXT1uJVr.js → p-BJtvT9BX.js} +1 -1
- package/dist/webcomponents/{p-DnZY6aQX.js → p-BmEX2SfZ.js} +1 -1
- package/dist/webcomponents/{p-C0tps2ph.js → p-BrO0HEFJ.js} +1 -1
- package/dist/webcomponents/{p-CMLfjWil.js → p-Bwzxu5wV.js} +1 -1
- package/dist/webcomponents/{p-o83Uy7sW.js → p-C-QiUcEa.js} +1 -1
- package/dist/webcomponents/{p-ERB63T7J.js → p-C1olhiO9.js} +1 -1
- package/dist/webcomponents/p-CAl_N2gi.js +1 -0
- package/dist/webcomponents/{p-_BHErKTQ.js → p-CBqZge6m.js} +1 -1
- package/dist/webcomponents/p-CIYOQWsL.js +1 -0
- package/dist/webcomponents/{p-55QcjheA.js → p-CMB3sNMT.js} +1 -1
- package/dist/webcomponents/{p-XxcNbSyO.js → p-CWv3GX8X.js} +1 -1
- package/dist/webcomponents/p-CbM9cuX_.js +1 -0
- package/dist/webcomponents/{p-COZ-9O53.js → p-CjuaXEuI.js} +1 -1
- package/dist/webcomponents/{p-zGGZEiGQ.js → p-CmXujxGp.js} +1 -1
- package/dist/webcomponents/{p-Csh7hxly.js → p-CwdQ1VdH.js} +1 -1
- package/dist/webcomponents/{p-BrcAwFqw.js → p-CzdAS9Jo.js} +1 -1
- package/dist/webcomponents/p-D0BjjvYt.js +1 -0
- package/dist/webcomponents/{p-C5CtnV8A.js → p-D2TJwp13.js} +1 -1
- package/dist/webcomponents/{p-D3V9AE6o.js → p-D50Rx76J.js} +1 -1
- package/dist/webcomponents/p-D5MdA21U.js +1 -0
- package/dist/webcomponents/p-D68EHdgA.js +1 -0
- package/dist/webcomponents/p-DB_pqjwH.js +1 -0
- package/dist/webcomponents/{p-vIYW-hye.js → p-DL0R5vDy.js} +1 -1
- package/dist/webcomponents/{p-DdR4lBzU.js → p-DLmWCafe.js} +1 -1
- package/dist/webcomponents/{p-BPpqjhPu.js → p-Da4efjxw.js} +1 -1
- package/dist/webcomponents/p-Df9FVwA7.js +1 -0
- package/dist/webcomponents/p-Dvcgmvfg.js +1 -0
- package/dist/webcomponents/{p-Daew0gTO.js → p-EBsfAkrP.js} +1 -1
- package/dist/webcomponents/{p-xvmoHDSy.js → p-J7WCmj-J.js} +1 -1
- package/dist/webcomponents/{p-D-cvuqv1.js → p-MLfmcsbZ.js} +1 -1
- package/dist/webcomponents/{p-MeSAYDNh.js → p-MkDHT9M4.js} +1 -1
- package/dist/webcomponents/p-N60pPiy5.js +1 -0
- package/dist/webcomponents/{p-2xM1wp0u.js → p-_fynNk40.js} +1 -1
- package/dist/webcomponents/p-a53fae42.entry.js +1 -0
- package/dist/webcomponents/p-a5640aa4.entry.js +1 -0
- package/dist/webcomponents/{p-1ddbbba8.entry.js → p-b21e5a85.entry.js} +1 -1
- package/dist/webcomponents/p-b2d7a9dd.entry.js +1 -0
- package/dist/webcomponents/p-b31c9979.entry.js +1 -0
- package/dist/webcomponents/p-b322d2f3.entry.js +1 -0
- package/dist/webcomponents/p-b596cbb3.entry.js +1 -0
- package/dist/webcomponents/p-b7ffdb30.entry.js +1 -0
- package/dist/webcomponents/p-bac16c16.entry.js +1 -0
- package/dist/webcomponents/p-bb4cc829.entry.js +1 -0
- package/dist/webcomponents/p-bbdae5b7.entry.js +1 -0
- package/dist/webcomponents/p-c07069f1.entry.js +1 -0
- package/dist/webcomponents/p-c4da12e0.entry.js +1 -0
- package/dist/webcomponents/p-c5be6300.entry.js +1 -0
- package/dist/webcomponents/p-c63b8c8f.entry.js +1 -0
- package/dist/webcomponents/p-d6350138.entry.js +1 -0
- package/dist/webcomponents/{p-f4074e9a.entry.js → p-d667138d.entry.js} +1 -1
- package/dist/webcomponents/p-d6c2d51d.entry.js +1 -0
- package/dist/webcomponents/p-def798df.entry.js +1 -0
- package/dist/webcomponents/p-e2650fe5.entry.js +1 -0
- package/dist/webcomponents/p-e4ba0754.entry.js +1 -0
- package/dist/webcomponents/p-e939affa.entry.js +1 -0
- package/dist/webcomponents/p-e9c20b52.entry.js +1 -0
- package/dist/webcomponents/p-ea84c544.entry.js +1 -0
- package/dist/webcomponents/{p-DzeWzcho.js → p-rz2BF2Sz.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +0 -470
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +0 -147
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -24
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +0 -101
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +0 -105
- package/dist/collection/components/modular-checkout/sub-components/summary.js +0 -12
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +0 -296
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +0 -462
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +0 -143
- package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -22
- package/dist/module/internal-tokenize-payment-method.d.ts +0 -11
- package/dist/module/internal-tokenize-payment-method.js +0 -6
- package/dist/module/justifi-additional-questions-form-step.d.ts +0 -11
- package/dist/module/justifi-additional-questions-form-step.js +0 -6
- package/dist/module/justifi-additional-questions.d.ts +0 -11
- package/dist/module/justifi-additional-questions.js +0 -6
- package/dist/module/justifi-business-bank-account-form-step.d.ts +0 -11
- package/dist/module/justifi-business-bank-account-form-step.js +0 -6
- package/dist/module/justifi-business-core-info-form-step.d.ts +0 -11
- package/dist/module/justifi-business-core-info-form-step.js +0 -6
- package/dist/module/justifi-business-core-info.d.ts +0 -11
- package/dist/module/justifi-business-core-info.js +0 -6
- package/dist/module/justifi-business-owners-form-step.d.ts +0 -11
- package/dist/module/justifi-business-owners-form-step.js +0 -6
- package/dist/module/justifi-business-representative-form-inputs.d.ts +0 -11
- package/dist/module/justifi-business-representative-form-inputs.js +0 -6
- package/dist/module/justifi-business-representative-form-step.d.ts +0 -11
- package/dist/module/justifi-business-representative-form-step.js +0 -6
- package/dist/module/justifi-business-representative.d.ts +0 -11
- package/dist/module/justifi-business-representative.js +0 -6
- package/dist/module/justifi-business-terms-conditions-form-step.d.ts +0 -11
- package/dist/module/justifi-business-terms-conditions-form-step.js +0 -6
- package/dist/module/justifi-form-address-fields.d.ts +0 -11
- package/dist/module/justifi-form-address-fields.js +0 -6
- package/dist/module/justifi-identity-address-form.d.ts +0 -11
- package/dist/module/justifi-identity-address-form.js +0 -6
- package/dist/module/justifi-legal-address-form-step.d.ts +0 -11
- package/dist/module/justifi-legal-address-form-step.js +0 -6
- package/dist/module/justifi-legal-address-form.d.ts +0 -11
- package/dist/module/justifi-legal-address-form.js +0 -6
- package/dist/module/justifi-owner-form.js +0 -6
- package/dist/module/justifi-payment-provisioning-form-buttons.d.ts +0 -11
- package/dist/module/justifi-payment-provisioning-form-buttons.js +0 -6
- package/dist/module/justifi-payment-provisioning-form-steps.d.ts +0 -11
- package/dist/module/justifi-payment-provisioning-form-steps.js +0 -6
- package/dist/types/components/modular-checkout/sub-components/summary.d.ts +0 -3
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +0 -19
- package/dist/webcomponents/p-03b913e8.entry.js +0 -1
- package/dist/webcomponents/p-12b662e3.entry.js +0 -1
- package/dist/webcomponents/p-19e82b02.entry.js +0 -1
- package/dist/webcomponents/p-19f22078.entry.js +0 -1
- package/dist/webcomponents/p-1fc96f35.entry.js +0 -1
- package/dist/webcomponents/p-2758d129.entry.js +0 -1
- package/dist/webcomponents/p-2V38oZhe.js +0 -1
- package/dist/webcomponents/p-320aac60.entry.js +0 -1
- package/dist/webcomponents/p-337fb232.entry.js +0 -1
- package/dist/webcomponents/p-3490ede8.entry.js +0 -1
- package/dist/webcomponents/p-3bf56699.entry.js +0 -1
- package/dist/webcomponents/p-3cd30c7a.entry.js +0 -1
- package/dist/webcomponents/p-3f9c7b04.entry.js +0 -1
- package/dist/webcomponents/p-426fd524.entry.js +0 -1
- package/dist/webcomponents/p-4ae0227a.entry.js +0 -1
- package/dist/webcomponents/p-50a34a13.entry.js +0 -1
- package/dist/webcomponents/p-5148f836.entry.js +0 -1
- package/dist/webcomponents/p-55605664.entry.js +0 -1
- package/dist/webcomponents/p-55b478bc.entry.js +0 -1
- package/dist/webcomponents/p-57e09f09.entry.js +0 -1
- package/dist/webcomponents/p-5b4dfe0e.entry.js +0 -1
- package/dist/webcomponents/p-5c70a772.entry.js +0 -1
- package/dist/webcomponents/p-60df1c18.entry.js +0 -1
- package/dist/webcomponents/p-6Nv8l5n8.js +0 -1
- package/dist/webcomponents/p-6cdea3ef.entry.js +0 -1
- package/dist/webcomponents/p-77d0f2e2.entry.js +0 -1
- package/dist/webcomponents/p-8ed651b1.entry.js +0 -1
- package/dist/webcomponents/p-97e27e4a.entry.js +0 -1
- package/dist/webcomponents/p-9ed5d349.entry.js +0 -1
- package/dist/webcomponents/p-BU9iZ8OM.js +0 -1
- package/dist/webcomponents/p-BYLHkONM.js +0 -1
- package/dist/webcomponents/p-C_WlV7F_.js +0 -1
- package/dist/webcomponents/p-DSmuL_bZ.js +0 -1
- package/dist/webcomponents/p-FcERM7LF.js +0 -1
- package/dist/webcomponents/p-a109b3a1.entry.js +0 -1
- package/dist/webcomponents/p-a5db7147.entry.js +0 -1
- package/dist/webcomponents/p-b08bca2b.entry.js +0 -1
- package/dist/webcomponents/p-b2c237c6.entry.js +0 -1
- package/dist/webcomponents/p-b2d5f105.entry.js +0 -1
- package/dist/webcomponents/p-b8fc6dff.entry.js +0 -1
- package/dist/webcomponents/p-c595d3fb.entry.js +0 -1
- package/dist/webcomponents/p-c9f94919.entry.js +0 -1
- package/dist/webcomponents/p-ca7e369f.entry.js +0 -1
- package/dist/webcomponents/p-cab4c787.entry.js +0 -1
- package/dist/webcomponents/p-cd220f6c.entry.js +0 -1
- package/dist/webcomponents/p-cd2c2256.entry.js +0 -1
- package/dist/webcomponents/p-cd7a4048.entry.js +0 -1
- package/dist/webcomponents/p-d5d8ccd9.entry.js +0 -1
- package/dist/webcomponents/p-e72d05b1.entry.js +0 -1
- package/dist/webcomponents/p-e9d7f988.entry.js +0 -1
- package/dist/webcomponents/p-f1562dab.entry.js +0 -1
- package/dist/webcomponents/p-f44008d9.entry.js +0 -1
- package/dist/webcomponents/p-f657995a.entry.js +0 -1
- package/dist/webcomponents/p-fa3b5072.entry.js +0 -1
- package/dist/webcomponents/p-fb58eb13.entry.js +0 -1
- package/dist/webcomponents/p-fff25a5f.entry.js +0 -1
- package/dist/webcomponents/p-qNXIkzDE.js +0 -1
- package/dist/webcomponents/p-rgpO5xc3.js +0 -1
- package/dist/webcomponents/p-t6eP44Li.js +0 -1
- /package/dist/types/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.d.ts → additional-questions-form-step.d.ts} +0 -0
- /package/dist/types/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.d.ts → bank-account-document-form-inputs.d.ts} +0 -0
- /package/dist/webcomponents/{p-99065f37.entry.js → p-9399f4f1.entry.js} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import BankAccountFormSkeleton from "./bank-account-form-skeleton";
|
|
3
3
|
import { configState, waitForConfig } from "../../config-provider/config-state";
|
|
4
4
|
import { generateTabId } from "../../../utils/utils";
|
|
5
|
+
import { checkPkgVersion } from "../../../utils/check-pkg-version";
|
|
5
6
|
export class BankAccountForm {
|
|
6
7
|
constructor() {
|
|
7
8
|
this.isReady = false;
|
|
@@ -10,6 +11,7 @@ export class BankAccountForm {
|
|
|
10
11
|
await waitForConfig();
|
|
11
12
|
this.iframeOrigin = configState.iframeOrigin;
|
|
12
13
|
this.tabId = generateTabId();
|
|
14
|
+
checkPkgVersion();
|
|
13
15
|
}
|
|
14
16
|
componentDidRender() {
|
|
15
17
|
const elements = [
|
|
@@ -29,14 +31,15 @@ export class BankAccountForm {
|
|
|
29
31
|
const routingNumberIsValid = await this.routingNumberIframeElement.validate();
|
|
30
32
|
return accountNumberIsValid && routingNumberIsValid;
|
|
31
33
|
}
|
|
32
|
-
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
33
|
-
|
|
34
|
+
async tokenize({ clientId, paymentMethodMetadata, account }) {
|
|
35
|
+
const result = await this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
36
|
+
return result;
|
|
34
37
|
}
|
|
35
38
|
render() {
|
|
36
|
-
return (h(
|
|
39
|
+
return (h("div", { key: '73e3f3c28652ec1a0256ea8668db6ebe56e929ba' }, h(BankAccountFormSkeleton, { key: 'cf8bd04492e821a4c39c61c549dec728fc24696e', isReady: this.isReady }), h("hidden-input", { key: '877eeb9963fb9971e372a05eb3de1bee66d5b765' }), h("div", { key: '8a5c6dced3dfd9ce2486712e6a7d90b3710721bc', class: "container-fluid p-0", style: {
|
|
37
40
|
opacity: this.isReady ? '1' : '0',
|
|
38
41
|
height: this.isReady ? 'auto' : '0',
|
|
39
|
-
} }, h("div", { key: '
|
|
42
|
+
} }, h("div", { key: '35f116944ac3fbda6f46cd3335dd442fc5284fc3', class: "row mb-3" }, h("iframe-input", { key: 'c9bfd6124f3107b703ee4c43946560940b93899f', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '43a3d810081ad218ce3fd57627c1c93efc4fb1eb', class: "row" }, h("iframe-input", { key: '4b2d6d3213c4ba44cf63a1297d34975c894010f6', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
40
43
|
}
|
|
41
44
|
static get is() { return "bank-account-form"; }
|
|
42
45
|
static get states() {
|
|
@@ -67,18 +70,10 @@ export class BankAccountForm {
|
|
|
67
70
|
},
|
|
68
71
|
"tokenize": {
|
|
69
72
|
"complexType": {
|
|
70
|
-
"signature": "(clientId: string
|
|
73
|
+
"signature": "({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>",
|
|
71
74
|
"parameters": [{
|
|
72
|
-
"name": "
|
|
73
|
-
"type": "string",
|
|
74
|
-
"docs": ""
|
|
75
|
-
}, {
|
|
76
|
-
"name": "paymentMethodMetadata",
|
|
77
|
-
"type": "any",
|
|
78
|
-
"docs": ""
|
|
79
|
-
}, {
|
|
80
|
-
"name": "account",
|
|
81
|
-
"type": "string",
|
|
75
|
+
"name": "__0",
|
|
76
|
+
"type": "{ clientId: string; paymentMethodMetadata: any; account?: string; }",
|
|
82
77
|
"docs": ""
|
|
83
78
|
}],
|
|
84
79
|
"references": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { nameOnlySchema } from "
|
|
2
|
+
import { nameOnlySchema } from "./billing-form-schema";
|
|
3
3
|
import { billingForm } from "../../../styles/parts";
|
|
4
4
|
import { FormController } from "../../../ui-components/form/form";
|
|
5
|
-
import {
|
|
5
|
+
import { checkoutStore, onChange } from "../../../store/checkout.store";
|
|
6
6
|
export class BankAccountBillingFormSimple {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.errors = {};
|
|
@@ -12,19 +12,27 @@ export class BankAccountBillingFormSimple {
|
|
|
12
12
|
}
|
|
13
13
|
componentWillLoad() {
|
|
14
14
|
this.formController = new FormController(nameOnlySchema());
|
|
15
|
+
const fields = checkoutStore.billingFormFields;
|
|
16
|
+
if (fields && Object.keys(fields).some((k) => fields[k])) {
|
|
17
|
+
this.formController.setInitialValues(fields);
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
componentDidLoad() {
|
|
17
21
|
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
18
22
|
this.formController.errors.subscribe(errors => {
|
|
19
23
|
this.errors = Object.assign({}, errors);
|
|
20
24
|
});
|
|
25
|
+
this.unsubscribeFromStore = onChange('billingFormFields', (newValue) => {
|
|
26
|
+
this.formController.setInitialValues(newValue);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
var _a;
|
|
31
|
+
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
21
32
|
}
|
|
22
33
|
async getValues() {
|
|
23
34
|
return this.formController.values.getValue();
|
|
24
35
|
}
|
|
25
|
-
async fill(fields) {
|
|
26
|
-
this.formController.setInitialValues(fields);
|
|
27
|
-
}
|
|
28
36
|
async validate() {
|
|
29
37
|
const isValid = await this.formController.validate();
|
|
30
38
|
const errors = this.formController.errors.getValue();
|
|
@@ -32,10 +40,9 @@ export class BankAccountBillingFormSimple {
|
|
|
32
40
|
}
|
|
33
41
|
render() {
|
|
34
42
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
35
|
-
return (h(
|
|
43
|
+
return (h("div", { key: 'e8c53c98793d0296d69799c8449d762084d9859b', part: billingForm, class: "mt-4" }, h("form", { key: '83e59bb7bdcf4a3e0b4ed4320358796eae91726f' }, h("fieldset", { key: 'd92a4a02c531a08a270562701bc71440add5b545' }, this.legend && (h("legend", { key: '74ac1eb2c6fc629323f31be515e3aa204ae302a2' }, this.legend)), h("div", { key: '161888eb0680a4c9d6280440961f2926b08ac1ed', class: "row gy-3" }, h("div", { key: '9f6c899b7a4ff25a5eba5278bffe7d4e86eb00df', class: "col-12" }, h("form-control-text", { key: '74a9958fb74de730067fe4d87dfac33c12522169', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })))))));
|
|
36
44
|
}
|
|
37
|
-
static get is() { return "
|
|
38
|
-
static get encapsulation() { return "shadow"; }
|
|
45
|
+
static get is() { return "bank-account-billing-form-simple"; }
|
|
39
46
|
static get properties() {
|
|
40
47
|
return {
|
|
41
48
|
"legend": {
|
|
@@ -79,7 +86,7 @@ export class BankAccountBillingFormSimple {
|
|
|
79
86
|
},
|
|
80
87
|
"BillingFormFields": {
|
|
81
88
|
"location": "import",
|
|
82
|
-
"path": "
|
|
89
|
+
"path": "./billing-form-schema",
|
|
83
90
|
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
84
91
|
}
|
|
85
92
|
},
|
|
@@ -90,32 +97,6 @@ export class BankAccountBillingFormSimple {
|
|
|
90
97
|
"tags": []
|
|
91
98
|
}
|
|
92
99
|
},
|
|
93
|
-
"fill": {
|
|
94
|
-
"complexType": {
|
|
95
|
-
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
96
|
-
"parameters": [{
|
|
97
|
-
"name": "fields",
|
|
98
|
-
"type": "BillingFormFields",
|
|
99
|
-
"docs": ""
|
|
100
|
-
}],
|
|
101
|
-
"references": {
|
|
102
|
-
"Promise": {
|
|
103
|
-
"location": "global",
|
|
104
|
-
"id": "global::Promise"
|
|
105
|
-
},
|
|
106
|
-
"BillingFormFields": {
|
|
107
|
-
"location": "import",
|
|
108
|
-
"path": "../../checkout/billing-form/billing-form-schema",
|
|
109
|
-
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"return": "Promise<void>"
|
|
113
|
-
},
|
|
114
|
-
"docs": {
|
|
115
|
-
"text": "",
|
|
116
|
-
"tags": []
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
100
|
"validate": {
|
|
120
101
|
"complexType": {
|
|
121
102
|
"signature": "() => Promise<{ isValid: boolean; errors: any; }>",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { fullBillingSchema } from "
|
|
2
|
+
import { fullBillingSchema } from "./billing-form-schema";
|
|
3
3
|
import { billingForm } from "../../../styles/parts";
|
|
4
|
-
import { Header3
|
|
4
|
+
import { Header3 } from "../../../ui-components";
|
|
5
5
|
import StateOptions from "../../../utils/state-options";
|
|
6
6
|
import { FormController } from "../../../ui-components/form/form";
|
|
7
|
+
import { checkoutStore, onChange } from "../../../store/checkout.store";
|
|
7
8
|
export class BillingFormFull {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.errors = {};
|
|
@@ -13,33 +14,40 @@ export class BillingFormFull {
|
|
|
13
14
|
}
|
|
14
15
|
componentWillLoad() {
|
|
15
16
|
this.formController = new FormController(fullBillingSchema());
|
|
16
|
-
|
|
17
|
+
const fields = checkoutStore.billingFormFields;
|
|
18
|
+
if (fields && Object.keys(fields).some((k) => fields[k])) {
|
|
19
|
+
this.formController.setInitialValues(fields);
|
|
20
|
+
}
|
|
17
21
|
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
18
22
|
this.formController.errors.subscribe(errors => {
|
|
19
23
|
this.errors = Object.assign({}, errors);
|
|
20
24
|
});
|
|
21
25
|
}
|
|
26
|
+
componentDidLoad() {
|
|
27
|
+
this.unsubscribeFromStore = onChange('billingFormFields', (newValue) => {
|
|
28
|
+
this.formController.setInitialValues(newValue);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
var _a;
|
|
33
|
+
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
34
|
+
}
|
|
22
35
|
async getValues() {
|
|
23
36
|
return this.formController.values.getValue();
|
|
24
37
|
}
|
|
25
|
-
async fill(fields) {
|
|
26
|
-
this.formController.setInitialValues(fields);
|
|
27
|
-
}
|
|
28
38
|
async validate() {
|
|
29
39
|
const isValid = await this.formController.validate();
|
|
30
40
|
const errors = this.formController.errors.getValue();
|
|
31
41
|
return { isValid, errors };
|
|
32
42
|
}
|
|
33
43
|
render() {
|
|
34
|
-
// Guard clause to ensure formController is initialized before rendering
|
|
35
44
|
if (!this.formController) {
|
|
36
45
|
return null;
|
|
37
46
|
}
|
|
38
47
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
39
|
-
return (h(
|
|
48
|
+
return (h("div", { part: billingForm, class: "mt-4" }, h(Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", null, h("fieldset", null, this.legend && (h("legend", null, this.legend)), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 7 })))))));
|
|
40
49
|
}
|
|
41
|
-
static get is() { return "
|
|
42
|
-
static get encapsulation() { return "shadow"; }
|
|
50
|
+
static get is() { return "billing-form-full"; }
|
|
43
51
|
static get properties() {
|
|
44
52
|
return {
|
|
45
53
|
"legend": {
|
|
@@ -83,7 +91,7 @@ export class BillingFormFull {
|
|
|
83
91
|
},
|
|
84
92
|
"BillingFormFields": {
|
|
85
93
|
"location": "import",
|
|
86
|
-
"path": "
|
|
94
|
+
"path": "./billing-form-schema",
|
|
87
95
|
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
88
96
|
}
|
|
89
97
|
},
|
|
@@ -94,32 +102,6 @@ export class BillingFormFull {
|
|
|
94
102
|
"tags": []
|
|
95
103
|
}
|
|
96
104
|
},
|
|
97
|
-
"fill": {
|
|
98
|
-
"complexType": {
|
|
99
|
-
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
100
|
-
"parameters": [{
|
|
101
|
-
"name": "fields",
|
|
102
|
-
"type": "BillingFormFields",
|
|
103
|
-
"docs": ""
|
|
104
|
-
}],
|
|
105
|
-
"references": {
|
|
106
|
-
"Promise": {
|
|
107
|
-
"location": "global",
|
|
108
|
-
"id": "global::Promise"
|
|
109
|
-
},
|
|
110
|
-
"BillingFormFields": {
|
|
111
|
-
"location": "import",
|
|
112
|
-
"path": "../../checkout/billing-form/billing-form-schema",
|
|
113
|
-
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"return": "Promise<void>"
|
|
117
|
-
},
|
|
118
|
-
"docs": {
|
|
119
|
-
"text": "",
|
|
120
|
-
"tags": []
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
105
|
"validate": {
|
|
124
106
|
"complexType": {
|
|
125
107
|
"signature": "() => Promise<{ isValid: boolean; errors: any; }>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { PAYMENT_METHODS } from "
|
|
2
|
+
import { PAYMENT_METHODS } from "../../modular-checkout/ModularCheckout";
|
|
3
3
|
export class BillingForm {
|
|
4
4
|
get showSimpleCardBillingForm() {
|
|
5
5
|
return this.paymentMethodType === PAYMENT_METHODS.NEW_CARD && this.hideCardBillingForm;
|
|
@@ -11,24 +11,20 @@ export class BillingForm {
|
|
|
11
11
|
var _a;
|
|
12
12
|
return (_a = this.selectedFormRef) === null || _a === void 0 ? void 0 : _a.getValues();
|
|
13
13
|
}
|
|
14
|
-
async fill(fields) {
|
|
15
|
-
var _a;
|
|
16
|
-
(_a = this.selectedFormRef) === null || _a === void 0 ? void 0 : _a.fill(fields);
|
|
17
|
-
}
|
|
18
14
|
async validate() {
|
|
19
15
|
var _a;
|
|
20
16
|
return (_a = this.selectedFormRef) === null || _a === void 0 ? void 0 : _a.validate();
|
|
21
17
|
}
|
|
22
18
|
render() {
|
|
23
19
|
if (this.showSimpleBankAccountBillingForm) {
|
|
24
|
-
return (h(Host, null, h("
|
|
20
|
+
return (h(Host, null, h("bank-account-billing-form-simple", { legend: this.legend, ref: (el) => (this.selectedFormRef = el) })));
|
|
25
21
|
}
|
|
26
22
|
if (this.showSimpleCardBillingForm) {
|
|
27
|
-
return (h(Host, null, h("
|
|
23
|
+
return (h(Host, null, h("card-billing-form-simple", { legend: this.legend, ref: (el) => (this.selectedFormRef = el) })));
|
|
28
24
|
}
|
|
29
|
-
return (h(Host, null, h("
|
|
25
|
+
return (h(Host, null, h("billing-form-full", { legend: this.legend, ref: (el) => (this.selectedFormRef = el) })));
|
|
30
26
|
}
|
|
31
|
-
static get is() { return "
|
|
27
|
+
static get is() { return "billing-form"; }
|
|
32
28
|
static get properties() {
|
|
33
29
|
return {
|
|
34
30
|
"legend": {
|
|
@@ -133,32 +129,6 @@ export class BillingForm {
|
|
|
133
129
|
"tags": []
|
|
134
130
|
}
|
|
135
131
|
},
|
|
136
|
-
"fill": {
|
|
137
|
-
"complexType": {
|
|
138
|
-
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
139
|
-
"parameters": [{
|
|
140
|
-
"name": "fields",
|
|
141
|
-
"type": "BillingFormFields",
|
|
142
|
-
"docs": ""
|
|
143
|
-
}],
|
|
144
|
-
"references": {
|
|
145
|
-
"Promise": {
|
|
146
|
-
"location": "global",
|
|
147
|
-
"id": "global::Promise"
|
|
148
|
-
},
|
|
149
|
-
"BillingFormFields": {
|
|
150
|
-
"location": "import",
|
|
151
|
-
"path": "./billing-form-schema",
|
|
152
|
-
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"return": "Promise<void>"
|
|
156
|
-
},
|
|
157
|
-
"docs": {
|
|
158
|
-
"text": "",
|
|
159
|
-
"tags": []
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
132
|
"validate": {
|
|
163
133
|
"complexType": {
|
|
164
134
|
"signature": "() => Promise<{ isValid: boolean; errors: any; }>",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { postalOnlySchema } from "
|
|
2
|
+
import { postalOnlySchema } from "./billing-form-schema";
|
|
3
3
|
import { billingForm } from "../../../styles/parts";
|
|
4
4
|
import { FormController } from "../../../ui-components/form/form";
|
|
5
|
-
import {
|
|
5
|
+
import { checkoutStore, onChange } from "../../../store/checkout.store";
|
|
6
6
|
export class CardBillingFormSimple {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.errors = {};
|
|
@@ -12,19 +12,27 @@ export class CardBillingFormSimple {
|
|
|
12
12
|
}
|
|
13
13
|
componentWillLoad() {
|
|
14
14
|
this.formController = new FormController(postalOnlySchema());
|
|
15
|
+
const fields = checkoutStore.billingFormFields;
|
|
16
|
+
if (fields && Object.keys(fields).some((k) => fields[k])) {
|
|
17
|
+
this.formController.setInitialValues(fields);
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
componentDidLoad() {
|
|
17
21
|
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
18
22
|
this.formController.errors.subscribe(errors => {
|
|
19
23
|
this.errors = Object.assign({}, errors);
|
|
20
24
|
});
|
|
25
|
+
this.unsubscribeFromStore = onChange('billingFormFields', (newValue) => {
|
|
26
|
+
this.formController.setInitialValues(newValue);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
var _a;
|
|
31
|
+
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
21
32
|
}
|
|
22
33
|
async getValues() {
|
|
23
34
|
return this.formController.values.getValue();
|
|
24
35
|
}
|
|
25
|
-
async fill(fields) {
|
|
26
|
-
this.formController.setInitialValues(fields);
|
|
27
|
-
}
|
|
28
36
|
async validate() {
|
|
29
37
|
const isValid = await this.formController.validate();
|
|
30
38
|
const errors = this.formController.errors.getValue();
|
|
@@ -32,10 +40,9 @@ export class CardBillingFormSimple {
|
|
|
32
40
|
}
|
|
33
41
|
render() {
|
|
34
42
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
35
|
-
return (h(
|
|
43
|
+
return (h("div", { key: '41a7f26e12bfa3da4e7926d8a535218a0580be14', part: billingForm }, h("form", { key: 'b48cf148ec6d16fd8e5859dfe96a3b9fd6d3036d' }, h("fieldset", { key: '88094544642af8fadb270dfafd838d450ad88cdd' }, this.legend && (h("legend", { key: '13c19557aa4c0c127305cc54f6346eeb74d4f750' }, this.legend)), h("div", { key: 'bbcf1a622720df2d21db718eaf823e4e33155070', class: "row gy-3" }, h("div", { key: '96b9d590fd68fd4f2a54760e58c0f2bc166a832b', class: "col-12" }, h("form-control-text", { key: '57050d0274782cb2ff5f1a9b13726a8319438a36', name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 7 })))))));
|
|
36
44
|
}
|
|
37
|
-
static get is() { return "
|
|
38
|
-
static get encapsulation() { return "shadow"; }
|
|
45
|
+
static get is() { return "card-billing-form-simple"; }
|
|
39
46
|
static get properties() {
|
|
40
47
|
return {
|
|
41
48
|
"legend": {
|
|
@@ -79,7 +86,7 @@ export class CardBillingFormSimple {
|
|
|
79
86
|
},
|
|
80
87
|
"BillingFormFields": {
|
|
81
88
|
"location": "import",
|
|
82
|
-
"path": "
|
|
89
|
+
"path": "./billing-form-schema",
|
|
83
90
|
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
84
91
|
}
|
|
85
92
|
},
|
|
@@ -90,32 +97,6 @@ export class CardBillingFormSimple {
|
|
|
90
97
|
"tags": []
|
|
91
98
|
}
|
|
92
99
|
},
|
|
93
|
-
"fill": {
|
|
94
|
-
"complexType": {
|
|
95
|
-
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
96
|
-
"parameters": [{
|
|
97
|
-
"name": "fields",
|
|
98
|
-
"type": "BillingFormFields",
|
|
99
|
-
"docs": ""
|
|
100
|
-
}],
|
|
101
|
-
"references": {
|
|
102
|
-
"Promise": {
|
|
103
|
-
"location": "global",
|
|
104
|
-
"id": "global::Promise"
|
|
105
|
-
},
|
|
106
|
-
"BillingFormFields": {
|
|
107
|
-
"location": "import",
|
|
108
|
-
"path": "../../checkout/billing-form/billing-form-schema",
|
|
109
|
-
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"return": "Promise<void>"
|
|
113
|
-
},
|
|
114
|
-
"docs": {
|
|
115
|
-
"text": "",
|
|
116
|
-
"tags": []
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
100
|
"validate": {
|
|
120
101
|
"complexType": {
|
|
121
102
|
"signature": "() => Promise<{ isValid: boolean; errors: any; }>",
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { StyledHost } from "../../../ui-components";
|
|
3
|
+
export class JustifiBillingForm {
|
|
4
|
+
async getValues() {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
return (_b = (_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.getValues()) !== null && _b !== void 0 ? _b : {};
|
|
7
|
+
}
|
|
8
|
+
async validate() {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
return (_b = (_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(StyledHost, { key: '40a8a4342204d1679c9b37fb775184131c68248b' }, h("billing-form", { key: '65156fc636a2196aa2d189ce5c4d66f755deb3f6', legend: this.legend, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: this.paymentMethodType, ref: (el) => (this.billingFormRef = el) })));
|
|
14
|
+
}
|
|
15
|
+
static get is() { return "justifi-billing-form"; }
|
|
16
|
+
static get encapsulation() { return "shadow"; }
|
|
17
|
+
static get properties() {
|
|
18
|
+
return {
|
|
19
|
+
"legend": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"mutable": true,
|
|
22
|
+
"complexType": {
|
|
23
|
+
"original": "string",
|
|
24
|
+
"resolved": "string",
|
|
25
|
+
"references": {}
|
|
26
|
+
},
|
|
27
|
+
"required": false,
|
|
28
|
+
"optional": true,
|
|
29
|
+
"docs": {
|
|
30
|
+
"tags": [],
|
|
31
|
+
"text": ""
|
|
32
|
+
},
|
|
33
|
+
"getter": false,
|
|
34
|
+
"setter": false,
|
|
35
|
+
"reflect": false,
|
|
36
|
+
"attribute": "legend"
|
|
37
|
+
},
|
|
38
|
+
"hideCardBillingForm": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"mutable": false,
|
|
41
|
+
"complexType": {
|
|
42
|
+
"original": "boolean",
|
|
43
|
+
"resolved": "boolean",
|
|
44
|
+
"references": {}
|
|
45
|
+
},
|
|
46
|
+
"required": false,
|
|
47
|
+
"optional": true,
|
|
48
|
+
"docs": {
|
|
49
|
+
"tags": [],
|
|
50
|
+
"text": ""
|
|
51
|
+
},
|
|
52
|
+
"getter": false,
|
|
53
|
+
"setter": false,
|
|
54
|
+
"reflect": false,
|
|
55
|
+
"attribute": "hide-card-billing-form"
|
|
56
|
+
},
|
|
57
|
+
"hideBankAccountBillingForm": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "boolean",
|
|
62
|
+
"resolved": "boolean",
|
|
63
|
+
"references": {}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": true,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": ""
|
|
70
|
+
},
|
|
71
|
+
"getter": false,
|
|
72
|
+
"setter": false,
|
|
73
|
+
"reflect": false,
|
|
74
|
+
"attribute": "hide-bank-account-billing-form"
|
|
75
|
+
},
|
|
76
|
+
"paymentMethodType": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "string",
|
|
81
|
+
"resolved": "string",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": true,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"getter": false,
|
|
91
|
+
"setter": false,
|
|
92
|
+
"reflect": false,
|
|
93
|
+
"attribute": "payment-method-type"
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static get methods() {
|
|
98
|
+
return {
|
|
99
|
+
"getValues": {
|
|
100
|
+
"complexType": {
|
|
101
|
+
"signature": "() => Promise<BillingFormFields>",
|
|
102
|
+
"parameters": [],
|
|
103
|
+
"references": {
|
|
104
|
+
"Promise": {
|
|
105
|
+
"location": "global",
|
|
106
|
+
"id": "global::Promise"
|
|
107
|
+
},
|
|
108
|
+
"BillingFormFields": {
|
|
109
|
+
"location": "import",
|
|
110
|
+
"path": "./billing-form-schema",
|
|
111
|
+
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"return": "Promise<BillingFormFields>"
|
|
115
|
+
},
|
|
116
|
+
"docs": {
|
|
117
|
+
"text": "",
|
|
118
|
+
"tags": []
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"validate": {
|
|
122
|
+
"complexType": {
|
|
123
|
+
"signature": "() => Promise<{ isValid: boolean; errors: any; }>",
|
|
124
|
+
"parameters": [],
|
|
125
|
+
"references": {
|
|
126
|
+
"Promise": {
|
|
127
|
+
"location": "global",
|
|
128
|
+
"id": "global::Promise"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"return": "Promise<{ isValid: boolean; errors: any; }>"
|
|
132
|
+
},
|
|
133
|
+
"docs": {
|
|
134
|
+
"text": "",
|
|
135
|
+
"tags": []
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import CardFormSkeleton from "./card-form-skeleton";
|
|
3
3
|
import { configState, waitForConfig } from "../../config-provider/config-state";
|
|
4
4
|
import { generateTabId } from "../../../utils/utils";
|
|
5
|
+
import { checkPkgVersion } from "../../../utils/check-pkg-version";
|
|
5
6
|
export class CardForm {
|
|
6
7
|
constructor() {
|
|
7
8
|
this.isReady = false;
|
|
@@ -10,6 +11,7 @@ export class CardForm {
|
|
|
10
11
|
await waitForConfig();
|
|
11
12
|
this.iframeOrigin = configState.iframeOrigin;
|
|
12
13
|
this.tabId = generateTabId();
|
|
14
|
+
checkPkgVersion();
|
|
13
15
|
}
|
|
14
16
|
componentDidRender() {
|
|
15
17
|
const elements = [
|
|
@@ -33,14 +35,15 @@ export class CardForm {
|
|
|
33
35
|
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
34
36
|
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
35
37
|
}
|
|
36
|
-
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
37
|
-
|
|
38
|
+
async tokenize({ clientId, paymentMethodMetadata, account, }) {
|
|
39
|
+
const result = await this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
40
|
+
return result;
|
|
38
41
|
}
|
|
39
42
|
render() {
|
|
40
|
-
return (h(
|
|
43
|
+
return (h("div", { key: 'd3cb1fca6595f60e5f5f122b73d3d6c11a826423' }, h(CardFormSkeleton, { key: 'f83dcbbc214d460bb21c015ec051436ed5cf6670', isReady: this.isReady }), h("hidden-input", { key: '5fad0d06303d0ddb55c30c2cd94014255f2a8cec' }), h("div", { key: '68440756a1aad69b5c95245e7a2a5feb16899dca', class: "container-fluid p-0", style: {
|
|
41
44
|
opacity: this.isReady ? '1' : '0',
|
|
42
45
|
height: this.isReady ? 'auto' : '0',
|
|
43
|
-
} }, h("div", { key: '
|
|
46
|
+
} }, h("div", { key: 'b39eab56c79463935f1a1bb15cc867997f026e7b', class: "mb-3" }, h("iframe-input", { key: '25a2390a8c3c92d5e6eceafe6b821202ecb22d76', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: '68766798d954a0b3d093ae13c3c2955f819da4f2', class: "row" }, h("div", { key: '05539f1ac8ebb0397574d55b4b76d7acdb7d2dca', class: "col-4 align-content-end" }, h("iframe-input", { key: '4c437a4384e6c301e18824d799784c1133e70ee3', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: 'b9a5b8b5dda1d8ab6305c9dc1ef9b655eb02fb3d', class: "col-4 align-content-end" }, h("iframe-input", { key: 'c1a412c20e75d21c1084a4b93f22362c367c1907', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: 'abdfdbd7eb784871011397a7c5fdf371e3c6baf0', class: "col-4 align-content-end" }, h("iframe-input", { key: '08dff072e785846d7543018c194b4df6ce5b343e', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
44
47
|
}
|
|
45
48
|
static get is() { return "card-form"; }
|
|
46
49
|
static get states() {
|
|
@@ -71,18 +74,10 @@ export class CardForm {
|
|
|
71
74
|
},
|
|
72
75
|
"tokenize": {
|
|
73
76
|
"complexType": {
|
|
74
|
-
"signature": "(clientId: string
|
|
77
|
+
"signature": "({ clientId, paymentMethodMetadata, account, }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>",
|
|
75
78
|
"parameters": [{
|
|
76
|
-
"name": "
|
|
77
|
-
"type": "string",
|
|
78
|
-
"docs": ""
|
|
79
|
-
}, {
|
|
80
|
-
"name": "paymentMethodMetadata",
|
|
81
|
-
"type": "any",
|
|
82
|
-
"docs": ""
|
|
83
|
-
}, {
|
|
84
|
-
"name": "account",
|
|
85
|
-
"type": "string",
|
|
79
|
+
"name": "__0",
|
|
80
|
+
"type": "{ clientId: string; paymentMethodMetadata: any; account?: string; }",
|
|
86
81
|
"docs": ""
|
|
87
82
|
}],
|
|
88
83
|
"references": {
|