@justifi/webcomponents 5.6.0 → 5.6.1
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/ApiNew-DG13rvk6.js +86 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-DwSZ83Bm.js → badge-ByWVHNyJ.js} +2 -2
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-form_9.cjs.entry.js +6 -6
- package/dist/cjs/{business-additional-questions-schema-mzZ2gYHQ.js → business-additional-questions-schema-gVepoR4V.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +5 -5
- package/dist/cjs/{business.service-Crmkeulk.js → business.service-Vcq4kPU8.js} +4 -2
- package/dist/cjs/{button-Cp4u5YgP.js → button-Bn9jOYbx.js} +2 -2
- package/dist/cjs/{check-pkg-version-C4d9pl8G.js → check-pkg-version-7gGchZzS.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{payouts-list-params-state-DX4jg37H.js → checkouts-list-params-state-BvG5Ysrg.js} +1 -1
- package/dist/cjs/{checkouts-table-nsXjlcI1.js → checkouts-table-C_cpZa-i.js} +3 -3
- package/dist/cjs/config-state-Bm8-EuFE.js +42 -0
- package/dist/cjs/custom-popper_4.cjs.entry.js +3 -3
- package/dist/cjs/{event-types-CjInBN20.js → event-types-cB_-SsYZ.js} +3 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/form-control-date.cjs.entry.js +3 -3
- package/dist/cjs/{form-control-error-text-NbHDc1JL.js → form-control-error-text-CBAVQoZ3.js} +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/{form-control-help-text-bc3qGHAG.js → form-control-help-text-DQz5O3wX.js} +2 -2
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +4 -4
- package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-number.cjs.entry.js +4 -4
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/{get-business-BBzGEPBG.js → get-business-DHg5rpse.js} +2 -2
- package/dist/cjs/{get-payment-details-DQyJtwTw.js → get-payment-details-DqvDYbnK.js} +2 -2
- package/dist/cjs/{get-payout-csv-Jr_0DmmY.js → get-payout-csv-CXEQkjDm.js} +2 -2
- package/dist/cjs/{get-subaccounts-zwxhG-O3.js → get-subaccounts-CasN5tDA.js} +8 -8
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-kwWMtg3s.js → header-1-Bl1S9jV8.js} +2 -2
- package/dist/cjs/{header-3-CNWIH9ZU.js → header-3-DYzIjFIZ.js} +2 -2
- package/dist/cjs/{iframe-input-styles-state-jHHRvqzM.js → iframe-input-styles-state-D9vhHzZQ.js} +1 -1
- package/dist/cjs/iframe-input.cjs.entry.js +6 -6
- package/dist/cjs/{index-DzQdh5ij.js → index-B8ljHEN1.js} +1 -1
- package/dist/cjs/{index-BRQfozbS.js → index-BYd8IvAa.js} +1 -1
- package/dist/cjs/{insurance-state-DbXkNYds.js → insurance-state-BbmHHQl0.js} +3 -3
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +6 -6
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +7 -4
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -7
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -11
- package/dist/cjs/justifi-config-provider.cjs.entry.js +26 -0
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +18 -19
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +15 -14
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +17 -16
- package/dist/cjs/justifi-payout-details.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -14
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -19
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +21 -20
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +6 -6
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +19 -22
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +6 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-S6wVKDKx.js → package-CseQI95t.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +5 -5
- package/dist/cjs/{parts-D_uKOPFe.js → parts-Du1T2dvF.js} +12 -3
- package/dist/cjs/payment-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payment.service-CAJSEb2x.js +21 -0
- package/dist/cjs/payments-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{checkouts-list-params-state-DX4jg37H.js → payments-list-params-state-BvG5Ysrg.js} +1 -1
- package/dist/cjs/{payments-status-CQq7KrHL.js → payments-status-hksfHuBH.js} +2 -2
- package/dist/cjs/{payments-table-ClOxMnZ8.js → payments-table-CmvP6owu.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payout.service-wOnSu52a.js +26 -0
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{terminal-orders-list-params-state-DX4jg37H.js → payouts-list-params-state-BvG5Ysrg.js} +1 -1
- package/dist/cjs/{payouts-status-BdfV3jvX.js → payouts-status-DfNhfSsm.js} +2 -2
- package/dist/cjs/{payouts-table-Bo3pLf4Z.js → payouts-table-CpgWxl8A.js} +3 -3
- package/dist/cjs/{skeleton-BXVndBVC.js → skeleton-BFtuPBwQ.js} +2 -2
- package/dist/cjs/{spinner-CSH2OUiV.js → spinner-C9z2tkh2.js} +2 -2
- package/dist/cjs/{styled-host-CzJ8Ux1t.js → styled-host-udkBJV5h.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{payments-list-params-state-DX4jg37H.js → terminal-orders-list-params-state-BvG5Ysrg.js} +1 -1
- package/dist/cjs/{terminal-orders-table-CXmVc7uU.js → terminal-orders-table-CpVY3VsQ.js} +3 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/terminal.service-cGQB3xiL.js +29 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
- package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +22 -0
- package/dist/cjs/{terminals-table-vYbTPOpy.js → terminals-table-DRQQjYAE.js} +3 -3
- package/dist/cjs/{utils-DxbncJhj.js → utils-B_Ol6YlL.js} +2 -2
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/actions/business/get-business.js +2 -2
- package/dist/collection/actions/payment/get-payment-details.js +2 -2
- package/dist/collection/actions/payment/get-payment-transactions.js +2 -2
- package/dist/collection/actions/payment/get-payments.js +2 -2
- package/dist/collection/actions/payout/get-payout-transactions.js +2 -2
- package/dist/collection/actions/payout/get-payouts.js +2 -2
- package/dist/collection/actions/refund/refund-actions.js +2 -2
- package/dist/collection/actions/sub-account/get-subaccounts.js +2 -2
- package/dist/collection/actions/terminal/get-terminal-models.js +2 -2
- package/dist/collection/actions/terminal/get-terminal-orders.js +2 -2
- package/dist/collection/actions/terminal/get-terminals.js +2 -2
- package/dist/collection/api/ApiNew.js +82 -0
- package/dist/collection/api/services/business.service.js +4 -2
- package/dist/collection/api/services/payment.service.js +8 -8
- package/dist/collection/api/services/payout.service.js +11 -13
- package/dist/collection/api/services/refund.service.js +5 -4
- package/dist/collection/api/services/subaccounts.service.js +5 -5
- package/dist/collection/api/services/terminal.service.js +14 -15
- package/dist/collection/api/services/terminal_orders.service.js +5 -9
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +2 -3
- package/dist/collection/components/config-provider/config-provider.js +83 -0
- package/dist/collection/components/config-provider/config-state.js +36 -0
- package/dist/collection/components/order-terminals/order-terminals.js +4 -28
- package/dist/collection/components/payment-details/payment-details.js +1 -23
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +2 -24
- package/dist/collection/components/payments-list/payments-list-core.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +2 -24
- package/dist/collection/components/payout-details/get-payout-csv.js +2 -2
- package/dist/collection/components/payout-details/payout-details.js +1 -23
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +4 -24
- package/dist/collection/components/payouts-list/payouts-list.js +3 -26
- package/dist/collection/components/refund-payment/refund-payment.js +2 -25
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +2 -24
- package/dist/collection/components/terminals-list/terminals-list.js +3 -26
- package/dist/collection/styles/parts.js +10 -3
- package/dist/collection/ui-components/pagination-menu/pagination-menu.js +4 -4
- package/dist/docs.json +94 -242
- package/dist/esm/ApiNew-UOnmIWcv.js +84 -0
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-D5PvLnZT.js → badge-B191hCAo.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +4 -4
- package/dist/esm/bank-account-form_9.entry.js +6 -6
- package/dist/esm/{business-additional-questions-schema-W6okG5Xu.js → business-additional-questions-schema-DWnZs60Z.js} +1 -1
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-B136meVo.js → business.service-B1VD22Tz.js} +11 -9
- package/dist/esm/{button-wgHJf7hN.js → button-BRFA5syj.js} +2 -2
- package/dist/esm/{check-pkg-version-iIBw3nCc.js → check-pkg-version-DpVT68Qo.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +8 -8
- package/dist/esm/{checkouts-list-params-state-qgJxi6iW.js → checkouts-list-params-state-Bn7pL-8x.js} +1 -1
- package/dist/esm/{checkouts-table-DQfjKgR-.js → checkouts-table-BIO5rpvV.js} +3 -3
- package/dist/esm/config-state-Bl6vWekp.js +38 -0
- package/dist/esm/custom-popper_4.entry.js +3 -3
- package/dist/esm/{event-types-Dv-I6YqZ.js → event-types-BIryDMGV.js} +3 -3
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +4 -4
- package/dist/esm/form-control-date.entry.js +3 -3
- package/dist/esm/{form-control-error-text-nyeinPVQ.js → form-control-error-text-CVPFeRt0.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/{form-control-help-text-QhxeQeTV.js → form-control-help-text-D-ReDn6e.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +4 -4
- package/dist/esm/form-control-number-masked_2.entry.js +3 -3
- package/dist/esm/form-control-number.entry.js +4 -4
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/{get-business-B3c5gg1D.js → get-business-CIKToQur.js} +2 -2
- package/dist/esm/{get-payment-details-Bzh5t6A8.js → get-payment-details-CXiGG9cO.js} +2 -2
- package/dist/esm/{get-payout-csv-bM3pZLKB.js → get-payout-csv-D7IYYqVL.js} +2 -2
- package/dist/esm/{get-subaccounts-BB3Sqb3H.js → get-subaccounts-COe5GtaY.js} +8 -8
- package/dist/esm/gross-payment-chart-core.entry.js +4 -4
- package/dist/esm/{header-1-DNg4xuR6.js → header-1-ClU-iUGF.js} +2 -2
- package/dist/esm/{header-3-BD_mh7vB.js → header-3-jLYjhsUb.js} +2 -2
- package/dist/esm/{iframe-input-styles-state-DeH54Fkx.js → iframe-input-styles-state-ibYqbF--.js} +1 -1
- package/dist/esm/iframe-input.entry.js +6 -6
- package/dist/esm/{index-4sfb1rKO.js → index-Cc3u0uDC.js} +1 -1
- package/dist/esm/{index-D4-FKsCU.js → index-D6FDxSyt.js} +1 -1
- package/dist/esm/{insurance-state-CXUWRQQk.js → insurance-state-5MPrBdwI.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +6 -6
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +7 -4
- package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +10 -7
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list.entry.js +13 -11
- package/dist/esm/justifi-config-provider.entry.js +24 -0
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +3 -3
- package/dist/esm/justifi-dispute-notification_3.entry.js +7 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +18 -19
- package/dist/esm/justifi-owner-form_3.entry.js +7 -4
- package/dist/esm/justifi-payment-details.entry.js +12 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -4
- package/dist/esm/justifi-payment-transactions-list.entry.js +15 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +17 -16
- package/dist/esm/justifi-payout-details.entry.js +12 -11
- package/dist/esm/justifi-payout-transactions-list.entry.js +16 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +19 -19
- package/dist/esm/justifi-refund-payment.entry.js +21 -20
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -6
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +19 -22
- package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
- package/dist/esm/justifi-terminals-list.entry.js +17 -17
- package/dist/esm/justifi-tokenize-payment-method.entry.js +6 -6
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-DGWLSvML.js → package-D2EbqwBe.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +5 -5
- package/dist/esm/{parts-6ctk_bhj.js → parts-CjO1GttX.js} +9 -4
- package/dist/esm/payment-details-core.entry.js +7 -7
- package/dist/esm/payment.service-B9_zvpM_.js +19 -0
- package/dist/esm/payments-list-core.entry.js +10 -10
- package/dist/esm/{payments-list-params-state-qgJxi6iW.js → payments-list-params-state-Bn7pL-8x.js} +1 -1
- package/dist/esm/{payments-status-nKLMqTrO.js → payments-status-CQQH_5oM.js} +2 -2
- package/dist/esm/{payments-table-BrvZHeak.js → payments-table-BdQtWUO-.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +8 -8
- package/dist/esm/payout.service-BGSaI-j9.js +24 -0
- package/dist/esm/payouts-list-core.entry.js +9 -9
- package/dist/esm/{payouts-list-params-state-qgJxi6iW.js → payouts-list-params-state-Bn7pL-8x.js} +1 -1
- package/dist/esm/{payouts-status-tVJFGPCs.js → payouts-status-Cz9DL-Ph.js} +2 -2
- package/dist/esm/{payouts-table-CgfTp9tE.js → payouts-table-bOrdlN_0.js} +3 -3
- package/dist/esm/{skeleton-D8dsThNX.js → skeleton-t69TLGP9.js} +2 -2
- package/dist/esm/{spinner-BVJ-upD0.js → spinner-Bo1Ff3L8.js} +2 -2
- package/dist/esm/{styled-host-D594Ui4d.js → styled-host-C7vaWLiB.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +8 -8
- package/dist/esm/{terminal-orders-list-params-state-qgJxi6iW.js → terminal-orders-list-params-state-Bn7pL-8x.js} +1 -1
- package/dist/esm/{terminal-orders-table-CgioW1d8.js → terminal-orders-table-5gemV24y.js} +3 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/terminal.service-B0Rc9vED.js +27 -0
- package/dist/esm/terminals-list-core.entry.js +8 -8
- package/dist/esm/terminals-list-params-state-Bn7pL-8x.js +16 -0
- package/dist/esm/{terminals-table-D7LKwR85.js → terminals-table-DFxuyQM-.js} +3 -3
- package/dist/esm/{utils-1z8cNzLu.js → utils-CK8L6CE7.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/ApiNew.js +84 -0
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/badge.js +1 -1
- package/dist/module/billing-form.js +1 -1
- package/dist/module/business-core-info-form-step-core.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business.service.js +11 -9
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/checkout-core.js +1 -1
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/config-state.js +38 -0
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/event-types3.js +1 -1
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-monetary-provisioning2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-radio2.js +1 -1
- package/dist/module/form-control-textarea2.js +1 -1
- package/dist/module/get-business.js +2 -2
- package/dist/module/get-payment-details.js +2 -2
- package/dist/module/get-payout-csv.js +2 -2
- package/dist/module/get-subaccounts.js +8 -8
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +1 -1
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +2 -3
- package/dist/module/justifi-config-provider.d.ts +11 -0
- package/dist/module/justifi-config-provider.js +45 -0
- package/dist/module/justifi-order-terminals.js +7 -12
- package/dist/module/justifi-payment-details.js +1 -4
- package/dist/module/justifi-payment-transactions-list.js +5 -8
- package/dist/module/justifi-payments-list-filters.js +1 -1
- package/dist/module/justifi-payments-list.js +4 -7
- package/dist/module/justifi-payout-details.js +1 -4
- package/dist/module/justifi-payout-transactions-list.js +7 -8
- package/dist/module/justifi-payouts-list-filters.js +1 -1
- package/dist/module/justifi-payouts-list.js +5 -9
- package/dist/module/justifi-refund-payment.js +9 -12
- package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
- package/dist/module/justifi-terminal-orders-list.js +9 -16
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +5 -9
- package/dist/module/new-payment-method.js +1 -1
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -4
- package/dist/module/parts.js +9 -4
- package/dist/module/payment.service.js +8 -14
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout.service.js +11 -19
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +14 -21
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/types/actions/business/get-business.d.ts +1 -2
- package/dist/types/actions/payment/get-payment-details.d.ts +1 -2
- package/dist/types/actions/payment/get-payment-transactions.d.ts +1 -2
- package/dist/types/actions/payment/get-payments.d.ts +1 -2
- package/dist/types/actions/payout/get-payout-transactions.d.ts +2 -2
- package/dist/types/actions/payout/get-payouts.d.ts +1 -2
- package/dist/types/actions/refund/refund-actions.d.ts +1 -2
- package/dist/types/actions/sub-account/get-subaccounts.d.ts +1 -2
- package/dist/types/actions/terminal/get-terminal-models.d.ts +1 -2
- package/dist/types/actions/terminal/get-terminal-orders.d.ts +1 -2
- package/dist/types/actions/terminal/get-terminals.d.ts +1 -2
- package/dist/types/api/ApiNew.d.ts +61 -0
- package/dist/types/api/services/business.service.d.ts +1 -1
- package/dist/types/api/services/payment.service.d.ts +7 -7
- package/dist/types/api/services/payout.service.d.ts +10 -9
- package/dist/types/api/services/refund.service.d.ts +2 -2
- package/dist/types/api/services/subaccounts.service.d.ts +4 -3
- package/dist/types/api/services/terminal.service.d.ts +8 -8
- package/dist/types/api/services/terminal_orders.service.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +1 -1
- package/dist/types/components/config-provider/config-provider.d.ts +7 -0
- package/dist/types/components/config-provider/config-state.d.ts +13 -0
- package/dist/types/components/order-terminals/order-terminals.d.ts +0 -1
- package/dist/types/components/payment-details/payment-details.d.ts +0 -1
- package/dist/types/components/payment-transactions-list/payment-transactions-list.d.ts +0 -1
- package/dist/types/components/payments-list/payments-list.d.ts +0 -1
- package/dist/types/components/payout-details/get-payout-csv.d.ts +1 -2
- package/dist/types/components/payout-details/payout-details.d.ts +0 -1
- package/dist/types/components/payout-transactions-list/payout-transactions-list.d.ts +0 -1
- package/dist/types/components/payouts-list/payouts-list.d.ts +0 -1
- package/dist/types/components/refund-payment/refund-payment.d.ts +0 -1
- package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +0 -1
- package/dist/types/components/terminals-list/terminals-list.d.ts +0 -1
- package/dist/types/components.d.ts +19 -20
- package/dist/types/styles/parts.d.ts +10 -4
- package/dist/webcomponents/{p-103692ef.entry.js → p-00eb2bc9.entry.js} +1 -1
- package/dist/webcomponents/p-0c2f2ea9.entry.js +1 -0
- package/dist/webcomponents/{p-bbc56c17.entry.js → p-11344996.entry.js} +1 -1
- package/dist/webcomponents/{p-3b1f69fd.entry.js → p-12674a89.entry.js} +1 -1
- package/dist/webcomponents/p-19581139.entry.js +1 -0
- package/dist/webcomponents/p-19d21f35.entry.js +1 -0
- package/dist/webcomponents/{p-76e7c283.entry.js → p-2294e63b.entry.js} +1 -1
- package/dist/webcomponents/{p-1c2bedfe.entry.js → p-24e04f78.entry.js} +1 -1
- package/dist/webcomponents/p-2P4kwjNi.js +1 -0
- package/dist/webcomponents/{p-a4e7d24f.entry.js → p-30466d27.entry.js} +1 -1
- package/dist/webcomponents/{p-c5b66da3.entry.js → p-32c156c6.entry.js} +1 -1
- package/dist/webcomponents/p-32ff6641.entry.js +1 -0
- package/dist/webcomponents/{p-10ad134d.entry.js → p-38d6c034.entry.js} +1 -1
- package/dist/webcomponents/{p-0c9c8d6f.entry.js → p-3add8d1b.entry.js} +1 -1
- package/dist/webcomponents/{p-175a913f.entry.js → p-3c01edb0.entry.js} +1 -1
- package/dist/webcomponents/{p-b5dd55b1.entry.js → p-3cd9d9d8.entry.js} +1 -1
- package/dist/webcomponents/{p-405f135e.entry.js → p-4028ccb0.entry.js} +1 -1
- package/dist/webcomponents/p-43140695.entry.js +1 -0
- package/dist/webcomponents/{p-487514c2.entry.js → p-493c9bd9.entry.js} +1 -1
- package/dist/webcomponents/{p-103deee0.entry.js → p-4ac754e7.entry.js} +1 -1
- package/dist/webcomponents/p-4afcb015.entry.js +1 -0
- package/dist/webcomponents/p-4c64b1e9.entry.js +1 -0
- package/dist/webcomponents/{p-8d4d2ac3.entry.js → p-4e3aca7a.entry.js} +1 -1
- package/dist/webcomponents/{p-938e0dbc.entry.js → p-4e489cf9.entry.js} +1 -1
- package/dist/webcomponents/{p-656ec7b6.entry.js → p-4e61f480.entry.js} +1 -1
- package/dist/webcomponents/{p-40614f67.entry.js → p-4f98895d.entry.js} +1 -1
- package/dist/webcomponents/p-4fc851c0.entry.js +1 -0
- package/dist/webcomponents/p-526be31d.entry.js +1 -0
- package/dist/webcomponents/p-575fc637.entry.js +1 -0
- package/dist/webcomponents/p-581ca781.entry.js +1 -0
- package/dist/webcomponents/{p-4c4cc0ad.entry.js → p-5a1238a1.entry.js} +1 -1
- package/dist/webcomponents/p-5b4cbfd4.entry.js +1 -0
- package/dist/webcomponents/{p-d7ea4db7.entry.js → p-5d8d1818.entry.js} +1 -1
- package/dist/webcomponents/{p-a78bf0f7.entry.js → p-5eb85754.entry.js} +1 -1
- package/dist/webcomponents/{p-dadb97e1.entry.js → p-5f02ec20.entry.js} +1 -1
- package/dist/webcomponents/p-6567b171.entry.js +1 -0
- package/dist/webcomponents/p-6d701784.entry.js +1 -0
- package/dist/webcomponents/p-6n7viK-J.js +1 -0
- package/dist/webcomponents/{p-529bf046.entry.js → p-78511d66.entry.js} +1 -1
- package/dist/webcomponents/{p-94d81903.entry.js → p-7b649051.entry.js} +1 -1
- package/dist/webcomponents/{p-54aa7e86.entry.js → p-805269fd.entry.js} +1 -1
- package/dist/webcomponents/p-9d354918.entry.js +1 -0
- package/dist/webcomponents/p-B4Bi1JkP.js +1 -0
- package/dist/webcomponents/p-BMDJA9xX.js +1 -0
- package/dist/webcomponents/{p-CG9te8PM.js → p-BQEAUdoy.js} +1 -1
- package/dist/webcomponents/p-BS-e1gnL.js +1 -0
- package/dist/webcomponents/{p-DmBEzYCU.js → p-BXey6mVj.js} +1 -1
- package/dist/webcomponents/{p-D6mhG0dV.js → p-BdNmdBIx.js} +1 -1
- package/dist/webcomponents/p-Bl3qFMoN.js +1 -0
- package/dist/webcomponents/p-Bl79NorO.js +1 -0
- package/dist/webcomponents/p-CN_YheWL.js +1 -0
- package/dist/webcomponents/p-CPXN4Ths.js +1 -0
- package/dist/webcomponents/p-CSwEbNEl.js +1 -0
- package/dist/webcomponents/p-CWpAvtGa.js +1 -0
- package/dist/webcomponents/{p-CCN8wTYX.js → p-Cd06j2SL.js} +1 -1
- package/dist/webcomponents/p-CegkOiUz.js +1 -0
- package/dist/webcomponents/p-CiKdTI9h.js +1 -0
- package/dist/webcomponents/{p-DgQyL5KO.js → p-Cixn6QDS.js} +1 -1
- package/dist/webcomponents/p-CjO1GttX.js +1 -0
- package/dist/webcomponents/p-D2EbqwBe.js +1 -0
- package/dist/webcomponents/p-D5Sh88BE.js +1 -0
- package/dist/webcomponents/{p-DBfKxfCX.js → p-D9q8WsW5.js} +1 -1
- package/dist/webcomponents/p-DD14E0K0.js +1 -0
- package/dist/webcomponents/{p-CgS6VBEy.js → p-DDEz7_ad.js} +1 -1
- package/dist/webcomponents/p-DJzjeg3x.js +1 -0
- package/dist/webcomponents/p-DjGTAHJM.js +1 -0
- package/dist/webcomponents/p-DmIOVniD.js +1 -0
- package/dist/webcomponents/p-DniQ6yo6.js +1 -0
- package/dist/webcomponents/{p-BxGoUIgN.js → p-Dss1xCBW.js} +1 -1
- package/dist/webcomponents/{p-lvlr3zXn.js → p-DuYlA4lj.js} +1 -1
- package/dist/webcomponents/p-Dumd8fMw.js +1 -0
- package/dist/webcomponents/{p-BwgcVN7d.js → p-DyIEclkx.js} +1 -1
- package/dist/webcomponents/p-ERVEQjR2.js +1 -0
- package/dist/webcomponents/{p-C3uv9u0l.js → p-GTA6l_sT.js} +1 -1
- package/dist/webcomponents/p-KLQjERL5.js +1 -0
- package/dist/webcomponents/{p-D5wGYrfz.js → p-OjYukdAC.js} +1 -1
- package/dist/webcomponents/p-_bsEVFir.js +1 -0
- package/dist/webcomponents/{p-9cf5ed80.entry.js → p-a2f77373.entry.js} +1 -1
- package/dist/webcomponents/{p-5321c7d5.entry.js → p-a4c08055.entry.js} +1 -1
- package/dist/webcomponents/{p-b15d6c77.entry.js → p-a93cceca.entry.js} +1 -1
- package/dist/webcomponents/p-ab5cde61.entry.js +1 -0
- package/dist/webcomponents/p-ac98a15e.entry.js +1 -0
- package/dist/webcomponents/p-b0430518.entry.js +1 -0
- package/dist/webcomponents/{p-0b0e44c4.entry.js → p-b05693c6.entry.js} +1 -1
- package/dist/webcomponents/{p-0b1bbf91.entry.js → p-b182796a.entry.js} +1 -1
- package/dist/webcomponents/{p-048ed3f0.entry.js → p-b25b8534.entry.js} +1 -1
- package/dist/webcomponents/{p-bc3d56a7.entry.js → p-b2db4fae.entry.js} +1 -1
- package/dist/webcomponents/p-b40108c0.entry.js +1 -0
- package/dist/webcomponents/{p-6d36d6a7.entry.js → p-bb5c9475.entry.js} +1 -1
- package/dist/webcomponents/p-bb97192f.entry.js +1 -0
- package/dist/webcomponents/{p-9767500b.entry.js → p-c77481fe.entry.js} +1 -1
- package/dist/webcomponents/p-c899df50.entry.js +1 -0
- package/dist/webcomponents/{p-ffbf35a4.entry.js → p-ca11ad58.entry.js} +1 -1
- package/dist/webcomponents/p-d06f7faf.entry.js +1 -0
- package/dist/webcomponents/{p-4d5b8876.entry.js → p-d2fbf7ea.entry.js} +1 -1
- package/dist/webcomponents/p-d7a04fdd.entry.js +1 -0
- package/dist/webcomponents/p-d8f7a73b.entry.js +1 -0
- package/dist/webcomponents/{p-009c6766.entry.js → p-d90b8cc2.entry.js} +1 -1
- package/dist/webcomponents/p-e558eab8.entry.js +1 -0
- package/dist/webcomponents/{p-896e4fb2.entry.js → p-f2dc1405.entry.js} +1 -1
- package/dist/webcomponents/p-oPo_KSwO.js +1 -0
- package/dist/webcomponents/p-um3YdOwW.js +1 -0
- package/dist/webcomponents/p-wqUvt1PB.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/payment.service-BstXaxH5.js +0 -27
- package/dist/cjs/payout.service-DWOtnFdn.js +0 -34
- package/dist/cjs/terminal.service-ghxwDinY.js +0 -36
- package/dist/cjs/terminals-list-params-state-DX4jg37H.js +0 -22
- package/dist/esm/payment.service-CeGn-K_X.js +0 -25
- package/dist/esm/payout.service-dukCI9Kl.js +0 -32
- package/dist/esm/terminal.service-L0EoPXUE.js +0 -34
- package/dist/esm/terminals-list-params-state-qgJxi6iW.js +0 -16
- package/dist/webcomponents/p-0764cfde.entry.js +0 -1
- package/dist/webcomponents/p-08dcbb41.entry.js +0 -1
- package/dist/webcomponents/p-36656ed1.entry.js +0 -1
- package/dist/webcomponents/p-3678f5fb.entry.js +0 -1
- package/dist/webcomponents/p-41a0b83c.entry.js +0 -1
- package/dist/webcomponents/p-4361ae88.entry.js +0 -1
- package/dist/webcomponents/p-4994c980.entry.js +0 -1
- package/dist/webcomponents/p-5aeOUdhX.js +0 -1
- package/dist/webcomponents/p-601669bb.entry.js +0 -1
- package/dist/webcomponents/p-63c835b9.entry.js +0 -1
- package/dist/webcomponents/p-6ctk_bhj.js +0 -1
- package/dist/webcomponents/p-81a1be23.entry.js +0 -1
- package/dist/webcomponents/p-81d682ba.entry.js +0 -1
- package/dist/webcomponents/p-85681d97.entry.js +0 -1
- package/dist/webcomponents/p-88539215.entry.js +0 -1
- package/dist/webcomponents/p-8bc32c27.entry.js +0 -1
- package/dist/webcomponents/p-9349d32e.entry.js +0 -1
- package/dist/webcomponents/p-B2H14Naw.js +0 -1
- package/dist/webcomponents/p-B4iBNBBM.js +0 -1
- package/dist/webcomponents/p-BAXE_ZfF.js +0 -1
- package/dist/webcomponents/p-BLdGqrQH.js +0 -1
- package/dist/webcomponents/p-BODr6HXb.js +0 -1
- package/dist/webcomponents/p-BoPxMyJA.js +0 -1
- package/dist/webcomponents/p-BupmNfQ5.js +0 -1
- package/dist/webcomponents/p-BvWS8buZ.js +0 -1
- package/dist/webcomponents/p-CGz3XHQc.js +0 -1
- package/dist/webcomponents/p-CRgzzPY4.js +0 -1
- package/dist/webcomponents/p-CZLIteZz.js +0 -1
- package/dist/webcomponents/p-CbZjB3qJ.js +0 -1
- package/dist/webcomponents/p-CfbB7agn.js +0 -1
- package/dist/webcomponents/p-D5q9gEvl.js +0 -1
- package/dist/webcomponents/p-DArbkdtn.js +0 -1
- package/dist/webcomponents/p-DEa8EbZW.js +0 -1
- package/dist/webcomponents/p-DGWLSvML.js +0 -1
- package/dist/webcomponents/p-DPC4A7AZ.js +0 -1
- package/dist/webcomponents/p-EbYREopN.js +0 -1
- package/dist/webcomponents/p-NI7Keg2H.js +0 -1
- package/dist/webcomponents/p-XazJ9qLe.js +0 -1
- package/dist/webcomponents/p-Xql8Xhsx.js +0 -1
- package/dist/webcomponents/p-a83bf2c0.entry.js +0 -1
- package/dist/webcomponents/p-b8096d2b.entry.js +0 -1
- package/dist/webcomponents/p-bf83ba04.entry.js +0 -1
- package/dist/webcomponents/p-c7dc7184.entry.js +0 -1
- package/dist/webcomponents/p-cb8b91ea.entry.js +0 -1
- package/dist/webcomponents/p-dafac427.entry.js +0 -1
- package/dist/webcomponents/p-dca205de.entry.js +0 -1
- package/dist/webcomponents/p-df3fb523.entry.js +0 -1
- package/dist/webcomponents/p-f-9W4QBD.js +0 -1
- package/dist/webcomponents/p-f604d6ea.entry.js +0 -1
- package/dist/webcomponents/p-obi7kkCX.js +0 -1
- /package/dist/webcomponents/{p-D4-FKsCU.js → p-D6FDxSyt.js} +0 -0
|
@@ -10,15 +10,16 @@ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
11
11
|
import { P as PayoutService } from './payout.service.js';
|
|
12
12
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types3.js';
|
|
13
|
-
import { n as tableHeadCell,
|
|
13
|
+
import { n as tableHeadCell, a5 as getAlternateTableCellPart, m as table, o as tableCell } from './parts.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host.js';
|
|
15
15
|
import './details.js';
|
|
16
|
+
import { c as configState } from './config-state.js';
|
|
16
17
|
import { d as defineCustomElement$2 } from './pagination-menu2.js';
|
|
17
18
|
|
|
18
|
-
const makeGetPayoutTransactions = ({ authToken, service
|
|
19
|
+
const makeGetPayoutTransactions = ({ accountId, authToken, service }) => async ({ params, onSuccess, onError, final }) => {
|
|
19
20
|
var _a;
|
|
20
21
|
try {
|
|
21
|
-
const response = await service.fetchPayoutTransactions(authToken, params
|
|
22
|
+
const response = await service.fetchPayoutTransactions(accountId, authToken, params);
|
|
22
23
|
if (!response.error) {
|
|
23
24
|
const balanceTransactions = response.data.map((dataItem) => new PayoutBalanceTransaction(dataItem));
|
|
24
25
|
const pagingInfo = Object.assign({}, response.page_info);
|
|
@@ -110,7 +111,6 @@ const PayoutTransactionsList = /*@__PURE__*/ proxyCustomElement(class PayoutTran
|
|
|
110
111
|
this.errorMessage = null;
|
|
111
112
|
this.paging = pagingDefaults;
|
|
112
113
|
this.pagingParams = {};
|
|
113
|
-
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
114
114
|
this.columns = defaultColumnsKeys;
|
|
115
115
|
this.handleClickPrevious = (beforeCursor) => {
|
|
116
116
|
this.pagingParams = { before_cursor: beforeCursor };
|
|
@@ -147,9 +147,9 @@ const PayoutTransactionsList = /*@__PURE__*/ proxyCustomElement(class PayoutTran
|
|
|
147
147
|
initializeApi() {
|
|
148
148
|
if (this.payoutId && this.authToken) {
|
|
149
149
|
const getPayoutTransactions = makeGetPayoutTransactions({
|
|
150
|
+
accountId: configState.accountId,
|
|
150
151
|
authToken: this.authToken,
|
|
151
|
-
service: new PayoutService()
|
|
152
|
-
apiOrigin: this.apiOrigin
|
|
152
|
+
service: new PayoutService()
|
|
153
153
|
});
|
|
154
154
|
getPayoutTransactions({
|
|
155
155
|
params: this.requestParams,
|
|
@@ -188,7 +188,7 @@ const PayoutTransactionsList = /*@__PURE__*/ proxyCustomElement(class PayoutTran
|
|
|
188
188
|
return Object.assign({ payout_id: this.payoutId, limit: '15' }, this.pagingParams);
|
|
189
189
|
}
|
|
190
190
|
render() {
|
|
191
|
-
return (h(StyledHost, { key: '
|
|
191
|
+
return (h(StyledHost, { key: '11760c372ccd854fd247a931ac9a31f80e779908' }, h("div", { key: 'cb45e596e6ac53d5567b7afb8c3c34c11d838fbe', class: "table-wrapper" }, h("table", { key: '449b9e901af31d8ae76e4543e7011f7a9596d8ab', class: "table table-hover", part: table }, h("thead", { key: 'c04b7c762ecbb0b25a8375661f3a51d37ff96f24', class: "table-head sticky-top" }, h("tr", { key: 'b81f0b41584f6322f8faec27c61a749d0a60fbf7', class: "table-light text-nowrap" }, this.transactionsTable.columnData.map((column) => column))), h("tbody", { key: '83947c4b2c28ebd29477cb776dfe193ea090e35d', class: "table-body" }, h(TableLoadingState, { key: '94519e994722bcf30b20ba503858ed3c1ecc33dc', columnSpan: this.transactionsTable.columnData.length, isLoading: this.isLoading }), h(TableEmptyState, { key: '2331c2748f53ba9906ed9228d89097bfd024b600', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnData.length }), h(TableErrorState, { key: '9e0a5bfbbccb0ad02a9ed70edc3bb6d6108b9ad7', columnSpan: this.transactionsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '0591033f666cddb7cadec2d8da2d61d8ad66fad6', class: "sticky-bottom" }, h("tr", { key: '26c47ed9b3d37553ba43c0e8fc37c4666a8baef9', class: "table-light align-middle" }, h("td", { key: '25ee92e4f38dc8853a5a3cfcfe4d2829ea51788a', part: tableCell, colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: '4a26779c713b7bb7833822c98596482c1c06b767', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
192
192
|
}
|
|
193
193
|
static get watchers() { return {
|
|
194
194
|
"pagingParams": ["propChanged"],
|
|
@@ -198,7 +198,6 @@ const PayoutTransactionsList = /*@__PURE__*/ proxyCustomElement(class PayoutTran
|
|
|
198
198
|
}, [1, "justifi-payout-transactions-list", {
|
|
199
199
|
"payoutId": [1, "payout-id"],
|
|
200
200
|
"authToken": [1, "auth-token"],
|
|
201
|
-
"apiOrigin": [1, "api-origin"],
|
|
202
201
|
"columns": [1],
|
|
203
202
|
"balanceTransactions": [32],
|
|
204
203
|
"transactionsTable": [32],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { f as filterParams, p as propsParams, c as clearParams } from './payouts-list-params-state.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ad as payoutsListFilterMenu, ae as createdAfterPayoutsListFilterParam, af as createdBeforePayoutsListFilterParam } from './parts.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host.js';
|
|
5
5
|
import './details.js';
|
|
6
6
|
import { j as convertToUTC, h as convertToLocal } from './utils2.js';
|
|
@@ -22,10 +22,10 @@ table-row-odd,table-cell,loading-state-cell,loading-state-spinner,error-state,
|
|
|
22
22
|
empty-state,pagination-bar,page-arrow,page-button,page-button-disabled,page-button-text
|
|
23
23
|
`;
|
|
24
24
|
|
|
25
|
-
const makeGetPayouts = ({ id, authToken, service
|
|
25
|
+
const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
26
26
|
var _a, _b;
|
|
27
27
|
try {
|
|
28
|
-
const response = await service.fetchPayouts(id, authToken, params
|
|
28
|
+
const response = await service.fetchPayouts(id, authToken, params);
|
|
29
29
|
if (!response.error) {
|
|
30
30
|
const pagingInfo = Object.assign({}, response.page_info);
|
|
31
31
|
const payouts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Payout(dataItem))) || [];
|
|
@@ -58,7 +58,6 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
|
|
|
58
58
|
this.__attachShadow();
|
|
59
59
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
60
60
|
this.errorMessage = null;
|
|
61
|
-
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
62
61
|
this.columns = defaultColumnsKeys;
|
|
63
62
|
this.handleOnError = (event) => {
|
|
64
63
|
this.errorMessage = event.detail.message;
|
|
@@ -85,8 +84,7 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
|
|
|
85
84
|
const serviceParams = {
|
|
86
85
|
id: this.accountId,
|
|
87
86
|
authToken: this.authToken,
|
|
88
|
-
service: new PayoutService()
|
|
89
|
-
apiOrigin: this.apiOrigin
|
|
87
|
+
service: new PayoutService()
|
|
90
88
|
};
|
|
91
89
|
this.getPayouts = makeGetPayouts(serviceParams);
|
|
92
90
|
this.getPayoutCSV = makeGetPayoutCSV(serviceParams);
|
|
@@ -105,13 +103,12 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
|
|
|
105
103
|
this.getSubAccounts = makeGetSubAccounts({
|
|
106
104
|
accountId: this.accountId,
|
|
107
105
|
authToken: this.authToken,
|
|
108
|
-
service: new SubAccountService()
|
|
109
|
-
apiOrigin: this.apiOrigin
|
|
106
|
+
service: new SubAccountService()
|
|
110
107
|
});
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
110
|
render() {
|
|
114
|
-
return (h(StyledHost, { key: '
|
|
111
|
+
return (h(StyledHost, { key: 'f20034e64b3c1f39cdedd38762ac30a70d92bde1', exportedparts: tableExportedParts }, h("payouts-list-core", { key: '3bee62765d06af00577ca338c4f8dd33eb6cfb1c', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
|
|
115
112
|
}
|
|
116
113
|
static get watchers() { return {
|
|
117
114
|
"accountId": ["propChanged"],
|
|
@@ -120,7 +117,6 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
|
|
|
120
117
|
}, [1, "justifi-payouts-list", {
|
|
121
118
|
"accountId": [1, "account-id"],
|
|
122
119
|
"authToken": [1, "auth-token"],
|
|
123
|
-
"apiOrigin": [1, "api-origin"],
|
|
124
120
|
"columns": [1],
|
|
125
121
|
"getPayouts": [32],
|
|
126
122
|
"getPayoutCSV": [32],
|
|
@@ -14,7 +14,7 @@ import { P as PaymentService } from './payment.service.js';
|
|
|
14
14
|
import { m as makeGetPaymentDetails } from './get-payment-details.js';
|
|
15
15
|
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
|
|
16
16
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
17
|
-
import { A as Api } from './
|
|
17
|
+
import { A as Api } from './ApiNew.js';
|
|
18
18
|
import { S as Skeleton } from './skeleton.js';
|
|
19
19
|
import { d as defineCustomElement$7 } from './custom-popper2.js';
|
|
20
20
|
import { d as defineCustomElement$6 } from './form-control-help-text2.js';
|
|
@@ -70,10 +70,10 @@ const refundReasonOptions = [
|
|
|
70
70
|
}
|
|
71
71
|
];
|
|
72
72
|
|
|
73
|
-
const makePostRefund = ({ authToken, accountId, paymentId, service
|
|
73
|
+
const makePostRefund = ({ authToken, accountId, paymentId, service }) => async ({ refundBody, onSuccess, onError, final }) => {
|
|
74
74
|
var _a;
|
|
75
75
|
try {
|
|
76
|
-
const response = await service.postRefund(paymentId, accountId, authToken, refundBody
|
|
76
|
+
const response = await service.postRefund(paymentId, accountId, authToken, refundBody);
|
|
77
77
|
if (!response.error) {
|
|
78
78
|
onSuccess(response);
|
|
79
79
|
}
|
|
@@ -100,12 +100,13 @@ const makePostRefund = ({ authToken, accountId, paymentId, service, apiOrigin })
|
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
+
const api = Api();
|
|
103
104
|
class RefundService {
|
|
104
|
-
async postRefund(paymentId, accountId, authToken, refundBody
|
|
105
|
-
const api = Api({ authToken, apiOrigin });
|
|
105
|
+
async postRefund(paymentId, accountId, authToken, refundBody) {
|
|
106
106
|
const endpoint = `payments/${paymentId}/refunds`;
|
|
107
107
|
const headers = { 'Sub-Account': accountId };
|
|
108
|
-
|
|
108
|
+
const body = refundBody;
|
|
109
|
+
return api.post({ endpoint, headers, body, authToken });
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
|
|
@@ -133,7 +134,6 @@ const RefundPayment = /*@__PURE__*/ proxyCustomElement(class RefundPayment exten
|
|
|
133
134
|
this.paymentLoading = true;
|
|
134
135
|
this.refundLoading = false;
|
|
135
136
|
this.hideSubmitButton = false;
|
|
136
|
-
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
137
137
|
this.inputHandler = (name, value) => {
|
|
138
138
|
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
139
139
|
};
|
|
@@ -174,8 +174,7 @@ const RefundPayment = /*@__PURE__*/ proxyCustomElement(class RefundPayment exten
|
|
|
174
174
|
const getPayment = makeGetPaymentDetails({
|
|
175
175
|
id: this.paymentId,
|
|
176
176
|
authToken: this.authToken,
|
|
177
|
-
service: new PaymentService()
|
|
178
|
-
apiOrigin: this.apiOrigin
|
|
177
|
+
service: new PaymentService()
|
|
179
178
|
});
|
|
180
179
|
getPayment({
|
|
181
180
|
onSuccess: ({ payment }) => {
|
|
@@ -206,8 +205,7 @@ const RefundPayment = /*@__PURE__*/ proxyCustomElement(class RefundPayment exten
|
|
|
206
205
|
authToken: this.authToken,
|
|
207
206
|
accountId: this.accountId,
|
|
208
207
|
paymentId: this.paymentId,
|
|
209
|
-
service: new RefundService()
|
|
210
|
-
apiOrigin: this.apiOrigin
|
|
208
|
+
service: new RefundService()
|
|
211
209
|
});
|
|
212
210
|
const values = this.formController.values.getValue();
|
|
213
211
|
this.refundLoading = true;
|
|
@@ -242,7 +240,6 @@ const RefundPayment = /*@__PURE__*/ proxyCustomElement(class RefundPayment exten
|
|
|
242
240
|
"accountId": [1, "account-id"],
|
|
243
241
|
"paymentId": [1, "payment-id"],
|
|
244
242
|
"hideSubmitButton": [4, "hide-submit-button"],
|
|
245
|
-
"apiOrigin": [1, "api-origin"],
|
|
246
243
|
"formController": [32],
|
|
247
244
|
"refundPayload": [32],
|
|
248
245
|
"displayAmount": [32],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { f as filterParams, p as propsParams, c as clearParams } from './terminal-orders-list-params-state.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ag as terminalOrdersListFilterMenu, ah as orderStatusTerminalOrdersListFilterParam, ai as orderTypeTerminalOrdersListFilterParam, aj as createdAfterTerminalOrdersListFilterParam, ak as createdBeforeTerminalOrdersListFilterParam } from './parts.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host.js';
|
|
5
5
|
import './details.js';
|
|
6
6
|
import { j as convertToUTC, h as convertToLocal } from './utils2.js';
|
|
@@ -11,13 +11,13 @@ import './Payment.js';
|
|
|
11
11
|
import { e as TerminalOrder } from './Refund.js';
|
|
12
12
|
import './Document.js';
|
|
13
13
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
14
|
-
import { A as Api } from './
|
|
14
|
+
import { A as Api } from './ApiNew.js';
|
|
15
15
|
import { d as defineCustomElement$3 } from './pagination-menu2.js';
|
|
16
16
|
|
|
17
|
-
const makeGetTerminalOrders = ({ id, authToken, service
|
|
17
|
+
const makeGetTerminalOrders = ({ id, authToken, service }) => async ({ params, onSuccess, onError, final }) => {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
try {
|
|
20
|
-
const response = await service.fetchTerminalOrders(id, authToken, params
|
|
20
|
+
const response = await service.fetchTerminalOrders(id, authToken, params);
|
|
21
21
|
if (!response.error) {
|
|
22
22
|
const pagingInfo = Object.assign({}, response.page_info);
|
|
23
23
|
const terminalOrders = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new TerminalOrder(dataItem))) || [];
|
|
@@ -46,16 +46,12 @@ const makeGetTerminalOrders = ({ id, authToken, service, apiOrigin }) => async (
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
+
const api = Api();
|
|
49
50
|
class TerminalOrderService {
|
|
50
|
-
async fetchTerminalOrders(accountId, authToken, params
|
|
51
|
-
const headers = { account: accountId };
|
|
52
|
-
const api = Api({ authToken, apiOrigin });
|
|
51
|
+
async fetchTerminalOrders(accountId, authToken, params) {
|
|
53
52
|
const endpoint = 'terminals/orders';
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
params,
|
|
57
|
-
headers,
|
|
58
|
-
});
|
|
53
|
+
const headers = { account: accountId };
|
|
54
|
+
return api.get({ endpoint, params, headers, authToken });
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
57
|
|
|
@@ -66,7 +62,6 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
|
|
|
66
62
|
this.__attachShadow();
|
|
67
63
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
68
64
|
this.errorMessage = null;
|
|
69
|
-
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
70
65
|
this.columns = defaultColumnsKeys;
|
|
71
66
|
this.handleErrorEvent = (event) => {
|
|
72
67
|
this.errorMessage = event.detail.message;
|
|
@@ -83,8 +78,7 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
|
|
|
83
78
|
this.getTerminalOrders = makeGetTerminalOrders({
|
|
84
79
|
id: this.accountId,
|
|
85
80
|
authToken: this.authToken,
|
|
86
|
-
service: new TerminalOrderService()
|
|
87
|
-
apiOrigin: this.apiOrigin
|
|
81
|
+
service: new TerminalOrderService()
|
|
88
82
|
});
|
|
89
83
|
}
|
|
90
84
|
else {
|
|
@@ -97,12 +91,11 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
|
|
|
97
91
|
}
|
|
98
92
|
}
|
|
99
93
|
render() {
|
|
100
|
-
return (h(StyledHost, { key: '
|
|
94
|
+
return (h(StyledHost, { key: '4ebe88697536863b62a8bd63fac96eb5f93668d0' }, h("terminal-orders-list-core", { key: '6735068496d16cdd4df169708c93534bea78433a', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
101
95
|
}
|
|
102
96
|
}, [1, "justifi-terminal-orders-list", {
|
|
103
97
|
"accountId": [1, "account-id"],
|
|
104
98
|
"authToken": [1, "auth-token"],
|
|
105
|
-
"apiOrigin": [1, "api-origin"],
|
|
106
99
|
"columns": [1],
|
|
107
100
|
"getTerminalOrders": [32],
|
|
108
101
|
"errorMessage": [32]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { l as lodashExports } from './lodash.js';
|
|
3
3
|
import { f as filterParams, p as propsParams, c as clearParams } from './terminals-list-params-state.js';
|
|
4
|
-
import {
|
|
4
|
+
import { al as terminalsListFilterMenu, am as terminalIdTerminalsListFilterParam, an as terminalOrderIdTerminalsListFilterParam, ao as terminalStatusTerminalsListFilterParam } from './parts.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host.js';
|
|
6
6
|
import './details.js';
|
|
7
7
|
import './utils2.js';
|
|
@@ -15,10 +15,10 @@ import './details.js';
|
|
|
15
15
|
import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminals-list-core2.js';
|
|
16
16
|
import { d as defineCustomElement$3 } from './pagination-menu2.js';
|
|
17
17
|
|
|
18
|
-
const makeGetTerminals = ({ id, authToken, service
|
|
18
|
+
const makeGetTerminals = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
19
19
|
var _a, _b;
|
|
20
20
|
try {
|
|
21
|
-
const response = await service.fetchTerminals(id, authToken, params
|
|
21
|
+
const response = await service.fetchTerminals(id, authToken, params);
|
|
22
22
|
if (!response.error) {
|
|
23
23
|
const pagingInfo = Object.assign({}, response.page_info);
|
|
24
24
|
const terminals = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Terminal(dataItem))) || [];
|
|
@@ -51,7 +51,6 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
51
51
|
this.__attachShadow();
|
|
52
52
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
53
53
|
this.errorMessage = null;
|
|
54
|
-
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
55
54
|
this.columns = defaultColumnsKeys;
|
|
56
55
|
this.handleErrorEvent = (event) => {
|
|
57
56
|
this.errorMessage = event.detail.message;
|
|
@@ -78,8 +77,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
78
77
|
this.getTerminals = makeGetTerminals({
|
|
79
78
|
id: this.accountId,
|
|
80
79
|
authToken: this.authToken,
|
|
81
|
-
service: new TerminalService()
|
|
82
|
-
apiOrigin: this.apiOrigin
|
|
80
|
+
service: new TerminalService()
|
|
83
81
|
});
|
|
84
82
|
}
|
|
85
83
|
else {
|
|
@@ -96,13 +94,12 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
96
94
|
this.getSubAccounts = makeGetSubAccounts({
|
|
97
95
|
accountId: this.accountId,
|
|
98
96
|
authToken: this.authToken,
|
|
99
|
-
service: new SubAccountService()
|
|
100
|
-
apiOrigin: this.apiOrigin
|
|
97
|
+
service: new SubAccountService()
|
|
101
98
|
});
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
101
|
render() {
|
|
105
|
-
return (h(StyledHost, { key: '
|
|
102
|
+
return (h(StyledHost, { key: 'f80199e30923fb9a50f66570087d41c5390e20a1' }, h("terminals-list-core", { key: 'ab3ed9809c1c629b3dd8ac5039294fd23b8c16a8', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
106
103
|
}
|
|
107
104
|
static get watchers() { return {
|
|
108
105
|
"accountId": ["propChanged"],
|
|
@@ -111,7 +108,6 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
111
108
|
}, [1, "justifi-terminals-list", {
|
|
112
109
|
"accountId": [1, "account-id"],
|
|
113
110
|
"authToken": [1, "auth-token"],
|
|
114
|
-
"apiOrigin": [1, "api-origin"],
|
|
115
111
|
"columns": [1],
|
|
116
112
|
"getTerminals": [32],
|
|
117
113
|
"getSubAccounts": [32],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { W as radioListItem } from './parts.js';
|
|
3
3
|
import { d as defineCustomElement$d } from './bank-account-form2.js';
|
|
4
4
|
import { d as defineCustomElement$c } from './card-form2.js';
|
|
5
5
|
import { d as defineCustomElement$b } from './custom-popper2.js';
|
|
@@ -3,7 +3,7 @@ import { F as FormController } from './form.js';
|
|
|
3
3
|
import { O as Owner } from './Business.js';
|
|
4
4
|
import { i as identitySchema } from './business-identity-schema.js';
|
|
5
5
|
import { B as Button } from './button.js';
|
|
6
|
-
import {
|
|
6
|
+
import { U as heading3 } from './parts.js';
|
|
7
7
|
import './details.js';
|
|
8
8
|
import { a as BusinessFormClickActions } from './event-types.js';
|
|
9
9
|
import { d as defineCustomElement$8 } from './custom-popper2.js';
|
package/dist/module/package.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { E as ExtendedPagingDefaults } from './Pagination.js';
|
|
3
|
-
import { p as buttonLink, q as buttonDisabled } from './parts.js';
|
|
3
|
+
import { p as buttonLink, q as buttonDisabled, r as paginationItemIconPrevious, u as paginationItemText, v as paginationItemIconNext } from './parts.js';
|
|
4
4
|
|
|
5
5
|
const PaginationMenu = /*@__PURE__*/ proxyCustomElement(class PaginationMenu extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -10,13 +10,13 @@ const PaginationMenu = /*@__PURE__*/ proxyCustomElement(class PaginationMenu ext
|
|
|
10
10
|
this.params = {};
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'f34109c682d25608ec0443c87677f1be2fe282a0' }, h("nav", { key: '4193a8d85e3e247df506918ebc1860816ae56739', "aria-label": "Table pagination", class: "d-flex justify-content-end gap-3" }, h("ul", { key: 'd69181b137ea096d505dffd8592f5983abd651c5', class: "pagination m-0" }, h("li", { key: '26948939a517b7d5674d4100b82cb8bfd23197d1', class: `page-item ${this.paging.has_previous ? '' : ' disabled'}` }, h("button", { key: '05946ad1aa69a13c63088d85bb594e7bbe4859b2', class: "page-link", onClick: (e) => {
|
|
14
14
|
e.preventDefault();
|
|
15
15
|
this.paging.handleClickPrevious(this.paging.start_cursor);
|
|
16
|
-
}, part: this.paging.has_previous ? buttonLink : buttonDisabled }, h("span", { key: '
|
|
16
|
+
}, part: this.paging.has_previous ? buttonLink : buttonDisabled }, h("span", { key: '7b1c5029503b9fbbfaad817ea1b3d28056e1f187', class: "me-1", part: paginationItemIconPrevious }, "\u00AB"), h("span", { key: '88fe14b4d757d126beffaa9a9b1fe679160029a8', part: paginationItemText }, "Previous"))), h("li", { key: 'd1c2d678b47e82c7ede6a90a3f230c243aaad8e4', class: `page-item ${this.paging.has_next ? '' : ' disabled'}` }, h("button", { key: 'aff77d59aee0b21d5e4e68120effbb234453942b', class: "page-link", onClick: (e) => {
|
|
17
17
|
e.preventDefault();
|
|
18
18
|
this.paging.handleClickNext(this.paging.end_cursor);
|
|
19
|
-
}, part: this.paging.has_next ? buttonLink : buttonDisabled }, h("span", { key: '
|
|
19
|
+
}, part: this.paging.has_next ? buttonLink : buttonDisabled }, h("span", { key: '260c9af01293dbd83add85af7703d8b27b089351', part: paginationItemText }, "Next"), h("span", { key: '9122c2d8dbf78ddcc771359d9b36ba3036dc9be0', class: "ms-1", part: paginationItemIconNext }, "\u00BB")))))));
|
|
20
20
|
}
|
|
21
21
|
}, [0, "pagination-menu", {
|
|
22
22
|
"paging": [16],
|
package/dist/module/parts.js
CHANGED
|
@@ -48,13 +48,18 @@ const tooltipInner = `tooltip-inner ${text}`;
|
|
|
48
48
|
const card = `card ${text} ${backgroundColor}`;
|
|
49
49
|
// Table
|
|
50
50
|
const table = `table ${text} ${backgroundColor}`;
|
|
51
|
+
const tableRow = `table-row ${text} ${backgroundColor}`;
|
|
51
52
|
const tableCell = `table-cell ${text} ${backgroundColor}`;
|
|
52
|
-
const tableHeadCell = `table-head-cell ${tableCell}
|
|
53
|
-
const tableCellEven = `table-cell-even ${tableCell}
|
|
54
|
-
const tableCellOdd = `table-cell-odd ${tableCell}
|
|
53
|
+
const tableHeadCell = `table-head-cell ${tableCell}`;
|
|
54
|
+
const tableCellEven = `table-cell-even ${tableCell}`;
|
|
55
|
+
const tableCellOdd = `table-cell-odd ${tableCell}`;
|
|
55
56
|
const getAlternateTableCellPart = (index) => index % 2 ? tableCellEven : tableCellOdd;
|
|
56
57
|
const tableEmpty = `table-empty ${text} ${backgroundColor}`;
|
|
57
58
|
const tableError = `table-error ${text} ${backgroundColor}`;
|
|
59
|
+
const paginationItemText = `pagination-item-text ${text}`;
|
|
60
|
+
const paginationItemIcon = `pagination-item-icon ${text}`;
|
|
61
|
+
const paginationItemIconNext = `pagination-item-icon-next ${paginationItemIcon}`;
|
|
62
|
+
const paginationItemIconPrevious = `pagination-item-icon-previous ${paginationItemIcon}`;
|
|
58
63
|
// Loading spinner
|
|
59
64
|
const loadingSpinner = `loading-spinner`;
|
|
60
65
|
// Badge
|
|
@@ -114,4 +119,4 @@ const orderTypeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam}
|
|
|
114
119
|
const createdAfterTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-after-terminal-orders-list-filter-param`;
|
|
115
120
|
const createdBeforeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-before-terminal-orders-list-filter-param`;
|
|
116
121
|
|
|
117
|
-
export {
|
|
122
|
+
export { buttonPrimary as $, badgeWarning as A, badgeDanger as B, badgeSuccess as C, badgeSecondary as D, badgePrimary as E, badge as F, alertDanger as G, inputCheckboxInvalid as H, inputCheckboxCheckedFocused as I, inputCheckboxFocused as J, inputCheckboxChecked as K, inputCheckbox as L, inputAdornment as M, inputGroup as N, inputRadioInvalid as O, inputRadioCheckedFocused as P, inputRadioChecked as Q, inputRadioFocused as R, inputRadio as S, inputInvalidAndFocused as T, heading3 as U, checkoutSummary as V, radioListItem as W, heading4 as X, image as Y, heading5 as Z, buttonSecondary as _, heading1 as a, buttonLoading as a0, checkoutsListFilterMenu as a1, statusCheckoutsListFilterParam as a2, paymentModeCheckoutsListFilterParam as a3, dropdownMenu as a4, getAlternateTableCellPart as a5, tableRow as a6, paymentsListFilterMenu as a7, paymentIdPaymentsListFilterParam as a8, terminalIdPaymentsListFilterParam as a9, paymentStatusPaymentsListFilterParam as aa, createdAfterPaymentsListFilterParam as ab, createdBeforePaymentsListFilterParam as ac, payoutsListFilterMenu as ad, createdAfterPayoutsListFilterParam as ae, createdBeforePayoutsListFilterParam as af, terminalOrdersListFilterMenu as ag, orderStatusTerminalOrdersListFilterParam as ah, orderTypeTerminalOrdersListFilterParam as ai, createdAfterTerminalOrdersListFilterParam as aj, createdBeforeTerminalOrdersListFilterParam as ak, terminalsListFilterMenu as al, terminalIdTerminalsListFilterParam as am, terminalOrderIdTerminalsListFilterParam as an, terminalStatusTerminalsListFilterParam as ao, billingForm as ap, tableEmpty as aq, tableError as ar, inputInvalid as b, inputDisabled as c, inputFocused as d, tooltipIcon as e, tooltip as f, tooltipInner as g, heading2 as h, input as i, textDanger as j, card as k, label as l, table as m, tableHeadCell as n, tableCell as o, buttonLink as p, buttonDisabled as q, paginationItemIconPrevious as r, skeleton as s, text as t, paginationItemText as u, paginationItemIconNext as v, loadingSpinner as w, badgeDark as x, badgeLight as y, badgeInfo as z };
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import { A as Api } from './
|
|
2
|
-
import './ComponentError.js';
|
|
3
|
-
import './Checkout.js';
|
|
4
|
-
import './Pagination.js';
|
|
5
|
-
import './Payment.js';
|
|
6
|
-
import './Refund.js';
|
|
7
|
-
import './Document.js';
|
|
1
|
+
import { A as Api } from './ApiNew.js';
|
|
8
2
|
|
|
3
|
+
const api = Api();
|
|
9
4
|
class PaymentService {
|
|
10
|
-
async fetchPayments(accountId, authToken, params
|
|
11
|
-
const api = Api({ authToken, apiOrigin: apiOrigin });
|
|
5
|
+
async fetchPayments(accountId, authToken, params) {
|
|
12
6
|
const endpoint = `account/${accountId}/payments`;
|
|
13
|
-
return api.get({ endpoint, params });
|
|
7
|
+
return api.get({ endpoint, params, authToken });
|
|
14
8
|
}
|
|
15
|
-
async fetchPayment(paymentId, authToken
|
|
9
|
+
async fetchPayment(paymentId, authToken) {
|
|
16
10
|
const endpoint = `payments/${paymentId}`;
|
|
17
|
-
return
|
|
11
|
+
return api.get({ endpoint, authToken });
|
|
18
12
|
}
|
|
19
|
-
async fetchPaymentTransactions(paymentId, authToken, params
|
|
13
|
+
async fetchPaymentTransactions(paymentId, authToken, params) {
|
|
20
14
|
const endpoint = `payments/${paymentId}/payment_balance_transactions`;
|
|
21
|
-
return
|
|
15
|
+
return api.get({ endpoint, params, authToken });
|
|
22
16
|
}
|
|
23
17
|
}
|
|
24
18
|
|
|
@@ -6,7 +6,7 @@ import { p as pagingDefaults } from './Pagination.js';
|
|
|
6
6
|
import './Payment.js';
|
|
7
7
|
import './Refund.js';
|
|
8
8
|
import './Document.js';
|
|
9
|
-
import { n as tableHeadCell,
|
|
9
|
+
import { n as tableHeadCell, a5 as getAlternateTableCellPart, m as table, a6 as tableRow, o as tableCell } from './parts.js';
|
|
10
10
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types3.js';
|
|
11
11
|
import './details.js';
|
|
12
12
|
import { M as MapPaymentStatusToBadge } from './payments-status.js';
|
|
@@ -117,7 +117,7 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
|
|
|
117
117
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
|
-
return (h("div", { key: '
|
|
120
|
+
return (h("div", { key: 'c5059d5f79a3f7ee8e4f767b6e0ea995b9310ed8', class: "table-wrapper" }, h("table", { key: '70c674711138bfbcea97eeef623cc5fe74b01f10', class: "table table-hover", part: table }, h("thead", { key: 'd9c0f2d115f3606043a09c3b9a9bb07ef65cf653', class: "table-head sticky-top" }, h("tr", { key: 'd353ca63c91658b7e20a1fd0a6c5114342b555cb', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'b308dae6d730f9e8867740a1a5cc189a1e8d5751', class: "table-body" }, h(TableLoadingState, { key: 'ee4f0145a926360889a879681fc80c3214b692d4', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '692e612e61e6ec6e564c58545c7074fe8af102e1', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: 'cdf875aec8002d601982af282e03fabb3c615eca', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: tableRow }, data)))), this.paging && (h("tfoot", { key: '27d3953bdc88315c2c6ab1ec859ca5e9472c4c80', class: "sticky-bottom" }, h("tr", { key: 'dc56e6376491035fd17f25b09fd0af872ba1bc47', class: "table-light align-middle" }, h("td", { key: 'b8d133f8ab2f4494ef0f3f3f531f14e742ac1b47', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: 'b38882f42b1d517d5755510142fd6030803030c2', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
121
121
|
}
|
|
122
122
|
static get watchers() { return {
|
|
123
123
|
"pagingParams": ["updateOnPropChange"],
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import { A as Api } from './
|
|
2
|
-
import './ComponentError.js';
|
|
3
|
-
import './Checkout.js';
|
|
4
|
-
import './Pagination.js';
|
|
5
|
-
import './Payment.js';
|
|
6
|
-
import './Refund.js';
|
|
7
|
-
import './Document.js';
|
|
1
|
+
import { A as Api } from './ApiNew.js';
|
|
8
2
|
|
|
3
|
+
const api = Api();
|
|
9
4
|
class PayoutService {
|
|
10
|
-
async fetchPayouts(accountId, authToken, params
|
|
11
|
-
const api = Api({ authToken, apiOrigin });
|
|
5
|
+
async fetchPayouts(accountId, authToken, params) {
|
|
12
6
|
const endpoint = `account/${accountId}/payouts`;
|
|
13
|
-
return api.get({ endpoint, params });
|
|
7
|
+
return api.get({ authToken, endpoint, params });
|
|
14
8
|
}
|
|
15
|
-
async fetchPayout(payoutId, authToken
|
|
16
|
-
const api = Api({ authToken, apiOrigin });
|
|
9
|
+
async fetchPayout(payoutId, authToken) {
|
|
17
10
|
const endpoint = `payouts/${payoutId}`;
|
|
18
|
-
return api.get({ endpoint });
|
|
11
|
+
return api.get({ authToken, endpoint });
|
|
19
12
|
}
|
|
20
|
-
async fetchCSV(payoutId, authToken
|
|
21
|
-
const api = Api({ authToken, apiOrigin });
|
|
13
|
+
async fetchCSV(payoutId, authToken) {
|
|
22
14
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
23
|
-
return api.get({ endpoint });
|
|
15
|
+
return api.get({ authToken, endpoint });
|
|
24
16
|
}
|
|
25
|
-
async fetchPayoutTransactions(authToken, params
|
|
26
|
-
const api = Api({ authToken, apiOrigin });
|
|
17
|
+
async fetchPayoutTransactions(accountId, authToken, params) {
|
|
27
18
|
const endpoint = `balance_transactions`;
|
|
28
|
-
|
|
19
|
+
const headers = { 'sub-account': accountId };
|
|
20
|
+
return api.get({ authToken, endpoint, params, headers });
|
|
29
21
|
}
|
|
30
22
|
}
|
|
31
23
|
|
|
@@ -6,7 +6,7 @@ import { p as pagingDefaults } from './Pagination.js';
|
|
|
6
6
|
import './Payment.js';
|
|
7
7
|
import './Refund.js';
|
|
8
8
|
import './Document.js';
|
|
9
|
-
import { n as tableHeadCell,
|
|
9
|
+
import { n as tableHeadCell, a5 as getAlternateTableCellPart, m as table, o as tableCell } from './parts.js';
|
|
10
10
|
import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types3.js';
|
|
11
11
|
import './details.js';
|
|
12
12
|
import { M as MapPayoutStatusToBadge } from './payouts-status.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, a as create$6, F as FormController } from './form.js';
|
|
3
3
|
import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Z as heading5 } from './parts.js';
|
|
5
5
|
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
6
6
|
import { d as defineCustomElement$4 } from './form-control-date2.js';
|
|
7
7
|
import { d as defineCustomElement$3 } from './form-control-file-v22.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, a as create$6, F as FormController } from './form.js';
|
|
3
3
|
import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Z as heading5 } from './parts.js';
|
|
5
5
|
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
6
6
|
import { d as defineCustomElement$4 } from './form-control-file-v22.js';
|
|
7
7
|
import { d as defineCustomElement$3 } from './form-control-help-text2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as snakeToCamel } from './utils2.js';
|
|
3
|
-
import {
|
|
3
|
+
import { W as radioListItem } from './parts.js';
|
|
4
4
|
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { f as formatCurrency } from './utils2.js';
|
|
3
|
-
import {
|
|
3
|
+
import { W as radioListItem } from './parts.js';
|
|
4
4
|
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, a as create$6, F as FormController } from './form.js';
|
|
3
3
|
import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Z as heading5 } from './parts.js';
|
|
5
5
|
import { d as defineCustomElement$7 } from './custom-popper2.js';
|
|
6
6
|
import { d as defineCustomElement$6 } from './form-control-date2.js';
|
|
7
7
|
import { d as defineCustomElement$5 } from './form-control-file-v22.js';
|
package/dist/module/spinner.js
CHANGED