@justifi/webcomponents 5.7.4 → 5.7.6-rc-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-BTdkb3Zh.js → Api-c8NBCwu4.js} +1 -1
- package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
- package/dist/cjs/{Refund-BFE-2OxN.js → Refund-Dt1CMUjx.js} +114 -8
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-sO_Hcamo.js → badge-DDksduwk.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +9 -10
- package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business.service-DNvLrr-n.js → business.service-W2PRAU9J.js} +3 -4
- package/dist/cjs/{button-CCZd8WSY.js → button-0HYMPryx.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +71 -0
- package/dist/cjs/{check-pkg-version-BlUxyRaM.js → check-pkg-version-Dn-3Aibs.js} +4 -5
- package/dist/cjs/{checkout.service-Bx0RBq-I.js → checkout.service-XwOh98gt.js} +3 -4
- package/dist/cjs/checkout.store--pVCO0L1.js +37 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -12
- package/dist/cjs/{checkouts-list-params-state-fVsfZZ5G.js → checkouts-list-params-state-DZUKBmLC.js} +1 -1
- package/dist/cjs/{checkouts-table-C1Jv_A7m.js → checkouts-table-CrpOOe_e.js} +2 -2
- package/dist/cjs/{config-state-BTfJl-LU.js → config-state-Dz9bnWHg.js} +1 -1
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +3 -123
- package/dist/cjs/{dispute.service-DbUcp4sD.js → dispute.service-Dh82Wru1.js} +3 -4
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-DPDsFdAT.js → form-control-error-text-CVPYL0lE.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-CT5HzEnX.js → form-control-help-text-B3jRgfoa.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- 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-C7Ezks0M.js → get-payment-details-W4PgTPkL.js} +4 -5
- package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
- package/dist/cjs/{get-subaccounts-UpfFbDHH.js → get-subaccounts-D4woaGSs.js} +5 -6
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +28 -9
- package/dist/cjs/{header-1--wdCXxjA.js → header-1-M-mc3bsa.js} +1 -1
- package/dist/cjs/{header-3-DxUQJ7TT.js → header-3-BnKbOjvz.js} +1 -1
- package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +112 -15
- package/dist/cjs/{index-DEMVrrsF.js → index-BCtVWU61.js} +1 -1
- package/dist/cjs/{index-2GwnTbNA.js → index-D5bL1DOi.js} +17 -7
- package/dist/cjs/{insurance-state-BmAF1Sef.js → insurance-state-BsGy_svD.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +9 -9
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +10 -11
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +13 -16
- 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 +12 -13
- package/dist/cjs/justifi-business-form.cjs.entry.js +15 -16
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-button_5.cjs.entry.js +322 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +84 -99
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +14 -15
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +16 -17
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +11 -12
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +16 -17
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -11
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +15 -16
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +12 -13
- package/dist/cjs/justifi-payment-method-options.cjs.entry.js +76 -0
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +15 -16
- package/dist/cjs/justifi-payout-details.cjs.entry.js +12 -13
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +17 -18
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +14 -15
- 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 +7 -7
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -20
- package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +9 -10
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +13 -14
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -9
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -16
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +18 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-v-c3ZR5a.js → package-ClqzRJoK.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
- 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-CVZgDrZw.js → payment.service-BrvtS3F7.js} +3 -4
- package/dist/cjs/payments-list-core.cjs.entry.js +12 -13
- package/dist/cjs/{payments-list-params-state-fVsfZZ5G.js → payments-list-params-state-DZUKBmLC.js} +1 -1
- package/dist/cjs/{payments-status-DPqU5v9h.js → payments-status-DG50GuXR.js} +2 -2
- package/dist/cjs/{payments-table-BM3AoAJf.js → payments-table-BqxFc71K.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
- package/dist/cjs/{payout.service-D6kmeDsy.js → payout.service-DNH6gRrP.js} +3 -4
- package/dist/cjs/payouts-list-core.cjs.entry.js +12 -13
- package/dist/cjs/{payouts-list-params-state-fVsfZZ5G.js → payouts-list-params-state-DZUKBmLC.js} +1 -1
- package/dist/cjs/{payouts-status-CU8aqIhH.js → payouts-status-meuI7eBr.js} +2 -2
- package/dist/cjs/{payouts-table-1HL4kk9B.js → payouts-table-iT2IauEa.js} +2 -2
- package/dist/cjs/{skeleton-ByLavxr1.js → skeleton-CbZBGO47.js} +1 -1
- package/dist/cjs/{spinner-DOC4Ab7M.js → spinner-CIZFX7bz.js} +1 -1
- package/dist/cjs/{styled-host-IMxk64cc.js → styled-host-DXNHOiqW.js} +1 -1
- package/dist/cjs/{table-BgQP2M2-.js → table-CxvETNS1.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +11 -12
- package/dist/cjs/{terminal-orders-list-params-state-fVsfZZ5G.js → terminal-orders-list-params-state-DZUKBmLC.js} +1 -1
- package/dist/cjs/{terminal-orders-table-CUOWHQ6V.js → terminal-orders-table-xi_a-EnM.js} +5 -6
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-BxRchD7X.js → terminal.service-CdzmTRQE.js} +3 -4
- package/dist/cjs/terminals-list-core.cjs.entry.js +11 -12
- package/dist/cjs/terminals-list-params-state-DZUKBmLC.js +22 -0
- package/dist/cjs/{terminals-table-yRGsrfBw.js → terminals-table-sf-s5v6D.js} +2 -2
- package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
- package/dist/cjs/{utils-bn0fXuc-.js → utils-wkdkLmDI.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- 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/DisputeEvidenceDocument.js +4 -7
- package/dist/collection/api/Document.js +17 -8
- package/dist/collection/api/PaymentMethod.js +1 -0
- package/dist/collection/collection-manifest.json +14 -4
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +2 -1
- 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 +337 -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 +1676 -873
- package/dist/esm/{Api-BNYhCiE2.js → Api-C3T8XYbb.js} +2 -2
- 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-DDIEc_gu.js → Refund-0aZtuMmz.js} +115 -10
- package/dist/esm/additional-questions-details_5.entry.js +4 -4
- package/dist/esm/{badge-C-nwyQ3h.js → badge-Dr7gkD2I.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -13
- package/dist/esm/bank-account-form.entry.js +61 -0
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-DP2HUV0w.js → business.service-C5vrjgZf.js} +4 -5
- package/dist/esm/{button-BGlG9iX5.js → button-xfPDSpPt.js} +2 -2
- package/dist/esm/card-form.entry.js +69 -0
- package/dist/esm/{check-pkg-version-Dff5h73V.js → check-pkg-version-DZCwpP0g.js} +5 -6
- package/dist/esm/{checkout.service-DkTEFCSZ.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 +14 -15
- package/dist/esm/{checkouts-list-params-state-DhPyCV-V.js → checkouts-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{checkouts-table-rhDm-zAB.js → checkouts-table-BHhaS5bv.js} +4 -4
- package/dist/esm/{config-state-BjXhUj2q.js → config-state-B3mtRA6f.js} +1 -1
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -121
- package/dist/esm/{dispute.service-CUcw-v4N.js → dispute.service-C3bmfjsZ.js} +4 -5
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-CwJc1ShT.js → form-control-error-text-Cn0aPzHx.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-COx__-BM.js → form-control-help-text-C91TeHXs.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +7 -7
- package/dist/esm/form-control-number-masked_2.entry.js +5 -5
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- 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-Ea6HDOQH.js → get-payment-details-BdPvFl1W.js} +6 -7
- package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
- package/dist/esm/{get-subaccounts-DcHphsRK.js → get-subaccounts-BqqR44dV.js} +7 -8
- package/dist/esm/gross-payment-chart-core.entry.js +30 -11
- package/dist/esm/{header-1-Dj4_I_9S.js → header-1-noRVFQY9.js} +2 -2
- package/dist/esm/{header-3-CLoMDfp0.js → header-3-Bsi4loU1.js} +2 -2
- package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
- package/dist/esm/{index-Cf8VXyXg.js → index-BAq5IUBW.js} +1 -1
- package/dist/esm/{index-Bta_r52Z.js → index-N3w5zrz2.js} +17 -7
- package/dist/esm/{insurance-state-CUJP_TDB.js → insurance-state-pL8MRpxn.js} +4 -4
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -12
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +13 -14
- package/dist/esm/justifi-additional-statement_8.entry.js +14 -17
- 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 +15 -16
- package/dist/esm/justifi-business-form.entry.js +18 -19
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-button_5.entry.js +316 -0
- package/dist/esm/justifi-checkout.entry.js +85 -100
- package/dist/esm/justifi-checkouts-list-filters.entry.js +11 -12
- package/dist/esm/justifi-checkouts-list.entry.js +18 -19
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +13 -14
- package/dist/esm/justifi-dispute-notification_3.entry.js +19 -20
- package/dist/esm/justifi-gross-payment-chart.entry.js +13 -14
- package/dist/esm/justifi-new-payment-method.entry.js +97 -0
- package/dist/esm/justifi-order-terminals.entry.js +18 -19
- package/dist/esm/justifi-owner-form_3.entry.js +13 -14
- package/dist/esm/justifi-payment-details.entry.js +15 -16
- package/dist/esm/justifi-payment-method-options.entry.js +74 -0
- package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +13 -14
- package/dist/esm/justifi-payment-transactions-list.entry.js +17 -18
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +18 -19
- package/dist/esm/justifi-payout-details.entry.js +15 -16
- package/dist/esm/justifi-payout-transactions-list.entry.js +17 -18
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +20 -21
- package/dist/esm/justifi-refund-payment.entry.js +17 -18
- 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 +9 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -22
- package/dist/esm/justifi-skeleton.entry.js +15 -0
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +12 -13
- package/dist/esm/justifi-terminal-orders-list.entry.js +16 -17
- package/dist/esm/justifi-terminals-list-filters.entry.js +11 -12
- package/dist/esm/justifi-terminals-list.entry.js +18 -19
- package/dist/esm/justifi-tokenize-payment-method.entry.js +21 -15
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-DzXsHdKv.js → package-BWmYRnrR.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-BrLVc_85.js → parts-D3G5aVLy.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -16
- 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-BBse35Bb.js → payment.service-CnQdP32J.js} +4 -5
- package/dist/esm/payments-list-core.entry.js +15 -16
- package/dist/esm/{payments-list-params-state-DhPyCV-V.js → payments-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{payments-status-CO0mZyxH.js → payments-status-DUM0WZkk.js} +2 -2
- package/dist/esm/{payments-table-BYmcN_eJ.js → payments-table-DVQzx7MJ.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -12
- package/dist/esm/{payout.service-DYk7xoLp.js → payout.service-EJuPNpfs.js} +4 -5
- package/dist/esm/payouts-list-core.entry.js +15 -16
- package/dist/esm/{payouts-list-params-state-DhPyCV-V.js → payouts-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{payouts-status-BqhlFWZJ.js → payouts-status-7saoFNoA.js} +2 -2
- package/dist/esm/{payouts-table-BoNMXUDt.js → payouts-table-dca-F2iQ.js} +4 -4
- package/dist/esm/{skeleton-D6agoQ_l.js → skeleton-C1-JoGFC.js} +2 -2
- package/dist/esm/{spinner-C8twYXzL.js → spinner-Ca9uu5Nd.js} +2 -2
- package/dist/esm/{styled-host-BSX_LSdk.js → styled-host-DtvbNFVU.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/{table-BzdzS7PI.js → table-fsCYq8m9.js} +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +14 -15
- package/dist/esm/{terminal-orders-list-params-state-DhPyCV-V.js → terminal-orders-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{terminal-orders-table-BxZFOqli.js → terminal-orders-table-BNasCnjz.js} +8 -9
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-WIpzxBkU.js → terminal.service-Cfacmeto.js} +4 -5
- package/dist/esm/terminals-list-core.entry.js +14 -15
- package/dist/esm/terminals-list-params-state-DFWVMJRJ.js +16 -0
- package/dist/esm/{terminals-table-DVreYpwc.js → terminals-table-DBk-eg_3.js} +4 -4
- 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-DGozGJLI.js → utils-CNwvOLkk.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/{check-pkg-version.js → Analytics.js} +22 -23
- package/dist/module/Payment.js +1 -1
- package/dist/module/Refund.js +136 -9
- 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 +4 -4
- 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/file-input-handler.js +4 -7
- 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 +25 -6
- 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 +278 -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/DisputeEvidenceDocument.d.ts +1 -1
- package/dist/types/api/Document.d.ts +2 -2
- 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 +31 -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 +290 -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-7a254093.entry.js → p-0890869b.entry.js} +6 -6
- package/dist/webcomponents/p-09c24135.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-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-DmLTJr3R.js → p-1adN6FVa.js} +1 -1
- package/dist/webcomponents/p-1bddf354.entry.js +1 -0
- package/dist/webcomponents/p-26bf2fda.entry.js +1 -0
- package/dist/webcomponents/p-2b154f45.entry.js +1 -0
- package/dist/webcomponents/p-2d3949f7.entry.js +1 -0
- package/dist/webcomponents/{p-9be5b03a.entry.js → p-2f482f5b.entry.js} +1 -1
- package/dist/webcomponents/{p-3ddaea2d.entry.js → p-326f4860.entry.js} +1 -1
- package/dist/webcomponents/p-33936fa9.entry.js +1 -0
- package/dist/webcomponents/p-359b8f54.entry.js +1 -0
- package/dist/webcomponents/p-37aeeeee.entry.js +1 -0
- package/dist/webcomponents/p-40da517f.entry.js +1 -0
- package/dist/webcomponents/p-4887bcb3.entry.js +1 -0
- package/dist/webcomponents/p-4d23e69a.entry.js +1 -0
- package/dist/webcomponents/p-4f744286.entry.js +1 -0
- package/dist/webcomponents/{p-ded52cad.entry.js → p-50bfec55.entry.js} +1 -1
- package/dist/webcomponents/p-54406229.entry.js +1 -0
- package/dist/webcomponents/p-5d145701.entry.js +1 -0
- package/dist/webcomponents/p-5d84207a.entry.js +1 -0
- package/dist/webcomponents/p-5e813b93.entry.js +1 -0
- package/dist/webcomponents/p-64e9570d.entry.js +1 -0
- package/dist/webcomponents/{p-d144c5e5.entry.js → p-683630d0.entry.js} +1 -1
- package/dist/webcomponents/p-6bd83369.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-771cc1c2.entry.js +1 -0
- package/dist/webcomponents/{p-0c13f2da.entry.js → p-7a8a06d6.entry.js} +1 -1
- package/dist/webcomponents/p-7c456c10.entry.js +1 -0
- package/dist/webcomponents/{p-454d5cab.entry.js → p-7d2de2d4.entry.js} +1 -1
- package/dist/webcomponents/{p-27a7ba0d.entry.js → p-7e9832b3.entry.js} +1 -1
- package/dist/webcomponents/p-810cad17.entry.js +1 -0
- package/dist/webcomponents/p-831f3ba3.entry.js +1 -0
- package/dist/webcomponents/{p-1d59c747.entry.js → p-84df9f26.entry.js} +1 -1
- package/dist/webcomponents/p-8590d6f2.entry.js +1 -0
- package/dist/webcomponents/p-86c28849.entry.js +1 -0
- package/dist/webcomponents/p-8bfc5384.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-99f03f4b.entry.js +1 -0
- package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
- package/dist/webcomponents/p-9b0417b5.entry.js +1 -0
- 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-BSW9VS7r.js +1 -0
- package/dist/webcomponents/p-BSexQ2qc.js +1 -0
- package/dist/webcomponents/p-BWmYRnrR.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-BqK0rIZQ.js +1 -0
- 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-CKRDBISo.js +1 -0
- package/dist/webcomponents/p-CMNxLEJP.js +1 -0
- package/dist/webcomponents/p-CXLazxt0.js +1 -0
- package/dist/webcomponents/p-CZItg0Yo.js +1 -0
- package/dist/webcomponents/{p-CBs671Ol.js → p-CfBKn_Vl.js} +1 -1
- package/dist/webcomponents/p-Cjf9yu8r.js +1 -0
- package/dist/webcomponents/p-CuHQZh6C.js +1 -0
- package/dist/webcomponents/p-Cwt_9Jzb.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-DOb1iL29.js → p-DAVX1-sW.js} +1 -1
- package/dist/webcomponents/{p-CgSKeuxa.js → p-DAoffYFW.js} +1 -1
- package/dist/webcomponents/{p-C-78OQ89.js → p-DDpc1huF.js} +1 -1
- package/dist/webcomponents/{p-BjDSEZvx.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-DUqRxn4Y.js +1 -0
- package/dist/webcomponents/p-DbcOhajT.js +1 -0
- package/dist/webcomponents/{p-D3BIZZrc.js → p-Dcbfnfn2.js} +1 -1
- package/dist/webcomponents/{p-CEqUppok.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-N3w5zrz2.js +2 -0
- package/dist/webcomponents/p-NqdaxjDT.js +1 -0
- package/dist/webcomponents/p-a05062d8.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-ab55ba10.entry.js +1 -0
- package/dist/webcomponents/p-ad78a564.entry.js +1 -0
- package/dist/webcomponents/p-ad99a022.entry.js +1 -0
- package/dist/webcomponents/p-b193bf46.entry.js +1 -0
- package/dist/webcomponents/p-c851fc9e.entry.js +1 -0
- package/dist/webcomponents/{p-a7f5262a.entry.js → p-cb7c712f.entry.js} +1 -1
- package/dist/webcomponents/{p-9e7c8e33.entry.js → p-d3f438ca.entry.js} +1 -1
- package/dist/webcomponents/p-d59aabe1.entry.js +1 -0
- package/dist/webcomponents/p-d6602c92.entry.js +1 -0
- package/dist/webcomponents/p-d7f62287.entry.js +1 -0
- package/dist/webcomponents/p-ddc9fc4f.entry.js +1 -0
- package/dist/webcomponents/p-e151b970.entry.js +1 -0
- package/dist/webcomponents/{p-ba7c7025.entry.js → p-e48a2d25.entry.js} +1 -1
- package/dist/webcomponents/p-e8c3ea67.entry.js +1 -0
- package/dist/webcomponents/p-eba620cd.entry.js +1 -0
- package/dist/webcomponents/p-ecdda6e6.entry.js +1 -0
- package/dist/webcomponents/p-f5d12ae3.entry.js +1 -0
- package/dist/webcomponents/{p-BC1KMlPG.js → p-fUv1jFAw.js} +1 -1
- package/dist/webcomponents/p-m2jmX-Hz.js +1 -0
- package/dist/webcomponents/{p-BEDtXmpq.js → p-o5iASgog.js} +1 -1
- package/dist/webcomponents/p-pGzabKc7.js +1 -0
- package/dist/webcomponents/p-sT4o5vru.js +1 -0
- package/dist/webcomponents/p-w128-0Mj.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-BJ9xnomM.js +0 -26
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -142
- package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +0 -22
- 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-CfSmDqfA.js +0 -23
- package/dist/esm/justifi-checkout-core.entry.js +0 -140
- package/dist/esm/terminals-list-params-state-DhPyCV-V.js +0 -16
- 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--B09FkmB.js +0 -1
- package/dist/webcomponents/p-08b3ec57.entry.js +0 -1
- package/dist/webcomponents/p-0b28597b.entry.js +0 -1
- package/dist/webcomponents/p-0b52d1dd.entry.js +0 -1
- package/dist/webcomponents/p-0b964616.entry.js +0 -1
- package/dist/webcomponents/p-186a25e3.entry.js +0 -1
- package/dist/webcomponents/p-234c0b0a.entry.js +0 -1
- package/dist/webcomponents/p-297b4a1a.entry.js +0 -1
- package/dist/webcomponents/p-299c215b.entry.js +0 -1
- package/dist/webcomponents/p-2GKzt6ql.js +0 -1
- package/dist/webcomponents/p-39236b05.entry.js +0 -1
- package/dist/webcomponents/p-3af7b1ee.entry.js +0 -1
- package/dist/webcomponents/p-41ce682a.entry.js +0 -1
- package/dist/webcomponents/p-4bf6f767.entry.js +0 -1
- package/dist/webcomponents/p-59a2ccdb.entry.js +0 -1
- package/dist/webcomponents/p-68425065.entry.js +0 -1
- package/dist/webcomponents/p-69e8b394.entry.js +0 -1
- package/dist/webcomponents/p-6ab28931.entry.js +0 -1
- package/dist/webcomponents/p-6f08cc3e.entry.js +0 -1
- package/dist/webcomponents/p-74412d52.entry.js +0 -1
- package/dist/webcomponents/p-77957f7f.entry.js +0 -1
- package/dist/webcomponents/p-7db9f780.entry.js +0 -1
- package/dist/webcomponents/p-7fbdaa8a.entry.js +0 -1
- package/dist/webcomponents/p-86112ed3.entry.js +0 -1
- package/dist/webcomponents/p-863d53ef.entry.js +0 -1
- package/dist/webcomponents/p-8a62bc7a.entry.js +0 -1
- package/dist/webcomponents/p-8b02e43a.entry.js +0 -1
- package/dist/webcomponents/p-8f354461.entry.js +0 -1
- package/dist/webcomponents/p-90d36a2f.entry.js +0 -1
- package/dist/webcomponents/p-959d5f08.entry.js +0 -1
- package/dist/webcomponents/p-972531a2.entry.js +0 -1
- package/dist/webcomponents/p-99ff608b.entry.js +0 -1
- package/dist/webcomponents/p-9bb3ccba.entry.js +0 -1
- package/dist/webcomponents/p-9ef53bb1.entry.js +0 -1
- package/dist/webcomponents/p-AW4YV_IW.js +0 -1
- package/dist/webcomponents/p-B2ts3XP0.js +0 -1
- package/dist/webcomponents/p-BBEApkWm.js +0 -1
- package/dist/webcomponents/p-BERbc4aX.js +0 -1
- package/dist/webcomponents/p-BLm_qZkx.js +0 -1
- package/dist/webcomponents/p-BoGb-Wsw.js +0 -1
- package/dist/webcomponents/p-Bta_r52Z.js +0 -2
- package/dist/webcomponents/p-C26QVwoo.js +0 -1
- package/dist/webcomponents/p-C5RuuShs.js +0 -1
- package/dist/webcomponents/p-C6qAZgXn.js +0 -1
- package/dist/webcomponents/p-CDTncSrX.js +0 -1
- package/dist/webcomponents/p-CNv7zeGM.js +0 -1
- package/dist/webcomponents/p-CU_goaUQ.js +0 -1
- package/dist/webcomponents/p-CbGBEkk3.js +0 -1
- package/dist/webcomponents/p-Co9WxzRf.js +0 -1
- package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
- package/dist/webcomponents/p-DPUXZApk.js +0 -1
- package/dist/webcomponents/p-DbhOyu_u.js +0 -1
- package/dist/webcomponents/p-DcwpS5VC.js +0 -1
- package/dist/webcomponents/p-DgPQlpzy.js +0 -1
- package/dist/webcomponents/p-DnX5CZFd.js +0 -1
- package/dist/webcomponents/p-DniQ6yo6.js +0 -1
- package/dist/webcomponents/p-DzFysjCc.js +0 -1
- package/dist/webcomponents/p-DzXsHdKv.js +0 -1
- package/dist/webcomponents/p-EVfmZi89.js +0 -1
- package/dist/webcomponents/p-SdntD1xf.js +0 -1
- package/dist/webcomponents/p-UyFPa3Jb.js +0 -1
- package/dist/webcomponents/p-a1860b96.entry.js +0 -1
- package/dist/webcomponents/p-ae62bc55.entry.js +0 -1
- package/dist/webcomponents/p-am93SGf-.js +0 -1
- package/dist/webcomponents/p-b2086753.entry.js +0 -1
- package/dist/webcomponents/p-b3de3312.entry.js +0 -1
- package/dist/webcomponents/p-b4da0e31.entry.js +0 -1
- package/dist/webcomponents/p-bd387500.entry.js +0 -1
- package/dist/webcomponents/p-c3b8c25f.entry.js +0 -1
- package/dist/webcomponents/p-c5f3f2cc.entry.js +0 -1
- package/dist/webcomponents/p-c60219ba.entry.js +0 -1
- package/dist/webcomponents/p-caa90e8c.entry.js +0 -1
- package/dist/webcomponents/p-d44c7900.entry.js +0 -1
- package/dist/webcomponents/p-df044e50.entry.js +0 -1
- package/dist/webcomponents/p-e0c8e41a.entry.js +0 -1
- package/dist/webcomponents/p-e8a1dbe2.entry.js +0 -1
- package/dist/webcomponents/p-ef930355.entry.js +0 -1
- package/dist/webcomponents/p-f4aa30b8.entry.js +0 -1
- package/dist/webcomponents/p-f7c23a96.entry.js +0 -1
- package/dist/webcomponents/p-f9510372.entry.js +0 -1
- package/dist/webcomponents/p-fe8938ba.entry.js +0 -1
- package/dist/webcomponents/p-iPHDHB_q.js +0 -1
- package/dist/webcomponents/p-lfLAtTgJ.js +0 -1
- package/dist/webcomponents/p-n0Sbmvzb.js +0 -1
- package/dist/webcomponents/p-oE-E7kjN.js +0 -1
- package/dist/webcomponents/p-uLUlLQpP.js +0 -1
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-2GwnTbNA.js');
|
|
4
|
-
var utils = require('./utils-qOon0GWm.js');
|
|
5
|
-
var Checkout = require('./Checkout-TZnRz3-3.js');
|
|
6
|
-
var ComponentError = require('./ComponentError-C4MdBBMe.js');
|
|
7
|
-
var insuranceState = require('./insurance-state-BmAF1Sef.js');
|
|
8
|
-
var button = require('./button-CCZd8WSY.js');
|
|
9
|
-
var styledHost = require('./styled-host-IMxk64cc.js');
|
|
10
|
-
var skeleton = require('./skeleton-ByLavxr1.js');
|
|
11
|
-
var parts = require('./parts-9jMf1erK.js');
|
|
12
|
-
var header3 = require('./header-3-DxUQJ7TT.js');
|
|
13
|
-
require('./event-types-YOY5TKUN.js');
|
|
14
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
15
|
-
require('./index-DEMVrrsF.js');
|
|
16
|
-
|
|
17
|
-
const CheckoutCore = class {
|
|
18
|
-
constructor(hostRef) {
|
|
19
|
-
index.registerInstance(this, hostRef);
|
|
20
|
-
this.submitEvent = index.createEvent(this, "submit-event");
|
|
21
|
-
this.errorEvent = index.createEvent(this, "error-event");
|
|
22
|
-
this.loaded = index.createEvent(this, "loaded");
|
|
23
|
-
this.hasLoadedFonts = false;
|
|
24
|
-
this.renderState = 'loading';
|
|
25
|
-
this.creatingNewPaymentMethod = false;
|
|
26
|
-
this.insuranceToggled = false;
|
|
27
|
-
this.completeCheckout = async (payment) => {
|
|
28
|
-
this.complete({
|
|
29
|
-
payment,
|
|
30
|
-
onSuccess: this.onSubmitted,
|
|
31
|
-
onError: this.onError,
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
this.onSubmitted = (response) => {
|
|
35
|
-
this.submitEvent.emit({ response: response });
|
|
36
|
-
this.renderState = 'success';
|
|
37
|
-
};
|
|
38
|
-
this.onError = ({ error, code, severity }) => {
|
|
39
|
-
this.serverError = error;
|
|
40
|
-
this.errorEvent.emit({
|
|
41
|
-
errorCode: code,
|
|
42
|
-
message: error,
|
|
43
|
-
severity,
|
|
44
|
-
});
|
|
45
|
-
this.renderState = 'error';
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
async fillBillingForm(fields) {
|
|
49
|
-
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
50
|
-
}
|
|
51
|
-
async validate() {
|
|
52
|
-
const insuranceValidation = insuranceState.validateInsuranceValues();
|
|
53
|
-
const { isValid } = await this.paymentMethodOptionsRef.validate();
|
|
54
|
-
if (!insuranceValidation.isValid || !isValid) {
|
|
55
|
-
return { isValid: false };
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return { isValid: true };
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
componentWillLoad() {
|
|
62
|
-
if (this.getCheckout) {
|
|
63
|
-
this.fetchData();
|
|
64
|
-
// Refresh the checkout data when insurance is added or removed
|
|
65
|
-
insuranceState.insuranceValuesOn('set', (key) => {
|
|
66
|
-
const value = insuranceState.insuranceValues[key];
|
|
67
|
-
if (value !== undefined) {
|
|
68
|
-
this.insuranceToggled = value;
|
|
69
|
-
this.fetchData();
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
fetchData() {
|
|
75
|
-
this.renderState = 'loading';
|
|
76
|
-
this.getCheckout({
|
|
77
|
-
onSuccess: ({ checkout }) => {
|
|
78
|
-
this.checkout = new Checkout.Checkout(checkout);
|
|
79
|
-
const { status } = this.checkout;
|
|
80
|
-
this.loaded.emit({ checkout_status: status });
|
|
81
|
-
this.renderState = 'success';
|
|
82
|
-
},
|
|
83
|
-
onError: ({ error, code, severity }) => {
|
|
84
|
-
this.serverError = error;
|
|
85
|
-
this.renderState = 'error';
|
|
86
|
-
this.errorEvent.emit({
|
|
87
|
-
errorCode: code,
|
|
88
|
-
message: error,
|
|
89
|
-
severity,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
;
|
|
95
|
-
async submit(event) {
|
|
96
|
-
var _a;
|
|
97
|
-
event.preventDefault();
|
|
98
|
-
this.renderState = 'loading';
|
|
99
|
-
const insuranceValidation = insuranceState.validateInsuranceValues();
|
|
100
|
-
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod(insuranceValidation);
|
|
101
|
-
if (payload.validationError) {
|
|
102
|
-
this.renderState = 'error';
|
|
103
|
-
}
|
|
104
|
-
else if (payload.error) {
|
|
105
|
-
this.renderState = 'error';
|
|
106
|
-
this.serverError = payload.error.message;
|
|
107
|
-
this.onError({
|
|
108
|
-
code: payload.error.code,
|
|
109
|
-
error: payload.error.message,
|
|
110
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
else if (payload.token) {
|
|
114
|
-
this.completeCheckout({ payment_mode: 'ecom', payment_token: payload.token });
|
|
115
|
-
}
|
|
116
|
-
else if (((_a = payload.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
117
|
-
this.completeCheckout({ payment_mode: 'bnpl' });
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
this.renderState = 'error';
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
get isLoading() {
|
|
124
|
-
return this.renderState === 'loading';
|
|
125
|
-
}
|
|
126
|
-
get isError() {
|
|
127
|
-
return this.renderState === 'error';
|
|
128
|
-
}
|
|
129
|
-
get paymentType() {
|
|
130
|
-
var _a, _b, _c, _d, _e;
|
|
131
|
-
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h(skeleton.Skeleton, { height: "300px" })), index.h("div", { class: this.isLoading && 'visually-hidden' }, index.h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
|
|
132
|
-
}
|
|
133
|
-
get summary() {
|
|
134
|
-
var _a, _b;
|
|
135
|
-
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h(skeleton.Skeleton, { height: "24px" })), index.h("div", { class: this.isLoading && 'visually-hidden' }, index.h("div", { part: parts.text }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), index.h("div", null, index.h("span", { part: parts.text }, "Total"), "\u00A0", index.h("span", { part: parts.text }, utils.formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
136
|
-
}
|
|
137
|
-
render() {
|
|
138
|
-
return (index.h(styledHost.StyledHost, { key: '2fb8b2c2b543712023c74cf9b41dc57675c89237' }, index.h("div", { key: 'caba36e076e4162d9c92844f7c0632b5bf678de6', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: '6a27d64005d785815d5567894d6e2a6e1e515cf8', class: "col-12", part: parts.checkoutSummary }, index.h(insuranceState.Header2, { key: '645fe4250331805e86811700b453458f065188bd', text: "Summary", class: "fs-5 fw-bold pb-3" }), this.summary), index.h("div", { key: 'c49c73eb3462ad17e0344e74be508abe958a9358', class: "col-12" }, index.h("slot", { key: 'be626bff57c95b92f9853e2e9b63dd9279834142', name: "insurance" })), index.h("div", { key: '025b0400164935f10d6c79d445bfdcf157290fd6', class: "col-12 mt-4" }, index.h(insuranceState.Header2, { key: '483b5d53b5cea3ae6fccfbb3aa9d3efe0dc8fcab', text: "Payment", class: "fs-5 fw-bold pb-3" }), index.h(header3.Header3, { key: '21abbd4d669e351c8ad0a87b7b408a4998948b46', text: "Select payment type", class: "fs-6 fw-bold lh-lg" }), index.h("div", { key: '9441e97e1bd64b796ebcf1404d4ca04964990982', class: "d-flex flex-column" }, this.paymentType)), index.h("div", { key: '9db2e4fccff5b868e7d329d9b0be864942adcc3d', class: "col-12" }, index.h("div", { key: '2eaef4ed6062b27de2516de7b71a056c829f8cab', class: "d-flex justify-content-end" }, index.h(button.Button, { key: '505869afa61094d628b58a32749c44f678e4fda3', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
exports.justifi_checkout_core = CheckoutCore;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DEMVrrsF.js');
|
|
4
|
-
|
|
5
|
-
const filterParamsInitialState = {};
|
|
6
|
-
const propsParamsInitialState = {};
|
|
7
|
-
const filterParamsStore = index.createStore(() => filterParamsInitialState);
|
|
8
|
-
const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
|
|
9
|
-
const propsParamsStore = index.createStore(() => propsParamsInitialState);
|
|
10
|
-
const { state: propsParams } = propsParamsStore;
|
|
11
|
-
const getRequestParams = () => {
|
|
12
|
-
return Object.assign(Object.assign({}, filterParams), propsParams);
|
|
13
|
-
};
|
|
14
|
-
const clearParams = () => {
|
|
15
|
-
filterParamsStore.reset();
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.clearParams = clearParams;
|
|
19
|
-
exports.filterParams = filterParams;
|
|
20
|
-
exports.getRequestParams = getRequestParams;
|
|
21
|
-
exports.onQueryParamsChange = onQueryParamsChange;
|
|
22
|
-
exports.propsParams = propsParams;
|
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { formatCurrency } from "../../utils/utils";
|
|
3
|
-
import { Checkout } from "../../api/Checkout";
|
|
4
|
-
import { ComponentErrorSeverity } from "../../api/ComponentError";
|
|
5
|
-
import { insuranceValues, insuranceValuesOn, validateInsuranceValues } from "../insurance/insurance-state";
|
|
6
|
-
import { Button, StyledHost, Skeleton, Header2, Header3 } from "../../ui-components";
|
|
7
|
-
import { checkoutSummary, text } from "../../styles/parts";
|
|
8
|
-
export class CheckoutCore {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.hasLoadedFonts = false;
|
|
11
|
-
this.renderState = 'loading';
|
|
12
|
-
this.creatingNewPaymentMethod = false;
|
|
13
|
-
this.insuranceToggled = false;
|
|
14
|
-
this.completeCheckout = async (payment) => {
|
|
15
|
-
this.complete({
|
|
16
|
-
payment,
|
|
17
|
-
onSuccess: this.onSubmitted,
|
|
18
|
-
onError: this.onError,
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
this.onSubmitted = (response) => {
|
|
22
|
-
this.submitEvent.emit({ response: response });
|
|
23
|
-
this.renderState = 'success';
|
|
24
|
-
};
|
|
25
|
-
this.onError = ({ error, code, severity }) => {
|
|
26
|
-
this.serverError = error;
|
|
27
|
-
this.errorEvent.emit({
|
|
28
|
-
errorCode: code,
|
|
29
|
-
message: error,
|
|
30
|
-
severity,
|
|
31
|
-
});
|
|
32
|
-
this.renderState = 'error';
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
async fillBillingForm(fields) {
|
|
36
|
-
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
37
|
-
}
|
|
38
|
-
async validate() {
|
|
39
|
-
const insuranceValidation = validateInsuranceValues();
|
|
40
|
-
const { isValid } = await this.paymentMethodOptionsRef.validate();
|
|
41
|
-
if (!insuranceValidation.isValid || !isValid) {
|
|
42
|
-
return { isValid: false };
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return { isValid: true };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
componentWillLoad() {
|
|
49
|
-
if (this.getCheckout) {
|
|
50
|
-
this.fetchData();
|
|
51
|
-
// Refresh the checkout data when insurance is added or removed
|
|
52
|
-
insuranceValuesOn('set', (key) => {
|
|
53
|
-
const value = insuranceValues[key];
|
|
54
|
-
if (value !== undefined) {
|
|
55
|
-
this.insuranceToggled = value;
|
|
56
|
-
this.fetchData();
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
fetchData() {
|
|
62
|
-
this.renderState = 'loading';
|
|
63
|
-
this.getCheckout({
|
|
64
|
-
onSuccess: ({ checkout }) => {
|
|
65
|
-
this.checkout = new Checkout(checkout);
|
|
66
|
-
const { status } = this.checkout;
|
|
67
|
-
this.loaded.emit({ checkout_status: status });
|
|
68
|
-
this.renderState = 'success';
|
|
69
|
-
},
|
|
70
|
-
onError: ({ error, code, severity }) => {
|
|
71
|
-
this.serverError = error;
|
|
72
|
-
this.renderState = 'error';
|
|
73
|
-
this.errorEvent.emit({
|
|
74
|
-
errorCode: code,
|
|
75
|
-
message: error,
|
|
76
|
-
severity,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
;
|
|
82
|
-
async submit(event) {
|
|
83
|
-
var _a;
|
|
84
|
-
event.preventDefault();
|
|
85
|
-
this.renderState = 'loading';
|
|
86
|
-
const insuranceValidation = validateInsuranceValues();
|
|
87
|
-
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod(insuranceValidation);
|
|
88
|
-
if (payload.validationError) {
|
|
89
|
-
this.renderState = 'error';
|
|
90
|
-
}
|
|
91
|
-
else if (payload.error) {
|
|
92
|
-
this.renderState = 'error';
|
|
93
|
-
this.serverError = payload.error.message;
|
|
94
|
-
this.onError({
|
|
95
|
-
code: payload.error.code,
|
|
96
|
-
error: payload.error.message,
|
|
97
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
else if (payload.token) {
|
|
101
|
-
this.completeCheckout({ payment_mode: 'ecom', payment_token: payload.token });
|
|
102
|
-
}
|
|
103
|
-
else if (((_a = payload.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
104
|
-
this.completeCheckout({ payment_mode: 'bnpl' });
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
this.renderState = 'error';
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
get isLoading() {
|
|
111
|
-
return this.renderState === 'loading';
|
|
112
|
-
}
|
|
113
|
-
get isError() {
|
|
114
|
-
return this.renderState === 'error';
|
|
115
|
-
}
|
|
116
|
-
get paymentType() {
|
|
117
|
-
var _a, _b, _c, _d, _e;
|
|
118
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "300px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
|
|
119
|
-
}
|
|
120
|
-
get summary() {
|
|
121
|
-
var _a, _b;
|
|
122
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { part: text }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", null, h("span", { part: text }, "Total"), "\u00A0", h("span", { part: text }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
123
|
-
}
|
|
124
|
-
render() {
|
|
125
|
-
return (h(StyledHost, { key: '2fb8b2c2b543712023c74cf9b41dc57675c89237' }, h("div", { key: 'caba36e076e4162d9c92844f7c0632b5bf678de6', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '6a27d64005d785815d5567894d6e2a6e1e515cf8', class: "col-12", part: checkoutSummary }, h(Header2, { key: '645fe4250331805e86811700b453458f065188bd', text: "Summary", class: "fs-5 fw-bold pb-3" }), this.summary), h("div", { key: 'c49c73eb3462ad17e0344e74be508abe958a9358', class: "col-12" }, h("slot", { key: 'be626bff57c95b92f9853e2e9b63dd9279834142', name: "insurance" })), h("div", { key: '025b0400164935f10d6c79d445bfdcf157290fd6', class: "col-12 mt-4" }, h(Header2, { key: '483b5d53b5cea3ae6fccfbb3aa9d3efe0dc8fcab', text: "Payment", class: "fs-5 fw-bold pb-3" }), h(Header3, { key: '21abbd4d669e351c8ad0a87b7b408a4998948b46', text: "Select payment type", class: "fs-6 fw-bold lh-lg" }), h("div", { key: '9441e97e1bd64b796ebcf1404d4ca04964990982', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '9db2e4fccff5b868e7d329d9b0be864942adcc3d', class: "col-12" }, h("div", { key: '2eaef4ed6062b27de2516de7b71a056c829f8cab', class: "d-flex justify-content-end" }, h(Button, { key: '505869afa61094d628b58a32749c44f678e4fda3', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
126
|
-
}
|
|
127
|
-
static get is() { return "justifi-checkout-core"; }
|
|
128
|
-
static get encapsulation() { return "shadow"; }
|
|
129
|
-
static get properties() {
|
|
130
|
-
return {
|
|
131
|
-
"authToken": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"attribute": "auth-token",
|
|
134
|
-
"mutable": false,
|
|
135
|
-
"complexType": {
|
|
136
|
-
"original": "string",
|
|
137
|
-
"resolved": "string",
|
|
138
|
-
"references": {}
|
|
139
|
-
},
|
|
140
|
-
"required": false,
|
|
141
|
-
"optional": false,
|
|
142
|
-
"docs": {
|
|
143
|
-
"tags": [],
|
|
144
|
-
"text": ""
|
|
145
|
-
},
|
|
146
|
-
"getter": false,
|
|
147
|
-
"setter": false,
|
|
148
|
-
"reflect": false
|
|
149
|
-
},
|
|
150
|
-
"getCheckout": {
|
|
151
|
-
"type": "unknown",
|
|
152
|
-
"attribute": "get-checkout",
|
|
153
|
-
"mutable": false,
|
|
154
|
-
"complexType": {
|
|
155
|
-
"original": "Function",
|
|
156
|
-
"resolved": "Function",
|
|
157
|
-
"references": {
|
|
158
|
-
"Function": {
|
|
159
|
-
"location": "global",
|
|
160
|
-
"id": "global::Function"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
"required": false,
|
|
165
|
-
"optional": false,
|
|
166
|
-
"docs": {
|
|
167
|
-
"tags": [],
|
|
168
|
-
"text": ""
|
|
169
|
-
},
|
|
170
|
-
"getter": false,
|
|
171
|
-
"setter": false
|
|
172
|
-
},
|
|
173
|
-
"complete": {
|
|
174
|
-
"type": "unknown",
|
|
175
|
-
"attribute": "complete",
|
|
176
|
-
"mutable": false,
|
|
177
|
-
"complexType": {
|
|
178
|
-
"original": "Function",
|
|
179
|
-
"resolved": "Function",
|
|
180
|
-
"references": {
|
|
181
|
-
"Function": {
|
|
182
|
-
"location": "global",
|
|
183
|
-
"id": "global::Function"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"required": false,
|
|
188
|
-
"optional": false,
|
|
189
|
-
"docs": {
|
|
190
|
-
"tags": [],
|
|
191
|
-
"text": ""
|
|
192
|
-
},
|
|
193
|
-
"getter": false,
|
|
194
|
-
"setter": false
|
|
195
|
-
},
|
|
196
|
-
"checkoutId": {
|
|
197
|
-
"type": "string",
|
|
198
|
-
"attribute": "checkout-id",
|
|
199
|
-
"mutable": false,
|
|
200
|
-
"complexType": {
|
|
201
|
-
"original": "string",
|
|
202
|
-
"resolved": "string",
|
|
203
|
-
"references": {}
|
|
204
|
-
},
|
|
205
|
-
"required": false,
|
|
206
|
-
"optional": false,
|
|
207
|
-
"docs": {
|
|
208
|
-
"tags": [],
|
|
209
|
-
"text": ""
|
|
210
|
-
},
|
|
211
|
-
"getter": false,
|
|
212
|
-
"setter": false,
|
|
213
|
-
"reflect": false
|
|
214
|
-
},
|
|
215
|
-
"disableCreditCard": {
|
|
216
|
-
"type": "boolean",
|
|
217
|
-
"attribute": "disable-credit-card",
|
|
218
|
-
"mutable": false,
|
|
219
|
-
"complexType": {
|
|
220
|
-
"original": "boolean",
|
|
221
|
-
"resolved": "boolean",
|
|
222
|
-
"references": {}
|
|
223
|
-
},
|
|
224
|
-
"required": false,
|
|
225
|
-
"optional": true,
|
|
226
|
-
"docs": {
|
|
227
|
-
"tags": [],
|
|
228
|
-
"text": ""
|
|
229
|
-
},
|
|
230
|
-
"getter": false,
|
|
231
|
-
"setter": false,
|
|
232
|
-
"reflect": false
|
|
233
|
-
},
|
|
234
|
-
"disableBankAccount": {
|
|
235
|
-
"type": "boolean",
|
|
236
|
-
"attribute": "disable-bank-account",
|
|
237
|
-
"mutable": false,
|
|
238
|
-
"complexType": {
|
|
239
|
-
"original": "boolean",
|
|
240
|
-
"resolved": "boolean",
|
|
241
|
-
"references": {}
|
|
242
|
-
},
|
|
243
|
-
"required": false,
|
|
244
|
-
"optional": true,
|
|
245
|
-
"docs": {
|
|
246
|
-
"tags": [],
|
|
247
|
-
"text": ""
|
|
248
|
-
},
|
|
249
|
-
"getter": false,
|
|
250
|
-
"setter": false,
|
|
251
|
-
"reflect": false
|
|
252
|
-
},
|
|
253
|
-
"disableBnpl": {
|
|
254
|
-
"type": "boolean",
|
|
255
|
-
"attribute": "disable-bnpl",
|
|
256
|
-
"mutable": false,
|
|
257
|
-
"complexType": {
|
|
258
|
-
"original": "boolean",
|
|
259
|
-
"resolved": "boolean",
|
|
260
|
-
"references": {}
|
|
261
|
-
},
|
|
262
|
-
"required": false,
|
|
263
|
-
"optional": true,
|
|
264
|
-
"docs": {
|
|
265
|
-
"tags": [],
|
|
266
|
-
"text": ""
|
|
267
|
-
},
|
|
268
|
-
"getter": false,
|
|
269
|
-
"setter": false,
|
|
270
|
-
"reflect": false
|
|
271
|
-
},
|
|
272
|
-
"disablePaymentMethodGroup": {
|
|
273
|
-
"type": "boolean",
|
|
274
|
-
"attribute": "disable-payment-method-group",
|
|
275
|
-
"mutable": false,
|
|
276
|
-
"complexType": {
|
|
277
|
-
"original": "boolean",
|
|
278
|
-
"resolved": "boolean",
|
|
279
|
-
"references": {}
|
|
280
|
-
},
|
|
281
|
-
"required": false,
|
|
282
|
-
"optional": true,
|
|
283
|
-
"docs": {
|
|
284
|
-
"tags": [],
|
|
285
|
-
"text": ""
|
|
286
|
-
},
|
|
287
|
-
"getter": false,
|
|
288
|
-
"setter": false,
|
|
289
|
-
"reflect": false
|
|
290
|
-
},
|
|
291
|
-
"hideCardBillingForm": {
|
|
292
|
-
"type": "boolean",
|
|
293
|
-
"attribute": "hide-card-billing-form",
|
|
294
|
-
"mutable": false,
|
|
295
|
-
"complexType": {
|
|
296
|
-
"original": "boolean",
|
|
297
|
-
"resolved": "boolean",
|
|
298
|
-
"references": {}
|
|
299
|
-
},
|
|
300
|
-
"required": false,
|
|
301
|
-
"optional": true,
|
|
302
|
-
"docs": {
|
|
303
|
-
"tags": [],
|
|
304
|
-
"text": ""
|
|
305
|
-
},
|
|
306
|
-
"getter": false,
|
|
307
|
-
"setter": false,
|
|
308
|
-
"reflect": false
|
|
309
|
-
},
|
|
310
|
-
"hideBankAccountBillingForm": {
|
|
311
|
-
"type": "boolean",
|
|
312
|
-
"attribute": "hide-bank-account-billing-form",
|
|
313
|
-
"mutable": false,
|
|
314
|
-
"complexType": {
|
|
315
|
-
"original": "boolean",
|
|
316
|
-
"resolved": "boolean",
|
|
317
|
-
"references": {}
|
|
318
|
-
},
|
|
319
|
-
"required": false,
|
|
320
|
-
"optional": true,
|
|
321
|
-
"docs": {
|
|
322
|
-
"tags": [],
|
|
323
|
-
"text": ""
|
|
324
|
-
},
|
|
325
|
-
"getter": false,
|
|
326
|
-
"setter": false,
|
|
327
|
-
"reflect": false
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
static get states() {
|
|
332
|
-
return {
|
|
333
|
-
"hasLoadedFonts": {},
|
|
334
|
-
"checkout": {},
|
|
335
|
-
"serverError": {},
|
|
336
|
-
"renderState": {},
|
|
337
|
-
"creatingNewPaymentMethod": {},
|
|
338
|
-
"insuranceToggled": {}
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
static get events() {
|
|
342
|
-
return [{
|
|
343
|
-
"method": "submitEvent",
|
|
344
|
-
"name": "submit-event",
|
|
345
|
-
"bubbles": true,
|
|
346
|
-
"cancelable": true,
|
|
347
|
-
"composed": true,
|
|
348
|
-
"docs": {
|
|
349
|
-
"tags": [],
|
|
350
|
-
"text": ""
|
|
351
|
-
},
|
|
352
|
-
"complexType": {
|
|
353
|
-
"original": "ComponentSubmitEvent",
|
|
354
|
-
"resolved": "ComponentSubmitEvent",
|
|
355
|
-
"references": {
|
|
356
|
-
"ComponentSubmitEvent": {
|
|
357
|
-
"location": "import",
|
|
358
|
-
"path": "../../api/ComponentEvents",
|
|
359
|
-
"id": "src/api/ComponentEvents.ts::ComponentSubmitEvent"
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
"method": "errorEvent",
|
|
365
|
-
"name": "error-event",
|
|
366
|
-
"bubbles": true,
|
|
367
|
-
"cancelable": true,
|
|
368
|
-
"composed": true,
|
|
369
|
-
"docs": {
|
|
370
|
-
"tags": [],
|
|
371
|
-
"text": ""
|
|
372
|
-
},
|
|
373
|
-
"complexType": {
|
|
374
|
-
"original": "ComponentErrorEvent",
|
|
375
|
-
"resolved": "ComponentErrorEvent",
|
|
376
|
-
"references": {
|
|
377
|
-
"ComponentErrorEvent": {
|
|
378
|
-
"location": "import",
|
|
379
|
-
"path": "../../api/ComponentEvents",
|
|
380
|
-
"id": "src/api/ComponentEvents.ts::ComponentErrorEvent"
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}, {
|
|
385
|
-
"method": "loaded",
|
|
386
|
-
"name": "loaded",
|
|
387
|
-
"bubbles": true,
|
|
388
|
-
"cancelable": true,
|
|
389
|
-
"composed": true,
|
|
390
|
-
"docs": {
|
|
391
|
-
"tags": [],
|
|
392
|
-
"text": ""
|
|
393
|
-
},
|
|
394
|
-
"complexType": {
|
|
395
|
-
"original": "ILoadedEventResponse",
|
|
396
|
-
"resolved": "{ checkout_status: ICheckoutStatus; }",
|
|
397
|
-
"references": {
|
|
398
|
-
"ILoadedEventResponse": {
|
|
399
|
-
"location": "import",
|
|
400
|
-
"path": "../../api/Checkout",
|
|
401
|
-
"id": "src/api/Checkout.ts::ILoadedEventResponse"
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}];
|
|
406
|
-
}
|
|
407
|
-
static get methods() {
|
|
408
|
-
return {
|
|
409
|
-
"fillBillingForm": {
|
|
410
|
-
"complexType": {
|
|
411
|
-
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
412
|
-
"parameters": [{
|
|
413
|
-
"name": "fields",
|
|
414
|
-
"type": "BillingFormFields",
|
|
415
|
-
"docs": ""
|
|
416
|
-
}],
|
|
417
|
-
"references": {
|
|
418
|
-
"Promise": {
|
|
419
|
-
"location": "global",
|
|
420
|
-
"id": "global::Promise"
|
|
421
|
-
},
|
|
422
|
-
"BillingFormFields": {
|
|
423
|
-
"location": "import",
|
|
424
|
-
"path": "./billing-form/billing-form-schema",
|
|
425
|
-
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
"return": "Promise<void>"
|
|
429
|
-
},
|
|
430
|
-
"docs": {
|
|
431
|
-
"text": "",
|
|
432
|
-
"tags": []
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
"validate": {
|
|
436
|
-
"complexType": {
|
|
437
|
-
"signature": "() => Promise<{ isValid: boolean; }>",
|
|
438
|
-
"parameters": [],
|
|
439
|
-
"references": {
|
|
440
|
-
"Promise": {
|
|
441
|
-
"location": "global",
|
|
442
|
-
"id": "global::Promise"
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
"return": "Promise<{ isValid: boolean; }>"
|
|
446
|
-
},
|
|
447
|
-
"docs": {
|
|
448
|
-
"text": "",
|
|
449
|
-
"tags": []
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
}
|