@seekora-ai/admin-api 1.1.10 → 1.1.12
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/README.md +2 -2
- package/api.ts +244 -90
- package/dist/api.d.ts +226 -84
- package/dist/api.js +218 -79
- package/dist/esm/api.d.ts +226 -84
- package/dist/esm/api.js +213 -74
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.12.tgz +0 -0
- package/seekora-ai-admin-api-1.1.10.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -23,11 +23,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.AdminAnalyticsStoreXStoreIDKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortByEnum = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.AccountSettingsApi = exports.AccountSettingsApiFactory = exports.AccountSettingsApiFp = exports.AccountSettingsApiAxiosParamCreator = exports.APICallsApi = exports.APICallsApiFactory = exports.APICallsApiFp = exports.APICallsApiAxiosParamCreator = exports.RefundRefundPreviewRequestDtoRefundTypeEnum = exports.DataTypesUpdateWordStatusRequestWordTypeEnum = exports.DataTypesUpdatePluralDeclensionRequestTypeEnum = exports.DataTypesRefundCalculationRequestDtoRefundTypeEnum = exports.DataTypesRefundApprovalDtoActionEnum = exports.DataTypesProcessRefundRequestDtoRefundTypeEnum = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = exports.DataTypesCreateRefundRequestDtoRefundTypeEnum = exports.DataTypesCreatePluralDeclensionRequestTypeEnum = exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = exports.DataTypesCreateCustomWordListRequestTypeEnum = exports.DataTypesBillingAlertRequestThresholdUnitEnum = exports.DataTypesBillingAlertRequestAlertTypeEnum = exports.AnalyticsRuleType = exports.AnalyticsQuerySuggestionStatus = exports.AnalyticsQuerySuggestionSource = exports.AnalyticsBulkOperation = exports.AnalyticsBannedMatchType = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = void 0;
|
|
26
|
+
exports.AdminBillingCreditLedgerGetSortByEnum = exports.BillingDashboardApi = exports.BillingDashboardApiFactory = exports.BillingDashboardApiFp = exports.BillingDashboardApiAxiosParamCreator = exports.AutomatedRefundManagementApi = exports.AutomatedRefundManagementApiFactory = exports.AutomatedRefundManagementApiFp = exports.AutomatedRefundManagementApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AnalyticsRulesApi = exports.AnalyticsRulesApiFactory = exports.AnalyticsRulesApiFp = exports.AnalyticsRulesApiAxiosParamCreator = exports.AnalyticsEventsApi = exports.AnalyticsEventsApiFactory = exports.AnalyticsEventsApiFp = exports.AnalyticsEventsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetTagsMatchModeEnum = void 0;
|
|
27
|
+
exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.FeatureLimitsAdminApi = exports.FeatureLimitsAdminApiFactory = exports.FeatureLimitsAdminApiFp = exports.FeatureLimitsAdminApiAxiosParamCreator = exports.FeatureLimitsApi = exports.FeatureLimitsApiFactory = exports.FeatureLimitsApiFp = exports.FeatureLimitsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.CreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.CompanyConfigApi = exports.CompanyConfigApiFactory = exports.CompanyConfigApiFp = exports.CompanyConfigApiAxiosParamCreator = exports.CommonApi = exports.CommonApiFactory = exports.CommonApiFp = exports.CommonApiAxiosParamCreator = exports.AdminBillingUsageDetailsGetGranularityEnum = exports.AdminBillingPaymentTransactionsGetSortOrderEnum = exports.AdminBillingPaymentTransactionsGetSortByEnum = exports.AdminBillingOrdersGetSortOrderEnum = exports.AdminBillingOrdersGetSortByEnum = exports.AdminBillingInvoicesGetSortOrderEnum = exports.AdminBillingInvoicesGetSortByEnum = exports.AdminBillingCreditTransactionsGetSortOrderEnum = exports.AdminBillingCreditTransactionsGetSortByEnum = exports.AdminBillingCreditPurchasesGetSortOrderEnum = exports.AdminBillingCreditPurchasesGetSortByEnum = exports.AdminBillingCreditLedgerGetSortOrderEnum = void 0;
|
|
28
|
+
exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetGroupByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = void 0;
|
|
29
|
+
exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = void 0;
|
|
30
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = void 0;
|
|
31
31
|
const axios_1 = require("axios");
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -7637,8 +7637,8 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7637
7637
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7638
7638
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7639
7639
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7640
|
-
* @param {
|
|
7641
|
-
* @param {
|
|
7640
|
+
* @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
|
|
7641
|
+
* @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
|
|
7642
7642
|
* @param {*} [options] Override http request option.
|
|
7643
7643
|
* @throws {RequiredError}
|
|
7644
7644
|
*/
|
|
@@ -7700,8 +7700,8 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7700
7700
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7701
7701
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7702
7702
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7703
|
-
* @param {
|
|
7704
|
-
* @param {
|
|
7703
|
+
* @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
|
|
7704
|
+
* @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
|
|
7705
7705
|
* @param {*} [options] Override http request option.
|
|
7706
7706
|
* @throws {RequiredError}
|
|
7707
7707
|
*/
|
|
@@ -7763,8 +7763,8 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7763
7763
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7764
7764
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7765
7765
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7766
|
-
* @param {
|
|
7767
|
-
* @param {
|
|
7766
|
+
* @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
|
|
7767
|
+
* @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
|
|
7768
7768
|
* @param {*} [options] Override http request option.
|
|
7769
7769
|
* @throws {RequiredError}
|
|
7770
7770
|
*/
|
|
@@ -7906,20 +7906,22 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7906
7906
|
};
|
|
7907
7907
|
}),
|
|
7908
7908
|
/**
|
|
7909
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
7909
|
+
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
|
|
7910
7910
|
* @summary Get invoices
|
|
7911
7911
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7912
7912
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
7913
7913
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7914
7914
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7915
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
7915
7916
|
* @param {number} [page] Page number (default: 1)
|
|
7916
|
-
* @param {number} [
|
|
7917
|
-
* @param {
|
|
7918
|
-
* @param {
|
|
7917
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
7918
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
7919
|
+
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
7920
|
+
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
7919
7921
|
* @param {*} [options] Override http request option.
|
|
7920
7922
|
* @throws {RequiredError}
|
|
7921
7923
|
*/
|
|
7922
|
-
adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options = {}) {
|
|
7924
|
+
adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options = {}) {
|
|
7923
7925
|
const localVarPath = `/admin/billing/invoices`;
|
|
7924
7926
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7925
7927
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7944,9 +7946,15 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7944
7946
|
if (endDate !== undefined) {
|
|
7945
7947
|
localVarQueryParameter['end_date'] = endDate;
|
|
7946
7948
|
}
|
|
7949
|
+
if (search !== undefined) {
|
|
7950
|
+
localVarQueryParameter['search'] = search;
|
|
7951
|
+
}
|
|
7947
7952
|
if (page !== undefined) {
|
|
7948
7953
|
localVarQueryParameter['page'] = page;
|
|
7949
7954
|
}
|
|
7955
|
+
if (pageSize !== undefined) {
|
|
7956
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7957
|
+
}
|
|
7950
7958
|
if (limit !== undefined) {
|
|
7951
7959
|
localVarQueryParameter['limit'] = limit;
|
|
7952
7960
|
}
|
|
@@ -8128,15 +8136,16 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8128
8136
|
};
|
|
8129
8137
|
}),
|
|
8130
8138
|
/**
|
|
8131
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
8139
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
|
|
8132
8140
|
* @summary Get orders
|
|
8133
8141
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8134
8142
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8135
8143
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8136
8144
|
* @param {number} [page] Page number (default: 1)
|
|
8137
8145
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8138
|
-
* @param {
|
|
8139
|
-
* @param {
|
|
8146
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8147
|
+
* @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
|
|
8148
|
+
* @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
|
|
8140
8149
|
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
8141
8150
|
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
8142
8151
|
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
@@ -8144,7 +8153,7 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8144
8153
|
* @param {*} [options] Override http request option.
|
|
8145
8154
|
* @throws {RequiredError}
|
|
8146
8155
|
*/
|
|
8147
|
-
adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options = {}) {
|
|
8156
|
+
adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options = {}) {
|
|
8148
8157
|
const localVarPath = `/admin/billing/orders`;
|
|
8149
8158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8150
8159
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8172,6 +8181,9 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8172
8181
|
if (pageSize !== undefined) {
|
|
8173
8182
|
localVarQueryParameter['page_size'] = pageSize;
|
|
8174
8183
|
}
|
|
8184
|
+
if (limit !== undefined) {
|
|
8185
|
+
localVarQueryParameter['limit'] = limit;
|
|
8186
|
+
}
|
|
8175
8187
|
if (sortBy !== undefined) {
|
|
8176
8188
|
localVarQueryParameter['sort_by'] = sortBy;
|
|
8177
8189
|
}
|
|
@@ -8379,8 +8391,8 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8379
8391
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8380
8392
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8381
8393
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8382
|
-
* @param {
|
|
8383
|
-
* @param {
|
|
8394
|
+
* @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
|
|
8395
|
+
* @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
|
|
8384
8396
|
* @param {*} [options] Override http request option.
|
|
8385
8397
|
* @throws {RequiredError}
|
|
8386
8398
|
*/
|
|
@@ -8814,8 +8826,8 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
8814
8826
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8815
8827
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8816
8828
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8817
|
-
* @param {
|
|
8818
|
-
* @param {
|
|
8829
|
+
* @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
|
|
8830
|
+
* @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
|
|
8819
8831
|
* @param {*} [options] Override http request option.
|
|
8820
8832
|
* @throws {RequiredError}
|
|
8821
8833
|
*/
|
|
@@ -8838,8 +8850,8 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
8838
8850
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8839
8851
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8840
8852
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8841
|
-
* @param {
|
|
8842
|
-
* @param {
|
|
8853
|
+
* @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
|
|
8854
|
+
* @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
|
|
8843
8855
|
* @param {*} [options] Override http request option.
|
|
8844
8856
|
* @throws {RequiredError}
|
|
8845
8857
|
*/
|
|
@@ -8862,8 +8874,8 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
8862
8874
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8863
8875
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8864
8876
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8865
|
-
* @param {
|
|
8866
|
-
* @param {
|
|
8877
|
+
* @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
|
|
8878
|
+
* @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
|
|
8867
8879
|
* @param {*} [options] Override http request option.
|
|
8868
8880
|
* @throws {RequiredError}
|
|
8869
8881
|
*/
|
|
@@ -8924,23 +8936,25 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
8924
8936
|
});
|
|
8925
8937
|
},
|
|
8926
8938
|
/**
|
|
8927
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
8939
|
+
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
|
|
8928
8940
|
* @summary Get invoices
|
|
8929
8941
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8930
8942
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
8931
8943
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8932
8944
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8945
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
8933
8946
|
* @param {number} [page] Page number (default: 1)
|
|
8934
|
-
* @param {number} [
|
|
8935
|
-
* @param {
|
|
8936
|
-
* @param {
|
|
8947
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
8948
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
8949
|
+
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
8950
|
+
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
8937
8951
|
* @param {*} [options] Override http request option.
|
|
8938
8952
|
* @throws {RequiredError}
|
|
8939
8953
|
*/
|
|
8940
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
|
|
8954
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
8941
8955
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8942
8956
|
var _a, _b, _c;
|
|
8943
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options);
|
|
8957
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
|
|
8944
8958
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8945
8959
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8946
8960
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9029,15 +9043,16 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
9029
9043
|
});
|
|
9030
9044
|
},
|
|
9031
9045
|
/**
|
|
9032
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
9046
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
|
|
9033
9047
|
* @summary Get orders
|
|
9034
9048
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9035
9049
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9036
9050
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9037
9051
|
* @param {number} [page] Page number (default: 1)
|
|
9038
9052
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9039
|
-
* @param {
|
|
9040
|
-
* @param {
|
|
9053
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9054
|
+
* @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
|
|
9055
|
+
* @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
|
|
9041
9056
|
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9042
9057
|
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9043
9058
|
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
@@ -9045,10 +9060,10 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
9045
9060
|
* @param {*} [options] Override http request option.
|
|
9046
9061
|
* @throws {RequiredError}
|
|
9047
9062
|
*/
|
|
9048
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9063
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9049
9064
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9050
9065
|
var _a, _b, _c;
|
|
9051
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options);
|
|
9066
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options);
|
|
9052
9067
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9053
9068
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9054
9069
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9148,8 +9163,8 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
9148
9163
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9149
9164
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9150
9165
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9151
|
-
* @param {
|
|
9152
|
-
* @param {
|
|
9166
|
+
* @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
|
|
9167
|
+
* @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
|
|
9153
9168
|
* @param {*} [options] Override http request option.
|
|
9154
9169
|
* @throws {RequiredError}
|
|
9155
9170
|
*/
|
|
@@ -9373,8 +9388,8 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9373
9388
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9374
9389
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9375
9390
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9376
|
-
* @param {
|
|
9377
|
-
* @param {
|
|
9391
|
+
* @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
|
|
9392
|
+
* @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
|
|
9378
9393
|
* @param {*} [options] Override http request option.
|
|
9379
9394
|
* @throws {RequiredError}
|
|
9380
9395
|
*/
|
|
@@ -9391,8 +9406,8 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9391
9406
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9392
9407
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9393
9408
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9394
|
-
* @param {
|
|
9395
|
-
* @param {
|
|
9409
|
+
* @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
|
|
9410
|
+
* @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
|
|
9396
9411
|
* @param {*} [options] Override http request option.
|
|
9397
9412
|
* @throws {RequiredError}
|
|
9398
9413
|
*/
|
|
@@ -9409,8 +9424,8 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9409
9424
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9410
9425
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9411
9426
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9412
|
-
* @param {
|
|
9413
|
-
* @param {
|
|
9427
|
+
* @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
|
|
9428
|
+
* @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
|
|
9414
9429
|
* @param {*} [options] Override http request option.
|
|
9415
9430
|
* @throws {RequiredError}
|
|
9416
9431
|
*/
|
|
@@ -9447,21 +9462,23 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9447
9462
|
return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
9448
9463
|
},
|
|
9449
9464
|
/**
|
|
9450
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
9465
|
+
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
|
|
9451
9466
|
* @summary Get invoices
|
|
9452
9467
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9453
9468
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
9454
9469
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9455
9470
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9471
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
9456
9472
|
* @param {number} [page] Page number (default: 1)
|
|
9457
|
-
* @param {number} [
|
|
9458
|
-
* @param {
|
|
9459
|
-
* @param {
|
|
9473
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
9474
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
9475
|
+
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
9476
|
+
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
9460
9477
|
* @param {*} [options] Override http request option.
|
|
9461
9478
|
* @throws {RequiredError}
|
|
9462
9479
|
*/
|
|
9463
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
|
|
9464
|
-
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9480
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
9481
|
+
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9465
9482
|
},
|
|
9466
9483
|
/**
|
|
9467
9484
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -9516,15 +9533,16 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9516
9533
|
return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
9517
9534
|
},
|
|
9518
9535
|
/**
|
|
9519
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
9536
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
|
|
9520
9537
|
* @summary Get orders
|
|
9521
9538
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9522
9539
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9523
9540
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9524
9541
|
* @param {number} [page] Page number (default: 1)
|
|
9525
9542
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9526
|
-
* @param {
|
|
9527
|
-
* @param {
|
|
9543
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9544
|
+
* @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
|
|
9545
|
+
* @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
|
|
9528
9546
|
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9529
9547
|
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9530
9548
|
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
@@ -9532,8 +9550,8 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9532
9550
|
* @param {*} [options] Override http request option.
|
|
9533
9551
|
* @throws {RequiredError}
|
|
9534
9552
|
*/
|
|
9535
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9536
|
-
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
|
|
9553
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9554
|
+
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
|
|
9537
9555
|
},
|
|
9538
9556
|
/**
|
|
9539
9557
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -9599,8 +9617,8 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9599
9617
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9600
9618
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9601
9619
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9602
|
-
* @param {
|
|
9603
|
-
* @param {
|
|
9620
|
+
* @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
|
|
9621
|
+
* @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
|
|
9604
9622
|
* @param {*} [options] Override http request option.
|
|
9605
9623
|
* @throws {RequiredError}
|
|
9606
9624
|
*/
|
|
@@ -9782,8 +9800,8 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9782
9800
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9783
9801
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9784
9802
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9785
|
-
* @param {
|
|
9786
|
-
* @param {
|
|
9803
|
+
* @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
|
|
9804
|
+
* @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
|
|
9787
9805
|
* @param {*} [options] Override http request option.
|
|
9788
9806
|
* @throws {RequiredError}
|
|
9789
9807
|
* @memberof BillingDashboardApi
|
|
@@ -9801,8 +9819,8 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9801
9819
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9802
9820
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9803
9821
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9804
|
-
* @param {
|
|
9805
|
-
* @param {
|
|
9822
|
+
* @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
|
|
9823
|
+
* @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
|
|
9806
9824
|
* @param {*} [options] Override http request option.
|
|
9807
9825
|
* @throws {RequiredError}
|
|
9808
9826
|
* @memberof BillingDashboardApi
|
|
@@ -9820,8 +9838,8 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9820
9838
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9821
9839
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9822
9840
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9823
|
-
* @param {
|
|
9824
|
-
* @param {
|
|
9841
|
+
* @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
|
|
9842
|
+
* @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
|
|
9825
9843
|
* @param {*} [options] Override http request option.
|
|
9826
9844
|
* @throws {RequiredError}
|
|
9827
9845
|
* @memberof BillingDashboardApi
|
|
@@ -9862,22 +9880,24 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9862
9880
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
9863
9881
|
}
|
|
9864
9882
|
/**
|
|
9865
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
9883
|
+
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
|
|
9866
9884
|
* @summary Get invoices
|
|
9867
9885
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9868
9886
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
9869
9887
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9870
9888
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9889
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
9871
9890
|
* @param {number} [page] Page number (default: 1)
|
|
9872
|
-
* @param {number} [
|
|
9873
|
-
* @param {
|
|
9874
|
-
* @param {
|
|
9891
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
9892
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
9893
|
+
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
9894
|
+
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
9875
9895
|
* @param {*} [options] Override http request option.
|
|
9876
9896
|
* @throws {RequiredError}
|
|
9877
9897
|
* @memberof BillingDashboardApi
|
|
9878
9898
|
*/
|
|
9879
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
|
|
9880
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9899
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
9900
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9881
9901
|
}
|
|
9882
9902
|
/**
|
|
9883
9903
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -9937,15 +9957,16 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9937
9957
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9938
9958
|
}
|
|
9939
9959
|
/**
|
|
9940
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
9960
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
|
|
9941
9961
|
* @summary Get orders
|
|
9942
9962
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9943
9963
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9944
9964
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9945
9965
|
* @param {number} [page] Page number (default: 1)
|
|
9946
9966
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9947
|
-
* @param {
|
|
9948
|
-
* @param {
|
|
9967
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9968
|
+
* @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
|
|
9969
|
+
* @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
|
|
9949
9970
|
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9950
9971
|
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9951
9972
|
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
@@ -9954,8 +9975,8 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9954
9975
|
* @throws {RequiredError}
|
|
9955
9976
|
* @memberof BillingDashboardApi
|
|
9956
9977
|
*/
|
|
9957
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9958
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
|
|
9978
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9979
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
|
|
9959
9980
|
}
|
|
9960
9981
|
/**
|
|
9961
9982
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -10026,8 +10047,8 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
10026
10047
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
10027
10048
|
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
10028
10049
|
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
10029
|
-
* @param {
|
|
10030
|
-
* @param {
|
|
10050
|
+
* @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
|
|
10051
|
+
* @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
|
|
10031
10052
|
* @param {*} [options] Override http request option.
|
|
10032
10053
|
* @throws {RequiredError}
|
|
10033
10054
|
* @memberof BillingDashboardApi
|
|
@@ -10124,6 +10145,124 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
10124
10145
|
}
|
|
10125
10146
|
}
|
|
10126
10147
|
exports.BillingDashboardApi = BillingDashboardApi;
|
|
10148
|
+
/**
|
|
10149
|
+
* @export
|
|
10150
|
+
*/
|
|
10151
|
+
exports.AdminBillingCreditLedgerGetSortByEnum = {
|
|
10152
|
+
Id: 'id',
|
|
10153
|
+
Credits: 'credits',
|
|
10154
|
+
TransactionDate: 'transaction_date',
|
|
10155
|
+
TransactionType: 'transaction_type'
|
|
10156
|
+
};
|
|
10157
|
+
/**
|
|
10158
|
+
* @export
|
|
10159
|
+
*/
|
|
10160
|
+
exports.AdminBillingCreditLedgerGetSortOrderEnum = {
|
|
10161
|
+
Asc: 'asc',
|
|
10162
|
+
Desc: 'desc',
|
|
10163
|
+
Asc2: 'ASC',
|
|
10164
|
+
Desc2: 'DESC'
|
|
10165
|
+
};
|
|
10166
|
+
/**
|
|
10167
|
+
* @export
|
|
10168
|
+
*/
|
|
10169
|
+
exports.AdminBillingCreditPurchasesGetSortByEnum = {
|
|
10170
|
+
Id: 'id',
|
|
10171
|
+
Amount: 'amount',
|
|
10172
|
+
CreatedAt: 'created_at',
|
|
10173
|
+
CreditsPurchased: 'credits_purchased'
|
|
10174
|
+
};
|
|
10175
|
+
/**
|
|
10176
|
+
* @export
|
|
10177
|
+
*/
|
|
10178
|
+
exports.AdminBillingCreditPurchasesGetSortOrderEnum = {
|
|
10179
|
+
Asc: 'asc',
|
|
10180
|
+
Desc: 'desc',
|
|
10181
|
+
Asc2: 'ASC',
|
|
10182
|
+
Desc2: 'DESC'
|
|
10183
|
+
};
|
|
10184
|
+
/**
|
|
10185
|
+
* @export
|
|
10186
|
+
*/
|
|
10187
|
+
exports.AdminBillingCreditTransactionsGetSortByEnum = {
|
|
10188
|
+
Id: 'id',
|
|
10189
|
+
CreditsUsed: 'credits_used',
|
|
10190
|
+
TransactionDate: 'transaction_date',
|
|
10191
|
+
TransactionType: 'transaction_type'
|
|
10192
|
+
};
|
|
10193
|
+
/**
|
|
10194
|
+
* @export
|
|
10195
|
+
*/
|
|
10196
|
+
exports.AdminBillingCreditTransactionsGetSortOrderEnum = {
|
|
10197
|
+
Asc: 'asc',
|
|
10198
|
+
Desc: 'desc',
|
|
10199
|
+
Asc2: 'ASC',
|
|
10200
|
+
Desc2: 'DESC'
|
|
10201
|
+
};
|
|
10202
|
+
/**
|
|
10203
|
+
* @export
|
|
10204
|
+
*/
|
|
10205
|
+
exports.AdminBillingInvoicesGetSortByEnum = {
|
|
10206
|
+
Id: 'id',
|
|
10207
|
+
InvoiceId: 'invoice_id',
|
|
10208
|
+
InvoiceNumber: 'invoice_number',
|
|
10209
|
+
Amount: 'amount',
|
|
10210
|
+
TotalAmount: 'total_amount',
|
|
10211
|
+
CreatedAt: 'created_at',
|
|
10212
|
+
IssueDate: 'issue_date',
|
|
10213
|
+
DueDate: 'due_date',
|
|
10214
|
+
PaidDate: 'paid_date',
|
|
10215
|
+
Status: 'status'
|
|
10216
|
+
};
|
|
10217
|
+
/**
|
|
10218
|
+
* @export
|
|
10219
|
+
*/
|
|
10220
|
+
exports.AdminBillingInvoicesGetSortOrderEnum = {
|
|
10221
|
+
Asc: 'asc',
|
|
10222
|
+
Desc: 'desc',
|
|
10223
|
+
Asc2: 'ASC',
|
|
10224
|
+
Desc2: 'DESC'
|
|
10225
|
+
};
|
|
10226
|
+
/**
|
|
10227
|
+
* @export
|
|
10228
|
+
*/
|
|
10229
|
+
exports.AdminBillingOrdersGetSortByEnum = {
|
|
10230
|
+
Id: 'id',
|
|
10231
|
+
Amount: 'amount',
|
|
10232
|
+
CreatedAt: 'created_at',
|
|
10233
|
+
UpdatedAt: 'updated_at',
|
|
10234
|
+
Status: 'status'
|
|
10235
|
+
};
|
|
10236
|
+
/**
|
|
10237
|
+
* @export
|
|
10238
|
+
*/
|
|
10239
|
+
exports.AdminBillingOrdersGetSortOrderEnum = {
|
|
10240
|
+
Asc: 'asc',
|
|
10241
|
+
Desc: 'desc',
|
|
10242
|
+
Asc2: 'ASC',
|
|
10243
|
+
Desc2: 'DESC'
|
|
10244
|
+
};
|
|
10245
|
+
/**
|
|
10246
|
+
* @export
|
|
10247
|
+
*/
|
|
10248
|
+
exports.AdminBillingPaymentTransactionsGetSortByEnum = {
|
|
10249
|
+
PaymentId: 'payment_id',
|
|
10250
|
+
Amount: 'amount',
|
|
10251
|
+
PaymentDate: 'payment_date',
|
|
10252
|
+
CreatedAt: 'created_at',
|
|
10253
|
+
PaymentStatus: 'payment_status',
|
|
10254
|
+
Gateway: 'gateway',
|
|
10255
|
+
RefundAmount: 'refund_amount'
|
|
10256
|
+
};
|
|
10257
|
+
/**
|
|
10258
|
+
* @export
|
|
10259
|
+
*/
|
|
10260
|
+
exports.AdminBillingPaymentTransactionsGetSortOrderEnum = {
|
|
10261
|
+
Asc: 'asc',
|
|
10262
|
+
Desc: 'desc',
|
|
10263
|
+
Asc2: 'ASC',
|
|
10264
|
+
Desc2: 'DESC'
|
|
10265
|
+
};
|
|
10127
10266
|
/**
|
|
10128
10267
|
* @export
|
|
10129
10268
|
*/
|