@seekora-ai/admin-api 1.1.9 → 1.1.11
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 +347 -115
- package/dist/api.d.ts +210 -94
- package/dist/api.js +316 -113
- package/dist/esm/api.d.ts +210 -94
- package/dist/esm/api.js +316 -113
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.11.tgz +0 -0
- package/seekora-ai-admin-api-1.1.9.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -7588,17 +7588,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7588
7588
|
};
|
|
7589
7589
|
}),
|
|
7590
7590
|
/**
|
|
7591
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
7591
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
7592
7592
|
* @summary Get credit ledger
|
|
7593
7593
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7594
7594
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7595
7595
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7596
|
-
* @param {number} [
|
|
7597
|
-
* @param {number} [
|
|
7596
|
+
* @param {number} [page] Page number (default: 1)
|
|
7597
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7598
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7599
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7600
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
7601
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7598
7602
|
* @param {*} [options] Override http request option.
|
|
7599
7603
|
* @throws {RequiredError}
|
|
7600
7604
|
*/
|
|
7601
|
-
adminBillingCreditLedgerGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
|
|
7605
|
+
adminBillingCreditLedgerGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options = {}) {
|
|
7602
7606
|
const localVarPath = `/admin/billing/credit-ledger`;
|
|
7603
7607
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7604
7608
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7620,12 +7624,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7620
7624
|
if (endDate !== undefined) {
|
|
7621
7625
|
localVarQueryParameter['end_date'] = endDate;
|
|
7622
7626
|
}
|
|
7627
|
+
if (page !== undefined) {
|
|
7628
|
+
localVarQueryParameter['page'] = page;
|
|
7629
|
+
}
|
|
7630
|
+
if (pageSize !== undefined) {
|
|
7631
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7632
|
+
}
|
|
7623
7633
|
if (limit !== undefined) {
|
|
7624
7634
|
localVarQueryParameter['limit'] = limit;
|
|
7625
7635
|
}
|
|
7626
7636
|
if (offset !== undefined) {
|
|
7627
7637
|
localVarQueryParameter['offset'] = offset;
|
|
7628
7638
|
}
|
|
7639
|
+
if (sortBy !== undefined) {
|
|
7640
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7641
|
+
}
|
|
7642
|
+
if (sortOrder !== undefined) {
|
|
7643
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7644
|
+
}
|
|
7629
7645
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7630
7646
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7631
7647
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7635,17 +7651,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7635
7651
|
};
|
|
7636
7652
|
}),
|
|
7637
7653
|
/**
|
|
7638
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
7654
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
7639
7655
|
* @summary Get credit purchases
|
|
7640
7656
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7641
7657
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7642
7658
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7643
|
-
* @param {number} [
|
|
7644
|
-
* @param {number} [
|
|
7659
|
+
* @param {number} [page] Page number (default: 1)
|
|
7660
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7661
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7662
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7663
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
7664
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7645
7665
|
* @param {*} [options] Override http request option.
|
|
7646
7666
|
* @throws {RequiredError}
|
|
7647
7667
|
*/
|
|
7648
|
-
adminBillingCreditPurchasesGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
|
|
7668
|
+
adminBillingCreditPurchasesGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options = {}) {
|
|
7649
7669
|
const localVarPath = `/admin/billing/credit-purchases`;
|
|
7650
7670
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7651
7671
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7667,12 +7687,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7667
7687
|
if (endDate !== undefined) {
|
|
7668
7688
|
localVarQueryParameter['end_date'] = endDate;
|
|
7669
7689
|
}
|
|
7690
|
+
if (page !== undefined) {
|
|
7691
|
+
localVarQueryParameter['page'] = page;
|
|
7692
|
+
}
|
|
7693
|
+
if (pageSize !== undefined) {
|
|
7694
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7695
|
+
}
|
|
7670
7696
|
if (limit !== undefined) {
|
|
7671
7697
|
localVarQueryParameter['limit'] = limit;
|
|
7672
7698
|
}
|
|
7673
7699
|
if (offset !== undefined) {
|
|
7674
7700
|
localVarQueryParameter['offset'] = offset;
|
|
7675
7701
|
}
|
|
7702
|
+
if (sortBy !== undefined) {
|
|
7703
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7704
|
+
}
|
|
7705
|
+
if (sortOrder !== undefined) {
|
|
7706
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7707
|
+
}
|
|
7676
7708
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7677
7709
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7678
7710
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7682,17 +7714,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7682
7714
|
};
|
|
7683
7715
|
}),
|
|
7684
7716
|
/**
|
|
7685
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
7717
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
7686
7718
|
* @summary Get credit transactions
|
|
7687
7719
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7688
7720
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7689
7721
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7690
|
-
* @param {number} [
|
|
7691
|
-
* @param {number} [
|
|
7722
|
+
* @param {number} [page] Page number (default: 1)
|
|
7723
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7724
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7725
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7726
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
7727
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7692
7728
|
* @param {*} [options] Override http request option.
|
|
7693
7729
|
* @throws {RequiredError}
|
|
7694
7730
|
*/
|
|
7695
|
-
adminBillingCreditTransactionsGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
|
|
7731
|
+
adminBillingCreditTransactionsGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options = {}) {
|
|
7696
7732
|
const localVarPath = `/admin/billing/credit-transactions`;
|
|
7697
7733
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7698
7734
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7714,12 +7750,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7714
7750
|
if (endDate !== undefined) {
|
|
7715
7751
|
localVarQueryParameter['end_date'] = endDate;
|
|
7716
7752
|
}
|
|
7753
|
+
if (page !== undefined) {
|
|
7754
|
+
localVarQueryParameter['page'] = page;
|
|
7755
|
+
}
|
|
7756
|
+
if (pageSize !== undefined) {
|
|
7757
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7758
|
+
}
|
|
7717
7759
|
if (limit !== undefined) {
|
|
7718
7760
|
localVarQueryParameter['limit'] = limit;
|
|
7719
7761
|
}
|
|
7720
7762
|
if (offset !== undefined) {
|
|
7721
7763
|
localVarQueryParameter['offset'] = offset;
|
|
7722
7764
|
}
|
|
7765
|
+
if (sortBy !== undefined) {
|
|
7766
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7767
|
+
}
|
|
7768
|
+
if (sortOrder !== undefined) {
|
|
7769
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7770
|
+
}
|
|
7723
7771
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7724
7772
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7725
7773
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7818,18 +7866,22 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7818
7866
|
};
|
|
7819
7867
|
}),
|
|
7820
7868
|
/**
|
|
7821
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
7869
|
+
* 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.
|
|
7822
7870
|
* @summary Get invoices
|
|
7823
7871
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7824
7872
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
7825
7873
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7826
7874
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7875
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
7827
7876
|
* @param {number} [page] Page number (default: 1)
|
|
7828
|
-
* @param {number} [
|
|
7877
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
7878
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
7879
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
7880
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7829
7881
|
* @param {*} [options] Override http request option.
|
|
7830
7882
|
* @throws {RequiredError}
|
|
7831
7883
|
*/
|
|
7832
|
-
adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, page, limit, options = {}) {
|
|
7884
|
+
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 = {}) {
|
|
7833
7885
|
const localVarPath = `/admin/billing/invoices`;
|
|
7834
7886
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7835
7887
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7854,12 +7906,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7854
7906
|
if (endDate !== undefined) {
|
|
7855
7907
|
localVarQueryParameter['end_date'] = endDate;
|
|
7856
7908
|
}
|
|
7909
|
+
if (search !== undefined) {
|
|
7910
|
+
localVarQueryParameter['search'] = search;
|
|
7911
|
+
}
|
|
7857
7912
|
if (page !== undefined) {
|
|
7858
7913
|
localVarQueryParameter['page'] = page;
|
|
7859
7914
|
}
|
|
7915
|
+
if (pageSize !== undefined) {
|
|
7916
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7917
|
+
}
|
|
7860
7918
|
if (limit !== undefined) {
|
|
7861
7919
|
localVarQueryParameter['limit'] = limit;
|
|
7862
7920
|
}
|
|
7921
|
+
if (sortBy !== undefined) {
|
|
7922
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7923
|
+
}
|
|
7924
|
+
if (sortOrder !== undefined) {
|
|
7925
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7926
|
+
}
|
|
7863
7927
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7864
7928
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7865
7929
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8032,17 +8096,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8032
8096
|
};
|
|
8033
8097
|
}),
|
|
8034
8098
|
/**
|
|
8035
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
8099
|
+
* 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.
|
|
8036
8100
|
* @summary Get orders
|
|
8037
8101
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8038
8102
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8039
8103
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8040
8104
|
* @param {number} [page] Page number (default: 1)
|
|
8041
8105
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8106
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8107
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
8108
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8109
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
8110
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
8111
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
8112
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
8042
8113
|
* @param {*} [options] Override http request option.
|
|
8043
8114
|
* @throws {RequiredError}
|
|
8044
8115
|
*/
|
|
8045
|
-
adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, options = {}) {
|
|
8116
|
+
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 = {}) {
|
|
8046
8117
|
const localVarPath = `/admin/billing/orders`;
|
|
8047
8118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8048
8119
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8070,6 +8141,27 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8070
8141
|
if (pageSize !== undefined) {
|
|
8071
8142
|
localVarQueryParameter['page_size'] = pageSize;
|
|
8072
8143
|
}
|
|
8144
|
+
if (limit !== undefined) {
|
|
8145
|
+
localVarQueryParameter['limit'] = limit;
|
|
8146
|
+
}
|
|
8147
|
+
if (sortBy !== undefined) {
|
|
8148
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8149
|
+
}
|
|
8150
|
+
if (sortOrder !== undefined) {
|
|
8151
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8152
|
+
}
|
|
8153
|
+
if (search !== undefined) {
|
|
8154
|
+
localVarQueryParameter['search'] = search;
|
|
8155
|
+
}
|
|
8156
|
+
if (status !== undefined) {
|
|
8157
|
+
localVarQueryParameter['status'] = status;
|
|
8158
|
+
}
|
|
8159
|
+
if (gateway !== undefined) {
|
|
8160
|
+
localVarQueryParameter['gateway'] = gateway;
|
|
8161
|
+
}
|
|
8162
|
+
if (paymentType !== undefined) {
|
|
8163
|
+
localVarQueryParameter['payment_type'] = paymentType;
|
|
8164
|
+
}
|
|
8073
8165
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8074
8166
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8075
8167
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8250,17 +8342,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8250
8342
|
};
|
|
8251
8343
|
}),
|
|
8252
8344
|
/**
|
|
8253
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
8345
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8254
8346
|
* @summary Get payment transactions
|
|
8255
8347
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8256
8348
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8257
8349
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8258
|
-
* @param {number} [
|
|
8259
|
-
* @param {number} [
|
|
8350
|
+
* @param {number} [page] Page number (default: 1)
|
|
8351
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8352
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8353
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8354
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
8355
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8260
8356
|
* @param {*} [options] Override http request option.
|
|
8261
8357
|
* @throws {RequiredError}
|
|
8262
8358
|
*/
|
|
8263
|
-
adminBillingPaymentTransactionsGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
|
|
8359
|
+
adminBillingPaymentTransactionsGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options = {}) {
|
|
8264
8360
|
const localVarPath = `/admin/billing/payment-transactions`;
|
|
8265
8361
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8266
8362
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8282,12 +8378,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8282
8378
|
if (endDate !== undefined) {
|
|
8283
8379
|
localVarQueryParameter['end_date'] = endDate;
|
|
8284
8380
|
}
|
|
8381
|
+
if (page !== undefined) {
|
|
8382
|
+
localVarQueryParameter['page'] = page;
|
|
8383
|
+
}
|
|
8384
|
+
if (pageSize !== undefined) {
|
|
8385
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
8386
|
+
}
|
|
8285
8387
|
if (limit !== undefined) {
|
|
8286
8388
|
localVarQueryParameter['limit'] = limit;
|
|
8287
8389
|
}
|
|
8288
8390
|
if (offset !== undefined) {
|
|
8289
8391
|
localVarQueryParameter['offset'] = offset;
|
|
8290
8392
|
}
|
|
8393
|
+
if (sortBy !== undefined) {
|
|
8394
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8395
|
+
}
|
|
8396
|
+
if (sortOrder !== undefined) {
|
|
8397
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8398
|
+
}
|
|
8291
8399
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8292
8400
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8293
8401
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8355,14 +8463,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8355
8463
|
};
|
|
8356
8464
|
}),
|
|
8357
8465
|
/**
|
|
8358
|
-
* Retrieves a paginated list of receipts for the organization
|
|
8466
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
8359
8467
|
* @summary List receipts
|
|
8360
8468
|
* @param {number} [page] Page number (default: 1)
|
|
8361
8469
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
8470
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
8471
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8362
8472
|
* @param {*} [options] Override http request option.
|
|
8363
8473
|
* @throws {RequiredError}
|
|
8364
8474
|
*/
|
|
8365
|
-
adminBillingReceiptsGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
|
|
8475
|
+
adminBillingReceiptsGet: (page_1, pageSize_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (page, pageSize, sortBy, sortOrder, options = {}) {
|
|
8366
8476
|
const localVarPath = `/admin/billing/receipts`;
|
|
8367
8477
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8368
8478
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8381,6 +8491,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8381
8491
|
if (pageSize !== undefined) {
|
|
8382
8492
|
localVarQueryParameter['page_size'] = pageSize;
|
|
8383
8493
|
}
|
|
8494
|
+
if (sortBy !== undefined) {
|
|
8495
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8496
|
+
}
|
|
8497
|
+
if (sortOrder !== undefined) {
|
|
8498
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8499
|
+
}
|
|
8384
8500
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8385
8501
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8386
8502
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8660,60 +8776,72 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8660
8776
|
});
|
|
8661
8777
|
},
|
|
8662
8778
|
/**
|
|
8663
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
8779
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8664
8780
|
* @summary Get credit ledger
|
|
8665
8781
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8666
8782
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8667
8783
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8668
|
-
* @param {number} [
|
|
8669
|
-
* @param {number} [
|
|
8784
|
+
* @param {number} [page] Page number (default: 1)
|
|
8785
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8786
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8787
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8788
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
8789
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8670
8790
|
* @param {*} [options] Override http request option.
|
|
8671
8791
|
* @throws {RequiredError}
|
|
8672
8792
|
*/
|
|
8673
|
-
adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8793
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8674
8794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8675
8795
|
var _a, _b, _c;
|
|
8676
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options);
|
|
8796
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8677
8797
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8678
8798
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8679
8799
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8680
8800
|
});
|
|
8681
8801
|
},
|
|
8682
8802
|
/**
|
|
8683
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
8803
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8684
8804
|
* @summary Get credit purchases
|
|
8685
8805
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8686
8806
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8687
8807
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8688
|
-
* @param {number} [
|
|
8689
|
-
* @param {number} [
|
|
8808
|
+
* @param {number} [page] Page number (default: 1)
|
|
8809
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8810
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8811
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8812
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
8813
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8690
8814
|
* @param {*} [options] Override http request option.
|
|
8691
8815
|
* @throws {RequiredError}
|
|
8692
8816
|
*/
|
|
8693
|
-
adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8817
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8694
8818
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8695
8819
|
var _a, _b, _c;
|
|
8696
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options);
|
|
8820
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8697
8821
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8698
8822
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditPurchasesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8699
8823
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8700
8824
|
});
|
|
8701
8825
|
},
|
|
8702
8826
|
/**
|
|
8703
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
8827
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8704
8828
|
* @summary Get credit transactions
|
|
8705
8829
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8706
8830
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8707
8831
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8708
|
-
* @param {number} [
|
|
8709
|
-
* @param {number} [
|
|
8832
|
+
* @param {number} [page] Page number (default: 1)
|
|
8833
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8834
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8835
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8836
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
8837
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8710
8838
|
* @param {*} [options] Override http request option.
|
|
8711
8839
|
* @throws {RequiredError}
|
|
8712
8840
|
*/
|
|
8713
|
-
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8841
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8714
8842
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8715
8843
|
var _a, _b, _c;
|
|
8716
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options);
|
|
8844
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8717
8845
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8718
8846
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8719
8847
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8767,21 +8895,25 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8767
8895
|
});
|
|
8768
8896
|
},
|
|
8769
8897
|
/**
|
|
8770
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
8898
|
+
* 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.
|
|
8771
8899
|
* @summary Get invoices
|
|
8772
8900
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8773
8901
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
8774
8902
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8775
8903
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8904
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
8776
8905
|
* @param {number} [page] Page number (default: 1)
|
|
8777
|
-
* @param {number} [
|
|
8906
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
8907
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
8908
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
8909
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8778
8910
|
* @param {*} [options] Override http request option.
|
|
8779
8911
|
* @throws {RequiredError}
|
|
8780
8912
|
*/
|
|
8781
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
8913
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
8782
8914
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8783
8915
|
var _a, _b, _c;
|
|
8784
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
|
|
8916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
|
|
8785
8917
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8786
8918
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8787
8919
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8870,20 +9002,27 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8870
9002
|
});
|
|
8871
9003
|
},
|
|
8872
9004
|
/**
|
|
8873
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
9005
|
+
* 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.
|
|
8874
9006
|
* @summary Get orders
|
|
8875
9007
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8876
9008
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8877
9009
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8878
9010
|
* @param {number} [page] Page number (default: 1)
|
|
8879
9011
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9012
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9013
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
9014
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9015
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9016
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9017
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9018
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
8880
9019
|
* @param {*} [options] Override http request option.
|
|
8881
9020
|
* @throws {RequiredError}
|
|
8882
9021
|
*/
|
|
8883
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
9022
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
8884
9023
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8885
9024
|
var _a, _b, _c;
|
|
8886
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options);
|
|
9025
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options);
|
|
8887
9026
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8888
9027
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8889
9028
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8974,20 +9113,24 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8974
9113
|
});
|
|
8975
9114
|
},
|
|
8976
9115
|
/**
|
|
8977
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
9116
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8978
9117
|
* @summary Get payment transactions
|
|
8979
9118
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8980
9119
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8981
9120
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8982
|
-
* @param {number} [
|
|
8983
|
-
* @param {number} [
|
|
9121
|
+
* @param {number} [page] Page number (default: 1)
|
|
9122
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9123
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9124
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9125
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
9126
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8984
9127
|
* @param {*} [options] Override http request option.
|
|
8985
9128
|
* @throws {RequiredError}
|
|
8986
9129
|
*/
|
|
8987
|
-
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9130
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8988
9131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8989
9132
|
var _a, _b, _c;
|
|
8990
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options);
|
|
9133
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8991
9134
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8992
9135
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8993
9136
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9025,17 +9168,19 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
9025
9168
|
});
|
|
9026
9169
|
},
|
|
9027
9170
|
/**
|
|
9028
|
-
* Retrieves a paginated list of receipts for the organization
|
|
9171
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9029
9172
|
* @summary List receipts
|
|
9030
9173
|
* @param {number} [page] Page number (default: 1)
|
|
9031
9174
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
9175
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
9176
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9032
9177
|
* @param {*} [options] Override http request option.
|
|
9033
9178
|
* @throws {RequiredError}
|
|
9034
9179
|
*/
|
|
9035
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9180
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
9036
9181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9037
9182
|
var _a, _b, _c;
|
|
9038
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
|
|
9183
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options);
|
|
9039
9184
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9040
9185
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9041
9186
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9192,46 +9337,58 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9192
9337
|
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
9193
9338
|
},
|
|
9194
9339
|
/**
|
|
9195
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
9340
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9196
9341
|
* @summary Get credit ledger
|
|
9197
9342
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9198
9343
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9199
9344
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9200
|
-
* @param {number} [
|
|
9201
|
-
* @param {number} [
|
|
9345
|
+
* @param {number} [page] Page number (default: 1)
|
|
9346
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9347
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9348
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9349
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
9350
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9202
9351
|
* @param {*} [options] Override http request option.
|
|
9203
9352
|
* @throws {RequiredError}
|
|
9204
9353
|
*/
|
|
9205
|
-
adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9206
|
-
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9354
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9355
|
+
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9207
9356
|
},
|
|
9208
9357
|
/**
|
|
9209
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
9358
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9210
9359
|
* @summary Get credit purchases
|
|
9211
9360
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9212
9361
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9213
9362
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9214
|
-
* @param {number} [
|
|
9215
|
-
* @param {number} [
|
|
9363
|
+
* @param {number} [page] Page number (default: 1)
|
|
9364
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9365
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9366
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9367
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
9368
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9216
9369
|
* @param {*} [options] Override http request option.
|
|
9217
9370
|
* @throws {RequiredError}
|
|
9218
9371
|
*/
|
|
9219
|
-
adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9220
|
-
return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9372
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9373
|
+
return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9221
9374
|
},
|
|
9222
9375
|
/**
|
|
9223
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
9376
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9224
9377
|
* @summary Get credit transactions
|
|
9225
9378
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9226
9379
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9227
9380
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9228
|
-
* @param {number} [
|
|
9229
|
-
* @param {number} [
|
|
9381
|
+
* @param {number} [page] Page number (default: 1)
|
|
9382
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9383
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9384
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9385
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
9386
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9230
9387
|
* @param {*} [options] Override http request option.
|
|
9231
9388
|
* @throws {RequiredError}
|
|
9232
9389
|
*/
|
|
9233
|
-
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9234
|
-
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9390
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9391
|
+
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9235
9392
|
},
|
|
9236
9393
|
/**
|
|
9237
9394
|
* Automatically generates invoices for all completed payments without invoices
|
|
@@ -9263,19 +9420,23 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9263
9420
|
return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
9264
9421
|
},
|
|
9265
9422
|
/**
|
|
9266
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
9423
|
+
* 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.
|
|
9267
9424
|
* @summary Get invoices
|
|
9268
9425
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9269
9426
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
9270
9427
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9271
9428
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9429
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
9272
9430
|
* @param {number} [page] Page number (default: 1)
|
|
9273
|
-
* @param {number} [
|
|
9431
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
9432
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
9433
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
9434
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9274
9435
|
* @param {*} [options] Override http request option.
|
|
9275
9436
|
* @throws {RequiredError}
|
|
9276
9437
|
*/
|
|
9277
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
9278
|
-
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(axios, basePath));
|
|
9438
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
9439
|
+
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9279
9440
|
},
|
|
9280
9441
|
/**
|
|
9281
9442
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -9330,18 +9491,25 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9330
9491
|
return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
9331
9492
|
},
|
|
9332
9493
|
/**
|
|
9333
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
9494
|
+
* 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.
|
|
9334
9495
|
* @summary Get orders
|
|
9335
9496
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9336
9497
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9337
9498
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9338
9499
|
* @param {number} [page] Page number (default: 1)
|
|
9339
9500
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9501
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9502
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
9503
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9504
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9505
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9506
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9507
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
9340
9508
|
* @param {*} [options] Override http request option.
|
|
9341
9509
|
* @throws {RequiredError}
|
|
9342
9510
|
*/
|
|
9343
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
9344
|
-
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
|
|
9511
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9512
|
+
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
|
|
9345
9513
|
},
|
|
9346
9514
|
/**
|
|
9347
9515
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -9398,18 +9566,22 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9398
9566
|
return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
|
|
9399
9567
|
},
|
|
9400
9568
|
/**
|
|
9401
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
9569
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9402
9570
|
* @summary Get payment transactions
|
|
9403
9571
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9404
9572
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9405
9573
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9406
|
-
* @param {number} [
|
|
9407
|
-
* @param {number} [
|
|
9574
|
+
* @param {number} [page] Page number (default: 1)
|
|
9575
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9576
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9577
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9578
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
9579
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9408
9580
|
* @param {*} [options] Override http request option.
|
|
9409
9581
|
* @throws {RequiredError}
|
|
9410
9582
|
*/
|
|
9411
|
-
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9412
|
-
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9583
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9584
|
+
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9413
9585
|
},
|
|
9414
9586
|
/**
|
|
9415
9587
|
* Generates receipts for all completed payments without receipts in the organization
|
|
@@ -9431,15 +9603,17 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9431
9603
|
return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
9432
9604
|
},
|
|
9433
9605
|
/**
|
|
9434
|
-
* Retrieves a paginated list of receipts for the organization
|
|
9606
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9435
9607
|
* @summary List receipts
|
|
9436
9608
|
* @param {number} [page] Page number (default: 1)
|
|
9437
9609
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
9610
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
9611
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9438
9612
|
* @param {*} [options] Override http request option.
|
|
9439
9613
|
* @throws {RequiredError}
|
|
9440
9614
|
*/
|
|
9441
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9442
|
-
return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
|
|
9615
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
9616
|
+
return localVarFp.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9443
9617
|
},
|
|
9444
9618
|
/**
|
|
9445
9619
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
@@ -9574,49 +9748,61 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9574
9748
|
return BillingDashboardApiFp(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9575
9749
|
}
|
|
9576
9750
|
/**
|
|
9577
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
9751
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9578
9752
|
* @summary Get credit ledger
|
|
9579
9753
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9580
9754
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9581
9755
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9582
|
-
* @param {number} [
|
|
9583
|
-
* @param {number} [
|
|
9756
|
+
* @param {number} [page] Page number (default: 1)
|
|
9757
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9758
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9759
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9760
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
9761
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9584
9762
|
* @param {*} [options] Override http request option.
|
|
9585
9763
|
* @throws {RequiredError}
|
|
9586
9764
|
* @memberof BillingDashboardApi
|
|
9587
9765
|
*/
|
|
9588
|
-
adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9589
|
-
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9766
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9767
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9590
9768
|
}
|
|
9591
9769
|
/**
|
|
9592
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
9770
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9593
9771
|
* @summary Get credit purchases
|
|
9594
9772
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9595
9773
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9596
9774
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9597
|
-
* @param {number} [
|
|
9598
|
-
* @param {number} [
|
|
9775
|
+
* @param {number} [page] Page number (default: 1)
|
|
9776
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9777
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9778
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9779
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
9780
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9599
9781
|
* @param {*} [options] Override http request option.
|
|
9600
9782
|
* @throws {RequiredError}
|
|
9601
9783
|
* @memberof BillingDashboardApi
|
|
9602
9784
|
*/
|
|
9603
|
-
adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9604
|
-
return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9785
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9786
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9605
9787
|
}
|
|
9606
9788
|
/**
|
|
9607
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
9789
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9608
9790
|
* @summary Get credit transactions
|
|
9609
9791
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9610
9792
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9611
9793
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9612
|
-
* @param {number} [
|
|
9613
|
-
* @param {number} [
|
|
9794
|
+
* @param {number} [page] Page number (default: 1)
|
|
9795
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9796
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9797
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9798
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
9799
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9614
9800
|
* @param {*} [options] Override http request option.
|
|
9615
9801
|
* @throws {RequiredError}
|
|
9616
9802
|
* @memberof BillingDashboardApi
|
|
9617
9803
|
*/
|
|
9618
|
-
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9619
|
-
return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9804
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9805
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9620
9806
|
}
|
|
9621
9807
|
/**
|
|
9622
9808
|
* Automatically generates invoices for all completed payments without invoices
|
|
@@ -9651,20 +9837,24 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9651
9837
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
9652
9838
|
}
|
|
9653
9839
|
/**
|
|
9654
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
9840
|
+
* 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.
|
|
9655
9841
|
* @summary Get invoices
|
|
9656
9842
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9657
9843
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
9658
9844
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9659
9845
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9846
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
9660
9847
|
* @param {number} [page] Page number (default: 1)
|
|
9661
|
-
* @param {number} [
|
|
9848
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
9849
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
9850
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
9851
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9662
9852
|
* @param {*} [options] Override http request option.
|
|
9663
9853
|
* @throws {RequiredError}
|
|
9664
9854
|
* @memberof BillingDashboardApi
|
|
9665
9855
|
*/
|
|
9666
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
9667
|
-
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
9856
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
|
|
9857
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9668
9858
|
}
|
|
9669
9859
|
/**
|
|
9670
9860
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -9724,19 +9914,26 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9724
9914
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9725
9915
|
}
|
|
9726
9916
|
/**
|
|
9727
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
9917
|
+
* 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.
|
|
9728
9918
|
* @summary Get orders
|
|
9729
9919
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9730
9920
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9731
9921
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9732
9922
|
* @param {number} [page] Page number (default: 1)
|
|
9733
9923
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9924
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9925
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
9926
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9927
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9928
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9929
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9930
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
9734
9931
|
* @param {*} [options] Override http request option.
|
|
9735
9932
|
* @throws {RequiredError}
|
|
9736
9933
|
* @memberof BillingDashboardApi
|
|
9737
9934
|
*/
|
|
9738
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
9739
|
-
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
9935
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9936
|
+
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
|
|
9740
9937
|
}
|
|
9741
9938
|
/**
|
|
9742
9939
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -9798,19 +9995,23 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9798
9995
|
return BillingDashboardApiFp(this.configuration).adminBillingOverviewNewGet(options).then((request) => request(this.axios, this.basePath));
|
|
9799
9996
|
}
|
|
9800
9997
|
/**
|
|
9801
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
9998
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9802
9999
|
* @summary Get payment transactions
|
|
9803
10000
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9804
10001
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9805
10002
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9806
|
-
* @param {number} [
|
|
9807
|
-
* @param {number} [
|
|
10003
|
+
* @param {number} [page] Page number (default: 1)
|
|
10004
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
10005
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
10006
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
10007
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
10008
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9808
10009
|
* @param {*} [options] Override http request option.
|
|
9809
10010
|
* @throws {RequiredError}
|
|
9810
10011
|
* @memberof BillingDashboardApi
|
|
9811
10012
|
*/
|
|
9812
|
-
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9813
|
-
return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
10013
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
10014
|
+
return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9814
10015
|
}
|
|
9815
10016
|
/**
|
|
9816
10017
|
* Generates receipts for all completed payments without receipts in the organization
|
|
@@ -9834,16 +10035,18 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9834
10035
|
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
9835
10036
|
}
|
|
9836
10037
|
/**
|
|
9837
|
-
* Retrieves a paginated list of receipts for the organization
|
|
10038
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9838
10039
|
* @summary List receipts
|
|
9839
10040
|
* @param {number} [page] Page number (default: 1)
|
|
9840
10041
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
10042
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
10043
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9841
10044
|
* @param {*} [options] Override http request option.
|
|
9842
10045
|
* @throws {RequiredError}
|
|
9843
10046
|
* @memberof BillingDashboardApi
|
|
9844
10047
|
*/
|
|
9845
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9846
|
-
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
10048
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
10049
|
+
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9847
10050
|
}
|
|
9848
10051
|
/**
|
|
9849
10052
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|