@seekora-ai/admin-api 1.1.9 → 1.1.10
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 +311 -103
- package/dist/api.d.ts +186 -82
- package/dist/api.js +283 -101
- package/dist/esm/api.d.ts +186 -82
- package/dist/esm/api.js +283 -101
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.10.tgz +0 -0
- package/seekora-ai-admin-api-1.1.9.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -7628,17 +7628,21 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7628
7628
|
};
|
|
7629
7629
|
}),
|
|
7630
7630
|
/**
|
|
7631
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
7631
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
7632
7632
|
* @summary Get credit ledger
|
|
7633
7633
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7634
7634
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7635
7635
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7636
|
-
* @param {number} [
|
|
7637
|
-
* @param {number} [
|
|
7636
|
+
* @param {number} [page] Page number (default: 1)
|
|
7637
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7638
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7639
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7640
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
7641
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7638
7642
|
* @param {*} [options] Override http request option.
|
|
7639
7643
|
* @throws {RequiredError}
|
|
7640
7644
|
*/
|
|
7641
|
-
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 = {}) {
|
|
7645
|
+
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 = {}) {
|
|
7642
7646
|
const localVarPath = `/admin/billing/credit-ledger`;
|
|
7643
7647
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7644
7648
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7660,12 +7664,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7660
7664
|
if (endDate !== undefined) {
|
|
7661
7665
|
localVarQueryParameter['end_date'] = endDate;
|
|
7662
7666
|
}
|
|
7667
|
+
if (page !== undefined) {
|
|
7668
|
+
localVarQueryParameter['page'] = page;
|
|
7669
|
+
}
|
|
7670
|
+
if (pageSize !== undefined) {
|
|
7671
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7672
|
+
}
|
|
7663
7673
|
if (limit !== undefined) {
|
|
7664
7674
|
localVarQueryParameter['limit'] = limit;
|
|
7665
7675
|
}
|
|
7666
7676
|
if (offset !== undefined) {
|
|
7667
7677
|
localVarQueryParameter['offset'] = offset;
|
|
7668
7678
|
}
|
|
7679
|
+
if (sortBy !== undefined) {
|
|
7680
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7681
|
+
}
|
|
7682
|
+
if (sortOrder !== undefined) {
|
|
7683
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7684
|
+
}
|
|
7669
7685
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7670
7686
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7671
7687
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7675,17 +7691,21 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7675
7691
|
};
|
|
7676
7692
|
}),
|
|
7677
7693
|
/**
|
|
7678
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
7694
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
7679
7695
|
* @summary Get credit purchases
|
|
7680
7696
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7681
7697
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7682
7698
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7683
|
-
* @param {number} [
|
|
7684
|
-
* @param {number} [
|
|
7699
|
+
* @param {number} [page] Page number (default: 1)
|
|
7700
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7701
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7702
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7703
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
7704
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7685
7705
|
* @param {*} [options] Override http request option.
|
|
7686
7706
|
* @throws {RequiredError}
|
|
7687
7707
|
*/
|
|
7688
|
-
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 = {}) {
|
|
7708
|
+
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 = {}) {
|
|
7689
7709
|
const localVarPath = `/admin/billing/credit-purchases`;
|
|
7690
7710
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7691
7711
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7707,12 +7727,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7707
7727
|
if (endDate !== undefined) {
|
|
7708
7728
|
localVarQueryParameter['end_date'] = endDate;
|
|
7709
7729
|
}
|
|
7730
|
+
if (page !== undefined) {
|
|
7731
|
+
localVarQueryParameter['page'] = page;
|
|
7732
|
+
}
|
|
7733
|
+
if (pageSize !== undefined) {
|
|
7734
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7735
|
+
}
|
|
7710
7736
|
if (limit !== undefined) {
|
|
7711
7737
|
localVarQueryParameter['limit'] = limit;
|
|
7712
7738
|
}
|
|
7713
7739
|
if (offset !== undefined) {
|
|
7714
7740
|
localVarQueryParameter['offset'] = offset;
|
|
7715
7741
|
}
|
|
7742
|
+
if (sortBy !== undefined) {
|
|
7743
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7744
|
+
}
|
|
7745
|
+
if (sortOrder !== undefined) {
|
|
7746
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7747
|
+
}
|
|
7716
7748
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7717
7749
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7718
7750
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7722,17 +7754,21 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7722
7754
|
};
|
|
7723
7755
|
}),
|
|
7724
7756
|
/**
|
|
7725
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
7757
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
7726
7758
|
* @summary Get credit transactions
|
|
7727
7759
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7728
7760
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7729
7761
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7730
|
-
* @param {number} [
|
|
7731
|
-
* @param {number} [
|
|
7762
|
+
* @param {number} [page] Page number (default: 1)
|
|
7763
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
7764
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
7765
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7766
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
7767
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7732
7768
|
* @param {*} [options] Override http request option.
|
|
7733
7769
|
* @throws {RequiredError}
|
|
7734
7770
|
*/
|
|
7735
|
-
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 = {}) {
|
|
7771
|
+
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 = {}) {
|
|
7736
7772
|
const localVarPath = `/admin/billing/credit-transactions`;
|
|
7737
7773
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7738
7774
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7754,12 +7790,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7754
7790
|
if (endDate !== undefined) {
|
|
7755
7791
|
localVarQueryParameter['end_date'] = endDate;
|
|
7756
7792
|
}
|
|
7793
|
+
if (page !== undefined) {
|
|
7794
|
+
localVarQueryParameter['page'] = page;
|
|
7795
|
+
}
|
|
7796
|
+
if (pageSize !== undefined) {
|
|
7797
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7798
|
+
}
|
|
7757
7799
|
if (limit !== undefined) {
|
|
7758
7800
|
localVarQueryParameter['limit'] = limit;
|
|
7759
7801
|
}
|
|
7760
7802
|
if (offset !== undefined) {
|
|
7761
7803
|
localVarQueryParameter['offset'] = offset;
|
|
7762
7804
|
}
|
|
7805
|
+
if (sortBy !== undefined) {
|
|
7806
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7807
|
+
}
|
|
7808
|
+
if (sortOrder !== undefined) {
|
|
7809
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7810
|
+
}
|
|
7763
7811
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7764
7812
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7765
7813
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7866,10 +7914,12 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7866
7914
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7867
7915
|
* @param {number} [page] Page number (default: 1)
|
|
7868
7916
|
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
7917
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
7918
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7869
7919
|
* @param {*} [options] Override http request option.
|
|
7870
7920
|
* @throws {RequiredError}
|
|
7871
7921
|
*/
|
|
7872
|
-
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 = {}) {
|
|
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 = {}) {
|
|
7873
7923
|
const localVarPath = `/admin/billing/invoices`;
|
|
7874
7924
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7875
7925
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7900,6 +7950,12 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7900
7950
|
if (limit !== undefined) {
|
|
7901
7951
|
localVarQueryParameter['limit'] = limit;
|
|
7902
7952
|
}
|
|
7953
|
+
if (sortBy !== undefined) {
|
|
7954
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7955
|
+
}
|
|
7956
|
+
if (sortOrder !== undefined) {
|
|
7957
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7958
|
+
}
|
|
7903
7959
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7904
7960
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7905
7961
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8079,10 +8135,16 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8079
8135
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8080
8136
|
* @param {number} [page] Page number (default: 1)
|
|
8081
8137
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8138
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
8139
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8140
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
8141
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
8142
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
8143
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
8082
8144
|
* @param {*} [options] Override http request option.
|
|
8083
8145
|
* @throws {RequiredError}
|
|
8084
8146
|
*/
|
|
8085
|
-
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 = {}) {
|
|
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 = {}) {
|
|
8086
8148
|
const localVarPath = `/admin/billing/orders`;
|
|
8087
8149
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8088
8150
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8110,6 +8172,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8110
8172
|
if (pageSize !== undefined) {
|
|
8111
8173
|
localVarQueryParameter['page_size'] = pageSize;
|
|
8112
8174
|
}
|
|
8175
|
+
if (sortBy !== undefined) {
|
|
8176
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8177
|
+
}
|
|
8178
|
+
if (sortOrder !== undefined) {
|
|
8179
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8180
|
+
}
|
|
8181
|
+
if (search !== undefined) {
|
|
8182
|
+
localVarQueryParameter['search'] = search;
|
|
8183
|
+
}
|
|
8184
|
+
if (status !== undefined) {
|
|
8185
|
+
localVarQueryParameter['status'] = status;
|
|
8186
|
+
}
|
|
8187
|
+
if (gateway !== undefined) {
|
|
8188
|
+
localVarQueryParameter['gateway'] = gateway;
|
|
8189
|
+
}
|
|
8190
|
+
if (paymentType !== undefined) {
|
|
8191
|
+
localVarQueryParameter['payment_type'] = paymentType;
|
|
8192
|
+
}
|
|
8113
8193
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8114
8194
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8115
8195
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8290,17 +8370,21 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8290
8370
|
};
|
|
8291
8371
|
}),
|
|
8292
8372
|
/**
|
|
8293
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
8373
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8294
8374
|
* @summary Get payment transactions
|
|
8295
8375
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8296
8376
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8297
8377
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8298
|
-
* @param {number} [
|
|
8299
|
-
* @param {number} [
|
|
8378
|
+
* @param {number} [page] Page number (default: 1)
|
|
8379
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8380
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8381
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8382
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
8383
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8300
8384
|
* @param {*} [options] Override http request option.
|
|
8301
8385
|
* @throws {RequiredError}
|
|
8302
8386
|
*/
|
|
8303
|
-
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 = {}) {
|
|
8387
|
+
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 = {}) {
|
|
8304
8388
|
const localVarPath = `/admin/billing/payment-transactions`;
|
|
8305
8389
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8306
8390
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8322,12 +8406,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8322
8406
|
if (endDate !== undefined) {
|
|
8323
8407
|
localVarQueryParameter['end_date'] = endDate;
|
|
8324
8408
|
}
|
|
8409
|
+
if (page !== undefined) {
|
|
8410
|
+
localVarQueryParameter['page'] = page;
|
|
8411
|
+
}
|
|
8412
|
+
if (pageSize !== undefined) {
|
|
8413
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
8414
|
+
}
|
|
8325
8415
|
if (limit !== undefined) {
|
|
8326
8416
|
localVarQueryParameter['limit'] = limit;
|
|
8327
8417
|
}
|
|
8328
8418
|
if (offset !== undefined) {
|
|
8329
8419
|
localVarQueryParameter['offset'] = offset;
|
|
8330
8420
|
}
|
|
8421
|
+
if (sortBy !== undefined) {
|
|
8422
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8423
|
+
}
|
|
8424
|
+
if (sortOrder !== undefined) {
|
|
8425
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8426
|
+
}
|
|
8331
8427
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8332
8428
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8333
8429
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8395,14 +8491,16 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8395
8491
|
};
|
|
8396
8492
|
}),
|
|
8397
8493
|
/**
|
|
8398
|
-
* Retrieves a paginated list of receipts for the organization
|
|
8494
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
8399
8495
|
* @summary List receipts
|
|
8400
8496
|
* @param {number} [page] Page number (default: 1)
|
|
8401
8497
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
8498
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
8499
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8402
8500
|
* @param {*} [options] Override http request option.
|
|
8403
8501
|
* @throws {RequiredError}
|
|
8404
8502
|
*/
|
|
8405
|
-
adminBillingReceiptsGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
|
|
8503
|
+
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 = {}) {
|
|
8406
8504
|
const localVarPath = `/admin/billing/receipts`;
|
|
8407
8505
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8408
8506
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8421,6 +8519,12 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8421
8519
|
if (pageSize !== undefined) {
|
|
8422
8520
|
localVarQueryParameter['page_size'] = pageSize;
|
|
8423
8521
|
}
|
|
8522
|
+
if (sortBy !== undefined) {
|
|
8523
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8524
|
+
}
|
|
8525
|
+
if (sortOrder !== undefined) {
|
|
8526
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8527
|
+
}
|
|
8424
8528
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8425
8529
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8426
8530
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8701,60 +8805,72 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
8701
8805
|
});
|
|
8702
8806
|
},
|
|
8703
8807
|
/**
|
|
8704
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
8808
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8705
8809
|
* @summary Get credit ledger
|
|
8706
8810
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8707
8811
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8708
8812
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8709
|
-
* @param {number} [
|
|
8710
|
-
* @param {number} [
|
|
8813
|
+
* @param {number} [page] Page number (default: 1)
|
|
8814
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8815
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8816
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8817
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
8818
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8711
8819
|
* @param {*} [options] Override http request option.
|
|
8712
8820
|
* @throws {RequiredError}
|
|
8713
8821
|
*/
|
|
8714
|
-
adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8822
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8715
8823
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8716
8824
|
var _a, _b, _c;
|
|
8717
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options);
|
|
8825
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8718
8826
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8719
8827
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8720
8828
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8721
8829
|
});
|
|
8722
8830
|
},
|
|
8723
8831
|
/**
|
|
8724
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
8832
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8725
8833
|
* @summary Get credit purchases
|
|
8726
8834
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8727
8835
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8728
8836
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8729
|
-
* @param {number} [
|
|
8730
|
-
* @param {number} [
|
|
8837
|
+
* @param {number} [page] Page number (default: 1)
|
|
8838
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8839
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8840
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8841
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
8842
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8731
8843
|
* @param {*} [options] Override http request option.
|
|
8732
8844
|
* @throws {RequiredError}
|
|
8733
8845
|
*/
|
|
8734
|
-
adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8846
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8735
8847
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8736
8848
|
var _a, _b, _c;
|
|
8737
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options);
|
|
8849
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8738
8850
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8739
8851
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingCreditPurchasesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8740
8852
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8741
8853
|
});
|
|
8742
8854
|
},
|
|
8743
8855
|
/**
|
|
8744
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
8856
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8745
8857
|
* @summary Get credit transactions
|
|
8746
8858
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8747
8859
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8748
8860
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8749
|
-
* @param {number} [
|
|
8750
|
-
* @param {number} [
|
|
8861
|
+
* @param {number} [page] Page number (default: 1)
|
|
8862
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8863
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8864
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8865
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
8866
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8751
8867
|
* @param {*} [options] Override http request option.
|
|
8752
8868
|
* @throws {RequiredError}
|
|
8753
8869
|
*/
|
|
8754
|
-
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8870
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8755
8871
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8756
8872
|
var _a, _b, _c;
|
|
8757
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options);
|
|
8873
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8758
8874
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8759
8875
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8760
8876
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8816,13 +8932,15 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
8816
8932
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8817
8933
|
* @param {number} [page] Page number (default: 1)
|
|
8818
8934
|
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
8935
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
8936
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8819
8937
|
* @param {*} [options] Override http request option.
|
|
8820
8938
|
* @throws {RequiredError}
|
|
8821
8939
|
*/
|
|
8822
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
8940
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
|
|
8823
8941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8824
8942
|
var _a, _b, _c;
|
|
8825
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
|
|
8943
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options);
|
|
8826
8944
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8827
8945
|
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;
|
|
8828
8946
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8918,13 +9036,19 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
8918
9036
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8919
9037
|
* @param {number} [page] Page number (default: 1)
|
|
8920
9038
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9039
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
9040
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9041
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9042
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9043
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9044
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
8921
9045
|
* @param {*} [options] Override http request option.
|
|
8922
9046
|
* @throws {RequiredError}
|
|
8923
9047
|
*/
|
|
8924
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
9048
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
8925
9049
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8926
9050
|
var _a, _b, _c;
|
|
8927
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options);
|
|
9051
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options);
|
|
8928
9052
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8929
9053
|
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;
|
|
8930
9054
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9015,20 +9139,24 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
9015
9139
|
});
|
|
9016
9140
|
},
|
|
9017
9141
|
/**
|
|
9018
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
9142
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9019
9143
|
* @summary Get payment transactions
|
|
9020
9144
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9021
9145
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9022
9146
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9023
|
-
* @param {number} [
|
|
9024
|
-
* @param {number} [
|
|
9147
|
+
* @param {number} [page] Page number (default: 1)
|
|
9148
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9149
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9150
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9151
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
9152
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9025
9153
|
* @param {*} [options] Override http request option.
|
|
9026
9154
|
* @throws {RequiredError}
|
|
9027
9155
|
*/
|
|
9028
|
-
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9156
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9029
9157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9030
9158
|
var _a, _b, _c;
|
|
9031
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options);
|
|
9159
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
9032
9160
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9033
9161
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9034
9162
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9066,17 +9194,19 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
9066
9194
|
});
|
|
9067
9195
|
},
|
|
9068
9196
|
/**
|
|
9069
|
-
* Retrieves a paginated list of receipts for the organization
|
|
9197
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9070
9198
|
* @summary List receipts
|
|
9071
9199
|
* @param {number} [page] Page number (default: 1)
|
|
9072
9200
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
9201
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
9202
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9073
9203
|
* @param {*} [options] Override http request option.
|
|
9074
9204
|
* @throws {RequiredError}
|
|
9075
9205
|
*/
|
|
9076
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9206
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
9077
9207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9078
9208
|
var _a, _b, _c;
|
|
9079
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
|
|
9209
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options);
|
|
9080
9210
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9081
9211
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9082
9212
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9234,46 +9364,58 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9234
9364
|
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
9235
9365
|
},
|
|
9236
9366
|
/**
|
|
9237
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
9367
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9238
9368
|
* @summary Get credit ledger
|
|
9239
9369
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9240
9370
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9241
9371
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9242
|
-
* @param {number} [
|
|
9243
|
-
* @param {number} [
|
|
9372
|
+
* @param {number} [page] Page number (default: 1)
|
|
9373
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9374
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9375
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9376
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
9377
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9244
9378
|
* @param {*} [options] Override http request option.
|
|
9245
9379
|
* @throws {RequiredError}
|
|
9246
9380
|
*/
|
|
9247
|
-
adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9248
|
-
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9381
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9382
|
+
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9249
9383
|
},
|
|
9250
9384
|
/**
|
|
9251
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
9385
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9252
9386
|
* @summary Get credit purchases
|
|
9253
9387
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9254
9388
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9255
9389
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9256
|
-
* @param {number} [
|
|
9257
|
-
* @param {number} [
|
|
9390
|
+
* @param {number} [page] Page number (default: 1)
|
|
9391
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9392
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9393
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9394
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
9395
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9258
9396
|
* @param {*} [options] Override http request option.
|
|
9259
9397
|
* @throws {RequiredError}
|
|
9260
9398
|
*/
|
|
9261
|
-
adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9262
|
-
return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9399
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9400
|
+
return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9263
9401
|
},
|
|
9264
9402
|
/**
|
|
9265
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
9403
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9266
9404
|
* @summary Get credit transactions
|
|
9267
9405
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9268
9406
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9269
9407
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9270
|
-
* @param {number} [
|
|
9271
|
-
* @param {number} [
|
|
9408
|
+
* @param {number} [page] Page number (default: 1)
|
|
9409
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9410
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9411
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9412
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
9413
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9272
9414
|
* @param {*} [options] Override http request option.
|
|
9273
9415
|
* @throws {RequiredError}
|
|
9274
9416
|
*/
|
|
9275
|
-
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9276
|
-
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9417
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9418
|
+
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9277
9419
|
},
|
|
9278
9420
|
/**
|
|
9279
9421
|
* Automatically generates invoices for all completed payments without invoices
|
|
@@ -9313,11 +9455,13 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9313
9455
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9314
9456
|
* @param {number} [page] Page number (default: 1)
|
|
9315
9457
|
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
9458
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
9459
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9316
9460
|
* @param {*} [options] Override http request option.
|
|
9317
9461
|
* @throws {RequiredError}
|
|
9318
9462
|
*/
|
|
9319
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
9320
|
-
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(axios, basePath));
|
|
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));
|
|
9321
9465
|
},
|
|
9322
9466
|
/**
|
|
9323
9467
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -9379,11 +9523,17 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9379
9523
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9380
9524
|
* @param {number} [page] Page number (default: 1)
|
|
9381
9525
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9526
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
9527
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9528
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9529
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9530
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9531
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
9382
9532
|
* @param {*} [options] Override http request option.
|
|
9383
9533
|
* @throws {RequiredError}
|
|
9384
9534
|
*/
|
|
9385
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
9386
|
-
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
|
|
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));
|
|
9387
9537
|
},
|
|
9388
9538
|
/**
|
|
9389
9539
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -9440,18 +9590,22 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9440
9590
|
return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
|
|
9441
9591
|
},
|
|
9442
9592
|
/**
|
|
9443
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
9593
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9444
9594
|
* @summary Get payment transactions
|
|
9445
9595
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9446
9596
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9447
9597
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9448
|
-
* @param {number} [
|
|
9449
|
-
* @param {number} [
|
|
9598
|
+
* @param {number} [page] Page number (default: 1)
|
|
9599
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9600
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9601
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9602
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
9603
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9450
9604
|
* @param {*} [options] Override http request option.
|
|
9451
9605
|
* @throws {RequiredError}
|
|
9452
9606
|
*/
|
|
9453
|
-
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9454
|
-
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9607
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9608
|
+
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9455
9609
|
},
|
|
9456
9610
|
/**
|
|
9457
9611
|
* Generates receipts for all completed payments without receipts in the organization
|
|
@@ -9473,15 +9627,17 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
9473
9627
|
return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
9474
9628
|
},
|
|
9475
9629
|
/**
|
|
9476
|
-
* Retrieves a paginated list of receipts for the organization
|
|
9630
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9477
9631
|
* @summary List receipts
|
|
9478
9632
|
* @param {number} [page] Page number (default: 1)
|
|
9479
9633
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
9634
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
9635
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9480
9636
|
* @param {*} [options] Override http request option.
|
|
9481
9637
|
* @throws {RequiredError}
|
|
9482
9638
|
*/
|
|
9483
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9484
|
-
return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
|
|
9639
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
9640
|
+
return localVarFp.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9485
9641
|
},
|
|
9486
9642
|
/**
|
|
9487
9643
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
@@ -9617,49 +9773,61 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9617
9773
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9618
9774
|
}
|
|
9619
9775
|
/**
|
|
9620
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
9776
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9621
9777
|
* @summary Get credit ledger
|
|
9622
9778
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9623
9779
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9624
9780
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9625
|
-
* @param {number} [
|
|
9626
|
-
* @param {number} [
|
|
9781
|
+
* @param {number} [page] Page number (default: 1)
|
|
9782
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9783
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9784
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9785
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
9786
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9627
9787
|
* @param {*} [options] Override http request option.
|
|
9628
9788
|
* @throws {RequiredError}
|
|
9629
9789
|
* @memberof BillingDashboardApi
|
|
9630
9790
|
*/
|
|
9631
|
-
adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9632
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9791
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9792
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9633
9793
|
}
|
|
9634
9794
|
/**
|
|
9635
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
9795
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9636
9796
|
* @summary Get credit purchases
|
|
9637
9797
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9638
9798
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9639
9799
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9640
|
-
* @param {number} [
|
|
9641
|
-
* @param {number} [
|
|
9800
|
+
* @param {number} [page] Page number (default: 1)
|
|
9801
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9802
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9803
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9804
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
9805
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9642
9806
|
* @param {*} [options] Override http request option.
|
|
9643
9807
|
* @throws {RequiredError}
|
|
9644
9808
|
* @memberof BillingDashboardApi
|
|
9645
9809
|
*/
|
|
9646
|
-
adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9647
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9810
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9811
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9648
9812
|
}
|
|
9649
9813
|
/**
|
|
9650
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
9814
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9651
9815
|
* @summary Get credit transactions
|
|
9652
9816
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9653
9817
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9654
9818
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9655
|
-
* @param {number} [
|
|
9656
|
-
* @param {number} [
|
|
9819
|
+
* @param {number} [page] Page number (default: 1)
|
|
9820
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9821
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9822
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9823
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
9824
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9657
9825
|
* @param {*} [options] Override http request option.
|
|
9658
9826
|
* @throws {RequiredError}
|
|
9659
9827
|
* @memberof BillingDashboardApi
|
|
9660
9828
|
*/
|
|
9661
|
-
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9662
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9829
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9830
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9663
9831
|
}
|
|
9664
9832
|
/**
|
|
9665
9833
|
* Automatically generates invoices for all completed payments without invoices
|
|
@@ -9702,12 +9870,14 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9702
9870
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9703
9871
|
* @param {number} [page] Page number (default: 1)
|
|
9704
9872
|
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
9873
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
9874
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9705
9875
|
* @param {*} [options] Override http request option.
|
|
9706
9876
|
* @throws {RequiredError}
|
|
9707
9877
|
* @memberof BillingDashboardApi
|
|
9708
9878
|
*/
|
|
9709
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
9710
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
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));
|
|
9711
9881
|
}
|
|
9712
9882
|
/**
|
|
9713
9883
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -9774,12 +9944,18 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9774
9944
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9775
9945
|
* @param {number} [page] Page number (default: 1)
|
|
9776
9946
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9947
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
9948
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9949
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9950
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9951
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9952
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
9777
9953
|
* @param {*} [options] Override http request option.
|
|
9778
9954
|
* @throws {RequiredError}
|
|
9779
9955
|
* @memberof BillingDashboardApi
|
|
9780
9956
|
*/
|
|
9781
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
9782
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
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));
|
|
9783
9959
|
}
|
|
9784
9960
|
/**
|
|
9785
9961
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -9841,19 +10017,23 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9841
10017
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOverviewNewGet(options).then((request) => request(this.axios, this.basePath));
|
|
9842
10018
|
}
|
|
9843
10019
|
/**
|
|
9844
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
10020
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9845
10021
|
* @summary Get payment transactions
|
|
9846
10022
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9847
10023
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9848
10024
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9849
|
-
* @param {number} [
|
|
9850
|
-
* @param {number} [
|
|
10025
|
+
* @param {number} [page] Page number (default: 1)
|
|
10026
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
10027
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
10028
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
10029
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
10030
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9851
10031
|
* @param {*} [options] Override http request option.
|
|
9852
10032
|
* @throws {RequiredError}
|
|
9853
10033
|
* @memberof BillingDashboardApi
|
|
9854
10034
|
*/
|
|
9855
|
-
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9856
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
10035
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
10036
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9857
10037
|
}
|
|
9858
10038
|
/**
|
|
9859
10039
|
* Generates receipts for all completed payments without receipts in the organization
|
|
@@ -9877,16 +10057,18 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
9877
10057
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
9878
10058
|
}
|
|
9879
10059
|
/**
|
|
9880
|
-
* Retrieves a paginated list of receipts for the organization
|
|
10060
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9881
10061
|
* @summary List receipts
|
|
9882
10062
|
* @param {number} [page] Page number (default: 1)
|
|
9883
10063
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
10064
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
10065
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9884
10066
|
* @param {*} [options] Override http request option.
|
|
9885
10067
|
* @throws {RequiredError}
|
|
9886
10068
|
* @memberof BillingDashboardApi
|
|
9887
10069
|
*/
|
|
9888
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9889
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
10070
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
10071
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9890
10072
|
}
|
|
9891
10073
|
/**
|
|
9892
10074
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|