@justifi/webcomponents 5.7.5 → 5.7.6-rc-02
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/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
- package/dist/cjs/{Refund-DN-yzFgy.js → Refund-Dt1CMUjx.js} +97 -0
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +4 -5
- package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
- package/dist/cjs/{business.service-U2eLTrq9.js → business.service-W2PRAU9J.js} +2 -3
- package/dist/cjs/card-form.cjs.entry.js +71 -0
- package/dist/cjs/{check-pkg-version-DuL7lRe2.js → check-pkg-version-DmONJMn1.js} +3 -4
- package/dist/cjs/{checkout.service-DtMzeEwi.js → checkout.service-XwOh98gt.js} +2 -3
- package/dist/cjs/checkout.store--pVCO0L1.js +37 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +3 -4
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -122
- package/dist/cjs/{dispute.service-CGVAs-5M.js → dispute.service-Dh82Wru1.js} +2 -3
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_3.cjs.entry.js +124 -0
- package/dist/cjs/{get-business-BJrtsomz.js → get-business-BiEc-jdH.js} +2 -2
- package/dist/cjs/{get-payment-details-CdVEiscr.js → get-payment-details-W4PgTPkL.js} +3 -4
- package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
- package/dist/cjs/{get-subaccounts-fBIoOr7m.js → get-subaccounts-D4woaGSs.js} +3 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +111 -14
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +2 -3
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +5 -6
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-bank-account-form_5.cjs.entry.js +277 -0
- package/dist/cjs/justifi-billing-form.cjs.entry.js +76 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +7 -8
- package/dist/cjs/justifi-button_5.cjs.entry.js +329 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +80 -95
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -10
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -10
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -8
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -10
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -6
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -10
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payment-method-options.cjs.entry.js +76 -0
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
- package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +117 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -16
- package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +12 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-o4g7MDiy.js → package-oywezDpy.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
- package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
- package/dist/cjs/{payment.service-DmpOOPu1.js → payment.service-BrvtS3F7.js} +2 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +3 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-BfO6L79f.js → payout.service-DNH6gRrP.js} +2 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -4
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +4 -5
- package/dist/cjs/{terminal-orders-table-DMjFmuxk.js → terminal-orders-table-xi_a-EnM.js} +2 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-h-LWztbo.js → terminal.service-CdzmTRQE.js} +2 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +3 -4
- package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/BillingInformation.js +1 -0
- package/dist/collection/api/Checkout.js +1 -3
- package/dist/collection/api/ComponentError.js +2 -0
- package/dist/collection/api/PaymentMethod.js +1 -0
- package/dist/collection/collection-manifest.json +13 -3
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form-schema.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +2 -5
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +158 -53
- package/dist/collection/components/checkout/new-payment-method.js +2 -2
- package/dist/collection/components/checkout/payment-method-options.js +18 -37
- package/dist/collection/components/checkout/save-new-payment-method.js +3 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- 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/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -13
- package/dist/collection/components/modular-checkout/modular-checkout.js +379 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +98 -0
- package/dist/collection/components/modular-checkout/sub-components/billing-form-schema.js +21 -0
- package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +97 -0
- package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +102 -0
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +113 -0
- package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +124 -0
- package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +40 -0
- package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +127 -0
- package/dist/collection/components/modular-checkout/sub-components/summary.js +12 -0
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.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 +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.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 +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -3
- package/dist/collection/store/checkout.store.js +32 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +10 -5
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +176 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +83 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +108 -0
- package/dist/docs.json +1695 -844
- package/dist/esm/{Api-69eVlLFc.js → Api-C3T8XYbb.js} +1 -1
- package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
- package/dist/esm/{Payment-BGiKmQYR.js → Payment-00TwhwCx.js} +2 -2
- package/dist/esm/{Refund-f_BCgcDa.js → Refund-0aZtuMmz.js} +98 -2
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-VWumlkvS.js → badge-Dr7gkD2I.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +9 -10
- package/dist/esm/bank-account-form.entry.js +61 -0
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-BviUFOjP.js → business.service-C5vrjgZf.js} +4 -5
- package/dist/esm/{button-BfT7Ex96.js → button-xfPDSpPt.js} +1 -1
- package/dist/esm/card-form.entry.js +69 -0
- package/dist/esm/{check-pkg-version-phOwcSQM.js → check-pkg-version-DqhSXPRt.js} +5 -6
- package/dist/esm/{checkout.service-B8W_W-lc.js → checkout.service-CW2_CEte.js} +4 -5
- package/dist/esm/checkout.store-GXtlf5-4.js +34 -0
- package/dist/esm/checkouts-list-core.entry.js +10 -11
- package/dist/esm/{checkouts-table-zIrBvmQp.js → checkouts-table-BHhaS5bv.js} +3 -3
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -121
- package/dist/esm/{dispute.service-1e9677RK.js → dispute.service-C3bmfjsZ.js} +4 -5
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-CYWqNNkG.js → form-control-error-text-Cn0aPzHx.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-DMdU5_la.js → form-control-help-text-C91TeHXs.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +120 -0
- package/dist/esm/{get-business-GEPTefIj.js → get-business-BSRtbTh7.js} +2 -2
- package/dist/esm/{get-payment-details-B5-Hzdrg.js → get-payment-details-BdPvFl1W.js} +5 -6
- package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
- package/dist/esm/{get-subaccounts-Cv7zn0lA.js → get-subaccounts-BqqR44dV.js} +6 -7
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-84nZCcj4.js → header-1-noRVFQY9.js} +1 -1
- package/dist/esm/{header-3-DpBr7qOY.js → header-3-Bsi4loU1.js} +1 -1
- package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
- package/dist/esm/{insurance-state-BDLlv3CM.js → insurance-state-pL8MRpxn.js} +2 -2
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -8
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +10 -11
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-bank-account-form_5.entry.js +271 -0
- package/dist/esm/justifi-billing-form.entry.js +74 -0
- package/dist/esm/justifi-business-details.entry.js +12 -13
- package/dist/esm/justifi-business-form.entry.js +14 -15
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-button_5.entry.js +323 -0
- package/dist/esm/justifi-checkout.entry.js +82 -97
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -7
- package/dist/esm/justifi-checkouts-list.entry.js +14 -15
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +10 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +15 -16
- package/dist/esm/justifi-gross-payment-chart.entry.js +10 -11
- package/dist/esm/justifi-new-payment-method.entry.js +97 -0
- package/dist/esm/justifi-order-terminals.entry.js +14 -15
- package/dist/esm/justifi-owner-form_3.entry.js +10 -11
- package/dist/esm/justifi-payment-details.entry.js +12 -13
- package/dist/esm/justifi-payment-method-options.entry.js +74 -0
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +10 -11
- package/dist/esm/justifi-payment-transactions-list.entry.js +13 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +14 -15
- package/dist/esm/justifi-payout-details.entry.js +12 -13
- package/dist/esm/justifi-payout-transactions-list.entry.js +13 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +16 -17
- package/dist/esm/justifi-refund-payment.entry.js +13 -14
- package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
- package/dist/esm/justifi-saved-payment-methods_2.entry.js +114 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -6
- package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -19
- package/dist/esm/justifi-skeleton.entry.js +15 -0
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +12 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +6 -7
- package/dist/esm/justifi-terminals-list.entry.js +14 -15
- package/dist/esm/justifi-tokenize-payment-method.entry.js +17 -11
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-B0XIc_FO.js → package-DR0dQ8Fv.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-BrLVc_85.js → parts-D3G5aVLy.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +14 -14
- package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
- package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
- package/dist/esm/{payment.service-BMbF1Svr.js → payment.service-CnQdP32J.js} +4 -5
- package/dist/esm/payments-list-core.entry.js +11 -12
- package/dist/esm/{payments-status-_qXPu883.js → payments-status-DUM0WZkk.js} +1 -1
- package/dist/esm/{payments-table-CrCdh5OV.js → payments-table-DVQzx7MJ.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-HKpmn5XB.js → payout.service-EJuPNpfs.js} +4 -5
- package/dist/esm/payouts-list-core.entry.js +11 -12
- package/dist/esm/{payouts-status-C1XLgtWW.js → payouts-status-7saoFNoA.js} +1 -1
- package/dist/esm/{payouts-table-DIqsk6Oa.js → payouts-table-dca-F2iQ.js} +3 -3
- package/dist/esm/{skeleton-CdD_FIeP.js → skeleton-C1-JoGFC.js} +1 -1
- package/dist/esm/{spinner-DIlSUUzM.js → spinner-Ca9uu5Nd.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/{table-DjsimZwr.js → table-fsCYq8m9.js} +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +10 -11
- package/dist/esm/{terminal-orders-table-BnXCVH7W.js → terminal-orders-table-BNasCnjz.js} +6 -7
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-XpfOXoFl.js → terminal.service-Cfacmeto.js} +4 -5
- package/dist/esm/terminals-list-core.entry.js +10 -11
- package/dist/esm/{terminals-table-CCLlefFA.js → terminals-table-DBk-eg_3.js} +3 -3
- package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
- package/dist/esm/{utils-DB5fh6Iv.js → utils-BjLkBMLe.js} +1 -1
- package/dist/esm/{utils-6CI1OiOE.js → utils-CNwvOLkk.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/{check-pkg-version.js → Analytics.js} +22 -23
- package/dist/module/Payment.js +1 -1
- package/dist/module/Refund.js +119 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -2
- package/dist/module/bank-account-form.js +83 -1
- package/dist/module/{bank-account-form2.js → bank-account.js} +25 -8
- package/dist/module/billing-form-schema.js +24 -0
- package/dist/module/billing-form.js +28 -22
- package/dist/module/billing-information-form.js +97 -0
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +2 -3
- package/dist/module/business-bank-account-form-step.js +1 -2
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +1 -2
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form.js +91 -1
- package/dist/module/card-form2.js +27 -10
- package/dist/module/checkout.service.js +1 -2
- package/dist/module/checkout.store.js +34 -0
- package/dist/module/checkouts-list-core2.js +3 -4
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-actions.js +1 -2
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +3 -3
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/get-business.js +1 -1
- package/dist/module/get-payment-details.js +2 -3
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -2
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/header-2.js +8 -0
- package/dist/module/header-3.js +8 -0
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/insurance-state.js +1 -7
- package/dist/module/justifi-bank-account-form.d.ts +11 -0
- package/dist/module/justifi-bank-account-form.js +6 -0
- package/dist/module/justifi-billing-information-form.d.ts +11 -0
- package/dist/module/justifi-billing-information-form.js +6 -0
- package/dist/module/justifi-business-details.js +2 -2
- package/dist/module/justifi-business-form.js +2 -3
- package/dist/module/{justifi-checkout-core.d.ts → justifi-button.d.ts} +4 -4
- package/dist/module/justifi-button.js +6 -0
- package/dist/module/justifi-button2.js +41 -0
- package/dist/module/justifi-card-form.d.ts +11 -0
- package/dist/module/justifi-card-form.js +6 -0
- package/dist/module/justifi-checkout-summary.d.ts +11 -0
- package/dist/module/justifi-checkout-summary.js +6 -0
- package/dist/module/justifi-checkout.js +146 -132
- package/dist/module/justifi-checkouts-list-filters.js +3 -4
- package/dist/module/justifi-checkouts-list.js +3 -4
- package/dist/module/justifi-dispute-management.js +3 -3
- package/dist/module/justifi-gross-payment-chart.js +2 -3
- package/dist/module/justifi-header.d.ts +11 -0
- package/dist/module/justifi-header.js +6 -0
- package/dist/module/justifi-header2.js +43 -0
- package/dist/module/justifi-modular-checkout.d.ts +11 -0
- package/dist/module/justifi-modular-checkout.js +6 -0
- package/dist/module/justifi-new-payment-method.js +214 -1
- package/dist/module/justifi-order-terminals.js +3 -4
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-provisioning.js +2 -3
- package/dist/module/justifi-payment-transactions-list.js +4 -5
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +4 -5
- package/dist/module/justifi-payout-details.js +2 -3
- package/dist/module/justifi-payout-transactions-list.js +4 -5
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +3 -4
- package/dist/module/justifi-postal-code-form.d.ts +11 -0
- package/dist/module/justifi-postal-code-form.js +6 -0
- package/dist/module/justifi-refund-payment.js +2 -3
- package/dist/module/justifi-saved-payment-method.js +57 -1
- package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
- package/dist/module/justifi-saved-payment-methods.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +11 -15
- package/dist/module/justifi-skeleton.d.ts +11 -0
- package/dist/module/justifi-skeleton.js +39 -0
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -5
- package/dist/module/justifi-terminal-orders-list.js +3 -4
- package/dist/module/justifi-terminals-list-filters.js +3 -4
- package/dist/module/justifi-terminals-list.js +3 -4
- package/dist/module/justifi-tokenize-payment-method.js +18 -84
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/modular-checkout.js +286 -0
- package/dist/module/package.js +3 -3
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option-utils.js +23 -0
- package/dist/module/payment-method-option.d.ts +11 -0
- package/dist/module/payment-method-option.js +6 -0
- package/dist/module/payment-method-option2.js +50 -0
- package/dist/module/payment-method-options.js +23 -113
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payment.service.js +1 -2
- package/dist/module/payments-list-core2.js +3 -4
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +1 -2
- package/dist/module/payouts-list-core2.js +3 -4
- package/dist/module/postal-code-form.js +93 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +6 -2
- package/dist/module/saved-payment-methods.js +72 -0
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +4 -3
- package/dist/module/sezzle-payment-method.js +23 -17
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +34 -0
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminal-orders-list-core2.js +3 -4
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +1 -2
- package/dist/module/terminals-list-core2.js +3 -4
- package/dist/module/utils4.js +1 -1
- package/dist/types/api/BillingInformation.d.ts +13 -0
- package/dist/types/api/Checkout.d.ts +15 -13
- package/dist/types/api/ComponentError.d.ts +3 -1
- package/dist/types/api/PaymentMethod.d.ts +21 -0
- package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
- package/dist/types/components/checkout/checkout.d.ts +30 -11
- package/dist/types/components/checkout/payment-method-options.d.ts +2 -2
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +33 -0
- package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +18 -0
- package/dist/types/components/modular-checkout/sub-components/billing-form-schema.d.ts +23 -0
- package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +18 -0
- package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +20 -0
- package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +8 -0
- package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +19 -0
- package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +7 -0
- package/dist/types/components/{checkout → modular-checkout/sub-components}/sezzle-payment-method.d.ts +3 -9
- package/dist/types/components/modular-checkout/sub-components/summary.d.ts +3 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
- package/dist/types/components.d.ts +293 -73
- package/dist/types/store/checkout.store.d.ts +25 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
- package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +13 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +10 -0
- package/dist/webcomponents/p-00d7c2e6.entry.js +1 -0
- package/dist/webcomponents/p-03e9a98c.entry.js +1 -0
- package/dist/webcomponents/p-05c604d2.entry.js +1 -0
- package/dist/webcomponents/p-05fc864a.entry.js +1 -0
- package/dist/webcomponents/{p-4ac8d9d4.entry.js → p-0890869b.entry.js} +4 -4
- package/dist/webcomponents/p-09c24135.entry.js +1 -0
- package/dist/webcomponents/p-0e4e662b.entry.js +1 -0
- package/dist/webcomponents/p-0f511cc1.entry.js +1 -0
- package/dist/webcomponents/p-100008fa.entry.js +1 -0
- package/dist/webcomponents/p-17825dfb.entry.js +1 -0
- package/dist/webcomponents/p-18b941d3.entry.js +1 -0
- package/dist/webcomponents/p-19308a1b.entry.js +1 -0
- package/dist/webcomponents/p-1a7942f7.entry.js +1 -0
- package/dist/webcomponents/{p-BLWOT0S7.js → p-1adN6FVa.js} +1 -1
- package/dist/webcomponents/{p-2b5a7776.entry.js → p-1bddf354.entry.js} +1 -1
- package/dist/webcomponents/p-1d1d956b.entry.js +1 -0
- package/dist/webcomponents/p-26bf2fda.entry.js +1 -0
- package/dist/webcomponents/p-2d3949f7.entry.js +1 -0
- package/dist/webcomponents/{p-aa72125e.entry.js → p-2f482f5b.entry.js} +1 -1
- package/dist/webcomponents/p-30d3d0cd.entry.js +1 -0
- package/dist/webcomponents/{p-95d99ffc.entry.js → p-326f4860.entry.js} +1 -1
- package/dist/webcomponents/p-359b8f54.entry.js +1 -0
- package/dist/webcomponents/p-37aeeeee.entry.js +1 -0
- package/dist/webcomponents/p-4887bcb3.entry.js +1 -0
- package/dist/webcomponents/{p-a38b3d9a.entry.js → p-50bfec55.entry.js} +1 -1
- package/dist/webcomponents/p-54406229.entry.js +1 -0
- package/dist/webcomponents/p-56af4fd0.entry.js +1 -0
- package/dist/webcomponents/p-59656e08.entry.js +1 -0
- package/dist/webcomponents/p-5d145701.entry.js +1 -0
- package/dist/webcomponents/p-5e813b93.entry.js +1 -0
- package/dist/webcomponents/p-64a46b8a.entry.js +1 -0
- package/dist/webcomponents/p-66861ea5.entry.js +1 -0
- package/dist/webcomponents/{p-30415c7f.entry.js → p-683630d0.entry.js} +1 -1
- package/dist/webcomponents/p-6bd83369.entry.js +1 -0
- package/dist/webcomponents/p-6ee2b118.entry.js +1 -0
- package/dist/webcomponents/p-70774a5a.entry.js +1 -0
- package/dist/webcomponents/p-73afde1b.entry.js +1 -0
- package/dist/webcomponents/p-73bbd71c.entry.js +1 -0
- package/dist/webcomponents/p-74f78a4e.entry.js +1 -0
- package/dist/webcomponents/p-755a8d9b.entry.js +1 -0
- package/dist/webcomponents/p-7c456c10.entry.js +1 -0
- package/dist/webcomponents/p-7c63d61d.entry.js +1 -0
- package/dist/webcomponents/p-7c6d7283.entry.js +1 -0
- package/dist/webcomponents/{p-e21ba107.entry.js → p-7d2de2d4.entry.js} +1 -1
- package/dist/webcomponents/{p-3bf842ea.entry.js → p-7e9832b3.entry.js} +1 -1
- package/dist/webcomponents/p-810cad17.entry.js +1 -0
- package/dist/webcomponents/p-81478598.entry.js +1 -0
- package/dist/webcomponents/p-91a2707a.entry.js +1 -0
- package/dist/webcomponents/p-9348a7c8.entry.js +1 -0
- package/dist/webcomponents/p-967c3374.entry.js +1 -0
- package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
- package/dist/webcomponents/p-9c27f87f.entry.js +1 -0
- package/dist/webcomponents/p-B9ROmZzw.js +1 -0
- package/dist/webcomponents/{p-vTsHmSQQ.js → p-BCPBc18Y.js} +1 -1
- package/dist/webcomponents/p-BQ5bL1Y5.js +1 -0
- package/dist/webcomponents/p-BSW9VS7r.js +1 -0
- package/dist/webcomponents/p-BSexQ2qc.js +1 -0
- package/dist/webcomponents/p-Bc5u1WjM.js +1 -0
- package/dist/webcomponents/p-BhrFjjAs.js +1 -0
- package/dist/webcomponents/p-BjQrbohd.js +1 -0
- package/dist/webcomponents/{p-1CYqfEKd.js → p-BqK0rIZQ.js} +1 -1
- package/dist/webcomponents/p-BtT7kqMw.js +1 -0
- package/dist/webcomponents/p-BxWsrx5h.js +1 -0
- package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
- package/dist/webcomponents/p-By9Lz2e0.js +1 -0
- package/dist/webcomponents/p-CEp46FZK.js +1 -0
- package/dist/webcomponents/p-CMNxLEJP.js +1 -0
- package/dist/webcomponents/p-CZItg0Yo.js +1 -0
- package/dist/webcomponents/{p-BrLVc_85.js → p-D3G5aVLy.js} +1 -1
- package/dist/webcomponents/p-D7WGjeDy.js +1 -0
- package/dist/webcomponents/{p-Cw3BMq7G.js → p-DAVX1-sW.js} +1 -1
- package/dist/webcomponents/{p-Clv1feia.js → p-DAoffYFW.js} +1 -1
- package/dist/webcomponents/{p-Bnrk5pzA.js → p-DDpc1huF.js} +1 -1
- package/dist/webcomponents/{p-D9lioyBA.js → p-DHvfrLVU.js} +1 -1
- package/dist/webcomponents/p-DIDbcp63.js +1 -0
- package/dist/webcomponents/p-DKClunJd.js +1 -0
- package/dist/webcomponents/p-DR0dQ8Fv.js +1 -0
- package/dist/webcomponents/p-DUqRxn4Y.js +1 -0
- package/dist/webcomponents/p-DbcOhajT.js +1 -0
- package/dist/webcomponents/{p-CYTPbCLN.js → p-Dh6FEdp8.js} +1 -1
- package/dist/webcomponents/p-DhAmsAOH.js +1 -0
- package/dist/webcomponents/p-DoEkFs2i.js +1 -0
- package/dist/webcomponents/p-DvXSA0b0.js +1 -0
- package/dist/webcomponents/p-NqdaxjDT.js +1 -0
- package/dist/webcomponents/p-a02ce003.entry.js +1 -0
- package/dist/webcomponents/p-a05062d8.entry.js +1 -0
- package/dist/webcomponents/p-a27405fb.entry.js +1 -0
- package/dist/webcomponents/p-a2f0d61c.entry.js +1 -0
- package/dist/webcomponents/p-a95741ee.entry.js +1 -0
- package/dist/webcomponents/p-ac538ffd.entry.js +1 -0
- package/dist/webcomponents/p-ae00a6f3.entry.js +1 -0
- package/dist/webcomponents/p-b193bf46.entry.js +1 -0
- package/dist/webcomponents/p-b398856f.entry.js +1 -0
- package/dist/webcomponents/{p-7d324f45.entry.js → p-cb7c712f.entry.js} +1 -1
- package/dist/webcomponents/p-d33baab9.entry.js +1 -0
- package/dist/webcomponents/{p-a23dfac9.entry.js → p-d3f438ca.entry.js} +1 -1
- package/dist/webcomponents/p-d5b3c65c.entry.js +1 -0
- package/dist/webcomponents/p-d62e6c16.entry.js +1 -0
- package/dist/webcomponents/p-d7f62287.entry.js +1 -0
- package/dist/webcomponents/{p-36c99fce.entry.js → p-e48a2d25.entry.js} +1 -1
- package/dist/webcomponents/p-eba620cd.entry.js +1 -0
- package/dist/webcomponents/p-ecdda6e6.entry.js +1 -0
- package/dist/webcomponents/p-f24e201f.entry.js +1 -0
- package/dist/webcomponents/p-f5d12ae3.entry.js +1 -0
- package/dist/webcomponents/{p-BSl0X3r8.js → p-fUv1jFAw.js} +1 -1
- package/dist/webcomponents/p-m2jmX-Hz.js +1 -0
- package/dist/webcomponents/p-pGzabKc7.js +1 -0
- package/dist/webcomponents/p-sT4o5vru.js +1 -0
- package/dist/webcomponents/p-ys9CWfNG.js +1 -0
- package/dist/webcomponents/p-zucQG3cz.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Checkout-TZnRz3-3.js +0 -103
- package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -581
- package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +0 -26
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -142
- package/dist/collection/components/checkout/checkout-core.js +0 -454
- package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
- package/dist/esm/Checkout-B9LrTq63.js +0 -101
- package/dist/esm/bank-account-form_9.entry.js +0 -571
- package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +0 -23
- package/dist/esm/justifi-checkout-core.entry.js +0 -140
- package/dist/module/Checkout.js +0 -121
- package/dist/module/checkout-core.js +0 -274
- package/dist/module/justifi-checkout-core.js +0 -6
- package/dist/module/new-payment-method.js +0 -204
- package/dist/module/saved-payment-method.js +0 -79
- package/dist/types/components/checkout/checkout-core.d.ts +0 -49
- package/dist/webcomponents/p-0da7c7e5.entry.js +0 -1
- package/dist/webcomponents/p-111535c9.entry.js +0 -1
- package/dist/webcomponents/p-18ddc883.entry.js +0 -1
- package/dist/webcomponents/p-1ANZF89K.js +0 -1
- package/dist/webcomponents/p-249d9a7f.entry.js +0 -1
- package/dist/webcomponents/p-312b81a6.entry.js +0 -1
- package/dist/webcomponents/p-39d3df56.entry.js +0 -1
- package/dist/webcomponents/p-3dc2d47c.entry.js +0 -1
- package/dist/webcomponents/p-40bbb25c.entry.js +0 -1
- package/dist/webcomponents/p-40fb2439.entry.js +0 -1
- package/dist/webcomponents/p-412805ce.entry.js +0 -1
- package/dist/webcomponents/p-43c3a433.entry.js +0 -1
- package/dist/webcomponents/p-5436c41f.entry.js +0 -1
- package/dist/webcomponents/p-5576322e.entry.js +0 -1
- package/dist/webcomponents/p-59db70c0.entry.js +0 -1
- package/dist/webcomponents/p-600da1ee.entry.js +0 -1
- package/dist/webcomponents/p-6daf7df0.entry.js +0 -1
- package/dist/webcomponents/p-867a4a55.entry.js +0 -1
- package/dist/webcomponents/p-878f26f7.entry.js +0 -1
- package/dist/webcomponents/p-8c0162b3.entry.js +0 -1
- package/dist/webcomponents/p-8e201c63.entry.js +0 -1
- package/dist/webcomponents/p-91b5da99.entry.js +0 -1
- package/dist/webcomponents/p-989f51bc.entry.js +0 -1
- package/dist/webcomponents/p-9f9002c1.entry.js +0 -1
- package/dist/webcomponents/p-B0XIc_FO.js +0 -1
- package/dist/webcomponents/p-B3AHoKpE.js +0 -1
- package/dist/webcomponents/p-BOQVwCyQ.js +0 -1
- package/dist/webcomponents/p-Bgdp97Tl.js +0 -1
- package/dist/webcomponents/p-BkDN6yJN.js +0 -1
- package/dist/webcomponents/p-BqoTJ9CO.js +0 -1
- package/dist/webcomponents/p-C5RuuShs.js +0 -1
- package/dist/webcomponents/p-C9oyC18r.js +0 -1
- package/dist/webcomponents/p-CNSeavdR.js +0 -1
- package/dist/webcomponents/p-CSO7ljYx.js +0 -1
- package/dist/webcomponents/p-CgEahdBL.js +0 -1
- package/dist/webcomponents/p-Ckf8pUs-.js +0 -1
- package/dist/webcomponents/p-Cm9gh1Sz.js +0 -1
- package/dist/webcomponents/p-CraCsD1A.js +0 -1
- package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
- package/dist/webcomponents/p-DgIkDBGX.js +0 -1
- package/dist/webcomponents/p-DniQ6yo6.js +0 -1
- package/dist/webcomponents/p-DpbCEDZ3.js +0 -1
- package/dist/webcomponents/p-Ds11n2AD.js +0 -1
- package/dist/webcomponents/p-DvuraFxP.js +0 -1
- package/dist/webcomponents/p-DzFysjCc.js +0 -1
- package/dist/webcomponents/p-KoNvNGKV.js +0 -1
- package/dist/webcomponents/p-SdntD1xf.js +0 -1
- package/dist/webcomponents/p-Zuu7wsNB.js +0 -1
- package/dist/webcomponents/p-a151a347.entry.js +0 -1
- package/dist/webcomponents/p-a48f8ec2.entry.js +0 -1
- package/dist/webcomponents/p-a7e9a1d1.entry.js +0 -1
- package/dist/webcomponents/p-a87c50de.entry.js +0 -1
- package/dist/webcomponents/p-b648fca4.entry.js +0 -1
- package/dist/webcomponents/p-b92737c4.entry.js +0 -1
- package/dist/webcomponents/p-bbf264c6.entry.js +0 -1
- package/dist/webcomponents/p-bdbd0c8e.entry.js +0 -1
- package/dist/webcomponents/p-be89720e.entry.js +0 -1
- package/dist/webcomponents/p-c18a5ebf.entry.js +0 -1
- package/dist/webcomponents/p-c87WhXVB.js +0 -1
- package/dist/webcomponents/p-d3a2fa7e.entry.js +0 -1
- package/dist/webcomponents/p-d768d814.entry.js +0 -1
- package/dist/webcomponents/p-d7883a41.entry.js +0 -1
- package/dist/webcomponents/p-d9a9279b.entry.js +0 -1
- package/dist/webcomponents/p-d9ae1fea.entry.js +0 -1
- package/dist/webcomponents/p-da872abc.entry.js +0 -1
- package/dist/webcomponents/p-db86c150.entry.js +0 -1
- package/dist/webcomponents/p-dbcc1a8e.entry.js +0 -1
- package/dist/webcomponents/p-e0345315.entry.js +0 -1
- package/dist/webcomponents/p-e2867ef6.entry.js +0 -1
- package/dist/webcomponents/p-e4fa3f41.entry.js +0 -1
- package/dist/webcomponents/p-edfcb58d.entry.js +0 -1
- package/dist/webcomponents/p-f37bb6d6.entry.js +0 -1
- package/dist/webcomponents/p-f5eeb11d.entry.js +0 -1
- package/dist/webcomponents/p-f6d5f392.entry.js +0 -1
- package/dist/webcomponents/p-f6debdb8.entry.js +0 -1
- package/dist/webcomponents/p-fcb85a8e.entry.js +0 -1
- package/dist/webcomponents/p-hBHbB3i6.js +0 -1
- package/dist/webcomponents/p-pOQo1ck9.js +0 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { StyledHost } from "../../../ui-components";
|
|
3
|
+
import BankAccountFormSkeleton from "./bank-account-skeleton";
|
|
4
|
+
import { checkPkgVersion } from "../../../utils/check-pkg-version";
|
|
5
|
+
import JustifiAnalytics from "../../../api/Analytics";
|
|
6
|
+
import { configState, waitForConfig } from "../../config-provider/config-state";
|
|
7
|
+
export class BankAccountForm {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.isReady = false;
|
|
10
|
+
}
|
|
11
|
+
async componentWillLoad() {
|
|
12
|
+
await waitForConfig();
|
|
13
|
+
this.iframeOrigin = configState.iframeOrigin;
|
|
14
|
+
checkPkgVersion();
|
|
15
|
+
this.analytics = new JustifiAnalytics(this);
|
|
16
|
+
}
|
|
17
|
+
componentDidRender() {
|
|
18
|
+
const elements = [
|
|
19
|
+
this.accountNumberIframeElement,
|
|
20
|
+
this.routingNumberIframeElement,
|
|
21
|
+
];
|
|
22
|
+
Promise.all(elements.map((element) => {
|
|
23
|
+
return new Promise((resolve) => {
|
|
24
|
+
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
25
|
+
});
|
|
26
|
+
})).then(() => {
|
|
27
|
+
this.isReady = true;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
disconnectedCallback() {
|
|
31
|
+
var _a;
|
|
32
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
33
|
+
}
|
|
34
|
+
async validate() {
|
|
35
|
+
const accountNumberIsValid = await this.accountNumberIframeElement.validate();
|
|
36
|
+
const routingNumberIsValid = await this.routingNumberIframeElement.validate();
|
|
37
|
+
return accountNumberIsValid && routingNumberIsValid;
|
|
38
|
+
}
|
|
39
|
+
async tokenize({ clientId, paymentMethodMetadata, account }) {
|
|
40
|
+
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
return (h(StyledHost, { key: '62a8adb8888d6143bbc27678ccff125c7b3a59ec' }, h(BankAccountFormSkeleton, { key: 'a73372809ad95b4aa900aa6907ce4517ce01cdde', isReady: this.isReady }), h("hidden-input", { key: 'a9324304388bf0b3b19bfe4f8ea56c9fad1a12e7' }), h("div", { key: '7b7584c3af3bfe6ca6fb7bdbec25d4c0c9d43b40', class: "container-fluid p-0", style: {
|
|
44
|
+
opacity: this.isReady ? '1' : '0',
|
|
45
|
+
height: this.isReady ? 'auto' : '0',
|
|
46
|
+
} }, h("div", { key: '40c0352915f903b5ba6fda1642644158daf129b7', class: "row mb-3" }, h("iframe-input", { key: 'af64688e5d8b5da6898a5e20550cc1992a28fe9c', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '20fbdaffb3d2ba3ac8c44a4b64040f146ad58789', class: "row" }, h("iframe-input", { key: '5a0fd0855570d0ebbcd1d6be2f569d08a4ae3c17', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
47
|
+
}
|
|
48
|
+
static get is() { return "justifi-bank-account-form"; }
|
|
49
|
+
static get encapsulation() { return "shadow"; }
|
|
50
|
+
static get states() {
|
|
51
|
+
return {
|
|
52
|
+
"iframeOrigin": {},
|
|
53
|
+
"isReady": {}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get methods() {
|
|
57
|
+
return {
|
|
58
|
+
"validate": {
|
|
59
|
+
"complexType": {
|
|
60
|
+
"signature": "() => Promise<any>",
|
|
61
|
+
"parameters": [],
|
|
62
|
+
"references": {
|
|
63
|
+
"Promise": {
|
|
64
|
+
"location": "global",
|
|
65
|
+
"id": "global::Promise"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"return": "Promise<any>"
|
|
69
|
+
},
|
|
70
|
+
"docs": {
|
|
71
|
+
"text": "",
|
|
72
|
+
"tags": []
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"tokenize": {
|
|
76
|
+
"complexType": {
|
|
77
|
+
"signature": "({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>",
|
|
78
|
+
"parameters": [{
|
|
79
|
+
"name": "__0",
|
|
80
|
+
"type": "{ clientId: string; paymentMethodMetadata: any; account?: string; }",
|
|
81
|
+
"docs": ""
|
|
82
|
+
}],
|
|
83
|
+
"references": {
|
|
84
|
+
"Promise": {
|
|
85
|
+
"location": "global",
|
|
86
|
+
"id": "global::Promise"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"return": "Promise<any>"
|
|
90
|
+
},
|
|
91
|
+
"docs": {
|
|
92
|
+
"text": "",
|
|
93
|
+
"tags": []
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { object } from "yup";
|
|
2
|
+
import { cityValidation, identityNameValidation, lineOneValidation, lineTwoValidation, postalValidation, stateValidation, } from "../../business-forms/schemas/schema-validations";
|
|
3
|
+
export const billingFormSchema = (postalOnly) => {
|
|
4
|
+
const fullBillingForm = object({
|
|
5
|
+
name: identityNameValidation.required('Enter full name'),
|
|
6
|
+
address_line1: lineOneValidation.required('Enter street address'),
|
|
7
|
+
address_line2: lineTwoValidation.nullable(),
|
|
8
|
+
address_city: cityValidation.required('Enter city'),
|
|
9
|
+
address_state: stateValidation.required('Select state'),
|
|
10
|
+
address_postal_code: postalValidation.required('Enter postal code'),
|
|
11
|
+
});
|
|
12
|
+
const postalForm = object({
|
|
13
|
+
name: identityNameValidation.nullable(),
|
|
14
|
+
address_line1: lineOneValidation.nullable(),
|
|
15
|
+
address_line2: lineTwoValidation.nullable(),
|
|
16
|
+
address_city: cityValidation.nullable(),
|
|
17
|
+
address_state: stateValidation.nullable(),
|
|
18
|
+
address_postal_code: postalValidation.required('Enter postal code'),
|
|
19
|
+
});
|
|
20
|
+
return postalOnly ? postalForm : fullBillingForm;
|
|
21
|
+
};
|
package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { billingFormSchema } from "./billing-form-schema";
|
|
3
|
+
import { billingForm } from "../../../styles/parts";
|
|
4
|
+
import { numberOnlyHandler } from "../../../ui-components/form/utils";
|
|
5
|
+
import StateOptions from "../../../utils/state-options";
|
|
6
|
+
import { FormController } from "../../../ui-components/form/form";
|
|
7
|
+
import { StyledHost } from "../../../ui-components";
|
|
8
|
+
import { onChange } from "../../../store/checkout.store";
|
|
9
|
+
export class BillingInformationForm {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.errors = {};
|
|
12
|
+
this.inputHandler = (name, value) => {
|
|
13
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
connectedCallback() {
|
|
17
|
+
this.unsubscribe = onChange('billingFormFields', (newValue) => {
|
|
18
|
+
this.formController.setInitialValues(newValue);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
disconnectedCallback() {
|
|
22
|
+
var _a;
|
|
23
|
+
(_a = this.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
24
|
+
}
|
|
25
|
+
componentWillLoad() {
|
|
26
|
+
this.formController = new FormController(billingFormSchema());
|
|
27
|
+
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
30
|
+
this.formController.errors.subscribe(errors => {
|
|
31
|
+
this.errors = Object.assign({}, errors);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async getValues() {
|
|
35
|
+
return this.formController.values.getValue();
|
|
36
|
+
}
|
|
37
|
+
async validate() {
|
|
38
|
+
let isValid = await this.formController.validate();
|
|
39
|
+
return { isValid: isValid };
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
43
|
+
return (h(StyledHost, { key: '7111e5b5bb74bf5af175910094a75eccaff6f1c1' }, h("div", { key: '2ab9f375ca4d7b911f121a54eacbf1db58922fbf', part: billingForm }, h("form", { key: '85a3c97691dcbf47c626e879639b56abeae4b2b2' }, h("fieldset", { key: '8fbc358d9e9341f909484e1854f61fcfd1eb1fb7' }, h("div", { key: 'f829796613bf471ad10e9b56c925c279b89d1285', class: "row gy-3" }, h("div", { key: 'fb4db86dffdef38fdbdce46ff616ca04ae76e2d3', class: "col-12" }, h("form-control-text", { key: '8fbb9905623d60a3927e12b378643ba114444317', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'ad970e98848b37a7fbf38426816934d6d07f3f0c', class: "col-12" }, h("form-control-text", { key: '6e760651837835e11302b8c67a2df8fca1e8ed7e', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: 'e0e5e930cbe8d1004c9c042d11808cdfe249ec63', class: "col-12" }, h("form-control-text", { key: '804eddc192b2986da21e408c6ec4b0e5776cdc97', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '816709631875826395d2299c550aab269ebcc978', class: "col-12" }, h("form-control-text", { key: '51f9d36ac48eb9fd96e1174464c8626a5186f8fa', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: 'd6a218546863ca966ca29b6a25c7965133e03e9c', class: "col-12" }, h("form-control-select", { key: '09a02e39dd8fe8bd994f66e29c0c30e232a0fe62', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '171d7901a169a8a86dae6db50f85094d891a754e', class: "col-12" }, h("form-control-text", { key: '9c0654206e6e7a6f3e8ec1f6e91c856d56fb10f4', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
|
|
44
|
+
}
|
|
45
|
+
static get is() { return "justifi-billing-information-form"; }
|
|
46
|
+
static get encapsulation() { return "shadow"; }
|
|
47
|
+
static get states() {
|
|
48
|
+
return {
|
|
49
|
+
"formController": {},
|
|
50
|
+
"billingInfo": {},
|
|
51
|
+
"errors": {}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static get methods() {
|
|
55
|
+
return {
|
|
56
|
+
"getValues": {
|
|
57
|
+
"complexType": {
|
|
58
|
+
"signature": "() => Promise<BillingFormFields>",
|
|
59
|
+
"parameters": [],
|
|
60
|
+
"references": {
|
|
61
|
+
"Promise": {
|
|
62
|
+
"location": "global",
|
|
63
|
+
"id": "global::Promise"
|
|
64
|
+
},
|
|
65
|
+
"BillingFormFields": {
|
|
66
|
+
"location": "import",
|
|
67
|
+
"path": "./billing-form-schema",
|
|
68
|
+
"id": "src/components/modular-checkout/sub-components/billing-form-schema.ts::BillingFormFields"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"return": "Promise<BillingFormFields>"
|
|
72
|
+
},
|
|
73
|
+
"docs": {
|
|
74
|
+
"text": "",
|
|
75
|
+
"tags": []
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"validate": {
|
|
79
|
+
"complexType": {
|
|
80
|
+
"signature": "() => Promise<{ isValid: boolean; }>",
|
|
81
|
+
"parameters": [],
|
|
82
|
+
"references": {
|
|
83
|
+
"Promise": {
|
|
84
|
+
"location": "global",
|
|
85
|
+
"id": "global::Promise"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"return": "Promise<{ isValid: boolean; }>"
|
|
89
|
+
},
|
|
90
|
+
"docs": {
|
|
91
|
+
"text": "",
|
|
92
|
+
"tags": []
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Skeleton } from "../../../ui-components";
|
|
3
|
+
const CardFormSkeleton = (props) => {
|
|
4
|
+
const { isReady } = props;
|
|
5
|
+
if (isReady) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return (h("div", { class: "container-fluid p-0" }, h("div", { class: "mb-3" }, h(Skeleton, { height: "18px", width: "100px" }), h(Skeleton, { height: "36px" })), h("div", { class: "row" }, h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "80px" }), h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "30px" }), h(Skeleton, { height: "36px" })))));
|
|
9
|
+
};
|
|
10
|
+
export default CardFormSkeleton;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import CardFormSkeleton from "./card-form-skeleton";
|
|
3
|
+
import { StyledHost } from "../../../ui-components";
|
|
4
|
+
import JustifiAnalytics from "../../../api/Analytics";
|
|
5
|
+
import { checkPkgVersion } from "../../../utils/check-pkg-version";
|
|
6
|
+
import { configState, waitForConfig } from "../../config-provider/config-state";
|
|
7
|
+
export class JustifiCardForm {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.isReady = false;
|
|
10
|
+
}
|
|
11
|
+
async componentWillLoad() {
|
|
12
|
+
await waitForConfig();
|
|
13
|
+
this.iframeOrigin = configState.iframeOrigin;
|
|
14
|
+
checkPkgVersion();
|
|
15
|
+
this.analytics = new JustifiAnalytics(this);
|
|
16
|
+
}
|
|
17
|
+
componentDidRender() {
|
|
18
|
+
const elements = [
|
|
19
|
+
this.cardNumberIframeElement,
|
|
20
|
+
this.expirationMonthIframeElement,
|
|
21
|
+
this.expirationYearIframeElement,
|
|
22
|
+
this.cvvIframeElement,
|
|
23
|
+
];
|
|
24
|
+
Promise.all(elements.map((element) => {
|
|
25
|
+
return new Promise((resolve) => {
|
|
26
|
+
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
27
|
+
});
|
|
28
|
+
})).then(() => {
|
|
29
|
+
this.isReady = true;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
disconnectedCallback() {
|
|
33
|
+
var _a;
|
|
34
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
35
|
+
}
|
|
36
|
+
async validate() {
|
|
37
|
+
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
38
|
+
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
39
|
+
const expirationYearIsValid = await this.expirationYearIframeElement.validate();
|
|
40
|
+
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
41
|
+
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
42
|
+
}
|
|
43
|
+
async tokenize({ clientId, paymentMethodMetadata, account, }) {
|
|
44
|
+
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return (h(StyledHost, { key: '2c4ec015f537508bc875aaf6e3d527cd4f39eec6' }, h(CardFormSkeleton, { key: '064b3dab1b506c3332c753233b1893b36d36d42a', isReady: this.isReady }), h("hidden-input", { key: 'cb74f8ef5c6c437c3ff2c763b2b3f7a9f7732c13' }), h("div", { key: '7c688141ed3e96b032fc6f96a170cd4be09a65e5', class: "container-fluid p-0", style: {
|
|
48
|
+
opacity: this.isReady ? '1' : '0',
|
|
49
|
+
height: this.isReady ? 'auto' : '0',
|
|
50
|
+
} }, h("div", { key: '2722c8d805cc4767bf58cb70c5be4815e8bc09ee', class: "mb-3" }, h("iframe-input", { key: '428df22cc9075d737c5aec2520596ae774adde1e', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '292ae9746f3dd219ced19be33f6900fa00bfb4b1', class: "row" }, h("div", { key: '2e825c02e676a30e873f6f119aa6521e49ac7051', class: "col-4 align-content-end" }, h("iframe-input", { key: '4a9ddbf248fdabcc6da0fb405e95c906717a91ab', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: 'a500314664b746c6947107021e32d04790000865', class: "col-4 align-content-end" }, h("iframe-input", { key: '995c9294a85c8da8b9e314646c93c700a54e7310', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'b0a7d1f9df2a2fba165d3cae93b542da80cec77c', class: "col-4 align-content-end" }, h("iframe-input", { key: '3adfeccdfc31745b972bf7d040aaf0e5d55fbfb3', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
51
|
+
}
|
|
52
|
+
static get is() { return "justifi-card-form"; }
|
|
53
|
+
static get encapsulation() { return "shadow"; }
|
|
54
|
+
static get states() {
|
|
55
|
+
return {
|
|
56
|
+
"isReady": {},
|
|
57
|
+
"iframeOrigin": {}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
static get methods() {
|
|
61
|
+
return {
|
|
62
|
+
"validate": {
|
|
63
|
+
"complexType": {
|
|
64
|
+
"signature": "() => Promise<any>",
|
|
65
|
+
"parameters": [],
|
|
66
|
+
"references": {
|
|
67
|
+
"Promise": {
|
|
68
|
+
"location": "global",
|
|
69
|
+
"id": "global::Promise"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"return": "Promise<any>"
|
|
73
|
+
},
|
|
74
|
+
"docs": {
|
|
75
|
+
"text": "",
|
|
76
|
+
"tags": []
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"tokenize": {
|
|
80
|
+
"complexType": {
|
|
81
|
+
"signature": "({ clientId, paymentMethodMetadata, account, }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>",
|
|
82
|
+
"parameters": [{
|
|
83
|
+
"name": "__0",
|
|
84
|
+
"type": "{ clientId: string; paymentMethodMetadata: any; account?: string; }",
|
|
85
|
+
"docs": ""
|
|
86
|
+
}],
|
|
87
|
+
"references": {
|
|
88
|
+
"Promise": {
|
|
89
|
+
"location": "global",
|
|
90
|
+
"id": "global::Promise"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"return": "Promise<any>"
|
|
94
|
+
},
|
|
95
|
+
"docs": {
|
|
96
|
+
"text": "",
|
|
97
|
+
"tags": []
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { radioListItem } from "../../../styles/parts";
|
|
3
|
+
import { StyledHost } from "../../../ui-components";
|
|
4
|
+
export class PaymentMethodOption {
|
|
5
|
+
render() {
|
|
6
|
+
return (h(StyledHost, { key: 'bef445cfdd80c24e9b005f503cf4913ceac4eae8', class: "payment-method" }, h("div", { key: 'af292fe29e32858371b7a41fb3d1b983a33d4cc0', class: "radio-list-item p-3", part: radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, h("form-control-radio", { key: '7f3e0ea48a5a8d9b655e1f8609065b7de06386eb', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
|
|
7
|
+
}
|
|
8
|
+
static get is() { return "payment-method-option"; }
|
|
9
|
+
static get encapsulation() { return "shadow"; }
|
|
10
|
+
static get properties() {
|
|
11
|
+
return {
|
|
12
|
+
"paymentMethodOptionId": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"attribute": "payment-method-option-id",
|
|
15
|
+
"mutable": false,
|
|
16
|
+
"complexType": {
|
|
17
|
+
"original": "string",
|
|
18
|
+
"resolved": "string",
|
|
19
|
+
"references": {}
|
|
20
|
+
},
|
|
21
|
+
"required": false,
|
|
22
|
+
"optional": false,
|
|
23
|
+
"docs": {
|
|
24
|
+
"tags": [],
|
|
25
|
+
"text": ""
|
|
26
|
+
},
|
|
27
|
+
"getter": false,
|
|
28
|
+
"setter": false,
|
|
29
|
+
"reflect": false
|
|
30
|
+
},
|
|
31
|
+
"isSelected": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"attribute": "is-selected",
|
|
34
|
+
"mutable": false,
|
|
35
|
+
"complexType": {
|
|
36
|
+
"original": "boolean",
|
|
37
|
+
"resolved": "boolean",
|
|
38
|
+
"references": {}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": ""
|
|
45
|
+
},
|
|
46
|
+
"getter": false,
|
|
47
|
+
"setter": false,
|
|
48
|
+
"reflect": false
|
|
49
|
+
},
|
|
50
|
+
"clickHandler": {
|
|
51
|
+
"type": "unknown",
|
|
52
|
+
"attribute": "click-handler",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"complexType": {
|
|
55
|
+
"original": "(event: MouseEvent) => void",
|
|
56
|
+
"resolved": "(event: MouseEvent) => void",
|
|
57
|
+
"references": {
|
|
58
|
+
"MouseEvent": {
|
|
59
|
+
"location": "global",
|
|
60
|
+
"id": "global::MouseEvent"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": false,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"getter": false,
|
|
71
|
+
"setter": false
|
|
72
|
+
},
|
|
73
|
+
"radioButtonHidden": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"attribute": "radio-button-hidden",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "boolean",
|
|
79
|
+
"resolved": "boolean",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": false,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": ""
|
|
87
|
+
},
|
|
88
|
+
"getter": false,
|
|
89
|
+
"setter": false,
|
|
90
|
+
"reflect": false
|
|
91
|
+
},
|
|
92
|
+
"label": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"attribute": "label",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "string",
|
|
98
|
+
"resolved": "string",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": ""
|
|
106
|
+
},
|
|
107
|
+
"getter": false,
|
|
108
|
+
"setter": false,
|
|
109
|
+
"reflect": false
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { StyledHost } from "../../../ui-components";
|
|
3
|
+
import { numberOnlyHandler } from "../../../ui-components/form/utils";
|
|
4
|
+
import { FormController } from "../../../ui-components/form/form";
|
|
5
|
+
import { billingFormSchema } from "./billing-form-schema";
|
|
6
|
+
import { onChange } from "../../../store/checkout.store";
|
|
7
|
+
export class PostalCodeForm {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.errors = {};
|
|
10
|
+
this.inputHandler = (name, value) => {
|
|
11
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
connectedCallback() {
|
|
15
|
+
this.unsubscribe = onChange('billingFormFields', (newValue) => {
|
|
16
|
+
this.formController.setInitialValues(newValue);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
disconnectedCallback() {
|
|
20
|
+
var _a;
|
|
21
|
+
(_a = this.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
22
|
+
}
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
this.formController = new FormController(billingFormSchema(true));
|
|
25
|
+
}
|
|
26
|
+
componentDidLoad() {
|
|
27
|
+
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
28
|
+
this.formController.errors.subscribe(errors => {
|
|
29
|
+
this.errors = Object.assign({}, errors);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
async getValues() {
|
|
33
|
+
return this.formController.values.getValue();
|
|
34
|
+
}
|
|
35
|
+
async fill(fields) {
|
|
36
|
+
this.formController.setInitialValues(fields);
|
|
37
|
+
}
|
|
38
|
+
async validate() {
|
|
39
|
+
let isValid = await this.formController.validate();
|
|
40
|
+
return { isValid: isValid };
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
44
|
+
return (h(StyledHost, { key: 'bc2746672b9bcb986f658f69c53ded47f78165e2' }, h("form", { key: '9a2642233487802aa55c0a0a548f277e252517d3' }, h("form-control-text", { key: 'ff3f4e10ebe6a278bbe0671691128a058e8ada8b', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))));
|
|
45
|
+
}
|
|
46
|
+
static get is() { return "justifi-postal-code-form"; }
|
|
47
|
+
static get encapsulation() { return "shadow"; }
|
|
48
|
+
static get states() {
|
|
49
|
+
return {
|
|
50
|
+
"formController": {},
|
|
51
|
+
"billingInfo": {},
|
|
52
|
+
"errors": {}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get methods() {
|
|
56
|
+
return {
|
|
57
|
+
"getValues": {
|
|
58
|
+
"complexType": {
|
|
59
|
+
"signature": "() => Promise<BillingFormFields>",
|
|
60
|
+
"parameters": [],
|
|
61
|
+
"references": {
|
|
62
|
+
"Promise": {
|
|
63
|
+
"location": "global",
|
|
64
|
+
"id": "global::Promise"
|
|
65
|
+
},
|
|
66
|
+
"BillingFormFields": {
|
|
67
|
+
"location": "import",
|
|
68
|
+
"path": "./billing-form-schema",
|
|
69
|
+
"id": "src/components/modular-checkout/sub-components/billing-form-schema.ts::BillingFormFields"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"return": "Promise<BillingFormFields>"
|
|
73
|
+
},
|
|
74
|
+
"docs": {
|
|
75
|
+
"text": "",
|
|
76
|
+
"tags": []
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"fill": {
|
|
80
|
+
"complexType": {
|
|
81
|
+
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
82
|
+
"parameters": [{
|
|
83
|
+
"name": "fields",
|
|
84
|
+
"type": "BillingFormFields",
|
|
85
|
+
"docs": ""
|
|
86
|
+
}],
|
|
87
|
+
"references": {
|
|
88
|
+
"Promise": {
|
|
89
|
+
"location": "global",
|
|
90
|
+
"id": "global::Promise"
|
|
91
|
+
},
|
|
92
|
+
"BillingFormFields": {
|
|
93
|
+
"location": "import",
|
|
94
|
+
"path": "./billing-form-schema",
|
|
95
|
+
"id": "src/components/modular-checkout/sub-components/billing-form-schema.ts::BillingFormFields"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"return": "Promise<void>"
|
|
99
|
+
},
|
|
100
|
+
"docs": {
|
|
101
|
+
"text": "",
|
|
102
|
+
"tags": []
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"validate": {
|
|
106
|
+
"complexType": {
|
|
107
|
+
"signature": "() => Promise<{ isValid: boolean; }>",
|
|
108
|
+
"parameters": [],
|
|
109
|
+
"references": {
|
|
110
|
+
"Promise": {
|
|
111
|
+
"location": "global",
|
|
112
|
+
"id": "global::Promise"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"return": "Promise<{ isValid: boolean; }>"
|
|
116
|
+
},
|
|
117
|
+
"docs": {
|
|
118
|
+
"text": "",
|
|
119
|
+
"tags": []
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { StyledHost } from "../../../ui-components";
|
|
3
|
+
import { checkoutStore } from "../../../store/checkout.store";
|
|
4
|
+
import { radioListItem } from "../../../styles/parts";
|
|
5
|
+
import { CardBrandLabels } from "../../checkout/payment-method-option-utils";
|
|
6
|
+
export class SavedPaymentMethods {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.onPaymentMethodOptionClick = (paymentMethodId) => (e) => {
|
|
9
|
+
e.preventDefault();
|
|
10
|
+
checkoutStore.selectedPaymentMethod = paymentMethodId;
|
|
11
|
+
};
|
|
12
|
+
this.isAllowedPaymentMethod = (paymentMethod) => {
|
|
13
|
+
if (paymentMethod.type === 'card' && checkoutStore.disableCreditCard) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (paymentMethod.type === 'bank_account' && checkoutStore.disableBankAccount) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
return true;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
componentWillLoad() {
|
|
23
|
+
if (!checkoutStore.paymentMethods.length) {
|
|
24
|
+
console.warn('No saved payment methods available.');
|
|
25
|
+
}
|
|
26
|
+
if (checkoutStore.disablePaymentMethodGroup) {
|
|
27
|
+
console.warn('Payment method group is disabled.');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
if (checkoutStore.disablePaymentMethodGroup) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return (h(StyledHost, null, h("div", { class: "saved-payment-methods" }, checkoutStore.paymentMethods.length ? checkoutStore.paymentMethods
|
|
35
|
+
.filter(this.isAllowedPaymentMethod)
|
|
36
|
+
.map((paymentMethod) => (h("div", { class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) }, h("form-control-radio", { name: "paymentMethodType", value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id, checked: checkoutStore.selectedPaymentMethod === (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id), label: `${CardBrandLabels[paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.brand] || ''} *${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.acct_last_four}` })))) : null)));
|
|
37
|
+
}
|
|
38
|
+
static get is() { return "justifi-saved-payment-methods"; }
|
|
39
|
+
static get encapsulation() { return "shadow"; }
|
|
40
|
+
}
|