@justifi/webcomponents 5.7.6-rc-02 → 5.7.6-rc-04
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-c8NBCwu4.js → Api-eP0XeJLd.js} +1 -1
- package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-D4OLnOkg.js} +8 -0
- package/dist/cjs/{Refund-Dt1CMUjx.js → Refund-08OcZkXX.js} +148 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business.service-W2PRAU9J.js → business.service--Zv-Xtu4.js} +3 -4
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-DmONJMn1.js → check-pkg-version-Bp51QhAR.js} +4 -5
- package/dist/cjs/{checkout.service-XwOh98gt.js → checkout.service-BBD6v0cl.js} +3 -4
- package/dist/cjs/{checkout.store--pVCO0L1.js → checkout.store-B58bewb_.js} +2 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +6 -6
- package/dist/cjs/{checkouts-table-CrpOOe_e.js → checkouts-table-Cp7rNkNd.js} +1 -1
- package/dist/cjs/custom-popper.cjs.entry.js +2 -2
- package/dist/cjs/dinero-J-SRFKIR.js +1673 -0
- package/dist/cjs/{dispute.service-Dh82Wru1.js → dispute.service-BHApwZdH.js} +3 -4
- package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
- 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 +4 -3
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
- 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-business-BiEc-jdH.js → get-business-o5jPq_ME.js} +2 -2
- package/dist/cjs/{get-payment-details-W4PgTPkL.js → get-payment-details-7PreAOdF.js} +5 -6
- package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-DE_D9y08.js} +2 -2
- package/dist/cjs/{get-subaccounts-D4woaGSs.js → get-subaccounts-CtelAONX.js} +5 -6
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -2
- package/dist/cjs/header-2-BXQLJn1q.js +10 -0
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/insurance-state-B3CYpJWi.js +45 -0
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -17
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/{justifi-bank-account-form_5.cjs.entry.js → justifi-bank-account-form_7.cjs.entry.js} +66 -23
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +52 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/{justifi-button_5.cjs.entry.js → justifi-checkout-summary_5.cjs.entry.js} +162 -56
- package/dist/cjs/justifi-checkout.cjs.entry.js +14 -14
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +5 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +216 -34
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-oywezDpy.js → package-BMSb1ui9.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
- package/dist/cjs/{payment-method-option-utils-imuSE7KV.js → payment-method-option-utils-QODgEWhU.js} +1 -11
- package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-CZVlnRA0.js} +2 -2
- package/dist/cjs/{payment.service-BrvtS3F7.js → payment.service-C9qxqaJk.js} +3 -4
- package/dist/cjs/payments-list-core.cjs.entry.js +6 -6
- package/dist/cjs/{payments-table-BqxFc71K.js → payments-table-DaW6SvdL.js} +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
- package/dist/cjs/{payout.service-DNH6gRrP.js → payout.service-DiSYeR_q.js} +3 -4
- package/dist/cjs/payouts-list-core.cjs.entry.js +6 -6
- package/dist/cjs/{payouts-table-iT2IauEa.js → payouts-table-D5hMHcaY.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +6 -6
- package/dist/cjs/{terminal-orders-table-xi_a-EnM.js → terminal-orders-table-DnZjcbSQ.js} +3 -4
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CdzmTRQE.js → terminal.service-DEIY9toR.js} +3 -4
- package/dist/cjs/terminals-list-core.cjs.entry.js +6 -6
- package/dist/cjs/{terminals-table-sf-s5v6D.js → terminals-table-DOqVeHM1.js} +1 -1
- package/dist/cjs/{utils-qOon0GWm.js → utils-DqlrBltg.js} +2 -1676
- package/dist/cjs/{utils-IGCnjtqc.js → utils-DvUQQLmR.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/checkout/checkout-actions.js +2 -1
- package/dist/collection/api/ComponentError.js +8 -0
- package/dist/collection/collection-manifest.json +7 -8
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- 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 +1 -1
- 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.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 +1 -1
- 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-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/billing-form/billing-form.js +13 -37
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +1 -1
- package/dist/collection/components/checkout/payment-method-option-utils.js +0 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +7 -5
- 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 +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/insurance-state.js +18 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +43 -9
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +36 -5
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +5 -4
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +291 -87
- package/dist/collection/store/checkout.store.js +2 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-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/index.js +1 -0
- 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 +155 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +727 -1331
- package/dist/esm/{Api-C3T8XYbb.js → Api-BCeKXDaf.js} +1 -1
- package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-Cjcsf8ku.js} +9 -1
- package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
- package/dist/esm/{Refund-0aZtuMmz.js → Refund-DBHZkemk.js} +148 -2
- package/dist/esm/additional-questions-details_5.entry.js +4 -3
- package/dist/esm/{badge-Dr7gkD2I.js → badge-BrapPg3R.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -12
- package/dist/esm/bank-account-form.entry.js +4 -4
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-C5vrjgZf.js → business.service-ArD_uRLb.js} +4 -5
- package/dist/esm/{button-xfPDSpPt.js → button-BB-N4vit.js} +1 -1
- package/dist/esm/card-form.entry.js +4 -4
- package/dist/esm/{check-pkg-version-DqhSXPRt.js → check-pkg-version-CwPXpnQZ.js} +5 -6
- package/dist/esm/{checkout.service-CW2_CEte.js → checkout.service-BgDCPjQU.js} +4 -5
- package/dist/esm/{checkout.store-GXtlf5-4.js → checkout.store-td03RV8y.js} +2 -1
- package/dist/esm/checkouts-list-core.entry.js +11 -11
- package/dist/esm/{checkouts-table-BHhaS5bv.js → checkouts-table-COpCngi0.js} +3 -3
- package/dist/esm/custom-popper.entry.js +2 -2
- package/dist/esm/dinero-DizZAUMY.js +1671 -0
- package/dist/esm/{dispute.service-C3bmfjsZ.js → dispute.service-C2dMLW9w.js} +4 -5
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-Cn0aPzHx.js → form-control-error-text-Bk3yfpFX.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-C91TeHXs.js → form-control-help-text-mOLCXs00.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
- package/dist/esm/form-control-monetary.entry.js +7 -6
- package/dist/esm/form-control-number-masked_2.entry.js +5 -5
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +6 -6
- package/dist/esm/{get-business-BSRtbTh7.js → get-business-Crb6P-iI.js} +2 -2
- package/dist/esm/{get-payment-details-BdPvFl1W.js → get-payment-details-BN-K_5Ry.js} +5 -6
- package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D-Lnooki.js} +2 -2
- package/dist/esm/{get-subaccounts-BqqR44dV.js → get-subaccounts-DrFpGKDV.js} +6 -7
- package/dist/esm/gross-payment-chart-core.entry.js +6 -5
- package/dist/esm/{header-1-noRVFQY9.js → header-1-DYuf6mkF.js} +1 -1
- package/dist/esm/header-2-C4ZCdZwi.js +8 -0
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/insurance-state-BQks6cMA.js +39 -0
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +20 -20
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/{justifi-bank-account-form_5.entry.js → justifi-bank-account-form_7.entry.js} +67 -26
- package/dist/esm/justifi-billing-form_2.entry.js +49 -0
- package/dist/esm/justifi-business-details.entry.js +13 -13
- package/dist/esm/justifi-business-form.entry.js +15 -15
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/{justifi-button_5.entry.js → justifi-checkout-summary_5.entry.js} +161 -55
- package/dist/esm/justifi-checkout.entry.js +11 -11
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list.entry.js +15 -15
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +11 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
- package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
- package/dist/esm/justifi-order-terminals.entry.js +15 -15
- package/dist/esm/justifi-owner-form_3.entry.js +14 -14
- package/dist/esm/justifi-payment-details.entry.js +13 -13
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +12 -12
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +5 -4
- package/dist/esm/justifi-payments-list.entry.js +15 -15
- package/dist/esm/justifi-payout-details.entry.js +13 -13
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +17 -17
- package/dist/esm/justifi-refund-payment.entry.js +14 -14
- package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -11
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
- package/dist/esm/justifi-terminals-list.entry.js +15 -15
- package/dist/esm/justifi-tokenize-payment-method.entry.js +218 -36
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-DR0dQ8Fv.js → package-HlNEzyiZ.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-D3G5aVLy.js → parts-CKg_luIy.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +15 -14
- package/dist/esm/{payment-method-option-utils-8n_ALxec.js → payment-method-option-utils-zFDtQrgQ.js} +2 -10
- package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-ONP8lDnV.js} +2 -2
- package/dist/esm/{payment.service-CnQdP32J.js → payment.service-DPsRcwWM.js} +4 -5
- package/dist/esm/payments-list-core.entry.js +12 -12
- package/dist/esm/{payments-status-DUM0WZkk.js → payments-status-CawBLR48.js} +1 -1
- package/dist/esm/{payments-table-DVQzx7MJ.js → payments-table-WQAD1CSz.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +11 -10
- package/dist/esm/{payout.service-EJuPNpfs.js → payout.service-CoVFefK5.js} +4 -5
- package/dist/esm/payouts-list-core.entry.js +12 -12
- package/dist/esm/{payouts-status-7saoFNoA.js → payouts-status-DB_PJap6.js} +1 -1
- package/dist/esm/{payouts-table-dca-F2iQ.js → payouts-table-DRISll8u.js} +3 -3
- package/dist/esm/{skeleton-C1-JoGFC.js → skeleton-D1Z4a8af.js} +1 -1
- package/dist/esm/{spinner-Ca9uu5Nd.js → spinner-BlffecO5.js} +1 -1
- package/dist/esm/{table-fsCYq8m9.js → table-BqxKVRry.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +11 -11
- package/dist/esm/{terminal-orders-table-BNasCnjz.js → terminal-orders-table-Da4IvBtB.js} +6 -7
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-Cfacmeto.js → terminal.service-CnPV1i9J.js} +4 -5
- package/dist/esm/terminals-list-core.entry.js +11 -11
- package/dist/esm/{terminals-table-DBk-eg_3.js → terminals-table-BBPQRWja.js} +3 -3
- package/dist/esm/{utils-BZvep88z.js → utils-BeQLScSm.js} +1 -1
- package/dist/esm/{utils-BjLkBMLe.js → utils-Cu5hITuT.js} +2 -1675
- package/dist/esm/{utils-CNwvOLkk.js → utils-sZ_6zOKQ.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +0 -1
- package/dist/module/Refund.js +210 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-document-inputs.js +2 -3
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account.js +3 -2
- package/dist/module/billing-form.js +23 -57
- package/dist/module/billing-information-form.js +10 -3
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +2 -3
- package/dist/module/business-bank-account-form-step.js +2 -3
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-details-core2.js +1 -0
- package/dist/module/business-documents-on-file2.js +2 -1
- package/dist/module/business-owners-form-step-core.js +1 -0
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +0 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +3 -2
- package/dist/module/checkout.service.js +0 -1
- package/dist/module/checkout.store.js +2 -1
- package/dist/module/checkouts-list-core2.js +5 -4
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dinero.js +1671 -0
- package/dist/module/dispute-management-core.js +2 -2
- package/dist/module/dispute-notification.js +2 -1
- package/dist/module/dispute-response-actions.js +0 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +2 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +4 -3
- package/dist/module/form-control-date2.js +3 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +3 -2
- package/dist/module/form-control-monetary-provisioning2.js +4 -3
- package/dist/module/form-control-monetary2.js +4 -3
- package/dist/module/form-control-number-masked2.js +3 -2
- package/dist/module/form-control-number.js +4 -3
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +3 -2
- package/dist/module/form-control-text2.js +3 -2
- package/dist/module/form-control-textarea2.js +3 -3
- package/dist/module/get-payment-details.js +2 -3
- package/dist/module/get-subaccounts.js +1 -2
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/insurance-state.js +18 -1
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +3 -2
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-checkouts-list.js +4 -4
- package/dist/module/justifi-dispute-management.js +2 -3
- package/dist/module/justifi-gross-payment-chart.js +0 -1
- package/dist/module/justifi-header2.js +7 -3
- package/dist/module/justifi-modular-checkout.js +2 -2
- package/dist/module/justifi-order-terminals.js +5 -4
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payment-transactions-list.js +6 -5
- package/dist/module/justifi-payments-list-filters.js +4 -3
- package/dist/module/justifi-payments-list.js +4 -4
- package/dist/module/justifi-payout-details.js +2 -3
- package/dist/module/justifi-payout-transactions-list.js +6 -5
- package/dist/module/justifi-payouts-list-filters.js +4 -3
- package/dist/module/justifi-payouts-list.js +4 -4
- package/dist/module/justifi-radio-list-item.d.ts +11 -0
- package/dist/module/justifi-radio-list-item.js +6 -0
- package/dist/module/justifi-radio-list-item2.js +55 -0
- package/dist/module/justifi-refund-payment.js +2 -2
- package/dist/module/justifi-saved-payment-method.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +1 -2
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +5 -5
- package/dist/module/justifi-terminal-orders-list.js +4 -4
- package/dist/module/justifi-terminals-list-filters.js +4 -4
- package/dist/module/justifi-terminals-list.js +4 -4
- package/dist/module/justifi-tokenize-payment-method.js +311 -47
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/modular-checkout.js +47 -14
- package/dist/module/owner-form-core2.js +3 -2
- package/dist/module/owner-form-inputs2.js +1 -1
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +10 -9
- package/dist/module/payment-method-option-utils.js +2 -10
- package/dist/module/payment-method-option2.js +3 -2
- package/dist/module/payment-provisioning-core.js +2 -1
- package/dist/module/payment-provisioning-form-buttons.js +2 -1
- package/dist/module/payment-provisioning-form-steps.js +1 -1
- package/dist/module/payment-provisioning-loading.js +1 -0
- package/dist/module/payment.service.js +0 -1
- package/dist/module/payments-list-core2.js +5 -4
- package/dist/module/payout-details-core2.js +5 -4
- package/dist/module/payout.service.js +0 -1
- package/dist/module/payouts-list-core2.js +5 -4
- package/dist/module/postal-code-form.js +4 -2
- 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 +8 -5
- package/dist/module/saved-payment-methods.js +2 -1
- package/dist/module/season-interruption-insurance-core.js +2 -1
- package/dist/module/sezzle-payment-method.js +2 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/summary.js +2 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +6 -5
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminal.service.js +0 -1
- package/dist/module/terminals-list-core2.js +5 -4
- package/dist/module/utils2.js +2 -1675
- package/dist/types/api/ComponentError.d.ts +7 -0
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +3 -9
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
- package/dist/types/components/insurance/insurance-state.d.ts +2 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +2 -1
- package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +2 -0
- package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +1 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +41 -14
- package/dist/types/components.d.ts +70 -114
- package/dist/types/store/checkout.store.d.ts +2 -1
- package/dist/types/ui-components/index.d.ts +1 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +12 -0
- package/dist/webcomponents/p-00c2f5d5.entry.js +1 -0
- package/dist/webcomponents/{p-d7f62287.entry.js → p-046fee8c.entry.js} +1 -1
- package/dist/webcomponents/{p-30d3d0cd.entry.js → p-0a0ed7a4.entry.js} +1 -1
- package/dist/webcomponents/p-0cb64945.entry.js +1 -0
- package/dist/webcomponents/{p-70774a5a.entry.js → p-0e44afa7.entry.js} +1 -1
- package/dist/webcomponents/p-0e6797c4.entry.js +1 -0
- package/dist/webcomponents/p-0fc026aa.entry.js +1 -0
- package/dist/webcomponents/p-16583f91.entry.js +1 -0
- package/dist/webcomponents/p-195cf5cc.entry.js +1 -0
- package/dist/webcomponents/{p-7d2de2d4.entry.js → p-1b1fe3de.entry.js} +1 -1
- package/dist/webcomponents/{p-50bfec55.entry.js → p-1b7b7210.entry.js} +1 -1
- package/dist/webcomponents/p-1c7d9b90.entry.js +1 -0
- package/dist/webcomponents/p-1ce1df1e.entry.js +1 -0
- package/dist/webcomponents/p-24e1a686.entry.js +1 -0
- package/dist/webcomponents/p-2a5ac7c9.entry.js +1 -0
- package/dist/webcomponents/p-2abf1785.entry.js +1 -0
- package/dist/webcomponents/p-2dcf196f.entry.js +1 -0
- package/dist/webcomponents/{p-7c63d61d.entry.js → p-302f7632.entry.js} +1 -1
- package/dist/webcomponents/{p-2f482f5b.entry.js → p-351ffd2a.entry.js} +1 -1
- package/dist/webcomponents/{p-cb7c712f.entry.js → p-39ca43e0.entry.js} +1 -1
- package/dist/webcomponents/p-3eb5f196.entry.js +1 -0
- package/dist/webcomponents/p-4045631f.entry.js +1 -0
- package/dist/webcomponents/{p-05c604d2.entry.js → p-429618a4.entry.js} +1 -1
- package/dist/webcomponents/{p-a02ce003.entry.js → p-444fb5a6.entry.js} +1 -1
- package/dist/webcomponents/{p-ac538ffd.entry.js → p-45b0a91c.entry.js} +1 -1
- package/dist/webcomponents/p-4907e95b.entry.js +1 -0
- package/dist/webcomponents/p-4a0a4314.entry.js +1 -0
- package/dist/webcomponents/p-4aaaa44e.entry.js +1 -0
- package/dist/webcomponents/p-4b34b9af.entry.js +1 -0
- package/dist/webcomponents/p-55iuf7iW.js +1 -0
- package/dist/webcomponents/{p-BxfUcCXo.js → p-5aA7gjr5.js} +1 -1
- package/dist/webcomponents/p-5e71f4d4.entry.js +1 -0
- package/dist/webcomponents/{p-0e4e662b.entry.js → p-6a06da8a.entry.js} +1 -1
- package/dist/webcomponents/p-6bafb4b5.entry.js +1 -0
- package/dist/webcomponents/p-6d1f2d57.entry.js +1 -0
- package/dist/webcomponents/p-6f397c80.entry.js +1 -0
- package/dist/webcomponents/p-75545aec.entry.js +1 -0
- package/dist/webcomponents/p-7b07255f.entry.js +1 -0
- package/dist/webcomponents/p-7b925204.entry.js +1 -0
- package/dist/webcomponents/p-831857dc.entry.js +1 -0
- package/dist/webcomponents/p-85c0953d.entry.js +1 -0
- package/dist/webcomponents/p-85ebdce5.entry.js +1 -0
- package/dist/webcomponents/p-86b166eb.entry.js +1 -0
- package/dist/webcomponents/{p-1bddf354.entry.js → p-880718b9.entry.js} +1 -1
- package/dist/webcomponents/p-88b6dbdd.entry.js +1 -0
- package/dist/webcomponents/p-8e0c6f60.entry.js +1 -0
- package/dist/webcomponents/{p-66861ea5.entry.js → p-90edbaa3.entry.js} +1 -1
- package/dist/webcomponents/p-97c0d873.entry.js +1 -0
- package/dist/webcomponents/p-9e48a264.entry.js +1 -0
- package/dist/webcomponents/{p-Dh6FEdp8.js → p-AbSg_vYv.js} +1 -1
- package/dist/webcomponents/p-B2uBb14Y.js +1 -0
- package/dist/webcomponents/{p-BtT7kqMw.js → p-B3qJZUMy.js} +1 -1
- package/dist/webcomponents/p-BF51n3KG.js +1 -0
- package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
- package/dist/webcomponents/p-BNd9xVOU.js +1 -0
- package/dist/webcomponents/p-BQLEjYfZ.js +1 -0
- package/dist/webcomponents/p-BZ9YQ3FA.js +1 -0
- package/dist/webcomponents/{p-BqK0rIZQ.js → p-BfEOvp9h.js} +1 -1
- package/dist/webcomponents/p-Bka75aL-.js +1 -0
- package/dist/webcomponents/p-C3e-DgwK.js +1 -0
- package/dist/webcomponents/{p-DAVX1-sW.js → p-CDIPkflV.js} +1 -1
- package/dist/webcomponents/{p-D3G5aVLy.js → p-CKg_luIy.js} +1 -1
- package/dist/webcomponents/{p-DDpc1huF.js → p-Ce8QXyUM.js} +1 -1
- package/dist/webcomponents/p-ChzWF0s3.js +1 -0
- package/dist/webcomponents/p-CjAMuB2J.js +1 -0
- package/dist/webcomponents/p-Cjcsf8ku.js +1 -0
- package/dist/webcomponents/{p-DAoffYFW.js → p-D0I-tRSs.js} +1 -1
- package/dist/webcomponents/p-D2muobcE.js +1 -0
- package/dist/webcomponents/p-DC63XVwu.js +1 -0
- package/dist/webcomponents/p-DH8F0bsw.js +1 -0
- package/dist/webcomponents/p-DMuY7Dka.js +1 -0
- package/dist/webcomponents/p-DPfZxsq9.js +1 -0
- package/dist/webcomponents/{p-DHvfrLVU.js → p-DPnS0F0Y.js} +1 -1
- package/dist/webcomponents/p-DR0bMp9p.js +1 -0
- package/dist/webcomponents/p-DYGIC0QH.js +1 -0
- package/dist/webcomponents/p-DgxD9dbc.js +1 -0
- package/dist/webcomponents/p-DniBAXrh.js +1 -0
- package/dist/webcomponents/p-Do0fsKZk.js +1 -0
- package/dist/webcomponents/{p-1adN6FVa.js → p-DpUqxsf5.js} +1 -1
- package/dist/webcomponents/p-DxEnw2tJ.js +1 -0
- package/dist/webcomponents/{p-fUv1jFAw.js → p-EAEmpCru.js} +1 -1
- package/dist/webcomponents/p-HlNEzyiZ.js +1 -0
- package/dist/webcomponents/p-O50LiN_p.js +1 -0
- package/dist/webcomponents/p-S_UV9-px.js +1 -0
- package/dist/webcomponents/p-X2PeOHf5.js +1 -0
- package/dist/webcomponents/p-_WsRuUBr.js +1 -0
- package/dist/webcomponents/{p-683630d0.entry.js → p-a1c7c873.entry.js} +1 -1
- package/dist/webcomponents/p-a3c6c55e.entry.js +1 -0
- package/dist/webcomponents/p-af935779.entry.js +1 -0
- package/dist/webcomponents/p-b01801a6.entry.js +1 -0
- package/dist/webcomponents/p-b47000f7.entry.js +1 -0
- package/dist/webcomponents/p-b58fb1b1.entry.js +1 -0
- package/dist/webcomponents/{p-f5d12ae3.entry.js → p-b8906c49.entry.js} +1 -1
- package/dist/webcomponents/p-c1bf875b.entry.js +1 -0
- package/dist/webcomponents/p-c26ef276.entry.js +1 -0
- package/dist/webcomponents/p-c5331724.entry.js +1 -0
- package/dist/webcomponents/p-c6bd05ef.entry.js +1 -0
- package/dist/webcomponents/{p-0890869b.entry.js → p-d5e4e888.entry.js} +4 -4
- package/dist/webcomponents/{p-e48a2d25.entry.js → p-e2ee826e.entry.js} +1 -1
- package/dist/webcomponents/{p-ae00a6f3.entry.js → p-e9c44dc2.entry.js} +1 -1
- package/dist/webcomponents/p-edf9128c.entry.js +1 -0
- package/dist/webcomponents/p-f3c2de89.entry.js +1 -0
- package/dist/webcomponents/p-f6ff7255.entry.js +1 -0
- package/dist/webcomponents/p-f8a0821d.entry.js +1 -0
- package/dist/webcomponents/p-fcb6c171.entry.js +1 -0
- package/dist/webcomponents/p-fd4d7c7e.entry.js +1 -0
- package/dist/webcomponents/p-pMAKJWDL.js +1 -0
- package/dist/webcomponents/p-rPeW3G6n.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Payment-D5UynU2f.js +0 -151
- package/dist/cjs/header-3-BnKbOjvz.js +0 -10
- package/dist/cjs/insurance-state-BsGy_svD.js +0 -34
- package/dist/cjs/justifi-billing-form.cjs.entry.js +0 -76
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +0 -99
- package/dist/cjs/justifi-payment-method-options.cjs.entry.js +0 -76
- package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +0 -117
- package/dist/collection/components/checkout/new-payment-method.js +0 -378
- package/dist/collection/components/checkout/payment-method-options.js +0 -421
- package/dist/esm/Payment-00TwhwCx.js +0 -149
- package/dist/esm/header-3-Bsi4loU1.js +0 -8
- package/dist/esm/insurance-state-pL8MRpxn.js +0 -28
- package/dist/esm/justifi-billing-form.entry.js +0 -74
- package/dist/esm/justifi-new-payment-method.entry.js +0 -97
- package/dist/esm/justifi-payment-method-options.entry.js +0 -74
- package/dist/esm/justifi-saved-payment-methods_2.entry.js +0 -114
- package/dist/module/Payment.js +0 -204
- package/dist/module/header-3.js +0 -8
- package/dist/module/justifi-new-payment-method.d.ts +0 -11
- package/dist/module/justifi-new-payment-method.js +0 -219
- package/dist/module/justifi-payment-method-options.d.ts +0 -11
- package/dist/module/justifi-payment-method-options.js +0 -6
- package/dist/module/payment-method-options.js +0 -129
- package/dist/types/components/checkout/new-payment-method.d.ts +0 -31
- package/dist/types/components/checkout/payment-method-options.d.ts +0 -32
- package/dist/webcomponents/p-00d7c2e6.entry.js +0 -1
- package/dist/webcomponents/p-03e9a98c.entry.js +0 -1
- package/dist/webcomponents/p-05fc864a.entry.js +0 -1
- package/dist/webcomponents/p-09c24135.entry.js +0 -1
- package/dist/webcomponents/p-0f511cc1.entry.js +0 -1
- package/dist/webcomponents/p-100008fa.entry.js +0 -1
- package/dist/webcomponents/p-17825dfb.entry.js +0 -1
- package/dist/webcomponents/p-18b941d3.entry.js +0 -1
- package/dist/webcomponents/p-19308a1b.entry.js +0 -1
- package/dist/webcomponents/p-1a7942f7.entry.js +0 -1
- package/dist/webcomponents/p-1d1d956b.entry.js +0 -1
- package/dist/webcomponents/p-26bf2fda.entry.js +0 -1
- package/dist/webcomponents/p-2d3949f7.entry.js +0 -1
- package/dist/webcomponents/p-326f4860.entry.js +0 -1
- package/dist/webcomponents/p-359b8f54.entry.js +0 -1
- package/dist/webcomponents/p-37aeeeee.entry.js +0 -1
- package/dist/webcomponents/p-4887bcb3.entry.js +0 -1
- package/dist/webcomponents/p-54406229.entry.js +0 -1
- package/dist/webcomponents/p-56af4fd0.entry.js +0 -1
- package/dist/webcomponents/p-59656e08.entry.js +0 -1
- package/dist/webcomponents/p-5d145701.entry.js +0 -1
- package/dist/webcomponents/p-5e813b93.entry.js +0 -1
- package/dist/webcomponents/p-64a46b8a.entry.js +0 -1
- package/dist/webcomponents/p-6bd83369.entry.js +0 -1
- package/dist/webcomponents/p-6ee2b118.entry.js +0 -1
- package/dist/webcomponents/p-73afde1b.entry.js +0 -1
- package/dist/webcomponents/p-73bbd71c.entry.js +0 -1
- package/dist/webcomponents/p-74f78a4e.entry.js +0 -1
- package/dist/webcomponents/p-755a8d9b.entry.js +0 -1
- package/dist/webcomponents/p-7c456c10.entry.js +0 -1
- package/dist/webcomponents/p-7c6d7283.entry.js +0 -1
- package/dist/webcomponents/p-7e9832b3.entry.js +0 -1
- package/dist/webcomponents/p-810cad17.entry.js +0 -1
- package/dist/webcomponents/p-81478598.entry.js +0 -1
- package/dist/webcomponents/p-91a2707a.entry.js +0 -1
- package/dist/webcomponents/p-9348a7c8.entry.js +0 -1
- package/dist/webcomponents/p-967c3374.entry.js +0 -1
- package/dist/webcomponents/p-9REosSLu.js +0 -1
- package/dist/webcomponents/p-9c27f87f.entry.js +0 -1
- package/dist/webcomponents/p-B9ROmZzw.js +0 -1
- package/dist/webcomponents/p-BCPBc18Y.js +0 -1
- package/dist/webcomponents/p-BQ5bL1Y5.js +0 -1
- package/dist/webcomponents/p-BSW9VS7r.js +0 -1
- package/dist/webcomponents/p-BSexQ2qc.js +0 -1
- package/dist/webcomponents/p-Bc5u1WjM.js +0 -1
- package/dist/webcomponents/p-BhrFjjAs.js +0 -1
- package/dist/webcomponents/p-BjQrbohd.js +0 -1
- package/dist/webcomponents/p-BxWsrx5h.js +0 -1
- package/dist/webcomponents/p-By9Lz2e0.js +0 -1
- package/dist/webcomponents/p-CEp46FZK.js +0 -1
- package/dist/webcomponents/p-CMNxLEJP.js +0 -1
- package/dist/webcomponents/p-CZItg0Yo.js +0 -1
- package/dist/webcomponents/p-D7WGjeDy.js +0 -1
- package/dist/webcomponents/p-DIDbcp63.js +0 -1
- package/dist/webcomponents/p-DKClunJd.js +0 -1
- package/dist/webcomponents/p-DR0dQ8Fv.js +0 -1
- package/dist/webcomponents/p-DUqRxn4Y.js +0 -1
- package/dist/webcomponents/p-DbcOhajT.js +0 -1
- package/dist/webcomponents/p-DhAmsAOH.js +0 -1
- package/dist/webcomponents/p-DoEkFs2i.js +0 -1
- package/dist/webcomponents/p-DvXSA0b0.js +0 -1
- package/dist/webcomponents/p-NqdaxjDT.js +0 -1
- package/dist/webcomponents/p-a05062d8.entry.js +0 -1
- package/dist/webcomponents/p-a27405fb.entry.js +0 -1
- package/dist/webcomponents/p-a2f0d61c.entry.js +0 -1
- package/dist/webcomponents/p-a95741ee.entry.js +0 -1
- package/dist/webcomponents/p-b193bf46.entry.js +0 -1
- package/dist/webcomponents/p-b398856f.entry.js +0 -1
- package/dist/webcomponents/p-d33baab9.entry.js +0 -1
- package/dist/webcomponents/p-d3f438ca.entry.js +0 -1
- package/dist/webcomponents/p-d5b3c65c.entry.js +0 -1
- package/dist/webcomponents/p-d62e6c16.entry.js +0 -1
- package/dist/webcomponents/p-eba620cd.entry.js +0 -1
- package/dist/webcomponents/p-ecdda6e6.entry.js +0 -1
- package/dist/webcomponents/p-f24e201f.entry.js +0 -1
- package/dist/webcomponents/p-m2jmX-Hz.js +0 -1
- package/dist/webcomponents/p-pGzabKc7.js +0 -1
- package/dist/webcomponents/p-sT4o5vru.js +0 -1
- package/dist/webcomponents/p-ys9CWfNG.js +0 -1
- package/dist/webcomponents/p-zucQG3cz.js +0 -1
|
@@ -1,73 +1,252 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { StyledHost } from "../../ui-components";
|
|
3
3
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
4
4
|
import JustifiAnalytics from "../../api/Analytics";
|
|
5
|
+
import { PaymentMethodTypes } from "../../api/Payment";
|
|
5
6
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api";
|
|
6
7
|
import { checkoutStore } from "../../store/checkout.store";
|
|
8
|
+
// Constants
|
|
9
|
+
const PAYMENT_METHOD_TYPE_LABELS = {
|
|
10
|
+
[PaymentMethodTypes.bankAccount]: 'New bank account',
|
|
11
|
+
[PaymentMethodTypes.card]: 'New credit or debit card',
|
|
12
|
+
};
|
|
13
|
+
const ERROR_MESSAGES = {
|
|
14
|
+
AUTH_TOKEN_REQUIRED: 'Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
|
|
15
|
+
ACCOUNT_ID_REQUIRED: 'Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
|
|
16
|
+
FORM_NOT_READY: 'Payment form not ready',
|
|
17
|
+
VALIDATION_ERROR: 'Validation error',
|
|
18
|
+
};
|
|
7
19
|
export class TokenizePaymentMethod {
|
|
8
20
|
constructor() {
|
|
9
|
-
this.submitButtonText = 'Submit';
|
|
10
21
|
this.isLoading = false;
|
|
22
|
+
this.computedHideSubmitButton = false;
|
|
23
|
+
this.submitButtonText = 'Submit';
|
|
11
24
|
}
|
|
12
25
|
componentWillLoad() {
|
|
13
26
|
checkPkgVersion();
|
|
14
27
|
this.analytics = new JustifiAnalytics(this);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
28
|
+
this.validateRequiredProps();
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
this.setDefaultSelectedPaymentMethod();
|
|
32
|
+
this.setComputedHideSubmitButton();
|
|
21
33
|
}
|
|
22
34
|
disconnectedCallback() {
|
|
23
35
|
var _a;
|
|
24
36
|
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
25
37
|
}
|
|
26
|
-
|
|
38
|
+
paymentMethodsChanged() {
|
|
39
|
+
this.setDefaultSelectedPaymentMethod();
|
|
40
|
+
}
|
|
41
|
+
handleRadioClick(event) {
|
|
42
|
+
this.selectedPaymentMethodId = event.detail;
|
|
43
|
+
}
|
|
44
|
+
async fillBillingForm(fields) {
|
|
45
|
+
var _a;
|
|
46
|
+
(_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.fill(fields);
|
|
47
|
+
}
|
|
27
48
|
async tokenizePaymentMethod(event) {
|
|
28
|
-
event
|
|
49
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
29
50
|
this.isLoading = true;
|
|
30
|
-
let tokenizeResponse;
|
|
31
51
|
try {
|
|
32
|
-
|
|
33
|
-
if (
|
|
52
|
+
const validation = await this.validate();
|
|
53
|
+
if (!validation.isValid) {
|
|
34
54
|
this.errorEvent.emit({
|
|
55
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
56
|
+
message: ERROR_MESSAGES.VALIDATION_ERROR,
|
|
57
|
+
});
|
|
58
|
+
this.isLoading = false;
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const tokenizeResponse = await this.resolvePaymentMethod({ isValid: true });
|
|
62
|
+
if (tokenizeResponse.error) {
|
|
63
|
+
this.emitError({
|
|
35
64
|
errorCode: tokenizeResponse.error.code,
|
|
36
65
|
message: tokenizeResponse.error.message,
|
|
37
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
38
66
|
});
|
|
39
67
|
}
|
|
68
|
+
this.submitEvent.emit({ response: tokenizeResponse });
|
|
69
|
+
return tokenizeResponse;
|
|
40
70
|
}
|
|
41
71
|
catch (error) {
|
|
42
|
-
const
|
|
72
|
+
const errorResponse = this.createErrorResponse(ComponentErrorCodes.TOKENIZE_ERROR, error.message);
|
|
73
|
+
this.emitError({
|
|
43
74
|
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
44
75
|
message: error.message,
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
|
|
76
|
+
});
|
|
77
|
+
this.submitEvent.emit({ response: errorResponse });
|
|
78
|
+
return errorResponse;
|
|
48
79
|
}
|
|
49
80
|
finally {
|
|
50
|
-
this.submitEvent.emit({ response: tokenizeResponse });
|
|
51
81
|
this.isLoading = false;
|
|
52
|
-
return tokenizeResponse;
|
|
53
82
|
}
|
|
54
83
|
}
|
|
55
|
-
async fillBillingForm(fields) {
|
|
56
|
-
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
57
|
-
}
|
|
58
84
|
async validate() {
|
|
59
|
-
|
|
85
|
+
if (!this.areFormsReady()) {
|
|
86
|
+
return { isValid: false, errors: { general: ERROR_MESSAGES.FORM_NOT_READY } };
|
|
87
|
+
}
|
|
88
|
+
const [billingValidation, paymentMethodValidation] = await Promise.all([
|
|
89
|
+
this.billingFormRef.validate(),
|
|
90
|
+
this.paymentMethodFormRef.validate(),
|
|
91
|
+
]);
|
|
92
|
+
return {
|
|
93
|
+
isValid: billingValidation.isValid && paymentMethodValidation.isValid,
|
|
94
|
+
errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
validateRequiredProps() {
|
|
98
|
+
if (!this.authToken && !checkoutStore.authToken) {
|
|
99
|
+
this.emitError({
|
|
100
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
101
|
+
message: ERROR_MESSAGES.AUTH_TOKEN_REQUIRED,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (!this.accountId && !checkoutStore.accountId) {
|
|
105
|
+
this.emitError({
|
|
106
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
107
|
+
message: ERROR_MESSAGES.ACCOUNT_ID_REQUIRED,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
setDefaultSelectedPaymentMethod() {
|
|
112
|
+
if (!this.selectedPaymentMethodId) {
|
|
113
|
+
if (!this.disableCreditCard) {
|
|
114
|
+
this.selectedPaymentMethodId = PaymentMethodTypes.card;
|
|
115
|
+
}
|
|
116
|
+
else if (!this.disableBankAccount) {
|
|
117
|
+
this.selectedPaymentMethodId = PaymentMethodTypes.bankAccount;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
setComputedHideSubmitButton() {
|
|
122
|
+
// If hideSubmitButton prop is explicitly set, use that value
|
|
123
|
+
if (this.hideSubmitButton !== undefined) {
|
|
124
|
+
this.computedHideSubmitButton = this.hideSubmitButton;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
// Otherwise, auto-detect if component is slotted within modular-checkout
|
|
128
|
+
const isWithinModularCheckout = this.isSlottedWithinModularCheckout();
|
|
129
|
+
this.computedHideSubmitButton = isWithinModularCheckout;
|
|
130
|
+
}
|
|
131
|
+
isSlottedWithinModularCheckout() {
|
|
132
|
+
var _a;
|
|
133
|
+
let parent = (_a = this.host) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
134
|
+
while (parent) {
|
|
135
|
+
if (parent.tagName === 'JUSTIFI-MODULAR-CHECKOUT') {
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
parent = parent.parentElement;
|
|
139
|
+
}
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
get availablePaymentMethods() {
|
|
143
|
+
const methods = [];
|
|
144
|
+
if (!this.disableCreditCard) {
|
|
145
|
+
methods.push(PaymentMethodTypes.card);
|
|
146
|
+
}
|
|
147
|
+
if (!this.disableBankAccount) {
|
|
148
|
+
methods.push(PaymentMethodTypes.bankAccount);
|
|
149
|
+
}
|
|
150
|
+
return methods;
|
|
151
|
+
}
|
|
152
|
+
areFormsReady() {
|
|
153
|
+
return !!(this.billingFormRef && this.paymentMethodFormRef);
|
|
154
|
+
}
|
|
155
|
+
emitError(errorData) {
|
|
156
|
+
this.errorEvent.emit(Object.assign(Object.assign({}, errorData), { severity: ComponentErrorSeverity.ERROR }));
|
|
157
|
+
}
|
|
158
|
+
createErrorResponse(code, message) {
|
|
159
|
+
return {
|
|
160
|
+
error: {
|
|
161
|
+
code: code,
|
|
162
|
+
message,
|
|
163
|
+
decline_code: undefined,
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
168
|
+
if (!this.areFormsReady()) {
|
|
169
|
+
return this.createErrorResponse('form_not_ready', ERROR_MESSAGES.FORM_NOT_READY);
|
|
170
|
+
}
|
|
171
|
+
try {
|
|
172
|
+
const validation = await this.validate();
|
|
173
|
+
if (!validation.isValid || !insuranceValidation.isValid) {
|
|
174
|
+
const errorMessage = Object.values(validation.errors)[0] || ERROR_MESSAGES.VALIDATION_ERROR;
|
|
175
|
+
return {
|
|
176
|
+
validationError: true,
|
|
177
|
+
error: {
|
|
178
|
+
code: 'validation_error',
|
|
179
|
+
message: String(errorMessage),
|
|
180
|
+
decline_code: undefined,
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
return await this.performTokenization();
|
|
185
|
+
}
|
|
186
|
+
catch (error) {
|
|
187
|
+
return { error };
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
async performTokenization() {
|
|
191
|
+
var _a, _b;
|
|
192
|
+
const tokenizeResponse = await this.tokenize();
|
|
193
|
+
if (tokenizeResponse.error) {
|
|
194
|
+
return { error: tokenizeResponse.error };
|
|
195
|
+
}
|
|
196
|
+
const tokenizeResponseData = tokenizeResponse.data;
|
|
197
|
+
return {
|
|
198
|
+
token: ((_a = tokenizeResponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeResponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
199
|
+
data: tokenizeResponseData,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
async tokenize() {
|
|
203
|
+
try {
|
|
204
|
+
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
205
|
+
const config = {
|
|
206
|
+
clientId: this.authToken || checkoutStore.authToken,
|
|
207
|
+
account: this.accountId || checkoutStore.accountId,
|
|
208
|
+
paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
|
|
209
|
+
};
|
|
210
|
+
return await this.paymentMethodFormRef.tokenize(config);
|
|
211
|
+
}
|
|
212
|
+
catch (error) {
|
|
213
|
+
return error;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
buildPaymentMethodMetadata(billingFormFieldValues) {
|
|
217
|
+
return this.shouldSavePaymentMethod
|
|
218
|
+
? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupID }) : Object.assign({}, billingFormFieldValues);
|
|
219
|
+
}
|
|
220
|
+
get paymentMethodGroupID() {
|
|
221
|
+
return this.paymentMethodGroupId || checkoutStore.paymentMethodGroupId;
|
|
222
|
+
}
|
|
223
|
+
get shouldSavePaymentMethod() {
|
|
224
|
+
return !!(this.paymentMethodGroupId || checkoutStore.savePaymentMethod);
|
|
225
|
+
}
|
|
226
|
+
get shouldHideRadioInput() {
|
|
227
|
+
const showCard = !this.disableCreditCard;
|
|
228
|
+
const showAch = !this.disableBankAccount;
|
|
229
|
+
return !showAch || !showCard;
|
|
230
|
+
}
|
|
231
|
+
renderPaymentMethodOption(paymentMethodType) {
|
|
232
|
+
const isSelected = this.selectedPaymentMethodId === paymentMethodType;
|
|
233
|
+
return (h("div", { class: "payment-method" }, h("justifi-radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
234
|
+
}
|
|
235
|
+
renderSelectedPaymentMethodForm(paymentMethodId) {
|
|
236
|
+
return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodId), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodId }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupID })));
|
|
237
|
+
}
|
|
238
|
+
renderPaymentMethodForm(paymentMethodId) {
|
|
239
|
+
return paymentMethodId === PaymentMethodTypes.card ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
|
|
60
240
|
}
|
|
61
241
|
render() {
|
|
62
|
-
return (h(StyledHost, { key: '
|
|
242
|
+
return (h(StyledHost, { key: 'b8cf3e66f93bf1b1dd2c3116781ddf0168cbd4e7' }, h("form", { key: '70ad04762a32e930b6b96c2d8609577cd5d1e8d6' }, h("fieldset", { key: 'f7a7d53512b3d034999b18b666381c2df04f082b' }, h("div", { key: '6e5be958e583399ac733aefe4ddf935f5aec98df', class: "row gy-3" }, h("div", { key: '2d81034d2d95532a18bef58cdd1635b1d3b1d735', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'a791aac6520c187fd336012d97c976ece891edeb', class: "col-12" }, h("justifi-button", { key: '9ff1733b1811fea31b1e4dc41694db4eb40be14c', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
63
243
|
}
|
|
64
244
|
static get is() { return "justifi-tokenize-payment-method"; }
|
|
65
|
-
static get encapsulation() { return "shadow"; }
|
|
66
245
|
static get properties() {
|
|
67
246
|
return {
|
|
68
|
-
"
|
|
247
|
+
"accountId": {
|
|
69
248
|
"type": "string",
|
|
70
|
-
"attribute": "
|
|
249
|
+
"attribute": "account-id",
|
|
71
250
|
"mutable": false,
|
|
72
251
|
"complexType": {
|
|
73
252
|
"original": "string",
|
|
@@ -84,9 +263,9 @@ export class TokenizePaymentMethod {
|
|
|
84
263
|
"setter": false,
|
|
85
264
|
"reflect": false
|
|
86
265
|
},
|
|
87
|
-
"
|
|
266
|
+
"authToken": {
|
|
88
267
|
"type": "string",
|
|
89
|
-
"attribute": "
|
|
268
|
+
"attribute": "auth-token",
|
|
90
269
|
"mutable": false,
|
|
91
270
|
"complexType": {
|
|
92
271
|
"original": "string",
|
|
@@ -103,17 +282,17 @@ export class TokenizePaymentMethod {
|
|
|
103
282
|
"setter": false,
|
|
104
283
|
"reflect": false
|
|
105
284
|
},
|
|
106
|
-
"
|
|
107
|
-
"type": "
|
|
108
|
-
"attribute": "
|
|
285
|
+
"disableBankAccount": {
|
|
286
|
+
"type": "boolean",
|
|
287
|
+
"attribute": "disable-bank-account",
|
|
109
288
|
"mutable": false,
|
|
110
289
|
"complexType": {
|
|
111
|
-
"original": "
|
|
112
|
-
"resolved": "
|
|
290
|
+
"original": "boolean",
|
|
291
|
+
"resolved": "boolean",
|
|
113
292
|
"references": {}
|
|
114
293
|
},
|
|
115
294
|
"required": false,
|
|
116
|
-
"optional":
|
|
295
|
+
"optional": true,
|
|
117
296
|
"docs": {
|
|
118
297
|
"tags": [],
|
|
119
298
|
"text": ""
|
|
@@ -122,29 +301,28 @@ export class TokenizePaymentMethod {
|
|
|
122
301
|
"setter": false,
|
|
123
302
|
"reflect": false
|
|
124
303
|
},
|
|
125
|
-
"
|
|
126
|
-
"type": "
|
|
127
|
-
"attribute": "
|
|
304
|
+
"disableCreditCard": {
|
|
305
|
+
"type": "boolean",
|
|
306
|
+
"attribute": "disable-credit-card",
|
|
128
307
|
"mutable": false,
|
|
129
308
|
"complexType": {
|
|
130
|
-
"original": "
|
|
131
|
-
"resolved": "
|
|
309
|
+
"original": "boolean",
|
|
310
|
+
"resolved": "boolean",
|
|
132
311
|
"references": {}
|
|
133
312
|
},
|
|
134
313
|
"required": false,
|
|
135
|
-
"optional":
|
|
314
|
+
"optional": true,
|
|
136
315
|
"docs": {
|
|
137
316
|
"tags": [],
|
|
138
317
|
"text": ""
|
|
139
318
|
},
|
|
140
319
|
"getter": false,
|
|
141
320
|
"setter": false,
|
|
142
|
-
"reflect": false
|
|
143
|
-
"defaultValue": "'Submit'"
|
|
321
|
+
"reflect": false
|
|
144
322
|
},
|
|
145
|
-
"
|
|
323
|
+
"hideBankAccountBillingForm": {
|
|
146
324
|
"type": "boolean",
|
|
147
|
-
"attribute": "
|
|
325
|
+
"attribute": "hide-bank-account-billing-form",
|
|
148
326
|
"mutable": false,
|
|
149
327
|
"complexType": {
|
|
150
328
|
"original": "boolean",
|
|
@@ -161,9 +339,9 @@ export class TokenizePaymentMethod {
|
|
|
161
339
|
"setter": false,
|
|
162
340
|
"reflect": false
|
|
163
341
|
},
|
|
164
|
-
"
|
|
342
|
+
"hideCardBillingForm": {
|
|
165
343
|
"type": "boolean",
|
|
166
|
-
"attribute": "
|
|
344
|
+
"attribute": "hide-card-billing-form",
|
|
167
345
|
"mutable": false,
|
|
168
346
|
"complexType": {
|
|
169
347
|
"original": "boolean",
|
|
@@ -199,13 +377,13 @@ export class TokenizePaymentMethod {
|
|
|
199
377
|
"setter": false,
|
|
200
378
|
"reflect": false
|
|
201
379
|
},
|
|
202
|
-
"
|
|
203
|
-
"type": "
|
|
204
|
-
"attribute": "
|
|
380
|
+
"paymentMethodGroupId": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"attribute": "payment-method-group-id",
|
|
205
383
|
"mutable": false,
|
|
206
384
|
"complexType": {
|
|
207
|
-
"original": "
|
|
208
|
-
"resolved": "
|
|
385
|
+
"original": "string",
|
|
386
|
+
"resolved": "string",
|
|
209
387
|
"references": {}
|
|
210
388
|
},
|
|
211
389
|
"required": false,
|
|
@@ -218,13 +396,13 @@ export class TokenizePaymentMethod {
|
|
|
218
396
|
"setter": false,
|
|
219
397
|
"reflect": false
|
|
220
398
|
},
|
|
221
|
-
"
|
|
222
|
-
"type": "
|
|
223
|
-
"attribute": "
|
|
399
|
+
"submitButtonText": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"attribute": "submit-button-text",
|
|
224
402
|
"mutable": false,
|
|
225
403
|
"complexType": {
|
|
226
|
-
"original": "
|
|
227
|
-
"resolved": "
|
|
404
|
+
"original": "string",
|
|
405
|
+
"resolved": "string",
|
|
228
406
|
"references": {}
|
|
229
407
|
},
|
|
230
408
|
"required": false,
|
|
@@ -235,13 +413,16 @@ export class TokenizePaymentMethod {
|
|
|
235
413
|
},
|
|
236
414
|
"getter": false,
|
|
237
415
|
"setter": false,
|
|
238
|
-
"reflect": false
|
|
416
|
+
"reflect": false,
|
|
417
|
+
"defaultValue": "'Submit'"
|
|
239
418
|
}
|
|
240
419
|
};
|
|
241
420
|
}
|
|
242
421
|
static get states() {
|
|
243
422
|
return {
|
|
244
|
-
"isLoading": {}
|
|
423
|
+
"isLoading": {},
|
|
424
|
+
"selectedPaymentMethodId": {},
|
|
425
|
+
"computedHideSubmitButton": {}
|
|
245
426
|
};
|
|
246
427
|
}
|
|
247
428
|
static get events() {
|
|
@@ -291,12 +472,12 @@ export class TokenizePaymentMethod {
|
|
|
291
472
|
}
|
|
292
473
|
static get methods() {
|
|
293
474
|
return {
|
|
294
|
-
"
|
|
475
|
+
"fillBillingForm": {
|
|
295
476
|
"complexType": {
|
|
296
|
-
"signature": "(
|
|
477
|
+
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
297
478
|
"parameters": [{
|
|
298
|
-
"name": "
|
|
299
|
-
"type": "
|
|
479
|
+
"name": "fields",
|
|
480
|
+
"type": "BillingFormFields",
|
|
300
481
|
"docs": ""
|
|
301
482
|
}],
|
|
302
483
|
"references": {
|
|
@@ -304,34 +485,25 @@ export class TokenizePaymentMethod {
|
|
|
304
485
|
"location": "global",
|
|
305
486
|
"id": "global::Promise"
|
|
306
487
|
},
|
|
307
|
-
"
|
|
308
|
-
"location": "import",
|
|
309
|
-
"path": "../checkout/payment-method-payload",
|
|
310
|
-
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
311
|
-
},
|
|
312
|
-
"CustomEvent": {
|
|
313
|
-
"location": "global",
|
|
314
|
-
"id": "global::CustomEvent"
|
|
315
|
-
},
|
|
316
|
-
"ComponentErrorCodes": {
|
|
488
|
+
"BillingFormFields": {
|
|
317
489
|
"location": "import",
|
|
318
|
-
"path": "../../
|
|
319
|
-
"id": "src/
|
|
490
|
+
"path": "../../components",
|
|
491
|
+
"id": "src/components.d.ts::BillingFormFields"
|
|
320
492
|
}
|
|
321
493
|
},
|
|
322
|
-
"return": "Promise<
|
|
494
|
+
"return": "Promise<void>"
|
|
323
495
|
},
|
|
324
496
|
"docs": {
|
|
325
497
|
"text": "",
|
|
326
498
|
"tags": []
|
|
327
499
|
}
|
|
328
500
|
},
|
|
329
|
-
"
|
|
501
|
+
"tokenizePaymentMethod": {
|
|
330
502
|
"complexType": {
|
|
331
|
-
"signature": "(
|
|
503
|
+
"signature": "(event?: MouseEvent) => Promise<PaymentMethodPayload>",
|
|
332
504
|
"parameters": [{
|
|
333
|
-
"name": "
|
|
334
|
-
"type": "
|
|
505
|
+
"name": "event",
|
|
506
|
+
"type": "MouseEvent",
|
|
335
507
|
"docs": ""
|
|
336
508
|
}],
|
|
337
509
|
"references": {
|
|
@@ -339,13 +511,22 @@ export class TokenizePaymentMethod {
|
|
|
339
511
|
"location": "global",
|
|
340
512
|
"id": "global::Promise"
|
|
341
513
|
},
|
|
342
|
-
"
|
|
514
|
+
"PaymentMethodPayload": {
|
|
343
515
|
"location": "import",
|
|
344
|
-
"path": "
|
|
345
|
-
"id": "src/components.
|
|
516
|
+
"path": "../checkout/payment-method-payload",
|
|
517
|
+
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
518
|
+
},
|
|
519
|
+
"MouseEvent": {
|
|
520
|
+
"location": "global",
|
|
521
|
+
"id": "global::MouseEvent"
|
|
522
|
+
},
|
|
523
|
+
"ComponentErrorCodes": {
|
|
524
|
+
"location": "import",
|
|
525
|
+
"path": "../../api",
|
|
526
|
+
"id": "src/api/index.ts::ComponentErrorCodes"
|
|
346
527
|
}
|
|
347
528
|
},
|
|
348
|
-
"return": "Promise<
|
|
529
|
+
"return": "Promise<PaymentMethodPayload>"
|
|
349
530
|
},
|
|
350
531
|
"docs": {
|
|
351
532
|
"text": "",
|
|
@@ -354,15 +535,19 @@ export class TokenizePaymentMethod {
|
|
|
354
535
|
},
|
|
355
536
|
"validate": {
|
|
356
537
|
"complexType": {
|
|
357
|
-
"signature": "() => Promise<
|
|
538
|
+
"signature": "() => Promise<ValidationResult>",
|
|
358
539
|
"parameters": [],
|
|
359
540
|
"references": {
|
|
360
541
|
"Promise": {
|
|
361
542
|
"location": "global",
|
|
362
543
|
"id": "global::Promise"
|
|
544
|
+
},
|
|
545
|
+
"ValidationResult": {
|
|
546
|
+
"location": "global",
|
|
547
|
+
"id": "global::ValidationResult"
|
|
363
548
|
}
|
|
364
549
|
},
|
|
365
|
-
"return": "Promise<
|
|
550
|
+
"return": "Promise<ValidationResult>"
|
|
366
551
|
},
|
|
367
552
|
"docs": {
|
|
368
553
|
"text": "",
|
|
@@ -371,4 +556,23 @@ export class TokenizePaymentMethod {
|
|
|
371
556
|
}
|
|
372
557
|
};
|
|
373
558
|
}
|
|
559
|
+
static get elementRef() { return "host"; }
|
|
560
|
+
static get watchers() {
|
|
561
|
+
return [{
|
|
562
|
+
"propName": "disableCreditCard",
|
|
563
|
+
"methodName": "paymentMethodsChanged"
|
|
564
|
+
}, {
|
|
565
|
+
"propName": "disableBankAccount",
|
|
566
|
+
"methodName": "paymentMethodsChanged"
|
|
567
|
+
}];
|
|
568
|
+
}
|
|
569
|
+
static get listeners() {
|
|
570
|
+
return [{
|
|
571
|
+
"name": "radio-click",
|
|
572
|
+
"method": "handleRadioClick",
|
|
573
|
+
"target": undefined,
|
|
574
|
+
"capture": false,
|
|
575
|
+
"passive": false
|
|
576
|
+
}];
|
|
577
|
+
}
|
|
374
578
|
}
|
|
@@ -17,8 +17,9 @@ const initialState = {
|
|
|
17
17
|
disablePaymentMethodGroup: false,
|
|
18
18
|
paymentAmount: 0,
|
|
19
19
|
paymentDescription: '',
|
|
20
|
-
paymentMethodGroupId:
|
|
20
|
+
paymentMethodGroupId: undefined,
|
|
21
21
|
paymentMethods: [],
|
|
22
|
+
savePaymentMethod: false,
|
|
22
23
|
selectedPaymentMethod: '',
|
|
23
24
|
totalAmount: 0,
|
|
24
25
|
};
|
|
@@ -80,7 +80,7 @@ export class CustomPopper {
|
|
|
80
80
|
this.hideEvent.emit();
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h("div", { key: '
|
|
83
|
+
return (h("div", { key: '609efa147a53d357ac11d1d97a2277a518c6ba53' }, h("style", { key: 'ae6f607f454e1038518bd6438b50704fbb5096ce' }, `
|
|
84
84
|
.popper-content {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
|
@@ -88,7 +88,7 @@ export class CustomPopper {
|
|
|
88
88
|
display: block;
|
|
89
89
|
z-index: 1030;
|
|
90
90
|
}
|
|
91
|
-
`), h("div", { key: '
|
|
91
|
+
`), h("div", { key: '4d6fc7f6990bd1f271402146c38d0dd175fad94b', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '509c63e0288098dca22d2d4830ce790271cde6eb' }))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "custom-popper"; }
|
|
94
94
|
static get properties() {
|
|
@@ -31,10 +31,10 @@ export class CheckboxInput {
|
|
|
31
31
|
return inputCheckbox;
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '54f78efeb7d16825cfc08e98dcd37bad7b61f81b' }, h("div", { key: '83fef493e58c3a063cbbfe09700ba786b6242c4f', class: 'form-group d-flex flex-column' }, h("div", { key: '3c0ce3b7eb238a2ed5311f284b7f7422117e77bb', class: "form-check" }, h("input", { key: 'e071a738ff24cfec86f8f8c33c3cbae7261015ac', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
35
35
|
this.isFocused = false;
|
|
36
36
|
this.formControlBlur.emit();
|
|
37
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '
|
|
37
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: 'e73b59126ddfd1b4f7c510b6d18e48c66aa9417d', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: 'c69896d9f44b0d9bb12bad10f22f3da5c5a6de52', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '5a8e732e9cb5999ab72769f00f00a4a19def3471', errorText: this.errorText, name: this.name }))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "form-control-checkbox"; }
|
|
40
40
|
static get properties() {
|
|
@@ -42,10 +42,10 @@ export class DateInput {
|
|
|
42
42
|
return part;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '08bce3cf3be399f5cbc2b83885b42cbc38edb118' }, h("div", { key: '9d7537d093c98aad6ace2bf2e1dff221a94342ae', class: "form-group d-flex flex-column" }, h("div", { key: '4bb572f4060339595df10dd2b33799b926b6efd1', class: "d-flex gap-2" }, h("label", { key: '7ff86ee061e99220d836786304835edb087a513e', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '22506780fb5306be2eea2c8b0982668a57b8ac64', helpText: this.helpText })), h("input", { key: 'a15de1023d46a919caf8f2d4b4bd2fd187c44bc7', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
46
46
|
this.isFocused = false;
|
|
47
47
|
this.formControlBlur.emit();
|
|
48
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '
|
|
48
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '05011a1473a87a9a167a757d1f9387a3da3b9ebe', errorText: this.errorText, name: this.name }))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "form-control-date"; }
|
|
51
51
|
static get properties() {
|
|
@@ -2,7 +2,7 @@ import { Host, h, } from "@stencil/core";
|
|
|
2
2
|
import { FormControlErrorText } from "./form-helpers/form-control-error-text";
|
|
3
3
|
export class FileInput {
|
|
4
4
|
render() {
|
|
5
|
-
return (h(Host, { key: '
|
|
5
|
+
return (h(Host, { key: '326085a82e5ba4a9dfd92d821bbc61ae1226abca', exportparts: "label,input,input-invalid" }, h("div", { key: 'eb08a1c5c9eba7c1589a4088c822d6c877d2ac8f', class: "form-group d-flex flex-column" }, h("div", { key: '214803f34627450d640573a746fff3d10aeb83c8', class: "d-flex align-items-start gap-2" }, h("label", { key: '4c352fd5c0388437bbda2d02b0d5fb7b93b031f4', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '5653524953f91a5de2f10aa1d60014fe47b1e9b9', helpText: this.helpText })), h("input", { key: 'a247246694d393078ff8e3fb391b6232c3ee66c5', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: 'e3b485d2b5968444f4f0af9c1e4b922f0da58283', errorText: this.errorText, name: this.name }))));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "form-control-file-v2"; }
|
|
8
8
|
static get properties() {
|
|
@@ -37,10 +37,10 @@ export class FileInput {
|
|
|
37
37
|
return part;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '8521437d1faf90d5f3b73f821485560d0ca517a2' }, h("div", { key: 'd803250512feba82aea03c8a8946b024aec2eeae', class: "form-group d-flex flex-column" }, h("div", { key: '8377b86ca9c4b1974a55380d7cc325d6b5149913', class: "d-flex align-items-start gap-2" }, h("label", { key: 'ae69567c041aed85bdde3ea16f829aec96e4b25c', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '78c0ab7de411ca18dcfade80f1bac72b4741fdf9', helpText: this.helpText })), h("input", { key: 'ed1d7c11db1478e0edb90be9d918e119feb478ba', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
41
41
|
this.isFocused = false;
|
|
42
42
|
this.formControlBlur.emit();
|
|
43
|
-
} }), h(FormControlErrorText, { key: '
|
|
43
|
+
} }), h(FormControlErrorText, { key: 'b31b790d9c3fc013df2d504be03fb75987779148', errorText: this.errorText, name: this.name }))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "form-control-file"; }
|
|
46
46
|
static get properties() {
|