@justifi/webcomponents 6.0.0-rc.1 → 6.0.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-CPuq_15r.js → Api-DyimBzKT.js} +2 -2
- package/dist/cjs/{Refund-CqWNG8sx.js → Refund-BefKONu4.js} +6 -3
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-CMmPvqtE.js → badge-CcJ9H85-.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +9 -6
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business.service-C3BdUPlm.js → business.service-BB6zl4Gc.js} +2 -2
- package/dist/cjs/{button-CfVQSysQ.js → button-DsHDMHaa.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +9 -6
- package/dist/cjs/{check-pkg-version-D_lazhBQ.js → check-pkg-version-B85-DAz3.js} +9 -3
- package/dist/cjs/{checkout.service-B0ZmvWwI.js → checkout.service-B-R80p4f.js} +2 -2
- package/dist/cjs/checkout.store-CDQXaOcP.js +90 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{payments-list-params-state-BNbT1fuJ.js → checkouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{checkouts-table-UN5gPpQ_.js → checkouts-table-DjMdEiEW.js} +3 -3
- package/dist/cjs/{config-state-5xZf-jax.js → config-state-BBOZIS8x.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-DsPEAcDn.js → dispute.service-B5tITFAh.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-HM0zQerh.js → form-control-error-text-B-P5UDhm.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-help-text-5KIUw1IP.js → form-control-help-text-JoZjhb9m.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +3 -3
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-payment-details-DtCXaIMx.js → get-payment-details-BfgRmNL4.js} +2 -2
- package/dist/cjs/{get-subaccounts-CwCH5rC8.js → get-subaccounts-Bnfv2tEN.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{header-1-DD41iNlG.js → header-1-DRA3f4Jh.js} +1 -1
- package/dist/cjs/{header-3-D9Wa0IfT.js → header-3-sOdOpfx3.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
- package/dist/cjs/{index-Yd9aLenr.js → index-B32W0A3m.js} +1 -1
- package/dist/cjs/{index-dm_GlYlb.js → index-C9hBD-32.js} +2 -2
- package/dist/cjs/index-D-dD-aC2.js +30 -0
- package/dist/cjs/index.cjs.js +8 -0
- package/dist/cjs/{insurance-state-Cyva9u6S.js → insurance-state-d2thhXUX.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +7 -7
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +8 -8
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +782 -0
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +21 -19
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1421 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +26 -48
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -15
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -9
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -13
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -13
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -12
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +9 -9
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-Cp_7Ls2E.js → package-BL9z319y.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +15 -15
- package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
- package/dist/cjs/{payment.service-1H0VC3LV.js → payment.service-aR96UW5e.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +12 -12
- package/dist/cjs/{payouts-list-params-state-BNbT1fuJ.js → payments-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payments-status-PB63klt3.js → payments-status-DXRh_ekP.js} +2 -2
- package/dist/cjs/{payments-table-quF0NnsS.js → payments-table-BE8u0-i0.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +11 -11
- package/dist/cjs/{payout.service-CIZFU-hV.js → payout.service-6Cl_yXXQ.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +12 -12
- package/dist/cjs/{checkouts-list-params-state-BNbT1fuJ.js → payouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payouts-status-Bk1JFzbP.js → payouts-status-DxTQZv3i.js} +2 -2
- package/dist/cjs/{payouts-table-D_CCTR_k.js → payouts-table-BbydhJUr.js} +3 -3
- package/dist/cjs/{skeleton-x-GSs3xk.js → skeleton-C7DQRD6r.js} +1 -1
- package/dist/cjs/{spinner-Kb1BFvnL.js → spinner-jmeA44Ee.js} +1 -1
- package/dist/cjs/{styled-host-CqQYxX-w.js → styled-host-BfVJlAsJ.js} +1 -1
- package/dist/cjs/{table-BJVUhh3s.js → table-Ccdrt0v_.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{terminal-orders-list-params-state-BNbT1fuJ.js → terminal-orders-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{terminal-orders-table-0O5jtzYj.js → terminal-orders-table-B4HjERrK.js} +5 -5
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-DUlyMTrX.js → terminal.service-D1FAYZzd.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +11 -11
- package/dist/cjs/terminals-list-params-state-Cewmin_p.js +22 -0
- package/dist/cjs/{terminals-table-C2BNRUS5.js → terminals-table-C79Xc4FI.js} +3 -3
- package/dist/cjs/{utils-Df-pajL7.js → utils-Bzyj4qWe.js} +1 -1
- package/dist/cjs/{utils-BaGF9XIe.js → utils-ChCUZgUy.js} +6 -0
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/ApplePay.js +119 -0
- package/dist/collection/api/Payment.js +5 -2
- package/dist/collection/api/index.js +1 -2
- package/dist/collection/api/services/apple-pay.service.js +293 -0
- package/dist/collection/api/services/plaid.service.js +20 -0
- package/dist/collection/assets/plaid-icon.svg +1 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +6 -3
- package/dist/collection/components/checkout/card-form/card-form.js +6 -3
- package/dist/collection/components/checkout/checkout.js +17 -39
- package/dist/collection/components/checkout/save-new-payment-method.js +26 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -0
- package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +263 -150
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +509 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +853 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +125 -0
- package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +7 -5
- package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +25 -8
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +82 -34
- package/dist/collection/index.js +1 -0
- package/dist/collection/store/checkout.store.js +48 -2
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +5 -5
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +4 -4
- package/dist/collection/utils/check-pkg-version.js +6 -0
- package/dist/collection/utils/utils.js +5 -0
- package/dist/docs.json +1061 -212
- package/dist/esm/{Api-N_veT2p6.js → Api-DAWuvzbl.js} +2 -2
- package/dist/esm/{Refund-Di6J0oN2.js → Refund-CVh70dXA.js} +7 -4
- package/dist/esm/additional-questions-details_5.entry.js +4 -4
- package/dist/esm/{badge-D_mzXSCQ.js → badge-DSYSJcRy.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +8 -8
- package/dist/esm/bank-account-form.entry.js +10 -7
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-Bdvhdc_d.js → business.service-cQrH5BqF.js} +2 -2
- package/dist/esm/{button-CeR8qVS3.js → button-CpllL0At.js} +2 -2
- package/dist/esm/card-form.entry.js +10 -7
- package/dist/esm/{check-pkg-version-Bb69ihTN.js → check-pkg-version-CeFbumLK.js} +9 -3
- package/dist/esm/{checkout.service-XgGFa7H8.js → checkout.service-Bbgi1I6V.js} +2 -2
- package/dist/esm/checkout.store-CKOWX2jL.js +85 -0
- package/dist/esm/checkouts-list-core.entry.js +12 -12
- package/dist/esm/{checkouts-list-params-state-SMXQIZTt.js → checkouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{checkouts-table-CFZYoYjn.js → checkouts-table-Ddf2I-Ul.js} +4 -4
- package/dist/esm/{config-state-BrllxiM0.js → config-state-DZeVYerv.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +4 -4
- package/dist/esm/{dispute.service-CKPcmwhH.js → dispute.service-CrZsNDW8.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-D3ZwkOv-.js → form-control-error-text-R7U07nTg.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/{form-control-help-text-C39ZW65w.js → form-control-help-text-CRLH-2f7.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +3 -3
- package/dist/esm/form-control-number.entry.js +4 -4
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_2.entry.js +5 -5
- package/dist/esm/{get-payment-details-Dt-dr16k.js → get-payment-details-0VzpMNY9.js} +2 -2
- package/dist/esm/{get-subaccounts-BsoVLANw.js → get-subaccounts-9UMbyFiT.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +6 -6
- package/dist/esm/{header-1-E-hEi3wF.js → header-1-3M9If0gM.js} +2 -2
- package/dist/esm/{header-3-Dm7M85kz.js → header-3-CWa41YWq.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/{index-B9me4yN2.js → index-B_KxSZIF.js} +1 -1
- package/dist/esm/{index-kpoIU4v_.js → index-Bn7inNWG.js} +2 -2
- package/dist/esm/index-CbL73B6U.js +30 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/{insurance-state-CB4l8sOv.js → insurance-state-CTalqbNa.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/justifi-apple-pay.entry.js +780 -0
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +22 -20
- package/dist/esm/justifi-business-details.entry.js +11 -11
- package/dist/esm/justifi-business-form.entry.js +14 -14
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +1413 -0
- package/dist/esm/justifi-checkout.entry.js +26 -48
- package/dist/esm/justifi-checkouts-list-filters.entry.js +9 -9
- package/dist/esm/justifi-checkouts-list.entry.js +15 -15
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +10 -10
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
- package/dist/esm/justifi-gross-payment-chart.entry.js +10 -10
- package/dist/esm/justifi-order-terminals.entry.js +14 -14
- package/dist/esm/justifi-owner-form_3.entry.js +9 -9
- package/dist/esm/justifi-payment-details.entry.js +12 -12
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +15 -15
- package/dist/esm/justifi-payout-details.entry.js +11 -11
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +16 -16
- package/dist/esm/justifi-refund-payment.entry.js +14 -14
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +18 -13
- package/dist/esm/justifi-skeleton.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
- package/dist/esm/justifi-terminals-list.entry.js +15 -15
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-O3LY2Da6.js → package-CxLeEBSa.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-CfF8KKwx.js → parts-RvUQ__Pq.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -16
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/{payment.service-BWO84KlP.js → payment.service-TxyxCg0E.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +13 -13
- package/dist/esm/{payments-list-params-state-SMXQIZTt.js → payments-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payments-status-XoZrlbiZ.js → payments-status-5orNU2Rd.js} +2 -2
- package/dist/esm/{payments-table-Dh4P9mTb.js → payments-table-gkJV5GNK.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -12
- package/dist/esm/{payout.service-Cld6TS5W.js → payout.service-BOwZ4wWh.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +13 -13
- package/dist/esm/{payouts-list-params-state-SMXQIZTt.js → payouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payouts-status-Qm2jZG1-.js → payouts-status-CZPwa2AE.js} +2 -2
- package/dist/esm/{payouts-table-DMVAZp-r.js → payouts-table-0PtktGRd.js} +4 -4
- package/dist/esm/{skeleton-DrHwsgs_.js → skeleton-qMb0_Cjy.js} +2 -2
- package/dist/esm/{spinner-XBq6mVJW.js → spinner-DUzyWLhj.js} +2 -2
- package/dist/esm/{styled-host-B_XBaM7z.js → styled-host-CTAGIN84.js} +1 -1
- package/dist/esm/{table-qqt2Ew5y.js → table-Br3n9Xu-.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +12 -12
- package/dist/esm/{terminal-orders-list-params-state-SMXQIZTt.js → terminal-orders-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{terminal-orders-table-BN4Co4T8.js → terminal-orders-table-DTBSIMlJ.js} +6 -6
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-DmYCUQcA.js → terminal.service-E6dZlM43.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +12 -12
- package/dist/esm/terminals-list-params-state-D8tzsGR_.js +16 -0
- package/dist/esm/{terminals-table-C8LczeG_.js → terminals-table-TGUKTi7I.js} +4 -4
- package/dist/esm/{utils-lb8p1Exq.js → utils-BscIVFn8.js} +6 -1
- package/dist/esm/{utils-kWaZhFAd.js → utils-Dg6gMUTv.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/Analytics.js +6 -0
- package/dist/module/ModularCheckout.js +30 -0
- package/dist/module/Refund.js +5 -2
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form.js +5 -2
- package/dist/module/bank-account.js +2 -2
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form.js +5 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +49 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.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-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/index.js +1 -0
- package/dist/module/justifi-apple-pay.d.ts +11 -0
- package/dist/module/justifi-apple-pay.js +811 -0
- package/dist/module/justifi-checkout.js +63 -75
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-order-terminals.js +2 -2
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
- package/dist/module/justifi-plaid-payment-method.js +6 -0
- package/dist/module/justifi-radio-list-item2.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +5 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +214 -106
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +635 -0
- package/dist/module/plaid.service.js +26 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +3 -1
- package/dist/module/saved-payment-methods.js +7 -5
- package/dist/module/sezzle-payment-method.js +14 -22
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/module/tokenize-payment-method.js +45 -34
- package/dist/module/utils2.js +6 -1
- package/dist/types/api/ApplePay.d.ts +196 -0
- package/dist/types/api/Checkout.d.ts +9 -14
- package/dist/types/api/Payment.d.ts +4 -3
- package/dist/types/api/index.d.ts +2 -2
- package/dist/types/api/services/apple-pay.service.d.ts +55 -0
- package/dist/types/api/services/plaid.service.d.ts +12 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +1 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +6 -7
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +31 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +14 -6
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +39 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +79 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +8 -6
- package/dist/types/components.d.ts +182 -19
- package/dist/types/index.d.ts +3 -0
- package/dist/types/store/checkout.store.d.ts +16 -3
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/p-06283633.entry.js +1 -0
- package/dist/webcomponents/{p-Dvxpy_P1.js → p-0Om7jLBs.js} +1 -1
- package/dist/webcomponents/{p-283cd78b.entry.js → p-0ff04742.entry.js} +1 -1
- package/dist/webcomponents/p-19c7e6a5.entry.js +1 -0
- package/dist/webcomponents/p-2430761e.entry.js +1 -0
- package/dist/webcomponents/{p-f01953ea.entry.js → p-2953b537.entry.js} +1 -1
- package/dist/webcomponents/{p-f47095cd.entry.js → p-29d05416.entry.js} +1 -1
- package/dist/webcomponents/p-2b39ab97.entry.js +1 -0
- package/dist/webcomponents/{p-7c51805a.entry.js → p-2d14f144.entry.js} +1 -1
- package/dist/webcomponents/{p-1d53f0b8.entry.js → p-2f658457.entry.js} +1 -1
- package/dist/webcomponents/{p-08ea8974.entry.js → p-33311d41.entry.js} +1 -1
- package/dist/webcomponents/p-35ae3497.entry.js +1 -0
- package/dist/webcomponents/{p-6849bf8e.entry.js → p-3fe420c4.entry.js} +1 -1
- package/dist/webcomponents/p-402caa84.entry.js +1 -0
- package/dist/webcomponents/p-406ebea6.entry.js +1 -0
- package/dist/webcomponents/p-42d4ea58.entry.js +1 -0
- package/dist/webcomponents/{p-4ba144ac.entry.js → p-431ba789.entry.js} +1 -1
- package/dist/webcomponents/{p-a8205044.entry.js → p-44450a94.entry.js} +1 -1
- package/dist/webcomponents/{p-28c7bef7.entry.js → p-46b6142b.entry.js} +4 -4
- package/dist/webcomponents/p-48e32b40.entry.js +1 -0
- package/dist/webcomponents/p-4c3d8cef.entry.js +1 -0
- package/dist/webcomponents/p-4e1653c2.entry.js +1 -0
- package/dist/webcomponents/{p-df199396.entry.js → p-522e7b24.entry.js} +1 -1
- package/dist/webcomponents/p-52cbd667.entry.js +1 -0
- package/dist/webcomponents/p-537aa971.entry.js +1 -0
- package/dist/webcomponents/{p-ae4297dd.entry.js → p-53daaca6.entry.js} +1 -1
- package/dist/webcomponents/{p-7322c86e.entry.js → p-5c17360c.entry.js} +1 -1
- package/dist/webcomponents/{p-6e18d13f.entry.js → p-613421d4.entry.js} +1 -1
- package/dist/webcomponents/p-62d3d62c.entry.js +1 -0
- package/dist/webcomponents/p-63300c63.entry.js +1 -0
- package/dist/webcomponents/p-65ed60bf.entry.js +1 -0
- package/dist/webcomponents/{p-bea4309d.entry.js → p-67332ff8.entry.js} +1 -1
- package/dist/webcomponents/{p-48bccf3b.entry.js → p-70f51444.entry.js} +1 -1
- package/dist/webcomponents/p-7186f4a7.entry.js +1 -0
- package/dist/webcomponents/p-71f9c48a.entry.js +1 -0
- package/dist/webcomponents/p-778e9fe9.entry.js +1 -0
- package/dist/webcomponents/p-77948b46.entry.js +1 -0
- package/dist/webcomponents/{p-b0bfa20f.entry.js → p-7cf87637.entry.js} +1 -1
- package/dist/webcomponents/{p-I8XpD1TX.js → p-7s1gsXM5.js} +1 -1
- package/dist/webcomponents/{p-3d85d046.entry.js → p-80331983.entry.js} +1 -1
- package/dist/webcomponents/{p-79055216.entry.js → p-8687e5d6.entry.js} +1 -1
- package/dist/webcomponents/{p-a7d5e434.entry.js → p-8d743490.entry.js} +1 -1
- package/dist/webcomponents/{p-15777cfe.entry.js → p-8ff839a4.entry.js} +1 -1
- package/dist/webcomponents/{p-57143978.entry.js → p-95cbb655.entry.js} +1 -1
- package/dist/webcomponents/{p-904a95e5.entry.js → p-9be67b19.entry.js} +1 -1
- package/dist/webcomponents/p-9c997d0b.entry.js +1 -0
- package/dist/webcomponents/{p-c3a2c619.entry.js → p-9c9a4eb7.entry.js} +1 -1
- package/dist/webcomponents/p-9d37b85f.entry.js +1 -0
- package/dist/webcomponents/p-9fc567d8.entry.js +1 -0
- package/dist/webcomponents/p-B71k50jz.js +1 -0
- package/dist/webcomponents/p-BF4U0yVj.js +1 -0
- package/dist/webcomponents/{p-zdIeCUeh.js → p-BHf9IqGw.js} +1 -1
- package/dist/webcomponents/p-BQ2TIFoY.js +1 -0
- package/dist/webcomponents/p-BSt6p1oq.js +1 -0
- package/dist/webcomponents/p-BY1mRAvj.js +1 -0
- package/dist/webcomponents/{p-YND5pTuF.js → p-Bb-6bNcq.js} +1 -1
- package/dist/webcomponents/p-BbZwa5UI.js +1 -0
- package/dist/webcomponents/p-BdKWuCys.js +1 -0
- package/dist/webcomponents/p-BfM6X7lF.js +1 -0
- package/dist/webcomponents/{p-BbYVgLcf.js → p-BjVfIXWC.js} +1 -1
- package/dist/webcomponents/{p-kpoIU4v_.js → p-Bn7inNWG.js} +1 -1
- package/dist/webcomponents/{p-BisQ61nK.js → p-BsGE9UDv.js} +1 -1
- package/dist/webcomponents/{p-BeszVz87.js → p-C5id7s_l.js} +1 -1
- package/dist/webcomponents/{p-CsNubTqD.js → p-CAJnQLZF.js} +1 -1
- package/dist/webcomponents/{p-Bz164TKZ.js → p-CB0mCq1M.js} +1 -1
- package/dist/webcomponents/p-CY7N7-0P.js +1 -0
- package/dist/webcomponents/p-CaAVuW6B.js +1 -0
- package/dist/webcomponents/p-Cb0FhuyU.js +1 -0
- package/dist/webcomponents/p-CbL73B6U.js +1 -0
- package/dist/webcomponents/p-CpaS1Lex.js +1 -0
- package/dist/webcomponents/p-CxLeEBSa.js +1 -0
- package/dist/webcomponents/p-DD0Mvpeu.js +1 -0
- package/dist/webcomponents/p-DDUmOl3v.js +1 -0
- package/dist/webcomponents/p-DIDloHpm.js +1 -0
- package/dist/webcomponents/{p-UD2JhYS2.js → p-DK2sRMlx.js} +1 -1
- package/dist/webcomponents/{p-DO3INvI2.js → p-DNo0OPOP.js} +1 -1
- package/dist/webcomponents/{p-BTkXk7ol.js → p-DRXvcLy9.js} +1 -1
- package/dist/webcomponents/p-Da3idOSV.js +1 -0
- package/dist/webcomponents/p-Dgflaz6J.js +1 -0
- package/dist/webcomponents/{p-9y5MOK55.js → p-DhGNCW2f.js} +1 -1
- package/dist/webcomponents/p-DsZZxRXY.js +1 -0
- package/dist/webcomponents/{p-CRFzwZW6.js → p-DxqCFDtF.js} +1 -1
- package/dist/webcomponents/p-ED_TzwCp.js +1 -0
- package/dist/webcomponents/p-JyHlIFWl.js +1 -0
- package/dist/webcomponents/{p-CfF8KKwx.js → p-RvUQ__Pq.js} +1 -1
- package/dist/webcomponents/{p-DWUnL_zj.js → p-Wh1V0gvF.js} +1 -1
- package/dist/webcomponents/{p-36d72e2d.entry.js → p-a6748a1d.entry.js} +1 -1
- package/dist/webcomponents/{p-ded22005.entry.js → p-a7ac285c.entry.js} +1 -1
- package/dist/webcomponents/{p-40ba49e4.entry.js → p-aa6194ef.entry.js} +1 -1
- package/dist/webcomponents/{p-463ae23a.entry.js → p-abbf14b5.entry.js} +1 -1
- package/dist/webcomponents/p-bc45aa92.entry.js +1 -0
- package/dist/webcomponents/p-bc81d165.entry.js +1 -0
- package/dist/webcomponents/p-c4c88660.entry.js +1 -0
- package/dist/webcomponents/p-c8bed49a.entry.js +1 -0
- package/dist/webcomponents/{p-5e10aa65.entry.js → p-d46dbb83.entry.js} +1 -1
- package/dist/webcomponents/{p-cebe360b.entry.js → p-e13d6ed3.entry.js} +1 -1
- package/dist/webcomponents/p-e6d1ed81.entry.js +1 -0
- package/dist/webcomponents/p-e7b66120.entry.js +1 -0
- package/dist/webcomponents/p-e9a5c837.entry.js +1 -0
- package/dist/webcomponents/p-eP3fmhta.js +1 -0
- package/dist/webcomponents/p-eb2d9e5b.entry.js +1 -0
- package/dist/webcomponents/{p-d77908ca.entry.js → p-ed901f9d.entry.js} +1 -1
- package/dist/webcomponents/{p-c5b48e8d.entry.js → p-f1cba43c.entry.js} +1 -1
- package/dist/webcomponents/{p-828a61b9.entry.js → p-f3c312b1.entry.js} +1 -1
- package/dist/webcomponents/p-f499a8de.entry.js +1 -0
- package/dist/webcomponents/{p-818f51fd.entry.js → p-f680e617.entry.js} +1 -1
- package/dist/webcomponents/p-f849a34e.entry.js +1 -0
- package/dist/webcomponents/p-fa1884b4.entry.js +1 -0
- package/dist/webcomponents/p-sw5RO19U.js +1 -0
- package/dist/webcomponents/{p-BNz6wy4f.js → p-xuDuc7qr.js} +1 -1
- package/dist/webcomponents/p-z-5r0gWn.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/checkout.store-CV_fuGQw.js +0 -39
- package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +0 -698
- package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +0 -22
- package/dist/esm/checkout.store-B60siz2l.js +0 -36
- package/dist/esm/justifi-checkout-summary_6.entry.js +0 -691
- package/dist/esm/terminals-list-params-state-SMXQIZTt.js +0 -16
- package/dist/webcomponents/p-0932f6a9.entry.js +0 -1
- package/dist/webcomponents/p-09e768fe.entry.js +0 -1
- package/dist/webcomponents/p-0dcc83ac.entry.js +0 -1
- package/dist/webcomponents/p-131d799c.entry.js +0 -1
- package/dist/webcomponents/p-1bdce018.entry.js +0 -1
- package/dist/webcomponents/p-1f8cd44e.entry.js +0 -1
- package/dist/webcomponents/p-22be0859.entry.js +0 -1
- package/dist/webcomponents/p-2f31a4e5.entry.js +0 -1
- package/dist/webcomponents/p-3a4ca4df.entry.js +0 -1
- package/dist/webcomponents/p-424f491c.entry.js +0 -1
- package/dist/webcomponents/p-466f33d7.entry.js +0 -1
- package/dist/webcomponents/p-57802e57.entry.js +0 -1
- package/dist/webcomponents/p-5rVtZ2GJ.js +0 -1
- package/dist/webcomponents/p-77515be6.entry.js +0 -1
- package/dist/webcomponents/p-7WIgS5RM.js +0 -1
- package/dist/webcomponents/p-89e27079.entry.js +0 -1
- package/dist/webcomponents/p-8f0339de.entry.js +0 -1
- package/dist/webcomponents/p-9106fd74.entry.js +0 -1
- package/dist/webcomponents/p-9b75aced.entry.js +0 -1
- package/dist/webcomponents/p-BC8YDY7M.js +0 -1
- package/dist/webcomponents/p-BVD7g3cE.js +0 -1
- package/dist/webcomponents/p-Bb6FBEPP.js +0 -1
- package/dist/webcomponents/p-Bpcb3SsP.js +0 -1
- package/dist/webcomponents/p-Bt388eye.js +0 -1
- package/dist/webcomponents/p-BySyDTv5.js +0 -1
- package/dist/webcomponents/p-C1fMfnu0.js +0 -1
- package/dist/webcomponents/p-CCME-fyU.js +0 -1
- package/dist/webcomponents/p-CLwzqWk2.js +0 -1
- package/dist/webcomponents/p-CVQyw7ao.js +0 -1
- package/dist/webcomponents/p-C_CXv7AN.js +0 -1
- package/dist/webcomponents/p-CwZKT93w.js +0 -1
- package/dist/webcomponents/p-D599ZMGU.js +0 -1
- package/dist/webcomponents/p-DD74a16D.js +0 -1
- package/dist/webcomponents/p-DaDsBt65.js +0 -1
- package/dist/webcomponents/p-JgbsbAhz.js +0 -1
- package/dist/webcomponents/p-O3LY2Da6.js +0 -1
- package/dist/webcomponents/p-WEguiGt1.js +0 -1
- package/dist/webcomponents/p-a4172773.entry.js +0 -1
- package/dist/webcomponents/p-ae5a3c2a.entry.js +0 -1
- package/dist/webcomponents/p-ba8ae31f.entry.js +0 -1
- package/dist/webcomponents/p-be06d86a.entry.js +0 -1
- package/dist/webcomponents/p-d0e24727.entry.js +0 -1
- package/dist/webcomponents/p-dd257e60.entry.js +0 -1
- package/dist/webcomponents/p-dd689b5e.entry.js +0 -1
- package/dist/webcomponents/p-dd6d6ddb.entry.js +0 -1
- package/dist/webcomponents/p-dfd7c212.entry.js +0 -1
- package/dist/webcomponents/p-e830a580.entry.js +0 -1
- package/dist/webcomponents/p-e859ece8.entry.js +0 -1
- package/dist/webcomponents/p-eaea7cc1.entry.js +0 -1
- package/dist/webcomponents/p-f3a757b2.entry.js +0 -1
- package/dist/webcomponents/p-fa33df9f.entry.js +0 -1
- package/dist/webcomponents/p-ff3377e7.entry.js +0 -1
- package/dist/webcomponents/p-ff869ded.entry.js +0 -1
- package/dist/webcomponents/p-pska2q1M.js +0 -1
- package/dist/webcomponents/p-qMrd7_Gp.js +0 -1
- package/dist/webcomponents/p-vRhNRfmB.js +0 -1
- package/dist/webcomponents/p-zrUQD0Wr.js +0 -1
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { PagingInfo } from "./Pagination";
|
|
2
|
+
export declare enum ApplePaySessionStatus {
|
|
3
|
+
STATUS_SUCCESS = "STATUS_SUCCESS",
|
|
4
|
+
STATUS_FAILURE = "STATUS_FAILURE"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ApplePayButtonType {
|
|
7
|
+
PLAIN = "plain",
|
|
8
|
+
BUY = "buy",
|
|
9
|
+
SET_UP = "set-up",
|
|
10
|
+
DONATE = "donate",
|
|
11
|
+
CHECK_OUT = "check-out",
|
|
12
|
+
BOOK = "book",
|
|
13
|
+
SUBSCRIBE = "subscribe"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ApplePayButtonStyle {
|
|
16
|
+
BLACK = "black",
|
|
17
|
+
WHITE = "white",
|
|
18
|
+
WHITE_OUTLINE = "white-outline"
|
|
19
|
+
}
|
|
20
|
+
export declare enum ApplePayMerchantCapability {
|
|
21
|
+
SUPPORTS_3DS = "supports3DS",
|
|
22
|
+
SUPPORTS_EMV = "supportsEMV",
|
|
23
|
+
SUPPORTS_CREDIT = "supportsCredit",
|
|
24
|
+
SUPPORTS_DEBIT = "supportsDebit"
|
|
25
|
+
}
|
|
26
|
+
export interface IApplePayLineItem {
|
|
27
|
+
label: string;
|
|
28
|
+
amount: string;
|
|
29
|
+
type?: 'final' | 'pending';
|
|
30
|
+
}
|
|
31
|
+
export interface IApplePayShippingMethod {
|
|
32
|
+
label: string;
|
|
33
|
+
amount: string;
|
|
34
|
+
identifier: string;
|
|
35
|
+
detail?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IApplePayPaymentRequest {
|
|
38
|
+
countryCode: string;
|
|
39
|
+
currencyCode: string;
|
|
40
|
+
merchantCapabilities: ApplePayMerchantCapability[];
|
|
41
|
+
supportedNetworks: string[];
|
|
42
|
+
total: IApplePayLineItem;
|
|
43
|
+
lineItems?: IApplePayLineItem[];
|
|
44
|
+
shippingMethods?: IApplePayShippingMethod[];
|
|
45
|
+
applicationData?: string;
|
|
46
|
+
supportedCountries?: string[];
|
|
47
|
+
}
|
|
48
|
+
export interface IApplePaySession {
|
|
49
|
+
canMakePayments(): boolean;
|
|
50
|
+
canMakePaymentsWithActiveCard(merchantIdentifier: string): Promise<boolean>;
|
|
51
|
+
supportsVersion(version: number): boolean;
|
|
52
|
+
begin(): void;
|
|
53
|
+
abort(): void;
|
|
54
|
+
completeMerchantValidation(merchantSession: IMerchantSession): void;
|
|
55
|
+
completePayment(result: {
|
|
56
|
+
status: ApplePaySessionStatus;
|
|
57
|
+
}): void;
|
|
58
|
+
completeShippingMethodSelection(update: any): void;
|
|
59
|
+
completePaymentMethodSelection(update: any): void;
|
|
60
|
+
onvalidatemerchant?: (event: IApplePayValidateEvent) => void;
|
|
61
|
+
onpaymentmethodselected?: (event: IApplePayMethodSelectedEvent) => void;
|
|
62
|
+
onshippingmethodselected?: () => void;
|
|
63
|
+
onpaymentauthorized?: (event: any) => void;
|
|
64
|
+
oncancel?: (event: IApplePayCancelEvent) => void;
|
|
65
|
+
}
|
|
66
|
+
export interface IApplePayConfig {
|
|
67
|
+
merchantIdentifier: string;
|
|
68
|
+
displayName: string;
|
|
69
|
+
initiative: string;
|
|
70
|
+
initiativeContext: string;
|
|
71
|
+
buttonType?: ApplePayButtonType;
|
|
72
|
+
buttonStyle?: ApplePayButtonStyle;
|
|
73
|
+
buttonLocale?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IApplePayError {
|
|
76
|
+
code: string;
|
|
77
|
+
message: string;
|
|
78
|
+
}
|
|
79
|
+
export interface IMerchantSession {
|
|
80
|
+
displayName: string;
|
|
81
|
+
domainName: string;
|
|
82
|
+
epochTimestamp: number;
|
|
83
|
+
expiresAt: number;
|
|
84
|
+
merchantIdentifier: string;
|
|
85
|
+
merchantSessionIdentifier: string;
|
|
86
|
+
nonce: string;
|
|
87
|
+
operationalAnalyticsIdentifier: string;
|
|
88
|
+
pspId: string;
|
|
89
|
+
retries: number;
|
|
90
|
+
signature: string;
|
|
91
|
+
}
|
|
92
|
+
export interface IApplePayTokenData {
|
|
93
|
+
data: string;
|
|
94
|
+
header: {
|
|
95
|
+
publicKeyHash: string;
|
|
96
|
+
ephemeralPublicKey: string;
|
|
97
|
+
transactionId: string;
|
|
98
|
+
};
|
|
99
|
+
signature: string;
|
|
100
|
+
version: string;
|
|
101
|
+
}
|
|
102
|
+
export interface IApplePayTokenPaymentMethod {
|
|
103
|
+
displayName: string;
|
|
104
|
+
network: string;
|
|
105
|
+
type: string;
|
|
106
|
+
}
|
|
107
|
+
export interface IApplePayToken {
|
|
108
|
+
paymentData: IApplePayTokenData;
|
|
109
|
+
paymentMethod: IApplePayTokenPaymentMethod;
|
|
110
|
+
transactionIdentifier: string;
|
|
111
|
+
}
|
|
112
|
+
export interface IApplePayValidateEvent {
|
|
113
|
+
validationURL: string;
|
|
114
|
+
}
|
|
115
|
+
export interface IApplePayCancelEvent {
|
|
116
|
+
sessionError?: {
|
|
117
|
+
code: 'unknown' | 'invalidMerchantSession' | 'userCancel' | string;
|
|
118
|
+
info?: string;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export interface IApplePayMethodSelectedEvent {
|
|
122
|
+
paymentMethod: IApplePayTokenPaymentMethod;
|
|
123
|
+
}
|
|
124
|
+
export interface IApplePayPaymentProcessRequest {
|
|
125
|
+
paymentData: IApplePayTokenData;
|
|
126
|
+
paymentMethod: IApplePayTokenPaymentMethod;
|
|
127
|
+
transactionIdentifier: string;
|
|
128
|
+
product_details?: {
|
|
129
|
+
name: string;
|
|
130
|
+
price: number;
|
|
131
|
+
description: string;
|
|
132
|
+
};
|
|
133
|
+
description?: string;
|
|
134
|
+
}
|
|
135
|
+
export interface IApplePayPaymentResponse {
|
|
136
|
+
id: string;
|
|
137
|
+
type: string;
|
|
138
|
+
page_info: PagingInfo | null;
|
|
139
|
+
data: {
|
|
140
|
+
account_id: string;
|
|
141
|
+
token: string;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
export interface IApplePayService {
|
|
145
|
+
validateMerchant(authToken: string, accountId: string): Promise<IMerchantSession>;
|
|
146
|
+
processPayment(authToken: string, accountId: string, payload: IApplePayPaymentProcessRequest): Promise<{
|
|
147
|
+
success: boolean;
|
|
148
|
+
data: IApplePayPaymentResponse;
|
|
149
|
+
}>;
|
|
150
|
+
}
|
|
151
|
+
export declare class ApplePayConfig implements IApplePayConfig {
|
|
152
|
+
merchantIdentifier: string;
|
|
153
|
+
displayName: string;
|
|
154
|
+
initiative: string;
|
|
155
|
+
initiativeContext: string;
|
|
156
|
+
buttonType?: ApplePayButtonType;
|
|
157
|
+
buttonStyle?: ApplePayButtonStyle;
|
|
158
|
+
buttonLocale?: string;
|
|
159
|
+
constructor(data: IApplePayConfig);
|
|
160
|
+
get isValid(): boolean;
|
|
161
|
+
}
|
|
162
|
+
export declare class ApplePayPaymentRequest implements IApplePayPaymentRequest {
|
|
163
|
+
countryCode: string;
|
|
164
|
+
currencyCode: string;
|
|
165
|
+
merchantCapabilities: ApplePayMerchantCapability[];
|
|
166
|
+
supportedNetworks: string[];
|
|
167
|
+
total: IApplePayLineItem;
|
|
168
|
+
lineItems?: IApplePayLineItem[];
|
|
169
|
+
shippingMethods?: IApplePayShippingMethod[];
|
|
170
|
+
applicationData?: string;
|
|
171
|
+
supportedCountries?: string[];
|
|
172
|
+
constructor(data: IApplePayPaymentRequest);
|
|
173
|
+
get isValid(): boolean;
|
|
174
|
+
}
|
|
175
|
+
export declare class ApplePayHelpers {
|
|
176
|
+
static isApplePaySupported(): boolean;
|
|
177
|
+
static canMakePayments(): boolean;
|
|
178
|
+
static canMakePaymentsWithActiveCard(merchantIdentifier: string): Promise<boolean>;
|
|
179
|
+
static formatAmount(amount: number): string;
|
|
180
|
+
static parseAmount(amount: string): number;
|
|
181
|
+
static createLineItem(label: string, amount: number, type?: 'final' | 'pending'): IApplePayLineItem;
|
|
182
|
+
static getDefaultSupportedNetworks(): string[];
|
|
183
|
+
static getDefaultMerchantCapabilities(): ApplePayMerchantCapability[];
|
|
184
|
+
}
|
|
185
|
+
declare global {
|
|
186
|
+
interface Window {
|
|
187
|
+
ApplePaySession?: {
|
|
188
|
+
new (version: number, paymentRequest: IApplePayPaymentRequest): IApplePaySession;
|
|
189
|
+
canMakePayments(): boolean;
|
|
190
|
+
canMakePaymentsWithActiveCard(merchantIdentifier: string): Promise<boolean>;
|
|
191
|
+
supportsVersion(version: number): boolean;
|
|
192
|
+
STATUS_SUCCESS: number;
|
|
193
|
+
STATUS_FAILURE: number;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -48,24 +48,14 @@ export interface ICheckout {
|
|
|
48
48
|
payment_amount: number;
|
|
49
49
|
payment_client_id: string;
|
|
50
50
|
payment_description: string;
|
|
51
|
-
payment_methods:
|
|
52
|
-
id: string;
|
|
53
|
-
status: string;
|
|
54
|
-
invalid_reason: null;
|
|
55
|
-
name: string;
|
|
56
|
-
brand: string;
|
|
57
|
-
acct_last_four: string;
|
|
58
|
-
month: string;
|
|
59
|
-
year: string;
|
|
60
|
-
address_line1_check: string;
|
|
61
|
-
address_postal_code_check: string;
|
|
62
|
-
bin_details: null;
|
|
63
|
-
}[];
|
|
51
|
+
payment_methods: ICheckoutPaymentMethod[];
|
|
64
52
|
payment_method_group_id: string;
|
|
65
53
|
payment_settings: {
|
|
66
54
|
ach_payments: boolean;
|
|
67
55
|
bnpl_payments: boolean;
|
|
68
56
|
credit_card_payments: boolean;
|
|
57
|
+
insurance_payments?: boolean;
|
|
58
|
+
bank_account_verification?: boolean;
|
|
69
59
|
};
|
|
70
60
|
bnpl?: IBnpl;
|
|
71
61
|
total_amount: number;
|
|
@@ -95,6 +85,8 @@ export declare class Checkout implements ICheckout {
|
|
|
95
85
|
ach_payments: boolean;
|
|
96
86
|
bnpl_payments: boolean;
|
|
97
87
|
credit_card_payments: boolean;
|
|
88
|
+
insurance_payments?: boolean;
|
|
89
|
+
bank_account_verification?: boolean;
|
|
98
90
|
};
|
|
99
91
|
bnpl?: IBnpl;
|
|
100
92
|
total_amount: number;
|
|
@@ -151,14 +143,17 @@ export interface CheckoutsQueryParams {
|
|
|
151
143
|
status?: ICheckoutStatus;
|
|
152
144
|
payment_mode?: ICheckoutPaymentMode;
|
|
153
145
|
}
|
|
146
|
+
export type CardBrand = 'visa' | 'mastercard' | 'american_express' | 'discover' | 'jcb' | 'diners_club' | 'unionpay';
|
|
147
|
+
export type AccountType = 'checking' | 'savings';
|
|
154
148
|
export interface ICheckoutPaymentMethod {
|
|
155
149
|
id: string;
|
|
156
150
|
type?: string;
|
|
157
151
|
status: string;
|
|
158
152
|
invalid_reason: null;
|
|
159
153
|
name: string;
|
|
160
|
-
brand:
|
|
154
|
+
brand: CardBrand;
|
|
161
155
|
acct_last_four: string;
|
|
156
|
+
account_type: AccountType;
|
|
162
157
|
month: string;
|
|
163
158
|
year: string;
|
|
164
159
|
address_line1_check: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DisputeStatus } from
|
|
2
|
-
import { IRefund } from
|
|
1
|
+
import { DisputeStatus } from './Dispute';
|
|
2
|
+
import { IRefund } from '.';
|
|
3
3
|
export declare enum CaptureStrategy {
|
|
4
4
|
automatic = "automatic",
|
|
5
5
|
manual = "manual"
|
|
@@ -8,7 +8,8 @@ export declare enum PaymentMethodTypes {
|
|
|
8
8
|
card = "card",
|
|
9
9
|
bankAccount = "bankAccount",
|
|
10
10
|
sezzle = "sezzle",
|
|
11
|
-
|
|
11
|
+
plaid = "plaid",
|
|
12
|
+
applePay = "applePay"
|
|
12
13
|
}
|
|
13
14
|
export declare enum PaymentTypes {
|
|
14
15
|
card = "Card",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from './Api';
|
|
2
2
|
export * from './ComponentEvents';
|
|
3
3
|
export * from './ComponentError';
|
|
4
|
-
export
|
|
4
|
+
export { IBnpl, Completion, ICheckout, Checkout, ICheckoutPaymentMode, ICheckoutPaymentModeParam, ICheckoutStatus, CompletionStatuses, ICheckoutCompleteResponse, ILoadedEventResponse, CheckoutsQueryParams, ICheckoutPaymentMethod, } from './Checkout';
|
|
5
|
+
export { CardBrand as CheckoutCardBrand, AccountType as BankAccountType, } from './Checkout';
|
|
5
6
|
export * from './Insurance';
|
|
6
7
|
export * from './Pagination';
|
|
7
8
|
export * from './Payment';
|
|
@@ -16,7 +17,6 @@ export * from './Document';
|
|
|
16
17
|
export * from './Refund';
|
|
17
18
|
export * from './Business';
|
|
18
19
|
export * from './Identity';
|
|
19
|
-
export * from './Document';
|
|
20
20
|
export * from './Dispute';
|
|
21
21
|
export * from './GrossVolume';
|
|
22
22
|
export { BankAccount, IBankAccount } from './BankAccount';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IApplePayConfig, IApplePayPaymentRequest, IApplePayError, ApplePayConfig, IMerchantSession, IApplePayService, IApplePayPaymentProcessRequest, IApplePayPaymentResponse, IApplePayToken } from '../ApplePay';
|
|
2
|
+
export declare class ApplePayService implements IApplePayService {
|
|
3
|
+
private applePayConfig?;
|
|
4
|
+
private currentSession?;
|
|
5
|
+
private currentPaymentRequest?;
|
|
6
|
+
private api;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize Apple Pay configuration
|
|
9
|
+
*/
|
|
10
|
+
initialize(applePayConfig: IApplePayConfig): void;
|
|
11
|
+
/**
|
|
12
|
+
* Validate merchant with Apple Pay servers via API
|
|
13
|
+
*/
|
|
14
|
+
validateMerchant(authToken: string, accountId: string): Promise<IMerchantSession>;
|
|
15
|
+
/**
|
|
16
|
+
* Process Apple Pay payment via API (fixed to match original logic)
|
|
17
|
+
*/
|
|
18
|
+
processPayment(authToken: string, accountId: string, payload: IApplePayPaymentProcessRequest): Promise<{
|
|
19
|
+
success: boolean;
|
|
20
|
+
data: IApplePayPaymentResponse;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Check if Apple Pay is available on this device/browser
|
|
24
|
+
*/
|
|
25
|
+
isAvailable(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Check if the user has an active card for the merchant
|
|
28
|
+
*/
|
|
29
|
+
canMakePaymentsWithActiveCard(): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Start Apple Pay session
|
|
32
|
+
*/
|
|
33
|
+
startPaymentSession(paymentRequest: IApplePayPaymentRequest, authToken: string, accountId: string): Promise<{
|
|
34
|
+
success: boolean;
|
|
35
|
+
token?: IApplePayToken;
|
|
36
|
+
paymentMethodId?: string;
|
|
37
|
+
error?: IApplePayError;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Abort current Apple Pay session
|
|
41
|
+
*/
|
|
42
|
+
abortPaymentSession(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Setup Apple Pay session event handlers
|
|
45
|
+
*/
|
|
46
|
+
private setupSessionEventHandlers;
|
|
47
|
+
/**
|
|
48
|
+
* Create a basic payment request
|
|
49
|
+
*/
|
|
50
|
+
static createPaymentRequest(amount: number, label: string, countryCode?: string, currencyCode?: string): IApplePayPaymentRequest;
|
|
51
|
+
/**
|
|
52
|
+
* Get current configuration
|
|
53
|
+
*/
|
|
54
|
+
getApplePayConfig(): ApplePayConfig | undefined;
|
|
55
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IApiResponse } from '..';
|
|
2
|
+
export interface ILinkTokenResponse {
|
|
3
|
+
link_token: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IPlaidService {
|
|
6
|
+
getLinkToken(authToken: string, accountId: string, checkoutId: string, signal?: AbortSignal): Promise<IApiResponse<ILinkTokenResponse>>;
|
|
7
|
+
tokenizeBankAccount(authToken: string, accountId: string, publicToken: string, linkTokenId?: string, paymentMethodGroupId?: string, signal?: AbortSignal): Promise<IApiResponse<any>>;
|
|
8
|
+
}
|
|
9
|
+
export declare class PlaidService implements IPlaidService {
|
|
10
|
+
getLinkToken(authToken: string, accountId: string, checkoutId: string, signal?: AbortSignal): Promise<IApiResponse<ILinkTokenResponse>>;
|
|
11
|
+
tokenizeBankAccount(authToken: string, accountId: string, publicToken: string, linkTokenId?: string, paymentMethodGroupId?: string, signal?: AbortSignal): Promise<IApiResponse<any>>;
|
|
12
|
+
}
|
|
@@ -3,18 +3,20 @@ import JustifiAnalytics from '../../api/Analytics';
|
|
|
3
3
|
import { BillingFormFields } from './billing-form/billing-form-schema';
|
|
4
4
|
import { ICheckout, ILoadedEventResponse } from '../../api';
|
|
5
5
|
import { ComponentErrorEvent, ComponentSubmitEvent } from '../../api/ComponentEvents';
|
|
6
|
-
import {
|
|
6
|
+
import { CheckoutChangedEventDetail, PAYMENT_METHODS } from '../modular-checkout/ModularCheckout';
|
|
7
7
|
export declare class Checkout {
|
|
8
8
|
analytics: JustifiAnalytics;
|
|
9
9
|
modularCheckoutRef?: HTMLJustifiModularCheckoutElement;
|
|
10
10
|
tokenizePaymentMethodRef?: HTMLJustifiTokenizePaymentMethodElement;
|
|
11
|
+
plaidPaymentMethodRef?: HTMLJustifiPlaidPaymentMethodElement;
|
|
12
|
+
sezzlePaymentMethodRef?: HTMLJustifiSezzlePaymentMethodElement;
|
|
13
|
+
availablePaymentMethods: PAYMENT_METHODS[];
|
|
11
14
|
checkout: ICheckout;
|
|
12
15
|
complete: Function;
|
|
13
16
|
errorMessage: string;
|
|
14
17
|
insuranceToggled: boolean;
|
|
15
18
|
isSubmitting: boolean;
|
|
16
19
|
serverError: string;
|
|
17
|
-
tokenizedPaymentMethod?: PaymentMethodPayload;
|
|
18
20
|
authToken: string;
|
|
19
21
|
checkoutId: string;
|
|
20
22
|
disableBankAccount?: boolean;
|
|
@@ -31,17 +33,14 @@ export declare class Checkout {
|
|
|
31
33
|
componentWillLoad(): void;
|
|
32
34
|
disconnectedCallback(): void;
|
|
33
35
|
checkoutComplete(_event: CustomEvent<any>): void;
|
|
34
|
-
checkoutError(
|
|
35
|
-
|
|
36
|
-
response: PaymentMethodPayload;
|
|
37
|
-
}>): Promise<void>;
|
|
36
|
+
checkoutError(_event: CustomEvent<any>): void;
|
|
37
|
+
checkoutChanged(event: CustomEvent<CheckoutChangedEventDetail>): void;
|
|
38
38
|
fillBillingForm(fields: BillingFormFields): Promise<void>;
|
|
39
39
|
validate(): Promise<{
|
|
40
40
|
isValid: boolean;
|
|
41
41
|
}>;
|
|
42
42
|
private updateStore;
|
|
43
43
|
private submit;
|
|
44
|
-
private submitCheckoutWithToken;
|
|
45
44
|
private get showPaymentTypeHeader();
|
|
46
45
|
render(): any;
|
|
47
46
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ICheckoutPaymentMethod, PaymentMethodTypes } from '../../api';
|
|
2
|
+
export declare enum PAYMENT_MODE {
|
|
3
|
+
ECOM = "ecom",
|
|
4
|
+
BNPL = "bnpl",
|
|
5
|
+
APPLE_PAY = "apple_pay"
|
|
6
|
+
}
|
|
7
|
+
export declare enum PAYMENT_METHOD_TYPES {
|
|
8
|
+
CARD = "card",
|
|
9
|
+
BANK_ACCOUNT = "bank_account",
|
|
10
|
+
APPLE_PAY = "apple_pay",
|
|
11
|
+
GOOGLE_PAY = "google_pay",
|
|
12
|
+
SEZZLE = "sezzle",
|
|
13
|
+
PLAID = "plaid"
|
|
14
|
+
}
|
|
15
|
+
export declare enum PAYMENT_METHODS {
|
|
16
|
+
SAVED_CARD = "saved_card",
|
|
17
|
+
NEW_CARD = "new_card",
|
|
18
|
+
SAVED_BANK_ACCOUNT = "saved_bank_account",
|
|
19
|
+
NEW_BANK_ACCOUNT = "new_bank_account",
|
|
20
|
+
APPLE_PAY = "apple_pay",
|
|
21
|
+
GOOGLE_PAY = "google_pay",
|
|
22
|
+
SEZZLE = "sezzle",
|
|
23
|
+
PLAID = "plaid"
|
|
24
|
+
}
|
|
25
|
+
export interface CheckoutChangedEventDetail {
|
|
26
|
+
availablePaymentMethodTypes: PAYMENT_METHODS[];
|
|
27
|
+
selectedPaymentMethod: ICheckoutPaymentMethod | {
|
|
28
|
+
type: PaymentMethodTypes;
|
|
29
|
+
};
|
|
30
|
+
savedPaymentMethods: ICheckoutPaymentMethod[];
|
|
31
|
+
}
|
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import JustifiAnalytics from "../../api/Analytics";
|
|
3
|
+
import { ICheckoutPaymentMethod, PaymentMethodTypes } from "../../api";
|
|
3
4
|
import { BillingFormFields } from "../../components";
|
|
5
|
+
import { CheckoutChangedEventDetail } from "./ModularCheckout";
|
|
4
6
|
export declare class ModularCheckout {
|
|
5
7
|
analytics: JustifiAnalytics;
|
|
6
8
|
private observer?;
|
|
7
9
|
private paymentMethodFormRef?;
|
|
8
10
|
private billingFormRef?;
|
|
9
11
|
private insuranceFormRef?;
|
|
10
|
-
private
|
|
12
|
+
private applePayRef?;
|
|
11
13
|
private getCheckout;
|
|
12
14
|
private completeCheckout;
|
|
15
|
+
private plaidService;
|
|
13
16
|
authToken: string;
|
|
14
17
|
checkoutId: string;
|
|
15
|
-
savePaymentMethod?: boolean;
|
|
16
18
|
hostEl: HTMLElement;
|
|
17
19
|
errorEvent: EventEmitter;
|
|
18
20
|
submitEvent: EventEmitter;
|
|
19
|
-
|
|
20
|
-
savePaymentMethodChanged(newValue: boolean): void;
|
|
21
|
+
checkoutChangedEvent: EventEmitter<CheckoutChangedEventDetail>;
|
|
21
22
|
connectedCallback(): void;
|
|
22
23
|
componentWillLoad(): void;
|
|
23
24
|
componentDidLoad(): void;
|
|
24
25
|
disconnectedCallback(): void;
|
|
25
26
|
private fetchCheckout;
|
|
26
27
|
private updateStore;
|
|
28
|
+
private emitCheckoutChanged;
|
|
27
29
|
private queryFormRefs;
|
|
30
|
+
private setupApplePayListeners;
|
|
31
|
+
private removeApplePayListeners;
|
|
32
|
+
private handleApplePayCompleted;
|
|
33
|
+
private handleApplePayError;
|
|
34
|
+
private handleApplePayCancelled;
|
|
28
35
|
private tokenizePaymentMethod;
|
|
29
|
-
|
|
36
|
+
setSelectedPaymentMethod(paymentMethod: ICheckoutPaymentMethod | {
|
|
37
|
+
type: PaymentMethodTypes;
|
|
38
|
+
}): Promise<void>;
|
|
30
39
|
validate(): Promise<boolean>;
|
|
31
40
|
submitCheckout(submitCheckoutArgs?: BillingFormFields): Promise<void>;
|
|
32
|
-
setSelectedPaymentMethod(paymentMethodId: string): Promise<void>;
|
|
33
41
|
render(): any;
|
|
34
42
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { ApplePayButtonType, ApplePayButtonStyle, IApplePayToken } from "../../../api/ApplePay";
|
|
3
|
+
export declare class ApplePay {
|
|
4
|
+
private applePayService;
|
|
5
|
+
countryCode: string;
|
|
6
|
+
merchantIdentifier: string;
|
|
7
|
+
merchantDisplayName: string;
|
|
8
|
+
initiativeContext: string;
|
|
9
|
+
buttonType: ApplePayButtonType;
|
|
10
|
+
buttonStyle: ApplePayButtonStyle;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
showSkeleton: boolean;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
isProcessing: boolean;
|
|
15
|
+
isAvailable: boolean;
|
|
16
|
+
canMakePayments: boolean;
|
|
17
|
+
isConfigValid: boolean;
|
|
18
|
+
error: string | null;
|
|
19
|
+
applePayStarted: EventEmitter<void>;
|
|
20
|
+
applePayCompleted: EventEmitter<{
|
|
21
|
+
success: boolean;
|
|
22
|
+
token?: IApplePayToken;
|
|
23
|
+
paymentMethodId?: string;
|
|
24
|
+
error?: any;
|
|
25
|
+
}>;
|
|
26
|
+
applePayCancelled: EventEmitter<void>;
|
|
27
|
+
applePayError: EventEmitter<{
|
|
28
|
+
error: string;
|
|
29
|
+
}>;
|
|
30
|
+
componentWillLoad(): void;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
watchPropsChange(): void;
|
|
33
|
+
private initializeApplePay;
|
|
34
|
+
private handleApplePayClick;
|
|
35
|
+
isSupported(): Promise<boolean>;
|
|
36
|
+
getPaymentMethods(): Promise<string[]>;
|
|
37
|
+
abort(): Promise<void>;
|
|
38
|
+
render(): any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { PaymentMethodPayload } from '../../checkout/payment-method-payload';
|
|
3
|
+
import { ComponentErrorSeverity } from '../../../api/ComponentError';
|
|
4
|
+
export declare enum PlaidErrorCodes {
|
|
5
|
+
PLAID_SDK_LOAD_FAILED = "plaid-sdk-load-failed",
|
|
6
|
+
PLAID_LINK_INIT_FAILED = "plaid-link-init-failed",
|
|
7
|
+
PLAID_LINK_TOKEN_FAILED = "plaid-link-token-failed",
|
|
8
|
+
PLAID_AUTHENTICATION_FAILED = "plaid-authentication-failed",
|
|
9
|
+
PLAID_BANK_NOT_SUPPORTED = "plaid-bank-not-supported",
|
|
10
|
+
PLAID_TOKEN_EXPIRED = "plaid-token-expired",
|
|
11
|
+
PLAID_NETWORK_ERROR = "plaid-network-error",
|
|
12
|
+
PLAID_USER_CANCELLED = "plaid-user-cancelled",
|
|
13
|
+
PLAID_TIMEOUT = "plaid-timeout",
|
|
14
|
+
PLAID_INVALID_CREDENTIALS = "plaid-invalid-credentials",
|
|
15
|
+
PLAID_ACCOUNT_LOCKED = "plaid-account-locked",
|
|
16
|
+
PLAID_MAINTENANCE = "plaid-maintenance",
|
|
17
|
+
PLAID_RATE_LIMITED = "plaid-rate-limited"
|
|
18
|
+
}
|
|
19
|
+
interface PlaidError {
|
|
20
|
+
code: PlaidErrorCodes;
|
|
21
|
+
message: string;
|
|
22
|
+
severity: ComponentErrorSeverity;
|
|
23
|
+
originalError?: any;
|
|
24
|
+
retryable: boolean;
|
|
25
|
+
userAction?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare class PlaidPaymentMethod {
|
|
28
|
+
isAuthenticating: boolean;
|
|
29
|
+
publicToken: string | null;
|
|
30
|
+
linkToken: string | null;
|
|
31
|
+
linkTokenId: string | null;
|
|
32
|
+
error: PlaidError | null;
|
|
33
|
+
plaidLink: any;
|
|
34
|
+
isSelected: boolean;
|
|
35
|
+
retryCount: number;
|
|
36
|
+
isRetrying: boolean;
|
|
37
|
+
private scriptRef;
|
|
38
|
+
private plaidService;
|
|
39
|
+
private unsubscribeFromStore;
|
|
40
|
+
private maxRetries;
|
|
41
|
+
private retryDelay;
|
|
42
|
+
private timeoutId;
|
|
43
|
+
private abortController;
|
|
44
|
+
private hasLoggedDisabledWarning;
|
|
45
|
+
paymentMethodOptionSelected: EventEmitter;
|
|
46
|
+
plaidError: EventEmitter;
|
|
47
|
+
plaidErrorRecovered: EventEmitter;
|
|
48
|
+
onSelectionChange(newValue: boolean): void;
|
|
49
|
+
componentDidRender(): void;
|
|
50
|
+
componentWillLoad(): void;
|
|
51
|
+
waitForStoreAndInitialize: () => void;
|
|
52
|
+
resolvePaymentMethod(): Promise<PaymentMethodPayload>;
|
|
53
|
+
getPaymentToken(): Promise<string | undefined>;
|
|
54
|
+
handleSelectionClick(): Promise<void>;
|
|
55
|
+
initializePlaidLink: () => Promise<void>;
|
|
56
|
+
getLinkToken: () => Promise<void>;
|
|
57
|
+
mapApiErrorToPlaidError: (apiError: any) => PlaidErrorCodes;
|
|
58
|
+
openPlaidLink: () => void;
|
|
59
|
+
handlePlaidSuccess: (publicToken: string, _metadata: any) => void;
|
|
60
|
+
handlePlaidExit: (err: any, _metadata: any) => void;
|
|
61
|
+
handlePlaidEvent: (eventName: string, metadata: any) => void;
|
|
62
|
+
handlePlaidLoad: () => void;
|
|
63
|
+
handlePlaidError: (error: any) => void;
|
|
64
|
+
handleError: (plaidError: PlaidError) => void;
|
|
65
|
+
scheduleRetry: () => void;
|
|
66
|
+
clearError: () => void;
|
|
67
|
+
setSelected(selected: boolean): Promise<void>;
|
|
68
|
+
isCurrentlySelected(): Promise<boolean>;
|
|
69
|
+
deselect(): Promise<void>;
|
|
70
|
+
reset(): Promise<void>;
|
|
71
|
+
isReadyForAuthentication(): Promise<boolean>;
|
|
72
|
+
retry(): Promise<void>;
|
|
73
|
+
getErrorInfo(): Promise<PlaidError | null>;
|
|
74
|
+
private syncWithStore;
|
|
75
|
+
componentDidLoad(): void;
|
|
76
|
+
disconnectedCallback(): void;
|
|
77
|
+
render(): any;
|
|
78
|
+
}
|
|
79
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICheckoutPaymentMethod } from '../../../api';
|
|
2
2
|
export declare class SavedPaymentMethods {
|
|
3
3
|
componentWillLoad(): void;
|
|
4
|
-
onPaymentMethodOptionClick: (
|
|
4
|
+
onPaymentMethodOptionClick: (paymentMethod: ICheckoutPaymentMethod) => (e: Event) => void;
|
|
5
5
|
isAllowedPaymentMethod: (paymentMethod: ICheckoutPaymentMethod) => boolean;
|
|
6
6
|
render(): any;
|
|
7
7
|
}
|
|
@@ -10,7 +10,7 @@ export declare class SezzlePaymentMethod {
|
|
|
10
10
|
paymentMethodOptionSelected: EventEmitter;
|
|
11
11
|
componentDidRender(): void;
|
|
12
12
|
resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
|
|
13
|
-
|
|
13
|
+
handleSelectionClick(): Promise<void>;
|
|
14
14
|
initializeSezzleCheckout: () => void;
|
|
15
15
|
render(): any;
|
|
16
16
|
}
|