@justifi/webcomponents 6.12.3 → 6.12.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/{Analytics-DcqsdFaD.js → Analytics-CITnMj7H.js} +4 -5
- package/dist/cjs/{Plaid-BlSGeGpn.js → Plaid-BRSyOOuw.js} +60 -4
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +154 -21
- package/dist/cjs/additional-questions_5.cjs.entry.js +1 -1
- package/dist/cjs/{justifi-additional-statement_8.cjs.entry.js → additional-statement_8.cjs.entry.js} +24 -24
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +5 -5
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business-identity-schema-DWWtSiUF.js → business-identity-schema-DuFGX6_i.js} +68 -1
- package/dist/cjs/{business.service-BheJs82v.js → business.service-Z9OACEQL.js} +1 -2
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-DFTQGZz1.js → check-pkg-version-CZMgXZID.js} +1 -1
- package/dist/cjs/{checkout.service-DZKdHQQq.js → checkout.service-BZOyqXgW.js} +1 -2
- package/dist/cjs/{country-config-D7fss2oF.js → country-config-aJp8ScEs.js} +1 -0
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-dispute-notification_3.cjs.entry.js → dispute-notification_2.cjs.entry.js} +67 -90
- package/dist/cjs/{event-types-BWQT2lwu.js → event-types-AU1B76Vm.js} +30 -0
- package/dist/cjs/form-address-fields_3.cjs.entry.js +3 -3
- 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-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_2.cjs.entry.js +89 -0
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-TFzhaBXn.js → get-business-aR-C83KX.js} +2 -2
- package/dist/cjs/{get-payment-details-DL5FmIyF.js → get-payment-details-dwhA02Zl.js} +2 -3
- package/dist/cjs/{get-subaccounts-CVK4O7th.js → get-subaccounts-B1jmSa2d.js} +2 -3
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +12 -13
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +12 -14
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +190 -27
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +65 -18
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11071 -23
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -17
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -6
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +178 -24
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-bM0MyhTf.js → package-DOiqjXmm.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-BO7dzIm1.js → payment-provisioning-actions-BiSpysjW.js} +2 -2
- package/dist/cjs/{payment.service-sZKlg2Jq.js → payment.service-ByrgA_QZ.js} +1 -2
- package/dist/cjs/{payout.service-BcQVsMCS.js → payout.service-CnQm_BpU.js} +1 -2
- package/dist/cjs/{payouts-status-CwgOMz-S.js → payouts-status-AuS3Mp0V.js} +2 -2
- package/dist/cjs/{plaid.service-BcgO2VXC.js → plaid.service-Dlb8EUR8.js} +1 -2
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/{schema-validations-_yWWnnaG.js → schema-validations-DNPcvDh5.js} +13 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CjMMWSh3.js → terminal.service-BdwHQ3Vv.js} +1 -2
- package/dist/cjs/{utils-DbTucCTO.js → utils-FVGp6se3.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Analytics.js +2 -2
- package/dist/collection/api/Terminal.js +1 -1
- package/dist/collection/collection-manifest.json +10 -16
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form.js +226 -12
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -0
- package/dist/collection/components/business-forms/schemas/schema-validations.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form-full.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +166 -16
- package/dist/collection/components/dispute-management/{justifi-dispute-notification.js → dispute-notification.js} +5 -6
- package/dist/collection/components/dispute-management/dispute-response/{justifi-additional-statement.js → additional-statement.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-cancellation-policy.js → cancellation-policy.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-customer-details.js → customer-details.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{dispute-response-core.js → dispute-response.js} +105 -77
- package/dist/collection/components/dispute-management/dispute-response/{justifi-duplicate-charge.js → duplicate-charge.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-electronic-evidence.js → electronic-evidence.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-product-or-service.js → product-or-service.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-refund-policy.js → refund-policy.js} +3 -3
- package/dist/collection/components/dispute-management/dispute-response/{justifi-shipping-details.js → shipping-details.js} +3 -3
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +78 -11
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +79 -15
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/order-terminals/justifi-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/justifi-payment-details.js +8 -8
- package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
- package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +134 -10
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/collection/utils/checkout-billing-state-options.js +12 -0
- package/dist/docs.json +5763 -6945
- package/dist/esm/{Analytics-Cyc3ZLPx.js → Analytics-Cg17Xhj_.js} +4 -5
- package/dist/esm/{Plaid-BuKEVgbB.js → Plaid-l6nNIjab.js} +58 -3
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/additional-questions-form-step_14.entry.js +156 -23
- package/dist/esm/additional-questions_5.entry.js +2 -2
- package/dist/esm/{justifi-additional-statement_8.entry.js → additional-statement_8.entry.js} +18 -18
- package/dist/esm/{badge-B6dp1XGV.js → badge-Dlcl9qdm.js} +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +7 -7
- package/dist/esm/bank-account-form.entry.js +4 -4
- package/dist/esm/bank-account-read-only-value.entry.js +1 -1
- package/dist/esm/business-identity-schema-0Q3kck3C.js +163 -0
- package/dist/esm/{business.service-BPbZ5fxQ.js → business.service-C31wbMVs.js} +1 -2
- package/dist/esm/{button-DRdaAudE.js → button-BvzOzV4l.js} +1 -1
- package/dist/esm/card-form.entry.js +4 -4
- package/dist/esm/{check-pkg-version-6iGDh82c.js → check-pkg-version-D-rHqtUI.js} +1 -1
- package/dist/esm/{checkout.service-CJMfFKyS.js → checkout.service-cVdOGDuI.js} +1 -2
- package/dist/esm/{country-config-P042rrI3.js → country-config-CdvhLcnT.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +3 -3
- package/dist/esm/{justifi-dispute-notification_3.entry.js → dispute-notification_2.entry.js} +68 -90
- package/dist/esm/{event-types-Bg2SZArf.js → event-types-DalU_6SB.js} +29 -1
- package/dist/esm/form-address-fields_3.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-DVedKyhp.js → form-control-error-text-Di9QePY5.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/form-control-file.entry.js +4 -4
- package/dist/esm/{form-control-help-text-D-349cNw.js → form-control-help-text-DGMpMuAm.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number_2.entry.js +86 -0
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_2.entry.js +6 -6
- package/dist/esm/{get-business-DIpEbczl.js → get-business-Gg6qn5on.js} +2 -2
- package/dist/esm/{get-payment-details-DjBou5Fu.js → get-payment-details-BiWgSJau.js} +2 -3
- package/dist/esm/{get-subaccounts-CgDWE_5o.js → get-subaccounts-CkjZeR9U.js} +2 -3
- package/dist/esm/{header-1-Bl7MHW0w.js → header-1-evYxFIGN.js} +1 -1
- package/dist/esm/{header-3-C7JJVnMG.js → header-3-BUDap2xY.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-qTdpe84i.js → insurance-state-CLGc1-_4.js} +1 -1
- package/dist/esm/internal-button.entry.js +3 -3
- package/dist/esm/justifi-apple-pay_11.entry.js +17 -18
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -6
- package/dist/esm/justifi-bank-account-form.entry.js +5 -6
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +10 -11
- package/dist/esm/justifi-business-form.entry.js +14 -16
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +5 -6
- package/dist/esm/justifi-checkout.entry.js +5 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
- package/dist/esm/justifi-checkouts-list.entry.js +190 -27
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +64 -17
- package/dist/esm/justifi-gross-payment-chart.entry.js +11071 -23
- package/dist/esm/justifi-order-terminals.entry.js +11 -12
- package/dist/esm/justifi-payment-details.entry.js +20 -21
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
- package/dist/esm/justifi-payment-transactions-list.entry.js +10 -11
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +12 -13
- package/dist/esm/justifi-payout-details.entry.js +15 -16
- package/dist/esm/justifi-payout-transactions-list.entry.js +10 -11
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
- package/dist/esm/justifi-payouts-list.entry.js +13 -14
- package/dist/esm/justifi-refund-payment.entry.js +10 -11
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -9
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
- package/dist/esm/justifi-terminal-orders-list.entry.js +175 -21
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
- package/dist/esm/justifi-terminals-list.entry.js +12 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-beXEDfB9.js → package-B6YPrwyC.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-DnrawQn3.js → parts-CPKMvyV_.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment-provisioning-actions-Dr0YIShV.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -2
- package/dist/esm/{payment-provisioning-loading-DI2wDkhm.js → payment-provisioning-loading-Dve2xQA4.js} +1 -1
- package/dist/esm/{payment.service-Ckbb7gXA.js → payment.service-5_u-UzTY.js} +1 -2
- package/dist/esm/{payments-status-BIDoGw-m.js → payments-status-BlVUt4C1.js} +1 -1
- package/dist/esm/{payout.service-BgFKxEoL.js → payout.service-D2zS5y8N.js} +1 -2
- package/dist/esm/{payouts-status-1T2NZBoE.js → payouts-status-DCjCGTaa.js} +3 -3
- package/dist/esm/{plaid.service-BLguQHs_.js → plaid.service-BiJ65YG8.js} +1 -2
- package/dist/esm/radio-list-item.entry.js +2 -2
- package/dist/esm/{schema-validations-v6WGlZkq.js → schema-validations-A1o1biOB.js} +13 -3
- package/dist/esm/{skeleton-CXGFVqDf.js → skeleton-BEHo2ypu.js} +1 -1
- package/dist/esm/{spinner-kSw6PcwU.js → spinner-DIiQZd6_.js} +1 -1
- package/dist/esm/{table-CcyuIutB.js → table-DqGfsdys.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-0oISl5j-.js → terminal.service-CIxDfM7V.js} +1 -2
- package/dist/esm/{utils-DcfpJGDZ.js → utils-C1B2hVAB.js} +1 -1
- package/dist/esm/{utils-BxYS3WDw.js → utils-CX6puxwf.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +2 -2
- package/dist/module/Plaid.js +2 -2
- package/dist/module/{justifi-refund-policy.d.ts → additional-statement.d.ts} +4 -4
- package/dist/module/additional-statement.js +6 -0
- package/dist/module/{justifi-additional-statement2.js → additional-statement2.js} +8 -8
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-billing-form-simple2.js +1 -1
- package/dist/module/billing-form-full2.js +3 -3
- package/dist/module/billing-form-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step2.js +2 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step2.js +21 -26
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.d.ts +11 -0
- package/dist/module/cancellation-policy.js +6 -0
- package/dist/module/{justifi-cancellation-policy2.js → cancellation-policy2.js} +8 -8
- package/dist/module/card-billing-form-simple2.js +1 -1
- package/dist/module/country-config.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/{checkouts-list-core.d.ts → customer-details.d.ts} +4 -4
- package/dist/module/customer-details.js +6 -0
- package/dist/module/{justifi-customer-details2.js → customer-details2.js} +8 -8
- package/dist/module/dispute-notification.d.ts +11 -0
- package/dist/module/dispute-notification.js +6 -0
- package/dist/module/dispute-notification2.js +82 -0
- package/dist/module/dispute-response.d.ts +11 -0
- package/dist/module/dispute-response.js +6 -0
- package/dist/module/{dispute-response-core.js → dispute-response2.js} +105 -53
- package/dist/module/duplicate-charge.d.ts +11 -0
- package/dist/module/duplicate-charge.js +6 -0
- package/dist/module/{justifi-duplicate-charge2.js → duplicate-charge2.js} +8 -8
- package/dist/module/electronic-evidence.d.ts +11 -0
- package/dist/module/electronic-evidence.js +6 -0
- package/dist/module/{justifi-electronic-evidence2.js → electronic-evidence2.js} +8 -8
- package/dist/module/event-types3.js +119 -1
- package/dist/module/form-alert2.js +1 -1
- 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-number2.js +3 -3
- 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 +3 -3
- package/dist/module/get-payment-details.js +1 -1
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkouts-list-filters.js +3 -3
- package/dist/module/justifi-checkouts-list.js +197 -28
- package/dist/module/justifi-dispute-management.js +103 -62
- package/dist/module/justifi-gross-payment-chart.js +11074 -24
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +2 -2
- package/dist/module/justifi-order-terminals.js +4 -4
- package/dist/module/justifi-payment-details.js +9 -9
- package/dist/module/justifi-payment-provisioning.js +53 -59
- package/dist/module/justifi-payment-transactions-list.js +2 -2
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +4 -4
- package/dist/module/justifi-payout-transactions-list.js +2 -2
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
- package/dist/module/justifi-terminal-orders-list.js +184 -22
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/justifi-tokenize-payment-method2.js +1 -1
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form2.js +177 -33
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-form-steps2.js +52 -58
- package/dist/module/product-or-service.d.ts +11 -0
- package/dist/module/product-or-service.js +6 -0
- package/dist/module/{justifi-product-or-service2.js → product-or-service2.js} +8 -8
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/{owner-form-core.d.ts → refund-policy.d.ts} +4 -4
- package/dist/module/refund-policy.js +6 -0
- package/dist/module/{justifi-refund-policy2.js → refund-policy2.js} +8 -8
- package/dist/module/schema-validations.js +13 -3
- package/dist/module/shipping-details.d.ts +11 -0
- package/dist/module/shipping-details.js +6 -0
- package/dist/module/{justifi-shipping-details2.js → shipping-details2.js} +8 -8
- package/dist/module/spinner.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/utils2.js +1 -1
- package/dist/types/api/Terminal.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +69 -5
- package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +28 -6
- package/dist/types/components/dispute-management/{justifi-dispute-notification.d.ts → dispute-notification.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-additional-statement.d.ts → additional-statement.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-cancellation-policy.d.ts → cancellation-policy.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-customer-details.d.ts → customer-details.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{dispute-response-core.d.ts → dispute-response.d.ts} +21 -10
- package/dist/types/components/dispute-management/dispute-response/{justifi-duplicate-charge.d.ts → duplicate-charge.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-electronic-evidence.d.ts → electronic-evidence.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-product-or-service.d.ts → product-or-service.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-refund-policy.d.ts → refund-policy.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{justifi-shipping-details.d.ts → shipping-details.d.ts} +1 -1
- package/dist/types/components/dispute-management/justifi-dispute-management.d.ts +10 -2
- package/dist/types/components/gross-payment-chart/justifi-gross-payment-chart.d.ts +13 -2
- package/dist/types/components/terminal-orders-list/justifi-terminal-orders-list.d.ts +21 -3
- package/dist/types/components.d.ts +304 -551
- package/dist/types/utils/checkout-billing-state-options.d.ts +9 -0
- package/dist/webcomponents/p-0708cb76.entry.js +1 -0
- package/dist/webcomponents/p-0ce6c1b1.entry.js +1 -0
- package/dist/webcomponents/p-12ae030d.entry.js +1 -0
- package/dist/webcomponents/p-137a36a4.entry.js +1 -0
- package/dist/webcomponents/p-1d294e34.entry.js +1 -0
- package/dist/webcomponents/{p-4d21df48.entry.js → p-1f34b2f7.entry.js} +1 -1
- package/dist/webcomponents/p-1f7f2436.entry.js +1 -0
- package/dist/webcomponents/{p-256c5509.entry.js → p-22d19755.entry.js} +1 -1
- package/dist/webcomponents/p-2aac2ab6.entry.js +1 -0
- package/dist/webcomponents/{p-2425a375.entry.js → p-2dfdecbb.entry.js} +1 -1
- package/dist/webcomponents/p-397b28ba.entry.js +20 -0
- package/dist/webcomponents/{p-10be75b8.entry.js → p-3cefb032.entry.js} +1 -1
- package/dist/webcomponents/p-45668f01.entry.js +1 -0
- package/dist/webcomponents/p-46477dfe.entry.js +1 -0
- package/dist/webcomponents/{p-befe01ef.entry.js → p-49c13952.entry.js} +1 -1
- package/dist/webcomponents/p-4ccf9cd7.entry.js +1 -0
- package/dist/webcomponents/p-58b5e08e.entry.js +1 -0
- package/dist/webcomponents/p-5G1OMxZz.js +1 -0
- package/dist/webcomponents/{p-1e877e0a.entry.js → p-5ec9634c.entry.js} +1 -1
- package/dist/webcomponents/{p-8253ef9f.entry.js → p-605bd107.entry.js} +1 -1
- package/dist/webcomponents/{p-c9e1df15.entry.js → p-60c65da4.entry.js} +1 -1
- package/dist/webcomponents/p-63b7abf3.entry.js +1 -0
- package/dist/webcomponents/p-63e88b48.entry.js +1 -0
- package/dist/webcomponents/p-65281b33.entry.js +1 -0
- package/dist/webcomponents/{p-3c046adc.entry.js → p-70dcd833.entry.js} +1 -1
- package/dist/webcomponents/p-7ebed752.entry.js +1 -0
- package/dist/webcomponents/p-7ff9ce05.entry.js +1 -0
- package/dist/webcomponents/p-8964f4ca.entry.js +1 -0
- package/dist/webcomponents/p-89844a98.entry.js +1 -0
- package/dist/webcomponents/p-89cd31f2.entry.js +1 -0
- package/dist/webcomponents/p-8d6856e7.entry.js +1 -0
- package/dist/webcomponents/p-8e821593.entry.js +1 -0
- package/dist/webcomponents/p-90f2f71d.entry.js +1 -0
- package/dist/webcomponents/p-9153c121.entry.js +1 -0
- package/dist/webcomponents/p-91940d05.entry.js +1 -0
- package/dist/webcomponents/p-95317547.entry.js +1 -0
- package/dist/webcomponents/p-9b944aa4.entry.js +1 -0
- package/dist/webcomponents/{p-CR_-qIuN.js → p-APOabprT.js} +1 -1
- package/dist/webcomponents/p-Aacb4jqT.js +1 -0
- package/dist/webcomponents/p-B5gBiARs.js +1 -0
- package/dist/webcomponents/p-B6YPrwyC.js +1 -0
- package/dist/webcomponents/{p-bn_huKYG.js → p-BICxxa69.js} +1 -1
- package/dist/webcomponents/p-BJu1-9kE.js +1 -0
- package/dist/webcomponents/{p-Cej-1bD6.js → p-BXyADlAH.js} +1 -1
- package/dist/webcomponents/p-Ba8jdOkX.js +1 -0
- package/dist/webcomponents/p-BxKbnILQ.js +1 -0
- package/dist/webcomponents/{p-2LVpxCS_.js → p-CHo7TfsM.js} +1 -1
- package/dist/webcomponents/p-CHw7tICr.js +1 -0
- package/dist/webcomponents/{p-DnrawQn3.js → p-CPKMvyV_.js} +1 -1
- package/dist/webcomponents/p-Ce_W43gc.js +1 -0
- package/dist/webcomponents/{p-B5vVjDc_.js → p-Cm9f5fyh.js} +1 -1
- package/dist/webcomponents/p-CqiVXthx.js +1 -0
- package/dist/webcomponents/{p-x9fFFf7F.js → p-Cu7hgXL1.js} +1 -1
- package/dist/webcomponents/p-D-zwk1J3.js +1 -0
- package/dist/webcomponents/{p-D1D2eC05.js → p-D1_eip6x.js} +1 -1
- package/dist/webcomponents/p-D8ytux5N.js +1 -0
- package/dist/webcomponents/p-DO9lqnbB.js +1 -0
- package/dist/webcomponents/p-DSclFZ32.js +1 -0
- package/dist/webcomponents/p-DYHjzFnJ.js +1 -0
- package/dist/webcomponents/{p-DgH-jcIo.js → p-DjjAx7PF.js} +1 -1
- package/dist/webcomponents/p-Dk26hk5T.js +1 -0
- package/dist/webcomponents/p-DrMJliVY.js +1 -0
- package/dist/webcomponents/p-NZS8uCtH.js +1 -0
- package/dist/webcomponents/p-XIWgia4J.js +1 -0
- package/dist/webcomponents/{p-9581d6a1.entry.js → p-a9695714.entry.js} +1 -1
- package/dist/webcomponents/p-afe714cb.entry.js +1 -0
- package/dist/webcomponents/p-av6jyzyC.js +1 -0
- package/dist/webcomponents/p-b0b6083f.entry.js +1 -0
- package/dist/webcomponents/p-b192f251.entry.js +1 -0
- package/dist/webcomponents/p-b436a7d2.entry.js +1 -0
- package/dist/webcomponents/{p-e6e56dbb.entry.js → p-b62ff001.entry.js} +1 -1
- package/dist/webcomponents/p-bde7fe69.entry.js +1 -0
- package/dist/webcomponents/p-c108cd71.entry.js +1 -0
- package/dist/webcomponents/p-c1539656.entry.js +1 -0
- package/dist/webcomponents/p-c4415366.entry.js +1 -0
- package/dist/webcomponents/p-c8bc235f.entry.js +1 -0
- package/dist/webcomponents/{p-09d2efad.entry.js → p-ca87c609.entry.js} +1 -1
- package/dist/webcomponents/p-d1eabad2.entry.js +1 -0
- package/dist/webcomponents/{p-31e74a5a.entry.js → p-d5e7291a.entry.js} +1 -1
- package/dist/webcomponents/p-d79c5ee4.entry.js +1 -0
- package/dist/webcomponents/{p-9db1444f.entry.js → p-db09f306.entry.js} +1 -1
- package/dist/webcomponents/{p-354fb3c4.entry.js → p-e020f003.entry.js} +1 -1
- package/dist/webcomponents/p-e17b92ec.entry.js +1 -0
- package/dist/webcomponents/{p-1e8135f0.entry.js → p-e322dcba.entry.js} +1 -1
- package/dist/webcomponents/p-e5c2215a.entry.js +1 -0
- package/dist/webcomponents/p-e6ec9e6d.entry.js +1 -0
- package/dist/webcomponents/p-f1b9cbf0.entry.js +1 -0
- package/dist/webcomponents/p-f9aafb21.entry.js +1 -0
- package/dist/webcomponents/p-fE5A37L5.js +1 -0
- package/dist/webcomponents/{p-bc2af6b4.entry.js → p-ff8cf16c.entry.js} +1 -1
- package/dist/webcomponents/p-jIDKmNHy.js +1 -0
- package/dist/webcomponents/p-nb_LhbJq.js +1 -0
- package/dist/webcomponents/p-oTtn8xDw.js +1 -0
- package/dist/webcomponents/p-uZ5KAseb.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/readme.md +7 -14
- package/dist/cjs/Dispute-CruQTF6_.js +0 -59
- package/dist/cjs/business-additional-questions-schema-CI80eZLJ.js +0 -73
- package/dist/cjs/checkouts-list-core.cjs.entry.js +0 -146
- package/dist/cjs/checkouts-table-CCxrsy0x.js +0 -55
- package/dist/cjs/dispute.service-BbtwY673.js +0 -32
- package/dist/cjs/form-control-number_3.cjs.entry.js +0 -249
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +0 -11075
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +0 -61
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +0 -108
- package/dist/cjs/terminal-orders-table-Cz6qvzVE.js +0 -83
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +0 -523
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +0 -262
- package/dist/collection/components/dispute-management/dispute-management-core.js +0 -169
- package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +0 -190
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +0 -139
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +0 -199
- package/dist/esm/Dispute-BH0Xfn-F.js +0 -57
- package/dist/esm/business-additional-questions-schema-DKudYaoE.js +0 -69
- package/dist/esm/business-identity-schema-CFhSc0cA.js +0 -99
- package/dist/esm/checkouts-list-core.entry.js +0 -144
- package/dist/esm/checkouts-table-C8sPHeTm.js +0 -51
- package/dist/esm/dispute.service-vlYGy0nR.js +0 -30
- package/dist/esm/form-control-number_3.entry.js +0 -245
- package/dist/esm/gross-payment-chart-core.entry.js +0 -11073
- package/dist/esm/justifi-dispute-management-core.entry.js +0 -59
- package/dist/esm/terminal-orders-list-core.entry.js +0 -106
- package/dist/esm/terminal-orders-table-C7KOcRpq.js +0 -79
- package/dist/module/checkouts-list-core.js +0 -6
- package/dist/module/checkouts-list-core2.js +0 -227
- package/dist/module/dispute-management-core.js +0 -193
- package/dist/module/dispute-response-actions.js +0 -119
- package/dist/module/gross-payment-chart-core.d.ts +0 -11
- package/dist/module/gross-payment-chart-core.js +0 -6
- package/dist/module/gross-payment-chart-core2.js +0 -11096
- package/dist/module/justifi-additional-statement.d.ts +0 -11
- package/dist/module/justifi-additional-statement.js +0 -6
- package/dist/module/justifi-cancellation-policy.d.ts +0 -11
- package/dist/module/justifi-cancellation-policy.js +0 -6
- package/dist/module/justifi-customer-details.d.ts +0 -11
- package/dist/module/justifi-customer-details.js +0 -6
- package/dist/module/justifi-dispute-management-core.d.ts +0 -11
- package/dist/module/justifi-dispute-management-core.js +0 -6
- package/dist/module/justifi-dispute-notification.d.ts +0 -11
- package/dist/module/justifi-dispute-notification.js +0 -6
- package/dist/module/justifi-dispute-notification2.js +0 -85
- package/dist/module/justifi-dispute-response-core.d.ts +0 -11
- package/dist/module/justifi-dispute-response-core.js +0 -6
- package/dist/module/justifi-dispute-response.d.ts +0 -11
- package/dist/module/justifi-dispute-response.js +0 -6
- package/dist/module/justifi-dispute-response2.js +0 -198
- package/dist/module/justifi-duplicate-charge.d.ts +0 -11
- package/dist/module/justifi-duplicate-charge.js +0 -6
- package/dist/module/justifi-electronic-evidence.d.ts +0 -11
- package/dist/module/justifi-electronic-evidence.js +0 -6
- package/dist/module/justifi-product-or-service.d.ts +0 -11
- package/dist/module/justifi-product-or-service.js +0 -6
- package/dist/module/justifi-refund-policy.js +0 -6
- package/dist/module/justifi-shipping-details.d.ts +0 -11
- package/dist/module/justifi-shipping-details.js +0 -6
- package/dist/module/owner-form-core.js +0 -6
- package/dist/module/owner-form-core2.js +0 -262
- package/dist/module/terminal-orders-list-core.d.ts +0 -11
- package/dist/module/terminal-orders-list-core.js +0 -6
- package/dist/module/terminal-orders-list-core2.js +0 -209
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -88
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +0 -34
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +0 -18
- package/dist/types/components/dispute-management/dispute-response/justifi-dispute-response.d.ts +0 -35
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +0 -21
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +0 -28
- package/dist/webcomponents/p--e0ff06z.js +0 -1
- package/dist/webcomponents/p-032b4553.entry.js +0 -1
- package/dist/webcomponents/p-042daaf8.entry.js +0 -1
- package/dist/webcomponents/p-0638f0bd.entry.js +0 -1
- package/dist/webcomponents/p-0b3f4f22.entry.js +0 -1
- package/dist/webcomponents/p-1c4f5f1d.entry.js +0 -1
- package/dist/webcomponents/p-24935254.entry.js +0 -1
- package/dist/webcomponents/p-2a755daf.entry.js +0 -1
- package/dist/webcomponents/p-3488951f.entry.js +0 -1
- package/dist/webcomponents/p-437a99dc.entry.js +0 -1
- package/dist/webcomponents/p-49c0cd3a.entry.js +0 -1
- package/dist/webcomponents/p-50f5e313.entry.js +0 -1
- package/dist/webcomponents/p-52908814.entry.js +0 -1
- package/dist/webcomponents/p-587886f1.entry.js +0 -1
- package/dist/webcomponents/p-5ef355ce.entry.js +0 -1
- package/dist/webcomponents/p-5ef854e0.entry.js +0 -1
- package/dist/webcomponents/p-67498c25.entry.js +0 -1
- package/dist/webcomponents/p-6917aa3c.entry.js +0 -1
- package/dist/webcomponents/p-6d81822f.entry.js +0 -1
- package/dist/webcomponents/p-6f0c582a.entry.js +0 -1
- package/dist/webcomponents/p-80652cf8.entry.js +0 -1
- package/dist/webcomponents/p-82fe02e4.entry.js +0 -1
- package/dist/webcomponents/p-83147f23.entry.js +0 -1
- package/dist/webcomponents/p-8c2427ed.entry.js +0 -1
- package/dist/webcomponents/p-92de00d7.entry.js +0 -1
- package/dist/webcomponents/p-94306884.entry.js +0 -1
- package/dist/webcomponents/p-9937e2e7.entry.js +0 -1
- package/dist/webcomponents/p-9dca1331.entry.js +0 -1
- package/dist/webcomponents/p-9f74d7ea.entry.js +0 -1
- package/dist/webcomponents/p-B--N37zY.js +0 -1
- package/dist/webcomponents/p-BH0Xfn-F.js +0 -1
- package/dist/webcomponents/p-Bg2SZArf.js +0 -1
- package/dist/webcomponents/p-BovgIz83.js +0 -1
- package/dist/webcomponents/p-BsQy297i.js +0 -1
- package/dist/webcomponents/p-CDf5H0TB.js +0 -1
- package/dist/webcomponents/p-CUI41_5y.js +0 -1
- package/dist/webcomponents/p-CX36GHQP.js +0 -1
- package/dist/webcomponents/p-Cf6HoQKl.js +0 -1
- package/dist/webcomponents/p-CsdYMTrc.js +0 -1
- package/dist/webcomponents/p-D4OlsyTo.js +0 -1
- package/dist/webcomponents/p-D8EGHc_m.js +0 -1
- package/dist/webcomponents/p-DPmnGTmg.js +0 -1
- package/dist/webcomponents/p-DWevPe7C.js +0 -1
- package/dist/webcomponents/p-Dbg501Lu.js +0 -1
- package/dist/webcomponents/p-DcBvJu0k.js +0 -1
- package/dist/webcomponents/p-DkdzUTnl.js +0 -1
- package/dist/webcomponents/p-HT_4DkD0.js +0 -1
- package/dist/webcomponents/p-MDZuGvsl.js +0 -1
- package/dist/webcomponents/p-XrKLre8M.js +0 -1
- package/dist/webcomponents/p-_-2E_vYf.js +0 -1
- package/dist/webcomponents/p-a75d76ff.entry.js +0 -1
- package/dist/webcomponents/p-a7778957.entry.js +0 -1
- package/dist/webcomponents/p-a9d7cdae.entry.js +0 -1
- package/dist/webcomponents/p-b060a9c9.entry.js +0 -1
- package/dist/webcomponents/p-b06910b0.entry.js +0 -1
- package/dist/webcomponents/p-b483e71b.entry.js +0 -1
- package/dist/webcomponents/p-bdf21f71.entry.js +0 -1
- package/dist/webcomponents/p-be5d1005.entry.js +0 -1
- package/dist/webcomponents/p-beXEDfB9.js +0 -1
- package/dist/webcomponents/p-bfe2583d.entry.js +0 -1
- package/dist/webcomponents/p-c09fccd3.entry.js +0 -1
- package/dist/webcomponents/p-c827cbc9.entry.js +0 -1
- package/dist/webcomponents/p-cc5b7c27.entry.js +0 -1
- package/dist/webcomponents/p-d878df6c.entry.js +0 -1
- package/dist/webcomponents/p-ddf699e6.entry.js +0 -20
- package/dist/webcomponents/p-e0b3735f.entry.js +0 -1
- package/dist/webcomponents/p-ea30cf08.entry.js +0 -1
- package/dist/webcomponents/p-edf5a854.entry.js +0 -1
- package/dist/webcomponents/p-ef89824b.entry.js +0 -1
- package/dist/webcomponents/p-fc7ba195.entry.js +0 -1
- package/dist/webcomponents/p-hhdRync5.js +0 -1
- package/dist/webcomponents/p-niGr4RT2.js +0 -1
- package/dist/webcomponents/p-pL4dNfsl.js +0 -1
- package/dist/webcomponents/p-qcQTYcr3.js +0 -1
- package/dist/webcomponents/p-qrNmDp6K.js +0 -1
- package/dist/webcomponents/p-uCg79W3M.js +0 -1
- package/dist/webcomponents/p-zi3ljCdQ.js +0 -1
|
@@ -1,18 +1,154 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { FormController } from "../../../ui-components/form/form";
|
|
3
|
+
import { Owner } from "../../../api/Identity";
|
|
4
|
+
import { identitySchemaByCountry } from "../schemas/business-identity-schema";
|
|
5
|
+
import { Button } from "../../../ui-components";
|
|
6
|
+
import { heading3 } from "../../../styles/parts";
|
|
7
|
+
import { BusinessFormClickActions } from "../utils/event-types";
|
|
2
8
|
import { makeGetIdentity, makePatchIdentity, makePostIdentity } from "../payment-provisioning/payment-provisioning-actions";
|
|
3
9
|
import { IdentityService } from "../../../api/services/business.service";
|
|
4
10
|
export class OwnerForm {
|
|
11
|
+
loadingWatcher() {
|
|
12
|
+
this.formLoading.emit(this.isLoading);
|
|
13
|
+
}
|
|
14
|
+
constructor() {
|
|
15
|
+
this.isLoading = false;
|
|
16
|
+
this.errors = {};
|
|
17
|
+
this.owner = {};
|
|
18
|
+
this.getData = () => {
|
|
19
|
+
if (!this.getOwner) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
this.isLoading = true;
|
|
23
|
+
this.getOwner({
|
|
24
|
+
onSuccess: (response) => {
|
|
25
|
+
this.instantiateOwner(response.data);
|
|
26
|
+
},
|
|
27
|
+
onError: ({ error, code, severity }) => {
|
|
28
|
+
this.errorEvent.emit({
|
|
29
|
+
message: error,
|
|
30
|
+
errorCode: code,
|
|
31
|
+
severity: severity,
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
final: () => (this.isLoading = false),
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
this.sendData = () => {
|
|
38
|
+
this.isLoading = true;
|
|
39
|
+
return new Promise((resolve) => {
|
|
40
|
+
if (this.ownerId) {
|
|
41
|
+
this.patchOwner({
|
|
42
|
+
payload: this.payload,
|
|
43
|
+
onSuccess: (response) => {
|
|
44
|
+
this.ownerSubmitted.emit({ id: response.data.id });
|
|
45
|
+
this.instantiateOwner(response.data);
|
|
46
|
+
resolve(true);
|
|
47
|
+
},
|
|
48
|
+
onError: ({ error, code, severity }) => {
|
|
49
|
+
this.errorEvent.emit({
|
|
50
|
+
message: error,
|
|
51
|
+
errorCode: code,
|
|
52
|
+
severity: severity,
|
|
53
|
+
});
|
|
54
|
+
resolve(false);
|
|
55
|
+
},
|
|
56
|
+
final: () => (this.isLoading = false),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.postOwner({
|
|
61
|
+
payload: this.payload,
|
|
62
|
+
onSuccess: (response) => {
|
|
63
|
+
this.ownerSubmitted.emit({ id: response.data.id });
|
|
64
|
+
this.instantiateOwner(response.data);
|
|
65
|
+
resolve(true);
|
|
66
|
+
},
|
|
67
|
+
onError: ({ error, code, severity }) => {
|
|
68
|
+
this.errorEvent.emit({
|
|
69
|
+
message: error,
|
|
70
|
+
errorCode: code,
|
|
71
|
+
severity: severity,
|
|
72
|
+
});
|
|
73
|
+
resolve(false);
|
|
74
|
+
},
|
|
75
|
+
final: () => (this.isLoading = false),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
this.instantiateOwner = async (data) => {
|
|
81
|
+
this.owner = Object.assign({}, new Owner(data));
|
|
82
|
+
await this.formController.setInitialValues(this.owner);
|
|
83
|
+
};
|
|
84
|
+
this.handleAddOwner = () => {
|
|
85
|
+
const eventName = this.ownerId ? BusinessFormClickActions.updateOwner : BusinessFormClickActions.addOwner;
|
|
86
|
+
this.clickEvent.emit({ name: eventName });
|
|
87
|
+
};
|
|
88
|
+
this.handleRemoveOwner = () => {
|
|
89
|
+
this.removeOwner(this.ownerId);
|
|
90
|
+
this.clickEvent.emit({ name: BusinessFormClickActions.removeOwner });
|
|
91
|
+
};
|
|
92
|
+
this.validate = this.validate.bind(this);
|
|
93
|
+
this.submit = this.submit.bind(this);
|
|
94
|
+
this.validateAndSubmit = this.validateAndSubmit.bind(this);
|
|
95
|
+
}
|
|
96
|
+
async returnOwnerData() {
|
|
97
|
+
return this.ownerId;
|
|
98
|
+
}
|
|
5
99
|
async validate() {
|
|
6
|
-
return this.
|
|
100
|
+
return this.formController.validate();
|
|
7
101
|
}
|
|
8
102
|
async submit() {
|
|
9
|
-
|
|
103
|
+
const isValid = await this.validate();
|
|
104
|
+
if (isValid) {
|
|
105
|
+
return this.sendData();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
async validateAndSubmit(event) {
|
|
109
|
+
event.preventDefault();
|
|
110
|
+
const isValid = await this.validate();
|
|
111
|
+
if (isValid) {
|
|
112
|
+
this.submit();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
get payload() {
|
|
116
|
+
const formValues = new Owner(this.formController.values.getValue()).payload;
|
|
117
|
+
if (this.ownerId) {
|
|
118
|
+
return formValues;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
get formTitle() {
|
|
125
|
+
return this.ownerId ? 'Edit Business Owner' : 'Add Business Owner';
|
|
10
126
|
}
|
|
11
|
-
|
|
12
|
-
this.
|
|
127
|
+
get submitButtonText() {
|
|
128
|
+
return this.ownerId ? 'Update' : 'Add';
|
|
129
|
+
}
|
|
130
|
+
get showRemoveButton() {
|
|
131
|
+
const blankForm = !this.ownerId && this.newFormOpen;
|
|
132
|
+
if (this.ownersLength <= 1) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
if (blankForm) {
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
else if (this.ownerId && !this.newFormOpen) {
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
13
143
|
}
|
|
14
144
|
componentWillLoad() {
|
|
145
|
+
const schemaFactory = identitySchemaByCountry[this.country];
|
|
146
|
+
this.formController = new FormController(schemaFactory('owner', this.allowOptionalFields));
|
|
15
147
|
this.initializeApi();
|
|
148
|
+
this.ownerId && this.getOwner ? this.getData() : this.instantiateOwner({});
|
|
149
|
+
}
|
|
150
|
+
componentDidLoad() {
|
|
151
|
+
this.formController.errors.subscribe((errors) => (this.errors = Object.assign({}, errors)));
|
|
16
152
|
}
|
|
17
153
|
initializeApi() {
|
|
18
154
|
if (!this.authToken) {
|
|
@@ -21,20 +157,20 @@ export class OwnerForm {
|
|
|
21
157
|
this.getOwner = makeGetIdentity({
|
|
22
158
|
authToken: this.authToken,
|
|
23
159
|
identityId: this.ownerId,
|
|
24
|
-
service: new IdentityService()
|
|
160
|
+
service: new IdentityService(),
|
|
25
161
|
});
|
|
26
162
|
this.patchOwner = makePatchIdentity({
|
|
27
163
|
authToken: this.authToken,
|
|
28
164
|
identityId: this.ownerId,
|
|
29
|
-
service: new IdentityService()
|
|
165
|
+
service: new IdentityService(),
|
|
30
166
|
});
|
|
31
167
|
this.postOwner = makePostIdentity({
|
|
32
168
|
authToken: this.authToken,
|
|
33
|
-
service: new IdentityService()
|
|
169
|
+
service: new IdentityService(),
|
|
34
170
|
});
|
|
35
171
|
}
|
|
36
172
|
render() {
|
|
37
|
-
return (h("
|
|
173
|
+
return (h(Host, { key: '1661676befd63f9308edcb02be179db71b7c9d99', style: { display: 'block' } }, h("form", { key: '4961f358ca8953156477d455cacb19e4dec3cc29', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '27ecfec87ae93a1bdec94f3cc925558dc8f0ff23' }, h("legend", { key: '4c194cf9e08e6fab9982b95a4b12c3c3a8cecdc3', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: 'ef1f9b184dac866d27cfa245106d90db0954fa51' }), h("div", { key: '2936ecc396220f8b80e5d8454bc6f6f70cb3ae73', class: "row gy-3" }, h("owner-form-inputs", { key: 'f34d38b718ed7fde67102aa1034b5e6377e001f8', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController, country: this.country }), h("div", { key: '2d5266bc1a7f4aeb12cab8a494107f2668b2fb0e', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '39631fd0364221ac2a274d8aa794a1f3c8d28780', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '120fbae294f8f67bd14fe0be5dc1bcf881ffd489', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: '73eccba19a595b67f64139769a495d5a27e02b2f' })))));
|
|
38
174
|
}
|
|
39
175
|
static get is() { return "owner-form"; }
|
|
40
176
|
static get properties() {
|
|
@@ -199,6 +335,10 @@ export class OwnerForm {
|
|
|
199
335
|
}
|
|
200
336
|
static get states() {
|
|
201
337
|
return {
|
|
338
|
+
"isLoading": {},
|
|
339
|
+
"formController": {},
|
|
340
|
+
"errors": {},
|
|
341
|
+
"owner": {},
|
|
202
342
|
"getOwner": {},
|
|
203
343
|
"patchOwner": {},
|
|
204
344
|
"postOwner": {}
|
|
@@ -206,6 +346,27 @@ export class OwnerForm {
|
|
|
206
346
|
}
|
|
207
347
|
static get events() {
|
|
208
348
|
return [{
|
|
349
|
+
"method": "clickEvent",
|
|
350
|
+
"name": "click-event",
|
|
351
|
+
"bubbles": true,
|
|
352
|
+
"cancelable": true,
|
|
353
|
+
"composed": true,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [],
|
|
356
|
+
"text": ""
|
|
357
|
+
},
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "ComponentClickEvent",
|
|
360
|
+
"resolved": "ComponentClickEvent",
|
|
361
|
+
"references": {
|
|
362
|
+
"ComponentClickEvent": {
|
|
363
|
+
"location": "import",
|
|
364
|
+
"path": "../../../api/ComponentEvents",
|
|
365
|
+
"id": "src/api/ComponentEvents.ts::ComponentClickEvent"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}, {
|
|
209
370
|
"method": "errorEvent",
|
|
210
371
|
"name": "error-event",
|
|
211
372
|
"bubbles": true,
|
|
@@ -226,10 +387,57 @@ export class OwnerForm {
|
|
|
226
387
|
}
|
|
227
388
|
}
|
|
228
389
|
}
|
|
390
|
+
}, {
|
|
391
|
+
"method": "formLoading",
|
|
392
|
+
"name": "formLoading",
|
|
393
|
+
"bubbles": true,
|
|
394
|
+
"cancelable": true,
|
|
395
|
+
"composed": true,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": ""
|
|
399
|
+
},
|
|
400
|
+
"complexType": {
|
|
401
|
+
"original": "boolean",
|
|
402
|
+
"resolved": "boolean",
|
|
403
|
+
"references": {}
|
|
404
|
+
}
|
|
405
|
+
}, {
|
|
406
|
+
"method": "ownerSubmitted",
|
|
407
|
+
"name": "ownerSubmitted",
|
|
408
|
+
"bubbles": true,
|
|
409
|
+
"cancelable": true,
|
|
410
|
+
"composed": true,
|
|
411
|
+
"docs": {
|
|
412
|
+
"tags": [],
|
|
413
|
+
"text": ""
|
|
414
|
+
},
|
|
415
|
+
"complexType": {
|
|
416
|
+
"original": "any",
|
|
417
|
+
"resolved": "any",
|
|
418
|
+
"references": {}
|
|
419
|
+
}
|
|
229
420
|
}];
|
|
230
421
|
}
|
|
231
422
|
static get methods() {
|
|
232
423
|
return {
|
|
424
|
+
"returnOwnerData": {
|
|
425
|
+
"complexType": {
|
|
426
|
+
"signature": "() => Promise<string>",
|
|
427
|
+
"parameters": [],
|
|
428
|
+
"references": {
|
|
429
|
+
"Promise": {
|
|
430
|
+
"location": "global",
|
|
431
|
+
"id": "global::Promise"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"return": "Promise<string>"
|
|
435
|
+
},
|
|
436
|
+
"docs": {
|
|
437
|
+
"text": "",
|
|
438
|
+
"tags": []
|
|
439
|
+
}
|
|
440
|
+
},
|
|
233
441
|
"validate": {
|
|
234
442
|
"complexType": {
|
|
235
443
|
"signature": "() => Promise<boolean>",
|
|
@@ -266,10 +474,10 @@ export class OwnerForm {
|
|
|
266
474
|
},
|
|
267
475
|
"validateAndSubmit": {
|
|
268
476
|
"complexType": {
|
|
269
|
-
"signature": "(
|
|
477
|
+
"signature": "(event: any) => Promise<void>",
|
|
270
478
|
"parameters": [{
|
|
271
|
-
"name": "
|
|
272
|
-
"type": "
|
|
479
|
+
"name": "event",
|
|
480
|
+
"type": "any",
|
|
273
481
|
"docs": ""
|
|
274
482
|
}],
|
|
275
483
|
"references": {
|
|
@@ -287,4 +495,10 @@ export class OwnerForm {
|
|
|
287
495
|
}
|
|
288
496
|
};
|
|
289
497
|
}
|
|
498
|
+
static get watchers() {
|
|
499
|
+
return [{
|
|
500
|
+
"propName": "isLoading",
|
|
501
|
+
"methodName": "loadingWatcher"
|
|
502
|
+
}];
|
|
503
|
+
}
|
|
290
504
|
}
|
|
@@ -92,6 +92,7 @@ export class BusinessOwnersFormStep {
|
|
|
92
92
|
this.ownersPayload = this.ownersPayload.filter(owner => owner.id !== '');
|
|
93
93
|
this.patchBusiness({
|
|
94
94
|
payload: {
|
|
95
|
+
representative: { is_owner: true },
|
|
95
96
|
owners: [{ id: this.representative.id }, ...this.ownersPayload],
|
|
96
97
|
},
|
|
97
98
|
onSuccess: () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { string } from "yup";
|
|
2
|
-
import
|
|
2
|
+
import checkoutBillingStateOptions from "../../../utils/checkout-billing-state-options";
|
|
3
3
|
import { CountryCode } from "../../../utils/country-codes";
|
|
4
4
|
import { countryValidation } from "../utils/country-config";
|
|
5
5
|
import { businessServiceReceivedOptions, bankAccountTypeOptions, } from "../utils/business-form-options";
|
|
@@ -158,7 +158,7 @@ export const cityValidation = string()
|
|
|
158
158
|
.max(50, 'City must be less than 50 characters')
|
|
159
159
|
.transform(transformEmptyString);
|
|
160
160
|
export const stateValidation = string()
|
|
161
|
-
.oneOf(
|
|
161
|
+
.oneOf(checkoutBillingStateOptions.map((option) => option.value), 'Select a valid state or province')
|
|
162
162
|
.transform(transformEmptyString);
|
|
163
163
|
export const postalValidation = string()
|
|
164
164
|
.matches(/^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$/, 'Enter valid postal code')
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { fullBillingSchema } from "./billing-form-schema";
|
|
3
3
|
import { billingForm } from "../../../styles/parts";
|
|
4
4
|
import { Header3 } from "../../../ui-components";
|
|
5
|
-
import
|
|
5
|
+
import checkoutBillingStateOptions from "../../../utils/checkout-billing-state-options";
|
|
6
6
|
import { FormController } from "../../../ui-components/form/form";
|
|
7
7
|
import { checkoutStore, onChange } from "../../../store/checkout.store";
|
|
8
8
|
export class BillingFormFull {
|
|
@@ -45,7 +45,7 @@ export class BillingFormFull {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
48
|
-
return (h("div", { part: billingForm, class: "mt-4" }, h(Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", null, h("fieldset", null, this.legend && (h("legend", null, this.legend)), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: 'address_state', label: 'State', options:
|
|
48
|
+
return (h("div", { part: billingForm, class: "mt-4" }, h(Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", null, h("fieldset", null, this.legend && (h("legend", null, this.legend)), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: 'address_state', label: 'State / Province', options: checkoutBillingStateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 7 })))))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "billing-form-full"; }
|
|
51
51
|
static get properties() {
|
|
@@ -5,7 +5,7 @@ export const fullBillingSchema = () => object({
|
|
|
5
5
|
address_line1: lineOneValidation.required('Enter street address'),
|
|
6
6
|
address_line2: lineTwoValidation.nullable(),
|
|
7
7
|
address_city: cityValidation.required('Enter city'),
|
|
8
|
-
address_state: stateValidation.required('Select state'),
|
|
8
|
+
address_state: stateValidation.required('Select state or province'),
|
|
9
9
|
address_postal_code: postalValidation.required('Enter postal code'),
|
|
10
10
|
});
|
|
11
11
|
export const postalOnlySchema = () => object({
|
|
@@ -51,8 +51,8 @@ export class JustifiCheckoutsListFilters {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
54
|
-
return (h(StyledHost, { key: '
|
|
55
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '
|
|
54
|
+
return (h(StyledHost, { key: '1bb72de3ffad74d0e287f6f988f2737a94190709' }, h("table-filters-menu", { key: 'e7e1c2d657b5af5dfcf6e13b262dbd3787583206', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: 'df26c6a8c7ec477103995c07c079c01a4bea0729', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '6fd0f286cb30997439879d1c9b69b8ab39651a99', class: "p-2" }, h("form-control-text", { key: 'b6a070c40b1da5ea9f59c8c6f47f517181948230', name: "checkout_id", label: "Checkout ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.checkoutId || filterParams.checkout_id, disabled: !!this.checkoutId, part: filterParam })), h("div", { key: 'f6ae07ac4b9afcb307fa6ce5ff6a0b6610169a69', class: "p-2" }, h("form-control-text", { key: 'c27c86b9a14d806bcd6d2d2a070812e31ae558ee', name: "successful_payment_id", label: "Successful Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.successfulPaymentId || filterParams.successful_payment_id, disabled: !!this.successfulPaymentId, part: filterParam })), h("div", { key: '54b26c583902c853db8709b311870c94d5332bd2', class: "p-2" }, h("form-control-select", { key: '3747bd2c6f2196a56059f36febc30057b8dc13de', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: filterParam })), h("div", { key: '5a875750872d5446c42db9a840c3670425c46ebb', class: "p-2" }, h("form-control-select", { key: '58eff7fbca6653532540506c7cef66df0f54af38', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode || '', disabled: !!this.paymentMode, part: filterParam })), h("div", { key: 'dca10b3b14055c6c2351f4fa8f11b609625f1a26', class: "p-2" }, h("form-control-date", { key: 'bfb85e61a9ee01a1cb3c2907ad06b6d37bbdc081', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
55
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '1772c182c957b053e77599935e3d61c1a66186a6', class: "p-2" }, h("form-control-date", { key: 'f7965bd4b2689359e76d3cec250bfd7eb5ba7870', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
56
56
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam }))))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "justifi-checkouts-list-filters"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { pagingDefaults } from "../../api";
|
|
2
3
|
import { makeGetCheckouts } from "../../actions/checkout/get-checkouts";
|
|
3
4
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
4
5
|
import JustifiAnalytics from "../../api/Analytics";
|
|
@@ -6,29 +7,64 @@ import { CheckoutService } from "../../api/services/checkout.service";
|
|
|
6
7
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
7
8
|
import { SubAccountService } from "../../api/services/subaccounts.service";
|
|
8
9
|
import { makeGetSubAccounts } from "../../actions/sub-account/get-subaccounts";
|
|
9
|
-
import { StyledHost } from "../../ui-components";
|
|
10
|
-
import { defaultColumnsKeys } from "./checkouts-table";
|
|
10
|
+
import { StyledHost, TableEmptyState, TableErrorState, TableLoadingState, TableWrapper, TableComponent, TableHead, TableHeadRow, TableBody, TableRow, TableFoot, TableFootRow, TableFootCell, TableClickActions, } from "../../ui-components";
|
|
11
|
+
import { checkoutTableColumns, checkoutTableCells, defaultColumnsKeys } from "./checkouts-table";
|
|
12
|
+
import { Table } from "../../utils/table";
|
|
13
|
+
import { getRequestParams, onQueryParamsChange } from "./checkouts-list-params-state";
|
|
11
14
|
export class JustifiCheckoutsList {
|
|
12
15
|
constructor() {
|
|
13
|
-
this.errorMessage = null;
|
|
14
16
|
this.columns = defaultColumnsKeys;
|
|
15
|
-
this.
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
this.checkouts = [];
|
|
18
|
+
this.subAccounts = [];
|
|
19
|
+
this.loading = true;
|
|
20
|
+
this.paging = pagingDefaults;
|
|
21
|
+
this.pagingParams = {};
|
|
22
|
+
this.handleClickPrevious = (beforeCursor) => {
|
|
23
|
+
this.pagingParams = { before_cursor: beforeCursor };
|
|
24
|
+
this.clickEvent.emit({ name: TableClickActions.previous });
|
|
25
|
+
};
|
|
26
|
+
this.handleClickNext = (afterCursor) => {
|
|
27
|
+
this.pagingParams = { after_cursor: afterCursor };
|
|
28
|
+
this.clickEvent.emit({ name: TableClickActions.next });
|
|
29
|
+
};
|
|
30
|
+
this.rowClickHandler = (e) => {
|
|
31
|
+
const clickedCheckoutID = e.target.closest('tr').dataset.rowEntityId;
|
|
32
|
+
if (!clickedCheckoutID)
|
|
33
|
+
return;
|
|
34
|
+
const checkoutData = this.checkouts.find((checkout) => checkout.id === clickedCheckoutID);
|
|
35
|
+
this.clickEvent.emit({ name: TableClickActions.row, data: checkoutData });
|
|
18
36
|
};
|
|
19
37
|
}
|
|
20
38
|
componentWillLoad() {
|
|
21
39
|
checkPkgVersion();
|
|
22
40
|
this.analytics = new JustifiAnalytics(this);
|
|
41
|
+
this.checkoutsTable = new Table(this.checkouts, this.columns, checkoutTableColumns, checkoutTableCells);
|
|
23
42
|
this.initializeGetData();
|
|
43
|
+
if (this.getCheckouts) {
|
|
44
|
+
this.fetchData();
|
|
45
|
+
}
|
|
46
|
+
onQueryParamsChange('set', () => {
|
|
47
|
+
this.pagingParams = {};
|
|
48
|
+
});
|
|
49
|
+
onQueryParamsChange('reset', () => {
|
|
50
|
+
this.pagingParams = {};
|
|
51
|
+
this.errorMessage = '';
|
|
52
|
+
});
|
|
24
53
|
}
|
|
25
54
|
disconnectedCallback() {
|
|
26
55
|
var _a;
|
|
27
56
|
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
28
57
|
}
|
|
29
|
-
|
|
30
|
-
propChanged() {
|
|
58
|
+
authPropChanged() {
|
|
31
59
|
this.initializeGetData();
|
|
60
|
+
if (this.getCheckouts) {
|
|
61
|
+
this.fetchData();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
pagingOrColumnsChanged() {
|
|
65
|
+
if (this.getCheckouts) {
|
|
66
|
+
this.fetchData();
|
|
67
|
+
}
|
|
32
68
|
}
|
|
33
69
|
initializeGetData() {
|
|
34
70
|
this.initializeGetCheckouts();
|
|
@@ -40,7 +76,7 @@ export class JustifiCheckoutsList {
|
|
|
40
76
|
this.getCheckouts = makeGetCheckouts({
|
|
41
77
|
accountId: accountToUse,
|
|
42
78
|
authToken: this.authToken,
|
|
43
|
-
service: new CheckoutService()
|
|
79
|
+
service: new CheckoutService(),
|
|
44
80
|
});
|
|
45
81
|
}
|
|
46
82
|
else {
|
|
@@ -57,12 +93,93 @@ export class JustifiCheckoutsList {
|
|
|
57
93
|
this.getSubAccounts = makeGetSubAccounts({
|
|
58
94
|
primaryAccountId: this.accountId,
|
|
59
95
|
authToken: this.authToken,
|
|
60
|
-
service: new SubAccountService()
|
|
96
|
+
service: new SubAccountService(),
|
|
61
97
|
});
|
|
62
98
|
}
|
|
63
99
|
}
|
|
100
|
+
fetchData() {
|
|
101
|
+
if (!this.getCheckouts) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
this.loading = true;
|
|
105
|
+
this.getCheckouts({
|
|
106
|
+
params: this.checkoutParams,
|
|
107
|
+
onSuccess: async ({ checkouts, pagingInfo }) => {
|
|
108
|
+
this.checkouts = checkouts;
|
|
109
|
+
this.paging = pagingInfo;
|
|
110
|
+
this.checkoutsTable.collectionData = this.checkouts;
|
|
111
|
+
const shouldFetchSubAccounts = this.checkoutsTable.columnKeys.includes('sub_account_name');
|
|
112
|
+
if (shouldFetchSubAccounts) {
|
|
113
|
+
await this.fetchSubAccounts();
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
this.loading = false;
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
onError: ({ error, code, severity }) => {
|
|
120
|
+
this.errorMessage = error;
|
|
121
|
+
this.errorEvent.emit({
|
|
122
|
+
errorCode: code,
|
|
123
|
+
message: error,
|
|
124
|
+
severity,
|
|
125
|
+
});
|
|
126
|
+
this.loading = false;
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
async fetchSubAccounts() {
|
|
131
|
+
if (!this.getSubAccounts) {
|
|
132
|
+
this.loading = false;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
this.getSubAccounts({
|
|
136
|
+
params: this.subAccountParams,
|
|
137
|
+
onSuccess: ({ subAccounts }) => {
|
|
138
|
+
this.subAccounts = subAccounts;
|
|
139
|
+
this.checkouts = this.checkouts.map((checkout) => {
|
|
140
|
+
var _a;
|
|
141
|
+
checkout.sub_account_name = (_a = this.subAccounts.find((subAccount) => subAccount.id === checkout.account_id)) === null || _a === void 0 ? void 0 : _a.name;
|
|
142
|
+
return checkout;
|
|
143
|
+
});
|
|
144
|
+
this.loading = false;
|
|
145
|
+
},
|
|
146
|
+
onError: ({ error, code, severity }) => {
|
|
147
|
+
this.errorMessage = error;
|
|
148
|
+
this.errorEvent.emit({
|
|
149
|
+
errorCode: code,
|
|
150
|
+
message: error,
|
|
151
|
+
severity,
|
|
152
|
+
});
|
|
153
|
+
this.loading = false;
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
get checkoutParams() {
|
|
158
|
+
const requestParams = getRequestParams();
|
|
159
|
+
const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
|
|
160
|
+
return params;
|
|
161
|
+
}
|
|
162
|
+
get subAccountParams() {
|
|
163
|
+
const accountIdNumbers = this.checkouts.map((checkout) => checkout.account_id);
|
|
164
|
+
const uniqueAccountIds = [...new Set(accountIdNumbers)];
|
|
165
|
+
const accountIdString = uniqueAccountIds.join(',');
|
|
166
|
+
return { sub_account_id: accountIdString };
|
|
167
|
+
}
|
|
168
|
+
get entityId() {
|
|
169
|
+
return this.checkouts.map((checkout) => checkout.id);
|
|
170
|
+
}
|
|
171
|
+
get showEmptyState() {
|
|
172
|
+
return !this.loading && !this.errorMessage && this.checkoutsTable.rowData.length < 1;
|
|
173
|
+
}
|
|
174
|
+
get showErrorState() {
|
|
175
|
+
return !this.loading && !!this.errorMessage;
|
|
176
|
+
}
|
|
177
|
+
get showRowData() {
|
|
178
|
+
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
179
|
+
}
|
|
64
180
|
render() {
|
|
65
|
-
return (h(StyledHost, { key: '
|
|
181
|
+
return (h(StyledHost, { key: '2f9efac8723333029415ef131516946912bb313c' }, h(TableWrapper, { key: '024c7a532533721acda9740a0888b1c15fa624fe' }, h(TableComponent, { key: '06bf1c6db731eb5857b08615222ca47a85ffc4a8' }, h(TableHead, { key: '0754f9cd87a3b32a5368e7fb7538071cf6be0505' }, h(TableHeadRow, { key: '5db4c5beea0e6e9afc29e16b5789a32ad94509dd' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '9140294035b04b549578d74374271f8a9fd78162' }, h(TableLoadingState, { key: 'bf495d00b9bc4ee28b67c8f1b3258306f9202142', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '92f8a1245cc022fa3b254bb1fe8d659f75c62923', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '2e6ab100026afb29f199dd33e52de5ae77e6576c', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
182
|
+
this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '3a1b55572eb0fc2ffcef1a39f6bfae5693056752' }, h(TableFootRow, { key: 'f61a3cc86fda3ec95075381403916f5fb1c46ca6' }, h(TableFootCell, { key: '7d937a0d228062f42f49dca5bdb436d54354563e', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '05454876b7faeeb73fb8f896a2425e5f9db12ee3', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
66
183
|
}
|
|
67
184
|
static get is() { return "justifi-checkouts-list"; }
|
|
68
185
|
static get encapsulation() { return "shadow"; }
|
|
@@ -149,13 +266,40 @@ export class JustifiCheckoutsList {
|
|
|
149
266
|
}
|
|
150
267
|
static get states() {
|
|
151
268
|
return {
|
|
269
|
+
"checkouts": {},
|
|
270
|
+
"checkoutsTable": {},
|
|
271
|
+
"subAccounts": {},
|
|
272
|
+
"loading": {},
|
|
273
|
+
"errorMessage": {},
|
|
274
|
+
"paging": {},
|
|
275
|
+
"pagingParams": {},
|
|
152
276
|
"getCheckouts": {},
|
|
153
|
-
"getSubAccounts": {}
|
|
154
|
-
"errorMessage": {}
|
|
277
|
+
"getSubAccounts": {}
|
|
155
278
|
};
|
|
156
279
|
}
|
|
157
280
|
static get events() {
|
|
158
281
|
return [{
|
|
282
|
+
"method": "clickEvent",
|
|
283
|
+
"name": "click-event",
|
|
284
|
+
"bubbles": true,
|
|
285
|
+
"cancelable": true,
|
|
286
|
+
"composed": true,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": ""
|
|
290
|
+
},
|
|
291
|
+
"complexType": {
|
|
292
|
+
"original": "ComponentClickEvent",
|
|
293
|
+
"resolved": "ComponentClickEvent",
|
|
294
|
+
"references": {
|
|
295
|
+
"ComponentClickEvent": {
|
|
296
|
+
"location": "import",
|
|
297
|
+
"path": "../../api/ComponentEvents",
|
|
298
|
+
"id": "src/api/ComponentEvents.ts::ComponentClickEvent"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}, {
|
|
159
303
|
"method": "errorEvent",
|
|
160
304
|
"name": "error-event",
|
|
161
305
|
"bubbles": true,
|
|
@@ -181,13 +325,19 @@ export class JustifiCheckoutsList {
|
|
|
181
325
|
static get watchers() {
|
|
182
326
|
return [{
|
|
183
327
|
"propName": "accountId",
|
|
184
|
-
"methodName": "
|
|
328
|
+
"methodName": "authPropChanged"
|
|
185
329
|
}, {
|
|
186
330
|
"propName": "authToken",
|
|
187
|
-
"methodName": "
|
|
331
|
+
"methodName": "authPropChanged"
|
|
188
332
|
}, {
|
|
189
333
|
"propName": "subAccountId",
|
|
190
|
-
"methodName": "
|
|
334
|
+
"methodName": "authPropChanged"
|
|
335
|
+
}, {
|
|
336
|
+
"propName": "pagingParams",
|
|
337
|
+
"methodName": "pagingOrColumnsChanged"
|
|
338
|
+
}, {
|
|
339
|
+
"propName": "columns",
|
|
340
|
+
"methodName": "pagingOrColumnsChanged"
|
|
191
341
|
}];
|
|
192
342
|
}
|
|
193
343
|
}
|