@seekora-ai/admin-api 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +347 -115
- package/dist/api.d.ts +210 -94
- package/dist/api.js +316 -113
- package/dist/esm/api.d.ts +210 -94
- package/dist/esm/api.js +316 -113
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.11.tgz +0 -0
- package/seekora-ai-admin-api-1.1.9.tgz +0 -0
package/api.ts
CHANGED
|
@@ -7740,7 +7740,7 @@ export interface DataTypesBillingAlertRequest {
|
|
|
7740
7740
|
* @type {string}
|
|
7741
7741
|
* @memberof DataTypesBillingAlertRequest
|
|
7742
7742
|
*/
|
|
7743
|
-
'alert_type'
|
|
7743
|
+
'alert_type'?: DataTypesBillingAlertRequestAlertTypeEnum;
|
|
7744
7744
|
/**
|
|
7745
7745
|
* Minutes between alerts (default: 60)
|
|
7746
7746
|
* @type {number}
|
|
@@ -7782,7 +7782,7 @@ export interface DataTypesBillingAlertRequest {
|
|
|
7782
7782
|
* @type {string}
|
|
7783
7783
|
* @memberof DataTypesBillingAlertRequest
|
|
7784
7784
|
*/
|
|
7785
|
-
'threshold_unit'
|
|
7785
|
+
'threshold_unit'?: DataTypesBillingAlertRequestThresholdUnitEnum;
|
|
7786
7786
|
/**
|
|
7787
7787
|
* Absolute threshold value (exclusive with threshold_percentage)
|
|
7788
7788
|
* @type {number}
|
|
@@ -29185,17 +29185,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29185
29185
|
};
|
|
29186
29186
|
},
|
|
29187
29187
|
/**
|
|
29188
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
29188
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
29189
29189
|
* @summary Get credit ledger
|
|
29190
29190
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
29191
29191
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
29192
29192
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
29193
|
-
* @param {number} [
|
|
29194
|
-
* @param {number} [
|
|
29193
|
+
* @param {number} [page] Page number (default: 1)
|
|
29194
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
29195
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
29196
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
29197
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
29198
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
29195
29199
|
* @param {*} [options] Override http request option.
|
|
29196
29200
|
* @throws {RequiredError}
|
|
29197
29201
|
*/
|
|
29198
|
-
adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29202
|
+
adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29199
29203
|
const localVarPath = `/admin/billing/credit-ledger`;
|
|
29200
29204
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29201
29205
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29223,6 +29227,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29223
29227
|
localVarQueryParameter['end_date'] = endDate;
|
|
29224
29228
|
}
|
|
29225
29229
|
|
|
29230
|
+
if (page !== undefined) {
|
|
29231
|
+
localVarQueryParameter['page'] = page;
|
|
29232
|
+
}
|
|
29233
|
+
|
|
29234
|
+
if (pageSize !== undefined) {
|
|
29235
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
29236
|
+
}
|
|
29237
|
+
|
|
29226
29238
|
if (limit !== undefined) {
|
|
29227
29239
|
localVarQueryParameter['limit'] = limit;
|
|
29228
29240
|
}
|
|
@@ -29231,6 +29243,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29231
29243
|
localVarQueryParameter['offset'] = offset;
|
|
29232
29244
|
}
|
|
29233
29245
|
|
|
29246
|
+
if (sortBy !== undefined) {
|
|
29247
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
29248
|
+
}
|
|
29249
|
+
|
|
29250
|
+
if (sortOrder !== undefined) {
|
|
29251
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
29252
|
+
}
|
|
29253
|
+
|
|
29234
29254
|
|
|
29235
29255
|
|
|
29236
29256
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29243,17 +29263,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29243
29263
|
};
|
|
29244
29264
|
},
|
|
29245
29265
|
/**
|
|
29246
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
29266
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
29247
29267
|
* @summary Get credit purchases
|
|
29248
29268
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
29249
29269
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
29250
29270
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
29251
|
-
* @param {number} [
|
|
29252
|
-
* @param {number} [
|
|
29271
|
+
* @param {number} [page] Page number (default: 1)
|
|
29272
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
29273
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
29274
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
29275
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
29276
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
29253
29277
|
* @param {*} [options] Override http request option.
|
|
29254
29278
|
* @throws {RequiredError}
|
|
29255
29279
|
*/
|
|
29256
|
-
adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29280
|
+
adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29257
29281
|
const localVarPath = `/admin/billing/credit-purchases`;
|
|
29258
29282
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29259
29283
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29281,6 +29305,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29281
29305
|
localVarQueryParameter['end_date'] = endDate;
|
|
29282
29306
|
}
|
|
29283
29307
|
|
|
29308
|
+
if (page !== undefined) {
|
|
29309
|
+
localVarQueryParameter['page'] = page;
|
|
29310
|
+
}
|
|
29311
|
+
|
|
29312
|
+
if (pageSize !== undefined) {
|
|
29313
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
29314
|
+
}
|
|
29315
|
+
|
|
29284
29316
|
if (limit !== undefined) {
|
|
29285
29317
|
localVarQueryParameter['limit'] = limit;
|
|
29286
29318
|
}
|
|
@@ -29289,6 +29321,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29289
29321
|
localVarQueryParameter['offset'] = offset;
|
|
29290
29322
|
}
|
|
29291
29323
|
|
|
29324
|
+
if (sortBy !== undefined) {
|
|
29325
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
29326
|
+
}
|
|
29327
|
+
|
|
29328
|
+
if (sortOrder !== undefined) {
|
|
29329
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
29330
|
+
}
|
|
29331
|
+
|
|
29292
29332
|
|
|
29293
29333
|
|
|
29294
29334
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29301,17 +29341,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29301
29341
|
};
|
|
29302
29342
|
},
|
|
29303
29343
|
/**
|
|
29304
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
29344
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
29305
29345
|
* @summary Get credit transactions
|
|
29306
29346
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
29307
29347
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
29308
29348
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
29309
|
-
* @param {number} [
|
|
29310
|
-
* @param {number} [
|
|
29349
|
+
* @param {number} [page] Page number (default: 1)
|
|
29350
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
29351
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
29352
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
29353
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
29354
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
29311
29355
|
* @param {*} [options] Override http request option.
|
|
29312
29356
|
* @throws {RequiredError}
|
|
29313
29357
|
*/
|
|
29314
|
-
adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29358
|
+
adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29315
29359
|
const localVarPath = `/admin/billing/credit-transactions`;
|
|
29316
29360
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29317
29361
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29339,6 +29383,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29339
29383
|
localVarQueryParameter['end_date'] = endDate;
|
|
29340
29384
|
}
|
|
29341
29385
|
|
|
29386
|
+
if (page !== undefined) {
|
|
29387
|
+
localVarQueryParameter['page'] = page;
|
|
29388
|
+
}
|
|
29389
|
+
|
|
29390
|
+
if (pageSize !== undefined) {
|
|
29391
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
29392
|
+
}
|
|
29393
|
+
|
|
29342
29394
|
if (limit !== undefined) {
|
|
29343
29395
|
localVarQueryParameter['limit'] = limit;
|
|
29344
29396
|
}
|
|
@@ -29347,6 +29399,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29347
29399
|
localVarQueryParameter['offset'] = offset;
|
|
29348
29400
|
}
|
|
29349
29401
|
|
|
29402
|
+
if (sortBy !== undefined) {
|
|
29403
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
29404
|
+
}
|
|
29405
|
+
|
|
29406
|
+
if (sortOrder !== undefined) {
|
|
29407
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
29408
|
+
}
|
|
29409
|
+
|
|
29350
29410
|
|
|
29351
29411
|
|
|
29352
29412
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29466,18 +29526,22 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29466
29526
|
};
|
|
29467
29527
|
},
|
|
29468
29528
|
/**
|
|
29469
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
29529
|
+
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
|
|
29470
29530
|
* @summary Get invoices
|
|
29471
29531
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
29472
29532
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
29473
29533
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
29474
29534
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
29535
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
29475
29536
|
* @param {number} [page] Page number (default: 1)
|
|
29476
|
-
* @param {number} [
|
|
29537
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
29538
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
29539
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
29540
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
29477
29541
|
* @param {*} [options] Override http request option.
|
|
29478
29542
|
* @throws {RequiredError}
|
|
29479
29543
|
*/
|
|
29480
|
-
adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29544
|
+
adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29481
29545
|
const localVarPath = `/admin/billing/invoices`;
|
|
29482
29546
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29483
29547
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29509,14 +29573,30 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29509
29573
|
localVarQueryParameter['end_date'] = endDate;
|
|
29510
29574
|
}
|
|
29511
29575
|
|
|
29576
|
+
if (search !== undefined) {
|
|
29577
|
+
localVarQueryParameter['search'] = search;
|
|
29578
|
+
}
|
|
29579
|
+
|
|
29512
29580
|
if (page !== undefined) {
|
|
29513
29581
|
localVarQueryParameter['page'] = page;
|
|
29514
29582
|
}
|
|
29515
29583
|
|
|
29584
|
+
if (pageSize !== undefined) {
|
|
29585
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
29586
|
+
}
|
|
29587
|
+
|
|
29516
29588
|
if (limit !== undefined) {
|
|
29517
29589
|
localVarQueryParameter['limit'] = limit;
|
|
29518
29590
|
}
|
|
29519
29591
|
|
|
29592
|
+
if (sortBy !== undefined) {
|
|
29593
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
29594
|
+
}
|
|
29595
|
+
|
|
29596
|
+
if (sortOrder !== undefined) {
|
|
29597
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
29598
|
+
}
|
|
29599
|
+
|
|
29520
29600
|
|
|
29521
29601
|
|
|
29522
29602
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29724,17 +29804,24 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29724
29804
|
};
|
|
29725
29805
|
},
|
|
29726
29806
|
/**
|
|
29727
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
29807
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
|
|
29728
29808
|
* @summary Get orders
|
|
29729
29809
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
29730
29810
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
29731
29811
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
29732
29812
|
* @param {number} [page] Page number (default: 1)
|
|
29733
29813
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
29814
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
29815
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
29816
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
29817
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
29818
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
29819
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
29820
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
29734
29821
|
* @param {*} [options] Override http request option.
|
|
29735
29822
|
* @throws {RequiredError}
|
|
29736
29823
|
*/
|
|
29737
|
-
adminBillingOrdersGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29824
|
+
adminBillingOrdersGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29738
29825
|
const localVarPath = `/admin/billing/orders`;
|
|
29739
29826
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29740
29827
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29770,6 +29857,34 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29770
29857
|
localVarQueryParameter['page_size'] = pageSize;
|
|
29771
29858
|
}
|
|
29772
29859
|
|
|
29860
|
+
if (limit !== undefined) {
|
|
29861
|
+
localVarQueryParameter['limit'] = limit;
|
|
29862
|
+
}
|
|
29863
|
+
|
|
29864
|
+
if (sortBy !== undefined) {
|
|
29865
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
29866
|
+
}
|
|
29867
|
+
|
|
29868
|
+
if (sortOrder !== undefined) {
|
|
29869
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
29870
|
+
}
|
|
29871
|
+
|
|
29872
|
+
if (search !== undefined) {
|
|
29873
|
+
localVarQueryParameter['search'] = search;
|
|
29874
|
+
}
|
|
29875
|
+
|
|
29876
|
+
if (status !== undefined) {
|
|
29877
|
+
localVarQueryParameter['status'] = status;
|
|
29878
|
+
}
|
|
29879
|
+
|
|
29880
|
+
if (gateway !== undefined) {
|
|
29881
|
+
localVarQueryParameter['gateway'] = gateway;
|
|
29882
|
+
}
|
|
29883
|
+
|
|
29884
|
+
if (paymentType !== undefined) {
|
|
29885
|
+
localVarQueryParameter['payment_type'] = paymentType;
|
|
29886
|
+
}
|
|
29887
|
+
|
|
29773
29888
|
|
|
29774
29889
|
|
|
29775
29890
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29991,17 +30106,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29991
30106
|
};
|
|
29992
30107
|
},
|
|
29993
30108
|
/**
|
|
29994
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
30109
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
29995
30110
|
* @summary Get payment transactions
|
|
29996
30111
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
29997
30112
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
29998
30113
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
29999
|
-
* @param {number} [
|
|
30000
|
-
* @param {number} [
|
|
30114
|
+
* @param {number} [page] Page number (default: 1)
|
|
30115
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
30116
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
30117
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
30118
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
30119
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30001
30120
|
* @param {*} [options] Override http request option.
|
|
30002
30121
|
* @throws {RequiredError}
|
|
30003
30122
|
*/
|
|
30004
|
-
adminBillingPaymentTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30123
|
+
adminBillingPaymentTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30005
30124
|
const localVarPath = `/admin/billing/payment-transactions`;
|
|
30006
30125
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30007
30126
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -30029,6 +30148,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
30029
30148
|
localVarQueryParameter['end_date'] = endDate;
|
|
30030
30149
|
}
|
|
30031
30150
|
|
|
30151
|
+
if (page !== undefined) {
|
|
30152
|
+
localVarQueryParameter['page'] = page;
|
|
30153
|
+
}
|
|
30154
|
+
|
|
30155
|
+
if (pageSize !== undefined) {
|
|
30156
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
30157
|
+
}
|
|
30158
|
+
|
|
30032
30159
|
if (limit !== undefined) {
|
|
30033
30160
|
localVarQueryParameter['limit'] = limit;
|
|
30034
30161
|
}
|
|
@@ -30037,6 +30164,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
30037
30164
|
localVarQueryParameter['offset'] = offset;
|
|
30038
30165
|
}
|
|
30039
30166
|
|
|
30167
|
+
if (sortBy !== undefined) {
|
|
30168
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
30169
|
+
}
|
|
30170
|
+
|
|
30171
|
+
if (sortOrder !== undefined) {
|
|
30172
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
30173
|
+
}
|
|
30174
|
+
|
|
30040
30175
|
|
|
30041
30176
|
|
|
30042
30177
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -30119,14 +30254,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
30119
30254
|
};
|
|
30120
30255
|
},
|
|
30121
30256
|
/**
|
|
30122
|
-
* Retrieves a paginated list of receipts for the organization
|
|
30257
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
30123
30258
|
* @summary List receipts
|
|
30124
30259
|
* @param {number} [page] Page number (default: 1)
|
|
30125
30260
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
30261
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
30262
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30126
30263
|
* @param {*} [options] Override http request option.
|
|
30127
30264
|
* @throws {RequiredError}
|
|
30128
30265
|
*/
|
|
30129
|
-
adminBillingReceiptsGet: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30266
|
+
adminBillingReceiptsGet: async (page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30130
30267
|
const localVarPath = `/admin/billing/receipts`;
|
|
30131
30268
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30132
30269
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -30150,6 +30287,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
30150
30287
|
localVarQueryParameter['page_size'] = pageSize;
|
|
30151
30288
|
}
|
|
30152
30289
|
|
|
30290
|
+
if (sortBy !== undefined) {
|
|
30291
|
+
localVarQueryParameter['sort_by'] = sortBy;
|
|
30292
|
+
}
|
|
30293
|
+
|
|
30294
|
+
if (sortOrder !== undefined) {
|
|
30295
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
|
30296
|
+
}
|
|
30297
|
+
|
|
30153
30298
|
|
|
30154
30299
|
|
|
30155
30300
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -30449,52 +30594,64 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
30449
30594
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30450
30595
|
},
|
|
30451
30596
|
/**
|
|
30452
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
30597
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
30453
30598
|
* @summary Get credit ledger
|
|
30454
30599
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30455
30600
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30456
30601
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30457
|
-
* @param {number} [
|
|
30458
|
-
* @param {number} [
|
|
30602
|
+
* @param {number} [page] Page number (default: 1)
|
|
30603
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
30604
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
30605
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
30606
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
30607
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30459
30608
|
* @param {*} [options] Override http request option.
|
|
30460
30609
|
* @throws {RequiredError}
|
|
30461
30610
|
*/
|
|
30462
|
-
async adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30463
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options);
|
|
30611
|
+
async adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
30464
30613
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30465
30614
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']?.[localVarOperationServerIndex]?.url;
|
|
30466
30615
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30467
30616
|
},
|
|
30468
30617
|
/**
|
|
30469
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
30618
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
30470
30619
|
* @summary Get credit purchases
|
|
30471
30620
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30472
30621
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30473
30622
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30474
|
-
* @param {number} [
|
|
30475
|
-
* @param {number} [
|
|
30623
|
+
* @param {number} [page] Page number (default: 1)
|
|
30624
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
30625
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
30626
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
30627
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
30628
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30476
30629
|
* @param {*} [options] Override http request option.
|
|
30477
30630
|
* @throws {RequiredError}
|
|
30478
30631
|
*/
|
|
30479
|
-
async adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30480
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options);
|
|
30632
|
+
async adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30633
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
30481
30634
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30482
30635
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditPurchasesGet']?.[localVarOperationServerIndex]?.url;
|
|
30483
30636
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30484
30637
|
},
|
|
30485
30638
|
/**
|
|
30486
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
30639
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
30487
30640
|
* @summary Get credit transactions
|
|
30488
30641
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30489
30642
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30490
30643
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30491
|
-
* @param {number} [
|
|
30492
|
-
* @param {number} [
|
|
30644
|
+
* @param {number} [page] Page number (default: 1)
|
|
30645
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
30646
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
30647
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
30648
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
30649
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30493
30650
|
* @param {*} [options] Override http request option.
|
|
30494
30651
|
* @throws {RequiredError}
|
|
30495
30652
|
*/
|
|
30496
|
-
async adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30497
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options);
|
|
30653
|
+
async adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30654
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
30498
30655
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30499
30656
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']?.[localVarOperationServerIndex]?.url;
|
|
30500
30657
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30538,19 +30695,23 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
30538
30695
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30539
30696
|
},
|
|
30540
30697
|
/**
|
|
30541
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
30698
|
+
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
|
|
30542
30699
|
* @summary Get invoices
|
|
30543
30700
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30544
30701
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
30545
30702
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30546
30703
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30704
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
30547
30705
|
* @param {number} [page] Page number (default: 1)
|
|
30548
|
-
* @param {number} [
|
|
30706
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
30707
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
30708
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
30709
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30549
30710
|
* @param {*} [options] Override http request option.
|
|
30550
30711
|
* @throws {RequiredError}
|
|
30551
30712
|
*/
|
|
30552
|
-
async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30553
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
|
|
30713
|
+
async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30714
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
|
|
30554
30715
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30555
30716
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
|
|
30556
30717
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30623,18 +30784,25 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
30623
30784
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30624
30785
|
},
|
|
30625
30786
|
/**
|
|
30626
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
30787
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
|
|
30627
30788
|
* @summary Get orders
|
|
30628
30789
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30629
30790
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30630
30791
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30631
30792
|
* @param {number} [page] Page number (default: 1)
|
|
30632
30793
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
30794
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
30795
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
30796
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30797
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
30798
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
30799
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
30800
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
30633
30801
|
* @param {*} [options] Override http request option.
|
|
30634
30802
|
* @throws {RequiredError}
|
|
30635
30803
|
*/
|
|
30636
|
-
async adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30637
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options);
|
|
30804
|
+
async adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30805
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options);
|
|
30638
30806
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30639
30807
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']?.[localVarOperationServerIndex]?.url;
|
|
30640
30808
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30709,18 +30877,22 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
30709
30877
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30710
30878
|
},
|
|
30711
30879
|
/**
|
|
30712
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
30880
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
30713
30881
|
* @summary Get payment transactions
|
|
30714
30882
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30715
30883
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30716
30884
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30717
|
-
* @param {number} [
|
|
30718
|
-
* @param {number} [
|
|
30885
|
+
* @param {number} [page] Page number (default: 1)
|
|
30886
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
30887
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
30888
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
30889
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
30890
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30719
30891
|
* @param {*} [options] Override http request option.
|
|
30720
30892
|
* @throws {RequiredError}
|
|
30721
30893
|
*/
|
|
30722
|
-
async adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30723
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options);
|
|
30894
|
+
async adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30895
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
|
|
30724
30896
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30725
30897
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']?.[localVarOperationServerIndex]?.url;
|
|
30726
30898
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30751,15 +30923,17 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
30751
30923
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30752
30924
|
},
|
|
30753
30925
|
/**
|
|
30754
|
-
* Retrieves a paginated list of receipts for the organization
|
|
30926
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
30755
30927
|
* @summary List receipts
|
|
30756
30928
|
* @param {number} [page] Page number (default: 1)
|
|
30757
30929
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
30930
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
30931
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30758
30932
|
* @param {*} [options] Override http request option.
|
|
30759
30933
|
* @throws {RequiredError}
|
|
30760
30934
|
*/
|
|
30761
|
-
async adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30762
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
|
|
30935
|
+
async adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30936
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options);
|
|
30763
30937
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30764
30938
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']?.[localVarOperationServerIndex]?.url;
|
|
30765
30939
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30904,46 +31078,58 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
30904
31078
|
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
30905
31079
|
},
|
|
30906
31080
|
/**
|
|
30907
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
31081
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
30908
31082
|
* @summary Get credit ledger
|
|
30909
31083
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30910
31084
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30911
31085
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30912
|
-
* @param {number} [
|
|
30913
|
-
* @param {number} [
|
|
31086
|
+
* @param {number} [page] Page number (default: 1)
|
|
31087
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31088
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31089
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
31090
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
31091
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30914
31092
|
* @param {*} [options] Override http request option.
|
|
30915
31093
|
* @throws {RequiredError}
|
|
30916
31094
|
*/
|
|
30917
|
-
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
30918
|
-
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
31095
|
+
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31096
|
+
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
30919
31097
|
},
|
|
30920
31098
|
/**
|
|
30921
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
31099
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
30922
31100
|
* @summary Get credit purchases
|
|
30923
31101
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30924
31102
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30925
31103
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30926
|
-
* @param {number} [
|
|
30927
|
-
* @param {number} [
|
|
31104
|
+
* @param {number} [page] Page number (default: 1)
|
|
31105
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31106
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31107
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
31108
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
31109
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30928
31110
|
* @param {*} [options] Override http request option.
|
|
30929
31111
|
* @throws {RequiredError}
|
|
30930
31112
|
*/
|
|
30931
|
-
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
30932
|
-
return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
31113
|
+
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31114
|
+
return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
30933
31115
|
},
|
|
30934
31116
|
/**
|
|
30935
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
31117
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
30936
31118
|
* @summary Get credit transactions
|
|
30937
31119
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30938
31120
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30939
31121
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
30940
|
-
* @param {number} [
|
|
30941
|
-
* @param {number} [
|
|
31122
|
+
* @param {number} [page] Page number (default: 1)
|
|
31123
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31124
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31125
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
31126
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
31127
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30942
31128
|
* @param {*} [options] Override http request option.
|
|
30943
31129
|
* @throws {RequiredError}
|
|
30944
31130
|
*/
|
|
30945
|
-
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
30946
|
-
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
31131
|
+
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31132
|
+
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
30947
31133
|
},
|
|
30948
31134
|
/**
|
|
30949
31135
|
* Automatically generates invoices for all completed payments without invoices
|
|
@@ -30975,19 +31161,23 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
30975
31161
|
return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
30976
31162
|
},
|
|
30977
31163
|
/**
|
|
30978
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
31164
|
+
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
|
|
30979
31165
|
* @summary Get invoices
|
|
30980
31166
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
30981
31167
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
30982
31168
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
30983
31169
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31170
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
30984
31171
|
* @param {number} [page] Page number (default: 1)
|
|
30985
|
-
* @param {number} [
|
|
31172
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
31173
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
31174
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
31175
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
30986
31176
|
* @param {*} [options] Override http request option.
|
|
30987
31177
|
* @throws {RequiredError}
|
|
30988
31178
|
*/
|
|
30989
|
-
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
30990
|
-
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(axios, basePath));
|
|
31179
|
+
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31180
|
+
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
30991
31181
|
},
|
|
30992
31182
|
/**
|
|
30993
31183
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -31042,18 +31232,25 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
31042
31232
|
return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
31043
31233
|
},
|
|
31044
31234
|
/**
|
|
31045
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
31235
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
|
|
31046
31236
|
* @summary Get orders
|
|
31047
31237
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
31048
31238
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
31049
31239
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31050
31240
|
* @param {number} [page] Page number (default: 1)
|
|
31051
31241
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31242
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31243
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
31244
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31245
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
31246
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
31247
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
31248
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
31052
31249
|
* @param {*} [options] Override http request option.
|
|
31053
31250
|
* @throws {RequiredError}
|
|
31054
31251
|
*/
|
|
31055
|
-
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31056
|
-
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
|
|
31252
|
+
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31253
|
+
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
|
|
31057
31254
|
},
|
|
31058
31255
|
/**
|
|
31059
31256
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
@@ -31110,18 +31307,22 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
31110
31307
|
return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
|
|
31111
31308
|
},
|
|
31112
31309
|
/**
|
|
31113
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
31310
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
31114
31311
|
* @summary Get payment transactions
|
|
31115
31312
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
31116
31313
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
31117
31314
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31118
|
-
* @param {number} [
|
|
31119
|
-
* @param {number} [
|
|
31315
|
+
* @param {number} [page] Page number (default: 1)
|
|
31316
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31317
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31318
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
31319
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
31320
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31120
31321
|
* @param {*} [options] Override http request option.
|
|
31121
31322
|
* @throws {RequiredError}
|
|
31122
31323
|
*/
|
|
31123
|
-
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31124
|
-
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
31324
|
+
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31325
|
+
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
31125
31326
|
},
|
|
31126
31327
|
/**
|
|
31127
31328
|
* Generates receipts for all completed payments without receipts in the organization
|
|
@@ -31143,15 +31344,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
31143
31344
|
return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
31144
31345
|
},
|
|
31145
31346
|
/**
|
|
31146
|
-
* Retrieves a paginated list of receipts for the organization
|
|
31347
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
31147
31348
|
* @summary List receipts
|
|
31148
31349
|
* @param {number} [page] Page number (default: 1)
|
|
31149
31350
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
31351
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
31352
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31150
31353
|
* @param {*} [options] Override http request option.
|
|
31151
31354
|
* @throws {RequiredError}
|
|
31152
31355
|
*/
|
|
31153
|
-
adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31154
|
-
return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
|
|
31356
|
+
adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
31357
|
+
return localVarFp.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
31155
31358
|
},
|
|
31156
31359
|
/**
|
|
31157
31360
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
@@ -31293,51 +31496,63 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
31293
31496
|
}
|
|
31294
31497
|
|
|
31295
31498
|
/**
|
|
31296
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
31499
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
31297
31500
|
* @summary Get credit ledger
|
|
31298
31501
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
31299
31502
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
31300
31503
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31301
|
-
* @param {number} [
|
|
31302
|
-
* @param {number} [
|
|
31504
|
+
* @param {number} [page] Page number (default: 1)
|
|
31505
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31506
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31507
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
31508
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
31509
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31303
31510
|
* @param {*} [options] Override http request option.
|
|
31304
31511
|
* @throws {RequiredError}
|
|
31305
31512
|
* @memberof BillingDashboardApi
|
|
31306
31513
|
*/
|
|
31307
|
-
public adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
31308
|
-
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
31514
|
+
public adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
|
|
31515
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
31309
31516
|
}
|
|
31310
31517
|
|
|
31311
31518
|
/**
|
|
31312
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
31519
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
31313
31520
|
* @summary Get credit purchases
|
|
31314
31521
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
31315
31522
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
31316
31523
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31317
|
-
* @param {number} [
|
|
31318
|
-
* @param {number} [
|
|
31524
|
+
* @param {number} [page] Page number (default: 1)
|
|
31525
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31526
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31527
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
31528
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
31529
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31319
31530
|
* @param {*} [options] Override http request option.
|
|
31320
31531
|
* @throws {RequiredError}
|
|
31321
31532
|
* @memberof BillingDashboardApi
|
|
31322
31533
|
*/
|
|
31323
|
-
public adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
31324
|
-
return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
31534
|
+
public adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
|
|
31535
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
31325
31536
|
}
|
|
31326
31537
|
|
|
31327
31538
|
/**
|
|
31328
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
31539
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
31329
31540
|
* @summary Get credit transactions
|
|
31330
31541
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
31331
31542
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
31332
31543
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31333
|
-
* @param {number} [
|
|
31334
|
-
* @param {number} [
|
|
31544
|
+
* @param {number} [page] Page number (default: 1)
|
|
31545
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31546
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31547
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
31548
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
31549
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31335
31550
|
* @param {*} [options] Override http request option.
|
|
31336
31551
|
* @throws {RequiredError}
|
|
31337
31552
|
* @memberof BillingDashboardApi
|
|
31338
31553
|
*/
|
|
31339
|
-
public adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
31340
|
-
return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
31554
|
+
public adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
|
|
31555
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
31341
31556
|
}
|
|
31342
31557
|
|
|
31343
31558
|
/**
|
|
@@ -31376,20 +31591,24 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
31376
31591
|
}
|
|
31377
31592
|
|
|
31378
31593
|
/**
|
|
31379
|
-
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
|
|
31594
|
+
* Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object. Supports both page/page_size and page/limit pagination parameters.
|
|
31380
31595
|
* @summary Get invoices
|
|
31381
31596
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
31382
31597
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
31383
31598
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
31384
31599
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31600
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
31385
31601
|
* @param {number} [page] Page number (default: 1)
|
|
31386
|
-
* @param {number} [
|
|
31602
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
|
|
31603
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
31604
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
31605
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31387
31606
|
* @param {*} [options] Override http request option.
|
|
31388
31607
|
* @throws {RequiredError}
|
|
31389
31608
|
* @memberof BillingDashboardApi
|
|
31390
31609
|
*/
|
|
31391
|
-
public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
31392
|
-
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
31610
|
+
public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
|
|
31611
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
31393
31612
|
}
|
|
31394
31613
|
|
|
31395
31614
|
/**
|
|
@@ -31455,19 +31674,26 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
31455
31674
|
}
|
|
31456
31675
|
|
|
31457
31676
|
/**
|
|
31458
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
31677
|
+
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Supports both page/page_size and page/limit pagination like analytics APIs.
|
|
31459
31678
|
* @summary Get orders
|
|
31460
31679
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
31461
31680
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
31462
31681
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31463
31682
|
* @param {number} [page] Page number (default: 1)
|
|
31464
31683
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31684
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31685
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
31686
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31687
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
31688
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
31689
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
31690
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
31465
31691
|
* @param {*} [options] Override http request option.
|
|
31466
31692
|
* @throws {RequiredError}
|
|
31467
31693
|
* @memberof BillingDashboardApi
|
|
31468
31694
|
*/
|
|
31469
|
-
public adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
|
|
31470
|
-
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
31695
|
+
public adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) {
|
|
31696
|
+
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
|
|
31471
31697
|
}
|
|
31472
31698
|
|
|
31473
31699
|
/**
|
|
@@ -31535,19 +31761,23 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
31535
31761
|
}
|
|
31536
31762
|
|
|
31537
31763
|
/**
|
|
31538
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
31764
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
31539
31765
|
* @summary Get payment transactions
|
|
31540
31766
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
31541
31767
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
31542
31768
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
31543
|
-
* @param {number} [
|
|
31544
|
-
* @param {number} [
|
|
31769
|
+
* @param {number} [page] Page number (default: 1)
|
|
31770
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
31771
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
31772
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
31773
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
31774
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31545
31775
|
* @param {*} [options] Override http request option.
|
|
31546
31776
|
* @throws {RequiredError}
|
|
31547
31777
|
* @memberof BillingDashboardApi
|
|
31548
31778
|
*/
|
|
31549
|
-
public adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) {
|
|
31550
|
-
return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
31779
|
+
public adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
|
|
31780
|
+
return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
31551
31781
|
}
|
|
31552
31782
|
|
|
31553
31783
|
/**
|
|
@@ -31574,16 +31804,18 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
31574
31804
|
}
|
|
31575
31805
|
|
|
31576
31806
|
/**
|
|
31577
|
-
* Retrieves a paginated list of receipts for the organization
|
|
31807
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
31578
31808
|
* @summary List receipts
|
|
31579
31809
|
* @param {number} [page] Page number (default: 1)
|
|
31580
31810
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
31811
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
31812
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
31581
31813
|
* @param {*} [options] Override http request option.
|
|
31582
31814
|
* @throws {RequiredError}
|
|
31583
31815
|
* @memberof BillingDashboardApi
|
|
31584
31816
|
*/
|
|
31585
|
-
public adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
|
|
31586
|
-
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
31817
|
+
public adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
|
|
31818
|
+
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
31587
31819
|
}
|
|
31588
31820
|
|
|
31589
31821
|
/**
|