@justifi/webcomponents 5.7.3-rc-01 → 5.7.4
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-BDFOEJv_.js → Refund-BFE-2OxN.js} +56 -0
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -7
- package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -20
- package/dist/cjs/{business-additional-questions-schema-CHOaeZot.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
- package/dist/cjs/{business-identity-schema-DmpEndsx.js → business-identity-schema-Diqj_WVQ.js} +10 -10
- package/dist/cjs/{business.service-ev-3rHag.js → business.service-DNvLrr-n.js} +3 -4
- package/dist/cjs/{Analytics-DYN4hp2b.js → check-pkg-version-BlUxyRaM.js} +23 -24
- package/dist/cjs/{checkout.service-D4hTYr1i.js → checkout.service-Bx0RBq-I.js} +3 -4
- package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -5
- package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
- package/dist/cjs/{dispute.service-Dru9NStj.js → dispute.service-DbUcp4sD.js} +3 -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.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-AOibpML7.js → get-payment-details-C7Ezks0M.js} +4 -5
- package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
- package/dist/cjs/{get-subaccounts-Dw7CbPDi.js → get-subaccounts-UpfFbDHH.js} +4 -5
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/iframe-input-styles-state-BJ9xnomM.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 +50 -24
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -13
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +42 -42
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +16 -17
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +67 -24
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -12
- 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 +12 -13
- 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 +10 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -11
- 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 +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -18
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -17
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -6
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DF9mLjoQ.js → package-v-c3ZR5a.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-rsnscZu7.js → payment.service-CVZgDrZw.js} +3 -4
- package/dist/cjs/payments-list-core.cjs.entry.js +4 -5
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-BnmI3X4n.js → payout.service-D6kmeDsy.js} +3 -4
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -5
- package/dist/cjs/{schema-validations-C0BNwMBi.js → schema-validations-BSeMee-o.js} +31 -54
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -6
- package/dist/cjs/{terminal-orders-table-OxMHSAJ1.js → terminal-orders-table-CUOWHQ6V.js} +3 -4
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service--PPaq5xS.js → terminal.service-BxRchD7X.js} +3 -4
- package/dist/cjs/terminals-list-core.cjs.entry.js +4 -5
- 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/collection-manifest.json +1 -8
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +36 -8
- package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -47
- 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 +250 -841
- package/dist/esm/{Api-CqimcNgb.js → Api-BNYhCiE2.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-CwUn_GFj.js → Refund-DDIEc_gu.js} +56 -2
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-D_Q0kAPD.js → badge-C-nwyQ3h.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -11
- package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -18
- package/dist/esm/{business-additional-questions-schema-0lssJqN7.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-Bel1K5mu.js → business-identity-schema-BsrgqgDl.js} +2 -2
- package/dist/esm/{business.service-BM8hLxHS.js → business.service-DP2HUV0w.js} +5 -6
- package/dist/esm/{button-BVAxQPpP.js → button-BGlG9iX5.js} +1 -1
- package/dist/esm/{Analytics-DR277kvb.js → check-pkg-version-Dff5h73V.js} +25 -26
- package/dist/esm/{checkout.service-CuCgG9hv.js → checkout.service-DkTEFCSZ.js} +5 -6
- package/dist/esm/checkouts-list-core.entry.js +11 -12
- package/dist/esm/{checkouts-table-Cc6U-0md.js → checkouts-table-rhDm-zAB.js} +3 -3
- package/dist/esm/custom-popper_4.entry.js +8 -8
- package/dist/esm/{dispute.service-rB4Hq6ot.js → dispute.service-CUcw-v4N.js} +5 -6
- 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-_SAT-ts2.js → form-control-error-text-CwJc1ShT.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-Cjeu_VrV.js → form-control-help-text-COx__-BM.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-DtkGDTwo.js → get-payment-details-Ea6HDOQH.js} +6 -7
- package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
- package/dist/esm/{get-subaccounts-C-ENQBmY.js → get-subaccounts-DcHphsRK.js} +7 -8
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-5FIT-wD7.js → header-1-Dj4_I_9S.js} +1 -1
- package/dist/esm/{header-3-Ce9WLWBm.js → header-3-CLoMDfp0.js} +1 -1
- package/dist/esm/iframe-input-styles-state-CfSmDqfA.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-BcwZy_5w.js → insurance-state-CUJP_TDB.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +46 -20
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -13
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/justifi-business-details.entry.js +13 -14
- package/dist/esm/justifi-business-form.entry.js +19 -20
- 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 -23
- 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 +1 -1
- 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 +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -15
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -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 +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +17 -18
- package/dist/esm/justifi-refund-payment.entry.js +15 -16
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -18
- 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/justifi-tokenize-payment-method.entry.js +11 -19
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CyXXks-Q.js → package-DzXsHdKv.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-DoUv1QsX.js → payment.service-BBse35Bb.js} +5 -6
- package/dist/esm/payments-list-core.entry.js +12 -13
- package/dist/esm/{payments-status-BeL2gi3P.js → payments-status-CO0mZyxH.js} +1 -1
- package/dist/esm/{payments-table-MrDAlH2o.js → payments-table-BYmcN_eJ.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-B_Fm08zQ.js → payout.service-DYk7xoLp.js} +5 -6
- package/dist/esm/payouts-list-core.entry.js +12 -13
- package/dist/esm/{payouts-status-BxbhUjA3.js → payouts-status-BqhlFWZJ.js} +1 -1
- package/dist/esm/{payouts-table-HoX3UYIj.js → payouts-table-BoNMXUDt.js} +3 -3
- package/dist/esm/{schema-validations-DYV7urvw.js → schema-validations-DLWfpHyI.js} +2 -23
- package/dist/esm/{skeleton-CPNYhX-V.js → skeleton-D6agoQ_l.js} +1 -1
- package/dist/esm/{spinner-Cl-6YJPf.js → spinner-C8twYXzL.js} +1 -1
- package/dist/esm/{table-RCk8zh4L.js → table-BzdzS7PI.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-DxHLNkx_.js → terminal-orders-table-BxZFOqli.js} +7 -8
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-2VkdfNas.js → terminal.service-WIpzxBkU.js} +5 -6
- package/dist/esm/terminals-list-core.entry.js +11 -12
- package/dist/esm/{terminals-table-v-LOevYA.js → terminals-table-DVreYpwc.js} +3 -3
- package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.js} +1 -1
- package/dist/esm/{utils-1WrbuHVR.js → utils-DGozGJLI.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 +55 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -2
- 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 +37 -11
- package/dist/module/business-bank-account-form-step.js +0 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +0 -1
- package/dist/module/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 -22
- package/dist/module/checkout-core.js +38 -32
- package/dist/module/checkout.service.js +0 -1
- package/dist/module/checkouts-list-core2.js +2 -3
- 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-actions.js +0 -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/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/form.js +1 -1
- package/dist/module/get-payment-details.js +0 -1
- package/dist/module/get-subaccounts.js +0 -1
- 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 -2
- package/dist/module/justifi-checkout.js +99 -48
- package/dist/module/justifi-checkouts-list-filters.js +2 -3
- package/dist/module/justifi-checkouts-list.js +2 -3
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-order-terminals.js +4 -5
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payment-transactions-list.js +4 -5
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -3
- package/dist/module/justifi-payout-details.js +1 -2
- package/dist/module/justifi-payout-transactions-list.js +4 -5
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -3
- package/dist/module/justifi-refund-payment.js +2 -3
- package/dist/module/justifi-season-interruption-insurance.js +11 -10
- package/dist/module/justifi-sezzle-payment-method.js +1 -108
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -4
- package/dist/module/justifi-terminal-orders-list.js +3 -4
- package/dist/module/justifi-terminals-list-filters.js +2 -3
- package/dist/module/justifi-terminals-list.js +3 -4
- package/dist/module/justifi-tokenize-payment-method.js +40 -42
- 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/payment.service.js +0 -1
- package/dist/module/payments-list-core2.js +2 -3
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +0 -1
- package/dist/module/payouts-list-core2.js +2 -3
- 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 +2 -23
- 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 -3
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +0 -1
- package/dist/module/terminals-list-core2.js +2 -3
- package/dist/types/api/Checkout.d.ts +13 -14
- package/dist/types/api/ComponentError.d.ts +1 -3
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
- 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 -165
- package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
- package/dist/webcomponents/p--B09FkmB.js +1 -0
- package/dist/webcomponents/p-08b3ec57.entry.js +1 -0
- package/dist/webcomponents/p-0b28597b.entry.js +1 -0
- package/dist/webcomponents/p-0b52d1dd.entry.js +1 -0
- package/dist/webcomponents/p-0b964616.entry.js +1 -0
- package/dist/webcomponents/p-186a25e3.entry.js +1 -0
- package/dist/webcomponents/p-234c0b0a.entry.js +1 -0
- package/dist/webcomponents/{p-df2ad580.entry.js → p-27a7ba0d.entry.js} +1 -1
- package/dist/webcomponents/p-297b4a1a.entry.js +1 -0
- package/dist/webcomponents/p-299c215b.entry.js +1 -0
- package/dist/webcomponents/p-2GKzt6ql.js +1 -0
- package/dist/webcomponents/p-39236b05.entry.js +1 -0
- package/dist/webcomponents/{p-5da3ba38.entry.js → p-3af7b1ee.entry.js} +1 -1
- package/dist/webcomponents/{p-15c63931.entry.js → p-3ddaea2d.entry.js} +1 -1
- package/dist/webcomponents/p-41ce682a.entry.js +1 -0
- package/dist/webcomponents/{p-5ea3cfca.entry.js → p-454d5cab.entry.js} +1 -1
- package/dist/webcomponents/p-4bf6f767.entry.js +1 -0
- package/dist/webcomponents/p-59a2ccdb.entry.js +1 -0
- package/dist/webcomponents/p-68425065.entry.js +1 -0
- package/dist/webcomponents/p-69e8b394.entry.js +1 -0
- package/dist/webcomponents/p-6ab28931.entry.js +1 -0
- package/dist/webcomponents/p-6f08cc3e.entry.js +1 -0
- package/dist/webcomponents/p-74412d52.entry.js +1 -0
- package/dist/webcomponents/p-77957f7f.entry.js +1 -0
- package/dist/webcomponents/p-7a254093.entry.js +20 -0
- package/dist/webcomponents/p-7db9f780.entry.js +1 -0
- package/dist/webcomponents/p-7fbdaa8a.entry.js +1 -0
- package/dist/webcomponents/p-86112ed3.entry.js +1 -0
- package/dist/webcomponents/p-863d53ef.entry.js +1 -0
- package/dist/webcomponents/p-8a62bc7a.entry.js +1 -0
- package/dist/webcomponents/p-8b02e43a.entry.js +1 -0
- package/dist/webcomponents/p-8f354461.entry.js +1 -0
- package/dist/webcomponents/{p-584ba20d.entry.js → p-90d36a2f.entry.js} +1 -1
- package/dist/webcomponents/{p-be51c7c5.entry.js → p-959d5f08.entry.js} +1 -1
- package/dist/webcomponents/p-972531a2.entry.js +1 -0
- package/dist/webcomponents/{p-b3e6d27c.entry.js → p-99ff608b.entry.js} +1 -1
- package/dist/webcomponents/p-9bb3ccba.entry.js +1 -0
- package/dist/webcomponents/{p-e8294f7e.entry.js → p-9be5b03a.entry.js} +1 -1
- package/dist/webcomponents/{p-f71b1ff0.entry.js → p-9e7c8e33.entry.js} +1 -1
- package/dist/webcomponents/p-9ef53bb1.entry.js +1 -0
- package/dist/webcomponents/p-AW4YV_IW.js +1 -0
- package/dist/webcomponents/p-B2ts3XP0.js +1 -0
- package/dist/webcomponents/p-BBEApkWm.js +1 -0
- package/dist/webcomponents/{p-B4MIwTdb.js → p-BC1KMlPG.js} +1 -1
- package/dist/webcomponents/p-BERbc4aX.js +1 -0
- package/dist/webcomponents/p-BLm_qZkx.js +1 -0
- package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
- package/dist/webcomponents/p-BdTK0wi9.js +1 -0
- package/dist/webcomponents/{p-Yj41tobi.js → p-BjDSEZvx.js} +1 -1
- package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
- package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
- package/dist/webcomponents/{p-D3SYNGyb.js → p-C-78OQ89.js} +1 -1
- package/dist/webcomponents/p-C26QVwoo.js +1 -0
- package/dist/webcomponents/p-C5RuuShs.js +1 -0
- package/dist/webcomponents/p-C6qAZgXn.js +1 -0
- package/dist/webcomponents/{p-B7VsiIW-.js → p-CEqUppok.js} +1 -1
- package/dist/webcomponents/{p-BSUCBhkJ.js → p-CNv7zeGM.js} +1 -1
- package/dist/webcomponents/p-CU_goaUQ.js +1 -0
- package/dist/webcomponents/p-CgSKeuxa.js +1 -0
- package/dist/webcomponents/p-Co9WxzRf.js +1 -0
- package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
- package/dist/webcomponents/{p-CqVelcDt.js → p-DOb1iL29.js} +1 -1
- package/dist/webcomponents/p-DPUXZApk.js +1 -0
- package/dist/webcomponents/p-DVnVdicA.js +1 -0
- package/dist/webcomponents/p-DbhOyu_u.js +1 -0
- package/dist/webcomponents/p-DcwpS5VC.js +1 -0
- package/dist/webcomponents/p-DgPQlpzy.js +1 -0
- package/dist/webcomponents/{p-Ctw40vkk.js → p-DmLTJr3R.js} +1 -1
- package/dist/webcomponents/p-DniQ6yo6.js +1 -0
- package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
- package/dist/webcomponents/p-DzXsHdKv.js +1 -0
- package/dist/webcomponents/{p-BhLPwu1L.js → p-EVfmZi89.js} +1 -1
- package/dist/webcomponents/p-JOSiCHl7.js +1 -0
- package/dist/webcomponents/p-SdntD1xf.js +1 -0
- package/dist/webcomponents/p-UyFPa3Jb.js +1 -0
- package/dist/webcomponents/p-a1860b96.entry.js +1 -0
- package/dist/webcomponents/{p-ea664ada.entry.js → p-a7f5262a.entry.js} +1 -1
- package/dist/webcomponents/{p-712220f9.entry.js → p-ae62bc55.entry.js} +1 -1
- package/dist/webcomponents/p-am93SGf-.js +1 -0
- package/dist/webcomponents/p-b2086753.entry.js +1 -0
- package/dist/webcomponents/p-b3de3312.entry.js +1 -0
- package/dist/webcomponents/p-b4da0e31.entry.js +1 -0
- package/dist/webcomponents/{p-ff223825.entry.js → p-ba7c7025.entry.js} +1 -1
- package/dist/webcomponents/p-bd387500.entry.js +1 -0
- package/dist/webcomponents/p-c3b8c25f.entry.js +1 -0
- package/dist/webcomponents/p-c5f3f2cc.entry.js +1 -0
- package/dist/webcomponents/p-c60219ba.entry.js +1 -0
- package/dist/webcomponents/p-caa90e8c.entry.js +1 -0
- package/dist/webcomponents/{p-9a17fd5a.entry.js → p-d144c5e5.entry.js} +1 -1
- package/dist/webcomponents/p-d44c7900.entry.js +1 -0
- package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
- package/dist/webcomponents/{p-ef9dcfe1.entry.js → p-ded52cad.entry.js} +1 -1
- package/dist/webcomponents/p-df044e50.entry.js +1 -0
- package/dist/webcomponents/p-e0c8e41a.entry.js +1 -0
- package/dist/webcomponents/p-e8a1dbe2.entry.js +1 -0
- package/dist/webcomponents/p-ef930355.entry.js +1 -0
- package/dist/webcomponents/p-f4aa30b8.entry.js +1 -0
- package/dist/webcomponents/p-f7c23a96.entry.js +1 -0
- package/dist/webcomponents/p-f9510372.entry.js +1 -0
- package/dist/webcomponents/p-fe8938ba.entry.js +1 -0
- package/dist/webcomponents/p-iPHDHB_q.js +1 -0
- package/dist/webcomponents/p-lfLAtTgJ.js +1 -0
- package/dist/webcomponents/p-n0Sbmvzb.js +1 -0
- package/dist/webcomponents/p-oE-E7kjN.js +1 -0
- 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/Document-rXGBUaOh.js +0 -58
- package/dist/cjs/billing-form-schema-oZ4GROWP.js +0 -26
- package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
- package/dist/cjs/checkout.store-osqdxFMq.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 -51
- 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 -205
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -50
- 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 -119
- 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 -123
- 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/Document-Ct-uNz2r.js +0 -55
- package/dist/esm/billing-form-schema-PFvYpvy4.js +0 -24
- package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
- package/dist/esm/checkout.store-DQrlfeus.js +0 -27
- package/dist/esm/justifi-bank-account-form.entry.js +0 -83
- package/dist/esm/justifi-billing-information-form.entry.js +0 -49
- 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 -203
- package/dist/esm/justifi-postal-code-form.entry.js +0 -48
- 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/Document.js +0 -55
- 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 -103
- 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 -111
- 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 -219
- 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-00900e52.entry.js +0 -1
- package/dist/webcomponents/p-025ae692.entry.js +0 -1
- package/dist/webcomponents/p-02e26641.entry.js +0 -1
- package/dist/webcomponents/p-04c91ec1.entry.js +0 -1
- package/dist/webcomponents/p-0d5e93b3.entry.js +0 -1
- package/dist/webcomponents/p-19b5f93a.entry.js +0 -1
- package/dist/webcomponents/p-1ac365b4.entry.js +0 -1
- package/dist/webcomponents/p-1d64d86b.entry.js +0 -1
- package/dist/webcomponents/p-20d7db42.entry.js +0 -1
- package/dist/webcomponents/p-25b310f0.entry.js +0 -1
- package/dist/webcomponents/p-271b131d.entry.js +0 -1
- package/dist/webcomponents/p-2882b4e9.entry.js +0 -1
- package/dist/webcomponents/p-2a08ba01.entry.js +0 -1
- package/dist/webcomponents/p-2f027626.entry.js +0 -1
- package/dist/webcomponents/p-2fa36c0e.entry.js +0 -1
- package/dist/webcomponents/p-379584fb.entry.js +0 -1
- package/dist/webcomponents/p-39f31e23.entry.js +0 -1
- package/dist/webcomponents/p-3b6888c5.entry.js +0 -1
- package/dist/webcomponents/p-3d62f9a5.entry.js +0 -1
- package/dist/webcomponents/p-3edd5ebd.entry.js +0 -1
- package/dist/webcomponents/p-4232760b.entry.js +0 -1
- package/dist/webcomponents/p-4be4f7b4.entry.js +0 -1
- package/dist/webcomponents/p-531738ae.entry.js +0 -1
- package/dist/webcomponents/p-54019e68.entry.js +0 -1
- package/dist/webcomponents/p-5bc6f1e6.entry.js +0 -20
- package/dist/webcomponents/p-5bfbb0f8.entry.js +0 -1
- package/dist/webcomponents/p-5f9dbaff.entry.js +0 -1
- package/dist/webcomponents/p-6b229318.entry.js +0 -1
- package/dist/webcomponents/p-6fc1ace5.entry.js +0 -1
- package/dist/webcomponents/p-716d41f2.entry.js +0 -1
- package/dist/webcomponents/p-7253f1ea.entry.js +0 -1
- package/dist/webcomponents/p-80b662de.entry.js +0 -1
- package/dist/webcomponents/p-82164a5e.entry.js +0 -1
- package/dist/webcomponents/p-8532c68c.entry.js +0 -1
- package/dist/webcomponents/p-8590c5df.entry.js +0 -1
- package/dist/webcomponents/p-8e555a6e.entry.js +0 -1
- package/dist/webcomponents/p-96f89c69.entry.js +0 -1
- package/dist/webcomponents/p-98a39544.entry.js +0 -1
- package/dist/webcomponents/p-9a9f9c57.entry.js +0 -1
- package/dist/webcomponents/p-B8Ovjy6S.js +0 -1
- package/dist/webcomponents/p-BE5Nvydk.js +0 -1
- package/dist/webcomponents/p-BGHVK-vQ.js +0 -1
- package/dist/webcomponents/p-BPCw4WEY.js +0 -1
- package/dist/webcomponents/p-BhrFjjAs.js +0 -1
- package/dist/webcomponents/p-Bond4qGX.js +0 -1
- package/dist/webcomponents/p-BpEw7AJl.js +0 -1
- package/dist/webcomponents/p-C-WgCIei.js +0 -1
- package/dist/webcomponents/p-CCpqJxzB.js +0 -1
- package/dist/webcomponents/p-CLpgfEbx.js +0 -1
- package/dist/webcomponents/p-CRYPNa2o.js +0 -1
- package/dist/webcomponents/p-CeNlJX4-.js +0 -1
- package/dist/webcomponents/p-CnnRWu7z.js +0 -1
- package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
- package/dist/webcomponents/p-CvChBLtI.js +0 -1
- package/dist/webcomponents/p-CwHYDF33.js +0 -1
- package/dist/webcomponents/p-CyXXks-Q.js +0 -1
- package/dist/webcomponents/p-Czro_9VO.js +0 -1
- package/dist/webcomponents/p-DKClunJd.js +0 -1
- package/dist/webcomponents/p-DOB09NZD.js +0 -1
- package/dist/webcomponents/p-DUdzWNqB.js +0 -1
- package/dist/webcomponents/p-D_FOQEGU.js +0 -1
- package/dist/webcomponents/p-DaS3t0DL.js +0 -1
- package/dist/webcomponents/p-Dge4w7_c.js +0 -1
- package/dist/webcomponents/p-DkWBoLsd.js +0 -1
- package/dist/webcomponents/p-DknV-QPT.js +0 -1
- package/dist/webcomponents/p-DuiQuWNq.js +0 -1
- package/dist/webcomponents/p-Dw6NWKHn.js +0 -1
- package/dist/webcomponents/p-DzPrenCi.js +0 -1
- package/dist/webcomponents/p-NqdaxjDT.js +0 -1
- package/dist/webcomponents/p-YDuIVoos.js +0 -1
- package/dist/webcomponents/p-a2db11b5.entry.js +0 -1
- package/dist/webcomponents/p-a31913e3.entry.js +0 -1
- package/dist/webcomponents/p-a4d457e9.entry.js +0 -1
- package/dist/webcomponents/p-b8ee41c1.entry.js +0 -1
- package/dist/webcomponents/p-bde749ac.entry.js +0 -1
- package/dist/webcomponents/p-bf16b11c.entry.js +0 -1
- package/dist/webcomponents/p-ce291c6a.entry.js +0 -1
- package/dist/webcomponents/p-d82b509a.entry.js +0 -1
- package/dist/webcomponents/p-d9b06582.entry.js +0 -1
- package/dist/webcomponents/p-dbc02ba8.entry.js +0 -1
- package/dist/webcomponents/p-dcad0df5.entry.js +0 -1
- package/dist/webcomponents/p-e03630ec.entry.js +0 -1
- package/dist/webcomponents/p-e07sVz4Z.js +0 -1
- package/dist/webcomponents/p-e563df65.entry.js +0 -1
- package/dist/webcomponents/p-ec9bb3f6.entry.js +0 -1
- package/dist/webcomponents/p-ecf6a315.entry.js +0 -1
- package/dist/webcomponents/p-f7e24a51.entry.js +0 -1
- package/dist/webcomponents/p-hDoH7hHP.js +0 -1
- package/dist/webcomponents/p-pGzabKc7.js +0 -1
- package/dist/webcomponents/p-zucQG3cz.js +0 -1
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import checkoutStore from "../../store/checkout.store";
|
|
3
|
-
import JustifiAnalytics from "../../api/Analytics";
|
|
4
|
-
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
5
|
-
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api";
|
|
6
|
-
import { makeCheckoutComplete, makeGetCheckout } from "../../actions/checkout/checkout-actions";
|
|
7
|
-
import { CheckoutService } from "../../api/services/checkout.service";
|
|
8
|
-
export class CheckoutWrapper {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.savePaymentMethod = false;
|
|
11
|
-
}
|
|
12
|
-
connectedCallback() {
|
|
13
|
-
this.observer = new MutationObserver(() => {
|
|
14
|
-
this.queryFormRefs();
|
|
15
|
-
});
|
|
16
|
-
this.observer.observe(this.hostEl, {
|
|
17
|
-
childList: true,
|
|
18
|
-
subtree: true
|
|
19
|
-
});
|
|
20
|
-
checkoutStore.checkoutId = this.checkoutId;
|
|
21
|
-
const config = {
|
|
22
|
-
authToken: this.authToken,
|
|
23
|
-
checkoutId: this.checkoutId,
|
|
24
|
-
service: new CheckoutService()
|
|
25
|
-
};
|
|
26
|
-
this.getCheckout = makeGetCheckout(config);
|
|
27
|
-
this.completeCheckout = makeCheckoutComplete(config);
|
|
28
|
-
}
|
|
29
|
-
componentWillLoad() {
|
|
30
|
-
this.analytics = new JustifiAnalytics(this);
|
|
31
|
-
checkPkgVersion();
|
|
32
|
-
checkoutStore.authToken = this.authToken;
|
|
33
|
-
checkoutStore.accountId = this.accountId;
|
|
34
|
-
this.fetchCheckout();
|
|
35
|
-
}
|
|
36
|
-
componentDidLoad() {
|
|
37
|
-
this.queryFormRefs();
|
|
38
|
-
}
|
|
39
|
-
disconnectedCallback() {
|
|
40
|
-
var _a;
|
|
41
|
-
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
42
|
-
}
|
|
43
|
-
fetchCheckout() {
|
|
44
|
-
if (this.getCheckout) {
|
|
45
|
-
this.getCheckout({
|
|
46
|
-
onSuccess: ({ checkout }) => {
|
|
47
|
-
var _a, _b, _c, _d;
|
|
48
|
-
checkoutStore.paymentMethods = checkout.payment_methods;
|
|
49
|
-
checkoutStore.paymentMethodGroupId = checkout.payment_method_group_id;
|
|
50
|
-
checkoutStore.paymentDescription = checkout.payment_description;
|
|
51
|
-
checkoutStore.totalAmount = checkout.total_amount;
|
|
52
|
-
checkoutStore.paymentAmount = checkout.payment_amount;
|
|
53
|
-
checkoutStore.bnplEnabled = checkout.payment_settings.bnpl_payments;
|
|
54
|
-
checkoutStore.bnplProviderClientId = (_a = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _a === void 0 ? void 0 : _a.provider_client_id;
|
|
55
|
-
checkoutStore.bnplProviderMode = (_b = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _b === void 0 ? void 0 : _b.provider_mode;
|
|
56
|
-
checkoutStore.bnplProviderApiVersion = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_api_version;
|
|
57
|
-
checkoutStore.bnplProviderCheckoutUrl = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_checkout_url;
|
|
58
|
-
},
|
|
59
|
-
onError: (error) => {
|
|
60
|
-
this.errorEvent.emit({
|
|
61
|
-
message: error.message,
|
|
62
|
-
errorCode: ComponentErrorCodes.FETCH_ERROR,
|
|
63
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
queryFormRefs() {
|
|
70
|
-
this.paymentMethodFormRef = this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form');
|
|
71
|
-
this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
|
|
72
|
-
this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
|
|
73
|
-
this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
|
|
74
|
-
}
|
|
75
|
-
async tokenizePaymentMethod(tokenizeArgs) {
|
|
76
|
-
var _a, _b;
|
|
77
|
-
const billingInfoValues = (_b = await ((_a = this.billingInformationFormRef) === null || _a === void 0 ? void 0 : _a.getValues())) !== null && _b !== void 0 ? _b : {};
|
|
78
|
-
const combinedBillingInfo = Object.assign(Object.assign({}, tokenizeArgs), billingInfoValues);
|
|
79
|
-
const paymentMethodMetadata = Object.assign({ accountId: this.accountId, payment_method_group_id: undefined }, combinedBillingInfo);
|
|
80
|
-
if (this.savePaymentMethod) {
|
|
81
|
-
paymentMethodMetadata.payment_method_group_id = checkoutStore.paymentMethodGroupId;
|
|
82
|
-
}
|
|
83
|
-
return this.paymentMethodFormRef.tokenize({
|
|
84
|
-
clientId: this.authToken,
|
|
85
|
-
paymentMethodMetadata,
|
|
86
|
-
account: this.accountId,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
async getPaymentMethod(submitCheckoutArgs) {
|
|
90
|
-
if (!this.paymentMethodFormRef) {
|
|
91
|
-
return checkoutStore.selectedPaymentMethod;
|
|
92
|
-
}
|
|
93
|
-
const { error, id: token } = await this.tokenizePaymentMethod(submitCheckoutArgs);
|
|
94
|
-
if (error) {
|
|
95
|
-
this.errorEvent.emit({
|
|
96
|
-
errorCode: error.code,
|
|
97
|
-
message: error.message,
|
|
98
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
99
|
-
});
|
|
100
|
-
return undefined;
|
|
101
|
-
}
|
|
102
|
-
return token;
|
|
103
|
-
}
|
|
104
|
-
async validate() {
|
|
105
|
-
var _a, _b;
|
|
106
|
-
const promises = [
|
|
107
|
-
(_a = this.paymentMethodFormRef) === null || _a === void 0 ? void 0 : _a.validate(),
|
|
108
|
-
(_b = this.billingInformationFormRef) === null || _b === void 0 ? void 0 : _b.validate()
|
|
109
|
-
];
|
|
110
|
-
if (this.insuranceFormRef) {
|
|
111
|
-
promises.push(this.insuranceFormRef.validate());
|
|
112
|
-
}
|
|
113
|
-
const validationResults = await Promise.all(promises);
|
|
114
|
-
return validationResults.every(result => (result === null || result === void 0 ? void 0 : result.isValid) !== false);
|
|
115
|
-
}
|
|
116
|
-
async submitCheckout(submitCheckoutArgs) {
|
|
117
|
-
var _a;
|
|
118
|
-
const isValid = await this.validate();
|
|
119
|
-
if (!isValid) {
|
|
120
|
-
this.errorEvent.emit({
|
|
121
|
-
message: 'Please fill in all required fields.',
|
|
122
|
-
errorCode: ComponentErrorCodes.VALIDATION_ERROR,
|
|
123
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
124
|
-
});
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
let payment;
|
|
128
|
-
if (checkoutStore.selectedPaymentMethod === 'sezzle') {
|
|
129
|
-
const insuranceValidation = this.insuranceFormRef ? await this.insuranceFormRef.validate() : { isValid: true };
|
|
130
|
-
const sezzleResult = await this.sezzlePaymentMethodRef.resolvePaymentMethod(insuranceValidation);
|
|
131
|
-
if (sezzleResult.error) {
|
|
132
|
-
this.errorEvent.emit({
|
|
133
|
-
message: sezzleResult.error.message,
|
|
134
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
135
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
136
|
-
});
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
else if (((_a = sezzleResult.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
140
|
-
payment = {
|
|
141
|
-
payment_mode: 'bnpl',
|
|
142
|
-
payment_token: undefined,
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
const paymentMethod = await this.getPaymentMethod(submitCheckoutArgs);
|
|
148
|
-
if (!paymentMethod) {
|
|
149
|
-
this.errorEvent.emit({
|
|
150
|
-
message: 'Payment method tokenization failed.',
|
|
151
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
152
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
153
|
-
});
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
;
|
|
157
|
-
payment = {
|
|
158
|
-
payment_mode: 'ecom',
|
|
159
|
-
payment_token: paymentMethod,
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
this.completeCheckout({
|
|
163
|
-
payment,
|
|
164
|
-
onSuccess: ({ checkout }) => {
|
|
165
|
-
this.checkoutComplete.emit({
|
|
166
|
-
checkout,
|
|
167
|
-
message: 'Checkout completed successfully',
|
|
168
|
-
});
|
|
169
|
-
},
|
|
170
|
-
onError: (error) => {
|
|
171
|
-
this.errorEvent.emit({
|
|
172
|
-
message: error.message,
|
|
173
|
-
errorCode: ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
|
|
174
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
175
|
-
});
|
|
176
|
-
},
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
render() {
|
|
180
|
-
return (h(Host, { key: '12db8b2a4ea3308772604d50e9223e48dda0f26f' }));
|
|
181
|
-
}
|
|
182
|
-
static get is() { return "justifi-modular-checkout"; }
|
|
183
|
-
static get properties() {
|
|
184
|
-
return {
|
|
185
|
-
"authToken": {
|
|
186
|
-
"type": "string",
|
|
187
|
-
"attribute": "auth-token",
|
|
188
|
-
"mutable": false,
|
|
189
|
-
"complexType": {
|
|
190
|
-
"original": "string",
|
|
191
|
-
"resolved": "string",
|
|
192
|
-
"references": {}
|
|
193
|
-
},
|
|
194
|
-
"required": false,
|
|
195
|
-
"optional": false,
|
|
196
|
-
"docs": {
|
|
197
|
-
"tags": [],
|
|
198
|
-
"text": ""
|
|
199
|
-
},
|
|
200
|
-
"getter": false,
|
|
201
|
-
"setter": false,
|
|
202
|
-
"reflect": false
|
|
203
|
-
},
|
|
204
|
-
"accountId": {
|
|
205
|
-
"type": "string",
|
|
206
|
-
"attribute": "account-id",
|
|
207
|
-
"mutable": false,
|
|
208
|
-
"complexType": {
|
|
209
|
-
"original": "string",
|
|
210
|
-
"resolved": "string",
|
|
211
|
-
"references": {}
|
|
212
|
-
},
|
|
213
|
-
"required": false,
|
|
214
|
-
"optional": false,
|
|
215
|
-
"docs": {
|
|
216
|
-
"tags": [],
|
|
217
|
-
"text": ""
|
|
218
|
-
},
|
|
219
|
-
"getter": false,
|
|
220
|
-
"setter": false,
|
|
221
|
-
"reflect": false
|
|
222
|
-
},
|
|
223
|
-
"checkoutId": {
|
|
224
|
-
"type": "string",
|
|
225
|
-
"attribute": "checkout-id",
|
|
226
|
-
"mutable": false,
|
|
227
|
-
"complexType": {
|
|
228
|
-
"original": "string",
|
|
229
|
-
"resolved": "string",
|
|
230
|
-
"references": {}
|
|
231
|
-
},
|
|
232
|
-
"required": false,
|
|
233
|
-
"optional": false,
|
|
234
|
-
"docs": {
|
|
235
|
-
"tags": [],
|
|
236
|
-
"text": ""
|
|
237
|
-
},
|
|
238
|
-
"getter": false,
|
|
239
|
-
"setter": false,
|
|
240
|
-
"reflect": false
|
|
241
|
-
},
|
|
242
|
-
"savePaymentMethod": {
|
|
243
|
-
"type": "boolean",
|
|
244
|
-
"attribute": "save-payment-method",
|
|
245
|
-
"mutable": false,
|
|
246
|
-
"complexType": {
|
|
247
|
-
"original": "boolean",
|
|
248
|
-
"resolved": "boolean",
|
|
249
|
-
"references": {}
|
|
250
|
-
},
|
|
251
|
-
"required": false,
|
|
252
|
-
"optional": true,
|
|
253
|
-
"docs": {
|
|
254
|
-
"tags": [],
|
|
255
|
-
"text": ""
|
|
256
|
-
},
|
|
257
|
-
"getter": false,
|
|
258
|
-
"setter": false,
|
|
259
|
-
"reflect": false,
|
|
260
|
-
"defaultValue": "false"
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
static get events() {
|
|
265
|
-
return [{
|
|
266
|
-
"method": "errorEvent",
|
|
267
|
-
"name": "error-event",
|
|
268
|
-
"bubbles": true,
|
|
269
|
-
"cancelable": true,
|
|
270
|
-
"composed": true,
|
|
271
|
-
"docs": {
|
|
272
|
-
"tags": [],
|
|
273
|
-
"text": ""
|
|
274
|
-
},
|
|
275
|
-
"complexType": {
|
|
276
|
-
"original": "any",
|
|
277
|
-
"resolved": "any",
|
|
278
|
-
"references": {}
|
|
279
|
-
}
|
|
280
|
-
}, {
|
|
281
|
-
"method": "checkoutComplete",
|
|
282
|
-
"name": "checkout-complete-event",
|
|
283
|
-
"bubbles": true,
|
|
284
|
-
"cancelable": true,
|
|
285
|
-
"composed": true,
|
|
286
|
-
"docs": {
|
|
287
|
-
"tags": [],
|
|
288
|
-
"text": ""
|
|
289
|
-
},
|
|
290
|
-
"complexType": {
|
|
291
|
-
"original": "any",
|
|
292
|
-
"resolved": "any",
|
|
293
|
-
"references": {}
|
|
294
|
-
}
|
|
295
|
-
}];
|
|
296
|
-
}
|
|
297
|
-
static get methods() {
|
|
298
|
-
return {
|
|
299
|
-
"validate": {
|
|
300
|
-
"complexType": {
|
|
301
|
-
"signature": "() => Promise<boolean>",
|
|
302
|
-
"parameters": [],
|
|
303
|
-
"references": {
|
|
304
|
-
"Promise": {
|
|
305
|
-
"location": "global",
|
|
306
|
-
"id": "global::Promise"
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"return": "Promise<boolean>"
|
|
310
|
-
},
|
|
311
|
-
"docs": {
|
|
312
|
-
"text": "",
|
|
313
|
-
"tags": []
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
"submitCheckout": {
|
|
317
|
-
"complexType": {
|
|
318
|
-
"signature": "(submitCheckoutArgs: IBillingInfo) => Promise<void>",
|
|
319
|
-
"parameters": [{
|
|
320
|
-
"name": "submitCheckoutArgs",
|
|
321
|
-
"type": "IBankAccountBillingInfo | IPostalCode",
|
|
322
|
-
"docs": ""
|
|
323
|
-
}],
|
|
324
|
-
"references": {
|
|
325
|
-
"Promise": {
|
|
326
|
-
"location": "global",
|
|
327
|
-
"id": "global::Promise"
|
|
328
|
-
},
|
|
329
|
-
"IBillingInfo": {
|
|
330
|
-
"location": "import",
|
|
331
|
-
"path": "../../api/BillingInformation",
|
|
332
|
-
"id": "src/api/BillingInformation.ts::IBillingInfo"
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"return": "Promise<void>"
|
|
336
|
-
},
|
|
337
|
-
"docs": {
|
|
338
|
-
"text": "",
|
|
339
|
-
"tags": []
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
static get elementRef() { return "hostEl"; }
|
|
345
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { Skeleton } from "../../ui-components";
|
|
3
|
-
const BankAccountFormSkeleton = (props) => {
|
|
4
|
-
const { isReady } = props;
|
|
5
|
-
if (isReady) {
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
return (h("div", { class: "container-fluid p-0" }, h("div", { class: "row mb-3" }, h("div", { class: "col-12 align-content-end" }, h(Skeleton, { height: "18px", width: "120px" }), h(Skeleton, { height: "36px" }))), h("div", { class: "row" }, h("div", { class: "col-12 align-content-end" }, h(Skeleton, { height: "18px", width: "110px" }), h(Skeleton, { height: "36px" })))));
|
|
9
|
-
};
|
|
10
|
-
export default BankAccountFormSkeleton;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { StyledHost } from "../../ui-components";
|
|
3
|
-
import BankAccountFormSkeleton from "./bank-account-skeleton";
|
|
4
|
-
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
5
|
-
import JustifiAnalytics from "../../api/Analytics";
|
|
6
|
-
export class BankAccountForm {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.iframeOrigin = IFRAME_ORIGIN;
|
|
9
|
-
this.isReady = false;
|
|
10
|
-
}
|
|
11
|
-
componentWillLoad() {
|
|
12
|
-
checkPkgVersion();
|
|
13
|
-
this.analytics = new JustifiAnalytics(this);
|
|
14
|
-
}
|
|
15
|
-
componentDidRender() {
|
|
16
|
-
const elements = [
|
|
17
|
-
this.accountNumberIframeElement,
|
|
18
|
-
this.routingNumberIframeElement,
|
|
19
|
-
];
|
|
20
|
-
Promise.all(elements.map((element) => {
|
|
21
|
-
return new Promise((resolve) => {
|
|
22
|
-
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
23
|
-
});
|
|
24
|
-
})).then(() => {
|
|
25
|
-
this.isReady = true;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
disconnectedCallback() {
|
|
29
|
-
var _a;
|
|
30
|
-
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
31
|
-
}
|
|
32
|
-
async validate() {
|
|
33
|
-
const accountNumberIsValid = await this.accountNumberIframeElement.validate();
|
|
34
|
-
const routingNumberIsValid = await this.routingNumberIframeElement.validate();
|
|
35
|
-
return accountNumberIsValid && routingNumberIsValid;
|
|
36
|
-
}
|
|
37
|
-
async tokenize({ clientId, paymentMethodMetadata, account }) {
|
|
38
|
-
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return (h(StyledHost, { key: 'e0a71dff66a2786c0f182595758c2fc7a36c940e' }, h(BankAccountFormSkeleton, { key: 'b8e530e282ff062f53e196782c49855aed5084d3', isReady: this.isReady }), h("hidden-input", { key: '9b877adccc33cfa1151c6fcc0a847fddd7459875' }), h("div", { key: '6fc462b4aea6d7a3d469eda6c077c09202ac5066', class: "container-fluid p-0", style: {
|
|
42
|
-
opacity: this.isReady ? '1' : '0',
|
|
43
|
-
height: this.isReady ? 'auto' : '0',
|
|
44
|
-
} }, h("div", { key: 'bad1c793767232d22139f06e91c63fecb75d5e6b', class: "row mb-3" }, h("iframe-input", { key: '2e015f0d5e526f309d63b122f0ea900224b0eb91', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '7f2c7e8ca7675c3f936702f605a26f4698addf65', class: "row" }, h("iframe-input", { key: '21eb81b7e69f3e1b376b38e7d533992d977cc2c7', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
45
|
-
}
|
|
46
|
-
static get is() { return "justifi-bank-account-form"; }
|
|
47
|
-
static get encapsulation() { return "shadow"; }
|
|
48
|
-
static get properties() {
|
|
49
|
-
return {
|
|
50
|
-
"iframeOrigin": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"attribute": "iframe-origin",
|
|
53
|
-
"mutable": false,
|
|
54
|
-
"complexType": {
|
|
55
|
-
"original": "string",
|
|
56
|
-
"resolved": "string",
|
|
57
|
-
"references": {}
|
|
58
|
-
},
|
|
59
|
-
"required": false,
|
|
60
|
-
"optional": false,
|
|
61
|
-
"docs": {
|
|
62
|
-
"tags": [],
|
|
63
|
-
"text": ""
|
|
64
|
-
},
|
|
65
|
-
"getter": false,
|
|
66
|
-
"setter": false,
|
|
67
|
-
"reflect": false,
|
|
68
|
-
"defaultValue": "IFRAME_ORIGIN"
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
static get states() {
|
|
73
|
-
return {
|
|
74
|
-
"isReady": {}
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
static get methods() {
|
|
78
|
-
return {
|
|
79
|
-
"validate": {
|
|
80
|
-
"complexType": {
|
|
81
|
-
"signature": "() => Promise<any>",
|
|
82
|
-
"parameters": [],
|
|
83
|
-
"references": {
|
|
84
|
-
"Promise": {
|
|
85
|
-
"location": "global",
|
|
86
|
-
"id": "global::Promise"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"return": "Promise<any>"
|
|
90
|
-
},
|
|
91
|
-
"docs": {
|
|
92
|
-
"text": "",
|
|
93
|
-
"tags": []
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"tokenize": {
|
|
97
|
-
"complexType": {
|
|
98
|
-
"signature": "({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>",
|
|
99
|
-
"parameters": [{
|
|
100
|
-
"name": "__0",
|
|
101
|
-
"type": "{ clientId: string; paymentMethodMetadata: any; account?: string; }",
|
|
102
|
-
"docs": ""
|
|
103
|
-
}],
|
|
104
|
-
"references": {
|
|
105
|
-
"Promise": {
|
|
106
|
-
"location": "global",
|
|
107
|
-
"id": "global::Promise"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"return": "Promise<any>"
|
|
111
|
-
},
|
|
112
|
-
"docs": {
|
|
113
|
-
"text": "",
|
|
114
|
-
"tags": []
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { object } from "yup";
|
|
2
|
-
import { cityValidation, identityNameValidation, lineOneValidation, lineTwoValidation, postalValidation, stateValidation, } from "../business-forms/schemas/schema-validations";
|
|
3
|
-
export const billingFormSchema = (postalOnly) => {
|
|
4
|
-
const fullBillingForm = object({
|
|
5
|
-
name: identityNameValidation.required('Enter full name'),
|
|
6
|
-
address_line1: lineOneValidation.required('Enter street address'),
|
|
7
|
-
address_line2: lineTwoValidation.nullable(),
|
|
8
|
-
address_city: cityValidation.required('Enter city'),
|
|
9
|
-
address_state: stateValidation.required('Select state'),
|
|
10
|
-
address_postal_code: postalValidation.required('Enter postal code'),
|
|
11
|
-
});
|
|
12
|
-
const postalForm = object({
|
|
13
|
-
name: identityNameValidation.nullable(),
|
|
14
|
-
address_line1: lineOneValidation.nullable(),
|
|
15
|
-
address_line2: lineTwoValidation.nullable(),
|
|
16
|
-
address_city: cityValidation.nullable(),
|
|
17
|
-
address_state: stateValidation.nullable(),
|
|
18
|
-
address_postal_code: postalValidation.required('Enter postal code'),
|
|
19
|
-
});
|
|
20
|
-
return postalOnly ? postalForm : fullBillingForm;
|
|
21
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { billingFormSchema } from "./billing-form-schema";
|
|
3
|
-
import { billingForm } from "../../styles/parts";
|
|
4
|
-
import { numberOnlyHandler } from "../../ui-components/form/utils";
|
|
5
|
-
import StateOptions from "../../utils/state-options";
|
|
6
|
-
import { FormController } from "../../ui-components/form/form";
|
|
7
|
-
import { StyledHost } from "../../ui-components";
|
|
8
|
-
export class BillingInformationForm {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.errors = {};
|
|
11
|
-
this.inputHandler = (name, value) => {
|
|
12
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
componentWillLoad() {
|
|
16
|
-
this.formController = new FormController(billingFormSchema());
|
|
17
|
-
}
|
|
18
|
-
componentDidLoad() {
|
|
19
|
-
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
20
|
-
this.formController.errors.subscribe(errors => {
|
|
21
|
-
this.errors = Object.assign({}, errors);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
async getValues() {
|
|
25
|
-
return this.formController.values.getValue();
|
|
26
|
-
}
|
|
27
|
-
async fill(fields) {
|
|
28
|
-
this.formController.setInitialValues(fields);
|
|
29
|
-
}
|
|
30
|
-
async validate() {
|
|
31
|
-
let isValid = await this.formController.validate();
|
|
32
|
-
return { isValid: isValid };
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
36
|
-
return (h(StyledHost, { key: '69c50df0f08e367aeb924bdde683793a542179d5' }, h("div", { key: 'de669a4fc15f3041672d9a093ce6cc80cef65d9e', part: billingForm }, h("form", { key: 'fb079f46703caaed345a9d7cadd380eba599a972' }, h("fieldset", { key: '8ebed9ab4c21b4c4bd490df6654287ac5dd301c8' }, h("div", { key: 'a5a9d27770724af4ea4e2ffed03b26a1d12773f9', class: "row gy-3" }, h("div", { key: 'e5ed5cca7c1bee4033df78c86c8e992b6851ed10', class: "col-12" }, h("form-control-text", { key: '427c31a6f1344a2786dbde7288a0f958957fdd22', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '6e222b1644b34f20f11f516d6de5e8e85f8277ac', class: "col-12" }, h("form-control-text", { key: '011574712b4ae735bfee96c7d6739e23ddd7318c', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: 'ecddd8f79102ef471053b5920072350e39ac313d', class: "col-12" }, h("form-control-text", { key: '95a37ac3c37c4c717bbefe9fa1b172e84027422e', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '3b14bb063904e57a5e2b1112b6f719875bbf33b7', class: "col-12" }, h("form-control-text", { key: 'cfaf3a8bd3c7ce50f47d721170829e2bfb92fff6', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '5613add4617df1e292ed0b0ea3a8cefc619c71e2', class: "col-12" }, h("form-control-select", { key: '698b66f67beb9bb5d3501e23f49655e2b3a0a4f1', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '5dd514ba36bb2e1f398c88053dbb35356f3ef811', class: "col-12" }, h("form-control-text", { key: '8825a1a2c2235ee83461a626b0ccdfeb9adbb74a', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
|
|
37
|
-
}
|
|
38
|
-
static get is() { return "justifi-billing-information-form"; }
|
|
39
|
-
static get encapsulation() { return "shadow"; }
|
|
40
|
-
static get states() {
|
|
41
|
-
return {
|
|
42
|
-
"formController": {},
|
|
43
|
-
"billingInfo": {},
|
|
44
|
-
"errors": {}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
static get methods() {
|
|
48
|
-
return {
|
|
49
|
-
"getValues": {
|
|
50
|
-
"complexType": {
|
|
51
|
-
"signature": "() => Promise<BillingFormFields>",
|
|
52
|
-
"parameters": [],
|
|
53
|
-
"references": {
|
|
54
|
-
"Promise": {
|
|
55
|
-
"location": "global",
|
|
56
|
-
"id": "global::Promise"
|
|
57
|
-
},
|
|
58
|
-
"BillingFormFields": {
|
|
59
|
-
"location": "import",
|
|
60
|
-
"path": "./billing-form-schema",
|
|
61
|
-
"id": "src/components/modular-checkout-parts/billing-form-schema.ts::BillingFormFields"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"return": "Promise<BillingFormFields>"
|
|
65
|
-
},
|
|
66
|
-
"docs": {
|
|
67
|
-
"text": "",
|
|
68
|
-
"tags": []
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"fill": {
|
|
72
|
-
"complexType": {
|
|
73
|
-
"signature": "(fields: BillingFormFields) => Promise<void>",
|
|
74
|
-
"parameters": [{
|
|
75
|
-
"name": "fields",
|
|
76
|
-
"type": "BillingFormFields",
|
|
77
|
-
"docs": ""
|
|
78
|
-
}],
|
|
79
|
-
"references": {
|
|
80
|
-
"Promise": {
|
|
81
|
-
"location": "global",
|
|
82
|
-
"id": "global::Promise"
|
|
83
|
-
},
|
|
84
|
-
"BillingFormFields": {
|
|
85
|
-
"location": "import",
|
|
86
|
-
"path": "./billing-form-schema",
|
|
87
|
-
"id": "src/components/modular-checkout-parts/billing-form-schema.ts::BillingFormFields"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"return": "Promise<void>"
|
|
91
|
-
},
|
|
92
|
-
"docs": {
|
|
93
|
-
"text": "",
|
|
94
|
-
"tags": []
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"validate": {
|
|
98
|
-
"complexType": {
|
|
99
|
-
"signature": "() => Promise<{ isValid: boolean; }>",
|
|
100
|
-
"parameters": [],
|
|
101
|
-
"references": {
|
|
102
|
-
"Promise": {
|
|
103
|
-
"location": "global",
|
|
104
|
-
"id": "global::Promise"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"return": "Promise<{ isValid: boolean; }>"
|
|
108
|
-
},
|
|
109
|
-
"docs": {
|
|
110
|
-
"text": "",
|
|
111
|
-
"tags": []
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { Skeleton } from "../../ui-components";
|
|
3
|
-
const CardFormSkeleton = (props) => {
|
|
4
|
-
const { isReady } = props;
|
|
5
|
-
if (isReady) {
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
return (h("div", { class: "container-fluid p-0" }, h("div", { class: "mb-3" }, h(Skeleton, { height: "18px", width: "100px" }), h(Skeleton, { height: "36px" })), h("div", { class: "row" }, h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "80px" }), h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "30px" }), h(Skeleton, { height: "36px" })))));
|
|
9
|
-
};
|
|
10
|
-
export default CardFormSkeleton;
|