@justifi/webcomponents 6.4.2 → 6.5.0-rc.1
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-goSFbVFL.js → check-pkg-version-DV1hwzA2.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 +21 -7
- 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-jZDXnKmY.js → package-MS7_CYge.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 +17 -3
- 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-CPDwCVPS.js → check-pkg-version-BQxLpn00.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 +21 -7
- 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-B3SPy-II.js → package-CYxDR985.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 +17 -3
- 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/form/hidden-input.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-032ee5b7.entry.js +1 -0
- 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-0c7db215.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-19ea1354.entry.js +1 -0
- package/dist/webcomponents/p-1ce0e372.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-2a14111e.entry.js +1 -0
- package/dist/webcomponents/p-2aa04490.entry.js +1 -0
- package/dist/webcomponents/p-2da4e6ca.entry.js +1 -0
- package/dist/webcomponents/p-2eb123a3.entry.js +1 -0
- package/dist/webcomponents/p-34a87967.entry.js +1 -0
- package/dist/webcomponents/p-36ad1db9.entry.js +1 -0
- package/dist/webcomponents/p-383f8a27.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-4040df88.entry.js +1 -0
- 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-5ac8f679.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-CxPieTnF.js → p-7SgMy3r5.js} +1 -1
- package/dist/webcomponents/p-81c1ebd3.entry.js +1 -0
- package/dist/webcomponents/p-8332592a.entry.js +1 -0
- package/dist/webcomponents/p-849ad4d3.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-914b590d.entry.js +1 -0
- package/dist/webcomponents/p-9a3225e2.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-CQsNLuzi.js +1 -0
- package/dist/webcomponents/{p-BiizzRhw.js → p-CUkHRggn.js} +1 -1
- package/dist/webcomponents/p-CYxDR985.js +1 -0
- package/dist/webcomponents/{p-ZrJKEEoy.js → p-DELUWNSY.js} +1 -1
- 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-b46223fa.entry.js +1 -0
- package/dist/webcomponents/p-ba76226e.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-c4c1c6d4.entry.js +1 -0
- package/dist/webcomponents/p-c621e7af.entry.js +1 -0
- package/dist/webcomponents/p-c8d15694.entry.js +1 -0
- package/dist/webcomponents/p-d13edf9f.entry.js +1 -0
- package/dist/webcomponents/p-d36351e9.entry.js +1 -0
- package/dist/webcomponents/p-d4738115.entry.js +1 -0
- package/dist/webcomponents/p-d913cb6b.entry.js +1 -0
- package/dist/webcomponents/p-dd0ac112.entry.js +1 -0
- package/dist/webcomponents/p-dd75958b.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-f2a03f5d.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-9f70ce93.entry.js → p-fe862786.entry.js} +1 -1
- package/dist/webcomponents/p-ff2e2879.entry.js +1 -0
- package/dist/webcomponents/p-ffed8f86.entry.js +1 -0
- 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-01c9c76c.entry.js +0 -1
- package/dist/webcomponents/p-0389ea61.entry.js +0 -1
- package/dist/webcomponents/p-05351f0d.entry.js +0 -1
- package/dist/webcomponents/p-07e85954.entry.js +0 -1
- package/dist/webcomponents/p-087a81ff.entry.js +0 -1
- package/dist/webcomponents/p-14d2f6c6.entry.js +0 -1
- package/dist/webcomponents/p-1b94c32d.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-24c22851.entry.js +0 -1
- package/dist/webcomponents/p-30f61f44.entry.js +0 -1
- package/dist/webcomponents/p-3c38cec5.entry.js +0 -1
- package/dist/webcomponents/p-4488378e.entry.js +0 -1
- package/dist/webcomponents/p-44e021e3.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-4dcbc0af.entry.js +0 -1
- package/dist/webcomponents/p-4ed1fc3b.entry.js +0 -1
- package/dist/webcomponents/p-6550b836.entry.js +0 -1
- package/dist/webcomponents/p-6d06ea25.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-84e2bd93.entry.js +0 -1
- package/dist/webcomponents/p-89518b26.entry.js +0 -1
- package/dist/webcomponents/p-8bfd15af.entry.js +0 -1
- package/dist/webcomponents/p-9d914297.entry.js +0 -1
- package/dist/webcomponents/p-B3SPy-II.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-a655b996.entry.js +0 -1
- package/dist/webcomponents/p-a793d1bd.entry.js +0 -1
- package/dist/webcomponents/p-a8f7cf9b.entry.js +0 -1
- package/dist/webcomponents/p-ad8b9fba.entry.js +0 -1
- package/dist/webcomponents/p-ae62e01d.entry.js +0 -1
- package/dist/webcomponents/p-ae7a027b.entry.js +0 -1
- package/dist/webcomponents/p-b3e0c981.entry.js +0 -1
- package/dist/webcomponents/p-b4d8a3f6.entry.js +0 -1
- package/dist/webcomponents/p-bd10429d.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-d2bb462e.entry.js +0 -1
- package/dist/webcomponents/p-d3e4697f.entry.js +0 -1
- package/dist/webcomponents/p-d4b8274f.entry.js +0 -1
- package/dist/webcomponents/p-d89c166f.entry.js +0 -1
- package/dist/webcomponents/p-dc0d3484.entry.js +0 -1
- package/dist/webcomponents/p-e3f6c3c4.entry.js +0 -1
- package/dist/webcomponents/p-eb56ba9b.entry.js +0 -1
- package/dist/webcomponents/p-ebb73921.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
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var utils = require('./utils-Bab-tddY.js');
|
|
4
4
|
var Dispute = require('./Dispute-CruQTF6_.js');
|
|
5
|
+
var index = require('./index-mmd0OhmD.js');
|
|
6
|
+
var index$1 = require('./index-CajjbB9t.js');
|
|
5
7
|
|
|
6
8
|
class Completion {
|
|
7
9
|
constructor(data) {
|
|
@@ -587,9 +589,417 @@ class RefundPayload {
|
|
|
587
589
|
}
|
|
588
590
|
}
|
|
589
591
|
|
|
592
|
+
exports.ApplePaySessionStatus = void 0;
|
|
593
|
+
(function (ApplePaySessionStatus) {
|
|
594
|
+
ApplePaySessionStatus["STATUS_SUCCESS"] = "STATUS_SUCCESS";
|
|
595
|
+
ApplePaySessionStatus["STATUS_FAILURE"] = "STATUS_FAILURE";
|
|
596
|
+
})(exports.ApplePaySessionStatus || (exports.ApplePaySessionStatus = {}));
|
|
597
|
+
exports.ApplePayButtonType = void 0;
|
|
598
|
+
(function (ApplePayButtonType) {
|
|
599
|
+
ApplePayButtonType["PLAIN"] = "plain";
|
|
600
|
+
ApplePayButtonType["BUY"] = "buy";
|
|
601
|
+
ApplePayButtonType["SET_UP"] = "set-up";
|
|
602
|
+
ApplePayButtonType["DONATE"] = "donate";
|
|
603
|
+
ApplePayButtonType["CHECK_OUT"] = "check-out";
|
|
604
|
+
ApplePayButtonType["BOOK"] = "book";
|
|
605
|
+
ApplePayButtonType["SUBSCRIBE"] = "subscribe";
|
|
606
|
+
})(exports.ApplePayButtonType || (exports.ApplePayButtonType = {}));
|
|
607
|
+
exports.ApplePayButtonStyle = void 0;
|
|
608
|
+
(function (ApplePayButtonStyle) {
|
|
609
|
+
ApplePayButtonStyle["BLACK"] = "black";
|
|
610
|
+
ApplePayButtonStyle["WHITE"] = "white";
|
|
611
|
+
ApplePayButtonStyle["WHITE_OUTLINE"] = "white-outline";
|
|
612
|
+
})(exports.ApplePayButtonStyle || (exports.ApplePayButtonStyle = {}));
|
|
613
|
+
exports.ApplePayMerchantCapability = void 0;
|
|
614
|
+
(function (ApplePayMerchantCapability) {
|
|
615
|
+
ApplePayMerchantCapability["SUPPORTS_3DS"] = "supports3DS";
|
|
616
|
+
ApplePayMerchantCapability["SUPPORTS_EMV"] = "supportsEMV";
|
|
617
|
+
ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
|
|
618
|
+
ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
|
|
619
|
+
})(exports.ApplePayMerchantCapability || (exports.ApplePayMerchantCapability = {}));
|
|
620
|
+
class ApplePayConfig {
|
|
621
|
+
constructor(data) {
|
|
622
|
+
this.merchantIdentifier = data.merchantIdentifier;
|
|
623
|
+
this.displayName = data.displayName;
|
|
624
|
+
this.initiative = data.initiative;
|
|
625
|
+
this.initiativeContext = data.initiativeContext;
|
|
626
|
+
this.buttonType = data.buttonType || exports.ApplePayButtonType.PLAIN;
|
|
627
|
+
this.buttonStyle = data.buttonStyle || exports.ApplePayButtonStyle.BLACK;
|
|
628
|
+
this.buttonLocale = data.buttonLocale || 'en-US';
|
|
629
|
+
}
|
|
630
|
+
get isValid() {
|
|
631
|
+
return !!(this.merchantIdentifier &&
|
|
632
|
+
this.displayName &&
|
|
633
|
+
this.initiative &&
|
|
634
|
+
this.initiativeContext);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
class ApplePayPaymentRequest {
|
|
638
|
+
constructor(data) {
|
|
639
|
+
this.countryCode = data.countryCode;
|
|
640
|
+
this.currencyCode = data.currencyCode;
|
|
641
|
+
this.merchantCapabilities = data.merchantCapabilities;
|
|
642
|
+
this.supportedNetworks = data.supportedNetworks;
|
|
643
|
+
this.total = data.total;
|
|
644
|
+
this.lineItems = data.lineItems;
|
|
645
|
+
this.shippingMethods = data.shippingMethods;
|
|
646
|
+
this.applicationData = data.applicationData;
|
|
647
|
+
this.supportedCountries = data.supportedCountries;
|
|
648
|
+
}
|
|
649
|
+
get isValid() {
|
|
650
|
+
var _a, _b, _c, _d;
|
|
651
|
+
return !!(this.countryCode &&
|
|
652
|
+
this.currencyCode &&
|
|
653
|
+
((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
654
|
+
((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
|
|
655
|
+
((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
|
|
656
|
+
((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
class ApplePayHelpers {
|
|
660
|
+
static isApplePaySupported() {
|
|
661
|
+
var _a;
|
|
662
|
+
return (typeof window !== 'undefined' &&
|
|
663
|
+
'ApplePaySession' in window &&
|
|
664
|
+
((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3)));
|
|
665
|
+
}
|
|
666
|
+
static canMakePayments() {
|
|
667
|
+
var _a;
|
|
668
|
+
if (!this.isApplePaySupported()) {
|
|
669
|
+
return false;
|
|
670
|
+
}
|
|
671
|
+
return ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePayments()) || false;
|
|
672
|
+
}
|
|
673
|
+
static async canMakePaymentsWithActiveCard(merchantIdentifier) {
|
|
674
|
+
var _a;
|
|
675
|
+
if (!this.isApplePaySupported()) {
|
|
676
|
+
return false;
|
|
677
|
+
}
|
|
678
|
+
try {
|
|
679
|
+
return ((await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier))) || false);
|
|
680
|
+
}
|
|
681
|
+
catch (error) {
|
|
682
|
+
console.error('Error checking Apple Pay active card:', error);
|
|
683
|
+
return false;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
static formatAmount(amount) {
|
|
687
|
+
return (amount / 100).toFixed(2);
|
|
688
|
+
}
|
|
689
|
+
static parseAmount(amount) {
|
|
690
|
+
return Math.round(parseFloat(amount) * 100);
|
|
691
|
+
}
|
|
692
|
+
static createLineItem(label, amount, type = 'final') {
|
|
693
|
+
return {
|
|
694
|
+
label,
|
|
695
|
+
amount: this.formatAmount(amount),
|
|
696
|
+
type,
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
static getDefaultSupportedNetworks() {
|
|
700
|
+
return ['amex', 'discover', 'masterCard', 'visa'];
|
|
701
|
+
}
|
|
702
|
+
static getDefaultMerchantCapabilities() {
|
|
703
|
+
return [
|
|
704
|
+
exports.ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
705
|
+
exports.ApplePayMerchantCapability.SUPPORTS_EMV,
|
|
706
|
+
exports.ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
707
|
+
exports.ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
708
|
+
];
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
const initialState = {
|
|
713
|
+
accountId: '',
|
|
714
|
+
authToken: '',
|
|
715
|
+
billingFormFields: {
|
|
716
|
+
address_postal_code: '',
|
|
717
|
+
},
|
|
718
|
+
bnplEnabled: false,
|
|
719
|
+
applePayEnabled: false,
|
|
720
|
+
googlePayEnabled: false,
|
|
721
|
+
insuranceEnabled: false,
|
|
722
|
+
bnplProviderApiVersion: '',
|
|
723
|
+
bnplProviderCheckoutUrl: '',
|
|
724
|
+
bnplProviderClientId: '',
|
|
725
|
+
bnplProviderMode: '',
|
|
726
|
+
checkoutId: '',
|
|
727
|
+
checkoutLoaded: false,
|
|
728
|
+
bankAccountVerification: undefined,
|
|
729
|
+
disableBankAccount: false,
|
|
730
|
+
disableCreditCard: false,
|
|
731
|
+
disablePaymentMethodGroup: false,
|
|
732
|
+
paymentAmount: 0,
|
|
733
|
+
paymentCurrency: 'USD',
|
|
734
|
+
paymentDescription: '',
|
|
735
|
+
paymentMethodGroupId: undefined,
|
|
736
|
+
paymentMethods: [],
|
|
737
|
+
paymentToken: undefined,
|
|
738
|
+
savePaymentMethod: false,
|
|
739
|
+
selectedPaymentMethod: undefined,
|
|
740
|
+
totalAmount: 0,
|
|
741
|
+
plaidPublicToken: undefined,
|
|
742
|
+
plaidLinkTokenId: undefined,
|
|
743
|
+
};
|
|
744
|
+
const { state: checkoutStore, onChange } = index.createStore(initialState);
|
|
745
|
+
Object.keys(initialState).forEach((key) => {
|
|
746
|
+
// @ts-ignore
|
|
747
|
+
onChange(key, (newValue) => {
|
|
748
|
+
checkoutStore[key] = newValue;
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
// Helper: compute available payment methods based on store flags
|
|
752
|
+
function getAvailablePaymentMethodTypes() {
|
|
753
|
+
var _a;
|
|
754
|
+
const methods = [];
|
|
755
|
+
if (!checkoutStore.disablePaymentMethodGroup &&
|
|
756
|
+
((_a = checkoutStore.paymentMethods) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
757
|
+
const hasSavedCard = checkoutStore.paymentMethods.some((pm) => pm.type === index$1.PAYMENT_METHODS.SAVED_CARD);
|
|
758
|
+
const hasSavedBank = checkoutStore.paymentMethods.some((pm) => pm.type === index$1.PAYMENT_METHODS.SAVED_BANK_ACCOUNT);
|
|
759
|
+
if (hasSavedCard && !checkoutStore.disableCreditCard) {
|
|
760
|
+
methods.push(index$1.PAYMENT_METHODS.SAVED_CARD);
|
|
761
|
+
}
|
|
762
|
+
if (hasSavedBank && !checkoutStore.disableBankAccount) {
|
|
763
|
+
methods.push(index$1.PAYMENT_METHODS.SAVED_BANK_ACCOUNT);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
if (!checkoutStore.disableCreditCard) {
|
|
767
|
+
methods.push(index$1.PAYMENT_METHODS.NEW_CARD);
|
|
768
|
+
}
|
|
769
|
+
if (!checkoutStore.disableBankAccount) {
|
|
770
|
+
methods.push(index$1.PAYMENT_METHODS.NEW_BANK_ACCOUNT);
|
|
771
|
+
}
|
|
772
|
+
if (checkoutStore.bnplEnabled) {
|
|
773
|
+
methods.push(index$1.PAYMENT_METHODS.SEZZLE);
|
|
774
|
+
}
|
|
775
|
+
if (checkoutStore.applePayEnabled) {
|
|
776
|
+
methods.push(index$1.PAYMENT_METHODS.APPLE_PAY);
|
|
777
|
+
}
|
|
778
|
+
if (checkoutStore.googlePayEnabled) {
|
|
779
|
+
methods.push(index$1.PAYMENT_METHODS.GOOGLE_PAY);
|
|
780
|
+
}
|
|
781
|
+
if (checkoutStore.bankAccountVerification === true &&
|
|
782
|
+
!checkoutStore.disableBankAccount) {
|
|
783
|
+
methods.push(index$1.PAYMENT_METHODS.PLAID);
|
|
784
|
+
}
|
|
785
|
+
return methods;
|
|
786
|
+
}
|
|
787
|
+
function getCheckoutState() {
|
|
788
|
+
var _a;
|
|
789
|
+
return {
|
|
790
|
+
selectedPaymentMethod: checkoutStore.selectedPaymentMethod,
|
|
791
|
+
paymentAmount: checkoutStore.paymentAmount,
|
|
792
|
+
totalAmount: checkoutStore.totalAmount,
|
|
793
|
+
paymentCurrency: checkoutStore.paymentCurrency,
|
|
794
|
+
paymentDescription: checkoutStore.paymentDescription,
|
|
795
|
+
savedPaymentMethods: checkoutStore.paymentMethods,
|
|
796
|
+
savePaymentMethod: checkoutStore.savePaymentMethod,
|
|
797
|
+
bnplEnabled: checkoutStore.bnplEnabled,
|
|
798
|
+
applePayEnabled: checkoutStore.applePayEnabled,
|
|
799
|
+
insuranceEnabled: checkoutStore.insuranceEnabled,
|
|
800
|
+
disableBankAccount: checkoutStore.disableBankAccount,
|
|
801
|
+
disableCreditCard: checkoutStore.disableCreditCard,
|
|
802
|
+
disablePaymentMethodGroup: checkoutStore.disablePaymentMethodGroup,
|
|
803
|
+
paymentToken: (_a = checkoutStore.paymentToken) !== null && _a !== void 0 ? _a : undefined,
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
function onAnyChange(callback) {
|
|
807
|
+
Object.keys(initialState).forEach((key) => {
|
|
808
|
+
// @ts-ignore - onChange is generically typed by stencil/store but not exported here
|
|
809
|
+
onChange(key, (newValue) => callback(key, newValue));
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
exports.GooglePayButtonType = void 0;
|
|
814
|
+
(function (GooglePayButtonType) {
|
|
815
|
+
GooglePayButtonType["PLAIN"] = "plain";
|
|
816
|
+
GooglePayButtonType["BUY"] = "buy";
|
|
817
|
+
GooglePayButtonType["BOOK"] = "book";
|
|
818
|
+
GooglePayButtonType["CHECKOUT"] = "checkout";
|
|
819
|
+
GooglePayButtonType["DONATE"] = "donate";
|
|
820
|
+
GooglePayButtonType["ORDER"] = "order";
|
|
821
|
+
GooglePayButtonType["PAY"] = "pay";
|
|
822
|
+
GooglePayButtonType["SUBSCRIBE"] = "subscribe";
|
|
823
|
+
})(exports.GooglePayButtonType || (exports.GooglePayButtonType = {}));
|
|
824
|
+
exports.GooglePayButtonStyle = void 0;
|
|
825
|
+
(function (GooglePayButtonStyle) {
|
|
826
|
+
GooglePayButtonStyle["BLACK"] = "black";
|
|
827
|
+
GooglePayButtonStyle["WHITE"] = "white";
|
|
828
|
+
})(exports.GooglePayButtonStyle || (exports.GooglePayButtonStyle = {}));
|
|
829
|
+
exports.GooglePayButtonSizeMode = void 0;
|
|
830
|
+
(function (GooglePayButtonSizeMode) {
|
|
831
|
+
GooglePayButtonSizeMode["STATIC"] = "static";
|
|
832
|
+
GooglePayButtonSizeMode["FILL"] = "fill";
|
|
833
|
+
})(exports.GooglePayButtonSizeMode || (exports.GooglePayButtonSizeMode = {}));
|
|
834
|
+
exports.GooglePayEnvironment = void 0;
|
|
835
|
+
(function (GooglePayEnvironment) {
|
|
836
|
+
GooglePayEnvironment["PRODUCTION"] = "PRODUCTION";
|
|
837
|
+
GooglePayEnvironment["TEST"] = "TEST";
|
|
838
|
+
})(exports.GooglePayEnvironment || (exports.GooglePayEnvironment = {}));
|
|
839
|
+
class GooglePayConfig {
|
|
840
|
+
constructor(data) {
|
|
841
|
+
this.environment = data.environment;
|
|
842
|
+
this.merchantId = data.merchantId;
|
|
843
|
+
this.merchantName = data.merchantName;
|
|
844
|
+
this.buttonType = data.buttonType || exports.GooglePayButtonType.PLAIN;
|
|
845
|
+
this.buttonStyle = data.buttonStyle || exports.GooglePayButtonStyle.BLACK;
|
|
846
|
+
this.buttonSizeMode = data.buttonSizeMode || exports.GooglePayButtonSizeMode.STATIC;
|
|
847
|
+
this.buttonLocale = data.buttonLocale || 'en';
|
|
848
|
+
}
|
|
849
|
+
get isValid() {
|
|
850
|
+
return !!(this.environment && this.merchantName);
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
class GooglePayPaymentDataRequest {
|
|
854
|
+
constructor(data) {
|
|
855
|
+
this.apiVersion = data.apiVersion;
|
|
856
|
+
this.apiVersionMinor = data.apiVersionMinor;
|
|
857
|
+
this.allowedPaymentMethods = data.allowedPaymentMethods;
|
|
858
|
+
this.transactionInfo = data.transactionInfo;
|
|
859
|
+
this.merchantInfo = data.merchantInfo;
|
|
860
|
+
this.callbackIntents = data.callbackIntents;
|
|
861
|
+
this.shippingAddressRequired = data.shippingAddressRequired;
|
|
862
|
+
this.shippingAddressParameters = data.shippingAddressParameters;
|
|
863
|
+
this.emailRequired = data.emailRequired;
|
|
864
|
+
}
|
|
865
|
+
get isValid() {
|
|
866
|
+
var _a, _b, _c, _d;
|
|
867
|
+
const hasApiVersion = typeof this.apiVersion === 'number' && this.apiVersion > 0;
|
|
868
|
+
const hasApiVersionMinor = typeof this.apiVersionMinor === 'number' && this.apiVersionMinor >= 0;
|
|
869
|
+
const hasAllowedMethods = Array.isArray(this.allowedPaymentMethods) &&
|
|
870
|
+
this.allowedPaymentMethods.length > 0;
|
|
871
|
+
const hasTxnCountry = Boolean((_a = this.transactionInfo) === null || _a === void 0 ? void 0 : _a.countryCode);
|
|
872
|
+
const hasTxnCurrency = Boolean((_b = this.transactionInfo) === null || _b === void 0 ? void 0 : _b.currencyCode);
|
|
873
|
+
const hasTxnTotal = Boolean((_c = this.transactionInfo) === null || _c === void 0 ? void 0 : _c.totalPrice);
|
|
874
|
+
const hasMerchantName = Boolean((_d = this.merchantInfo) === null || _d === void 0 ? void 0 : _d.merchantName);
|
|
875
|
+
return (hasApiVersion &&
|
|
876
|
+
hasApiVersionMinor &&
|
|
877
|
+
hasAllowedMethods &&
|
|
878
|
+
hasTxnCountry &&
|
|
879
|
+
hasTxnCurrency &&
|
|
880
|
+
hasTxnTotal &&
|
|
881
|
+
hasMerchantName);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
class GooglePayHelpers {
|
|
885
|
+
/**
|
|
886
|
+
* Check if Google Pay is supported in the current environment
|
|
887
|
+
*/
|
|
888
|
+
static isGooglePaySupported() {
|
|
889
|
+
return (typeof window !== 'undefined' &&
|
|
890
|
+
'google' in window &&
|
|
891
|
+
'payments' in window.google &&
|
|
892
|
+
'api' in window.google.payments);
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Create a Google Pay client instance
|
|
896
|
+
*/
|
|
897
|
+
static createGooglePayClient(environment) {
|
|
898
|
+
if (!this.isGooglePaySupported()) {
|
|
899
|
+
return null;
|
|
900
|
+
}
|
|
901
|
+
try {
|
|
902
|
+
return new window.google.payments.api.PaymentsClient({
|
|
903
|
+
environment: environment === exports.GooglePayEnvironment.PRODUCTION
|
|
904
|
+
? 'PRODUCTION'
|
|
905
|
+
: 'TEST',
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
catch (_error) {
|
|
909
|
+
return null;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Format amount for Google Pay (expects string in full currency units)
|
|
914
|
+
*/
|
|
915
|
+
static formatAmount(amount) {
|
|
916
|
+
return (amount / 100).toFixed(2);
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Parse amount from Google Pay format to cents
|
|
920
|
+
*/
|
|
921
|
+
static parseAmount(amount) {
|
|
922
|
+
return Math.round(parseFloat(amount) * 100);
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Create a line item for Google Pay
|
|
926
|
+
*/
|
|
927
|
+
static createLineItem(label, amount, type = 'LINE_ITEM') {
|
|
928
|
+
return {
|
|
929
|
+
label,
|
|
930
|
+
price: this.formatAmount(amount),
|
|
931
|
+
type,
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* Get default supported card networks
|
|
936
|
+
*/
|
|
937
|
+
static getDefaultSupportedNetworks() {
|
|
938
|
+
return ['VISA', 'MASTERCARD', 'AMEX', 'DISCOVER'];
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* Get default allowed authentication methods
|
|
942
|
+
*/
|
|
943
|
+
static getDefaultAuthMethods() {
|
|
944
|
+
return ['PAN_ONLY', 'CRYPTOGRAM_3DS'];
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Create default card parameters
|
|
948
|
+
*/
|
|
949
|
+
static createDefaultCardParameters() {
|
|
950
|
+
return {
|
|
951
|
+
allowedAuthMethods: this.getDefaultAuthMethods(),
|
|
952
|
+
allowedCardNetworks: this.getDefaultSupportedNetworks(),
|
|
953
|
+
billingAddressRequired: false,
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* Create default tokenization specification
|
|
958
|
+
*/
|
|
959
|
+
static createTokenizationSpecification() {
|
|
960
|
+
return {
|
|
961
|
+
type: 'PAYMENT_GATEWAY',
|
|
962
|
+
parameters: {
|
|
963
|
+
gateway: 'justifi',
|
|
964
|
+
gatewayMerchantId: checkoutStore.accountId,
|
|
965
|
+
},
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Create default payment method data
|
|
970
|
+
*/
|
|
971
|
+
static createPaymentMethodData() {
|
|
972
|
+
return {
|
|
973
|
+
type: 'CARD',
|
|
974
|
+
parameters: this.createDefaultCardParameters(),
|
|
975
|
+
tokenizationSpecification: this.createTokenizationSpecification(),
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Create base payment data request check
|
|
980
|
+
*/
|
|
981
|
+
static createBasePaymentDataRequest() {
|
|
982
|
+
const base = {
|
|
983
|
+
apiVersion: 2,
|
|
984
|
+
apiVersionMinor: 0,
|
|
985
|
+
allowedPaymentMethods: [this.createPaymentMethodData()],
|
|
986
|
+
};
|
|
987
|
+
// For development and broader availability of the button, do not require an existing card
|
|
988
|
+
// This allows isReadyToPay to return true on supported browsers even without a saved payment method
|
|
989
|
+
base.existingPaymentMethodRequired = false;
|
|
990
|
+
return base;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
exports.ApplePayConfig = ApplePayConfig;
|
|
995
|
+
exports.ApplePayHelpers = ApplePayHelpers;
|
|
996
|
+
exports.ApplePayPaymentRequest = ApplePayPaymentRequest;
|
|
590
997
|
exports.Checkout = Checkout;
|
|
591
998
|
exports.EntityDocument = EntityDocument;
|
|
592
999
|
exports.EntityDocumentStorage = EntityDocumentStorage;
|
|
1000
|
+
exports.GooglePayConfig = GooglePayConfig;
|
|
1001
|
+
exports.GooglePayHelpers = GooglePayHelpers;
|
|
1002
|
+
exports.GooglePayPaymentDataRequest = GooglePayPaymentDataRequest;
|
|
593
1003
|
exports.Payment = Payment;
|
|
594
1004
|
exports.PaymentBalanceTransaction = PaymentBalanceTransaction;
|
|
595
1005
|
exports.Payout = Payout;
|
|
@@ -599,3 +1009,8 @@ exports.SubAccount = SubAccount;
|
|
|
599
1009
|
exports.Terminal = Terminal;
|
|
600
1010
|
exports.TerminalModel = TerminalModel;
|
|
601
1011
|
exports.TerminalOrder = TerminalOrder;
|
|
1012
|
+
exports.checkoutStore = checkoutStore;
|
|
1013
|
+
exports.getAvailablePaymentMethodTypes = getAvailablePaymentMethodTypes;
|
|
1014
|
+
exports.getCheckoutState = getCheckoutState;
|
|
1015
|
+
exports.onAnyChange = onAnyChange;
|
|
1016
|
+
exports.onChange = onChange;
|
|
@@ -4,7 +4,7 @@ var index = require('./index-BhI7cJcE.js');
|
|
|
4
4
|
require('./config-state-CYoBVAca.js');
|
|
5
5
|
require('./dinero-BwNN_k7x.js');
|
|
6
6
|
require('./ComponentError-D4OLnOkg.js');
|
|
7
|
-
var
|
|
7
|
+
var GooglePay = require('./GooglePay-D3zN44IX.js');
|
|
8
8
|
require('./Pagination-Dediz133.js');
|
|
9
9
|
require('./Business-DWHy_-z9.js');
|
|
10
10
|
require('./Dispute-CruQTF6_.js');
|
|
@@ -17,13 +17,14 @@ var skeleton = require('./skeleton-BF3HGL9X.js');
|
|
|
17
17
|
require('./event-types-YOY5TKUN.js');
|
|
18
18
|
var formControlErrorText = require('./form-control-error-text-mhOq2Edp.js');
|
|
19
19
|
require('./index-mmd0OhmD.js');
|
|
20
|
+
require('./index-CajjbB9t.js');
|
|
20
21
|
|
|
21
22
|
const BankAccountDocumentFormInputs = class {
|
|
22
23
|
constructor(hostRef) {
|
|
23
24
|
index.registerInstance(this, hostRef);
|
|
24
25
|
}
|
|
25
26
|
render() {
|
|
26
|
-
return (index.h("div", { key: '
|
|
27
|
+
return (index.h("div", { key: '4daf6eadf7e1213c3534bd845c917af0b1ec1fec', class: "row gy-3" }, index.h("div", { key: '9d7235d40a0884960948eaac7dc990e947bf5165', class: "col-12" }, index.h("form-control-file", { key: 'e0e3704079e20c86dacec668d27ca23ef981aa2f', name: "voided_check", label: "Voided Check", documentType: GooglePay.EntityDocumentType.voidedCheck, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["voided_check"], multiple: true })), index.h("div", { key: '5c4c20191c6c54170896a9c0f893a7fe06ff6a70', class: "col-12" }, index.h("form-control-file", { key: '6d4ac9d3a47952644bab5afe4b23332a56c04035', name: "bank_statement", label: "Bank Statement", documentType: GooglePay.EntityDocumentType.bankStatement, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["bank_statement"], multiple: true }))));
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
30
|
|
|
@@ -33,7 +34,7 @@ const BankAccountFormInputs = class {
|
|
|
33
34
|
}
|
|
34
35
|
render() {
|
|
35
36
|
var _a, _b, _c, _d, _e, _f;
|
|
36
|
-
return (index.h("div", { key: '
|
|
37
|
+
return (index.h("div", { key: '951373cbaf604ec2f34364fd93ac9ccf666a4e58', class: "row gy-3" }, index.h("div", { key: 'a2fbc555aeb3b9bed12f032385ea9889482e6caf', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (index.h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), index.h("div", { key: 'c05c9e185293799ee94cbd8bec3976d115469b00', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (index.h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), index.h("div", { key: 'b3cc026a1c2079ddcd744d7557742ac98073f03c', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (index.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 }))), index.h("div", { key: 'f3649a91a8af13374eb55f06ecc81e6e06bd4b01', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (index.h("form-control-select", { name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), index.h("div", { key: '34eb7df603e1d7d9bb616c51057dd5da9a2e3e3f', class: "col-6" }, this.formDisabled ? (index.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}` : '' })) : (index.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: utils.numberOnlyHandler, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." }))), index.h("div", { key: '64897a96be65ddd311267e5ea1571993ab61787d', class: "col-6" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Routing Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.routing_number) || '' })) : (index.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: utils.numberOnlyHandler, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." })))));
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
|
|
@@ -43,7 +44,7 @@ const BankAccountFormInputsCanada = class {
|
|
|
43
44
|
}
|
|
44
45
|
render() {
|
|
45
46
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
46
|
-
return (index.h("div", { key: '
|
|
47
|
+
return (index.h("div", { key: '80b2030f1c1840df293a5ec600fe16836b502647', class: "row gy-3" }, index.h("div", { key: '5a28a5b515856da7808fc49cf0f775f8c4c71daa', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (index.h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), index.h("div", { key: '62761912ccf0ee5ba1e5c13cbb08cde9687d05bd', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (index.h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), index.h("div", { key: '04472a07096890a51d2e2db463f7040a389fd4e1', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (index.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 }))), index.h("div", { key: 'c2caa8ddb2b1038efb49e3361eab760108a34308', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (index.h("form-control-select", { name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), index.h("div", { key: '2446720991bd2512f6bb8a779e47e526100dacb3', class: "col-3" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Transit Number", value: ((_e = this.defaultValue) === null || _e === void 0 ? void 0 : _e.transit_number) || '' })) : (index.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: utils.numberOnlyHandler, helpText: "5 digits" }))), index.h("div", { key: '98cda3809e604cc3e863f2d01698e217694b2550', class: "col-3" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Institution Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.institution_number) || '' })) : (index.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: utils.numberOnlyHandler, helpText: "3 digits" }))), index.h("div", { key: 'de285afb20fe922e3a8dd66727222e2f49567aae', class: "col-6" }, this.formDisabled ? (index.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}` : '' })) : (index.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: utils.numberOnlyHandler, helpText: "Please copy the account number as shown on your statement. Do not include spaces or dashes." })))));
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
|
|
@@ -52,7 +53,7 @@ const BankAccountReadOnlyValue = class {
|
|
|
52
53
|
index.registerInstance(this, hostRef);
|
|
53
54
|
}
|
|
54
55
|
render() {
|
|
55
|
-
return (index.h("div", { key: '
|
|
56
|
+
return (index.h("div", { key: '0d44d4aa265a5fd36ca30f1db072eb834f8bdf1b' }, index.h("label", { key: '892e6dbdbff5d484df4dfb522f3db8968f46d7d4', class: "form-label", part: parts.text }, this.label), index.h("div", { key: 'cd617e2302834ad67ebccd64e24d535b2cc19da8', part: parts.text }, this.value || '')));
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
59
|
|
|
@@ -116,10 +117,10 @@ const FileInput = class {
|
|
|
116
117
|
return part;
|
|
117
118
|
}
|
|
118
119
|
render() {
|
|
119
|
-
return (index.h(index.Host, { key: '
|
|
120
|
+
return (index.h(index.Host, { key: 'fdb25496e92f4a0ac8d59dc21a1ee0b4364dfb0b' }, index.h("div", { key: 'dfbb750595eafcaef0d02dffa740c58b0459d99a', class: "form-group d-flex flex-column" }, index.h("div", { key: '78b3a1c682ad87d317f7e7407fbd73392a20b5c2', class: "d-flex align-items-start gap-2" }, index.h("label", { key: '1f0a3ee1e9252c5ea446636d6602102bb7b6215c', part: parts.label, class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: '7cf6117ae465514d3cbeb1ed2186f6b9d708c14e', helpText: this.helpText })), index.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: () => {
|
|
120
121
|
this.isFocused = false;
|
|
121
122
|
this.formControlBlur.emit();
|
|
122
|
-
} }), index.h(formControlErrorText.FormControlErrorText, { key: '
|
|
123
|
+
} }), index.h(formControlErrorText.FormControlErrorText, { key: '50be6125a92cc147aa1b7be3b6777835d7a8d0c3', errorText: this.errorText, name: this.name }))));
|
|
123
124
|
}
|
|
124
125
|
get el() { return index.getElement(this); }
|
|
125
126
|
};
|
|
@@ -48,10 +48,10 @@ const BankAccountForm = class {
|
|
|
48
48
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (index.h(index.Host, { key: '
|
|
51
|
+
return (index.h(index.Host, { key: 'c52bde6d4ad8484c2514197f48dc11e1a395a170' }, index.h(BankAccountFormSkeleton, { key: '4e52b258cea0b9d086187e58f73d13bf77aa7d4e', isReady: this.isReady }), index.h("div", { key: 'd12c2b471e35091a8615124ecd6e5a5362a42b89', class: "container-fluid p-0", style: {
|
|
52
52
|
opacity: this.isReady ? '1' : '0',
|
|
53
53
|
height: this.isReady ? 'auto' : '0',
|
|
54
|
-
} }, index.h("div", { key: '
|
|
54
|
+
} }, index.h("div", { key: 'b432c0b7a4329f84e6697328315c9fa12b3e8898', class: "row mb-3" }, index.h("iframe-input", { key: '283a94b1d724cf80cf6910a2ab9ce070ce163f43', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), index.h("div", { key: '6013df7745d3e254eee38095a60a97dd6cc3539d', class: "row" }, index.h("iframe-input", { key: '30d1f967f7a740a1f154126d2032425a834499cc', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var Api = require('./Api-BeSnjEuW.js');
|
|
4
4
|
require('./ComponentError-D4OLnOkg.js');
|
|
5
|
-
require('./
|
|
5
|
+
require('./GooglePay-D3zN44IX.js');
|
|
6
6
|
require('./Pagination-Dediz133.js');
|
|
7
7
|
require('./Business-DWHy_-z9.js');
|
|
8
8
|
require('./Dispute-CruQTF6_.js');
|
|
@@ -52,10 +52,10 @@ const CardForm = class {
|
|
|
52
52
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (index.h(index.Host, { key: '
|
|
55
|
+
return (index.h(index.Host, { key: 'c97d78cffe3d8452c22218775c1d5ba299df44b8' }, index.h(CardFormSkeleton, { key: '0d19e9e137044ddc2d65700b2ab1697ad14f9add', isReady: this.isReady }), index.h("div", { key: '12ba94f7996b035bfa5ccbc9266f240bc465bf29', class: "container-fluid p-0", style: {
|
|
56
56
|
opacity: this.isReady ? '1' : '0',
|
|
57
57
|
height: this.isReady ? 'auto' : '0',
|
|
58
|
-
} }, index.h("div", { key: '
|
|
58
|
+
} }, index.h("div", { key: '334b186b9b458b90a3f6abe0a6e020f281abef66', class: "mb-3" }, index.h("iframe-input", { key: 'f73429270e31b16b4f94f533ea4ccf65fe726c2b', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), index.h("div", { key: 'bc98478795277a4381ef16ace36b4b07b58045e6', class: "d-flex align-items-start" }, index.h("div", { key: 'eba7882dd19743a2a8c28546b739b809ca908982', class: "flex-fill me-3" }, index.h("iframe-input", { key: 'd352fc8ac9e5d4100c57396eb514f8835d8eff14', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), index.h("div", { key: 'bfb3ea5395251c49d42319fb6ad8b5dc13a437aa', class: "flex-fill me-3" }, index.h("iframe-input", { key: 'b90d7f2d8bdb847ac368fe3cff3a88426c7b7cc1', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), index.h("div", { key: 'a390b51062dc84b5621fc88dc20f1ce2d8a48767', class: "flex-fill" }, index.h("iframe-input", { key: '821a97f9496ae1f95c8e5de50b1196e55d7606ca', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _package = require('./package-
|
|
3
|
+
var _package = require('./package-MS7_CYge.js');
|
|
4
4
|
var Api = require('./Api-BeSnjEuW.js');
|
|
5
5
|
require('./ComponentError-D4OLnOkg.js');
|
|
6
|
-
require('./
|
|
6
|
+
require('./GooglePay-D3zN44IX.js');
|
|
7
7
|
require('./Pagination-Dediz133.js');
|
|
8
8
|
require('./Business-DWHy_-z9.js');
|
|
9
9
|
require('./Dispute-CruQTF6_.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var Api = require('./Api-BeSnjEuW.js');
|
|
4
4
|
require('./ComponentError-D4OLnOkg.js');
|
|
5
|
-
require('./
|
|
5
|
+
require('./GooglePay-D3zN44IX.js');
|
|
6
6
|
require('./Pagination-Dediz133.js');
|
|
7
7
|
require('./Business-DWHy_-z9.js');
|
|
8
8
|
require('./Dispute-CruQTF6_.js');
|
|
@@ -4,7 +4,7 @@ var index = require('./index-BhI7cJcE.js');
|
|
|
4
4
|
require('./config-state-CYoBVAca.js');
|
|
5
5
|
require('./dinero-BwNN_k7x.js');
|
|
6
6
|
require('./ComponentError-D4OLnOkg.js');
|
|
7
|
-
require('./
|
|
7
|
+
require('./GooglePay-D3zN44IX.js');
|
|
8
8
|
var Pagination = require('./Pagination-Dediz133.js');
|
|
9
9
|
require('./Business-DWHy_-z9.js');
|
|
10
10
|
require('./Dispute-CruQTF6_.js');
|
|
@@ -14,6 +14,7 @@ var checkoutsTable = require('./checkouts-table-2fOlhkc4.js');
|
|
|
14
14
|
var checkoutsListParamsState = require('./checkouts-list-params-state-DfZySwaC.js');
|
|
15
15
|
require('./index-mmd0OhmD.js');
|
|
16
16
|
require('./utils-Bab-tddY.js');
|
|
17
|
+
require('./index-CajjbB9t.js');
|
|
17
18
|
require('./parts-Pb06tUMp.js');
|
|
18
19
|
require('./spinner-BBdv3Iq1.js');
|
|
19
20
|
require('./badge-_nY1l5Rq.js');
|
|
@@ -134,7 +135,7 @@ const CheckoutsListCore = class {
|
|
|
134
135
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
135
136
|
}
|
|
136
137
|
render() {
|
|
137
|
-
return (index.h(table.TableWrapper, { key: '
|
|
138
|
+
return (index.h(table.TableWrapper, { key: 'ea74cbb0bce1e96b597344ee226eebc5dc369b1b' }, index.h(table.TableComponent, { key: '37ca3a5b8c1d53604edb487d1e31f0d829a0a4a8' }, index.h(table.TableHead, { key: 'd61415d71f636ce288036867c70e22fa459e1cf6' }, index.h(table.TableHeadRow, { key: '75db78b57011fc3d14eea8ecd353ea117b4d951e' }, this.checkoutsTable.columnData.map((column) => column))), index.h(table.TableBody, { key: '71631afc11d6a096f71275bd6231a1e5f0a66e72' }, index.h(table.TableLoadingState, { key: 'ea6c8eb8f602d1924b278c374ad02d218758e65c', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), index.h(table.TableEmptyState, { key: 'f581dad5d925bcd85aea7b9292d719050eea5431', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), index.h(table.TableErrorState, { key: 'f6ecafe13119e285ab27396bade1992b31663e52', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index$1) => (index.h(table.TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler }, data)))), this.paging && (index.h(table.TableFoot, { key: '846c7a9976a4738f64d0a067bb8e48840e04b3ab' }, index.h(table.TableFootRow, { key: 'ce2c52b71c891a3621c54bfd3e9c75088d685818' }, index.h(table.TableFootCell, { key: 'ea253462403bb909e8423776027bbdadf41ab746', colSpan: this.checkoutsTable.columnData.length }, index.h("pagination-menu", { key: '4d6d2f7a5559d2f20f86c8fc138a402e7b985503', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
138
139
|
}
|
|
139
140
|
static get watchers() { return {
|
|
140
141
|
"pagingParams": ["updateOnPropChange"],
|