@justifi/webcomponents 5.7.7 → 6.0.0-rc.10
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-DLhABIj9.js → Api-DyimBzKT.js} +1 -1
- package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-D4OLnOkg.js} +10 -0
- package/dist/cjs/{Refund-1bG6RRPO.js → Refund-BefKONu4.js} +248 -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 -9
- package/dist/cjs/bank-account-form.cjs.entry.js +66 -0
- package/dist/cjs/{business.service-CaCyLLFW.js → business.service-BB6zl4Gc.js} +3 -5
- package/dist/cjs/card-form.cjs.entry.js +74 -0
- package/dist/cjs/{check-pkg-version-D6Kztnv7.js → check-pkg-version-DiQ-d5Nl.js} +10 -6
- package/dist/cjs/{checkout.service-DgD37tJv.js → checkout.service-B-R80p4f.js} +3 -5
- package/dist/cjs/checkout.store-BGvYPPz0.js +88 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +6 -7
- package/dist/cjs/{checkouts-table-Bzpqcsu0.js → checkouts-table-DjMdEiEW.js} +1 -1
- package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_2.cjs.entry.js} +22 -2
- package/dist/cjs/dinero-BwNN_k7x.js +1657 -0
- package/dist/cjs/{dispute.service-C0w_4Agq.js → dispute.service-B5tITFAh.js} +3 -5
- 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 → form-control-select_2.cjs.entry.js} +4 -23
- package/dist/cjs/{get-business-BJrtsomz.js → get-business-o5jPq_ME.js} +2 -2
- package/dist/cjs/{get-payment-details-BbfnopoD.js → get-payment-details-BfgRmNL4.js} +5 -7
- package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-DE_D9y08.js} +2 -2
- package/dist/cjs/{get-subaccounts-CpCJjnYt.js → get-subaccounts-Bnfv2tEN.js} +5 -7
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -2
- package/dist/cjs/{iframe-input_4.cjs.entry.js → hidden-input_2.cjs.entry.js} +111 -153
- package/dist/cjs/index-D-dD-aC2.js +30 -0
- package/dist/cjs/index.cjs.js +8 -0
- package/dist/cjs/{insurance-state-e44s1lUQ.js → insurance-state-d2thhXUX.js} +18 -0
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -5
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -18
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +782 -0
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +373 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +11 -12
- package/dist/cjs/justifi-business-form.cjs.entry.js +10 -11
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1421 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +69 -99
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +11 -12
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -14
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -11
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -14
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -9
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -13
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -13
- package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -14
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -11
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +31 -0
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +120 -18
- package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -7
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -6
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -13
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-C0-LCfay.js → package-Be2aoTf8.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
- package/dist/cjs/payment-method-option-utils-WYHIHy-l.js +15 -0
- package/dist/cjs/payment-method-option.cjs.entry.js +17 -0
- package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-CZVlnRA0.js} +2 -2
- package/dist/cjs/{payment.service-CtSdIJoy.js → payment.service-aR96UW5e.js} +3 -5
- package/dist/cjs/payments-list-core.cjs.entry.js +6 -7
- package/dist/cjs/{payments-table-CUGE6F-R.js → payments-table-BE8u0-i0.js} +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
- package/dist/cjs/{payout.service-7DP6F8x7.js → payout.service-6Cl_yXXQ.js} +3 -5
- package/dist/cjs/payouts-list-core.cjs.entry.js +6 -7
- package/dist/cjs/{payouts-table-Ca9HqjV7.js → payouts-table-BbydhJUr.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 -7
- package/dist/cjs/{terminal-orders-table-DPe_2FNB.js → terminal-orders-table-B4HjERrK.js} +3 -5
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-BR9g1yaB.js → terminal.service-D1FAYZzd.js} +3 -5
- package/dist/cjs/terminals-list-core.cjs.entry.js +6 -7
- package/dist/cjs/{terminals-table-DDoJIYZu.js → terminals-table-C79Xc4FI.js} +1 -1
- package/dist/cjs/{utils-Dewr6SlQ.js → utils-ChCUZgUy.js} +3 -1661
- package/dist/cjs/{utils-l0veqT9y.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/ApplePay.js +119 -0
- package/dist/collection/api/BillingInformation.js +1 -0
- package/dist/collection/api/Checkout.js +1 -3
- package/dist/collection/api/ComponentError.js +10 -0
- package/dist/collection/api/Payment.js +5 -2
- package/dist/collection/api/PaymentMethod.js +1 -0
- package/dist/collection/api/services/apple-pay.service.js +293 -0
- package/dist/collection/api/services/plaid.service.js +20 -0
- package/dist/collection/assets/plaid-icon.svg +1 -0
- package/dist/collection/collection-manifest.json +17 -9
- 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/billing-form/billing-form-schema.js +3 -3
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +136 -53
- package/dist/collection/components/checkout/payment-method-option-utils.js +0 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +9 -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 +118 -12
- package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +525 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +509 -0
- package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/bank-account-billing-form-simple.js +7 -5
- package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +98 -0
- package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/billing-form-full.js +12 -8
- package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/card-billing-form-simple.js +7 -5
- package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +102 -0
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +113 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +885 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +124 -0
- package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +42 -0
- package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +144 -0
- package/dist/collection/components/modular-checkout/sub-components/summary.js +12 -0
- 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 +317 -78
- package/dist/collection/index.js +1 -0
- package/dist/collection/store/checkout.store.js +78 -0
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-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 +5 -5
- 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 +10 -5
- package/dist/collection/ui-components/index.js +1 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +176 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +83 -0
- 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 +108 -0
- package/dist/collection/utils/check-pkg-version.js +6 -0
- package/dist/docs.json +5408 -5097
- package/dist/esm/{Api-BJv2_XdA.js → Api-DAWuvzbl.js} +1 -1
- package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-Cjcsf8ku.js} +11 -1
- package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
- package/dist/esm/{Refund-Dwnnpqim.js → Refund-CVh70dXA.js} +247 -2
- package/dist/esm/additional-questions-details_5.entry.js +4 -3
- package/dist/esm/{badge-XXatxWS0.js → badge-DSYSJcRy.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -13
- package/dist/{module/bank-account-form2.js → esm/bank-account-form.entry.js} +12 -36
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-Di9jP2_p.js → business.service-cQrH5BqF.js} +4 -6
- package/dist/esm/{button-C-ZZ9yD1.js → button-CpllL0At.js} +1 -1
- package/dist/esm/card-form.entry.js +72 -0
- package/dist/esm/{check-pkg-version-8KHO3ihW.js → check-pkg-version-CAnDiqiu.js} +11 -7
- package/dist/esm/{checkout.service-l-H_OIZa.js → checkout.service-Bbgi1I6V.js} +4 -6
- package/dist/esm/checkout.store-CCdFOPCK.js +83 -0
- package/dist/esm/checkouts-list-core.entry.js +11 -12
- package/dist/esm/{checkouts-table-DmwocPX2.js → checkouts-table-Ddf2I-Ul.js} +3 -3
- package/dist/esm/{custom-popper.entry.js → custom-popper_2.entry.js} +22 -3
- package/dist/esm/dinero-HXpYMWUU.js +1655 -0
- package/dist/esm/{dispute.service-CaEbHFjw.js → dispute.service-CrZsNDW8.js} +4 -6
- 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-eKr_QuRZ.js → form-control-error-text-R7U07nTg.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-Dw2vjMQ5.js → form-control-help-text-CRLH-2f7.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 → form-control-select_2.entry.js} +7 -25
- package/dist/esm/{get-business-GEPTefIj.js → get-business-Crb6P-iI.js} +2 -2
- package/dist/esm/{get-payment-details-BOpjKcRB.js → get-payment-details-0VzpMNY9.js} +5 -7
- package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-D-Lnooki.js} +2 -2
- package/dist/esm/{get-subaccounts-0Ri4RB5r.js → get-subaccounts-9UMbyFiT.js} +6 -8
- package/dist/esm/gross-payment-chart-core.entry.js +6 -5
- package/dist/esm/{header-1-BnwrlkS-.js → header-1-3M9If0gM.js} +1 -1
- package/dist/esm/{header-3-IOnOCyak.js → header-3-CWa41YWq.js} +1 -1
- package/dist/esm/{iframe-input_4.entry.js → hidden-input_2.entry.js} +106 -146
- package/dist/esm/index-CbL73B6U.js +30 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/insurance-state-CTalqbNa.js +45 -0
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -9
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +20 -21
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-apple-pay.entry.js +780 -0
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +363 -0
- package/dist/esm/justifi-business-details.entry.js +13 -14
- package/dist/esm/justifi-business-form.entry.js +15 -16
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +1413 -0
- package/dist/esm/justifi-checkout.entry.js +69 -99
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -8
- package/dist/esm/justifi-checkouts-list.entry.js +15 -16
- 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 -12
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -17
- package/dist/esm/justifi-gross-payment-chart.entry.js +11 -12
- package/dist/esm/justifi-order-terminals.entry.js +15 -16
- package/dist/esm/justifi-owner-form_3.entry.js +14 -15
- package/dist/esm/justifi-payment-details.entry.js +13 -14
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +12 -13
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -15
- package/dist/esm/justifi-payments-list-filters.entry.js +5 -4
- package/dist/esm/justifi-payments-list.entry.js +15 -16
- package/dist/esm/justifi-payout-details.entry.js +13 -14
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -15
- package/dist/esm/justifi-payouts-list-filters.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +17 -18
- package/dist/esm/justifi-refund-payment.entry.js +14 -15
- package/dist/esm/justifi-saved-payment-method.entry.js +29 -0
- package/dist/esm/justifi-season-interruption-insurance.entry.js +122 -20
- package/dist/esm/justifi-skeleton.entry.js +15 -0
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -9
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +7 -8
- package/dist/esm/justifi-terminals-list.entry.js +15 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BOCuVjGs.js → package-CnWtPu8L.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-CVGBVdVC.js → parts-RvUQ__Pq.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +15 -14
- package/dist/esm/payment-method-option-utils-lUHAQVFl.js +15 -0
- package/dist/esm/payment-method-option.entry.js +15 -0
- package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-ONP8lDnV.js} +2 -2
- package/dist/esm/{payment.service-Dz5mhgIm.js → payment.service-TxyxCg0E.js} +4 -6
- package/dist/esm/payments-list-core.entry.js +12 -13
- package/dist/esm/{payments-status-CN8wEqKC.js → payments-status-5orNU2Rd.js} +1 -1
- package/dist/esm/{payments-table-SmMgUr5X.js → payments-table-gkJV5GNK.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +11 -10
- package/dist/esm/{payout.service-DUnRbCmv.js → payout.service-BOwZ4wWh.js} +4 -6
- package/dist/esm/payouts-list-core.entry.js +12 -13
- package/dist/esm/{payouts-status-BzTh9X2W.js → payouts-status-CZPwa2AE.js} +1 -1
- package/dist/esm/{payouts-table-SB6q0e7V.js → payouts-table-0PtktGRd.js} +3 -3
- package/dist/esm/{skeleton-DK6mW457.js → skeleton-qMb0_Cjy.js} +1 -1
- package/dist/esm/{spinner-CWoD0q_S.js → spinner-DUzyWLhj.js} +1 -1
- package/dist/esm/{table-KCj3mM1K.js → table-Br3n9Xu-.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +11 -12
- package/dist/esm/{terminal-orders-table-CPsSDEWs.js → terminal-orders-table-DTBSIMlJ.js} +6 -8
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-Vhk3qPk2.js → terminal.service-E6dZlM43.js} +4 -6
- package/dist/esm/terminals-list-core.entry.js +11 -12
- package/dist/esm/{terminals-table-CAavYaG5.js → terminals-table-TGUKTi7I.js} +3 -3
- package/dist/esm/{utils-Dccsn9BY.js → utils-BeQLScSm.js} +1 -1
- package/dist/esm/{utils-CKEiU2Q5.js → utils-BscIVFn8.js} +3 -1660
- package/dist/esm/{utils-_kzStVq_.js → utils-Dg6gMUTv.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/{check-pkg-version.js → Analytics.js} +28 -24
- package/dist/module/ModularCheckout.js +30 -0
- package/dist/module/Refund.js +331 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-billing-form-simple.js +9 -4
- package/dist/module/bank-account-document-inputs.js +3 -5
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +86 -1
- package/dist/module/bank-account.js +103 -0
- package/dist/module/billing-form-full.js +14 -11
- package/dist/module/billing-form-schema.js +3 -3
- package/dist/module/business-additional-questions-form-step.js +2 -2
- package/dist/module/business-bank-account-form-step-core.js +2 -4
- package/dist/module/business-bank-account-form-step.js +3 -5
- package/dist/module/business-core-info-form-step.js +2 -2
- 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 +2 -2
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step.js +2 -2
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +2 -4
- package/dist/module/business.service.js +1 -3
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-billing-form-simple.js +9 -4
- package/dist/module/card-form.js +94 -1
- package/dist/module/card-form2.js +28 -13
- package/dist/module/checkout.service.js +1 -3
- package/dist/module/checkout.store.js +81 -0
- package/dist/module/checkouts-list-core2.js +6 -6
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +2 -2
- package/dist/module/dinero.js +1655 -0
- package/dist/module/dispute-management-core.js +2 -2
- package/dist/module/dispute-notification.js +3 -2
- package/dist/module/dispute-response-actions.js +1 -3
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +4 -3
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- 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 +4 -4
- 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-business.js +1 -1
- package/dist/module/get-payment-details.js +2 -4
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +2 -4
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/header-2.js +8 -0
- package/dist/module/header-3.js +8 -0
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/iframe-input2.js +6 -6
- package/dist/module/index.js +1 -0
- package/dist/module/insurance-state.js +18 -7
- package/dist/module/{justifi-checkout-core.d.ts → justifi-apple-pay.d.ts} +4 -4
- package/dist/module/justifi-apple-pay.js +811 -0
- package/dist/module/justifi-bank-account-form.d.ts +11 -0
- package/dist/module/justifi-bank-account-form.js +6 -0
- package/dist/module/justifi-business-details.js +2 -2
- package/dist/module/justifi-business-form.js +4 -5
- package/dist/module/justifi-button.d.ts +11 -0
- package/dist/module/justifi-button.js +6 -0
- package/dist/module/justifi-button2.js +41 -0
- package/dist/module/justifi-card-form.d.ts +11 -0
- package/dist/module/justifi-card-form.js +6 -0
- package/dist/module/justifi-checkout-summary.d.ts +11 -0
- package/dist/module/justifi-checkout-summary.js +6 -0
- package/dist/module/justifi-checkout.js +147 -139
- package/dist/module/justifi-checkouts-list-filters.js +4 -5
- package/dist/module/justifi-checkouts-list.js +5 -6
- package/dist/module/justifi-dispute-management.js +3 -4
- package/dist/module/justifi-gross-payment-chart.js +2 -4
- package/dist/module/justifi-header.d.ts +11 -0
- package/dist/module/justifi-header.js +6 -0
- package/dist/module/justifi-header2.js +43 -0
- package/dist/module/justifi-modular-checkout.d.ts +11 -0
- package/dist/module/justifi-modular-checkout.js +6 -0
- package/dist/module/justifi-order-terminals.js +7 -7
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-provisioning.js +3 -5
- package/dist/module/justifi-payment-transactions-list.js +7 -7
- package/dist/module/justifi-payments-list-filters.js +4 -3
- package/dist/module/justifi-payments-list.js +5 -6
- package/dist/module/justifi-payout-details.js +3 -5
- package/dist/module/justifi-payout-transactions-list.js +7 -7
- package/dist/module/justifi-payouts-list-filters.js +4 -3
- package/dist/module/justifi-payouts-list.js +5 -6
- package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
- package/dist/module/justifi-plaid-payment-method.js +6 -0
- package/dist/module/justifi-radio-list-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 +3 -4
- package/dist/module/justifi-saved-payment-method.js +57 -1
- package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
- package/dist/module/justifi-saved-payment-methods.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +124 -24
- package/dist/module/justifi-skeleton.d.ts +11 -0
- package/dist/module/justifi-skeleton.js +39 -0
- package/dist/module/justifi-terminal-orders-list-filters.js +5 -6
- package/dist/module/justifi-terminal-orders-list.js +5 -6
- package/dist/module/justifi-terminals-list-filters.js +4 -5
- package/dist/module/justifi-terminals-list.js +5 -6
- package/dist/module/justifi-tokenize-payment-method.js +1 -219
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/modular-checkout.js +406 -0
- 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 +3 -3
- 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 +15 -0
- package/dist/module/payment-method-option.d.ts +11 -0
- package/dist/module/payment-method-option.js +54 -0
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +3 -2
- 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 +1 -3
- package/dist/module/payments-list-core2.js +6 -6
- package/dist/module/payout-details-core2.js +5 -4
- package/dist/module/payout.service.js +1 -3
- package/dist/module/payouts-list-core2.js +6 -6
- package/dist/module/plaid-payment-method.js +687 -0
- package/dist/module/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/save-new-payment-method.js +13 -6
- package/dist/module/saved-payment-methods.js +75 -0
- package/dist/module/sezzle-payment-method.js +34 -35
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/spinner.js +1 -1
- package/dist/module/summary.js +35 -0
- 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 -6
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminal.service.js +1 -3
- package/dist/module/terminals-list-core2.js +6 -6
- package/dist/module/tokenize-payment-method.js +410 -0
- package/dist/module/utils2.js +3 -1660
- package/dist/module/utils4.js +1 -1
- package/dist/types/api/ApplePay.d.ts +196 -0
- package/dist/types/api/BillingInformation.d.ts +13 -0
- package/dist/types/api/Checkout.d.ts +23 -26
- package/dist/types/api/ComponentError.d.ts +10 -1
- package/dist/types/api/Payment.d.ts +4 -3
- package/dist/types/api/PaymentMethod.d.ts +21 -0
- package/dist/types/api/services/apple-pay.service.d.ts +55 -0
- package/dist/types/api/services/plaid.service.d.ts +12 -0
- package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
- package/dist/types/components/checkout/checkout.d.ts +26 -11
- 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/insurance/season-interruption/season-interruption-insurance.d.ts +9 -3
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +31 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +43 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +39 -0
- package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/bank-account-billing-form-simple.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +18 -0
- package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/billing-form-full.d.ts +1 -2
- package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/card-billing-form-simple.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +20 -0
- package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +8 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +80 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +7 -0
- package/dist/types/components/{checkout → modular-checkout/sub-components}/sezzle-payment-method.d.ts +4 -10
- package/dist/types/components/modular-checkout/sub-components/summary.d.ts +3 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +45 -17
- package/dist/types/components.d.ts +468 -223
- package/dist/types/index.d.ts +2 -0
- package/dist/types/store/checkout.store.d.ts +38 -0
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
- package/dist/types/ui-components/index.d.ts +1 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +13 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +12 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +10 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/p-0803d130.entry.js +1 -0
- package/dist/webcomponents/{p-BtyEAd0R.js → p-0Om7jLBs.js} +1 -1
- package/dist/webcomponents/p-117b7f47.entry.js +1 -0
- package/dist/webcomponents/p-17093105.entry.js +1 -0
- package/dist/webcomponents/p-1a08b47f.entry.js +1 -0
- package/dist/webcomponents/p-1bcb3852.entry.js +1 -0
- package/dist/webcomponents/p-1eb2b847.entry.js +1 -0
- package/dist/webcomponents/p-2f7aa249.entry.js +1 -0
- package/dist/webcomponents/{p-7a0661a2.entry.js → p-2fa34c82.entry.js} +4 -4
- package/dist/webcomponents/p-33311d41.entry.js +1 -0
- package/dist/webcomponents/p-336c31b3.entry.js +1 -0
- package/dist/webcomponents/p-3f33c940.entry.js +1 -0
- package/dist/webcomponents/p-442f86e8.entry.js +1 -0
- package/dist/webcomponents/{p-80b6c011.entry.js → p-44450a94.entry.js} +1 -1
- package/dist/webcomponents/p-464e7a8e.entry.js +1 -0
- package/dist/webcomponents/p-50392803.entry.js +1 -0
- package/dist/webcomponents/p-52cbd667.entry.js +1 -0
- package/dist/webcomponents/{p-d43a4316.entry.js → p-54ca3070.entry.js} +1 -1
- package/dist/webcomponents/{p-BTS3E50C.js → p-5aA7gjr5.js} +1 -1
- package/dist/webcomponents/p-5ad0f438.entry.js +1 -0
- package/dist/webcomponents/p-613421d4.entry.js +1 -0
- package/dist/webcomponents/p-62d12566.entry.js +1 -0
- package/dist/webcomponents/p-65ed60bf.entry.js +1 -0
- package/dist/webcomponents/p-6cf30a24.entry.js +1 -0
- package/dist/webcomponents/{p-bcadc072.entry.js → p-70f51444.entry.js} +1 -1
- package/dist/webcomponents/p-729dbd8f.entry.js +1 -0
- package/dist/webcomponents/p-77948b46.entry.js +1 -0
- package/dist/webcomponents/p-7bcfaff4.entry.js +1 -0
- package/dist/webcomponents/{p-96247d70.entry.js → p-7cf87637.entry.js} +1 -1
- package/dist/webcomponents/p-7dd74e6f.entry.js +1 -0
- package/dist/webcomponents/{p-ck6bcYXe.js → p-7s1gsXM5.js} +1 -1
- package/dist/webcomponents/p-80331983.entry.js +1 -0
- package/dist/webcomponents/p-85f20746.entry.js +1 -0
- package/dist/webcomponents/p-8687e5d6.entry.js +1 -0
- package/dist/webcomponents/p-89ecd650.entry.js +1 -0
- package/dist/webcomponents/p-8a6718b6.entry.js +1 -0
- package/dist/webcomponents/p-8d6b81ba.entry.js +1 -0
- package/dist/webcomponents/p-8d743490.entry.js +1 -0
- package/dist/webcomponents/p-8f7396b1.entry.js +1 -0
- package/dist/webcomponents/p-8ff839a4.entry.js +1 -0
- package/dist/webcomponents/{p-d53c3370.entry.js → p-95cbb655.entry.js} +1 -1
- package/dist/webcomponents/p-98cffba9.entry.js +1 -0
- package/dist/webcomponents/{p-cdd2c7c8.entry.js → p-9a2c044f.entry.js} +1 -1
- package/dist/webcomponents/p-9be67b19.entry.js +1 -0
- package/dist/webcomponents/p-9e8021a1.entry.js +1 -0
- package/dist/webcomponents/p-9fc0ea58.entry.js +1 -0
- package/dist/webcomponents/p-9fc567d8.entry.js +1 -0
- package/dist/webcomponents/p-9fcff84c.entry.js +1 -0
- package/dist/webcomponents/p-B71k50jz.js +1 -0
- package/dist/webcomponents/p-BF4U0yVj.js +1 -0
- package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
- package/dist/webcomponents/p-BHf9IqGw.js +1 -0
- package/dist/webcomponents/p-BSt6p1oq.js +1 -0
- package/dist/webcomponents/{p-BQQ7ifKz.js → p-Bb-6bNcq.js} +1 -1
- package/dist/webcomponents/p-BbZwa5UI.js +1 -0
- package/dist/webcomponents/p-BdKWuCys.js +1 -0
- package/dist/webcomponents/p-BfM6X7lF.js +1 -0
- package/dist/webcomponents/{p-DK0C7j0u.js → p-BjVfIXWC.js} +1 -1
- package/dist/webcomponents/{p-BpWSwi9x.js → p-BsGE9UDv.js} +1 -1
- package/dist/webcomponents/{p-DV1c2IYS.js → p-C5id7s_l.js} +1 -1
- package/dist/webcomponents/{p-dzS7n4Xj.js → p-CAJnQLZF.js} +1 -1
- package/dist/webcomponents/{p-DetWIU1e.js → p-CB0mCq1M.js} +1 -1
- package/dist/webcomponents/p-CaAVuW6B.js +1 -0
- package/dist/webcomponents/p-Cb0FhuyU.js +1 -0
- package/dist/webcomponents/p-CbL73B6U.js +1 -0
- package/dist/webcomponents/p-Cjcsf8ku.js +1 -0
- package/dist/webcomponents/p-CnWtPu8L.js +1 -0
- package/dist/webcomponents/{p-C5RuuShs.js → p-D2muobcE.js} +1 -1
- package/dist/webcomponents/{p-v6yK8Vbe.js → p-DD0Mvpeu.js} +1 -1
- package/dist/webcomponents/{p-B_t2t34m.js → p-DDUmOl3v.js} +1 -1
- package/dist/webcomponents/p-DH8F0bsw.js +1 -0
- package/dist/webcomponents/p-DIDloHpm.js +1 -0
- package/dist/webcomponents/p-DIjoBk44.js +1 -0
- package/dist/webcomponents/p-DK2sRMlx.js +1 -0
- package/dist/webcomponents/{p-qGbNz93o.js → p-DNo0OPOP.js} +1 -1
- package/dist/webcomponents/p-DRXvcLy9.js +1 -0
- package/dist/webcomponents/p-DYGIC0QH.js +1 -0
- package/dist/webcomponents/p-DZYcH7jA.js +1 -0
- package/dist/webcomponents/p-Da3idOSV.js +1 -0
- package/dist/webcomponents/p-Dgflaz6J.js +1 -0
- package/dist/webcomponents/p-ED_TzwCp.js +1 -0
- package/dist/webcomponents/p-HXpYMWUU.js +1 -0
- package/dist/webcomponents/p-JyHlIFWl.js +1 -0
- package/dist/webcomponents/{p-CVGBVdVC.js → p-RvUQ__Pq.js} +1 -1
- package/dist/webcomponents/p-Wh1V0gvF.js +1 -0
- package/dist/webcomponents/p-ZpPDShvP.js +1 -0
- package/dist/webcomponents/p-a55f07af.entry.js +1 -0
- package/dist/webcomponents/p-aa6194ef.entry.js +1 -0
- package/dist/webcomponents/p-ab6a5dc9.entry.js +1 -0
- package/dist/webcomponents/p-af9c4174.entry.js +1 -0
- package/dist/webcomponents/p-b7d2f2eb.entry.js +1 -0
- package/dist/webcomponents/p-bbc4b4cb.entry.js +1 -0
- package/dist/webcomponents/p-c599e526.entry.js +1 -0
- package/dist/webcomponents/p-d62cd269.entry.js +1 -0
- package/dist/webcomponents/p-d9dd7d24.entry.js +1 -0
- package/dist/webcomponents/p-dd7352da.entry.js +1 -0
- package/dist/webcomponents/p-e8a67dc7.entry.js +1 -0
- package/dist/webcomponents/p-eb2d9e5b.entry.js +1 -0
- package/dist/webcomponents/p-eddaca4e.entry.js +1 -0
- package/dist/webcomponents/p-ef32fe0e.entry.js +1 -0
- package/dist/webcomponents/{p-c51651aa.entry.js → p-f1cba43c.entry.js} +1 -1
- package/dist/webcomponents/p-f1f0b405.entry.js +1 -0
- package/dist/webcomponents/p-f499a8de.entry.js +1 -0
- package/dist/webcomponents/p-f4d0cdf0.entry.js +1 -0
- package/dist/webcomponents/p-f680e617.entry.js +1 -0
- package/dist/webcomponents/p-f7c4222f.entry.js +1 -0
- package/dist/webcomponents/p-fa1884b4.entry.js +1 -0
- package/dist/webcomponents/p-z-5r0gWn.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/Checkout-BbhldGDh.js +0 -103
- package/dist/cjs/Payment-D6XuQ4Ve.js +0 -151
- package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -544
- package/dist/cjs/iframe-input-styles-state-DH-5a2Mg.js +0 -26
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -141
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +0 -124
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -80
- package/dist/collection/components/checkout/checkout-core.js +0 -454
- package/dist/collection/components/checkout/new-payment-method.js +0 -378
- package/dist/collection/components/checkout/payment-method-options.js +0 -440
- package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +0 -447
- package/dist/esm/Checkout-CIUkm9aQ.js +0 -101
- package/dist/esm/Payment-DrCqUoz-.js +0 -149
- package/dist/esm/bank-account-form_9.entry.js +0 -534
- package/dist/esm/iframe-input-styles-state-Cqb62KAu.js +0 -23
- package/dist/esm/insurance-state-DRFl0tWj.js +0 -28
- package/dist/esm/justifi-checkout-core.entry.js +0 -139
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +0 -122
- package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -78
- package/dist/module/Checkout.js +0 -121
- package/dist/module/Payment.js +0 -204
- package/dist/module/checkout-core.js +0 -292
- package/dist/module/justifi-checkout-core.js +0 -6
- package/dist/module/justifi-new-payment-method.d.ts +0 -11
- package/dist/module/justifi-new-payment-method.js +0 -6
- package/dist/module/justifi-payment-method-options.d.ts +0 -11
- package/dist/module/justifi-payment-method-options.js +0 -6
- package/dist/module/justifi-season-interruption-insurance-core.d.ts +0 -11
- package/dist/module/justifi-season-interruption-insurance-core.js +0 -6
- package/dist/module/new-payment-method.js +0 -222
- package/dist/module/payment-method-options.js +0 -237
- package/dist/module/saved-payment-method.js +0 -79
- package/dist/module/season-interruption-insurance-core.js +0 -168
- package/dist/types/components/checkout/checkout-core.d.ts +0 -49
- 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/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +0 -32
- package/dist/webcomponents/p-08e1bf28.entry.js +0 -1
- package/dist/webcomponents/p-09cb06ed.entry.js +0 -1
- package/dist/webcomponents/p-0adbbb23.entry.js +0 -1
- package/dist/webcomponents/p-0b067d3c.entry.js +0 -1
- package/dist/webcomponents/p-0bfd309e.entry.js +0 -1
- package/dist/webcomponents/p-0f005fdd.entry.js +0 -1
- package/dist/webcomponents/p-0nMw2Aul.js +0 -1
- package/dist/webcomponents/p-14dc17fd.entry.js +0 -1
- package/dist/webcomponents/p-266f1ff3.entry.js +0 -1
- package/dist/webcomponents/p-35387685.entry.js +0 -1
- package/dist/webcomponents/p-3946adfa.entry.js +0 -1
- package/dist/webcomponents/p-3c44b724.entry.js +0 -1
- package/dist/webcomponents/p-3e3b5cdb.entry.js +0 -1
- package/dist/webcomponents/p-41876098.entry.js +0 -1
- package/dist/webcomponents/p-45edf188.entry.js +0 -1
- package/dist/webcomponents/p-4786f2d0.entry.js +0 -1
- package/dist/webcomponents/p-4c1c55bb.entry.js +0 -1
- package/dist/webcomponents/p-4f358b63.entry.js +0 -1
- package/dist/webcomponents/p-5375df08.entry.js +0 -1
- package/dist/webcomponents/p-575b972d.entry.js +0 -1
- package/dist/webcomponents/p-580aa2e3.entry.js +0 -1
- package/dist/webcomponents/p-5b857a1c.entry.js +0 -1
- package/dist/webcomponents/p-5c9d1c35.entry.js +0 -1
- package/dist/webcomponents/p-690514f2.entry.js +0 -1
- package/dist/webcomponents/p-6a853571.entry.js +0 -1
- package/dist/webcomponents/p-724e4e6c.entry.js +0 -1
- package/dist/webcomponents/p-756a7021.entry.js +0 -1
- package/dist/webcomponents/p-89431ee2.entry.js +0 -1
- package/dist/webcomponents/p-8f5c1ae6.entry.js +0 -1
- package/dist/webcomponents/p-989d56de.entry.js +0 -1
- package/dist/webcomponents/p-99f7a36d.entry.js +0 -1
- package/dist/webcomponents/p-BCgpQGhw.js +0 -1
- package/dist/webcomponents/p-BOCuVjGs.js +0 -1
- package/dist/webcomponents/p-BUSn_ReW.js +0 -1
- package/dist/webcomponents/p-BZtgbC0H.js +0 -1
- package/dist/webcomponents/p-Bs-84XY6.js +0 -1
- package/dist/webcomponents/p-BvXjypQm.js +0 -1
- package/dist/webcomponents/p-C-wMveZe.js +0 -1
- package/dist/webcomponents/p-CCl9g-ln.js +0 -1
- package/dist/webcomponents/p-CDPZXQAo.js +0 -1
- package/dist/webcomponents/p-CKEiU2Q5.js +0 -1
- package/dist/webcomponents/p-CS4_rnSp.js +0 -1
- package/dist/webcomponents/p-CnMP2-Xk.js +0 -1
- package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
- package/dist/webcomponents/p-CxHdQoIo.js +0 -1
- package/dist/webcomponents/p-DFWnHEN2.js +0 -1
- package/dist/webcomponents/p-DKSNNnPC.js +0 -1
- package/dist/webcomponents/p-DjFzWJxk.js +0 -1
- package/dist/webcomponents/p-DnGswpsl.js +0 -1
- package/dist/webcomponents/p-DniQ6yo6.js +0 -1
- package/dist/webcomponents/p-DsLxs70Z.js +0 -1
- package/dist/webcomponents/p-DtdcFDM_.js +0 -1
- package/dist/webcomponents/p-DwF36W04.js +0 -1
- package/dist/webcomponents/p-L4y68wud.js +0 -1
- package/dist/webcomponents/p-SdntD1xf.js +0 -1
- package/dist/webcomponents/p-a09ca567.entry.js +0 -1
- package/dist/webcomponents/p-a3313ebe.entry.js +0 -1
- package/dist/webcomponents/p-aeaafe28.entry.js +0 -1
- package/dist/webcomponents/p-b25bbf0a.entry.js +0 -1
- package/dist/webcomponents/p-b7594923.entry.js +0 -1
- package/dist/webcomponents/p-b79e302a.entry.js +0 -1
- package/dist/webcomponents/p-ba268a78.entry.js +0 -1
- package/dist/webcomponents/p-ba68ea4f.entry.js +0 -1
- package/dist/webcomponents/p-bf0e00be.entry.js +0 -1
- package/dist/webcomponents/p-c15d8dd0.entry.js +0 -1
- package/dist/webcomponents/p-c28f2569.entry.js +0 -1
- package/dist/webcomponents/p-c5911cd9.entry.js +0 -1
- package/dist/webcomponents/p-cefb9a76.entry.js +0 -1
- package/dist/webcomponents/p-d2ae3c55.entry.js +0 -1
- package/dist/webcomponents/p-d2e1d179.entry.js +0 -1
- package/dist/webcomponents/p-d4d58793.entry.js +0 -1
- package/dist/webcomponents/p-dc6b707a.entry.js +0 -1
- package/dist/webcomponents/p-dfd9aff0.entry.js +0 -1
- package/dist/webcomponents/p-e4682bb6.entry.js +0 -1
- package/dist/webcomponents/p-ee566062.entry.js +0 -1
- package/dist/webcomponents/p-ef07d761.entry.js +0 -1
- package/dist/webcomponents/p-f24b04eb.entry.js +0 -1
- package/dist/webcomponents/p-f8e974af.entry.js +0 -1
- package/dist/webcomponents/p-fb60bc7a.entry.js +0 -1
- package/dist/webcomponents/p-znmwKCgq.js +0 -1
package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// Mock the store before importing the component
|
|
2
|
+
const mockCheckoutStore = {
|
|
3
|
+
selectedPaymentMethod: '',
|
|
4
|
+
authToken: 'test-token',
|
|
5
|
+
accountId: 'test-account',
|
|
6
|
+
checkoutId: 'test-checkout',
|
|
7
|
+
paymentToken: undefined,
|
|
8
|
+
paymentMethodGroupId: undefined,
|
|
9
|
+
savePaymentMethod: false,
|
|
10
|
+
};
|
|
11
|
+
jest.mock('../../../store/checkout.store', () => ({
|
|
12
|
+
checkoutStore: mockCheckoutStore,
|
|
13
|
+
onChange: jest.fn().mockReturnValue(jest.fn()),
|
|
14
|
+
}));
|
|
15
|
+
// Mock SVG imports
|
|
16
|
+
jest.mock('../../../assets/plaid-icon.svg', () => 'mocked-svg-path');
|
|
17
|
+
// Mock the PlaidService
|
|
18
|
+
// Provide a concrete mock for PlaidService with expected method signatures
|
|
19
|
+
jest.mock('../../../api/services/plaid.service', () => {
|
|
20
|
+
return {
|
|
21
|
+
PlaidService: jest.fn().mockImplementation(() => ({
|
|
22
|
+
getLinkToken: jest.fn().mockResolvedValue({
|
|
23
|
+
id: 'plt_123',
|
|
24
|
+
type: 'link_token',
|
|
25
|
+
data: { link_token: 'link-sandbox-abc', id: 'plt_123' },
|
|
26
|
+
}),
|
|
27
|
+
tokenizeBankAccount: jest.fn().mockResolvedValue({
|
|
28
|
+
id: 'pm_123',
|
|
29
|
+
type: 'payment_method',
|
|
30
|
+
data: { bank_account: { token: 'tok_pm_456' } },
|
|
31
|
+
}),
|
|
32
|
+
})),
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
36
|
+
import { PlaidPaymentMethod } from "./plaid-payment-method";
|
|
37
|
+
import { PaymentMethodTypes } from "../../../api";
|
|
38
|
+
describe('PlaidPaymentMethod', () => {
|
|
39
|
+
let component;
|
|
40
|
+
let page;
|
|
41
|
+
beforeEach(async () => {
|
|
42
|
+
// Reset store state
|
|
43
|
+
mockCheckoutStore.selectedPaymentMethod = '';
|
|
44
|
+
mockCheckoutStore.authToken = 'test-token';
|
|
45
|
+
mockCheckoutStore.accountId = 'test-account';
|
|
46
|
+
mockCheckoutStore.checkoutId = 'test-checkout';
|
|
47
|
+
// Mock Plaid global
|
|
48
|
+
global.Plaid = {
|
|
49
|
+
create: jest.fn().mockReturnValue({
|
|
50
|
+
open: jest.fn(),
|
|
51
|
+
}),
|
|
52
|
+
};
|
|
53
|
+
page = await newSpecPage({
|
|
54
|
+
components: [PlaidPaymentMethod],
|
|
55
|
+
html: '<justifi-plaid-payment-method></justifi-plaid-payment-method>',
|
|
56
|
+
});
|
|
57
|
+
component = page.rootInstance;
|
|
58
|
+
});
|
|
59
|
+
afterEach(() => {
|
|
60
|
+
jest.clearAllMocks();
|
|
61
|
+
});
|
|
62
|
+
describe('Basic Functionality', () => {
|
|
63
|
+
it('should render without crashing', async () => {
|
|
64
|
+
// Wait for component to render
|
|
65
|
+
await page.waitForChanges();
|
|
66
|
+
// Basic check that component exists
|
|
67
|
+
expect(component).toBeTruthy();
|
|
68
|
+
expect(page.root).toBeTruthy();
|
|
69
|
+
});
|
|
70
|
+
it('should initialize with correct default state', () => {
|
|
71
|
+
expect(component.isSelected).toBe(false);
|
|
72
|
+
expect(component.publicToken).toBeNull();
|
|
73
|
+
expect(component.error).toBeNull();
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
describe('Store Integration', () => {
|
|
77
|
+
it('should initialize selection state from store', () => {
|
|
78
|
+
// Set store value before creating component
|
|
79
|
+
mockCheckoutStore.selectedPaymentMethod = { type: PaymentMethodTypes.plaid };
|
|
80
|
+
// Recreate component to test initialization
|
|
81
|
+
return newSpecPage({
|
|
82
|
+
components: [PlaidPaymentMethod],
|
|
83
|
+
html: '<justifi-plaid-payment-method></justifi-plaid-payment-method>',
|
|
84
|
+
}).then(page => {
|
|
85
|
+
const component = page.rootInstance;
|
|
86
|
+
expect(component.isSelected).toBe(true); // Component should initialize with selection state from store
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
describe('Component Methods', () => {
|
|
91
|
+
it('should provide isCurrentlySelected method', async () => {
|
|
92
|
+
component.isSelected = true;
|
|
93
|
+
const result = await component.isCurrentlySelected();
|
|
94
|
+
expect(result).toBe(true);
|
|
95
|
+
});
|
|
96
|
+
it('should provide reset method', async () => {
|
|
97
|
+
component.publicToken = 'test-token';
|
|
98
|
+
component.error = {
|
|
99
|
+
code: 'plaid-sdk-load-failed',
|
|
100
|
+
message: 'test-error',
|
|
101
|
+
severity: 'error',
|
|
102
|
+
retryable: true
|
|
103
|
+
};
|
|
104
|
+
await component.reset();
|
|
105
|
+
expect(component.publicToken).toBeNull();
|
|
106
|
+
expect(component.error).toBeNull();
|
|
107
|
+
expect(component.isAuthenticating).toBe(false);
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
describe('Plaid exchange flow', () => {
|
|
111
|
+
it('exchanges public token and saves payment token to store', async () => {
|
|
112
|
+
// Arrange
|
|
113
|
+
mockCheckoutStore.selectedPaymentMethod = 'plaid';
|
|
114
|
+
const instance = page.rootInstance;
|
|
115
|
+
// Act: simulate Plaid success
|
|
116
|
+
instance.handlePlaidSuccess('public-sandbox-xyz', {});
|
|
117
|
+
await page.waitForChanges();
|
|
118
|
+
// Allow any async exchange to complete
|
|
119
|
+
await new Promise((r) => setTimeout(r, 0));
|
|
120
|
+
// Assert
|
|
121
|
+
expect(mockCheckoutStore.paymentToken).toBe('tok_pm_456');
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { StyledHost } from "../../../ui-components";
|
|
3
|
+
import { checkoutStore } from "../../../store/checkout.store";
|
|
4
|
+
import { radioListItem } from "../../../styles/parts";
|
|
5
|
+
import { CardBrandLabels } from "../../checkout/payment-method-option-utils";
|
|
6
|
+
import { PAYMENT_METHOD_TYPES } from "../ModularCheckout";
|
|
7
|
+
export class SavedPaymentMethods {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.onPaymentMethodOptionClick = (paymentMethod) => (e) => {
|
|
10
|
+
e.preventDefault();
|
|
11
|
+
checkoutStore.selectedPaymentMethod = paymentMethod;
|
|
12
|
+
checkoutStore.paymentToken = paymentMethod.id;
|
|
13
|
+
};
|
|
14
|
+
this.isAllowedPaymentMethod = (paymentMethod) => {
|
|
15
|
+
if (paymentMethod.type === PAYMENT_METHOD_TYPES.CARD && checkoutStore.disableCreditCard) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
if (paymentMethod.type === PAYMENT_METHOD_TYPES.BANK_ACCOUNT && checkoutStore.disableBankAccount) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
return true;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
componentWillLoad() {
|
|
25
|
+
if (!checkoutStore.paymentMethods.length) {
|
|
26
|
+
console.warn('No saved payment methods available.');
|
|
27
|
+
}
|
|
28
|
+
if (checkoutStore.disablePaymentMethodGroup) {
|
|
29
|
+
console.warn('Payment method group is disabled.');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
if (checkoutStore.disablePaymentMethodGroup) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return (h(StyledHost, null, h("div", { class: "saved-payment-methods" }, checkoutStore.paymentMethods.length ? checkoutStore.paymentMethods
|
|
37
|
+
.filter(this.isAllowedPaymentMethod)
|
|
38
|
+
.map((paymentMethod) => (h("div", { class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick(paymentMethod) }, h("form-control-radio", { name: "paymentMethodType", value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id, checked: checkoutStore.paymentToken === (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id), label: `${CardBrandLabels[paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.brand] || ''} *${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.acct_last_four}` })))) : null)));
|
|
39
|
+
}
|
|
40
|
+
static get is() { return "justifi-saved-payment-methods"; }
|
|
41
|
+
static get encapsulation() { return "shadow"; }
|
|
42
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { formatCurrency } from "../../../utils/utils";
|
|
3
|
+
import { checkoutStore } from "../../../store/checkout.store";
|
|
4
|
+
import { StyledHost } from "../../../ui-components";
|
|
5
|
+
import { PAYMENT_METHODS } from "../ModularCheckout";
|
|
6
|
+
import { PaymentMethodTypes } from "../../../api";
|
|
7
|
+
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
8
|
+
display: 'inline',
|
|
9
|
+
width: '80px',
|
|
10
|
+
marginLeft: '5px',
|
|
11
|
+
marginTop: '-5px',
|
|
12
|
+
} }));
|
|
13
|
+
export class SezzlePaymentMethod {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.paymentMethodOptionId = PAYMENT_METHODS.SEZZLE;
|
|
16
|
+
this.initializeSezzleCheckout = () => {
|
|
17
|
+
let resolveSezzlePromise;
|
|
18
|
+
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
19
|
+
const amount = Number(checkoutStore.paymentAmount);
|
|
20
|
+
const Checkout = window.Checkout;
|
|
21
|
+
const checkout = new Checkout({
|
|
22
|
+
mode: 'popup',
|
|
23
|
+
publicKey: checkoutStore.bnplProviderClientId,
|
|
24
|
+
apiMode: checkoutStore.bnplProviderMode,
|
|
25
|
+
apiVersion: checkoutStore.bnplProviderApiVersion,
|
|
26
|
+
});
|
|
27
|
+
checkout.sezzleButtonElement = this.sezzleButtonRef;
|
|
28
|
+
checkout.init({
|
|
29
|
+
onClick: function (event) {
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
checkout.startCheckout({
|
|
32
|
+
checkout_url: checkoutStore.bnplProviderCheckoutUrl,
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
36
|
+
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
37
|
+
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
38
|
+
});
|
|
39
|
+
this.sezzleCheckout = checkout;
|
|
40
|
+
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
componentDidRender() {
|
|
44
|
+
if (!this.scriptRef)
|
|
45
|
+
return;
|
|
46
|
+
this.scriptRef.onload = () => {
|
|
47
|
+
this.sezzleButtonRef = document.createElement('button');
|
|
48
|
+
this.initializeSezzleCheckout();
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
52
|
+
if (!insuranceValidation.isValid) {
|
|
53
|
+
return { validationError: true };
|
|
54
|
+
}
|
|
55
|
+
this.sezzleButtonRef.click();
|
|
56
|
+
return this.sezzlePromise;
|
|
57
|
+
}
|
|
58
|
+
async handleSelectionClick() {
|
|
59
|
+
checkoutStore.selectedPaymentMethod = { type: PaymentMethodTypes.sezzle };
|
|
60
|
+
this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId);
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
if (!checkoutStore.bnplEnabled || checkoutStore.disableBnpl) {
|
|
65
|
+
console.warn('justifi-sezzle-payment-method: BNPL is not enabled for this account.');
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return (h(StyledHost, { class: "payment-method" }, h("script", { src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", null, h("span", null, (_a = this.installmentPlan) === null || _a === void 0 ? void 0 : _a.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments[0].amountInCents)))))));
|
|
69
|
+
}
|
|
70
|
+
static get is() { return "justifi-sezzle-payment-method"; }
|
|
71
|
+
static get encapsulation() { return "shadow"; }
|
|
72
|
+
static get states() {
|
|
73
|
+
return {
|
|
74
|
+
"installmentPlan": {},
|
|
75
|
+
"sezzleCheckout": {},
|
|
76
|
+
"sezzlePromise": {}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static get events() {
|
|
80
|
+
return [{
|
|
81
|
+
"method": "paymentMethodOptionSelected",
|
|
82
|
+
"name": "paymentMethodOptionSelected",
|
|
83
|
+
"bubbles": true,
|
|
84
|
+
"cancelable": true,
|
|
85
|
+
"composed": true,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "any",
|
|
92
|
+
"resolved": "any",
|
|
93
|
+
"references": {}
|
|
94
|
+
}
|
|
95
|
+
}];
|
|
96
|
+
}
|
|
97
|
+
static get methods() {
|
|
98
|
+
return {
|
|
99
|
+
"resolvePaymentMethod": {
|
|
100
|
+
"complexType": {
|
|
101
|
+
"signature": "(insuranceValidation: any) => Promise<PaymentMethodPayload>",
|
|
102
|
+
"parameters": [{
|
|
103
|
+
"name": "insuranceValidation",
|
|
104
|
+
"type": "any",
|
|
105
|
+
"docs": ""
|
|
106
|
+
}],
|
|
107
|
+
"references": {
|
|
108
|
+
"Promise": {
|
|
109
|
+
"location": "global",
|
|
110
|
+
"id": "global::Promise"
|
|
111
|
+
},
|
|
112
|
+
"PaymentMethodPayload": {
|
|
113
|
+
"location": "import",
|
|
114
|
+
"path": "../../checkout/payment-method-payload",
|
|
115
|
+
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"return": "Promise<PaymentMethodPayload>"
|
|
119
|
+
},
|
|
120
|
+
"docs": {
|
|
121
|
+
"text": "",
|
|
122
|
+
"tags": []
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"handleSelectionClick": {
|
|
126
|
+
"complexType": {
|
|
127
|
+
"signature": "() => Promise<void>",
|
|
128
|
+
"parameters": [],
|
|
129
|
+
"references": {
|
|
130
|
+
"Promise": {
|
|
131
|
+
"location": "global",
|
|
132
|
+
"id": "global::Promise"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"return": "Promise<void>"
|
|
136
|
+
},
|
|
137
|
+
"docs": {
|
|
138
|
+
"text": "",
|
|
139
|
+
"tags": []
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { text } from "../../../styles/parts";
|
|
3
|
+
import { formatCurrency } from "../../../utils/utils";
|
|
4
|
+
import { checkoutStore } from "../../../store/checkout.store";
|
|
5
|
+
import { StyledHost } from "../../../ui-components";
|
|
6
|
+
export class Summary {
|
|
7
|
+
render() {
|
|
8
|
+
return (h(StyledHost, { key: 'fccb819d66329424af42e9c53effec29a6c9784d' }, h("section", { key: '0ee7a4e0579f7f222a9db82e6b4db6bb92542d9e' }, h("div", { key: 'bdf74b2bc5db35b96ca75d50783b790bb482a76e' }, h("div", { key: '851b481bd6beb1fcaadc106d27d131f8b07d1c9a', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: '0b261bc0e2d65cf989778e02df51b3265816f7aa' }, h("span", { key: '0eee0017ddf25ae45d6b5c828071098f45e6e19d', part: text }, "Total"), "\u00A0", h("span", { key: 'd21576f14c3437f70a4b85b9dfc01107392d663a', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "justifi-checkout-summary"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
}
|
|
@@ -126,7 +126,7 @@ export class OrderTerminals {
|
|
|
126
126
|
return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
|
|
127
127
|
}
|
|
128
128
|
render() {
|
|
129
|
-
return (h(StyledHost, { key: '
|
|
129
|
+
return (h(StyledHost, { key: '5171ddb7b807bf4084f0f831002803a4ece698f3' }, h("div", { key: '529adf4549be8b2723fca357be3f541403dfc8a3', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
130
130
|
}
|
|
131
131
|
static get is() { return "justifi-order-terminals"; }
|
|
132
132
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class TerminalQuantitySelector {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: 'de2e01cebd222ad371a15df4aade26d3e118ddee', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '8e69419c2b7cd0917dd27d42edef08e2d06d79fb', class: "d-flex gap-3" }, h("div", { key: 'c9f83f6f3857e3ec38134194e8ce9d5e9c614992', class: "d-flex align-items-center" }, h("img", { key: '576be452c664824354355b8ed02777dd63d2cddb', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '0c978b052b05d5b6384a0a13411b339c0522dfd3', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: '40c72c35a8a8418c4d873dbbd6f4ca089142bc14', class: "row" }, h("div", { key: '5fd4f0be8b88e49ad6f332b39d8bf5061ed7ebc3', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '5d30721f60481bb7994578aefbe2b58055134044', helpText: this.description })), h("div", { key: 'e78454dc8e9fc81f65d01bafc4877d254db08508', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: 'e2f601209f58ce5b87aa546888da3077e1dc3aed', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: '32f9805571ec676ebfcf664029579d50e5e500ca', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: 'c7ac123ecc6fcaa06a0beaa5f36ed842beba928c', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "terminal-quantity-selector"; }
|
|
24
24
|
static get properties() {
|
|
@@ -38,16 +38,16 @@ export class PaymentDetailsCore {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(StyledHost, { key: '
|
|
42
|
-
this.payment && (h("justifi-details", { key: '
|
|
43
|
-
h(DetailSectionTitle, { key: '
|
|
44
|
-
h("div", { key: '
|
|
41
|
+
return (h(StyledHost, { key: '5bb9e4baea06de90dba2e9469f14c52b68e65249' }, this.loading && h(PaymentDetailsLoading, { key: '5cbc91375b6d80958e66fad56e1e6d7ab2e15b76' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
42
|
+
this.payment && (h("justifi-details", { key: '7eedb26bfa0fb1cf1656c8bbade79c8cdbdf9764', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'e7912d448ac140a8164ad7c285ab95ed779d61e4', slot: "head-info", badge: (h("div", { class: "d-flex gap-1" }, MapPaymentStatusToBadge(this.payment.status), this.payment.expedited ? (h(Badge, { variant: BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : null)), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '1cd9d26abe03b8994c84b6b1d9c06fc75c4705e8', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '4330bf0ddd130a2103ae00abb4ac787a2968e1b1', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: 'e5336b00ebc442a3d52e74e4f1f75442c06edcf9', title: "ID", value: this.payment.id })), h("div", { key: '0e07bc37f9fbb547c479167ee9e5991a59aeb54f', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '6d30461904ce2576bf3af983a6aa856c2b4fb52d', sectionTitle: "Details" }), h("div", { key: '6a1d68cfa2c03dc496768f7d29867c77aff39856', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '2669711d00298e9a84582149f423bcbeabb60de2', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '3a93e845f845d0fd17409e3e44c096f3bb7563dc', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '4be864f58f7ab22e0e5079dc924d8bd02f3b7dd8', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '14956ec82cf01fdec85e76170aeade66273d6a1d', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: '06cd1d7930f6c428be0c736e918147c7aa94cd80', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '98e27c002566c3e9a093ab743951bf56501fd2a2', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '54ab8e011a08814fe3d970f0ab7a93d558b68e22', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'f9875ea8913f6d46adac4175de6dfc284cedba4f', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: 'ccd5a4a44663cf14b76141e91c69d799055f83e2', title: "Description", value: this.payment.description }), h(DetailItem, { key: '4136e5f730f569bcb63e87cea1022d996596f2a0', title: "Expedited", value: this.payment.expedited ? 'Yes' : 'No' })), this.payment.payment_method.card && [
|
|
43
|
+
h(DetailSectionTitle, { key: '3a7ef3be13a9a8d8573eb5766d8d4b120baca19d', sectionTitle: "Payment Method" }),
|
|
44
|
+
h("div", { key: '695558eded8ee2cff291bed4a13d02482b619565', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '1c678964543ced0c4f1a5835fea8234322f732ae', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: '5b1c9dfda2f8b499e6d0c9fae288e58a771d63d7', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '0aecf598551b5685a36dafb8cf54802cd3914482', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'd59d46bef4cecf2a1dcb73c9af696e6aabf5776b', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '56588cdf9c1535cf8aa22dd56a94608805f241aa', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
45
45
|
], this.payment.payment_method.bank_account && [
|
|
46
|
-
h(DetailSectionTitle, { key: '
|
|
47
|
-
h("div", { key: '
|
|
46
|
+
h(DetailSectionTitle, { key: '84f146ebe0e237768df2fd8e16c2295bdb86a49a', sectionTitle: "Payment Method" }),
|
|
47
|
+
h("div", { key: '440b505ff883eadf73ecd3ca542d0feeadb8e8a8', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '2f57116a3c0a9522a18866d88e18d5856fa53b2a', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: 'c0a7c01e8c4eeece3771d29938268fd324e647c6', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '2968ea77dbc987591dd2418d544c4f21027694d6', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '38f7129625d8d6a16818dc07343eda9ba31dd19c', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
48
48
|
], this.payment.metadata && [
|
|
49
|
-
h(DetailSectionTitle, { key: '
|
|
50
|
-
h("div", { key: '
|
|
49
|
+
h(DetailSectionTitle, { key: 'bf0d94665bae468091534cc74219ee786b8b87f6', sectionTitle: 'Metadata' }),
|
|
50
|
+
h("div", { key: 'f92f3a4f1f2c6fa6ae6cbc32c0868f22d68b9326', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '21937177748b5322178ae75db147cc3185db78ca', metadata: this.payment.metadata }))
|
|
51
51
|
])))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "payment-details-core"; }
|
|
@@ -91,7 +91,7 @@ export class PaymentTransactionsList {
|
|
|
91
91
|
return !this.showEmptyState && !this.showErrorState && !this.isLoading;
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return (h(StyledHost, { key: '
|
|
94
|
+
return (h(StyledHost, { key: '0ea0cd7e150028fa7dd07bc8d3a9900ba2de5728' }, h(TableWrapper, { key: 'cf8085e6989e1fb05c2b606a6d56c4af5ba33d33' }, h(TableComponent, { key: '2aeae7b80720b715e33b4decc824b08c95642951' }, h(TableHead, { key: '463a4486652002ec647d90d23eeba7251eccda98' }, h(TableHeadRow, { key: '8c2906ce4c1f53d196ac6134ad363332c4e831fb' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: 'bf1a2336f715ef317ee41f7b1de44b4256ac5f48' }, h(TableLoadingState, { key: '7bf57b2056d7e8a912d1e173d01b6007cc648441', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: '3a578832c5c3c05fbcebad508e3922c180ee33cf', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '9cdff1699621d8e02d90ca7544a3e95340c6598e', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '9c5baf6c5bbba0c19f287fd2eddd7b06490f51df' }, h(TableFootRow, { key: '95460f894d3f6a9d20422aef2c9172cdc230e079' }, h(TableFootCell, { key: '33fa015f7a7a968c6697302616359991f5ae16cf', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: 'e1821a1b7658b503e11ff799413fa5ea368a7ae7', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "justifi-payment-transactions-list"; }
|
|
97
97
|
static get encapsulation() { return "shadow"; }
|
|
@@ -83,7 +83,7 @@ export class PaymentsListCore {
|
|
|
83
83
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (h(TableWrapper, { key: '
|
|
86
|
+
return (h(TableWrapper, { key: 'f9fe216ea30123f3a7613b74371492fdefc1f4bc' }, h(TableComponent, { key: 'b081beffb783c9e351092947864649518fbe2dfc' }, h(TableHead, { key: 'e2e47a2122561e93163bf4d3794fe6b139a30ee9' }, h(TableHeadRow, { key: '0bb6d21213e5ab335c14057e69ecca70b0381578' }, this.paymentsTable.columnData.map((column) => column))), h(TableBody, { key: '9e411aaa4fb387fe4ee3d129f05e23438313ab65' }, h(TableLoadingState, { key: '42659fe4d9f41bff6165fc5016d6dc441e3d294a', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'b5fb94bf87bae350b48fc6969acb3477eeeb2b1d', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: '220b648eabf17bfd7006b23399fc38f17e5b6952', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '1b77f14df195e1867f6ba037757350cc7b4fab96' }, h(TableFootRow, { key: '9baa94de37beec7a33fff9c9bbb83bdf2ad8fc16' }, h(TableFootCell, { key: '08a3c1d8ba7017f6bc6c60b4b33c319f59654731', colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: 'a3518ce532a7539c092dda6cae4bc318147d92ed', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
87
87
|
}
|
|
88
88
|
static get is() { return "payments-list-core"; }
|
|
89
89
|
static get properties() {
|
|
@@ -43,8 +43,8 @@ export class PaymentsListFilters {
|
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
46
|
-
return (h(StyledHost, { key: '
|
|
47
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '
|
|
46
|
+
return (h(StyledHost, { key: 'cc126b534ca4b07c39837310f08a7dbbf12d793c' }, h("table-filters-menu", { key: '5417f231746c0dace09e623629c0b40b0e680714', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: '50cd8592d22b12788c31dfc744a39fcec7a32a0f', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'dd64e601b8881bb940dabfd05a5b6fa5fabc75fd', class: "p-2" }, h("form-control-text", { key: '172c56e0eb8c4d13ff30ff1f2266a30ab8d59e25', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '70db55cf54206ab03112ff88757248deb3507084', class: "p-2" }, h("form-control-text", { key: 'c7e94136b6285d8d22f2170d26c166227451e914', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: 'f282e92c253370922ec06ae0ed9ef55d5515f55c', class: "p-2" }, h("form-control-select", { key: '7c35feaac9958fb44586e757ef708d2230c6a31c', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: 'e74d305502ed5676d7ba6c332011f3aac2c757f4', class: "p-2" }, h("form-control-date", { key: '96a88abb0be10f2bd5c8c96beefbbd143a9c8a61', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
47
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '4c3e79b77675ba2cf7d5bc7746193ceabdc88aee', class: "p-2" }, h("form-control-date", { key: '275a24fbd7a806786182dda5d8f0eed1ad85528e', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
48
48
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "justifi-payments-list-filters"; }
|
|
@@ -46,7 +46,7 @@ export class PaymentsList {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(StyledHost, { key: '
|
|
49
|
+
return (h(StyledHost, { key: 'bd9d7950a22c554394e46bf09f48ced038fd5c44' }, h("payments-list-core", { key: '52a88a0a20484d863ac1a61ede8f657c35454f91', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "justifi-payments-list"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,9 +52,9 @@ export class PayoutDetailsCore {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a;
|
|
55
|
-
return (h(StyledHost, { key: '
|
|
56
|
-
h(DetailSectionTitle, { key: '
|
|
57
|
-
h("div", { key: '
|
|
55
|
+
return (h(StyledHost, { key: 'f8f7a846e1c82a2d90231060286e8d2a906e1988' }, this.loading && h(PayoutDetailsLoading, { key: 'd626ef6861f8eba2235c0405e2229c75dc7972c6' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '209795b172c2a5250726f56a767f8c1dc6e8723f', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'ab602bc00824f5364eb38366f5a11b7a9284eaad', slot: "head-info", badge: (h("div", { class: "d-flex gap-1" }, MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), this.payout.settlement_priority === 'expedited' ? (h(Badge, { variant: BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : (h(Badge, { variant: BadgeVariant.SECONDARY, title: "Standard", text: "Standard" })))), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: '294f615d3eefd108719bd1c292b551cdf7c67b83', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: 'eff8af7b09d32e5c61fe764de075f67857381600', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: 'd1a5d5c36fd9a7a3e4a959d890b157e224e24277', title: "ID", value: this.payout.id }), h("div", { key: '9a0b3ac70bbe2290ec3aebf83ca4037fabbd41a4', class: "m-4" }, h(Button, { key: 'e50464088db095e913cc176fbc752576faf1e483', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'c1ac03ad58a631076be03f0bc152ccb71c96dd3f', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '23168d82b011053fdde169653b9d38e9afd20ca8', sectionTitle: "Details" }), h("div", { key: 'a0d48c1064dacd030dfbdb038f7f7916216120e1', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '669f79459362f38d9a8e6d5b62cf7729749fe025', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: '31c91b0e512789303456bfb2eb177d4e88009ea9', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: 'd168b4c88d22850d35f57775fed8d2fd35ce2593', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'a17172ea263334a99136495c3b93534b6e913c92', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: 'f896659044741ac90391795322f7da5f46ea347e', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: '9acf299858e138e1774375f747cca3ce07d40a62', sectionTitle: "Account" }), h("div", { key: 'bd65f987d50082c875952f426ac233c3d7d7033b', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '89420940ff25dfa0cd5f74fdcaebb2e7d332881a', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '5283b7c63a70458185fdf9280af31b15023c983a', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '14e79f73210ac1e7c8542e3b5de9085b1ee21993', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'f2dbc9f4279068e9cd5f4e6c623e8d30468ff5cc', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '8cf9051da522924f6134d9aa3eb5f49f0f91cb61', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), this.payout.metadata && [
|
|
56
|
+
h(DetailSectionTitle, { key: '8117a4636c6d41a0137bfd58c80eb4cfaa521627', sectionTitle: 'Metadata' }),
|
|
57
|
+
h("div", { key: '91ecdff8221e907542e7d026e354c78bdd577dd2', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a1a8d86e784eadf48af99f6576f67f37b9b7d585', metadata: this.payout.metadata }))
|
|
58
58
|
])))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "payout-details-core"; }
|
|
@@ -95,7 +95,7 @@ export class PayoutTransactionsList {
|
|
|
95
95
|
return Object.assign({ payout_id: this.payoutId, limit: '15' }, this.pagingParams);
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h(StyledHost, { key: '
|
|
98
|
+
return (h(StyledHost, { key: '45d15a8a614512709c062ba0b73b21b4be60aae4' }, h(TableWrapper, { key: 'ea65c120639a42271fa79cfc2660ae8e5fcd7989' }, h(TableComponent, { key: 'e44aa8d9e57ea1a55dd75bbe80e44955b22b4e32' }, h(TableHead, { key: 'e663b101246f11d6bc6efc36ac3e9e39a0e2528a' }, h(TableHeadRow, { key: '2b672fd701d35c1654a08fa6a189040c54de31ea' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: '8c03bd811e3b7e69b74fb51d4e2596bbff1c3fb4' }, h(TableLoadingState, { key: '0e6929873aea75e3b50969e39e07deac85551c0c', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: '63520b2bba3e6b171c6822b3e3c1a9cdf6b7eec6', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '107042f52f39c43327134ac0f0b942713fb438cd', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '7acf7d4c451f25015fcdad0c8f1a4f2583ca5010' }, h(TableFootRow, { key: '2f996a483df8b2d3fc735e0e8259ccde63e25875' }, h(TableFootCell, { key: '3ba8fafc0f84057e5b1490f335810ad0526e3968', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: 'f5b47b52d59a554bd8ddb2bd08214eba5293d126', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "justifi-payout-transactions-list"; }
|
|
101
101
|
static get encapsulation() { return "shadow"; }
|
|
@@ -135,7 +135,7 @@ export class PayoutsListCore {
|
|
|
135
135
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
136
136
|
}
|
|
137
137
|
render() {
|
|
138
|
-
return (h(TableWrapper, { key: '
|
|
138
|
+
return (h(TableWrapper, { key: 'b0566bb575439c658403df18ae94472f9b5f1ad4' }, h(TableComponent, { key: 'f8be406a444817869163952579b9cd4b52090d96' }, h(TableHead, { key: '033152e7e9519608465de2824b74c4348ff1f72d' }, h(TableHeadRow, { key: '8a63f9317ca024eb6c61e1871867deac4b518261' }, this.payoutsTable.columnData.map((column) => column))), h(TableBody, { key: 'b629a21c23c0ae3ca56d28918a35746b5cbcc715' }, h(TableLoadingState, { key: 'b9c373cbe8e039f94c27170dd65034caeccee74b', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '500b8df48a9a429b6a01bac63c189410ccec92d0', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: 'bdd34fcb481d09289b708698b82c60ad5dc067c2', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'a007cd03fda86b83f3d95b0321b12daf2fbf050d' }, h(TableFootRow, { key: 'eac8af33f784cf64bfdc80e9b51e849ba313ee71' }, h(TableFootCell, { key: '952d9b507169e5f56423031ae33f0177eb40022e', colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '62fd97a74939bdb68ec9ba68ee893ba315e09e9e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "payouts-list-core"; }
|
|
141
141
|
static get properties() {
|
|
@@ -26,8 +26,8 @@ export class PayoutsListFilters {
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
29
|
-
return (h(StyledHost, { key: '
|
|
30
|
-
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '
|
|
29
|
+
return (h(StyledHost, { key: '6c8121b37d463cddd5c1144a00a2941c71e578c9' }, h("table-filters-menu", { key: '60ae9a73059c2680eec39f89c10910ab59d31216', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: '3e4fd2b21b87cab6fe6bfb9b7a5f5d8b5bd853e9', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '8986319d9d5a1677d63c8a958327383f504489d2', class: "p-2" }, h("form-control-date", { key: '1fc277106b203b8ce15971f1606fd7fbf5358d71', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
|
|
30
|
+
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'd86a3567ab76447c97383f694d23814132051ae1', class: "p-2" }, h("form-control-date", { key: '65e902f28fe683e58ae63eae459f6f6c582beb5d', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
|
|
31
31
|
convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-payouts-list-filters"; }
|
|
@@ -64,7 +64,7 @@ export class PayoutsList {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(StyledHost, { key: '
|
|
67
|
+
return (h(StyledHost, { key: 'de3472c5070a100129ee16538e83cdb42ca85da6' }, h("payouts-list-core", { key: 'cff5883ee21662231467270a90c5030a724d7e57', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "justifi-payouts-list"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -81,7 +81,7 @@ export class TerminalOrdersListCore {
|
|
|
81
81
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
return (h(TableWrapper, { key: '
|
|
84
|
+
return (h(TableWrapper, { key: '8a0766c914fedb4544e1420a9d4821033ff5b63e' }, h(TableComponent, { key: '082e4d1231d470bbdcdb6283b769dfa170d4497c' }, h(TableHead, { key: '657a36dea6be9c12ea4d184b80100926f5d5a776' }, h(TableHeadRow, { key: '15e2897c02a069998ab7e317714e27b5c25496de' }, this.terminalOrdersTable.columnData.map((column) => column))), h(TableBody, { key: '2c4ce1e4d6542a6a35fe84e930d5aa80be8f1e5e' }, h(TableLoadingState, { key: '9d6dc10cbc5bac7dc70f5b89835e66d94b7a7f47', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '8cbb3e23fe963729e25e2692db64027a8fa60cd3', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: 'b13a399c4df1f596d46cc87236172499eecfcde8', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '95df4815cc997770b8422a9ad1553bf1fca04c55' }, h(TableFootRow, { key: '4e58cb642110fa73b437fa8eccb8bc7900bb0409' }, h(TableFootCell, { key: '42f6b9a69a798bbe7f6478adb99294156bcffab3', colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '82740c87d012610d1f7863b52463e7d6ac4ad482', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "terminal-orders-list-core"; }
|
|
87
87
|
static get properties() {
|
|
@@ -47,8 +47,8 @@ export class TerminalOrdersListFilters {
|
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
49
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
50
|
-
return (h(StyledHost, { key: '
|
|
51
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '
|
|
50
|
+
return (h(StyledHost, { key: '988e8065ca67d21d1c4b68c5bcfed4fd95c6e409' }, h("table-filters-menu", { key: '22073bfda9c93d5aecf8c613497673189df8b007', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: 'a94b84892b641a137ce100bf219bc58480f832ce', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'cfc88bdfea79cd6c84a6ad8c7d35eb95c40d26b8', class: "p-2" }, h("form-control-select", { key: '984fc8a4ad675cb42666ca788b451c0873156b78', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '7f1d78148dbc10f3b0cb311db4fa32d47974587a', class: "p-2" }, h("form-control-select", { key: '0f229683300698549656a508279758c5e17a2730', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: 'c8728a93377e1733f30ba60eb16a49e0703a9d1f', class: "p-2" }, h("form-control-date", { key: '1dabe01d1b923c40135b4a1ca2b88b13f492900c', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
51
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '446ceaa457b97bef17d2443b38b9088b979f628b', class: "p-2" }, h("form-control-date", { key: '72b6a32928b2556dacb62c427af8d8c09a5f0abb', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
52
52
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "justifi-terminal-orders-list-filters"; }
|
|
@@ -43,7 +43,7 @@ export class TerminalOrdersList {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(StyledHost, { key: '
|
|
46
|
+
return (h(StyledHost, { key: '770ec45855c3d0034eb5a09db38a31cdfcc6227c' }, h("terminal-orders-list-core", { key: '53a96754ad9de85d99c1a299212d74925539d193', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "justifi-terminal-orders-list"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|