@justifi/webcomponents 5.7.4-rc-01 → 5.7.5
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/{Checkout-BsYZoJ0a.js → Checkout-TZnRz3-3.js} +3 -1
- package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-C4MdBBMe.js} +0 -2
- package/dist/cjs/{Refund-BFE-2OxN.js → Refund-DN-yzFgy.js} +17 -8
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +5 -5
- package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -19
- package/dist/cjs/{business-additional-questions-schema-C1Ot5vrv.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
- package/dist/cjs/{business-identity-schema-hk4UVEna.js → business-identity-schema-Diqj_WVQ.js} +10 -10
- package/dist/cjs/{business.service-BjlK8M6t.js → business.service-U2eLTrq9.js} +3 -3
- package/dist/cjs/{Analytics-CLEDjTfr.js → check-pkg-version-DuL7lRe2.js} +23 -23
- package/dist/cjs/{checkout.service-Bln6jCAj.js → checkout.service-DtMzeEwi.js} +3 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
- package/dist/cjs/{dispute.service-Bo84yh33.js → dispute.service-CGVAs-5M.js} +3 -3
- 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.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- 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/{get-business-BiEc-jdH.js → get-business-BJrtsomz.js} +2 -2
- package/dist/cjs/{get-payment-details-OrAuseBX.js → get-payment-details-CdVEiscr.js} +4 -4
- package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
- package/dist/cjs/{get-subaccounts-CoC0XYqj.js → get-subaccounts-fBIoOr7m.js} +4 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +26 -0
- package/dist/cjs/{hidden-input_2.cjs.entry.js → iframe-input.cjs.entry.js} +14 -111
- package/dist/cjs/{form-CWW8IM-X.js → index.esm-CVuJLXJZ.js} +10022 -10022
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +21 -20
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -12
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +46 -49
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +16 -16
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +67 -23
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -12
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -17
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -16
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -15
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-D89BDRKu.js → package-o4g7MDiy.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
- package/dist/cjs/{payment.service-C0t9DRcu.js → payment.service-DmpOOPu1.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +4 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-DGeLS8BN.js → payout.service-BfO6L79f.js} +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{schema-validations-CllkToCZ.js → schema-validations-BSeMee-o.js} +31 -31
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{terminal-orders-table-Dw6uHG1R.js → terminal-orders-table-DMjFmuxk.js} +3 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-Ck6PIO3G.js → terminal.service-h-LWztbo.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{utils-IGCnjtqc.js → utils-l0veqT9y.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +3 -1
- package/dist/collection/api/ComponentError.js +0 -2
- package/dist/collection/api/DisputeEvidenceDocument.js +4 -7
- package/dist/collection/api/Document.js +17 -8
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +2 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -11
- package/dist/collection/components/checkout/payment-method-options.js +33 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +240 -0
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +12 -10
- 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 +3 -10
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +5 -10
- package/dist/docs.json +255 -786
- package/dist/esm/{Api-C3T8XYbb.js → Api-69eVlLFc.js} +1 -1
- package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-B9LrTq63.js} +4 -2
- package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-SdntD1xf.js} +0 -2
- package/dist/esm/{Payment-BEvE6jAC.js → Payment-BGiKmQYR.js} +1 -1
- package/dist/esm/{Refund-BKe90wSq.js → Refund-f_BCgcDa.js} +18 -9
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-DHaTxWwu.js → badge-VWumlkvS.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
- package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -17
- package/dist/esm/{business-additional-questions-schema-D00MNMDJ.js → business-additional-questions-schema-uQlQ8fXQ.js} +2 -2
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-pxSsAdgG.js → business-identity-schema-BsrgqgDl.js} +2 -2
- package/dist/esm/{business.service-BMABw2vX.js → business.service-BviUFOjP.js} +5 -5
- package/dist/esm/{button-5hc5r__m.js → button-BfT7Ex96.js} +1 -1
- package/dist/esm/{Analytics-B3nThWuq.js → check-pkg-version-phOwcSQM.js} +25 -25
- package/dist/esm/{checkout.service-jmweME4d.js → checkout.service-B8W_W-lc.js} +5 -5
- package/dist/esm/checkouts-list-core.entry.js +11 -11
- package/dist/esm/{checkouts-table-BS_UiHaT.js → checkouts-table-zIrBvmQp.js} +3 -3
- package/dist/esm/custom-popper_4.entry.js +8 -8
- package/dist/esm/{dispute.service-DWQ8DPZa.js → dispute.service-1e9677RK.js} +5 -5
- package/dist/esm/form-alert_5.entry.js +1 -1
- 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-C93L7yFm.js → form-control-error-text-CYWqNNkG.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-p28euWGX.js → form-control-help-text-DMdU5_la.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/{get-business-BSRtbTh7.js → get-business-GEPTefIj.js} +2 -2
- package/dist/esm/{get-payment-details-PSdVeuGc.js → get-payment-details-B5-Hzdrg.js} +6 -6
- package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
- package/dist/esm/{get-subaccounts-CownROrO.js → get-subaccounts-Cv7zn0lA.js} +7 -7
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-CUc5m0Ge.js → header-1-84nZCcj4.js} +1 -1
- package/dist/esm/{header-3-BXU3iN46.js → header-3-DpBr7qOY.js} +1 -1
- package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +23 -0
- package/dist/esm/{hidden-input_2.entry.js → iframe-input.entry.js} +10 -106
- package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
- package/dist/esm/{insurance-state-Br0fBMFI.js → insurance-state-BDLlv3CM.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +14 -13
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
- package/dist/esm/justifi-additional-statement_8.entry.js +14 -17
- package/dist/esm/justifi-business-details.entry.js +13 -13
- package/dist/esm/justifi-business-form.entry.js +19 -19
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +66 -22
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list.entry.js +15 -15
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +11 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
- package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
- package/dist/esm/justifi-order-terminals.entry.js +15 -15
- package/dist/esm/justifi-owner-form_3.entry.js +14 -14
- package/dist/esm/justifi-payment-details.entry.js +13 -13
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +15 -15
- package/dist/esm/justifi-payout-details.entry.js +13 -13
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +17 -17
- package/dist/esm/justifi-refund-payment.entry.js +15 -15
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -17
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
- package/dist/esm/justifi-terminals-list.entry.js +15 -15
- package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -18
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-rzqedGq4.js → package-B0XIc_FO.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-_6eQgwfE.js → parts-BrLVc_85.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +14 -14
- package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-BIfyW239.js} +2 -2
- package/dist/esm/{payment.service-u8UGq6gX.js → payment.service-BMbF1Svr.js} +5 -5
- package/dist/esm/payments-list-core.entry.js +12 -12
- package/dist/esm/{payments-status-BMqVM0kB.js → payments-status-_qXPu883.js} +1 -1
- package/dist/esm/{payments-table-BMIALfY5.js → payments-table-CrCdh5OV.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-CXW3oJqI.js → payout.service-HKpmn5XB.js} +5 -5
- package/dist/esm/payouts-list-core.entry.js +12 -12
- package/dist/esm/{payouts-status-BGGBJaXG.js → payouts-status-C1XLgtWW.js} +1 -1
- package/dist/esm/{payouts-table-BNPc0Z6X.js → payouts-table-DIqsk6Oa.js} +3 -3
- package/dist/esm/{schema-validations-C7pC-de1.js → schema-validations-DLWfpHyI.js} +2 -2
- package/dist/esm/{skeleton-C0KgFH0Z.js → skeleton-CdD_FIeP.js} +1 -1
- package/dist/esm/{spinner-Dtab-HTx.js → spinner-DIlSUUzM.js} +1 -1
- package/dist/esm/{table-wp341KhD.js → table-DjsimZwr.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +11 -11
- package/dist/esm/{terminal-orders-table-CzEC1eXm.js → terminal-orders-table-BnXCVH7W.js} +7 -7
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-Cw0RbYs3.js → terminal.service-XpfOXoFl.js} +5 -5
- package/dist/esm/terminals-list-core.entry.js +11 -11
- package/dist/esm/{terminals-table-CcKZ_9re.js → terminals-table-CCLlefFA.js} +3 -3
- package/dist/esm/{utils-BGp_IJEa.js → utils-6CI1OiOE.js} +1 -1
- package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.js} +1 -1
- package/dist/esm/{utils-BZvep88z.js → utils-Dccsn9BY.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +3 -3
- package/dist/module/Refund.js +17 -8
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +3 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/{Analytics.js → check-pkg-version.js} +21 -21
- package/dist/module/checkout-core.js +38 -32
- package/dist/module/checkouts-list-core2.js +2 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +2 -2
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/file-input-handler.js +4 -7
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-checkout.js +99 -48
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +11 -9
- package/dist/module/justifi-sezzle-payment-method.js +1 -108
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/justifi-tokenize-payment-method.js +40 -41
- package/dist/module/package.js +3 -3
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-options.js +51 -34
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/saved-payment-method.js +22 -2
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/sezzle-payment-method.js +104 -0
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminal-orders-list-core2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/types/api/Checkout.d.ts +13 -14
- package/dist/types/api/ComponentError.d.ts +1 -3
- package/dist/types/api/DisputeEvidenceDocument.d.ts +1 -1
- package/dist/types/api/Document.d.ts +2 -2
- package/dist/types/components/checkout/checkout.d.ts +0 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
- package/dist/types/components/{modular-checkout-parts → checkout}/sezzle-payment-method.d.ts +8 -2
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
- package/dist/types/components.d.ts +22 -149
- package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
- package/dist/webcomponents/{p-a76e0f42.entry.js → p-0da7c7e5.entry.js} +1 -1
- package/dist/webcomponents/p-111535c9.entry.js +1 -0
- package/dist/webcomponents/{p-41dffb12.entry.js → p-18ddc883.entry.js} +1 -1
- package/dist/webcomponents/p-1ANZF89K.js +1 -0
- package/dist/webcomponents/p-1CYqfEKd.js +1 -0
- package/dist/webcomponents/{p-8bb3513f.entry.js → p-249d9a7f.entry.js} +1 -1
- package/dist/webcomponents/p-2b5a7776.entry.js +1 -0
- package/dist/webcomponents/{p-0fc4a0df.entry.js → p-30415c7f.entry.js} +1 -1
- package/dist/webcomponents/{p-7c6f2fad.entry.js → p-312b81a6.entry.js} +1 -1
- package/dist/webcomponents/{p-0ed08f7b.entry.js → p-36c99fce.entry.js} +1 -1
- package/dist/webcomponents/{p-9c6479a4.entry.js → p-39d3df56.entry.js} +1 -1
- package/dist/webcomponents/{p-bac895b4.entry.js → p-3bf842ea.entry.js} +1 -1
- package/dist/webcomponents/p-3dc2d47c.entry.js +1 -0
- package/dist/webcomponents/p-40bbb25c.entry.js +1 -0
- package/dist/webcomponents/{p-1a0f21d1.entry.js → p-40fb2439.entry.js} +1 -1
- package/dist/webcomponents/{p-acdf6a5f.entry.js → p-412805ce.entry.js} +1 -1
- package/dist/webcomponents/{p-783b70b5.entry.js → p-43c3a433.entry.js} +1 -1
- package/dist/webcomponents/{p-feea4bfd.entry.js → p-4ac8d9d4.entry.js} +4 -4
- package/dist/webcomponents/{p-1301a9ae.entry.js → p-5436c41f.entry.js} +1 -1
- package/dist/webcomponents/p-5576322e.entry.js +1 -0
- package/dist/webcomponents/p-59db70c0.entry.js +1 -0
- package/dist/webcomponents/p-600da1ee.entry.js +1 -0
- package/dist/webcomponents/{p-ef520bb8.entry.js → p-6daf7df0.entry.js} +1 -1
- package/dist/webcomponents/{p-9fe2281c.entry.js → p-7d324f45.entry.js} +1 -1
- package/dist/webcomponents/p-867a4a55.entry.js +1 -0
- package/dist/webcomponents/{p-6d5833b4.entry.js → p-878f26f7.entry.js} +1 -1
- package/dist/webcomponents/p-8c0162b3.entry.js +1 -0
- package/dist/webcomponents/p-8e201c63.entry.js +1 -0
- package/dist/webcomponents/p-91b5da99.entry.js +1 -0
- package/dist/webcomponents/{p-17727dd3.entry.js → p-95d99ffc.entry.js} +1 -1
- package/dist/webcomponents/p-989f51bc.entry.js +1 -0
- package/dist/webcomponents/{p-83037fd2.entry.js → p-9f9002c1.entry.js} +1 -1
- package/dist/webcomponents/p-B0XIc_FO.js +1 -0
- package/dist/webcomponents/{p-Dqx8L05_.js → p-B3AHoKpE.js} +1 -1
- package/dist/webcomponents/{p-CAdO_ZNx.js → p-BLWOT0S7.js} +1 -1
- package/dist/webcomponents/{p-Cf4TMP3p.js → p-BOQVwCyQ.js} +1 -1
- package/dist/webcomponents/{p-BaoXNxnc.js → p-BSl0X3r8.js} +1 -1
- package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
- package/dist/webcomponents/p-BdTK0wi9.js +1 -0
- package/dist/webcomponents/{p-BmgpToYI.js → p-Bgdp97Tl.js} +1 -1
- package/dist/webcomponents/{p-DhyQbCOq.js → p-BkDN6yJN.js} +1 -1
- package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
- package/dist/webcomponents/{p-Rx3SLAbu.js → p-Bnrk5pzA.js} +1 -1
- package/dist/webcomponents/p-BqoTJ9CO.js +1 -0
- package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
- package/dist/webcomponents/p-C5RuuShs.js +1 -0
- package/dist/webcomponents/p-C9oyC18r.js +1 -0
- package/dist/webcomponents/{p-C39xg5_f.js → p-CNSeavdR.js} +1 -1
- package/dist/webcomponents/p-CSO7ljYx.js +1 -0
- package/dist/webcomponents/{p-XTXkuHkQ.js → p-CYTPbCLN.js} +1 -1
- package/dist/webcomponents/p-CgEahdBL.js +1 -0
- package/dist/webcomponents/p-Ckf8pUs-.js +1 -0
- package/dist/webcomponents/{p-MNmf3fQL.js → p-Clv1feia.js} +1 -1
- package/dist/webcomponents/p-Cm9gh1Sz.js +1 -0
- package/dist/webcomponents/p-CraCsD1A.js +1 -0
- package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
- package/dist/webcomponents/{p-CdkOB2ri.js → p-Cw3BMq7G.js} +1 -1
- package/dist/webcomponents/{p-DHvfrLVU.js → p-D9lioyBA.js} +1 -1
- package/dist/webcomponents/p-DVnVdicA.js +1 -0
- package/dist/webcomponents/p-DgIkDBGX.js +1 -0
- package/dist/webcomponents/p-DniQ6yo6.js +1 -0
- package/dist/webcomponents/p-DpbCEDZ3.js +1 -0
- package/dist/webcomponents/p-Ds11n2AD.js +1 -0
- package/dist/webcomponents/p-DvuraFxP.js +1 -0
- package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
- package/dist/webcomponents/{p-C8Zhkgm5.js → p-JOSiCHl7.js} +1 -1
- package/dist/webcomponents/{p-CFpYbRwn.js → p-KoNvNGKV.js} +1 -1
- package/dist/webcomponents/p-SdntD1xf.js +1 -0
- package/dist/webcomponents/p-Zuu7wsNB.js +1 -0
- package/dist/webcomponents/p-a151a347.entry.js +1 -0
- package/dist/webcomponents/{p-02e39fe2.entry.js → p-a23dfac9.entry.js} +1 -1
- package/dist/webcomponents/{p-cdc71a77.entry.js → p-a38b3d9a.entry.js} +1 -1
- package/dist/webcomponents/p-a48f8ec2.entry.js +1 -0
- package/dist/webcomponents/{p-042c6784.entry.js → p-a7e9a1d1.entry.js} +1 -1
- package/dist/webcomponents/{p-9b1992ef.entry.js → p-a87c50de.entry.js} +1 -1
- package/dist/webcomponents/{p-de969ec7.entry.js → p-aa72125e.entry.js} +1 -1
- package/dist/webcomponents/p-b648fca4.entry.js +1 -0
- package/dist/webcomponents/p-b92737c4.entry.js +1 -0
- package/dist/webcomponents/p-bbf264c6.entry.js +1 -0
- package/dist/webcomponents/{p-60abac93.entry.js → p-bdbd0c8e.entry.js} +1 -1
- package/dist/webcomponents/p-be89720e.entry.js +1 -0
- package/dist/webcomponents/{p-03ed0703.entry.js → p-c18a5ebf.entry.js} +1 -1
- package/dist/webcomponents/p-c87WhXVB.js +1 -0
- package/dist/webcomponents/p-d3a2fa7e.entry.js +1 -0
- package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
- package/dist/webcomponents/{p-6286917e.entry.js → p-d768d814.entry.js} +1 -1
- package/dist/webcomponents/p-d7883a41.entry.js +1 -0
- package/dist/webcomponents/{p-4ed62ecf.entry.js → p-d9a9279b.entry.js} +1 -1
- package/dist/webcomponents/p-d9ae1fea.entry.js +1 -0
- package/dist/webcomponents/p-da872abc.entry.js +1 -0
- package/dist/webcomponents/p-db86c150.entry.js +1 -0
- package/dist/webcomponents/{p-d5ada96f.entry.js → p-dbcc1a8e.entry.js} +1 -1
- package/dist/webcomponents/p-e0345315.entry.js +1 -0
- package/dist/webcomponents/{p-6f6d7a87.entry.js → p-e21ba107.entry.js} +1 -1
- package/dist/webcomponents/p-e2867ef6.entry.js +1 -0
- package/dist/webcomponents/{p-46c0aa2e.entry.js → p-e4fa3f41.entry.js} +1 -1
- package/dist/webcomponents/{p-c4d2ff85.entry.js → p-edfcb58d.entry.js} +1 -1
- package/dist/webcomponents/p-f37bb6d6.entry.js +1 -0
- package/dist/webcomponents/p-f5eeb11d.entry.js +1 -0
- package/dist/webcomponents/p-f6d5f392.entry.js +1 -0
- package/dist/webcomponents/p-f6debdb8.entry.js +1 -0
- package/dist/webcomponents/{p-6ff96203.entry.js → p-fcb85a8e.entry.js} +1 -1
- package/dist/webcomponents/p-hBHbB3i6.js +1 -0
- package/dist/webcomponents/{p-Smvec9tp.js → p-pOQo1ck9.js} +1 -1
- package/dist/webcomponents/{p-DddGO-XR.js → p-vTsHmSQQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/billing-form-schema-X1bkxteI.js +0 -26
- package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
- package/dist/cjs/checkout.store-LEOetpmH.js +0 -29
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -85
- package/dist/cjs/justifi-billing-information-form.cjs.entry.js +0 -50
- package/dist/cjs/justifi-card-form.cjs.entry.js +0 -93
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
- package/dist/cjs/justifi-modular-checkout.cjs.entry.js +0 -204
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -49
- package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
- package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
- package/dist/cjs/payment-method-option-utils-imuSE7KV.js +0 -25
- package/dist/collection/api/BillingInformation.js +0 -1
- package/dist/collection/api/PaymentMethod.js +0 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +0 -345
- package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout-parts/bank-account.js +0 -98
- package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +0 -21
- package/dist/collection/components/modular-checkout-parts/billing-form.js +0 -116
- package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout-parts/card-form.js +0 -102
- package/dist/collection/components/modular-checkout-parts/postal-code-form.js +0 -114
- package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +0 -23
- package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +0 -127
- package/dist/collection/components/modular-checkout-parts/summary.js +0 -12
- package/dist/collection/store/checkout.store.js +0 -25
- package/dist/esm/billing-form-schema-BQf2Ydp0.js +0 -24
- package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
- package/dist/esm/checkout.store-Ffl2B_i4.js +0 -27
- package/dist/esm/justifi-bank-account-form.entry.js +0 -83
- package/dist/esm/justifi-billing-information-form.entry.js +0 -48
- package/dist/esm/justifi-card-form.entry.js +0 -91
- package/dist/esm/justifi-checkout-summary.entry.js +0 -19
- package/dist/esm/justifi-modular-checkout.entry.js +0 -202
- package/dist/esm/justifi-postal-code-form.entry.js +0 -47
- package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
- package/dist/esm/justifi-sezzle-payment-method.entry.js +0 -78
- package/dist/esm/payment-method-option-utils-8n_ALxec.js +0 -23
- package/dist/module/billing-form-schema.js +0 -24
- package/dist/module/checkout-actions.js +0 -58
- package/dist/module/checkout.store.js +0 -27
- package/dist/module/justifi-bank-account-form.d.ts +0 -11
- package/dist/module/justifi-bank-account-form.js +0 -105
- package/dist/module/justifi-billing-information-form.d.ts +0 -11
- package/dist/module/justifi-billing-information-form.js +0 -94
- package/dist/module/justifi-card-form.d.ts +0 -11
- package/dist/module/justifi-card-form.js +0 -113
- package/dist/module/justifi-checkout-summary.d.ts +0 -11
- package/dist/module/justifi-checkout-summary.js +0 -37
- package/dist/module/justifi-modular-checkout.d.ts +0 -11
- package/dist/module/justifi-modular-checkout.js +0 -218
- package/dist/module/justifi-postal-code-form.d.ts +0 -11
- package/dist/module/justifi-postal-code-form.js +0 -86
- package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
- package/dist/module/justifi-saved-payment-methods.js +0 -58
- package/dist/module/payment-method-option-utils.js +0 -23
- package/dist/types/api/BillingInformation.d.ts +0 -13
- package/dist/types/api/PaymentMethod.d.ts +0 -21
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -31
- package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout-parts/bank-account.d.ts +0 -18
- package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +0 -23
- package/dist/types/components/modular-checkout-parts/billing-form.d.ts +0 -16
- package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout-parts/card-form.d.ts +0 -20
- package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +0 -16
- package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +0 -5
- package/dist/types/components/modular-checkout-parts/summary.d.ts +0 -3
- package/dist/types/store/checkout.store.d.ts +0 -19
- package/dist/webcomponents/p-05ab99e7.entry.js +0 -1
- package/dist/webcomponents/p-05d92d45.entry.js +0 -1
- package/dist/webcomponents/p-0977a99a.entry.js +0 -1
- package/dist/webcomponents/p-0a7c3741.entry.js +0 -1
- package/dist/webcomponents/p-0d8ebb69.entry.js +0 -1
- package/dist/webcomponents/p-0lkrqFgg.js +0 -1
- package/dist/webcomponents/p-0wMiAwXe.js +0 -1
- package/dist/webcomponents/p-15db3b15.entry.js +0 -1
- package/dist/webcomponents/p-31a9d45e.entry.js +0 -1
- package/dist/webcomponents/p-33bf5d85.entry.js +0 -1
- package/dist/webcomponents/p-4126de9e.entry.js +0 -1
- package/dist/webcomponents/p-4e38dfac.entry.js +0 -1
- package/dist/webcomponents/p-5f33350c.entry.js +0 -1
- package/dist/webcomponents/p-631bbd5a.entry.js +0 -1
- package/dist/webcomponents/p-63e5e6f6.entry.js +0 -1
- package/dist/webcomponents/p-64f047ea.entry.js +0 -1
- package/dist/webcomponents/p-716dc79c.entry.js +0 -1
- package/dist/webcomponents/p-738ee098.entry.js +0 -1
- package/dist/webcomponents/p-7c466cc9.entry.js +0 -1
- package/dist/webcomponents/p-7e484d46.entry.js +0 -1
- package/dist/webcomponents/p-8ba23f7f.entry.js +0 -1
- package/dist/webcomponents/p-8fefebd7.entry.js +0 -1
- package/dist/webcomponents/p-93a843db.entry.js +0 -1
- package/dist/webcomponents/p-9ba825c5.entry.js +0 -1
- package/dist/webcomponents/p-BByypogb.js +0 -1
- package/dist/webcomponents/p-BI7GlCtv.js +0 -1
- package/dist/webcomponents/p-BJatoeR1.js +0 -1
- package/dist/webcomponents/p-BKatPL5G.js +0 -1
- package/dist/webcomponents/p-BXeHgiPz.js +0 -1
- package/dist/webcomponents/p-BgiXKaf2.js +0 -1
- package/dist/webcomponents/p-BhrFjjAs.js +0 -1
- package/dist/webcomponents/p-BnvoOeKL.js +0 -1
- package/dist/webcomponents/p-Bond4qGX.js +0 -1
- package/dist/webcomponents/p-BooprPq0.js +0 -1
- package/dist/webcomponents/p-CCPoezRw.js +0 -1
- package/dist/webcomponents/p-D5ny0x8_.js +0 -1
- package/dist/webcomponents/p-D7uH6T8P.js +0 -1
- package/dist/webcomponents/p-DKClunJd.js +0 -1
- package/dist/webcomponents/p-DLopwJ61.js +0 -1
- package/dist/webcomponents/p-DRKOMqbX.js +0 -1
- package/dist/webcomponents/p-DXJXAroG.js +0 -1
- package/dist/webcomponents/p-DyvT8iXz.js +0 -1
- package/dist/webcomponents/p-NqdaxjDT.js +0 -1
- package/dist/webcomponents/p-bc05e051.entry.js +0 -1
- package/dist/webcomponents/p-c102dea5.entry.js +0 -1
- package/dist/webcomponents/p-cb84a2e6.entry.js +0 -1
- package/dist/webcomponents/p-ce242f4c.entry.js +0 -1
- package/dist/webcomponents/p-d0d83153.entry.js +0 -1
- package/dist/webcomponents/p-d81f30f6.entry.js +0 -1
- package/dist/webcomponents/p-d90e981c.entry.js +0 -1
- package/dist/webcomponents/p-da961813.entry.js +0 -1
- package/dist/webcomponents/p-dadd593a.entry.js +0 -1
- package/dist/webcomponents/p-e3437894.entry.js +0 -1
- package/dist/webcomponents/p-eb6f1a3f.entry.js +0 -1
- package/dist/webcomponents/p-ebc0b06d.entry.js +0 -1
- package/dist/webcomponents/p-ecfab304.entry.js +0 -1
- package/dist/webcomponents/p-efa7aef1.entry.js +0 -1
- package/dist/webcomponents/p-eilUGO3o.js +0 -1
- package/dist/webcomponents/p-fd7c5ac5.entry.js +0 -1
- package/dist/webcomponents/p-hDoH7hHP.js +0 -1
- package/dist/webcomponents/p-jA8bbxkp.js +0 -1
- package/dist/webcomponents/p-pGzabKc7.js +0 -1
- package/dist/webcomponents/p-rzqedGq4.js +0 -1
- package/dist/webcomponents/p-zucQG3cz.js +0 -1
|
@@ -53,7 +53,7 @@ class Checkout {
|
|
|
53
53
|
return ICheckoutPaymentMode.unknown;
|
|
54
54
|
}
|
|
55
55
|
const sortedCompletions = this.completions.sort((a, b) => {
|
|
56
|
-
return
|
|
56
|
+
return new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime();
|
|
57
57
|
});
|
|
58
58
|
const lastCompletion = sortedCompletions[0];
|
|
59
59
|
if (lastCompletion.payment_mode) {
|
|
@@ -67,9 +67,11 @@ class Checkout {
|
|
|
67
67
|
}
|
|
68
68
|
return paymentMode;
|
|
69
69
|
}
|
|
70
|
+
;
|
|
70
71
|
formattedPaymentAmount(amount) {
|
|
71
72
|
return utils.formatCurrency(amount, this.payment_currency);
|
|
72
73
|
}
|
|
74
|
+
;
|
|
73
75
|
}
|
|
74
76
|
var ICheckoutPaymentMode;
|
|
75
77
|
(function (ICheckoutPaymentMode) {
|
|
@@ -8,12 +8,10 @@ exports.ComponentErrorCodes = void 0;
|
|
|
8
8
|
ComponentErrorCodes["POST_ERROR"] = "post-error";
|
|
9
9
|
ComponentErrorCodes["UNKNOWN_ERROR"] = "unknown-error";
|
|
10
10
|
ComponentErrorCodes["TOKENIZE_ERROR"] = "tokenize-error";
|
|
11
|
-
ComponentErrorCodes["COMPLETE_CHECKOUT_ERROR"] = "complete-checkout-error";
|
|
12
11
|
ComponentErrorCodes["NOT_AUTHENTICATED"] = "not-authenticated";
|
|
13
12
|
ComponentErrorCodes["INVALID_PARAMETER"] = "invalid-parameter";
|
|
14
13
|
ComponentErrorCodes["PROVISIONING_REQUESTED"] = "provisioning-already-requested";
|
|
15
14
|
ComponentErrorCodes["INVALID_REFUND_AMOUNT"] = "invalid-refund-amount";
|
|
16
|
-
ComponentErrorCodes["VALIDATION_ERROR"] = "validation-error";
|
|
17
15
|
})(exports.ComponentErrorCodes || (exports.ComponentErrorCodes = {}));
|
|
18
16
|
exports.ComponentErrorSeverity = void 0;
|
|
19
17
|
(function (ComponentErrorSeverity) {
|
|
@@ -288,8 +288,8 @@ class EntityDocumentStorage {
|
|
|
288
288
|
}
|
|
289
289
|
class EntityDocument {
|
|
290
290
|
constructor(fileData, business_id) {
|
|
291
|
+
this.fileData = null;
|
|
291
292
|
this.file = fileData.file;
|
|
292
|
-
this.fileString = this.getFileString();
|
|
293
293
|
this.document_type = fileData.document_type;
|
|
294
294
|
this.presigned_url = null;
|
|
295
295
|
this.record_data = {
|
|
@@ -299,13 +299,22 @@ class EntityDocument {
|
|
|
299
299
|
file_type: this.file.type,
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
302
|
+
async getFileData() {
|
|
303
|
+
if (this.fileData) {
|
|
304
|
+
return this.fileData;
|
|
305
|
+
}
|
|
306
|
+
const fileDataPromise = new Promise((resolve, reject) => {
|
|
307
|
+
const reader = new FileReader();
|
|
308
|
+
reader.onload = (e) => {
|
|
309
|
+
this.fileData = e.target.result;
|
|
310
|
+
resolve(this.fileData);
|
|
311
|
+
};
|
|
312
|
+
reader.onerror = () => {
|
|
313
|
+
reject(new Error('Error reading file'));
|
|
314
|
+
};
|
|
315
|
+
reader.readAsArrayBuffer(this.file);
|
|
316
|
+
});
|
|
317
|
+
return await fileDataPromise;
|
|
309
318
|
}
|
|
310
319
|
setPresignedUrl(url) {
|
|
311
320
|
this.presigned_url = url;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var index = require('./index-D5bL1DOi.js');
|
|
4
4
|
require('./config-state-Dz9bnWHg.js');
|
|
5
5
|
var utils$1 = require('./utils-qOon0GWm.js');
|
|
6
|
-
require('./ComponentError-
|
|
7
|
-
require('./Checkout-
|
|
6
|
+
require('./ComponentError-C4MdBBMe.js');
|
|
7
|
+
require('./Checkout-TZnRz3-3.js');
|
|
8
8
|
require('./Pagination-Dediz133.js');
|
|
9
9
|
require('./Payment-D5UynU2f.js');
|
|
10
|
-
var Refund = require('./Refund-
|
|
10
|
+
var Refund = require('./Refund-DN-yzFgy.js');
|
|
11
11
|
require('./Business-DCRzZf0w.js');
|
|
12
12
|
require('./Dispute-CruQTF6_.js');
|
|
13
13
|
var businessFormOptions = require('./business-form-options-CMII7nIK.js');
|
|
@@ -100,10 +100,10 @@ const FileInput = class {
|
|
|
100
100
|
return part;
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
|
-
return (index.h(index.Host, { key: '
|
|
103
|
+
return (index.h(index.Host, { key: 'c34cbf8874c33d945d81a93646372ac9dc687362' }, index.h("div", { key: 'cacf5f210a0adb6f408ac05efe4279d9eb1ae3b8', class: "form-group d-flex flex-column" }, index.h("div", { key: '936cb5268fa2c63f9931895f7a0b46ed5b4776ec', class: "d-flex align-items-start gap-2" }, index.h("label", { key: '6dc1dd3be36337cc3c4bb72a4e4d42c6e7c2a239', part: parts.label, class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: '4c4a2c965882e7e96d36b16e6448fa4efd003950', helpText: this.helpText })), index.h("input", { key: '469cf033fae879306ecbfdcdb9e6d74fdb4b4265', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
104
104
|
this.isFocused = false;
|
|
105
105
|
this.formControlBlur.emit();
|
|
106
|
-
} }), index.h(formControlErrorText.FormControlErrorText, { key: '
|
|
106
|
+
} }), index.h(formControlErrorText.FormControlErrorText, { key: '7359b6f39ac038230ce1d2d60454a4d4e69c6bb9', errorText: this.errorText, name: this.name }))));
|
|
107
107
|
}
|
|
108
108
|
get el() { return index.getElement(this); }
|
|
109
109
|
};
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
var index = require('./index-D5bL1DOi.js');
|
|
4
4
|
var skeleton = require('./skeleton-CbZBGO47.js');
|
|
5
5
|
var configState = require('./config-state-Dz9bnWHg.js');
|
|
6
|
-
var
|
|
7
|
-
var schemaValidations = require('./schema-validations-CllkToCZ.js');
|
|
6
|
+
var iframeInputStylesState = require('./iframe-input-styles-state-DX5gGQQF.js');
|
|
8
7
|
var parts = require('./parts-9jMf1erK.js');
|
|
8
|
+
var index_esm = require('./index.esm-CVuJLXJZ.js');
|
|
9
|
+
var schemaValidations = require('./schema-validations-BSeMee-o.js');
|
|
9
10
|
var header3 = require('./header-3-BnKbOjvz.js');
|
|
10
11
|
require('./event-types-YOY5TKUN.js');
|
|
11
12
|
var utils = require('./utils-DAyWinG2.js');
|
|
12
13
|
var stateOptions = require('./state-options-CIT9xdTz.js');
|
|
13
14
|
var Payment = require('./Payment-D5UynU2f.js');
|
|
14
|
-
var
|
|
15
|
+
var utils$1 = require('./utils-qOon0GWm.js');
|
|
15
16
|
require('./index-BCtVWU61.js');
|
|
16
17
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
17
18
|
require('./business-form-options-CMII7nIK.js');
|
|
18
19
|
require('./Business-DCRzZf0w.js');
|
|
19
20
|
require('./helpers-B5OCqlIM.js');
|
|
20
|
-
require('./utils-qOon0GWm.js');
|
|
21
21
|
require('./Dispute-CruQTF6_.js');
|
|
22
22
|
|
|
23
23
|
const BankAccountFormSkeleton = (props) => {
|
|
@@ -67,10 +67,10 @@ const BankAccountForm = class {
|
|
|
67
67
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (index.h(index.Host, { key: '
|
|
70
|
+
return (index.h(index.Host, { key: 'b6cdf5a9320d92a5390daaa0a5218274f2dfc178' }, index.h(BankAccountFormSkeleton, { key: '286fcc38a26820d166ced0bc886143ed3d880da4', isReady: this.isReady }), index.h("div", { key: '041fcacff70d7cdfc0c8f41258bd9db18703e4c1', class: "container-fluid p-0", style: {
|
|
71
71
|
opacity: this.isReady ? '1' : '0',
|
|
72
72
|
height: this.isReady ? 'auto' : '0',
|
|
73
|
-
} }, index.h("div", { key: '
|
|
73
|
+
} }, index.h("div", { key: '94dc0eb0d79b40ade96e1961611e3e7a8eef20ea', class: "row mb-3" }, index.h("iframe-input", { key: '41c82b772e7873a45409e35ed56dfea16c20c2ee', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), index.h("div", { key: '1c95618a50e2d36a3a9a3a7b691ae0dfa6a09936', class: "row" }, index.h("iframe-input", { key: '28a4dde70c8f55b4f6bf6ce2d3beee6acbebbc0b', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
|
|
@@ -129,15 +129,92 @@ const CardForm = class {
|
|
|
129
129
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
|
-
return (index.h(index.Host, { key: '
|
|
132
|
+
return (index.h(index.Host, { key: '3d28e96f020196a359a359507237b50dd9fed020' }, index.h(CardFormSkeleton, { key: 'ee07eb10acf142fcaab1398278e335df49f1abe9', isReady: this.isReady }), index.h("div", { key: 'bfce475f392cbb2bad3fd1c76f16c6e6a6718c1f', class: "container-fluid p-0", style: {
|
|
133
133
|
opacity: this.isReady ? '1' : '0',
|
|
134
134
|
height: this.isReady ? 'auto' : '0',
|
|
135
|
-
} }, index.h("div", { key: '
|
|
135
|
+
} }, index.h("div", { key: 'e8517852800a9a165e61308f8d1cf875a87c021e', class: "mb-3" }, index.h("iframe-input", { key: '6efe224b7f4a2f63eec601d3e48c454d78c30300', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), index.h("div", { key: 'c14b9deb1a9d677a6ee8952cbc946fea3c95f21a', class: "d-flex align-items-start" }, index.h("div", { key: 'd0ced17b3f1d231514f81d9fe21f75cb87db145c', class: "flex-fill me-3" }, index.h("iframe-input", { key: '5b187bbe0826dde34cd49ecce1e386ab5373da93', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), index.h("div", { key: 'aace0455d0a522fff3141f17af7267e9ca8dc252', class: "flex-fill me-3" }, index.h("iframe-input", { key: 'a2f2a445a2100aa1a15f3e56ca336792abed4fd0', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), index.h("div", { key: '7c4baf5981965a25ab75f1e9ce35a5cf8e293837', class: "flex-fill" }, index.h("iframe-input", { key: 'de7f0c99eb09e0bdc0bb22e485eba5bf4486e345', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const HiddenInput = class {
|
|
140
|
+
constructor(hostRef) {
|
|
141
|
+
index.registerInstance(this, hostRef);
|
|
142
|
+
this.isFocused = false;
|
|
143
|
+
this.errorText = '';
|
|
144
|
+
}
|
|
145
|
+
async componentDidLoad() {
|
|
146
|
+
const fontStyles = await this.getBaseFontStyles();
|
|
147
|
+
iframeInputStylesState.iframeInputStylesSet('fontStyles', fontStyles);
|
|
148
|
+
const focusedStyles = await this.getFocusedStyles();
|
|
149
|
+
iframeInputStylesState.iframeInputStylesSet('focused', focusedStyles);
|
|
150
|
+
const focusedAndInvalidStyles = await this.getFocusedAndInvalidStyles();
|
|
151
|
+
iframeInputStylesState.iframeInputStylesSet('focusedAndInvalid', focusedAndInvalidStyles);
|
|
152
|
+
}
|
|
153
|
+
async getBaseFontStyles() {
|
|
154
|
+
return new Promise((resolve, _reject) => {
|
|
155
|
+
setTimeout(() => {
|
|
156
|
+
const computedStyles = getComputedStyle(this.hiddenInput);
|
|
157
|
+
const styles = {
|
|
158
|
+
fontFamily: computedStyles.fontFamily,
|
|
159
|
+
fontSize: computedStyles.fontSize,
|
|
160
|
+
fontWeight: computedStyles.fontWeight,
|
|
161
|
+
lineHeight: computedStyles.lineHeight,
|
|
162
|
+
margin: computedStyles.margin,
|
|
163
|
+
padding: computedStyles.padding,
|
|
164
|
+
color: computedStyles.color,
|
|
165
|
+
};
|
|
166
|
+
resolve(styles);
|
|
167
|
+
}, 500);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
;
|
|
171
|
+
async getFocusedStyles() {
|
|
172
|
+
return new Promise((resolve, _reject) => {
|
|
173
|
+
this.hiddenInput.focus();
|
|
174
|
+
setTimeout(() => {
|
|
175
|
+
this.hiddenInput.blur();
|
|
176
|
+
let computedStyles = getComputedStyle(this.hiddenInput);
|
|
177
|
+
resolve({
|
|
178
|
+
boxShadow: computedStyles.boxShadow,
|
|
179
|
+
border: computedStyles.border,
|
|
180
|
+
});
|
|
181
|
+
}, 500);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
async getFocusedAndInvalidStyles() {
|
|
185
|
+
return new Promise((resolve, _reject) => {
|
|
186
|
+
this.hiddenInput.focus();
|
|
187
|
+
this.errorText = 'Error';
|
|
188
|
+
setTimeout(() => {
|
|
189
|
+
const computedStyles = getComputedStyle(this.hiddenInput);
|
|
190
|
+
const styles = {
|
|
191
|
+
boxShadow: computedStyles.boxShadow,
|
|
192
|
+
border: computedStyles.border,
|
|
193
|
+
};
|
|
194
|
+
this.hiddenInput.blur();
|
|
195
|
+
resolve(styles);
|
|
196
|
+
}, 500);
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
get part() {
|
|
200
|
+
if (this.isFocused && this.errorText) {
|
|
201
|
+
return parts.inputInvalidAndFocused;
|
|
202
|
+
}
|
|
203
|
+
if (this.errorText) {
|
|
204
|
+
return parts.inputInvalid;
|
|
205
|
+
}
|
|
206
|
+
if (this.isFocused) {
|
|
207
|
+
return parts.inputFocused;
|
|
208
|
+
}
|
|
209
|
+
return parts.input;
|
|
210
|
+
}
|
|
211
|
+
render() {
|
|
212
|
+
return (index.h(index.Host, { key: '32b302de9983db3ced26f1780bf116e63091b9ad' }, index.h("input", { key: 'c8fbe6dc11c8b743d307557aab107852403441ae', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
|
|
136
213
|
}
|
|
137
214
|
};
|
|
138
215
|
|
|
139
216
|
const billingFormSchema = (postalOnly) => {
|
|
140
|
-
const fullBillingForm =
|
|
217
|
+
const fullBillingForm = index_esm.create$3({
|
|
141
218
|
name: schemaValidations.identityNameValidation.required('Enter full name'),
|
|
142
219
|
address_line1: schemaValidations.lineOneValidation.required('Enter street address'),
|
|
143
220
|
address_line2: schemaValidations.lineTwoValidation.nullable(),
|
|
@@ -145,7 +222,7 @@ const billingFormSchema = (postalOnly) => {
|
|
|
145
222
|
address_state: schemaValidations.stateValidation.required('Select state'),
|
|
146
223
|
address_postal_code: schemaValidations.postalValidation.required('Enter postal code')
|
|
147
224
|
});
|
|
148
|
-
const postalForm =
|
|
225
|
+
const postalForm = index_esm.create$3({
|
|
149
226
|
name: schemaValidations.identityNameValidation.nullable(),
|
|
150
227
|
address_line1: schemaValidations.lineOneValidation.nullable(),
|
|
151
228
|
address_line2: schemaValidations.lineTwoValidation.nullable(),
|
|
@@ -166,7 +243,7 @@ const BillingForm = class {
|
|
|
166
243
|
}
|
|
167
244
|
componentWillLoad() {
|
|
168
245
|
const postalOnly = this.isPostalOnlyMode;
|
|
169
|
-
this.formController = new
|
|
246
|
+
this.formController = new index_esm.FormController(billingFormSchema(postalOnly));
|
|
170
247
|
}
|
|
171
248
|
componentDidLoad() {
|
|
172
249
|
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
@@ -194,7 +271,7 @@ const BillingForm = class {
|
|
|
194
271
|
render() {
|
|
195
272
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
196
273
|
const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
|
|
197
|
-
return (index.h(index.Host, { key: '
|
|
274
|
+
return (index.h(index.Host, { key: 'df86239c476aadde3af18742bbf643d61825c051' }, index.h("div", { key: '186f3ef6c2295223da888b7645a0af7aa8df4535', part: parts.billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && index.h(header3.Header3, { key: '72284e3fcea18cbdfe879989fb7f1b007e2a37df', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), index.h("form", { key: '9479d696a0486e63edfad4bd0dbe374a21cb7b8c' }, index.h("fieldset", { key: 'b780abf09a714f2e9588670ad149c3ca999cbc87' }, this.legend && index.h("legend", { key: 'f102dc51722fe2f050c951e7b56117c9577f3b83' }, this.legend), index.h("div", { key: '00d6c7e35d768f3357cc17836c916e2bf24e3a7e', class: "row gy-3" }, index.h("div", { key: 'cb2b29aa769c97ccab246dc74e463d389497edbd', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-text", { key: '3cb8ca5e3ecd0817f8e16aafbb5d3ca5ee7824ed', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { key: '781338b1c79fd815d2ab2dbc15e7b56b534a2278', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-text", { key: '682a37c6b417fbc0edf76b89122b5bf618603360', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), index.h("div", { key: '50d657891e492c8568bf179d752b9aadf10f2387', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-text", { key: 'ce1f04bfc3307af7a025390bcbcce6a6b3da6fab', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), index.h("div", { key: 'ddb45c1cbdc6aa5d27c6a0c4b6f29366ed0e8eba', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-text", { key: '410efdbcd5381bdf61d9c752f292f794d8e12670', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), index.h("div", { key: 'a65811acc25443a07cdb1401231ce1e703096fd4', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-select", { key: 'bed28d564c9e5a2ebfc10b6ab47e43e2b17bd6e6', name: 'address_state', label: 'State', options: stateOptions.StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), index.h("div", { key: '8aca307d318e87b17e09122fa91e817c0a59c8d5', class: "col-12", hidden: this.hideAllBillingFields }, index.h("form-control-text", { key: '4dd06dc9ae01fc2953780e52f9e9c918a38a7bbd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: utils.numberOnlyHandler }))))))));
|
|
198
275
|
}
|
|
199
276
|
};
|
|
200
277
|
|
|
@@ -291,6 +368,26 @@ const NewPaymentMethod = class {
|
|
|
291
368
|
}
|
|
292
369
|
};
|
|
293
370
|
|
|
371
|
+
class PaymentMethodOption {
|
|
372
|
+
constructor(paymentMethod) {
|
|
373
|
+
this.id = paymentMethod.id;
|
|
374
|
+
this.brand = paymentMethod.brand;
|
|
375
|
+
this.acct_last_four = paymentMethod.acct_last_four;
|
|
376
|
+
this.type = utils$1.snakeToCamel(paymentMethod.type);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
var CardBrandLabels;
|
|
380
|
+
(function (CardBrandLabels) {
|
|
381
|
+
CardBrandLabels["american_express"] = "American Express";
|
|
382
|
+
CardBrandLabels["diners_club"] = "Diners Club";
|
|
383
|
+
CardBrandLabels["discover"] = "Discover";
|
|
384
|
+
CardBrandLabels["jcb"] = "JCB";
|
|
385
|
+
CardBrandLabels["mastercard"] = "Mastercard";
|
|
386
|
+
CardBrandLabels["china_unionpay"] = "UnionPay";
|
|
387
|
+
CardBrandLabels["visa"] = "Visa";
|
|
388
|
+
CardBrandLabels["unknown"] = "Unknown";
|
|
389
|
+
})(CardBrandLabels || (CardBrandLabels = {}));
|
|
390
|
+
|
|
294
391
|
const PaymentMethodOptions = class {
|
|
295
392
|
constructor(hostRef) {
|
|
296
393
|
index.registerInstance(this, hostRef);
|
|
@@ -307,22 +404,25 @@ const PaymentMethodOptions = class {
|
|
|
307
404
|
this.paymentMethodsChanged();
|
|
308
405
|
}
|
|
309
406
|
paymentMethodsChanged() {
|
|
310
|
-
var _a;
|
|
407
|
+
var _a, _b;
|
|
311
408
|
this.paymentMethodOptions = this.savedPaymentMethods
|
|
312
|
-
.map((paymentMethod) => new
|
|
409
|
+
.map((paymentMethod) => new PaymentMethodOption(paymentMethod))
|
|
313
410
|
.filter((paymentMethod) => {
|
|
314
411
|
// Don't saved card or bank account if they are disabled
|
|
315
412
|
return ((this.showCard || paymentMethod.type !== Payment.PaymentMethodTypes.card) &&
|
|
316
413
|
(this.showAch || paymentMethod.type !== Payment.PaymentMethodTypes.bankAccount));
|
|
317
414
|
});
|
|
415
|
+
if (this.showBnpl && ((_a = this.bnpl) === null || _a === void 0 ? void 0 : _a.provider) === 'sezzle' && !this.insuranceToggled) {
|
|
416
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: Payment.PaymentMethodTypes.sezzle }));
|
|
417
|
+
}
|
|
318
418
|
if (this.showCard) {
|
|
319
|
-
this.paymentMethodOptions.push(new
|
|
419
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: Payment.PaymentMethodTypes.card }));
|
|
320
420
|
}
|
|
321
421
|
if (this.showAch) {
|
|
322
|
-
this.paymentMethodOptions.push(new
|
|
422
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: Payment.PaymentMethodTypes.bankAccount }));
|
|
323
423
|
}
|
|
324
424
|
if (!this.selectedPaymentMethodId) {
|
|
325
|
-
this.selectedPaymentMethodId = (
|
|
425
|
+
this.selectedPaymentMethodId = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
|
|
326
426
|
}
|
|
327
427
|
}
|
|
328
428
|
paymentMethodOptionSelected(event) {
|
|
@@ -338,10 +438,11 @@ const PaymentMethodOptions = class {
|
|
|
338
438
|
}
|
|
339
439
|
render() {
|
|
340
440
|
var _a;
|
|
341
|
-
return (index.h(index.Host, { key: '
|
|
441
|
+
return (index.h(index.Host, { key: 'c61e82c72aaa25e87ded723799a1eb0961c05444' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
342
442
|
const newCard = paymentMethodOption.id === Payment.PaymentMethodTypes.card;
|
|
343
443
|
const newBankAccount = paymentMethodOption.id === Payment.PaymentMethodTypes.bankAccount;
|
|
344
444
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
445
|
+
const sezzle = paymentMethodOption.id === Payment.PaymentMethodTypes.sezzle;
|
|
345
446
|
if (newCard || newBankAccount) {
|
|
346
447
|
return (index.h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, "show-card": this.showCard, "show-ach": this.showAch, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: (el) => {
|
|
347
448
|
if (isSelected) {
|
|
@@ -349,6 +450,13 @@ const PaymentMethodOptions = class {
|
|
|
349
450
|
}
|
|
350
451
|
} }));
|
|
351
452
|
}
|
|
453
|
+
else if (sezzle) {
|
|
454
|
+
return (index.h("justifi-sezzle-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, paymentAmount: this.paymentAmount, bnpl: this.bnpl, ref: (el) => {
|
|
455
|
+
if (isSelected) {
|
|
456
|
+
this.selectedPaymentMethodOptionRef = el;
|
|
457
|
+
}
|
|
458
|
+
} }));
|
|
459
|
+
}
|
|
352
460
|
else if (this.showSavedPaymentMethods) {
|
|
353
461
|
return (index.h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
|
|
354
462
|
if (isSelected) {
|
|
@@ -397,14 +505,77 @@ const SavedPaymentMethod = class {
|
|
|
397
505
|
;
|
|
398
506
|
render() {
|
|
399
507
|
var _a, _b, _c;
|
|
400
|
-
return (index.h(index.Host, { key: '78487e52f549547f4c89f48a238a8916d77d4f1c', class: "payment-method" }, index.h("div", { key: 'd437a5f9e79356b1177703da2b5d7f4ca98072ce', class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick }, index.h("form-control-radio", { key: '0dd03b9ebae98c441c63717aba310d77e587b1c8', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${
|
|
508
|
+
return (index.h(index.Host, { key: '78487e52f549547f4c89f48a238a8916d77d4f1c', class: "payment-method" }, index.h("div", { key: 'd437a5f9e79356b1177703da2b5d7f4ca98072ce', class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick }, index.h("form-control-radio", { key: '0dd03b9ebae98c441c63717aba310d77e587b1c8', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
const sezzleLogo = (index.h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
513
|
+
display: 'inline',
|
|
514
|
+
width: '80px',
|
|
515
|
+
marginLeft: '5px',
|
|
516
|
+
marginTop: '-5px',
|
|
517
|
+
} }));
|
|
518
|
+
const SezzlePaymentMethod = class {
|
|
519
|
+
constructor(hostRef) {
|
|
520
|
+
index.registerInstance(this, hostRef);
|
|
521
|
+
this.paymentMethodOptionSelected = index.createEvent(this, "paymentMethodOptionSelected");
|
|
522
|
+
this.onPaymentMethodOptionClick = (e) => {
|
|
523
|
+
e.preventDefault();
|
|
524
|
+
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
525
|
+
};
|
|
526
|
+
this.initializeSezzleCheckout = () => {
|
|
527
|
+
let resolveSezzlePromise;
|
|
528
|
+
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
529
|
+
const bnpl = this.bnpl;
|
|
530
|
+
const amount = +this.paymentAmount; // convert to number
|
|
531
|
+
const Checkout = window.Checkout;
|
|
532
|
+
const checkout = new Checkout({
|
|
533
|
+
mode: 'popup',
|
|
534
|
+
publicKey: bnpl.provider_client_id,
|
|
535
|
+
apiMode: bnpl.provider_mode,
|
|
536
|
+
apiVersion: bnpl.provider_api_version,
|
|
537
|
+
});
|
|
538
|
+
checkout.sezzleButtonElement = this.sezzleButtonRef;
|
|
539
|
+
checkout.init({
|
|
540
|
+
onClick: function (event) {
|
|
541
|
+
event.preventDefault();
|
|
542
|
+
checkout.startCheckout({
|
|
543
|
+
checkout_url: bnpl.provider_checkout_url
|
|
544
|
+
});
|
|
545
|
+
},
|
|
546
|
+
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
547
|
+
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
548
|
+
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
549
|
+
});
|
|
550
|
+
this.sezzleCheckout = checkout;
|
|
551
|
+
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
componentDidRender() {
|
|
555
|
+
this.scriptRef.onload = () => {
|
|
556
|
+
this.sezzleButtonRef = document.createElement('button');
|
|
557
|
+
this.initializeSezzleCheckout();
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
561
|
+
if (!insuranceValidation.isValid) {
|
|
562
|
+
return { validationError: true };
|
|
563
|
+
}
|
|
564
|
+
this.sezzleButtonRef.click();
|
|
565
|
+
return this.sezzlePromise;
|
|
566
|
+
}
|
|
567
|
+
render() {
|
|
568
|
+
var _a, _b, _c;
|
|
569
|
+
return (index.h(index.Host, { key: '4ae50e7bbb15d0049d069edacd0d95ba7c13dbe5', class: "payment-method" }, index.h("script", { key: '42a0590d89626ba7a93852e421eb121626b48375', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", { key: '31a2a72650486c258267c6d4de3723f7afa5b063', class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick }, index.h("form-control-radio", { key: 'eac1adbcd82fcb4f9c440c53c40ce34af6092991', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: index.h("div", null, index.h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (index.h("small", null, index.h("span", null, (_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments.length), "\u00A0", index.h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", index.h("span", { class: "fw-bold" }, utils$1.formatCurrency((_c = this.installmentPlan) === null || _c === void 0 ? void 0 : _c.installments[0].amountInCents))))) }))));
|
|
401
570
|
}
|
|
402
571
|
};
|
|
403
572
|
|
|
404
573
|
exports.bank_account_form = BankAccountForm;
|
|
405
574
|
exports.card_form = CardForm;
|
|
575
|
+
exports.hidden_input = HiddenInput;
|
|
406
576
|
exports.justifi_billing_form = BillingForm;
|
|
407
577
|
exports.justifi_new_payment_method = NewPaymentMethod;
|
|
408
578
|
exports.justifi_payment_method_options = PaymentMethodOptions;
|
|
409
579
|
exports.justifi_save_new_payment_method = SaveNewPaymentMethod;
|
|
410
580
|
exports.justifi_saved_payment_method = SavedPaymentMethod;
|
|
581
|
+
exports.justifi_sezzle_payment_method = SezzlePaymentMethod;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var schemaValidations = require('./schema-validations-
|
|
3
|
+
var index_esm = require('./index.esm-CVuJLXJZ.js');
|
|
4
|
+
var schemaValidations = require('./schema-validations-BSeMee-o.js');
|
|
5
5
|
|
|
6
6
|
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
7
|
-
const schema =
|
|
7
|
+
const schema = index_esm.create$3({
|
|
8
8
|
legal_name: schemaValidations.businessNameValidation.required('Enter legal name'),
|
|
9
9
|
website_url: schemaValidations.websiteUrlValidation.required('Enter business website url'),
|
|
10
10
|
email: schemaValidations.emailValidation.required('Enter business email'),
|
|
@@ -15,7 +15,7 @@ const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
15
15
|
tax_id: schemaValidations.taxIdValidation.required('Enter valid tax ID (SSN or EIN) without dashes'),
|
|
16
16
|
date_of_incorporation: schemaValidations.dateOfIncorporationValidation.required('Enter date of incorporation'),
|
|
17
17
|
});
|
|
18
|
-
const easySchema =
|
|
18
|
+
const easySchema = index_esm.create$3({
|
|
19
19
|
legal_name: schemaValidations.businessNameValidation.required('Enter legal name'),
|
|
20
20
|
website_url: schemaValidations.websiteUrlValidation.nullable(),
|
|
21
21
|
email: schemaValidations.emailValidation.nullable(),
|
|
@@ -30,7 +30,7 @@ const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const additionalQuestionsSchema = (allowOptionalFields) => {
|
|
33
|
-
const schema =
|
|
33
|
+
const schema = index_esm.create$3({
|
|
34
34
|
business_revenue: schemaValidations.revenueValidation.required('Enter business revenue'),
|
|
35
35
|
business_payment_volume: schemaValidations.paymentVolumeValidation.required('Enter business payment volume'),
|
|
36
36
|
business_when_service_received: schemaValidations.whenServiceReceivedValidation.required('Select when service is received'),
|
|
@@ -39,7 +39,7 @@ const additionalQuestionsSchema = (allowOptionalFields) => {
|
|
|
39
39
|
business_seasonal: schemaValidations.seasonalBusinessValidation.required('Select business seasonal'),
|
|
40
40
|
business_other_payment_details: schemaValidations.otherPaymentDetailsValidation.nullable(),
|
|
41
41
|
});
|
|
42
|
-
const easySchema =
|
|
42
|
+
const easySchema = index_esm.create$3({
|
|
43
43
|
business_revenue: schemaValidations.revenueValidation.nullable(),
|
|
44
44
|
business_payment_volume: schemaValidations.paymentVolumeValidation.nullable(),
|
|
45
45
|
business_when_service_received: schemaValidations.whenServiceReceivedValidation.nullable(),
|
package/dist/cjs/{business-identity-schema-hk4UVEna.js → business-identity-schema-Diqj_WVQ.js}
RENAMED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var schemaValidations = require('./schema-validations-
|
|
3
|
+
var index_esm = require('./index.esm-CVuJLXJZ.js');
|
|
4
|
+
var schemaValidations = require('./schema-validations-BSeMee-o.js');
|
|
5
5
|
|
|
6
6
|
const addressSchema = (allowOptionalFields) => {
|
|
7
|
-
const schema =
|
|
7
|
+
const schema = index_esm.create$3({
|
|
8
8
|
line1: schemaValidations.lineOneValidation.required('Enter street address'),
|
|
9
9
|
line2: schemaValidations.lineTwoValidation.nullable(),
|
|
10
10
|
city: schemaValidations.cityValidation.required('Enter city'),
|
|
11
11
|
state: schemaValidations.stateValidation.required('Select state'),
|
|
12
12
|
postal_code: schemaValidations.postalValidation.required('Enter postal code'),
|
|
13
|
-
country:
|
|
13
|
+
country: index_esm.create$6().required('Select country')
|
|
14
14
|
});
|
|
15
|
-
const easySchema =
|
|
15
|
+
const easySchema = index_esm.create$3({
|
|
16
16
|
line1: schemaValidations.lineOneValidation.nullable(),
|
|
17
17
|
line2: schemaValidations.lineTwoValidation.nullable(),
|
|
18
18
|
city: schemaValidations.cityValidation.nullable(),
|
|
19
19
|
state: schemaValidations.stateValidation.nullable(),
|
|
20
20
|
postal_code: schemaValidations.postalValidation.nullable(),
|
|
21
|
-
country:
|
|
21
|
+
country: index_esm.create$6().required('Select country')
|
|
22
22
|
});
|
|
23
23
|
return allowOptionalFields ? easySchema : schema;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const identitySchema = (role, allowOptionalFields) => {
|
|
27
|
-
const schema =
|
|
27
|
+
const schema = index_esm.create$3({
|
|
28
28
|
name: schemaValidations.identityNameValidation.required(`Enter ${role} name`),
|
|
29
29
|
title: schemaValidations.identityTitleValidation.required(`Enter ${role} title`),
|
|
30
30
|
email: schemaValidations.emailValidation.required(`Enter ${role} email`),
|
|
31
31
|
phone: schemaValidations.phoneValidation.required('Enter phone number'),
|
|
32
32
|
dob_full: schemaValidations.dobValidation(role).required('Enter date of birth'),
|
|
33
|
-
ssn_last4:
|
|
33
|
+
ssn_last4: index_esm.create$6().nullable(),
|
|
34
34
|
identification_number: schemaValidations.ssnValidation,
|
|
35
35
|
address: addressSchema(allowOptionalFields),
|
|
36
36
|
});
|
|
37
|
-
const easySchema =
|
|
37
|
+
const easySchema = index_esm.create$3({
|
|
38
38
|
name: schemaValidations.identityNameValidation.required(`Enter ${role} name`),
|
|
39
39
|
title: schemaValidations.identityTitleValidation.nullable(),
|
|
40
40
|
email: schemaValidations.emailValidation.nullable(),
|
|
41
41
|
phone: schemaValidations.phoneValidation.nullable(),
|
|
42
42
|
dob_full: schemaValidations.dobValidation(role).nullable(),
|
|
43
|
-
ssn_last4:
|
|
43
|
+
ssn_last4: index_esm.create$6().nullable(),
|
|
44
44
|
identification_number: schemaValidations.ssnValidation.nullable(),
|
|
45
45
|
address: addressSchema(allowOptionalFields),
|
|
46
46
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var Api = require('./Api-c8NBCwu4.js');
|
|
4
|
-
require('./ComponentError-
|
|
5
|
-
require('./Checkout-
|
|
4
|
+
require('./ComponentError-C4MdBBMe.js');
|
|
5
|
+
require('./Checkout-TZnRz3-3.js');
|
|
6
6
|
require('./Pagination-Dediz133.js');
|
|
7
7
|
require('./Payment-D5UynU2f.js');
|
|
8
|
-
require('./Refund-
|
|
8
|
+
require('./Refund-DN-yzFgy.js');
|
|
9
9
|
require('./Business-DCRzZf0w.js');
|
|
10
10
|
require('./Dispute-CruQTF6_.js');
|
|
11
11
|
|
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _package = require('./package-
|
|
3
|
+
var _package = require('./package-o4g7MDiy.js');
|
|
4
4
|
var Api = require('./Api-c8NBCwu4.js');
|
|
5
|
-
require('./ComponentError-
|
|
6
|
-
require('./Checkout-
|
|
5
|
+
require('./ComponentError-C4MdBBMe.js');
|
|
6
|
+
require('./Checkout-TZnRz3-3.js');
|
|
7
7
|
require('./Pagination-Dediz133.js');
|
|
8
8
|
require('./Payment-D5UynU2f.js');
|
|
9
|
-
require('./Refund-
|
|
9
|
+
require('./Refund-DN-yzFgy.js');
|
|
10
10
|
require('./Business-DCRzZf0w.js');
|
|
11
11
|
require('./Dispute-CruQTF6_.js');
|
|
12
12
|
|
|
13
|
-
const latestVersion = async (packageName) => {
|
|
14
|
-
const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
|
|
15
|
-
const json = await response.json();
|
|
16
|
-
return json.version;
|
|
17
|
-
};
|
|
18
|
-
const checkPkgVersion = async () => {
|
|
19
|
-
const version = _package.packageJson.version;
|
|
20
|
-
const packageName = _package.packageJson.name;
|
|
21
|
-
const latest = await latestVersion(packageName);
|
|
22
|
-
// remove rc from version and everything that comes after -rc
|
|
23
|
-
const latestNotRC = latest.replace(/-rc.*/, '');
|
|
24
|
-
// checkif there's a major version difference
|
|
25
|
-
const versionParts = version.split('.');
|
|
26
|
-
const latestParts = latest.split('.');
|
|
27
|
-
if (versionParts[0] !== latestParts[0]) {
|
|
28
|
-
console.warn(`The package ${packageName} is out of date. The latest version is ${latestNotRC}. Please update.`);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
13
|
const api = Api.Api();
|
|
33
14
|
class AnalyticsService {
|
|
34
15
|
async record(body) {
|
|
@@ -111,5 +92,24 @@ class JustifiAnalytics {
|
|
|
111
92
|
}
|
|
112
93
|
}
|
|
113
94
|
|
|
95
|
+
const latestVersion = async (packageName) => {
|
|
96
|
+
const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
|
|
97
|
+
const json = await response.json();
|
|
98
|
+
return json.version;
|
|
99
|
+
};
|
|
100
|
+
const checkPkgVersion = async () => {
|
|
101
|
+
const version = _package.packageJson.version;
|
|
102
|
+
const packageName = _package.packageJson.name;
|
|
103
|
+
const latest = await latestVersion(packageName);
|
|
104
|
+
// remove rc from version and everything that comes after -rc
|
|
105
|
+
const latestNotRC = latest.replace(/-rc.*/, '');
|
|
106
|
+
// checkif there's a major version difference
|
|
107
|
+
const versionParts = version.split('.');
|
|
108
|
+
const latestParts = latest.split('.');
|
|
109
|
+
if (versionParts[0] !== latestParts[0]) {
|
|
110
|
+
console.warn(`The package ${packageName} is out of date. The latest version is ${latestNotRC}. Please update.`);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
114
|
exports.JustifiAnalytics = JustifiAnalytics;
|
|
115
115
|
exports.checkPkgVersion = checkPkgVersion;
|