@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/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);
|
|
@@ -7826,10 +7874,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7826
7874
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7827
7875
|
* @param {number} [page] Page number (default: 1)
|
|
7828
7876
|
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
7877
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
7878
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
7829
7879
|
* @param {*} [options] Override http request option.
|
|
7830
7880
|
* @throws {RequiredError}
|
|
7831
7881
|
*/
|
|
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 = {}) {
|
|
7882
|
+
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 = {}) {
|
|
7833
7883
|
const localVarPath = `/admin/billing/invoices`;
|
|
7834
7884
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7835
7885
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7860,6 +7910,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7860
7910
|
if (limit !== undefined) {
|
|
7861
7911
|
localVarQueryParameter['limit'] = limit;
|
|
7862
7912
|
}
|
|
7913
|
+
if (sortBy !== undefined) {
|
|
7914
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
7915
|
+
}
|
|
7916
|
+
if (sortOrder !== undefined) {
|
|
7917
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
7918
|
+
}
|
|
7863
7919
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7864
7920
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7865
7921
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8039,10 +8095,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8039
8095
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8040
8096
|
* @param {number} [page] Page number (default: 1)
|
|
8041
8097
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8098
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
8099
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8100
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
8101
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
8102
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
8103
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
8042
8104
|
* @param {*} [options] Override http request option.
|
|
8043
8105
|
* @throws {RequiredError}
|
|
8044
8106
|
*/
|
|
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 = {}) {
|
|
8107
|
+
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 = {}) {
|
|
8046
8108
|
const localVarPath = `/admin/billing/orders`;
|
|
8047
8109
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8048
8110
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8070,6 +8132,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8070
8132
|
if (pageSize !== undefined) {
|
|
8071
8133
|
localVarQueryParameter['page_size'] = pageSize;
|
|
8072
8134
|
}
|
|
8135
|
+
if (sortBy !== undefined) {
|
|
8136
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8137
|
+
}
|
|
8138
|
+
if (sortOrder !== undefined) {
|
|
8139
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8140
|
+
}
|
|
8141
|
+
if (search !== undefined) {
|
|
8142
|
+
localVarQueryParameter['search'] = search;
|
|
8143
|
+
}
|
|
8144
|
+
if (status !== undefined) {
|
|
8145
|
+
localVarQueryParameter['status'] = status;
|
|
8146
|
+
}
|
|
8147
|
+
if (gateway !== undefined) {
|
|
8148
|
+
localVarQueryParameter['gateway'] = gateway;
|
|
8149
|
+
}
|
|
8150
|
+
if (paymentType !== undefined) {
|
|
8151
|
+
localVarQueryParameter['payment_type'] = paymentType;
|
|
8152
|
+
}
|
|
8073
8153
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8074
8154
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8075
8155
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8250,17 +8330,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8250
8330
|
};
|
|
8251
8331
|
}),
|
|
8252
8332
|
/**
|
|
8253
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
8333
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8254
8334
|
* @summary Get payment transactions
|
|
8255
8335
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8256
8336
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8257
8337
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8258
|
-
* @param {number} [
|
|
8259
|
-
* @param {number} [
|
|
8338
|
+
* @param {number} [page] Page number (default: 1)
|
|
8339
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8340
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8341
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8342
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
8343
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8260
8344
|
* @param {*} [options] Override http request option.
|
|
8261
8345
|
* @throws {RequiredError}
|
|
8262
8346
|
*/
|
|
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 = {}) {
|
|
8347
|
+
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
8348
|
const localVarPath = `/admin/billing/payment-transactions`;
|
|
8265
8349
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8266
8350
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8282,12 +8366,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8282
8366
|
if (endDate !== undefined) {
|
|
8283
8367
|
localVarQueryParameter['end_date'] = endDate;
|
|
8284
8368
|
}
|
|
8369
|
+
if (page !== undefined) {
|
|
8370
|
+
localVarQueryParameter['page'] = page;
|
|
8371
|
+
}
|
|
8372
|
+
if (pageSize !== undefined) {
|
|
8373
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
8374
|
+
}
|
|
8285
8375
|
if (limit !== undefined) {
|
|
8286
8376
|
localVarQueryParameter['limit'] = limit;
|
|
8287
8377
|
}
|
|
8288
8378
|
if (offset !== undefined) {
|
|
8289
8379
|
localVarQueryParameter['offset'] = offset;
|
|
8290
8380
|
}
|
|
8381
|
+
if (sortBy !== undefined) {
|
|
8382
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8383
|
+
}
|
|
8384
|
+
if (sortOrder !== undefined) {
|
|
8385
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8386
|
+
}
|
|
8291
8387
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8292
8388
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8293
8389
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8355,14 +8451,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8355
8451
|
};
|
|
8356
8452
|
}),
|
|
8357
8453
|
/**
|
|
8358
|
-
* Retrieves a paginated list of receipts for the organization
|
|
8454
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
8359
8455
|
* @summary List receipts
|
|
8360
8456
|
* @param {number} [page] Page number (default: 1)
|
|
8361
8457
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
8458
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
8459
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8362
8460
|
* @param {*} [options] Override http request option.
|
|
8363
8461
|
* @throws {RequiredError}
|
|
8364
8462
|
*/
|
|
8365
|
-
adminBillingReceiptsGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
|
|
8463
|
+
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
8464
|
const localVarPath = `/admin/billing/receipts`;
|
|
8367
8465
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8368
8466
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8381,6 +8479,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
8381
8479
|
if (pageSize !== undefined) {
|
|
8382
8480
|
localVarQueryParameter['page_size'] = pageSize;
|
|
8383
8481
|
}
|
|
8482
|
+
if (sortBy !== undefined) {
|
|
8483
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
8484
|
+
}
|
|
8485
|
+
if (sortOrder !== undefined) {
|
|
8486
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
8487
|
+
}
|
|
8384
8488
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8385
8489
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8386
8490
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -8660,60 +8764,72 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8660
8764
|
});
|
|
8661
8765
|
},
|
|
8662
8766
|
/**
|
|
8663
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
8767
|
+
* 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
8768
|
* @summary Get credit ledger
|
|
8665
8769
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8666
8770
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8667
8771
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8668
|
-
* @param {number} [
|
|
8669
|
-
* @param {number} [
|
|
8772
|
+
* @param {number} [page] Page number (default: 1)
|
|
8773
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8774
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8775
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8776
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
8777
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8670
8778
|
* @param {*} [options] Override http request option.
|
|
8671
8779
|
* @throws {RequiredError}
|
|
8672
8780
|
*/
|
|
8673
|
-
adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8781
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8674
8782
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8675
8783
|
var _a, _b, _c;
|
|
8676
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options);
|
|
8784
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8677
8785
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8678
8786
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8679
8787
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8680
8788
|
});
|
|
8681
8789
|
},
|
|
8682
8790
|
/**
|
|
8683
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
8791
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8684
8792
|
* @summary Get credit purchases
|
|
8685
8793
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8686
8794
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8687
8795
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8688
|
-
* @param {number} [
|
|
8689
|
-
* @param {number} [
|
|
8796
|
+
* @param {number} [page] Page number (default: 1)
|
|
8797
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8798
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8799
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8800
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
8801
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8690
8802
|
* @param {*} [options] Override http request option.
|
|
8691
8803
|
* @throws {RequiredError}
|
|
8692
8804
|
*/
|
|
8693
|
-
adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8805
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8694
8806
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8695
8807
|
var _a, _b, _c;
|
|
8696
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options);
|
|
8808
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8697
8809
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8698
8810
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditPurchasesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8699
8811
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8700
8812
|
});
|
|
8701
8813
|
},
|
|
8702
8814
|
/**
|
|
8703
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
8815
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8704
8816
|
* @summary Get credit transactions
|
|
8705
8817
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8706
8818
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8707
8819
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8708
|
-
* @param {number} [
|
|
8709
|
-
* @param {number} [
|
|
8820
|
+
* @param {number} [page] Page number (default: 1)
|
|
8821
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8822
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
8823
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
8824
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
8825
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8710
8826
|
* @param {*} [options] Override http request option.
|
|
8711
8827
|
* @throws {RequiredError}
|
|
8712
8828
|
*/
|
|
8713
|
-
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8829
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8714
8830
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8715
8831
|
var _a, _b, _c;
|
|
8716
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options);
|
|
8832
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8717
8833
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8718
8834
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8719
8835
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8775,13 +8891,15 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8775
8891
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8776
8892
|
* @param {number} [page] Page number (default: 1)
|
|
8777
8893
|
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
8894
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
8895
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8778
8896
|
* @param {*} [options] Override http request option.
|
|
8779
8897
|
* @throws {RequiredError}
|
|
8780
8898
|
*/
|
|
8781
|
-
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
8899
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
|
|
8782
8900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8783
8901
|
var _a, _b, _c;
|
|
8784
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
|
|
8902
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options);
|
|
8785
8903
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8786
8904
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8787
8905
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8877,13 +8995,19 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8877
8995
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8878
8996
|
* @param {number} [page] Page number (default: 1)
|
|
8879
8997
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
8998
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
8999
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9000
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9001
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9002
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9003
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
8880
9004
|
* @param {*} [options] Override http request option.
|
|
8881
9005
|
* @throws {RequiredError}
|
|
8882
9006
|
*/
|
|
8883
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
9007
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
8884
9008
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8885
9009
|
var _a, _b, _c;
|
|
8886
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options);
|
|
9010
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options);
|
|
8887
9011
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8888
9012
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8889
9013
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8974,20 +9098,24 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
8974
9098
|
});
|
|
8975
9099
|
},
|
|
8976
9100
|
/**
|
|
8977
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
9101
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
8978
9102
|
* @summary Get payment transactions
|
|
8979
9103
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
8980
9104
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8981
9105
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8982
|
-
* @param {number} [
|
|
8983
|
-
* @param {number} [
|
|
9106
|
+
* @param {number} [page] Page number (default: 1)
|
|
9107
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9108
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9109
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9110
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
9111
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
8984
9112
|
* @param {*} [options] Override http request option.
|
|
8985
9113
|
* @throws {RequiredError}
|
|
8986
9114
|
*/
|
|
8987
|
-
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9115
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
8988
9116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8989
9117
|
var _a, _b, _c;
|
|
8990
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options);
|
|
9118
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
8991
9119
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8992
9120
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8993
9121
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9025,17 +9153,19 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
9025
9153
|
});
|
|
9026
9154
|
},
|
|
9027
9155
|
/**
|
|
9028
|
-
* Retrieves a paginated list of receipts for the organization
|
|
9156
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9029
9157
|
* @summary List receipts
|
|
9030
9158
|
* @param {number} [page] Page number (default: 1)
|
|
9031
9159
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
9160
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
9161
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9032
9162
|
* @param {*} [options] Override http request option.
|
|
9033
9163
|
* @throws {RequiredError}
|
|
9034
9164
|
*/
|
|
9035
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9165
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
9036
9166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9037
9167
|
var _a, _b, _c;
|
|
9038
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
|
|
9168
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options);
|
|
9039
9169
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9040
9170
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9041
9171
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9192,46 +9322,58 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9192
9322
|
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
9193
9323
|
},
|
|
9194
9324
|
/**
|
|
9195
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
9325
|
+
* 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
9326
|
* @summary Get credit ledger
|
|
9197
9327
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9198
9328
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9199
9329
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9200
|
-
* @param {number} [
|
|
9201
|
-
* @param {number} [
|
|
9330
|
+
* @param {number} [page] Page number (default: 1)
|
|
9331
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9332
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9333
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9334
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
9335
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9202
9336
|
* @param {*} [options] Override http request option.
|
|
9203
9337
|
* @throws {RequiredError}
|
|
9204
9338
|
*/
|
|
9205
|
-
adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9206
|
-
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9339
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9340
|
+
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9207
9341
|
},
|
|
9208
9342
|
/**
|
|
9209
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
9343
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9210
9344
|
* @summary Get credit purchases
|
|
9211
9345
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9212
9346
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9213
9347
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9214
|
-
* @param {number} [
|
|
9215
|
-
* @param {number} [
|
|
9348
|
+
* @param {number} [page] Page number (default: 1)
|
|
9349
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9350
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9351
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9352
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
9353
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9216
9354
|
* @param {*} [options] Override http request option.
|
|
9217
9355
|
* @throws {RequiredError}
|
|
9218
9356
|
*/
|
|
9219
|
-
adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9220
|
-
return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9357
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9358
|
+
return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9221
9359
|
},
|
|
9222
9360
|
/**
|
|
9223
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
9361
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9224
9362
|
* @summary Get credit transactions
|
|
9225
9363
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9226
9364
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9227
9365
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9228
|
-
* @param {number} [
|
|
9229
|
-
* @param {number} [
|
|
9366
|
+
* @param {number} [page] Page number (default: 1)
|
|
9367
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9368
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9369
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9370
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
9371
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9230
9372
|
* @param {*} [options] Override http request option.
|
|
9231
9373
|
* @throws {RequiredError}
|
|
9232
9374
|
*/
|
|
9233
|
-
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9234
|
-
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9375
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9376
|
+
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9235
9377
|
},
|
|
9236
9378
|
/**
|
|
9237
9379
|
* Automatically generates invoices for all completed payments without invoices
|
|
@@ -9271,11 +9413,13 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9271
9413
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9272
9414
|
* @param {number} [page] Page number (default: 1)
|
|
9273
9415
|
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
9416
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
9417
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9274
9418
|
* @param {*} [options] Override http request option.
|
|
9275
9419
|
* @throws {RequiredError}
|
|
9276
9420
|
*/
|
|
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));
|
|
9421
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
|
|
9422
|
+
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9279
9423
|
},
|
|
9280
9424
|
/**
|
|
9281
9425
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -9337,11 +9481,17 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9337
9481
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9338
9482
|
* @param {number} [page] Page number (default: 1)
|
|
9339
9483
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9484
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
9485
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9486
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9487
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9488
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9489
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
9340
9490
|
* @param {*} [options] Override http request option.
|
|
9341
9491
|
* @throws {RequiredError}
|
|
9342
9492
|
*/
|
|
9343
|
-
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
|
|
9344
|
-
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
|
|
9493
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9494
|
+
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
|
|
9345
9495
|
},
|
|
9346
9496
|
/**
|
|
9347
9497
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -9398,18 +9548,22 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9398
9548
|
return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
|
|
9399
9549
|
},
|
|
9400
9550
|
/**
|
|
9401
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
9551
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9402
9552
|
* @summary Get payment transactions
|
|
9403
9553
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9404
9554
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9405
9555
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9406
|
-
* @param {number} [
|
|
9407
|
-
* @param {number} [
|
|
9556
|
+
* @param {number} [page] Page number (default: 1)
|
|
9557
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9558
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9559
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9560
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
9561
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9408
9562
|
* @param {*} [options] Override http request option.
|
|
9409
9563
|
* @throws {RequiredError}
|
|
9410
9564
|
*/
|
|
9411
|
-
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
9412
|
-
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
9565
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9566
|
+
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9413
9567
|
},
|
|
9414
9568
|
/**
|
|
9415
9569
|
* Generates receipts for all completed payments without receipts in the organization
|
|
@@ -9431,15 +9585,17 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
9431
9585
|
return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
9432
9586
|
},
|
|
9433
9587
|
/**
|
|
9434
|
-
* Retrieves a paginated list of receipts for the organization
|
|
9588
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9435
9589
|
* @summary List receipts
|
|
9436
9590
|
* @param {number} [page] Page number (default: 1)
|
|
9437
9591
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
9592
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
9593
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9438
9594
|
* @param {*} [options] Override http request option.
|
|
9439
9595
|
* @throws {RequiredError}
|
|
9440
9596
|
*/
|
|
9441
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9442
|
-
return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
|
|
9597
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
9598
|
+
return localVarFp.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
9443
9599
|
},
|
|
9444
9600
|
/**
|
|
9445
9601
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
@@ -9574,49 +9730,61 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9574
9730
|
return BillingDashboardApiFp(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9575
9731
|
}
|
|
9576
9732
|
/**
|
|
9577
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
9733
|
+
* 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
9734
|
* @summary Get credit ledger
|
|
9579
9735
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9580
9736
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9581
9737
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9582
|
-
* @param {number} [
|
|
9583
|
-
* @param {number} [
|
|
9738
|
+
* @param {number} [page] Page number (default: 1)
|
|
9739
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9740
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9741
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9742
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
9743
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9584
9744
|
* @param {*} [options] Override http request option.
|
|
9585
9745
|
* @throws {RequiredError}
|
|
9586
9746
|
* @memberof BillingDashboardApi
|
|
9587
9747
|
*/
|
|
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));
|
|
9748
|
+
adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9749
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9590
9750
|
}
|
|
9591
9751
|
/**
|
|
9592
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
9752
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9593
9753
|
* @summary Get credit purchases
|
|
9594
9754
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9595
9755
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9596
9756
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9597
|
-
* @param {number} [
|
|
9598
|
-
* @param {number} [
|
|
9757
|
+
* @param {number} [page] Page number (default: 1)
|
|
9758
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9759
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9760
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9761
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
9762
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9599
9763
|
* @param {*} [options] Override http request option.
|
|
9600
9764
|
* @throws {RequiredError}
|
|
9601
9765
|
* @memberof BillingDashboardApi
|
|
9602
9766
|
*/
|
|
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));
|
|
9767
|
+
adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9768
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9605
9769
|
}
|
|
9606
9770
|
/**
|
|
9607
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
9771
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9608
9772
|
* @summary Get credit transactions
|
|
9609
9773
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9610
9774
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9611
9775
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9612
|
-
* @param {number} [
|
|
9613
|
-
* @param {number} [
|
|
9776
|
+
* @param {number} [page] Page number (default: 1)
|
|
9777
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9778
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9779
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9780
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
9781
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9614
9782
|
* @param {*} [options] Override http request option.
|
|
9615
9783
|
* @throws {RequiredError}
|
|
9616
9784
|
* @memberof BillingDashboardApi
|
|
9617
9785
|
*/
|
|
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));
|
|
9786
|
+
adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9787
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9620
9788
|
}
|
|
9621
9789
|
/**
|
|
9622
9790
|
* Automatically generates invoices for all completed payments without invoices
|
|
@@ -9659,12 +9827,14 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9659
9827
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9660
9828
|
* @param {number} [page] Page number (default: 1)
|
|
9661
9829
|
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
9830
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
9831
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9662
9832
|
* @param {*} [options] Override http request option.
|
|
9663
9833
|
* @throws {RequiredError}
|
|
9664
9834
|
* @memberof BillingDashboardApi
|
|
9665
9835
|
*/
|
|
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));
|
|
9836
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options) {
|
|
9837
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9668
9838
|
}
|
|
9669
9839
|
/**
|
|
9670
9840
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -9731,12 +9901,18 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9731
9901
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9732
9902
|
* @param {number} [page] Page number (default: 1)
|
|
9733
9903
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9904
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
9905
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9906
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
9907
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
9908
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
9909
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
9734
9910
|
* @param {*} [options] Override http request option.
|
|
9735
9911
|
* @throws {RequiredError}
|
|
9736
9912
|
* @memberof BillingDashboardApi
|
|
9737
9913
|
*/
|
|
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));
|
|
9914
|
+
adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options) {
|
|
9915
|
+
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
|
|
9740
9916
|
}
|
|
9741
9917
|
/**
|
|
9742
9918
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -9798,19 +9974,23 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9798
9974
|
return BillingDashboardApiFp(this.configuration).adminBillingOverviewNewGet(options).then((request) => request(this.axios, this.basePath));
|
|
9799
9975
|
}
|
|
9800
9976
|
/**
|
|
9801
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
9977
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
9802
9978
|
* @summary Get payment transactions
|
|
9803
9979
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
9804
9980
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
9805
9981
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
9806
|
-
* @param {number} [
|
|
9807
|
-
* @param {number} [
|
|
9982
|
+
* @param {number} [page] Page number (default: 1)
|
|
9983
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
9984
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
9985
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
9986
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
9987
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9808
9988
|
* @param {*} [options] Override http request option.
|
|
9809
9989
|
* @throws {RequiredError}
|
|
9810
9990
|
* @memberof BillingDashboardApi
|
|
9811
9991
|
*/
|
|
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));
|
|
9992
|
+
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
|
|
9993
|
+
return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9814
9994
|
}
|
|
9815
9995
|
/**
|
|
9816
9996
|
* Generates receipts for all completed payments without receipts in the organization
|
|
@@ -9834,16 +10014,18 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
9834
10014
|
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
9835
10015
|
}
|
|
9836
10016
|
/**
|
|
9837
|
-
* Retrieves a paginated list of receipts for the organization
|
|
10017
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
9838
10018
|
* @summary List receipts
|
|
9839
10019
|
* @param {number} [page] Page number (default: 1)
|
|
9840
10020
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
10021
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
10022
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
9841
10023
|
* @param {*} [options] Override http request option.
|
|
9842
10024
|
* @throws {RequiredError}
|
|
9843
10025
|
* @memberof BillingDashboardApi
|
|
9844
10026
|
*/
|
|
9845
|
-
adminBillingReceiptsGet(page, pageSize, options) {
|
|
9846
|
-
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
10027
|
+
adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
|
|
10028
|
+
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
9847
10029
|
}
|
|
9848
10030
|
/**
|
|
9849
10031
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|