@justifi/webcomponents 6.12.3 → 6.12.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/{Analytics-DcqsdFaD.js → Analytics-BERGweGK.js} +2 -3
- package/dist/cjs/{Plaid-BlSGeGpn.js → Plaid-BRSyOOuw.js} +60 -4
- package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +151 -19
- package/dist/cjs/{justifi-additional-statement_8.cjs.entry.js → additional-statement_8.cjs.entry.js} +24 -24
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business-identity-schema-DWWtSiUF.js → business-identity-schema-DI9XFbaD.js} +67 -0
- 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-ByKpJklZ.js} +1 -1
- package/dist/cjs/{checkout.service-DZKdHQQq.js → checkout.service-BZOyqXgW.js} +1 -2
- 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 +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-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 +10 -12
- 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-B6L3zyfG.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/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/Terminal.js +1 -1
- package/dist/collection/collection-manifest.json +10 -16
- 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/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/docs.json +5763 -6945
- package/dist/esm/{Analytics-Cyc3ZLPx.js → Analytics-B1bQP71R.js} +2 -3
- package/dist/esm/{Plaid-BuKEVgbB.js → Plaid-l6nNIjab.js} +58 -3
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/additional-questions-form-step_14.entry.js +156 -24
- package/dist/esm/additional-questions_5.entry.js +2 -2
- package/dist/esm/{justifi-additional-statement_8.entry.js → additional-statement_8.entry.js} +19 -19
- package/dist/esm/{badge-B6dp1XGV.js → badge-Dlcl9qdm.js} +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
- 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-D-Nk9aGV.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-CNwUC4SV.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-B_fuF6JU.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/{index.esm-BHdVU4hV.js → index.esm-CgNcFueq.js} +1 -1
- 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 +15 -17
- 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 +11 -12
- 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-OGt0dCJl.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-u9_XnlUL.js} +2 -2
- 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/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 +1 -1
- package/dist/module/business-bank-account-form-step2.js +1 -1
- package/dist/module/business-owners-form-step2.js +20 -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/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-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/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/webcomponents/p-0708cb76.entry.js +1 -0
- package/dist/webcomponents/p-07236291.entry.js +1 -0
- package/dist/webcomponents/p-12ae030d.entry.js +1 -0
- package/dist/webcomponents/p-215c6b6b.entry.js +1 -0
- package/dist/webcomponents/{p-256c5509.entry.js → p-22d19755.entry.js} +1 -1
- package/dist/webcomponents/{p-2425a375.entry.js → p-2dfdecbb.entry.js} +1 -1
- package/dist/webcomponents/p-31452258.entry.js +1 -0
- package/dist/webcomponents/p-35dd1fc0.entry.js +1 -0
- package/dist/webcomponents/{p-4d21df48.entry.js → p-383b8317.entry.js} +1 -1
- package/dist/webcomponents/{p-1e877e0a.entry.js → p-3d6b9434.entry.js} +1 -1
- package/dist/webcomponents/p-3f5e9afb.entry.js +1 -0
- package/dist/webcomponents/p-45c0fb53.entry.js +1 -0
- package/dist/webcomponents/p-46477dfe.entry.js +1 -0
- package/dist/webcomponents/{p-31e74a5a.entry.js → p-49a4123c.entry.js} +1 -1
- 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-4ec433f4.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-8253ef9f.entry.js → p-605bd107.entry.js} +1 -1
- package/dist/webcomponents/p-6220a384.entry.js +1 -0
- package/dist/webcomponents/p-63b7abf3.entry.js +1 -0
- package/dist/webcomponents/p-69fdd137.entry.js +1 -0
- package/dist/webcomponents/p-6RTf1SXX.js +1 -0
- package/dist/webcomponents/{p-3c046adc.entry.js → p-70dcd833.entry.js} +1 -1
- package/dist/webcomponents/p-7119fddd.entry.js +1 -0
- package/dist/webcomponents/p-7ebed752.entry.js +1 -0
- package/dist/webcomponents/p-8964f4ca.entry.js +1 -0
- package/dist/webcomponents/p-89cd31f2.entry.js +1 -0
- package/dist/webcomponents/p-8aa53ef2.entry.js +1 -0
- package/dist/webcomponents/p-8d173a7c.entry.js +1 -0
- package/dist/webcomponents/p-9153c121.entry.js +1 -0
- package/dist/webcomponents/p-91aef5bf.entry.js +1 -0
- package/dist/webcomponents/p-9b944aa4.entry.js +1 -0
- package/dist/webcomponents/p-9d021e10.entry.js +1 -0
- package/dist/webcomponents/{p-bc2af6b4.entry.js → p-9fc7714d.entry.js} +1 -1
- 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-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-Cz_7BuGW.js +1 -0
- 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-DSclFZ32.js +1 -0
- package/dist/webcomponents/p-DYHjzFnJ.js +1 -0
- package/dist/webcomponents/p-Dk26hk5T.js +1 -0
- package/dist/webcomponents/{p-CKiAlBsU.js → p-DwoT0UoX.js} +1 -1
- package/dist/webcomponents/{p-_-2E_vYf.js → p-DyucNSA4.js} +1 -1
- package/dist/webcomponents/p-KXLYEe1D.js +1 -0
- package/dist/webcomponents/p-NZS8uCtH.js +1 -0
- package/dist/webcomponents/p-OGt0dCJl.js +1 -0
- package/dist/webcomponents/p-a1dcdc8b.entry.js +20 -0
- package/dist/webcomponents/{p-10be75b8.entry.js → p-a80f69a9.entry.js} +1 -1
- package/dist/webcomponents/{p-9581d6a1.entry.js → p-a9695714.entry.js} +1 -1
- package/dist/webcomponents/{p-c9e1df15.entry.js → p-ae91fc9b.entry.js} +1 -1
- package/dist/webcomponents/p-av6jyzyC.js +1 -0
- package/dist/webcomponents/p-b0b6083f.entry.js +1 -0
- package/dist/webcomponents/p-b272a29d.entry.js +1 -0
- package/dist/webcomponents/p-b341efd6.entry.js +1 -0
- package/dist/webcomponents/{p-e6e56dbb.entry.js → p-b62ff001.entry.js} +1 -1
- package/dist/webcomponents/p-c1539656.entry.js +1 -0
- package/dist/webcomponents/p-c8f3656f.entry.js +1 -0
- package/dist/webcomponents/p-c9fe4f33.entry.js +1 -0
- package/dist/webcomponents/{p-09d2efad.entry.js → p-ca87c609.entry.js} +1 -1
- package/dist/webcomponents/p-cde76bf8.entry.js +1 -0
- package/dist/webcomponents/p-d24240a5.entry.js +1 -0
- package/dist/webcomponents/p-d79c5ee4.entry.js +1 -0
- package/dist/webcomponents/p-daaa2a99.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-e4cb7c21.entry.js +1 -0
- package/dist/webcomponents/p-e5c2215a.entry.js +1 -0
- package/dist/webcomponents/p-ea0d7a98.entry.js +1 -0
- package/dist/webcomponents/p-ef85717f.entry.js +1 -0
- package/dist/webcomponents/p-f1b9cbf0.entry.js +1 -0
- package/dist/webcomponents/p-f30069ea.entry.js +1 -0
- package/dist/webcomponents/p-f3ff7e00.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-jIDKmNHy.js +1 -0
- package/dist/webcomponents/{p-DgH-jcIo.js → p-mF5zKtkx.js} +1 -1
- 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 +1 -1
- 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-1e8135f0.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-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,139 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { Chart, BarController, Colors, BarElement, CategoryScale, LinearScale, Legend, Tooltip, Title } from "chart.js";
|
|
3
|
-
import { generateChartOptions } from "./chart-utils";
|
|
4
|
-
import { ErrorState } from "../../ui-components/details/utils";
|
|
5
|
-
import Spinner from "../../ui-components/spinner";
|
|
6
|
-
Chart.register(Colors, BarController, BarElement, CategoryScale, LinearScale, Legend, Tooltip, Title);
|
|
7
|
-
export class GrossPaymentChartCore {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.loading = true;
|
|
10
|
-
this.errorMessage = '';
|
|
11
|
-
}
|
|
12
|
-
componentDidLoad() {
|
|
13
|
-
if (this.getGrossPayment) {
|
|
14
|
-
this.fetchData();
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
propChanged() {
|
|
18
|
-
if (this.getGrossPayment) {
|
|
19
|
-
this.fetchData();
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
grossVolumeReportChanged(grossVolumeReport) {
|
|
23
|
-
if (grossVolumeReport) {
|
|
24
|
-
if (!this.chart) {
|
|
25
|
-
this.initChart(grossVolumeReport);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this.updateChartData(grossVolumeReport);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
async fetchData() {
|
|
33
|
-
this.loading = true;
|
|
34
|
-
this.getGrossPayment({
|
|
35
|
-
onSuccess: (data) => {
|
|
36
|
-
this.loading = false;
|
|
37
|
-
this.grossVolumeReport = data;
|
|
38
|
-
},
|
|
39
|
-
onError: ({ error, code, severity }) => {
|
|
40
|
-
this.loading = false;
|
|
41
|
-
this.errorMessage = error;
|
|
42
|
-
this.errorEvent.emit({
|
|
43
|
-
errorCode: code,
|
|
44
|
-
message: error,
|
|
45
|
-
severity,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
initChart(grossVolumeReport) {
|
|
51
|
-
const { dates, total } = grossVolumeReport;
|
|
52
|
-
const reversedDates = dates.reverse();
|
|
53
|
-
const endDate = reversedDates[dates.length - 1].date;
|
|
54
|
-
const chartOptions = generateChartOptions(total, reversedDates, endDate);
|
|
55
|
-
this.chart = new Chart(this.chartRef.getContext('2d'), chartOptions);
|
|
56
|
-
}
|
|
57
|
-
updateChartData(grossVolumeReport) {
|
|
58
|
-
const newData = grossVolumeReport.dates.map((date) => date.value);
|
|
59
|
-
this.chart.data.datasets.forEach((dataset) => {
|
|
60
|
-
dataset.data = newData;
|
|
61
|
-
});
|
|
62
|
-
this.chart.update();
|
|
63
|
-
}
|
|
64
|
-
disconnectedCallback() {
|
|
65
|
-
if (this.chart) {
|
|
66
|
-
this.chart.destroy();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
render() {
|
|
70
|
-
return (h(Host, { key: 'd4990aaf15ed163808895ca6e7d13114eb4a25c3' }, this.loading && h(Spinner, { key: '8cfa44f9a7b54f03f1149569d82a2fae078ce308' }), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
|
|
71
|
-
}
|
|
72
|
-
static get is() { return "gross-payment-chart-core"; }
|
|
73
|
-
static get properties() {
|
|
74
|
-
return {
|
|
75
|
-
"getGrossPayment": {
|
|
76
|
-
"type": "unknown",
|
|
77
|
-
"mutable": false,
|
|
78
|
-
"complexType": {
|
|
79
|
-
"original": "Function",
|
|
80
|
-
"resolved": "Function",
|
|
81
|
-
"references": {
|
|
82
|
-
"Function": {
|
|
83
|
-
"location": "global",
|
|
84
|
-
"id": "global::Function"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
"required": true,
|
|
89
|
-
"optional": false,
|
|
90
|
-
"docs": {
|
|
91
|
-
"tags": [],
|
|
92
|
-
"text": ""
|
|
93
|
-
},
|
|
94
|
-
"getter": false,
|
|
95
|
-
"setter": false
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
static get states() {
|
|
100
|
-
return {
|
|
101
|
-
"grossVolumeReport": {},
|
|
102
|
-
"loading": {},
|
|
103
|
-
"errorMessage": {}
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
static get events() {
|
|
107
|
-
return [{
|
|
108
|
-
"method": "errorEvent",
|
|
109
|
-
"name": "error-event",
|
|
110
|
-
"bubbles": true,
|
|
111
|
-
"cancelable": true,
|
|
112
|
-
"composed": true,
|
|
113
|
-
"docs": {
|
|
114
|
-
"tags": [],
|
|
115
|
-
"text": ""
|
|
116
|
-
},
|
|
117
|
-
"complexType": {
|
|
118
|
-
"original": "ComponentErrorEvent",
|
|
119
|
-
"resolved": "ComponentErrorEvent",
|
|
120
|
-
"references": {
|
|
121
|
-
"ComponentErrorEvent": {
|
|
122
|
-
"location": "import",
|
|
123
|
-
"path": "../../api/ComponentEvents",
|
|
124
|
-
"id": "src/api/ComponentEvents.ts::ComponentErrorEvent"
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}];
|
|
129
|
-
}
|
|
130
|
-
static get watchers() {
|
|
131
|
-
return [{
|
|
132
|
-
"propName": "getGrossPayment",
|
|
133
|
-
"methodName": "propChanged"
|
|
134
|
-
}, {
|
|
135
|
-
"propName": "grossVolumeReport",
|
|
136
|
-
"methodName": "grossVolumeReportChanged"
|
|
137
|
-
}];
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { Table } from "../../utils/table";
|
|
3
|
-
import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
4
|
-
import { pagingDefaults } from "../../api";
|
|
5
|
-
import { terminalOrdersTableCells, terminalOrdersTableColumns } from "./terminal-orders-table";
|
|
6
|
-
import { getRequestParams, onQueryParamsChange } from "./terminal-orders-list-params-state";
|
|
7
|
-
import { TableWrapper, TableComponent, TableHead, TableHeadRow, TableBody, TableRow, TableFoot, TableFootRow, TableFootCell, TableClickActions } from "../../ui-components";
|
|
8
|
-
export class TerminalOrdersListCore {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.terminalOrders = [];
|
|
11
|
-
this.loading = true;
|
|
12
|
-
this.paging = pagingDefaults;
|
|
13
|
-
this.pagingParams = {};
|
|
14
|
-
this.handleClickPrevious = (beforeCursor) => {
|
|
15
|
-
this.pagingParams = { before_cursor: beforeCursor };
|
|
16
|
-
this.clickEvent.emit({ name: TableClickActions.previous });
|
|
17
|
-
};
|
|
18
|
-
this.handleClickNext = (afterCursor) => {
|
|
19
|
-
this.pagingParams = { after_cursor: afterCursor };
|
|
20
|
-
this.clickEvent.emit({ name: TableClickActions.next });
|
|
21
|
-
};
|
|
22
|
-
this.rowClickHandler = (e) => {
|
|
23
|
-
const clickedOrderId = e.target.closest('tr').dataset.rowEntityId;
|
|
24
|
-
if (!clickedOrderId)
|
|
25
|
-
return;
|
|
26
|
-
const orderData = this.terminalOrders.find((order) => order.id === clickedOrderId);
|
|
27
|
-
this.clickEvent.emit({ name: TableClickActions.row, data: orderData });
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
updateOnPropChange() {
|
|
31
|
-
this.fetchData();
|
|
32
|
-
}
|
|
33
|
-
componentWillLoad() {
|
|
34
|
-
this.terminalOrdersTable = new Table(this.terminalOrders, this.columns, terminalOrdersTableColumns, terminalOrdersTableCells);
|
|
35
|
-
if (this.getTerminalOrders) {
|
|
36
|
-
this.fetchData();
|
|
37
|
-
}
|
|
38
|
-
onQueryParamsChange('set', () => {
|
|
39
|
-
this.pagingParams = {};
|
|
40
|
-
});
|
|
41
|
-
onQueryParamsChange('reset', () => {
|
|
42
|
-
this.pagingParams = {};
|
|
43
|
-
this.errorMessage = '';
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
fetchData() {
|
|
47
|
-
this.loading = true;
|
|
48
|
-
this.getTerminalOrders({
|
|
49
|
-
params: this.terminalOrderParams,
|
|
50
|
-
onSuccess: async ({ terminalOrders, pagingInfo }) => {
|
|
51
|
-
this.terminalOrders = terminalOrders;
|
|
52
|
-
this.paging = pagingInfo;
|
|
53
|
-
this.terminalOrdersTable.collectionData = this.terminalOrders;
|
|
54
|
-
},
|
|
55
|
-
onError: ({ error, code, severity }) => {
|
|
56
|
-
this.errorMessage = error;
|
|
57
|
-
this.errorEvent.emit({
|
|
58
|
-
errorCode: code,
|
|
59
|
-
message: error,
|
|
60
|
-
severity,
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
final: () => { this.loading = false; },
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
get terminalOrderParams() {
|
|
67
|
-
const requestParams = getRequestParams();
|
|
68
|
-
const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
|
|
69
|
-
return params;
|
|
70
|
-
}
|
|
71
|
-
get entityId() {
|
|
72
|
-
return this.terminalOrders.map((terminalOrder) => terminalOrder.id);
|
|
73
|
-
}
|
|
74
|
-
get showEmptyState() {
|
|
75
|
-
return !this.loading && !this.errorMessage && this.terminalOrdersTable.rowData.length < 1;
|
|
76
|
-
}
|
|
77
|
-
get showErrorState() {
|
|
78
|
-
return !this.loading && !!this.errorMessage;
|
|
79
|
-
}
|
|
80
|
-
get showRowData() {
|
|
81
|
-
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
82
|
-
}
|
|
83
|
-
render() {
|
|
84
|
-
return (h(TableWrapper, { key: '92fffc2d98e3a5176d80decaeddc8d3b0babca74' }, h(TableComponent, { key: '9a690f1298358fd1f22942cce38a99b157526d2a' }, h(TableHead, { key: '53275af95435cbc3fa01753e88ab6a9319aa678b' }, h(TableHeadRow, { key: '374db48f613bddaad4308e60700c1ea66a5c54dd' }, this.terminalOrdersTable.columnData.map((column) => column))), h(TableBody, { key: '8e95036b34d7ed6712d64978923459b29c11fab8' }, h(TableLoadingState, { key: 'bf28d8b020cfc59f494eede313f9cb38265d702f', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '0361d8c68151065fe96a97a137aa06b510d2f2dd', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: 'b7bbf34d9c90f1757424afb9fa30617f61a4d564', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'a0b4a423809b3b36211b7f59719642e48311d32e' }, h(TableFootRow, { key: '81a3dd146e0931f14ef6972e42f71b38c2f11239' }, h(TableFootCell, { key: '8e4afc9ea974aac2c693a60e3e0ea5f9915a199e', colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '9d5afd8b9a09fc24f12c701e289c22a40ad77042', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
85
|
-
}
|
|
86
|
-
static get is() { return "terminal-orders-list-core"; }
|
|
87
|
-
static get properties() {
|
|
88
|
-
return {
|
|
89
|
-
"getTerminalOrders": {
|
|
90
|
-
"type": "unknown",
|
|
91
|
-
"mutable": false,
|
|
92
|
-
"complexType": {
|
|
93
|
-
"original": "Function",
|
|
94
|
-
"resolved": "Function",
|
|
95
|
-
"references": {
|
|
96
|
-
"Function": {
|
|
97
|
-
"location": "global",
|
|
98
|
-
"id": "global::Function"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"required": true,
|
|
103
|
-
"optional": false,
|
|
104
|
-
"docs": {
|
|
105
|
-
"tags": [],
|
|
106
|
-
"text": ""
|
|
107
|
-
},
|
|
108
|
-
"getter": false,
|
|
109
|
-
"setter": false
|
|
110
|
-
},
|
|
111
|
-
"columns": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"mutable": false,
|
|
114
|
-
"complexType": {
|
|
115
|
-
"original": "string",
|
|
116
|
-
"resolved": "string",
|
|
117
|
-
"references": {}
|
|
118
|
-
},
|
|
119
|
-
"required": true,
|
|
120
|
-
"optional": false,
|
|
121
|
-
"docs": {
|
|
122
|
-
"tags": [],
|
|
123
|
-
"text": ""
|
|
124
|
-
},
|
|
125
|
-
"getter": false,
|
|
126
|
-
"setter": false,
|
|
127
|
-
"reflect": false,
|
|
128
|
-
"attribute": "columns"
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
static get states() {
|
|
133
|
-
return {
|
|
134
|
-
"terminalOrders": {},
|
|
135
|
-
"terminalOrdersTable": {},
|
|
136
|
-
"loading": {},
|
|
137
|
-
"errorMessage": {},
|
|
138
|
-
"paging": {},
|
|
139
|
-
"pagingParams": {}
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
static get events() {
|
|
143
|
-
return [{
|
|
144
|
-
"method": "clickEvent",
|
|
145
|
-
"name": "click-event",
|
|
146
|
-
"bubbles": true,
|
|
147
|
-
"cancelable": true,
|
|
148
|
-
"composed": true,
|
|
149
|
-
"docs": {
|
|
150
|
-
"tags": [],
|
|
151
|
-
"text": ""
|
|
152
|
-
},
|
|
153
|
-
"complexType": {
|
|
154
|
-
"original": "ComponentClickEvent",
|
|
155
|
-
"resolved": "ComponentClickEvent",
|
|
156
|
-
"references": {
|
|
157
|
-
"ComponentClickEvent": {
|
|
158
|
-
"location": "import",
|
|
159
|
-
"path": "../../api",
|
|
160
|
-
"id": "src/api/index.ts::ComponentClickEvent"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}, {
|
|
165
|
-
"method": "errorEvent",
|
|
166
|
-
"name": "error-event",
|
|
167
|
-
"bubbles": true,
|
|
168
|
-
"cancelable": true,
|
|
169
|
-
"composed": true,
|
|
170
|
-
"docs": {
|
|
171
|
-
"tags": [],
|
|
172
|
-
"text": ""
|
|
173
|
-
},
|
|
174
|
-
"complexType": {
|
|
175
|
-
"original": "ComponentErrorEvent",
|
|
176
|
-
"resolved": "ComponentErrorEvent",
|
|
177
|
-
"references": {
|
|
178
|
-
"ComponentErrorEvent": {
|
|
179
|
-
"location": "import",
|
|
180
|
-
"path": "../../api",
|
|
181
|
-
"id": "src/api/index.ts::ComponentErrorEvent"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}];
|
|
186
|
-
}
|
|
187
|
-
static get watchers() {
|
|
188
|
-
return [{
|
|
189
|
-
"propName": "pagingParams",
|
|
190
|
-
"methodName": "updateOnPropChange"
|
|
191
|
-
}, {
|
|
192
|
-
"propName": "getTerminalOrders",
|
|
193
|
-
"methodName": "updateOnPropChange"
|
|
194
|
-
}, {
|
|
195
|
-
"propName": "columns",
|
|
196
|
-
"methodName": "updateOnPropChange"
|
|
197
|
-
}];
|
|
198
|
-
}
|
|
199
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
var DisputeStatus;
|
|
2
|
-
(function (DisputeStatus) {
|
|
3
|
-
DisputeStatus["won"] = "won";
|
|
4
|
-
DisputeStatus["lost"] = "lost";
|
|
5
|
-
DisputeStatus["underReview"] = "under_review";
|
|
6
|
-
DisputeStatus["needsResponse"] = "needs_response";
|
|
7
|
-
})(DisputeStatus || (DisputeStatus = {}));
|
|
8
|
-
class Dispute {
|
|
9
|
-
get needsResponse() {
|
|
10
|
-
return this.status == DisputeStatus.needsResponse;
|
|
11
|
-
}
|
|
12
|
-
get underReview() {
|
|
13
|
-
return this.status == DisputeStatus.underReview;
|
|
14
|
-
}
|
|
15
|
-
get won() {
|
|
16
|
-
return this.status == DisputeStatus.won;
|
|
17
|
-
}
|
|
18
|
-
get lost() {
|
|
19
|
-
return this.status == DisputeStatus.lost;
|
|
20
|
-
}
|
|
21
|
-
constructor(dispute) {
|
|
22
|
-
this.id = dispute.id;
|
|
23
|
-
this.amount = dispute.amount;
|
|
24
|
-
this.currency = dispute.currency;
|
|
25
|
-
this.payment_id = dispute.payment_id;
|
|
26
|
-
this.reason = dispute.reason;
|
|
27
|
-
this.due_date = dispute.due_date;
|
|
28
|
-
this.status = dispute.status;
|
|
29
|
-
this.metadata = dispute.metadata;
|
|
30
|
-
this.created_at = dispute.created_at;
|
|
31
|
-
this.updated_at = dispute.updated_at;
|
|
32
|
-
this.dispute_response = dispute.dispute_response ? new DisputeResponse(dispute.dispute_response) : undefined;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
class DisputeResponse {
|
|
36
|
-
constructor(response) {
|
|
37
|
-
this.additional_statement = response.additional_statement;
|
|
38
|
-
this.cancellation_policy_disclosure = response.cancellation_policy_disclosure;
|
|
39
|
-
this.cancellation_rebuttal = response.cancellation_rebuttal;
|
|
40
|
-
this.customer_billing_address = response.customer_billing_address;
|
|
41
|
-
this.customer_email_address = response.customer_email_address;
|
|
42
|
-
this.customer_name = response.customer_name;
|
|
43
|
-
this.customer_purchase_ip_address = response.customer_purchase_ip_address;
|
|
44
|
-
this.duplicate_charge_explanation = response.duplicate_charge_explanation;
|
|
45
|
-
this.product_description = response.product_description;
|
|
46
|
-
this.refund_policy_disclosure = response.refund_policy_disclosure;
|
|
47
|
-
this.refund_refusal_explanation = response.refund_refusal_explanation;
|
|
48
|
-
this.service_date = response.service_date;
|
|
49
|
-
this.shipping_address = response.shipping_address;
|
|
50
|
-
this.shipping_carrier = response.shipping_carrier;
|
|
51
|
-
this.shipping_date = response.shipping_date;
|
|
52
|
-
this.shipping_tracking_number = response.shipping_tracking_number;
|
|
53
|
-
this.duplicate_charge_original_payment_id = response.duplicate_charge_original_payment_id;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export { Dispute as D, DisputeStatus as a };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { c as create$3, a as create$6 } from './index.esm-BHdVU4hV.js';
|
|
2
|
-
import { m as makeTaxIdValidation, d as dateOfIncorporationValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, t as taxIdValidation, o as otherPaymentDetailsValidation, f as whenServiceReceivedValidation, r as revenueValidation, g as paymentVolumeValidation } from './schema-validations-v6WGlZkq.js';
|
|
3
|
-
import { C as CountryCode } from './Business-BcNb9bVO.js';
|
|
4
|
-
import { c as countryLabels } from './country-config-P042rrI3.js';
|
|
5
|
-
|
|
6
|
-
// Base schema (no country-specific rules for classification/tax id)
|
|
7
|
-
const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
8
|
-
const schema = create$3({
|
|
9
|
-
legal_name: businessNameValidation.required('Enter legal name'),
|
|
10
|
-
website_url: websiteUrlValidation.required('Enter business website url'),
|
|
11
|
-
email: emailValidation.required('Enter business email'),
|
|
12
|
-
phone: phoneValidation.required('Enter phone number'),
|
|
13
|
-
doing_business_as: doingBusinessAsValidation.nullable(),
|
|
14
|
-
classification: businessClassificationValidation.required('Select business classification'),
|
|
15
|
-
industry: industryValidation.required('Enter a business industry'),
|
|
16
|
-
date_of_incorporation: dateOfIncorporationValidation.required('Enter date of registration'),
|
|
17
|
-
});
|
|
18
|
-
const easySchema = create$3({
|
|
19
|
-
legal_name: businessNameValidation.required('Enter legal name'),
|
|
20
|
-
website_url: websiteUrlValidation.nullable(),
|
|
21
|
-
email: emailValidation.nullable(),
|
|
22
|
-
phone: phoneValidation.nullable(),
|
|
23
|
-
doing_business_as: doingBusinessAsValidation.nullable(),
|
|
24
|
-
classification: businessClassificationValidation.nullable(),
|
|
25
|
-
industry: industryValidation.nullable(),
|
|
26
|
-
tax_id: taxIdValidation.nullable(),
|
|
27
|
-
date_of_incorporation: dateOfIncorporationValidation.nullable(),
|
|
28
|
-
});
|
|
29
|
-
return allowOptionalFields ? easySchema : schema;
|
|
30
|
-
};
|
|
31
|
-
// Country-specific schema convenience wrappers
|
|
32
|
-
const businessCoreInfoSchemaUSA = (allowOptionalFields) => baseBusinessCoreInfoSchema(allowOptionalFields).concat(create$3({
|
|
33
|
-
classification: create$6().required('Select business classification'),
|
|
34
|
-
tax_id: makeTaxIdValidation(CountryCode.USA)
|
|
35
|
-
.when('tax_id_last4', {
|
|
36
|
-
is: (val) => !val,
|
|
37
|
-
then: (schema) => schema.required(`Enter valid ${countryLabels.USA.taxIdLabel} without dashes`),
|
|
38
|
-
otherwise: (schema) => schema.nullable(),
|
|
39
|
-
}),
|
|
40
|
-
}));
|
|
41
|
-
const businessCoreInfoSchemaCAN = (allowOptionalFields) => baseBusinessCoreInfoSchema(allowOptionalFields).concat(create$3({
|
|
42
|
-
classification: create$6().required('Select business classification'),
|
|
43
|
-
tax_id: makeTaxIdValidation(CountryCode.CAN)
|
|
44
|
-
.when('tax_id_last4', {
|
|
45
|
-
is: (val) => !val,
|
|
46
|
-
then: (schema) => schema.required(`Enter valid ${countryLabels.CAN.taxIdLabel} without dashes`),
|
|
47
|
-
otherwise: (schema) => schema.nullable(),
|
|
48
|
-
}),
|
|
49
|
-
}));
|
|
50
|
-
|
|
51
|
-
const additionalQuestionsSchema = (allowOptionalFields) => {
|
|
52
|
-
const schema = create$3({
|
|
53
|
-
business_revenue: revenueValidation.required('Enter business revenue'),
|
|
54
|
-
business_payment_volume: paymentVolumeValidation.required('Enter business payment volume'),
|
|
55
|
-
business_average_transaction_amount: revenueValidation.required('Enter average transaction amount'),
|
|
56
|
-
business_when_service_received: whenServiceReceivedValidation.required('Select when service is received'),
|
|
57
|
-
business_other_payment_details: otherPaymentDetailsValidation.nullable(),
|
|
58
|
-
});
|
|
59
|
-
const easySchema = create$3({
|
|
60
|
-
business_revenue: revenueValidation.nullable(),
|
|
61
|
-
business_payment_volume: paymentVolumeValidation.nullable(),
|
|
62
|
-
business_average_transaction_amount: revenueValidation.nullable(),
|
|
63
|
-
business_when_service_received: whenServiceReceivedValidation.nullable(),
|
|
64
|
-
business_other_payment_details: otherPaymentDetailsValidation.nullable(),
|
|
65
|
-
});
|
|
66
|
-
return allowOptionalFields ? easySchema : schema;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export { additionalQuestionsSchema as a, businessCoreInfoSchemaUSA as b, businessCoreInfoSchemaCAN as c };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { c as create$3, a as create$6 } from './index.esm-BHdVU4hV.js';
|
|
2
|
-
import { h as cityValidation, l as lineTwoValidation, j as lineOneValidation, k as makePostalValidation, n as ownershipPercentageValidation, s as ssnValidation, q as dobValidation, p as phoneValidation, e as emailValidation, u as identityTitleValidation, v as identityNameValidation, x as makeIdentityNumberValidation } from './schema-validations-v6WGlZkq.js';
|
|
3
|
-
import { C as CountryCode } from './Business-BcNb9bVO.js';
|
|
4
|
-
|
|
5
|
-
// Internal USA schemas
|
|
6
|
-
const schemaUSA$1 = () => create$3({
|
|
7
|
-
line1: lineOneValidation.nullable(),
|
|
8
|
-
line2: lineTwoValidation.nullable(),
|
|
9
|
-
city: cityValidation.nullable(),
|
|
10
|
-
state: create$6().nullable(),
|
|
11
|
-
postal_code: create$6().nullable(),
|
|
12
|
-
});
|
|
13
|
-
const strictSchemaUSA$1 = () => create$3({
|
|
14
|
-
line1: lineOneValidation.required('Enter street address'),
|
|
15
|
-
line2: lineTwoValidation.nullable(),
|
|
16
|
-
city: cityValidation.required('Enter city'),
|
|
17
|
-
state: create$6().required('Select state'),
|
|
18
|
-
postal_code: makePostalValidation(CountryCode.USA).required('Enter postal code'),
|
|
19
|
-
});
|
|
20
|
-
// Internal CAN schemas
|
|
21
|
-
const schemaCAN$1 = () => create$3({
|
|
22
|
-
line1: lineOneValidation.nullable(),
|
|
23
|
-
line2: lineTwoValidation.nullable(),
|
|
24
|
-
city: cityValidation.nullable(),
|
|
25
|
-
state: create$6().nullable(),
|
|
26
|
-
postal_code: create$6().nullable(),
|
|
27
|
-
});
|
|
28
|
-
const strictSchemaCAN$1 = () => create$3({
|
|
29
|
-
line1: lineOneValidation.required('Enter street address'),
|
|
30
|
-
line2: lineTwoValidation.nullable(),
|
|
31
|
-
city: cityValidation.required('Enter city'),
|
|
32
|
-
state: create$6().required('Select province'),
|
|
33
|
-
postal_code: makePostalValidation(CountryCode.CAN).required('Enter postal code'),
|
|
34
|
-
});
|
|
35
|
-
// Public API
|
|
36
|
-
const addressSchemaUSA = (allowOptionalFields) => allowOptionalFields ? schemaUSA$1() : strictSchemaUSA$1();
|
|
37
|
-
const addressSchemaCAN = (allowOptionalFields) => allowOptionalFields ? schemaCAN$1() : strictSchemaCAN$1();
|
|
38
|
-
// Country-keyed mapping
|
|
39
|
-
const addressSchemaByCountry = {
|
|
40
|
-
[CountryCode.USA]: addressSchemaUSA,
|
|
41
|
-
[CountryCode.CAN]: addressSchemaCAN,
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// Internal USA schemas
|
|
45
|
-
const schemaUSA = (role) => create$3({
|
|
46
|
-
name: identityNameValidation.required(`Enter ${role} name`),
|
|
47
|
-
title: identityTitleValidation.nullable(),
|
|
48
|
-
email: emailValidation.nullable(),
|
|
49
|
-
phone: phoneValidation.nullable(),
|
|
50
|
-
dob_full: dobValidation(role).nullable(),
|
|
51
|
-
ssn_last4: create$6().nullable(),
|
|
52
|
-
identification_number: ssnValidation.nullable(),
|
|
53
|
-
ownership_percentage: ownershipPercentageValidation.nullable(),
|
|
54
|
-
address: addressSchemaUSA(true),
|
|
55
|
-
});
|
|
56
|
-
const strictSchemaUSA = (role) => create$3({
|
|
57
|
-
name: identityNameValidation.required(`Enter ${role} name`),
|
|
58
|
-
title: identityTitleValidation.required(`Enter ${role} title`),
|
|
59
|
-
email: emailValidation.required(`Enter ${role} email`),
|
|
60
|
-
phone: phoneValidation.required('Enter phone number'),
|
|
61
|
-
dob_full: dobValidation(role).required('Enter date of birth'),
|
|
62
|
-
ssn_last4: create$6().nullable(),
|
|
63
|
-
// ssn required unless last4 provided (handled inside ssnValidation)
|
|
64
|
-
identification_number: ssnValidation,
|
|
65
|
-
ownership_percentage: ownershipPercentageValidation.nullable(),
|
|
66
|
-
address: addressSchemaUSA(false),
|
|
67
|
-
});
|
|
68
|
-
// Internal CAN schemas
|
|
69
|
-
const schemaCAN = (role) => create$3({
|
|
70
|
-
name: identityNameValidation.required(`Enter ${role} name`),
|
|
71
|
-
title: identityTitleValidation.nullable(),
|
|
72
|
-
email: emailValidation.nullable(),
|
|
73
|
-
phone: phoneValidation.nullable(),
|
|
74
|
-
dob_full: dobValidation(role).nullable(),
|
|
75
|
-
ssn_last4: create$6().nullable(),
|
|
76
|
-
identification_number: makeIdentityNumberValidation(CountryCode.CAN).nullable(),
|
|
77
|
-
ownership_percentage: ownershipPercentageValidation.nullable(),
|
|
78
|
-
address: addressSchemaCAN(true),
|
|
79
|
-
});
|
|
80
|
-
const strictSchemaCAN = (role) => create$3({
|
|
81
|
-
name: identityNameValidation.required(`Enter ${role} name`),
|
|
82
|
-
title: identityTitleValidation.required(`Enter ${role} title`),
|
|
83
|
-
email: emailValidation.required(`Enter ${role} email`),
|
|
84
|
-
phone: phoneValidation.required('Enter phone number'),
|
|
85
|
-
dob_full: dobValidation(role).required('Enter date of birth'),
|
|
86
|
-
ssn_last4: create$6().nullable(),
|
|
87
|
-
identification_number: makeIdentityNumberValidation(CountryCode.CAN),
|
|
88
|
-
ownership_percentage: ownershipPercentageValidation.nullable(),
|
|
89
|
-
address: addressSchemaCAN(false),
|
|
90
|
-
});
|
|
91
|
-
const identitySchemaUSA = (role, allowOptionalFields) => allowOptionalFields ? schemaUSA(role) : strictSchemaUSA(role);
|
|
92
|
-
const identitySchemaCAN = (role, allowOptionalFields) => allowOptionalFields ? schemaCAN(role) : strictSchemaCAN(role);
|
|
93
|
-
// Country-keyed mapping
|
|
94
|
-
const identitySchemaByCountry = {
|
|
95
|
-
[CountryCode.USA]: identitySchemaUSA,
|
|
96
|
-
[CountryCode.CAN]: identitySchemaCAN,
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export { addressSchemaUSA as a, identitySchemaCAN as b, addressSchemaCAN as c, identitySchemaByCountry as d, addressSchemaByCountry as e, identitySchemaUSA as i };
|