@justifi/webcomponents 6.4.3 → 6.5.0-rc.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/{Refund-BnhHNKLz.js → GooglePay-D3zN44IX.js} +415 -0
- package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +8 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business.service-DIlSj5KT.js → business.service-88yKWtbE.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-CnAkXgrN.js → check-pkg-version-RW_N0V76.js} +2 -2
- package/dist/cjs/{checkout.service-Ce0F8cOf.js → checkout.service-Cj1RxduX.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +3 -2
- package/dist/cjs/custom-popper.cjs.entry.js +2 -2
- package/dist/cjs/{dispute.service-DuYeSUgK.js → dispute.service-AXzLxuOs.js} +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/{get-payment-details-vVIxYblm.js → get-payment-details-DVBTf7h5.js} +2 -2
- package/dist/cjs/{get-subaccounts-yo2pT61R.js → get-subaccounts-DuYNs7Ny.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/{index-C2ITzalN.js → index-CajjbB9t.js} +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +23 -24
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +6 -5
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -11
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/{justifi-apple-pay_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +903 -253
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +14 -15
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -8
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -7
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -5
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -8
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -7
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -9
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -8
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +12 -11
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -7
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -7
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CfJO8jEa.js → package-DCSehIuE.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
- package/dist/cjs/payment-details-core.cjs.entry.js +11 -10
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-DLvoJ2K6.js → payment.service-7Ayen6ud.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +3 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-CrBp8aru.js → payout.service-6PsVtHcu.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +4 -3
- package/dist/cjs/{terminal-orders-table-8PxObvu8.js → terminal-orders-table-BQXO4z_E.js} +3 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-D0fIw59V.js → terminal.service-DgE2p1j0.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +3 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/GooglePay.js +181 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/google-pay.service.js +240 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +8 -7
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +7 -6
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +8 -7
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
- 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/modular-checkout/ModularCheckout.js +1 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +46 -9
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/google-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +609 -0
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- 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/internal-tokenize-payment-method.js +3 -4
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +5 -10
- package/dist/collection/store/checkout.store.js +4 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/google-pay-button.js +255 -0
- package/dist/collection/ui-components/pagination-menu/pagination-menu.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-radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +567 -119
- package/dist/esm/{Refund-L_muwEAh.js → GooglePay-ChLgDgG7.js} +405 -1
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +8 -7
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/{business.service-CaEVmi4X.js → business.service-C0JaOBMs.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-DrJd3vkn.js → check-pkg-version-D0GWFnyL.js} +2 -2
- package/dist/esm/{checkout.service-BpaVN1_f.js → checkout.service-gxuAcx_d.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +3 -2
- package/dist/esm/custom-popper.entry.js +2 -2
- package/dist/esm/{dispute.service-Dq1SPI2m.js → dispute.service-DmYLDaWO.js} +1 -1
- package/dist/esm/form-alert_5.entry.js +6 -6
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/form-control-monetary-provisioning.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number-masked_3.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_3.entry.js +4 -4
- package/dist/esm/{get-payment-details-C2YiQBG7.js → get-payment-details-CJ6fHbft.js} +1 -1
- package/dist/esm/{get-subaccounts-Cjz3-2D3.js → get-subaccounts-3zYjlgWb.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/{index-DCIW8z1f.js → index-DkoufM1t.js} +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +12 -13
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +2 -1
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -11
- package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
- package/dist/esm/{justifi-apple-pay_7.entry.js → justifi-apple-pay_8.entry.js} +786 -137
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +5 -4
- package/dist/esm/justifi-business-form.entry.js +5 -4
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +7 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -2
- package/dist/esm/justifi-checkouts-list.entry.js +7 -6
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +6 -5
- package/dist/esm/justifi-dispute-notification_3.entry.js +9 -8
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
- package/dist/esm/justifi-order-terminals.entry.js +7 -6
- package/dist/esm/justifi-owner-form_3.entry.js +7 -6
- package/dist/esm/justifi-payment-details.entry.js +6 -5
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
- package/dist/esm/justifi-payment-transactions-list.entry.js +6 -5
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +6 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -4
- package/dist/esm/justifi-payout-transactions-list.entry.js +6 -5
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +7 -6
- package/dist/esm/justifi-refund-payment.entry.js +6 -5
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +4 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +6 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -2
- package/dist/esm/justifi-terminals-list.entry.js +7 -6
- package/dist/esm/justifi-tokenize-payment-method.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-DUwyoa82.js → package-DbqKgrF-.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +3 -3
- package/dist/esm/payment-details-core.entry.js +10 -9
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment.service-4wGt-zDW.js → payment.service-CtzbcN40.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +3 -2
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/{payout.service-BYigYrQu.js → payout.service-BSepoyj1.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +3 -2
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +4 -3
- package/dist/esm/{terminal-orders-table-CMWBIr9y.js → terminal-orders-table-BDQyyZp2.js} +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-RAu777Qf.js → terminal.service-DFPVyp0k.js} +1 -1
- package/dist/esm/terminals-list-core.entry.js +3 -2
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +2 -0
- package/dist/module/ApplePay.js +121 -0
- package/dist/module/GooglePay.js +184 -0
- package/dist/module/ModularCheckout.js +1 -0
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/apple-pay.js +1 -120
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +3 -1
- package/dist/module/bank-account-form-inputs-canada2.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account-read-only-value2.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +2 -0
- package/dist/module/business-bank-account-form-step.js +3 -1
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +2 -2
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +3 -3
- package/dist/module/business-terms-conditions-form-step.js +3 -1
- package/dist/module/business.service.js +2 -0
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.service.js +2 -0
- package/dist/module/checkout.store.js +4 -0
- package/dist/module/checkouts-list-core2.js +3 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-actions.js +2 -0
- 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-address-fields.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/get-payment-details.js +2 -0
- package/dist/module/get-subaccounts.js +2 -0
- package/dist/module/google-pay.js +785 -0
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-tokenize-payment-method2.js +3 -1
- package/dist/module/justifi-business-form.js +2 -0
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +46 -40
- package/dist/module/justifi-checkouts-list-filters.js +3 -1
- package/dist/module/justifi-checkouts-list.js +3 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-google-pay.d.ts +11 -0
- package/dist/module/justifi-google-pay.js +6 -0
- package/dist/module/justifi-gross-payment-chart.js +2 -0
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -1
- package/dist/module/justifi-payment-provisioning.js +3 -1
- package/dist/module/justifi-payment-transactions-list.js +3 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +3 -1
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payout-transactions-list.js +3 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +3 -1
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-refund-payment.js +2 -0
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -0
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -2
- package/dist/module/justifi-terminal-orders-list.js +3 -1
- package/dist/module/justifi-terminals-list-filters.js +3 -1
- package/dist/module/justifi-terminals-list.js +3 -1
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/modular-checkout.js +46 -6
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +3 -3
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-details-core2.js +10 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +1 -1
- package/dist/module/payment.service.js +2 -0
- package/dist/module/payments-list-core2.js +3 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +2 -0
- package/dist/module/payouts-list-core2.js +3 -1
- package/dist/module/plaid.service.js +2 -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 +1 -1
- 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 +3 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +2 -0
- package/dist/module/terminals-list-core2.js +3 -1
- package/dist/types/api/Checkout.d.ts +2 -0
- package/dist/types/api/GooglePay.d.ts +271 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/google-pay.service.d.ts +60 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -3
- package/dist/types/components/checkout/checkout.d.ts +1 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +2 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +5 -0
- package/dist/types/components/modular-checkout/sub-components/google-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/google-pay.d.ts +59 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
- package/dist/types/components.d.ts +160 -22
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/ui-components/google-pay-button.d.ts +18 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-aec9185f.entry.js → p-03c8c754.entry.js} +1 -1
- package/dist/webcomponents/p-0772719b.entry.js +1 -0
- package/dist/webcomponents/p-10df10cb.entry.js +1 -0
- package/dist/webcomponents/p-1120699e.entry.js +1 -0
- package/dist/webcomponents/p-136b29e3.entry.js +1 -0
- package/dist/webcomponents/{p-1193a1ac.entry.js → p-19dabeab.entry.js} +1 -1
- package/dist/webcomponents/p-19f44a6d.entry.js +1 -0
- package/dist/webcomponents/p-1a9311e3.entry.js +1 -0
- package/dist/webcomponents/p-1afcfafd.entry.js +1 -0
- package/dist/webcomponents/p-1ceb7363.entry.js +1 -0
- package/dist/webcomponents/p-1f196690.entry.js +1 -0
- package/dist/webcomponents/{p-800660f2.entry.js → p-270bf699.entry.js} +1 -1
- package/dist/webcomponents/p-2da4e6ca.entry.js +1 -0
- package/dist/webcomponents/p-2eb123a3.entry.js +1 -0
- package/dist/webcomponents/p-36ad1db9.entry.js +1 -0
- package/dist/webcomponents/p-38626adf.entry.js +1 -0
- package/dist/webcomponents/p-3868f396.entry.js +1 -0
- package/dist/webcomponents/p-3ac5ab7e.entry.js +1 -0
- package/dist/webcomponents/p-3ad906c1.entry.js +1 -0
- package/dist/webcomponents/p-3ae12b98.entry.js +1 -0
- package/dist/webcomponents/{p-58ae4f9e.entry.js → p-3bacf834.entry.js} +1 -1
- package/dist/webcomponents/{p-e2e6c201.entry.js → p-48d1bc83.entry.js} +1 -1
- package/dist/webcomponents/{p-af48a6bb.entry.js → p-4e71de94.entry.js} +1 -1
- package/dist/webcomponents/p-4f102cfd.entry.js +1 -0
- package/dist/webcomponents/p-4f82561b.entry.js +1 -0
- package/dist/webcomponents/p-51ae205c.entry.js +1 -0
- package/dist/webcomponents/p-583a1f08.entry.js +1 -0
- package/dist/webcomponents/p-59fb033b.entry.js +1 -0
- package/dist/webcomponents/p-5ba28ff0.entry.js +1 -0
- package/dist/webcomponents/p-6794a435.entry.js +1 -0
- package/dist/webcomponents/p-797be4be.entry.js +1 -0
- package/dist/webcomponents/{p-CxPieTnF.js → p-7SgMy3r5.js} +1 -1
- package/dist/webcomponents/p-81c1ebd3.entry.js +1 -0
- package/dist/webcomponents/{p-1edec396.entry.js → p-86111a0a.entry.js} +1 -1
- package/dist/webcomponents/p-8b6b7e20.entry.js +1 -0
- package/dist/webcomponents/p-8fcd277c.entry.js +1 -0
- package/dist/webcomponents/p-90744983.entry.js +1 -0
- package/dist/webcomponents/p-914b590d.entry.js +1 -0
- package/dist/webcomponents/{p-BItPr6Gj.js → p-B-9GGR7s.js} +1 -1
- package/dist/webcomponents/p-Boe55CYS.js +1 -0
- package/dist/webcomponents/{p-Do561C8g.js → p-BusXmwDe.js} +1 -1
- package/dist/webcomponents/{p-C9_8N76_.js → p-ByJiG6HY.js} +1 -1
- package/dist/webcomponents/{p-XqsvHFg_.js → p-C6kJ3uRN.js} +1 -1
- package/dist/webcomponents/p-CQsNLuzi.js +1 -0
- package/dist/webcomponents/{p-ZrJKEEoy.js → p-DELUWNSY.js} +1 -1
- package/dist/webcomponents/p-DbqKgrF-.js +1 -0
- package/dist/webcomponents/{p-wYnnDDuR.js → p-DjhbNep7.js} +1 -1
- package/dist/webcomponents/p-DkoufM1t.js +1 -0
- package/dist/webcomponents/{p-CriWtqRc.js → p-Ds2u5A8P.js} +1 -1
- package/dist/webcomponents/{p-jTVpG8Gt.js → p-E0ZPuuI7.js} +1 -1
- package/dist/webcomponents/p-a020c889.entry.js +1 -0
- package/dist/webcomponents/{p-0082f428.entry.js → p-a22d1078.entry.js} +1 -1
- package/dist/webcomponents/p-a6e816f6.entry.js +1 -0
- package/dist/webcomponents/{p-8681f258.entry.js → p-aaed4997.entry.js} +1 -1
- package/dist/webcomponents/p-ad9307c1.entry.js +1 -0
- package/dist/webcomponents/p-b36d9885.entry.js +1 -0
- package/dist/webcomponents/p-b46223fa.entry.js +1 -0
- package/dist/webcomponents/p-ba76226e.entry.js +1 -0
- package/dist/webcomponents/{p-e23219c6.entry.js → p-bbc42ab9.entry.js} +1 -1
- package/dist/webcomponents/p-bc510a8a.entry.js +1 -0
- package/dist/webcomponents/p-be3caaf8.entry.js +1 -0
- package/dist/webcomponents/p-c11f5079.entry.js +1 -0
- package/dist/webcomponents/p-c41191e7.entry.js +1 -0
- package/dist/webcomponents/p-c621e7af.entry.js +1 -0
- package/dist/webcomponents/p-d13edf9f.entry.js +1 -0
- package/dist/webcomponents/p-d4503c9a.entry.js +1 -0
- package/dist/webcomponents/p-d913cb6b.entry.js +1 -0
- package/dist/webcomponents/p-e016bb2e.entry.js +1 -0
- package/dist/webcomponents/{p-2769f945.entry.js → p-e6507b93.entry.js} +1 -1
- package/dist/webcomponents/{p-ed55d333.entry.js → p-e7e5fee9.entry.js} +1 -1
- package/dist/webcomponents/{p-4e23116c.entry.js → p-f2650bfc.entry.js} +1 -1
- package/dist/webcomponents/p-f42c68b0.entry.js +1 -0
- package/dist/webcomponents/p-f4cb581f.entry.js +1 -0
- package/dist/webcomponents/p-f528da70.entry.js +1 -0
- package/dist/webcomponents/p-f632894a.entry.js +1 -0
- package/dist/webcomponents/p-f66de935.entry.js +1 -0
- package/dist/webcomponents/p-fc9d0344.entry.js +1 -0
- package/dist/webcomponents/{p-9f70ce93.entry.js → p-fe862786.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +13 -13
- package/LICENSE +0 -21
- package/dist/cjs/checkout.store-BA6h-dp2.js +0 -107
- package/dist/esm/checkout.store-CaS_htQd.js +0 -101
- package/dist/webcomponents/p-087a81ff.entry.js +0 -1
- package/dist/webcomponents/p-1242bbf1.entry.js +0 -1
- package/dist/webcomponents/p-14d2f6c6.entry.js +0 -1
- package/dist/webcomponents/p-170700b1.entry.js +0 -1
- package/dist/webcomponents/p-1939d1e3.entry.js +0 -1
- package/dist/webcomponents/p-20a8b0c0.entry.js +0 -1
- package/dist/webcomponents/p-22f74666.entry.js +0 -1
- package/dist/webcomponents/p-30f61f44.entry.js +0 -1
- package/dist/webcomponents/p-3b49fc33.entry.js +0 -1
- package/dist/webcomponents/p-3c38cec5.entry.js +0 -1
- package/dist/webcomponents/p-45936490.entry.js +0 -1
- package/dist/webcomponents/p-4761e0aa.entry.js +0 -1
- package/dist/webcomponents/p-4c3eea2b.entry.js +0 -1
- package/dist/webcomponents/p-4da3e157.entry.js +0 -1
- package/dist/webcomponents/p-4dcbc0af.entry.js +0 -1
- package/dist/webcomponents/p-58dee174.entry.js +0 -1
- package/dist/webcomponents/p-69195676.entry.js +0 -1
- package/dist/webcomponents/p-716ddc27.entry.js +0 -1
- package/dist/webcomponents/p-7218c312.entry.js +0 -1
- package/dist/webcomponents/p-75c65531.entry.js +0 -1
- package/dist/webcomponents/p-8432a466.entry.js +0 -1
- package/dist/webcomponents/p-84a44362.entry.js +0 -1
- package/dist/webcomponents/p-84e2bd93.entry.js +0 -1
- package/dist/webcomponents/p-89518b26.entry.js +0 -1
- package/dist/webcomponents/p-8b2026d3.entry.js +0 -1
- package/dist/webcomponents/p-9d914297.entry.js +0 -1
- package/dist/webcomponents/p-CPKSE7M4.js +0 -1
- package/dist/webcomponents/p-D0YDz3L6.js +0 -1
- package/dist/webcomponents/p-DCIW8z1f.js +0 -1
- package/dist/webcomponents/p-DU8dqq9U.js +0 -1
- package/dist/webcomponents/p-DUwyoa82.js +0 -1
- package/dist/webcomponents/p-a655b996.entry.js +0 -1
- package/dist/webcomponents/p-a8f7cf9b.entry.js +0 -1
- package/dist/webcomponents/p-aa51df2c.entry.js +0 -1
- package/dist/webcomponents/p-ae7a027b.entry.js +0 -1
- package/dist/webcomponents/p-b4d8a3f6.entry.js +0 -1
- package/dist/webcomponents/p-bd73fba1.entry.js +0 -1
- package/dist/webcomponents/p-c1831747.entry.js +0 -1
- package/dist/webcomponents/p-c3b71a1f.entry.js +0 -1
- package/dist/webcomponents/p-c7279bc6.entry.js +0 -1
- package/dist/webcomponents/p-c7bfea00.entry.js +0 -1
- package/dist/webcomponents/p-c7f2cf51.entry.js +0 -1
- package/dist/webcomponents/p-c988bd84.entry.js +0 -1
- package/dist/webcomponents/p-cef213c3.entry.js +0 -1
- package/dist/webcomponents/p-d4b8274f.entry.js +0 -1
- package/dist/webcomponents/p-db651f27.entry.js +0 -1
- package/dist/webcomponents/p-dc0d3484.entry.js +0 -1
- package/dist/webcomponents/p-def857b8.entry.js +0 -1
- package/dist/webcomponents/p-df0e5377.entry.js +0 -1
- package/dist/webcomponents/p-e5caab42.entry.js +0 -1
- package/dist/webcomponents/p-eb56ba9b.entry.js +0 -1
- package/dist/webcomponents/p-edcb84bf.entry.js +0 -1
- package/dist/webcomponents/p-f1af630f.entry.js +0 -1
- package/dist/webcomponents/p-f5fb1af2.entry.js +0 -1
- package/dist/webcomponents/p-fab28b02.entry.js +0 -1
- package/dist/webcomponents/p-ff968ab6.entry.js +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { f as formatCurrency } from './utils-CIaHqjQt.js';
|
|
2
2
|
import { a as DisputeStatus } from './Dispute-BH0Xfn-F.js';
|
|
3
|
+
import { c as createStore } from './index-B-fWxE5e.js';
|
|
4
|
+
import { P as PAYMENT_METHODS } from './index-DkoufM1t.js';
|
|
3
5
|
|
|
4
6
|
class Completion {
|
|
5
7
|
constructor(data) {
|
|
@@ -585,4 +587,406 @@ class RefundPayload {
|
|
|
585
587
|
}
|
|
586
588
|
}
|
|
587
589
|
|
|
588
|
-
|
|
590
|
+
var ApplePaySessionStatus;
|
|
591
|
+
(function (ApplePaySessionStatus) {
|
|
592
|
+
ApplePaySessionStatus["STATUS_SUCCESS"] = "STATUS_SUCCESS";
|
|
593
|
+
ApplePaySessionStatus["STATUS_FAILURE"] = "STATUS_FAILURE";
|
|
594
|
+
})(ApplePaySessionStatus || (ApplePaySessionStatus = {}));
|
|
595
|
+
var ApplePayButtonType;
|
|
596
|
+
(function (ApplePayButtonType) {
|
|
597
|
+
ApplePayButtonType["PLAIN"] = "plain";
|
|
598
|
+
ApplePayButtonType["BUY"] = "buy";
|
|
599
|
+
ApplePayButtonType["SET_UP"] = "set-up";
|
|
600
|
+
ApplePayButtonType["DONATE"] = "donate";
|
|
601
|
+
ApplePayButtonType["CHECK_OUT"] = "check-out";
|
|
602
|
+
ApplePayButtonType["BOOK"] = "book";
|
|
603
|
+
ApplePayButtonType["SUBSCRIBE"] = "subscribe";
|
|
604
|
+
})(ApplePayButtonType || (ApplePayButtonType = {}));
|
|
605
|
+
var ApplePayButtonStyle;
|
|
606
|
+
(function (ApplePayButtonStyle) {
|
|
607
|
+
ApplePayButtonStyle["BLACK"] = "black";
|
|
608
|
+
ApplePayButtonStyle["WHITE"] = "white";
|
|
609
|
+
ApplePayButtonStyle["WHITE_OUTLINE"] = "white-outline";
|
|
610
|
+
})(ApplePayButtonStyle || (ApplePayButtonStyle = {}));
|
|
611
|
+
var ApplePayMerchantCapability;
|
|
612
|
+
(function (ApplePayMerchantCapability) {
|
|
613
|
+
ApplePayMerchantCapability["SUPPORTS_3DS"] = "supports3DS";
|
|
614
|
+
ApplePayMerchantCapability["SUPPORTS_EMV"] = "supportsEMV";
|
|
615
|
+
ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
|
|
616
|
+
ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
|
|
617
|
+
})(ApplePayMerchantCapability || (ApplePayMerchantCapability = {}));
|
|
618
|
+
class ApplePayConfig {
|
|
619
|
+
constructor(data) {
|
|
620
|
+
this.merchantIdentifier = data.merchantIdentifier;
|
|
621
|
+
this.displayName = data.displayName;
|
|
622
|
+
this.initiative = data.initiative;
|
|
623
|
+
this.initiativeContext = data.initiativeContext;
|
|
624
|
+
this.buttonType = data.buttonType || ApplePayButtonType.PLAIN;
|
|
625
|
+
this.buttonStyle = data.buttonStyle || ApplePayButtonStyle.BLACK;
|
|
626
|
+
this.buttonLocale = data.buttonLocale || 'en-US';
|
|
627
|
+
}
|
|
628
|
+
get isValid() {
|
|
629
|
+
return !!(this.merchantIdentifier &&
|
|
630
|
+
this.displayName &&
|
|
631
|
+
this.initiative &&
|
|
632
|
+
this.initiativeContext);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
class ApplePayPaymentRequest {
|
|
636
|
+
constructor(data) {
|
|
637
|
+
this.countryCode = data.countryCode;
|
|
638
|
+
this.currencyCode = data.currencyCode;
|
|
639
|
+
this.merchantCapabilities = data.merchantCapabilities;
|
|
640
|
+
this.supportedNetworks = data.supportedNetworks;
|
|
641
|
+
this.total = data.total;
|
|
642
|
+
this.lineItems = data.lineItems;
|
|
643
|
+
this.shippingMethods = data.shippingMethods;
|
|
644
|
+
this.applicationData = data.applicationData;
|
|
645
|
+
this.supportedCountries = data.supportedCountries;
|
|
646
|
+
}
|
|
647
|
+
get isValid() {
|
|
648
|
+
var _a, _b, _c, _d;
|
|
649
|
+
return !!(this.countryCode &&
|
|
650
|
+
this.currencyCode &&
|
|
651
|
+
((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
652
|
+
((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
|
|
653
|
+
((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
|
|
654
|
+
((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
class ApplePayHelpers {
|
|
658
|
+
static isApplePaySupported() {
|
|
659
|
+
var _a;
|
|
660
|
+
return (typeof window !== 'undefined' &&
|
|
661
|
+
'ApplePaySession' in window &&
|
|
662
|
+
((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3)));
|
|
663
|
+
}
|
|
664
|
+
static canMakePayments() {
|
|
665
|
+
var _a;
|
|
666
|
+
if (!this.isApplePaySupported()) {
|
|
667
|
+
return false;
|
|
668
|
+
}
|
|
669
|
+
return ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePayments()) || false;
|
|
670
|
+
}
|
|
671
|
+
static async canMakePaymentsWithActiveCard(merchantIdentifier) {
|
|
672
|
+
var _a;
|
|
673
|
+
if (!this.isApplePaySupported()) {
|
|
674
|
+
return false;
|
|
675
|
+
}
|
|
676
|
+
try {
|
|
677
|
+
return ((await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier))) || false);
|
|
678
|
+
}
|
|
679
|
+
catch (error) {
|
|
680
|
+
console.error('Error checking Apple Pay active card:', error);
|
|
681
|
+
return false;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
static formatAmount(amount) {
|
|
685
|
+
return (amount / 100).toFixed(2);
|
|
686
|
+
}
|
|
687
|
+
static parseAmount(amount) {
|
|
688
|
+
return Math.round(parseFloat(amount) * 100);
|
|
689
|
+
}
|
|
690
|
+
static createLineItem(label, amount, type = 'final') {
|
|
691
|
+
return {
|
|
692
|
+
label,
|
|
693
|
+
amount: this.formatAmount(amount),
|
|
694
|
+
type,
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
static getDefaultSupportedNetworks() {
|
|
698
|
+
return ['amex', 'discover', 'masterCard', 'visa'];
|
|
699
|
+
}
|
|
700
|
+
static getDefaultMerchantCapabilities() {
|
|
701
|
+
return [
|
|
702
|
+
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
703
|
+
ApplePayMerchantCapability.SUPPORTS_EMV,
|
|
704
|
+
ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
705
|
+
ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
706
|
+
];
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
const initialState = {
|
|
711
|
+
accountId: '',
|
|
712
|
+
authToken: '',
|
|
713
|
+
billingFormFields: {
|
|
714
|
+
address_postal_code: '',
|
|
715
|
+
},
|
|
716
|
+
bnplEnabled: false,
|
|
717
|
+
applePayEnabled: false,
|
|
718
|
+
googlePayEnabled: false,
|
|
719
|
+
insuranceEnabled: false,
|
|
720
|
+
bnplProviderApiVersion: '',
|
|
721
|
+
bnplProviderCheckoutUrl: '',
|
|
722
|
+
bnplProviderClientId: '',
|
|
723
|
+
bnplProviderMode: '',
|
|
724
|
+
checkoutId: '',
|
|
725
|
+
checkoutLoaded: false,
|
|
726
|
+
bankAccountVerification: undefined,
|
|
727
|
+
disableBankAccount: false,
|
|
728
|
+
disableCreditCard: false,
|
|
729
|
+
disablePaymentMethodGroup: false,
|
|
730
|
+
paymentAmount: 0,
|
|
731
|
+
paymentCurrency: 'USD',
|
|
732
|
+
paymentDescription: '',
|
|
733
|
+
paymentMethodGroupId: undefined,
|
|
734
|
+
paymentMethods: [],
|
|
735
|
+
paymentToken: undefined,
|
|
736
|
+
savePaymentMethod: false,
|
|
737
|
+
selectedPaymentMethod: undefined,
|
|
738
|
+
totalAmount: 0,
|
|
739
|
+
plaidPublicToken: undefined,
|
|
740
|
+
plaidLinkTokenId: undefined,
|
|
741
|
+
};
|
|
742
|
+
const { state: checkoutStore, onChange } = createStore(initialState);
|
|
743
|
+
Object.keys(initialState).forEach((key) => {
|
|
744
|
+
// @ts-ignore
|
|
745
|
+
onChange(key, (newValue) => {
|
|
746
|
+
checkoutStore[key] = newValue;
|
|
747
|
+
});
|
|
748
|
+
});
|
|
749
|
+
// Helper: compute available payment methods based on store flags
|
|
750
|
+
function getAvailablePaymentMethodTypes() {
|
|
751
|
+
var _a;
|
|
752
|
+
const methods = [];
|
|
753
|
+
if (!checkoutStore.disablePaymentMethodGroup &&
|
|
754
|
+
((_a = checkoutStore.paymentMethods) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
755
|
+
const hasSavedCard = checkoutStore.paymentMethods.some((pm) => pm.type === PAYMENT_METHODS.SAVED_CARD);
|
|
756
|
+
const hasSavedBank = checkoutStore.paymentMethods.some((pm) => pm.type === PAYMENT_METHODS.SAVED_BANK_ACCOUNT);
|
|
757
|
+
if (hasSavedCard && !checkoutStore.disableCreditCard) {
|
|
758
|
+
methods.push(PAYMENT_METHODS.SAVED_CARD);
|
|
759
|
+
}
|
|
760
|
+
if (hasSavedBank && !checkoutStore.disableBankAccount) {
|
|
761
|
+
methods.push(PAYMENT_METHODS.SAVED_BANK_ACCOUNT);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
if (!checkoutStore.disableCreditCard) {
|
|
765
|
+
methods.push(PAYMENT_METHODS.NEW_CARD);
|
|
766
|
+
}
|
|
767
|
+
if (!checkoutStore.disableBankAccount) {
|
|
768
|
+
methods.push(PAYMENT_METHODS.NEW_BANK_ACCOUNT);
|
|
769
|
+
}
|
|
770
|
+
if (checkoutStore.bnplEnabled) {
|
|
771
|
+
methods.push(PAYMENT_METHODS.SEZZLE);
|
|
772
|
+
}
|
|
773
|
+
if (checkoutStore.applePayEnabled) {
|
|
774
|
+
methods.push(PAYMENT_METHODS.APPLE_PAY);
|
|
775
|
+
}
|
|
776
|
+
if (checkoutStore.googlePayEnabled) {
|
|
777
|
+
methods.push(PAYMENT_METHODS.GOOGLE_PAY);
|
|
778
|
+
}
|
|
779
|
+
if (checkoutStore.bankAccountVerification === true &&
|
|
780
|
+
!checkoutStore.disableBankAccount) {
|
|
781
|
+
methods.push(PAYMENT_METHODS.PLAID);
|
|
782
|
+
}
|
|
783
|
+
return methods;
|
|
784
|
+
}
|
|
785
|
+
function getCheckoutState() {
|
|
786
|
+
var _a;
|
|
787
|
+
return {
|
|
788
|
+
selectedPaymentMethod: checkoutStore.selectedPaymentMethod,
|
|
789
|
+
paymentAmount: checkoutStore.paymentAmount,
|
|
790
|
+
totalAmount: checkoutStore.totalAmount,
|
|
791
|
+
paymentCurrency: checkoutStore.paymentCurrency,
|
|
792
|
+
paymentDescription: checkoutStore.paymentDescription,
|
|
793
|
+
savedPaymentMethods: checkoutStore.paymentMethods,
|
|
794
|
+
savePaymentMethod: checkoutStore.savePaymentMethod,
|
|
795
|
+
bnplEnabled: checkoutStore.bnplEnabled,
|
|
796
|
+
applePayEnabled: checkoutStore.applePayEnabled,
|
|
797
|
+
insuranceEnabled: checkoutStore.insuranceEnabled,
|
|
798
|
+
disableBankAccount: checkoutStore.disableBankAccount,
|
|
799
|
+
disableCreditCard: checkoutStore.disableCreditCard,
|
|
800
|
+
disablePaymentMethodGroup: checkoutStore.disablePaymentMethodGroup,
|
|
801
|
+
paymentToken: (_a = checkoutStore.paymentToken) !== null && _a !== void 0 ? _a : undefined,
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
function onAnyChange(callback) {
|
|
805
|
+
Object.keys(initialState).forEach((key) => {
|
|
806
|
+
// @ts-ignore - onChange is generically typed by stencil/store but not exported here
|
|
807
|
+
onChange(key, (newValue) => callback(key, newValue));
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
var GooglePayButtonType;
|
|
812
|
+
(function (GooglePayButtonType) {
|
|
813
|
+
GooglePayButtonType["PLAIN"] = "plain";
|
|
814
|
+
GooglePayButtonType["BUY"] = "buy";
|
|
815
|
+
GooglePayButtonType["BOOK"] = "book";
|
|
816
|
+
GooglePayButtonType["CHECKOUT"] = "checkout";
|
|
817
|
+
GooglePayButtonType["DONATE"] = "donate";
|
|
818
|
+
GooglePayButtonType["ORDER"] = "order";
|
|
819
|
+
GooglePayButtonType["PAY"] = "pay";
|
|
820
|
+
GooglePayButtonType["SUBSCRIBE"] = "subscribe";
|
|
821
|
+
})(GooglePayButtonType || (GooglePayButtonType = {}));
|
|
822
|
+
var GooglePayButtonStyle;
|
|
823
|
+
(function (GooglePayButtonStyle) {
|
|
824
|
+
GooglePayButtonStyle["BLACK"] = "black";
|
|
825
|
+
GooglePayButtonStyle["WHITE"] = "white";
|
|
826
|
+
})(GooglePayButtonStyle || (GooglePayButtonStyle = {}));
|
|
827
|
+
var GooglePayButtonSizeMode;
|
|
828
|
+
(function (GooglePayButtonSizeMode) {
|
|
829
|
+
GooglePayButtonSizeMode["STATIC"] = "static";
|
|
830
|
+
GooglePayButtonSizeMode["FILL"] = "fill";
|
|
831
|
+
})(GooglePayButtonSizeMode || (GooglePayButtonSizeMode = {}));
|
|
832
|
+
var GooglePayEnvironment;
|
|
833
|
+
(function (GooglePayEnvironment) {
|
|
834
|
+
GooglePayEnvironment["PRODUCTION"] = "PRODUCTION";
|
|
835
|
+
GooglePayEnvironment["TEST"] = "TEST";
|
|
836
|
+
})(GooglePayEnvironment || (GooglePayEnvironment = {}));
|
|
837
|
+
class GooglePayConfig {
|
|
838
|
+
constructor(data) {
|
|
839
|
+
this.environment = data.environment;
|
|
840
|
+
this.merchantId = data.merchantId;
|
|
841
|
+
this.merchantName = data.merchantName;
|
|
842
|
+
this.buttonType = data.buttonType || GooglePayButtonType.PLAIN;
|
|
843
|
+
this.buttonStyle = data.buttonStyle || GooglePayButtonStyle.BLACK;
|
|
844
|
+
this.buttonSizeMode = data.buttonSizeMode || GooglePayButtonSizeMode.STATIC;
|
|
845
|
+
this.buttonLocale = data.buttonLocale || 'en';
|
|
846
|
+
}
|
|
847
|
+
get isValid() {
|
|
848
|
+
return !!(this.environment && this.merchantName);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
class GooglePayPaymentDataRequest {
|
|
852
|
+
constructor(data) {
|
|
853
|
+
this.apiVersion = data.apiVersion;
|
|
854
|
+
this.apiVersionMinor = data.apiVersionMinor;
|
|
855
|
+
this.allowedPaymentMethods = data.allowedPaymentMethods;
|
|
856
|
+
this.transactionInfo = data.transactionInfo;
|
|
857
|
+
this.merchantInfo = data.merchantInfo;
|
|
858
|
+
this.callbackIntents = data.callbackIntents;
|
|
859
|
+
this.shippingAddressRequired = data.shippingAddressRequired;
|
|
860
|
+
this.shippingAddressParameters = data.shippingAddressParameters;
|
|
861
|
+
this.emailRequired = data.emailRequired;
|
|
862
|
+
}
|
|
863
|
+
get isValid() {
|
|
864
|
+
var _a, _b, _c, _d;
|
|
865
|
+
const hasApiVersion = typeof this.apiVersion === 'number' && this.apiVersion > 0;
|
|
866
|
+
const hasApiVersionMinor = typeof this.apiVersionMinor === 'number' && this.apiVersionMinor >= 0;
|
|
867
|
+
const hasAllowedMethods = Array.isArray(this.allowedPaymentMethods) &&
|
|
868
|
+
this.allowedPaymentMethods.length > 0;
|
|
869
|
+
const hasTxnCountry = Boolean((_a = this.transactionInfo) === null || _a === void 0 ? void 0 : _a.countryCode);
|
|
870
|
+
const hasTxnCurrency = Boolean((_b = this.transactionInfo) === null || _b === void 0 ? void 0 : _b.currencyCode);
|
|
871
|
+
const hasTxnTotal = Boolean((_c = this.transactionInfo) === null || _c === void 0 ? void 0 : _c.totalPrice);
|
|
872
|
+
const hasMerchantName = Boolean((_d = this.merchantInfo) === null || _d === void 0 ? void 0 : _d.merchantName);
|
|
873
|
+
return (hasApiVersion &&
|
|
874
|
+
hasApiVersionMinor &&
|
|
875
|
+
hasAllowedMethods &&
|
|
876
|
+
hasTxnCountry &&
|
|
877
|
+
hasTxnCurrency &&
|
|
878
|
+
hasTxnTotal &&
|
|
879
|
+
hasMerchantName);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
class GooglePayHelpers {
|
|
883
|
+
/**
|
|
884
|
+
* Check if Google Pay is supported in the current environment
|
|
885
|
+
*/
|
|
886
|
+
static isGooglePaySupported() {
|
|
887
|
+
return (typeof window !== 'undefined' &&
|
|
888
|
+
'google' in window &&
|
|
889
|
+
'payments' in window.google &&
|
|
890
|
+
'api' in window.google.payments);
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Create a Google Pay client instance
|
|
894
|
+
*/
|
|
895
|
+
static createGooglePayClient(environment) {
|
|
896
|
+
if (!this.isGooglePaySupported()) {
|
|
897
|
+
return null;
|
|
898
|
+
}
|
|
899
|
+
try {
|
|
900
|
+
return new window.google.payments.api.PaymentsClient({
|
|
901
|
+
environment: environment === GooglePayEnvironment.PRODUCTION
|
|
902
|
+
? 'PRODUCTION'
|
|
903
|
+
: 'TEST',
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
catch (_error) {
|
|
907
|
+
return null;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Format amount for Google Pay (expects string in full currency units)
|
|
912
|
+
*/
|
|
913
|
+
static formatAmount(amount) {
|
|
914
|
+
return (amount / 100).toFixed(2);
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* Parse amount from Google Pay format to cents
|
|
918
|
+
*/
|
|
919
|
+
static parseAmount(amount) {
|
|
920
|
+
return Math.round(parseFloat(amount) * 100);
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Create a line item for Google Pay
|
|
924
|
+
*/
|
|
925
|
+
static createLineItem(label, amount, type = 'LINE_ITEM') {
|
|
926
|
+
return {
|
|
927
|
+
label,
|
|
928
|
+
price: this.formatAmount(amount),
|
|
929
|
+
type,
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Get default supported card networks
|
|
934
|
+
*/
|
|
935
|
+
static getDefaultSupportedNetworks() {
|
|
936
|
+
return ['VISA', 'MASTERCARD', 'AMEX', 'DISCOVER'];
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* Get default allowed authentication methods
|
|
940
|
+
*/
|
|
941
|
+
static getDefaultAuthMethods() {
|
|
942
|
+
return ['PAN_ONLY', 'CRYPTOGRAM_3DS'];
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* Create default card parameters
|
|
946
|
+
*/
|
|
947
|
+
static createDefaultCardParameters() {
|
|
948
|
+
return {
|
|
949
|
+
allowedAuthMethods: this.getDefaultAuthMethods(),
|
|
950
|
+
allowedCardNetworks: this.getDefaultSupportedNetworks(),
|
|
951
|
+
billingAddressRequired: false,
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* Create default tokenization specification
|
|
956
|
+
*/
|
|
957
|
+
static createTokenizationSpecification() {
|
|
958
|
+
return {
|
|
959
|
+
type: 'PAYMENT_GATEWAY',
|
|
960
|
+
parameters: {
|
|
961
|
+
gateway: 'justifi',
|
|
962
|
+
gatewayMerchantId: checkoutStore.accountId,
|
|
963
|
+
},
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Create default payment method data
|
|
968
|
+
*/
|
|
969
|
+
static createPaymentMethodData() {
|
|
970
|
+
return {
|
|
971
|
+
type: 'CARD',
|
|
972
|
+
parameters: this.createDefaultCardParameters(),
|
|
973
|
+
tokenizationSpecification: this.createTokenizationSpecification(),
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Create base payment data request check
|
|
978
|
+
*/
|
|
979
|
+
static createBasePaymentDataRequest() {
|
|
980
|
+
const base = {
|
|
981
|
+
apiVersion: 2,
|
|
982
|
+
apiVersionMinor: 0,
|
|
983
|
+
allowedPaymentMethods: [this.createPaymentMethodData()],
|
|
984
|
+
};
|
|
985
|
+
// For development and broader availability of the button, do not require an existing card
|
|
986
|
+
// This allows isReadyToPay to return true on supported browsers even without a saved payment method
|
|
987
|
+
base.existingPaymentMethodRequired = false;
|
|
988
|
+
return base;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
export { ApplePayConfig as A, onChange as B, Checkout as C, onAnyChange as D, EntityDocumentType as E, getAvailablePaymentMethodTypes as F, GooglePayConfig as G, getCheckoutState as H, ICheckoutStatus as I, Payment as P, RefundReasons as R, SubAccount as S, TerminalOrderStatus as T, ICheckoutPaymentModeParam as a, TerminalOrderType as b, checkoutStore as c, ITerminalStatus as d, Payout as e, Terminal as f, PaymentStatuses as g, PaymentBalanceTransaction as h, PayoutBalanceTransaction as i, TerminalOrder as j, TerminalModel as k, RefundPayload as l, EntityDocumentStorage as m, EntityDocument as n, ApplePayHelpers as o, ApplePayPaymentRequest as p, ApplePaySessionStatus as q, ApplePayButtonStyle as r, ApplePayButtonType as s, ApplePayMerchantCapability as t, GooglePayHelpers as u, GooglePayPaymentDataRequest as v, GooglePayButtonSizeMode as w, GooglePayButtonStyle as x, GooglePayButtonType as y, GooglePayEnvironment as z };
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host, c as createEvent, g as getElement
|
|
|
2
2
|
import './config-state-C2NXATwF.js';
|
|
3
3
|
import './dinero-HXpYMWUU.js';
|
|
4
4
|
import './ComponentError-Cjcsf8ku.js';
|
|
5
|
-
import { E as EntityDocumentType } from './
|
|
5
|
+
import { E as EntityDocumentType } from './GooglePay-ChLgDgG7.js';
|
|
6
6
|
import './Pagination-CLHwhyvu.js';
|
|
7
7
|
import './Business-B5rtFhtR.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
@@ -15,13 +15,14 @@ import { S as Skeleton } from './skeleton-BmRZRW5K.js';
|
|
|
15
15
|
import './event-types-CZfYo5-1.js';
|
|
16
16
|
import { F as FormControlErrorText } from './form-control-error-text-B5LSdUXI.js';
|
|
17
17
|
import './index-B-fWxE5e.js';
|
|
18
|
+
import './index-DkoufM1t.js';
|
|
18
19
|
|
|
19
20
|
const BankAccountDocumentFormInputs = class {
|
|
20
21
|
constructor(hostRef) {
|
|
21
22
|
registerInstance(this, hostRef);
|
|
22
23
|
}
|
|
23
24
|
render() {
|
|
24
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: '4daf6eadf7e1213c3534bd845c917af0b1ec1fec', class: "row gy-3" }, h("div", { key: '9d7235d40a0884960948eaac7dc990e947bf5165', class: "col-12" }, h("form-control-file", { key: 'e0e3704079e20c86dacec668d27ca23ef981aa2f', name: "voided_check", label: "Voided Check", documentType: EntityDocumentType.voidedCheck, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["voided_check"], multiple: true })), h("div", { key: '5c4c20191c6c54170896a9c0f893a7fe06ff6a70', class: "col-12" }, h("form-control-file", { key: '6d4ac9d3a47952644bab5afe4b23332a56c04035', name: "bank_statement", label: "Bank Statement", documentType: EntityDocumentType.bankStatement, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["bank_statement"], multiple: true }))));
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
|
|
@@ -31,7 +32,7 @@ const BankAccountFormInputs = class {
|
|
|
31
32
|
}
|
|
32
33
|
render() {
|
|
33
34
|
var _a, _b, _c, _d, _e, _f;
|
|
34
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '951373cbaf604ec2f34364fd93ac9ccf666a4e58', class: "row gy-3" }, h("div", { key: 'a2fbc555aeb3b9bed12f032385ea9889482e6caf', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), h("div", { key: 'c05c9e185293799ee94cbd8bec3976d115469b00', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), h("div", { key: 'b3cc026a1c2079ddcd744d7557742ac98073f03c', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (h("form-control-text", { name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler }))), h("div", { key: 'f3649a91a8af13374eb55f06ecc81e6e06bd4b01', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (h("form-control-select", { name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), h("div", { key: '34eb7df603e1d7d9bb616c51057dd5da9a2e3e3f', class: "col-6" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Number", value: ((_e = this.defaultValue) === null || _e === void 0 ? void 0 : _e.account_number_last4) ? `**** ${this.defaultValue.account_number_last4}` : '' })) : (h("form-control-text", { name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." }))), h("div", { key: '64897a96be65ddd311267e5ea1571993ab61787d', class: "col-6" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Routing Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.routing_number) || '' })) : (h("form-control-text", { name: "routing_number", label: "Routing Number", defaultValue: this.defaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." })))));
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
38
|
|
|
@@ -41,7 +42,7 @@ const BankAccountFormInputsCanada = class {
|
|
|
41
42
|
}
|
|
42
43
|
render() {
|
|
43
44
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
44
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '80b2030f1c1840df293a5ec600fe16836b502647', class: "row gy-3" }, h("div", { key: '5a28a5b515856da7808fc49cf0f775f8c4c71daa', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), h("div", { key: '62761912ccf0ee5ba1e5c13cbb08cde9687d05bd', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), h("div", { key: '04472a07096890a51d2e2db463f7040a389fd4e1', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (h("form-control-text", { name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler }))), h("div", { key: 'c2caa8ddb2b1038efb49e3361eab760108a34308', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (h("form-control-select", { name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), h("div", { key: '2446720991bd2512f6bb8a779e47e526100dacb3', class: "col-3" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Transit Number", value: ((_e = this.defaultValue) === null || _e === void 0 ? void 0 : _e.transit_number) || '' })) : (h("form-control-text", { name: "transit_number", label: "Transit Number", defaultValue: this.defaultValue.transit_number, maxLength: 5, errorText: this.errors.transit_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "5 digits" }))), h("div", { key: '98cda3809e604cc3e863f2d01698e217694b2550', class: "col-3" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Institution Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.institution_number) || '' })) : (h("form-control-text", { name: "institution_number", label: "Institution Number", defaultValue: this.defaultValue.institution_number, maxLength: 3, errorText: this.errors.institution_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "3 digits" }))), h("div", { key: 'de285afb20fe922e3a8dd66727222e2f49567aae', class: "col-6" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Number", value: ((_g = this.defaultValue) === null || _g === void 0 ? void 0 : _g.account_number_last4) ? `**** ${this.defaultValue.account_number_last4}` : '' })) : (h("form-control-text", { name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "Please copy the account number as shown on your statement. Do not include spaces or dashes." })))));
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
|
|
@@ -50,7 +51,7 @@ const BankAccountReadOnlyValue = class {
|
|
|
50
51
|
registerInstance(this, hostRef);
|
|
51
52
|
}
|
|
52
53
|
render() {
|
|
53
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '0d44d4aa265a5fd36ca30f1db072eb834f8bdf1b' }, h("label", { key: '892e6dbdbff5d484df4dfb522f3db8968f46d7d4', class: "form-label", part: text }, this.label), h("div", { key: 'cd617e2302834ad67ebccd64e24d535b2cc19da8', part: text }, this.value || '')));
|
|
54
55
|
}
|
|
55
56
|
};
|
|
56
57
|
|
|
@@ -114,10 +115,10 @@ const FileInput = class {
|
|
|
114
115
|
return part;
|
|
115
116
|
}
|
|
116
117
|
render() {
|
|
117
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: 'fdb25496e92f4a0ac8d59dc21a1ee0b4364dfb0b' }, h("div", { key: 'dfbb750595eafcaef0d02dffa740c58b0459d99a', class: "form-group d-flex flex-column" }, h("div", { key: '78b3a1c682ad87d317f7e7407fbd73392a20b5c2', class: "d-flex align-items-start gap-2" }, h("label", { key: '1f0a3ee1e9252c5ea446636d6602102bb7b6215c', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '7cf6117ae465514d3cbeb1ed2186f6b9d708c14e', helpText: this.helpText })), h("input", { key: '44a29d1872127ae6b588553cceed75144dd80381', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
118
119
|
this.isFocused = false;
|
|
119
120
|
this.formControlBlur.emit();
|
|
120
|
-
} }), h(FormControlErrorText, { key: '
|
|
121
|
+
} }), h(FormControlErrorText, { key: '50be6125a92cc147aa1b7be3b6777835d7a8d0c3', errorText: this.errorText, name: this.name }))));
|
|
121
122
|
}
|
|
122
123
|
get el() { return getElement(this); }
|
|
123
124
|
};
|
|
@@ -46,10 +46,10 @@ const BankAccountForm = class {
|
|
|
46
46
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'c52bde6d4ad8484c2514197f48dc11e1a395a170' }, h(BankAccountFormSkeleton, { key: '4e52b258cea0b9d086187e58f73d13bf77aa7d4e', isReady: this.isReady }), h("div", { key: 'd12c2b471e35091a8615124ecd6e5a5362a42b89', class: "container-fluid p-0", style: {
|
|
50
50
|
opacity: this.isReady ? '1' : '0',
|
|
51
51
|
height: this.isReady ? 'auto' : '0',
|
|
52
|
-
} }, h("div", { key: '
|
|
52
|
+
} }, h("div", { key: 'b432c0b7a4329f84e6697328315c9fa12b3e8898', class: "row mb-3" }, h("iframe-input", { key: '283a94b1d724cf80cf6910a2ab9ce070ce163f43', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '6013df7745d3e254eee38095a60a97dd6cc3539d', class: "row" }, h("iframe-input", { key: '30d1f967f7a740a1f154126d2032425a834499cc', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -50,10 +50,10 @@ const CardForm = class {
|
|
|
50
50
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: 'c97d78cffe3d8452c22218775c1d5ba299df44b8' }, h(CardFormSkeleton, { key: '0d19e9e137044ddc2d65700b2ab1697ad14f9add', isReady: this.isReady }), h("div", { key: '12ba94f7996b035bfa5ccbc9266f240bc465bf29', class: "container-fluid p-0", style: {
|
|
54
54
|
opacity: this.isReady ? '1' : '0',
|
|
55
55
|
height: this.isReady ? 'auto' : '0',
|
|
56
|
-
} }, h("div", { key: '
|
|
56
|
+
} }, h("div", { key: '334b186b9b458b90a3f6abe0a6e020f281abef66', class: "mb-3" }, h("iframe-input", { key: 'f73429270e31b16b4f94f533ea4ccf65fe726c2b', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: 'bc98478795277a4381ef16ace36b4b07b58045e6', class: "d-flex align-items-start" }, h("div", { key: 'eba7882dd19743a2a8c28546b739b809ca908982', class: "flex-fill me-3" }, h("iframe-input", { key: 'd352fc8ac9e5d4100c57396eb514f8835d8eff14', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: 'bfb3ea5395251c49d42319fb6ad8b5dc13a437aa', class: "flex-fill me-3" }, h("iframe-input", { key: 'b90d7f2d8bdb847ac368fe3cff3a88426c7b7cc1', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: 'a390b51062dc84b5621fc88dc20f1ce2d8a48767', class: "flex-fill" }, h("iframe-input", { key: '821a97f9496ae1f95c8e5de50b1196e55d7606ca', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
1
|
+
import { p as packageJson } from './package-DbqKgrF-.js';
|
|
2
2
|
import { A as Api } from './Api-DX-IWyBw.js';
|
|
3
3
|
import './ComponentError-Cjcsf8ku.js';
|
|
4
|
-
import './
|
|
4
|
+
import './GooglePay-ChLgDgG7.js';
|
|
5
5
|
import './Pagination-CLHwhyvu.js';
|
|
6
6
|
import './Business-B5rtFhtR.js';
|
|
7
7
|
import './Dispute-BH0Xfn-F.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js'
|
|
|
2
2
|
import './config-state-C2NXATwF.js';
|
|
3
3
|
import './dinero-HXpYMWUU.js';
|
|
4
4
|
import './ComponentError-Cjcsf8ku.js';
|
|
5
|
-
import './
|
|
5
|
+
import './GooglePay-ChLgDgG7.js';
|
|
6
6
|
import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
|
|
7
7
|
import './Business-B5rtFhtR.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
@@ -12,6 +12,7 @@ import { c as checkoutTableColumns, a as checkoutTableCells } from './checkouts-
|
|
|
12
12
|
import { o as onQueryParamsChange, g as getRequestParams } from './checkouts-list-params-state-gllzDQAb.js';
|
|
13
13
|
import './index-B-fWxE5e.js';
|
|
14
14
|
import './utils-CIaHqjQt.js';
|
|
15
|
+
import './index-DkoufM1t.js';
|
|
15
16
|
import './parts-wtuY7MT2.js';
|
|
16
17
|
import './spinner-tU4D9iak.js';
|
|
17
18
|
import './badge-Bgosx-DC.js';
|
|
@@ -132,7 +133,7 @@ const CheckoutsListCore = class {
|
|
|
132
133
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
133
134
|
}
|
|
134
135
|
render() {
|
|
135
|
-
return (h(TableWrapper, { key: '
|
|
136
|
+
return (h(TableWrapper, { key: 'ea74cbb0bce1e96b597344ee226eebc5dc369b1b' }, h(TableComponent, { key: '37ca3a5b8c1d53604edb487d1e31f0d829a0a4a8' }, h(TableHead, { key: 'd61415d71f636ce288036867c70e22fa459e1cf6' }, h(TableHeadRow, { key: '75db78b57011fc3d14eea8ecd353ea117b4d951e' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '71631afc11d6a096f71275bd6231a1e5f0a66e72' }, h(TableLoadingState, { key: 'ea6c8eb8f602d1924b278c374ad02d218758e65c', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'f581dad5d925bcd85aea7b9292d719050eea5431', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'f6ecafe13119e285ab27396bade1992b31663e52', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '846c7a9976a4738f64d0a067bb8e48840e04b3ab' }, h(TableFootRow, { key: 'ce2c52b71c891a3621c54bfd3e9c75088d685818' }, h(TableFootCell, { key: 'ea253462403bb909e8423776027bbdadf41ab746', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '4d6d2f7a5559d2f20f86c8fc138a402e7b985503', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
136
137
|
}
|
|
137
138
|
static get watchers() { return {
|
|
138
139
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -1872,7 +1872,7 @@ const CustomPopper = class {
|
|
|
1872
1872
|
this.hideEvent.emit();
|
|
1873
1873
|
}
|
|
1874
1874
|
render() {
|
|
1875
|
-
return (h("div", { key: '
|
|
1875
|
+
return (h("div", { key: 'd41a43285190500dbdf63ebfe4c381e6ebe3c680' }, h("style", { key: 'c9f85586d09e78390d94a2c62815a30d5b5c72c8' }, `
|
|
1876
1876
|
.popper-content {
|
|
1877
1877
|
display: none;
|
|
1878
1878
|
}
|
|
@@ -1880,7 +1880,7 @@ const CustomPopper = class {
|
|
|
1880
1880
|
display: block;
|
|
1881
1881
|
z-index: 1030;
|
|
1882
1882
|
}
|
|
1883
|
-
`), h("div", { key: '
|
|
1883
|
+
`), h("div", { key: '34cd3ce248d7856ef8cd287bf460fa663ff047da', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '8cf3cc61f96ccd087435dceb2a999bc367c110b8' }))));
|
|
1884
1884
|
}
|
|
1885
1885
|
};
|
|
1886
1886
|
|