@justifi/webcomponents 6.4.0 → 6.4.2
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/bank-account-document-form-inputs_6.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-BO_NdUB_.js → check-pkg-version-goSFbVFL.js} +1 -1
- package/dist/cjs/custom-popper.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_3.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 +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/{justifi-bank-account-billing-form-simple_9.cjs.entry.js → internal-tokenize-payment-method_7.cjs.entry.js} +254 -138
- package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_7.cjs.entry.js} +3 -258
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +147 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +24 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CvqCkafe.js → package-jZDXnKmY.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +626 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +25 -355
- package/dist/collection/ui-components/custom-popper/custom-popper.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-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 +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +546 -117
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-BkjjtNUQ.js → badge-Bgosx-DC.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +5 -5
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-hZ6O6Bs0.js → business-additional-questions-schema-QFJEOHF5.js} +1 -1
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-DJvIo0oa.js → business-identity-schema-DB_Hhjld.js} +1 -1
- package/dist/esm/{button-DHljyr0K.js → button-DBmjN7Ra.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-B6jUXpX3.js → check-pkg-version-CPDwCVPS.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +5 -5
- package/dist/esm/{checkouts-table-Dn1sFyZs.js → checkouts-table-lgbZpF1o.js} +2 -2
- package/dist/esm/custom-popper.entry.js +2 -2
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/{form-control-error-text-Cje0veu2.js → form-control-error-text-B5LSdUXI.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-ClJnecm3.js → form-control-help-text-BK9RNOf-.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_3.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 +4 -4
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-uiFiNrVs.js → header-1-CPF3S2CC.js} +1 -1
- package/dist/esm/{header-3-BVYYTpLc.js → header-3-Cah707hu.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-iJs0LRg_.js → insurance-state-DRe0g_wf.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +460 -0
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +6 -6
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +2 -2
- package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
- package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_7.entry.js} +9 -263
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +143 -0
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-order-terminals.entry.js +4 -4
- package/dist/esm/justifi-owner-form_3.entry.js +4 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +6 -6
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +6 -6
- package/dist/esm/justifi-refund-payment.entry.js +5 -5
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +5 -5
- package/dist/esm/justifi-tokenize-payment-method.entry.js +22 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BeukOaOq.js → package-B3SPy-II.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-Dj_zevuD.js → parts-wtuY7MT2.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +5 -5
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +6 -6
- package/dist/esm/{payments-status-DK2me5T2.js → payments-status-Dypl6WFL.js} +1 -1
- package/dist/esm/{payments-table-DxRdl7-E.js → payments-table-CK9BRZEz.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +6 -6
- package/dist/esm/payouts-list-core.entry.js +6 -6
- package/dist/esm/{payouts-status-BfEM6F8q.js → payouts-status-hTCBgpLW.js} +1 -1
- package/dist/esm/{payouts-table-C2binjIW.js → payouts-table-Dd8IDBBX.js} +2 -2
- package/dist/esm/{schema-validations-C0qp3ZJ5.js → schema-validations-B5sfox_4.js} +1 -1
- package/dist/esm/{skeleton-DdynMBnt.js → skeleton-BmRZRW5K.js} +1 -1
- package/dist/esm/{spinner-BRMSkfVc.js → spinner-tU4D9iak.js} +1 -1
- package/dist/esm/{table-DYlsfkCm.js → table-Cjq1A6mO.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +5 -5
- package/dist/esm/{terminal-orders-table-zf0ASRCr.js → terminal-orders-table-CMWBIr9y.js} +2 -2
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/terminals-list-core.entry.js +5 -5
- package/dist/esm/{terminals-table-DNUTk3gi.js → terminals-table-D9okETJr.js} +2 -2
- package/dist/esm/{utils-DUz-H1tG.js → utils-BX7Rjm1M.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Refund.js +1 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/billing-form-schema.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +1 -1
- package/dist/module/business-bank-account-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.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 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-response-actions.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- 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-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 +1 -1
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-tokenize-payment-method.d.ts +11 -0
- package/dist/module/internal-tokenize-payment-method.js +6 -0
- package/dist/module/{tokenize-payment-method.js → internal-tokenize-payment-method2.js} +8 -8
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +37 -37
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +2 -2
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method.js +166 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/modular-checkout.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +1 -1
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/utils4.js +1 -1
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/tokenize-payment-method/internal-tokenize-payment-method.d.ts +60 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +4 -45
- package/dist/types/components.d.ts +94 -52
- package/dist/webcomponents/p-0082f428.entry.js +1 -0
- package/dist/webcomponents/{p-89ff96ef.entry.js → p-01c9c76c.entry.js} +1 -1
- package/dist/webcomponents/{p-85bbadaf.entry.js → p-0389ea61.entry.js} +1 -1
- package/dist/webcomponents/{p-589e4fcb.entry.js → p-05351f0d.entry.js} +1 -1
- package/dist/webcomponents/{p-32af1830.entry.js → p-07e85954.entry.js} +1 -1
- package/dist/webcomponents/{p-e050b917.entry.js → p-087a81ff.entry.js} +1 -1
- package/dist/webcomponents/{p-56d9a8f1.entry.js → p-0ce046fd.entry.js} +1 -1
- package/dist/webcomponents/{p-62cdb2b1.entry.js → p-1193a1ac.entry.js} +1 -1
- package/dist/webcomponents/{p-e34a6e5f.entry.js → p-14d2f6c6.entry.js} +1 -1
- package/dist/webcomponents/{p-2976c54e.entry.js → p-1b94c32d.entry.js} +1 -1
- package/dist/webcomponents/{p-198a6ae3.entry.js → p-1edec396.entry.js} +1 -1
- package/dist/webcomponents/{p-065eafc5.entry.js → p-20a8b0c0.entry.js} +1 -1
- package/dist/webcomponents/{p-3cb3a241.entry.js → p-22f74666.entry.js} +1 -1
- package/dist/webcomponents/p-24c22851.entry.js +1 -0
- package/dist/webcomponents/p-2769f945.entry.js +1 -0
- package/dist/webcomponents/p-30f61f44.entry.js +1 -0
- package/dist/webcomponents/p-3c38cec5.entry.js +1 -0
- package/dist/webcomponents/p-4488378e.entry.js +1 -0
- package/dist/webcomponents/{p-20ccd0a4.entry.js → p-44e021e3.entry.js} +1 -1
- package/dist/webcomponents/{p-82b13550.entry.js → p-45936490.entry.js} +1 -1
- package/dist/webcomponents/{p-abf2073d.entry.js → p-4761e0aa.entry.js} +1 -1
- package/dist/webcomponents/{p-91f22211.entry.js → p-4c3eea2b.entry.js} +1 -1
- package/dist/webcomponents/{p-27acf7cc.entry.js → p-4dcbc0af.entry.js} +1 -1
- package/dist/webcomponents/{p-46d7ca2f.entry.js → p-4e23116c.entry.js} +4 -4
- package/dist/webcomponents/p-4ed1fc3b.entry.js +1 -0
- package/dist/webcomponents/{p-52cb10a7.entry.js → p-58ae4f9e.entry.js} +1 -1
- package/dist/webcomponents/p-6550b836.entry.js +1 -0
- package/dist/webcomponents/{p-5c847406.entry.js → p-6d06ea25.entry.js} +1 -1
- package/dist/webcomponents/{p-590290a2.entry.js → p-716ddc27.entry.js} +1 -1
- package/dist/webcomponents/{p-9633fbb8.entry.js → p-7218c312.entry.js} +1 -1
- package/dist/webcomponents/{p-83cd698c.entry.js → p-75c65531.entry.js} +1 -1
- package/dist/webcomponents/{p-d217f6ea.entry.js → p-800660f2.entry.js} +1 -1
- package/dist/webcomponents/p-84e2bd93.entry.js +1 -0
- package/dist/webcomponents/{p-6677f09f.entry.js → p-8681f258.entry.js} +1 -1
- package/dist/webcomponents/{p-e788ecc9.entry.js → p-89518b26.entry.js} +1 -1
- package/dist/webcomponents/p-8bfd15af.entry.js +1 -0
- package/dist/webcomponents/{p-e29bdbc2.entry.js → p-9d914297.entry.js} +1 -1
- package/dist/webcomponents/{p-5eb2698f.entry.js → p-9f70ce93.entry.js} +1 -1
- package/dist/webcomponents/p-B-0a8Xqm.js +1 -0
- package/dist/webcomponents/p-B3SPy-II.js +1 -0
- package/dist/webcomponents/{p-D2DVDmwd.js → p-BNqo3kt0.js} +1 -1
- package/dist/webcomponents/{p-B-7rLJIB.js → p-BTzt8N0l.js} +1 -1
- package/dist/webcomponents/{p-CeO5d98O.js → p-BiizzRhw.js} +1 -1
- package/dist/webcomponents/{p-C9Ho60F2.js → p-BitGlMSc.js} +1 -1
- package/dist/webcomponents/p-Bli6WznP.js +1 -0
- package/dist/webcomponents/{p-DkOvNRJs.js → p-Bqlcv3ZV.js} +1 -1
- package/dist/webcomponents/p-BuCKkdLM.js +1 -0
- package/dist/webcomponents/{p-BB3MQDQq.js → p-BydKIJVC.js} +1 -1
- package/dist/webcomponents/p-C-2kW6Al.js +1 -0
- package/dist/webcomponents/{p-D8HCCl2t.js → p-CkN7DFFn.js} +1 -1
- package/dist/webcomponents/{p-O4_LrrnE.js → p-D1WQG4I7.js} +1 -1
- package/dist/webcomponents/{p-Cu1FEdFr.js → p-DOLBAxYf.js} +1 -1
- package/dist/webcomponents/{p-fDGfMEwy.js → p-DkOiS6Zr.js} +1 -1
- package/dist/webcomponents/{p-BVWZSqCK.js → p-KPmnq8xf.js} +1 -1
- package/dist/webcomponents/{p-28c28c0b.entry.js → p-a655b996.entry.js} +1 -1
- package/dist/webcomponents/p-a793d1bd.entry.js +1 -0
- package/dist/webcomponents/{p-256a95eb.entry.js → p-a8f7cf9b.entry.js} +1 -1
- package/dist/webcomponents/{p-98508ff0.entry.js → p-ad8b9fba.entry.js} +1 -1
- package/dist/webcomponents/{p-0214a9f4.entry.js → p-ae62e01d.entry.js} +1 -1
- package/dist/webcomponents/{p-8993c961.entry.js → p-ae7a027b.entry.js} +1 -1
- package/dist/webcomponents/{p-1414e80b.entry.js → p-aec9185f.entry.js} +1 -1
- package/dist/webcomponents/{p-DopgIZQg.js → p-avgjSJ1d.js} +1 -1
- package/dist/webcomponents/{p-aee79310.entry.js → p-b3e0c981.entry.js} +1 -1
- package/dist/webcomponents/p-b4d8a3f6.entry.js +1 -0
- package/dist/webcomponents/{p-220420bb.entry.js → p-bd10429d.entry.js} +1 -1
- package/dist/webcomponents/{p-q6C7btl0.js → p-bolTb61p.js} +1 -1
- package/dist/webcomponents/{p-2a53a095.entry.js → p-c1831747.entry.js} +1 -1
- package/dist/webcomponents/p-c3b71a1f.entry.js +1 -0
- package/dist/webcomponents/{p-4e90834e.entry.js → p-c7279bc6.entry.js} +1 -1
- package/dist/webcomponents/p-c7MCfTgE.js +1 -0
- package/dist/webcomponents/{p-e06327aa.entry.js → p-c8f40375.entry.js} +1 -1
- package/dist/webcomponents/{p-c6edc4c9.entry.js → p-d2bb462e.entry.js} +1 -1
- package/dist/webcomponents/{p-58a68ad6.entry.js → p-d3e4697f.entry.js} +1 -1
- package/dist/webcomponents/{p-728158a8.entry.js → p-d4b8274f.entry.js} +1 -1
- package/dist/webcomponents/{p-9d6ceb95.entry.js → p-d89c166f.entry.js} +1 -1
- package/dist/webcomponents/p-dc0d3484.entry.js +1 -0
- package/dist/webcomponents/{p-Bo278yZD.js → p-dgG_o6wN.js} +1 -1
- package/dist/webcomponents/{p-f02ab3fd.entry.js → p-e2e6c201.entry.js} +1 -1
- package/dist/webcomponents/{p-89f1448c.entry.js → p-e3f6c3c4.entry.js} +1 -1
- package/dist/webcomponents/{p-238859ef.entry.js → p-eb56ba9b.entry.js} +1 -1
- package/dist/webcomponents/{p-9fb66685.entry.js → p-ebb73921.entry.js} +1 -1
- package/dist/webcomponents/{p-0d928de1.entry.js → p-ed55d333.entry.js} +1 -1
- package/dist/webcomponents/p-edcb84bf.entry.js +1 -0
- package/dist/webcomponents/{p-9db64da8.entry.js → p-f1af630f.entry.js} +1 -1
- package/dist/webcomponents/{p-6023553c.entry.js → p-f5fb1af2.entry.js} +1 -1
- package/dist/webcomponents/{p-79cb28bd.entry.js → p-fab28b02.entry.js} +1 -1
- package/dist/webcomponents/{p-DsR5Dt9w.js → p-jTVpG8Gt.js} +1 -1
- package/dist/webcomponents/{p-DwLZbA7D.js → p-nrZ9yHcl.js} +1 -1
- package/dist/webcomponents/{p-Dj_zevuD.js → p-wtuY7MT2.js} +1 -1
- package/dist/webcomponents/p-zNSPsvs3.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +0 -342
- package/dist/webcomponents/p-06a0e2e2.entry.js +0 -1
- package/dist/webcomponents/p-0bd7b871.entry.js +0 -1
- package/dist/webcomponents/p-2859a8e3.entry.js +0 -1
- package/dist/webcomponents/p-336b08de.entry.js +0 -1
- package/dist/webcomponents/p-36259848.entry.js +0 -1
- package/dist/webcomponents/p-6b563428.entry.js +0 -1
- package/dist/webcomponents/p-77884032.entry.js +0 -1
- package/dist/webcomponents/p-8dab7768.entry.js +0 -1
- package/dist/webcomponents/p-BeukOaOq.js +0 -1
- package/dist/webcomponents/p-C2gAiiwJ.js +0 -1
- package/dist/webcomponents/p-C7m-gAAM.js +0 -1
- package/dist/webcomponents/p-CO8ZJ0jB.js +0 -1
- package/dist/webcomponents/p-CgbXzEbz.js +0 -1
- package/dist/webcomponents/p-JvWiY69B.js +0 -1
- package/dist/webcomponents/p-VhOlg78I.js +0 -1
- package/dist/webcomponents/p-a49ca7d8.entry.js +0 -1
- package/dist/webcomponents/p-cdf94860.entry.js +0 -1
- package/dist/webcomponents/p-d287dea1.entry.js +0 -1
- package/dist/webcomponents/p-d8fc3996.entry.js +0 -1
- package/dist/webcomponents/p-de7f1479.entry.js +0 -1
|
@@ -1,255 +1,22 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { StyledHost } from "../../ui-components";
|
|
3
|
-
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
4
|
-
import JustifiAnalytics from "../../api/Analytics";
|
|
5
|
-
import { ComponentErrorCodes, ComponentErrorSeverity, } from "../../api";
|
|
6
|
-
import { checkoutStore } from "../../store/checkout.store";
|
|
7
|
-
import { PAYMENT_METHODS } from "../modular-checkout/ModularCheckout";
|
|
8
|
-
// Constants
|
|
9
|
-
const PAYMENT_METHOD_TYPE_LABELS = {
|
|
10
|
-
[PAYMENT_METHODS.NEW_BANK_ACCOUNT]: 'New bank account',
|
|
11
|
-
[PAYMENT_METHODS.NEW_CARD]: 'New credit or debit card',
|
|
12
|
-
};
|
|
13
|
-
const ERROR_MESSAGES = {
|
|
14
|
-
AUTH_TOKEN_REQUIRED: 'Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
|
|
15
|
-
ACCOUNT_ID_REQUIRED: 'Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
|
|
16
|
-
FORM_NOT_READY: 'Payment form not ready',
|
|
17
|
-
VALIDATION_ERROR: 'Validation error',
|
|
18
|
-
};
|
|
19
2
|
export class TokenizePaymentMethod {
|
|
20
3
|
constructor() {
|
|
21
|
-
this.computedHideSubmitButton = false;
|
|
22
|
-
this.isLoading = false;
|
|
23
4
|
this.submitButtonText = 'Submit';
|
|
24
5
|
}
|
|
25
|
-
|
|
26
|
-
this.
|
|
27
|
-
}
|
|
28
|
-
connectedCallback() {
|
|
29
|
-
this.setDefaultSelectedPaymentMethod();
|
|
30
|
-
this.setComputedHideSubmitButton();
|
|
31
|
-
}
|
|
32
|
-
disconnectedCallback() {
|
|
33
|
-
var _a;
|
|
34
|
-
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
35
|
-
if (this.unsubscribeFromStore) {
|
|
36
|
-
this.unsubscribeFromStore();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
componentWillLoad() {
|
|
40
|
-
checkPkgVersion();
|
|
41
|
-
this.analytics = new JustifiAnalytics(this);
|
|
42
|
-
}
|
|
43
|
-
handleRadioClick(event) {
|
|
44
|
-
this.selectedPaymentMethod = event.detail;
|
|
45
|
-
checkoutStore.selectedPaymentMethod = { type: event.detail };
|
|
6
|
+
async tokenizePaymentMethod(event) {
|
|
7
|
+
return this.tokenizePaymentMethodRef.tokenizePaymentMethod(event);
|
|
46
8
|
}
|
|
47
9
|
async fillBillingForm(fields) {
|
|
48
|
-
|
|
49
|
-
(_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.fill(fields);
|
|
50
|
-
}
|
|
51
|
-
async tokenizePaymentMethod(event) {
|
|
52
|
-
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
53
|
-
this.validateRequiredProps();
|
|
54
|
-
this.isLoading = true;
|
|
55
|
-
try {
|
|
56
|
-
const validation = await this.validate();
|
|
57
|
-
if (!validation.isValid) {
|
|
58
|
-
this.errorEvent.emit({
|
|
59
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
60
|
-
message: ERROR_MESSAGES.VALIDATION_ERROR,
|
|
61
|
-
});
|
|
62
|
-
this.isLoading = false;
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const tokenizeResponse = await this.resolvePaymentMethod({ isValid: true });
|
|
66
|
-
if (tokenizeResponse.error) {
|
|
67
|
-
this.emitError({
|
|
68
|
-
errorCode: tokenizeResponse.error.code,
|
|
69
|
-
message: tokenizeResponse.error.message,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
this.submitEvent.emit({ response: tokenizeResponse });
|
|
73
|
-
return tokenizeResponse;
|
|
74
|
-
}
|
|
75
|
-
catch (error) {
|
|
76
|
-
const errorResponse = this.createErrorResponse(ComponentErrorCodes.TOKENIZE_ERROR, error.message);
|
|
77
|
-
this.emitError({
|
|
78
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
79
|
-
message: error.message,
|
|
80
|
-
});
|
|
81
|
-
this.submitEvent.emit({ response: errorResponse });
|
|
82
|
-
return errorResponse;
|
|
83
|
-
}
|
|
84
|
-
finally {
|
|
85
|
-
this.isLoading = false;
|
|
86
|
-
}
|
|
10
|
+
return this.tokenizePaymentMethodRef.fillBillingForm(fields);
|
|
87
11
|
}
|
|
88
12
|
async validate() {
|
|
89
|
-
|
|
90
|
-
return { isValid: false, errors: { general: ERROR_MESSAGES.FORM_NOT_READY } };
|
|
91
|
-
}
|
|
92
|
-
const [billingValidation, paymentMethodValidation] = await Promise.all([
|
|
93
|
-
this.billingFormRef.validate(),
|
|
94
|
-
this.paymentMethodFormRef.validate(),
|
|
95
|
-
]);
|
|
96
|
-
const result = {
|
|
97
|
-
isValid: billingValidation.isValid && paymentMethodValidation.isValid,
|
|
98
|
-
errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
|
|
99
|
-
};
|
|
100
|
-
return result;
|
|
101
|
-
}
|
|
102
|
-
async tokenize() {
|
|
103
|
-
try {
|
|
104
|
-
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
105
|
-
const config = {
|
|
106
|
-
clientId: this.authToken || checkoutStore.authToken,
|
|
107
|
-
account: this.accountId || checkoutStore.accountId,
|
|
108
|
-
paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
|
|
109
|
-
};
|
|
110
|
-
return await this.paymentMethodFormRef.tokenize(config);
|
|
111
|
-
}
|
|
112
|
-
catch (error) {
|
|
113
|
-
return error;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// 9. Local methods
|
|
117
|
-
validateRequiredProps() {
|
|
118
|
-
if (!this.authToken && !checkoutStore.authToken) {
|
|
119
|
-
this.emitError({
|
|
120
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
121
|
-
message: ERROR_MESSAGES.AUTH_TOKEN_REQUIRED,
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
if (!this.accountId && !checkoutStore.accountId) {
|
|
125
|
-
this.emitError({
|
|
126
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
127
|
-
message: ERROR_MESSAGES.ACCOUNT_ID_REQUIRED,
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
setDefaultSelectedPaymentMethod() {
|
|
132
|
-
if (this.selectedPaymentMethod) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
if (!this.disableCreditCard) {
|
|
136
|
-
this.selectedPaymentMethod = PAYMENT_METHODS.NEW_CARD;
|
|
137
|
-
checkoutStore.selectedPaymentMethod = { type: PAYMENT_METHODS.NEW_CARD };
|
|
138
|
-
}
|
|
139
|
-
else if (!this.disableBankAccount) {
|
|
140
|
-
this.selectedPaymentMethod = PAYMENT_METHODS.NEW_BANK_ACCOUNT;
|
|
141
|
-
checkoutStore.selectedPaymentMethod = { type: PAYMENT_METHODS.NEW_BANK_ACCOUNT };
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
setComputedHideSubmitButton() {
|
|
145
|
-
// If hideSubmitButton prop is explicitly set, use that value
|
|
146
|
-
if (this.hideSubmitButton !== undefined) {
|
|
147
|
-
this.computedHideSubmitButton = this.hideSubmitButton;
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
// Otherwise, auto-detect if component is slotted within modular-checkout
|
|
151
|
-
const isWithinModularCheckout = this.isSlottedWithinModularCheckout();
|
|
152
|
-
this.computedHideSubmitButton = isWithinModularCheckout;
|
|
153
|
-
}
|
|
154
|
-
isSlottedWithinModularCheckout() {
|
|
155
|
-
var _a;
|
|
156
|
-
let parent = (_a = this.host) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
157
|
-
while (parent) {
|
|
158
|
-
if (parent.tagName === 'JUSTIFI-MODULAR-CHECKOUT') {
|
|
159
|
-
return true;
|
|
160
|
-
}
|
|
161
|
-
parent = parent.parentElement;
|
|
162
|
-
}
|
|
163
|
-
return false;
|
|
164
|
-
}
|
|
165
|
-
get availablePaymentMethods() {
|
|
166
|
-
const methods = [];
|
|
167
|
-
if (!this.disableCreditCard) {
|
|
168
|
-
methods.push(PAYMENT_METHODS.NEW_CARD);
|
|
169
|
-
}
|
|
170
|
-
if (!this.disableBankAccount) {
|
|
171
|
-
methods.push(PAYMENT_METHODS.NEW_BANK_ACCOUNT);
|
|
172
|
-
}
|
|
173
|
-
return methods;
|
|
174
|
-
}
|
|
175
|
-
areFormsReady() {
|
|
176
|
-
return !!(this.billingFormRef && this.paymentMethodFormRef);
|
|
177
|
-
}
|
|
178
|
-
emitError(errorData) {
|
|
179
|
-
this.errorEvent.emit(Object.assign(Object.assign({}, errorData), { severity: ComponentErrorSeverity.ERROR }));
|
|
180
|
-
}
|
|
181
|
-
createErrorResponse(code, message) {
|
|
182
|
-
return {
|
|
183
|
-
error: {
|
|
184
|
-
code: code,
|
|
185
|
-
message,
|
|
186
|
-
decline_code: undefined,
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
191
|
-
if (!this.areFormsReady()) {
|
|
192
|
-
return this.createErrorResponse('form_not_ready', ERROR_MESSAGES.FORM_NOT_READY);
|
|
193
|
-
}
|
|
194
|
-
try {
|
|
195
|
-
const validation = await this.validate();
|
|
196
|
-
if (!validation.isValid || !insuranceValidation.isValid) {
|
|
197
|
-
const errorMessage = Object.values(validation.errors)[0] || ERROR_MESSAGES.VALIDATION_ERROR;
|
|
198
|
-
return {
|
|
199
|
-
validationError: true,
|
|
200
|
-
error: {
|
|
201
|
-
code: 'validation_error',
|
|
202
|
-
message: String(errorMessage),
|
|
203
|
-
decline_code: undefined,
|
|
204
|
-
},
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
const result = await this.performTokenization();
|
|
208
|
-
return result;
|
|
209
|
-
}
|
|
210
|
-
catch (error) {
|
|
211
|
-
return { error };
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
async performTokenization() {
|
|
215
|
-
var _a, _b;
|
|
216
|
-
const tokenizeResponse = await this.tokenize();
|
|
217
|
-
if (tokenizeResponse.error) {
|
|
218
|
-
return { error: tokenizeResponse.error };
|
|
219
|
-
}
|
|
220
|
-
const tokenizeResponseData = tokenizeResponse.data;
|
|
221
|
-
return {
|
|
222
|
-
token: ((_a = tokenizeResponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeResponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
223
|
-
data: tokenizeResponseData,
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
buildPaymentMethodMetadata(billingFormFieldValues) {
|
|
227
|
-
return this.shouldSavePaymentMethod
|
|
228
|
-
? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupID }) : Object.assign({}, billingFormFieldValues);
|
|
229
|
-
}
|
|
230
|
-
get paymentMethodGroupID() {
|
|
231
|
-
return this.paymentMethodGroupId || checkoutStore.paymentMethodGroupId;
|
|
232
|
-
}
|
|
233
|
-
get shouldSavePaymentMethod() {
|
|
234
|
-
return !!(this.paymentMethodGroupId || checkoutStore.savePaymentMethod);
|
|
235
|
-
}
|
|
236
|
-
get shouldHideRadioInput() {
|
|
237
|
-
return this.disableCreditCard || this.disableBankAccount;
|
|
238
|
-
}
|
|
239
|
-
renderPaymentMethodOption(paymentMethodType) {
|
|
240
|
-
const isSelected = this.selectedPaymentMethod === paymentMethodType && checkoutStore.selectedPaymentMethod.id === undefined;
|
|
241
|
-
return (h("div", { class: "payment-method" }, h("justifi-radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
242
|
-
}
|
|
243
|
-
renderSelectedPaymentMethodForm(paymentMethodType) {
|
|
244
|
-
return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodType), h("div", { class: "mt-4" }, h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodType })), h("div", { class: "mt-4" }, h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupID, label: this.savePaymentMethodLabel }))));
|
|
245
|
-
}
|
|
246
|
-
renderPaymentMethodForm(paymentMethodType) {
|
|
247
|
-
return paymentMethodType === PAYMENT_METHODS.NEW_CARD ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
|
|
13
|
+
return this.tokenizePaymentMethodRef.validate();
|
|
248
14
|
}
|
|
249
15
|
render() {
|
|
250
|
-
return (h(
|
|
16
|
+
return (h("internal-tokenize-payment-method", { key: '41dac9317c40f0e6aa42f4daea111a50e077ff7c', ref: (el) => this.tokenizePaymentMethodRef = el, authToken: this.authToken, accountId: this.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: this.hideSubmitButton, paymentMethodGroupId: this.paymentMethodGroupId }));
|
|
251
17
|
}
|
|
252
18
|
static get is() { return "justifi-tokenize-payment-method"; }
|
|
19
|
+
static get encapsulation() { return "shadow"; }
|
|
253
20
|
static get properties() {
|
|
254
21
|
return {
|
|
255
22
|
"accountId": {
|
|
@@ -445,86 +212,8 @@ export class TokenizePaymentMethod {
|
|
|
445
212
|
}
|
|
446
213
|
};
|
|
447
214
|
}
|
|
448
|
-
static get states() {
|
|
449
|
-
return {
|
|
450
|
-
"computedHideSubmitButton": {},
|
|
451
|
-
"isLoading": {},
|
|
452
|
-
"selectedPaymentMethod": {}
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
static get events() {
|
|
456
|
-
return [{
|
|
457
|
-
"method": "errorEvent",
|
|
458
|
-
"name": "error-event",
|
|
459
|
-
"bubbles": true,
|
|
460
|
-
"cancelable": true,
|
|
461
|
-
"composed": true,
|
|
462
|
-
"docs": {
|
|
463
|
-
"tags": [],
|
|
464
|
-
"text": ""
|
|
465
|
-
},
|
|
466
|
-
"complexType": {
|
|
467
|
-
"original": "ComponentErrorEvent",
|
|
468
|
-
"resolved": "ComponentErrorEvent",
|
|
469
|
-
"references": {
|
|
470
|
-
"ComponentErrorEvent": {
|
|
471
|
-
"location": "import",
|
|
472
|
-
"path": "../../api",
|
|
473
|
-
"id": "src/api/index.ts::ComponentErrorEvent"
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
}, {
|
|
478
|
-
"method": "submitEvent",
|
|
479
|
-
"name": "submit-event",
|
|
480
|
-
"bubbles": true,
|
|
481
|
-
"cancelable": true,
|
|
482
|
-
"composed": true,
|
|
483
|
-
"docs": {
|
|
484
|
-
"tags": [],
|
|
485
|
-
"text": ""
|
|
486
|
-
},
|
|
487
|
-
"complexType": {
|
|
488
|
-
"original": "ComponentSubmitEvent",
|
|
489
|
-
"resolved": "ComponentSubmitEvent",
|
|
490
|
-
"references": {
|
|
491
|
-
"ComponentSubmitEvent": {
|
|
492
|
-
"location": "import",
|
|
493
|
-
"path": "../../api",
|
|
494
|
-
"id": "src/api/index.ts::ComponentSubmitEvent"
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}];
|
|
499
|
-
}
|
|
500
215
|
static get methods() {
|
|
501
216
|
return {
|
|
502
|
-
"fillBillingForm": {
|
|
503
|
-
"complexType": {
|
|
504
|
-
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
505
|
-
"parameters": [{
|
|
506
|
-
"name": "fields",
|
|
507
|
-
"type": "BillingFormFields",
|
|
508
|
-
"docs": ""
|
|
509
|
-
}],
|
|
510
|
-
"references": {
|
|
511
|
-
"Promise": {
|
|
512
|
-
"location": "global",
|
|
513
|
-
"id": "global::Promise"
|
|
514
|
-
},
|
|
515
|
-
"BillingFormFields": {
|
|
516
|
-
"location": "import",
|
|
517
|
-
"path": "../../components",
|
|
518
|
-
"id": "src/components.d.ts::BillingFormFields"
|
|
519
|
-
}
|
|
520
|
-
},
|
|
521
|
-
"return": "Promise<void>"
|
|
522
|
-
},
|
|
523
|
-
"docs": {
|
|
524
|
-
"text": "",
|
|
525
|
-
"tags": []
|
|
526
|
-
}
|
|
527
|
-
},
|
|
528
217
|
"tokenizePaymentMethod": {
|
|
529
218
|
"complexType": {
|
|
530
219
|
"signature": "(event?: MouseEvent) => Promise<PaymentMethodPayload>",
|
|
@@ -540,17 +229,12 @@ export class TokenizePaymentMethod {
|
|
|
540
229
|
},
|
|
541
230
|
"PaymentMethodPayload": {
|
|
542
231
|
"location": "import",
|
|
543
|
-
"path": "
|
|
544
|
-
"id": "src/components
|
|
232
|
+
"path": "../../components",
|
|
233
|
+
"id": "src/components.d.ts::PaymentMethodPayload"
|
|
545
234
|
},
|
|
546
235
|
"MouseEvent": {
|
|
547
236
|
"location": "global",
|
|
548
237
|
"id": "global::MouseEvent"
|
|
549
|
-
},
|
|
550
|
-
"ComponentErrorCodes": {
|
|
551
|
-
"location": "import",
|
|
552
|
-
"path": "../../api",
|
|
553
|
-
"id": "src/api/index.ts::ComponentErrorCodes"
|
|
554
238
|
}
|
|
555
239
|
},
|
|
556
240
|
"return": "Promise<PaymentMethodPayload>"
|
|
@@ -560,42 +244,47 @@ export class TokenizePaymentMethod {
|
|
|
560
244
|
"tags": []
|
|
561
245
|
}
|
|
562
246
|
},
|
|
563
|
-
"
|
|
247
|
+
"fillBillingForm": {
|
|
564
248
|
"complexType": {
|
|
565
|
-
"signature": "() => Promise<
|
|
566
|
-
"parameters": [
|
|
249
|
+
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
250
|
+
"parameters": [{
|
|
251
|
+
"name": "fields",
|
|
252
|
+
"type": "BillingFormFields",
|
|
253
|
+
"docs": ""
|
|
254
|
+
}],
|
|
567
255
|
"references": {
|
|
568
256
|
"Promise": {
|
|
569
257
|
"location": "global",
|
|
570
258
|
"id": "global::Promise"
|
|
571
259
|
},
|
|
572
|
-
"
|
|
573
|
-
"location": "
|
|
574
|
-
"
|
|
260
|
+
"BillingFormFields": {
|
|
261
|
+
"location": "import",
|
|
262
|
+
"path": "../checkout/billing-form/billing-form-schema",
|
|
263
|
+
"id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
575
264
|
}
|
|
576
265
|
},
|
|
577
|
-
"return": "Promise<
|
|
266
|
+
"return": "Promise<void>"
|
|
578
267
|
},
|
|
579
268
|
"docs": {
|
|
580
269
|
"text": "",
|
|
581
270
|
"tags": []
|
|
582
271
|
}
|
|
583
272
|
},
|
|
584
|
-
"
|
|
273
|
+
"validate": {
|
|
585
274
|
"complexType": {
|
|
586
|
-
"signature": "() => Promise<
|
|
275
|
+
"signature": "() => Promise<ValidationResult>",
|
|
587
276
|
"parameters": [],
|
|
588
277
|
"references": {
|
|
589
278
|
"Promise": {
|
|
590
279
|
"location": "global",
|
|
591
280
|
"id": "global::Promise"
|
|
592
281
|
},
|
|
593
|
-
"
|
|
282
|
+
"ValidationResult": {
|
|
594
283
|
"location": "global",
|
|
595
|
-
"id": "global::
|
|
284
|
+
"id": "global::ValidationResult"
|
|
596
285
|
}
|
|
597
286
|
},
|
|
598
|
-
"return": "Promise<
|
|
287
|
+
"return": "Promise<ValidationResult>"
|
|
599
288
|
},
|
|
600
289
|
"docs": {
|
|
601
290
|
"text": "",
|
|
@@ -604,23 +293,4 @@ export class TokenizePaymentMethod {
|
|
|
604
293
|
}
|
|
605
294
|
};
|
|
606
295
|
}
|
|
607
|
-
static get elementRef() { return "host"; }
|
|
608
|
-
static get watchers() {
|
|
609
|
-
return [{
|
|
610
|
-
"propName": "disableCreditCard",
|
|
611
|
-
"methodName": "paymentMethodsChanged"
|
|
612
|
-
}, {
|
|
613
|
-
"propName": "disableBankAccount",
|
|
614
|
-
"methodName": "paymentMethodsChanged"
|
|
615
|
-
}];
|
|
616
|
-
}
|
|
617
|
-
static get listeners() {
|
|
618
|
-
return [{
|
|
619
|
-
"name": "radio-click",
|
|
620
|
-
"method": "handleRadioClick",
|
|
621
|
-
"target": undefined,
|
|
622
|
-
"capture": false,
|
|
623
|
-
"passive": false
|
|
624
|
-
}];
|
|
625
|
-
}
|
|
626
296
|
}
|
|
@@ -80,7 +80,7 @@ export class CustomPopper {
|
|
|
80
80
|
this.hideEvent.emit();
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h("div", { key: '
|
|
83
|
+
return (h("div", { key: '8f01710b6c352f39b35c5814cd6a876ab7e088c5' }, h("style", { key: 'e1885fe648eda95a8efa50a8f6cd46a09f59cc61' }, `
|
|
84
84
|
.popper-content {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
|
@@ -88,7 +88,7 @@ export class CustomPopper {
|
|
|
88
88
|
display: block;
|
|
89
89
|
z-index: 1030;
|
|
90
90
|
}
|
|
91
|
-
`), h("div", { key: '
|
|
91
|
+
`), h("div", { key: 'b2d5d36d62207fceda79ad2d1d0d0680bee6a366', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '406218fe16ad4b65e3e80ca467c3c49a462dee18' }))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "custom-popper"; }
|
|
94
94
|
static get properties() {
|
|
@@ -2,7 +2,7 @@ import { Host, h, } from "@stencil/core";
|
|
|
2
2
|
import { FormControlErrorText } from "./form-helpers/form-control-error-text";
|
|
3
3
|
export class FileInput {
|
|
4
4
|
render() {
|
|
5
|
-
return (h(Host, { key: '
|
|
5
|
+
return (h(Host, { key: '3e9e35e7c4c1166866e3cf94dd18bfda6d64222d', exportparts: "label,input,input-invalid" }, h("div", { key: 'f951ee548b004edd55957f2b34a8ab4cddb59bc7', class: "form-group d-flex flex-column" }, h("div", { key: '9b28774efa7c53871c23b2e66ea8b6434af3d07b', class: "d-flex align-items-start gap-2" }, h("label", { key: '783eb33e72b44bb42d01f7e474998d7fa2b58093', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'bbc906ac8482e5cf21af56cf841932b78cd5e015', helpText: this.helpText })), h("input", { key: '3670f289b59e5464c11ba8b5ef66af0a3a2d65ca', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: '11d9f49721bc8920c0fa917e6a406019aa29041e', errorText: this.errorText, name: this.name }))));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "form-control-file-v2"; }
|
|
8
8
|
static get properties() {
|
|
@@ -37,10 +37,10 @@ export class FileInput {
|
|
|
37
37
|
return part;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'c1d92b4464500d430ad828ce374b864f0abf79dc' }, h("div", { key: '7753e5875afe4c6da178a088721b62590e104039', class: "form-group d-flex flex-column" }, h("div", { key: '35732250f1da24e5d8af9d6c984360402aa8c749', class: "d-flex align-items-start gap-2" }, h("label", { key: '1dbdb4c74c82415714295d882a48ea3634265cae', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '132b4e5b01986aba2f1999db2f19373477b0af9d', helpText: this.helpText })), h("input", { key: '4c371be7c4d784fb7ba3dc3244aaab5ef7dea763', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
41
41
|
this.isFocused = false;
|
|
42
42
|
this.formControlBlur.emit();
|
|
43
|
-
} }), h(FormControlErrorText, { key: '
|
|
43
|
+
} }), h(FormControlErrorText, { key: 'f9c2a057b20ccf863331c90156a5a9df65bb85a6', errorText: this.errorText, name: this.name }))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "form-control-file"; }
|
|
46
46
|
static get properties() {
|
|
@@ -42,10 +42,10 @@ export class MonetaryInput {
|
|
|
42
42
|
return input;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'dd501963b2b4c85eecd6c78ac8a1c38d6e30020c' }, h("div", { key: '4c130a5d956ab1caaab521930d29d666dfbfcf67', class: "form-group d-flex flex-column" }, h("label", { key: '59a59b0589b3555efcb509ebb0ca34a3cc01ce3a', part: label, class: "form-label", htmlFor: this.name }, this.label), h(FormControlHelpText, { key: '0290105bb2d69ae83d1583f2495557e1e11b2939', name: this.name, helpText: this.helpText }), h("div", { key: 'cf80c69cc63137195ef179dd12f726f34bf35780', class: "input-group" }, h("span", { key: '5ecc2e144e7fe9fde5a64e48d8b8471d446fdb5d', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: '585da3cd389904d002a545c01b4322c9aa9ea74e', ref: el => this.formControl = el, id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
46
46
|
this.isFocused = false;
|
|
47
47
|
this.formControlBlur.emit();
|
|
48
|
-
}, onInput: (event) => this.updateInput(event.target.value), onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.inputPart, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled })), h(FormControlErrorText, { key: '
|
|
48
|
+
}, onInput: (event) => this.updateInput(event.target.value), onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.inputPart, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled })), h(FormControlErrorText, { key: '52a6fef8192278acb9a3eb854f5cea8834ed5d0f', errorText: this.errorText, name: this.name }))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "form-control-monetary"; }
|
|
51
51
|
static get properties() {
|
|
@@ -61,10 +61,10 @@ export class NumberInputMasked {
|
|
|
61
61
|
return input;
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '5252b2a1d8f6275cdaaa803c1c3a58294b35ef5c' }, h("div", { key: '7fe65f7797268ebc964a1b02ac61166254a0c409', class: "form-group d-flex flex-column" }, h("div", { key: '843bf1cf8ff7bf245760d0f65ea844768aa78ad2', class: "d-flex align-items-start gap-2" }, h("label", { key: '2ba6512c6a6dfa9aa4105f069809173f01262c60', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'ec179bc366c9286246134133510bcd35fd9de891', helpText: this.helpText })), h("input", { key: '546e50189acc596e7b1c1826edb7473084f93754', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
|
|
65
65
|
this.isFocused = false;
|
|
66
66
|
this.formControlBlur.emit();
|
|
67
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
67
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '6da86dcebd7e427cce68d7b88d07b94daec26f21', errorText: this.errorText, name: this.name }))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "form-control-number-masked"; }
|
|
70
70
|
static get properties() {
|
|
@@ -36,10 +36,10 @@ export class NumberInput {
|
|
|
36
36
|
return input;
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '4272ba30cf80097abd67fd184b927f4d41b3091b' }, h("div", { key: '567b2b04d354e5c3352dd42431c92bd84fdb4d9d', class: 'form-group d-flex flex-column' }, h("label", { key: '0d3ee096554d638896e03002ed908f7379e406fd', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '59ffd3ffe0beba8af97de7dd7ee12a2589c0d722', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
40
40
|
this.isFocused = false;
|
|
41
41
|
this.formControlBlur.emit();
|
|
42
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '
|
|
42
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '891b76120f5985007ad9101379a818e9e095cb46', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '974fb8971bd4a369fb3dc838a2af03ca11d1f650', errorText: this.errorText, name: this.name }))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "form-control-number"; }
|
|
45
45
|
static get properties() {
|
|
@@ -26,10 +26,10 @@ export class RadioInput {
|
|
|
26
26
|
return inputRadio;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '1b798d4c7a78475795a0b667839e82bbc402749c', class: 'form-group d-flex flex-column' }, h("div", { key: 'df37525372c220bb0fcbc54bc89d28b55c5b5407', class: "form-check" }, h("input", { key: 'af923ae2cb8677fd9e943c912ef9c117dc8eb9d5', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
30
30
|
this.isFocused = false;
|
|
31
31
|
this.formControlBlur.emit();
|
|
32
|
-
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '
|
|
32
|
+
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '06aec18092d38c386cb3dbeb7712a356f6615f82', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: '63356fa988cecc235ff01b7f9eb4c344d62a18c0', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '61c5b0fac0b21856660dd6b9c64c2202f82324b2', errorText: this.errorText, name: this.name })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "form-control-radio"; }
|
|
35
35
|
static get properties() {
|
|
@@ -36,10 +36,10 @@ export class TextInput {
|
|
|
36
36
|
return input;
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'bf68ea270c8dee6a9e572f0d2fdfc9308c8c106f' }, h("div", { key: '8e315377092c55c7c1a48c5528dba67f0d4a6f1c', class: "form-group d-flex flex-column" }, h("div", { key: 'c507734dadd643a306a22ce2e9df63a54422a7ab', class: "d-flex align-items-start gap-2" }, h("label", { key: '7e9ca4266d86bfb0e33e5951a07599a7a17c0c31', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'a3f1737b361144e9df92c706c6b5a1c4e1e2fc34', helpText: this.helpText })), h("input", { key: '657edb006b902ad815cd65e426d74a306328a0cb', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
40
40
|
this.isFocused = false;
|
|
41
41
|
this.formControlBlur.emit();
|
|
42
|
-
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
42
|
+
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '1ebb690623549e319972fe5ea0221966a9982cac', errorText: this.errorText, name: this.name }))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "form-control-text"; }
|
|
45
45
|
static get properties() {
|
|
@@ -38,10 +38,10 @@ export class TextInput {
|
|
|
38
38
|
return input;
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '1e41c053b809f4bda982850125e00e9897470d54' }, h("div", { key: 'c87bf55b62aea28d4eee19235c6a49ba5e14d9d7', class: "form-group d-flex flex-column" }, h("label", { key: 'be4dd8515c80b016e8d0cb88d8a50a53f570e239', part: label, class: "form-label", htmlFor: this.name }, this.label), h("textarea", { key: 'da24a7b98a098a71683a79bc1a4c77da64d9f3dc', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
42
42
|
this.isFocused = false;
|
|
43
43
|
this.formControlBlur.emit();
|
|
44
|
-
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: '
|
|
44
|
+
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: '6af10143701fec60501ebc5bcbff614638d3c9a9', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '3a56898b53e89041e5947d3ffcd9f827a6b925fe', errorText: this.errorText, name: this.name }))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "form-control-textarea"; }
|
|
47
47
|
static get properties() {
|
|
@@ -73,7 +73,7 @@ export class HiddenInput {
|
|
|
73
73
|
return input;
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '1058a3fea9276fe3f9eb3158365a839603e06532' }, h("input", { key: '856ad55446d13a3a8d935e90bbdba5a0ea77b706', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "hidden-input"; }
|
|
79
79
|
static get states() {
|
|
@@ -77,10 +77,10 @@ export class IframeInput {
|
|
|
77
77
|
return params;
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '0c3f4427120c3405bf47f60dd3bde638f0c3176e', class: "form-group d-flex flex-column" }, h("div", { key: '6ba2a62c8df9db7b01341ea06fbe1df25a87e604', style: {
|
|
81
81
|
visibility: this.iframeLoaded ? 'visible' : 'hidden',
|
|
82
82
|
height: this.iframeLoaded ? 'auto' : '0',
|
|
83
|
-
} }, h("label", { key: '
|
|
83
|
+
} }, h("label", { key: 'cc7dfd2299382e473f6ce279c5ffe61794d56e59', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: '62406d7581a21dcdec52c993edc2a03cd8fce1ef', class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }, h("iframe", { key: '7c804be15e9029e003684bea21f93578269bdac7', id: this.inputId, name: this.inputId, src: `${this.iframeOrigin}?${this.urlParams}`, ref: el => {
|
|
84
84
|
this.iframeElement = el;
|
|
85
85
|
this.initializeFrameCommunicationService();
|
|
86
86
|
}, width: "100%", onLoad: () => {
|
|
@@ -90,7 +90,7 @@ export class IframeInput {
|
|
|
90
90
|
this.iframeLoaded.emit();
|
|
91
91
|
}
|
|
92
92
|
}, this.iframeElement);
|
|
93
|
-
} })), h(FormControlErrorText, { key: '
|
|
93
|
+
} })), h(FormControlErrorText, { key: '2cb6be114be8cea65d880b6c21eacdf46052468c', errorText: this.errorText, name: this.inputId }))));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "iframe-input"; }
|
|
96
96
|
static get properties() {
|