@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
package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js
ADDED
|
@@ -0,0 +1,626 @@
|
|
|
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
|
+
export class InternalTokenizePaymentMethod {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.computedHideSubmitButton = false;
|
|
22
|
+
this.isLoading = false;
|
|
23
|
+
this.submitButtonText = 'Submit';
|
|
24
|
+
}
|
|
25
|
+
paymentMethodsChanged() {
|
|
26
|
+
this.setDefaultSelectedPaymentMethod();
|
|
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 };
|
|
46
|
+
}
|
|
47
|
+
async fillBillingForm(fields) {
|
|
48
|
+
var _a;
|
|
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
|
+
}
|
|
87
|
+
}
|
|
88
|
+
async validate() {
|
|
89
|
+
if (!this.areFormsReady()) {
|
|
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) }));
|
|
248
|
+
}
|
|
249
|
+
render() {
|
|
250
|
+
return (h(StyledHost, { key: 'e1ee33f08d3eaff9a2951bd30ef9814a5d959b35' }, h("form", { key: 'df73d7965968c0efc3ee2b35a9a85d551915e5a1' }, h("fieldset", { key: '2967ed65f1c0af42082a8b7c255db5fdc1c78019' }, h("div", { key: 'f45b8e074f39ec6abefc8f7e30bdf0ae57b1272c', class: "row gy-3" }, h("div", { key: 'fe9c90b34d60802f4d0dc51863874151f4a17b2b', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'ff1b8332d70fe68c3d3140c5a173dd8b419b6a8e', class: "col-12" }, h("justifi-button", { key: 'bf2ced1a5164a9c9af2bf2c5b750c5f9734dc86b', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
251
|
+
}
|
|
252
|
+
static get is() { return "internal-tokenize-payment-method"; }
|
|
253
|
+
static get properties() {
|
|
254
|
+
return {
|
|
255
|
+
"accountId": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"mutable": false,
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "string",
|
|
260
|
+
"resolved": "string",
|
|
261
|
+
"references": {}
|
|
262
|
+
},
|
|
263
|
+
"required": false,
|
|
264
|
+
"optional": true,
|
|
265
|
+
"docs": {
|
|
266
|
+
"tags": [],
|
|
267
|
+
"text": ""
|
|
268
|
+
},
|
|
269
|
+
"getter": false,
|
|
270
|
+
"setter": false,
|
|
271
|
+
"reflect": false,
|
|
272
|
+
"attribute": "account-id"
|
|
273
|
+
},
|
|
274
|
+
"authToken": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"mutable": false,
|
|
277
|
+
"complexType": {
|
|
278
|
+
"original": "string",
|
|
279
|
+
"resolved": "string",
|
|
280
|
+
"references": {}
|
|
281
|
+
},
|
|
282
|
+
"required": false,
|
|
283
|
+
"optional": true,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": ""
|
|
287
|
+
},
|
|
288
|
+
"getter": false,
|
|
289
|
+
"setter": false,
|
|
290
|
+
"reflect": false,
|
|
291
|
+
"attribute": "auth-token"
|
|
292
|
+
},
|
|
293
|
+
"disableBankAccount": {
|
|
294
|
+
"type": "boolean",
|
|
295
|
+
"mutable": false,
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "boolean",
|
|
298
|
+
"resolved": "boolean",
|
|
299
|
+
"references": {}
|
|
300
|
+
},
|
|
301
|
+
"required": false,
|
|
302
|
+
"optional": true,
|
|
303
|
+
"docs": {
|
|
304
|
+
"tags": [],
|
|
305
|
+
"text": ""
|
|
306
|
+
},
|
|
307
|
+
"getter": false,
|
|
308
|
+
"setter": false,
|
|
309
|
+
"reflect": false,
|
|
310
|
+
"attribute": "disable-bank-account"
|
|
311
|
+
},
|
|
312
|
+
"disableCreditCard": {
|
|
313
|
+
"type": "boolean",
|
|
314
|
+
"mutable": false,
|
|
315
|
+
"complexType": {
|
|
316
|
+
"original": "boolean",
|
|
317
|
+
"resolved": "boolean",
|
|
318
|
+
"references": {}
|
|
319
|
+
},
|
|
320
|
+
"required": false,
|
|
321
|
+
"optional": true,
|
|
322
|
+
"docs": {
|
|
323
|
+
"tags": [],
|
|
324
|
+
"text": ""
|
|
325
|
+
},
|
|
326
|
+
"getter": false,
|
|
327
|
+
"setter": false,
|
|
328
|
+
"reflect": false,
|
|
329
|
+
"attribute": "disable-credit-card"
|
|
330
|
+
},
|
|
331
|
+
"hideBankAccountBillingForm": {
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"mutable": false,
|
|
334
|
+
"complexType": {
|
|
335
|
+
"original": "boolean",
|
|
336
|
+
"resolved": "boolean",
|
|
337
|
+
"references": {}
|
|
338
|
+
},
|
|
339
|
+
"required": false,
|
|
340
|
+
"optional": true,
|
|
341
|
+
"docs": {
|
|
342
|
+
"tags": [],
|
|
343
|
+
"text": ""
|
|
344
|
+
},
|
|
345
|
+
"getter": false,
|
|
346
|
+
"setter": false,
|
|
347
|
+
"reflect": false,
|
|
348
|
+
"attribute": "hide-bank-account-billing-form"
|
|
349
|
+
},
|
|
350
|
+
"hideCardBillingForm": {
|
|
351
|
+
"type": "boolean",
|
|
352
|
+
"mutable": false,
|
|
353
|
+
"complexType": {
|
|
354
|
+
"original": "boolean",
|
|
355
|
+
"resolved": "boolean",
|
|
356
|
+
"references": {}
|
|
357
|
+
},
|
|
358
|
+
"required": false,
|
|
359
|
+
"optional": true,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": ""
|
|
363
|
+
},
|
|
364
|
+
"getter": false,
|
|
365
|
+
"setter": false,
|
|
366
|
+
"reflect": false,
|
|
367
|
+
"attribute": "hide-card-billing-form"
|
|
368
|
+
},
|
|
369
|
+
"hideSubmitButton": {
|
|
370
|
+
"type": "boolean",
|
|
371
|
+
"mutable": false,
|
|
372
|
+
"complexType": {
|
|
373
|
+
"original": "boolean",
|
|
374
|
+
"resolved": "boolean",
|
|
375
|
+
"references": {}
|
|
376
|
+
},
|
|
377
|
+
"required": false,
|
|
378
|
+
"optional": true,
|
|
379
|
+
"docs": {
|
|
380
|
+
"tags": [],
|
|
381
|
+
"text": ""
|
|
382
|
+
},
|
|
383
|
+
"getter": false,
|
|
384
|
+
"setter": false,
|
|
385
|
+
"reflect": false,
|
|
386
|
+
"attribute": "hide-submit-button"
|
|
387
|
+
},
|
|
388
|
+
"paymentMethodGroupId": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"mutable": false,
|
|
391
|
+
"complexType": {
|
|
392
|
+
"original": "string",
|
|
393
|
+
"resolved": "string",
|
|
394
|
+
"references": {}
|
|
395
|
+
},
|
|
396
|
+
"required": false,
|
|
397
|
+
"optional": true,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": ""
|
|
401
|
+
},
|
|
402
|
+
"getter": false,
|
|
403
|
+
"setter": false,
|
|
404
|
+
"reflect": false,
|
|
405
|
+
"attribute": "payment-method-group-id"
|
|
406
|
+
},
|
|
407
|
+
"submitButtonText": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"mutable": false,
|
|
410
|
+
"complexType": {
|
|
411
|
+
"original": "string",
|
|
412
|
+
"resolved": "string",
|
|
413
|
+
"references": {}
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"optional": true,
|
|
417
|
+
"docs": {
|
|
418
|
+
"tags": [],
|
|
419
|
+
"text": ""
|
|
420
|
+
},
|
|
421
|
+
"getter": false,
|
|
422
|
+
"setter": false,
|
|
423
|
+
"reflect": false,
|
|
424
|
+
"attribute": "submit-button-text",
|
|
425
|
+
"defaultValue": "'Submit'"
|
|
426
|
+
},
|
|
427
|
+
"savePaymentMethodLabel": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"mutable": false,
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "string",
|
|
432
|
+
"resolved": "string",
|
|
433
|
+
"references": {}
|
|
434
|
+
},
|
|
435
|
+
"required": false,
|
|
436
|
+
"optional": true,
|
|
437
|
+
"docs": {
|
|
438
|
+
"tags": [],
|
|
439
|
+
"text": ""
|
|
440
|
+
},
|
|
441
|
+
"getter": false,
|
|
442
|
+
"setter": false,
|
|
443
|
+
"reflect": false,
|
|
444
|
+
"attribute": "save-payment-method-label"
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
}
|
|
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
|
+
static get methods() {
|
|
501
|
+
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
|
+
"tokenizePaymentMethod": {
|
|
529
|
+
"complexType": {
|
|
530
|
+
"signature": "(event?: MouseEvent) => Promise<PaymentMethodPayload>",
|
|
531
|
+
"parameters": [{
|
|
532
|
+
"name": "event",
|
|
533
|
+
"type": "MouseEvent",
|
|
534
|
+
"docs": ""
|
|
535
|
+
}],
|
|
536
|
+
"references": {
|
|
537
|
+
"Promise": {
|
|
538
|
+
"location": "global",
|
|
539
|
+
"id": "global::Promise"
|
|
540
|
+
},
|
|
541
|
+
"PaymentMethodPayload": {
|
|
542
|
+
"location": "import",
|
|
543
|
+
"path": "../checkout/payment-method-payload",
|
|
544
|
+
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
545
|
+
},
|
|
546
|
+
"MouseEvent": {
|
|
547
|
+
"location": "global",
|
|
548
|
+
"id": "global::MouseEvent"
|
|
549
|
+
},
|
|
550
|
+
"ComponentErrorCodes": {
|
|
551
|
+
"location": "import",
|
|
552
|
+
"path": "../../api",
|
|
553
|
+
"id": "src/api/index.ts::ComponentErrorCodes"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
"return": "Promise<PaymentMethodPayload>"
|
|
557
|
+
},
|
|
558
|
+
"docs": {
|
|
559
|
+
"text": "",
|
|
560
|
+
"tags": []
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"validate": {
|
|
564
|
+
"complexType": {
|
|
565
|
+
"signature": "() => Promise<ValidationResult>",
|
|
566
|
+
"parameters": [],
|
|
567
|
+
"references": {
|
|
568
|
+
"Promise": {
|
|
569
|
+
"location": "global",
|
|
570
|
+
"id": "global::Promise"
|
|
571
|
+
},
|
|
572
|
+
"ValidationResult": {
|
|
573
|
+
"location": "global",
|
|
574
|
+
"id": "global::ValidationResult"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"return": "Promise<ValidationResult>"
|
|
578
|
+
},
|
|
579
|
+
"docs": {
|
|
580
|
+
"text": "",
|
|
581
|
+
"tags": []
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"tokenize": {
|
|
585
|
+
"complexType": {
|
|
586
|
+
"signature": "() => Promise<any>",
|
|
587
|
+
"parameters": [],
|
|
588
|
+
"references": {
|
|
589
|
+
"Promise": {
|
|
590
|
+
"location": "global",
|
|
591
|
+
"id": "global::Promise"
|
|
592
|
+
},
|
|
593
|
+
"TokenizeConfig": {
|
|
594
|
+
"location": "global",
|
|
595
|
+
"id": "global::TokenizeConfig"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"return": "Promise<any>"
|
|
599
|
+
},
|
|
600
|
+
"docs": {
|
|
601
|
+
"text": "",
|
|
602
|
+
"tags": []
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
}
|
|
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
|
+
}
|