@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/api.ts CHANGED
@@ -7740,7 +7740,7 @@ export interface DataTypesBillingAlertRequest {
7740
7740
  * @type {string}
7741
7741
  * @memberof DataTypesBillingAlertRequest
7742
7742
  */
7743
- 'alert_type': DataTypesBillingAlertRequestAlertTypeEnum;
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': DataTypesBillingAlertRequestThresholdUnitEnum;
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} [limit] Number of results per page (default: 50, max: 100)
29194
- * @param {number} [offset] Number of results to skip (default: 0)
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\&#39;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} [limit] Number of results per page (default: 50, max: 100)
29252
- * @param {number} [offset] Number of results to skip (default: 0)
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\&#39;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} [limit] Number of results per page (default: 50, max: 100)
29310
- * @param {number} [offset] Number of results to skip (default: 0)
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);
@@ -29474,10 +29534,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29474
29534
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29475
29535
  * @param {number} [page] Page number (default: 1)
29476
29536
  * @param {number} [limit] Number of results per page (default: 20, max: 100)
29537
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
29538
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29477
29539
  * @param {*} [options] Override http request option.
29478
29540
  * @throws {RequiredError}
29479
29541
  */
29480
- adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29542
+ adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29481
29543
  const localVarPath = `/admin/billing/invoices`;
29482
29544
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29483
29545
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29517,6 +29579,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29517
29579
  localVarQueryParameter['limit'] = limit;
29518
29580
  }
29519
29581
 
29582
+ if (sortBy !== undefined) {
29583
+ localVarQueryParameter['sort_by'] = sortBy;
29584
+ }
29585
+
29586
+ if (sortOrder !== undefined) {
29587
+ localVarQueryParameter['sort_order'] = sortOrder;
29588
+ }
29589
+
29520
29590
 
29521
29591
 
29522
29592
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29731,10 +29801,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29731
29801
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29732
29802
  * @param {number} [page] Page number (default: 1)
29733
29803
  * @param {number} [pageSize] Page size (default: 50, max: 100)
29804
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
29805
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
29806
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
29807
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
29808
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
29809
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
29734
29810
  * @param {*} [options] Override http request option.
29735
29811
  * @throws {RequiredError}
29736
29812
  */
29737
- adminBillingOrdersGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29813
+ adminBillingOrdersGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29738
29814
  const localVarPath = `/admin/billing/orders`;
29739
29815
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29740
29816
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29770,6 +29846,30 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29770
29846
  localVarQueryParameter['page_size'] = pageSize;
29771
29847
  }
29772
29848
 
29849
+ if (sortBy !== undefined) {
29850
+ localVarQueryParameter['sort_by'] = sortBy;
29851
+ }
29852
+
29853
+ if (sortOrder !== undefined) {
29854
+ localVarQueryParameter['sort_order'] = sortOrder;
29855
+ }
29856
+
29857
+ if (search !== undefined) {
29858
+ localVarQueryParameter['search'] = search;
29859
+ }
29860
+
29861
+ if (status !== undefined) {
29862
+ localVarQueryParameter['status'] = status;
29863
+ }
29864
+
29865
+ if (gateway !== undefined) {
29866
+ localVarQueryParameter['gateway'] = gateway;
29867
+ }
29868
+
29869
+ if (paymentType !== undefined) {
29870
+ localVarQueryParameter['payment_type'] = paymentType;
29871
+ }
29872
+
29773
29873
 
29774
29874
 
29775
29875
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -29991,17 +30091,21 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29991
30091
  };
29992
30092
  },
29993
30093
  /**
29994
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
30094
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
29995
30095
  * @summary Get payment transactions
29996
30096
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29997
30097
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29998
30098
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29999
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30000
- * @param {number} [offset] Number of results to skip (default: 0)
30099
+ * @param {number} [page] Page number (default: 1)
30100
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30101
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30102
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30103
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
30104
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30001
30105
  * @param {*} [options] Override http request option.
30002
30106
  * @throws {RequiredError}
30003
30107
  */
30004
- adminBillingPaymentTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30108
+ 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
30109
  const localVarPath = `/admin/billing/payment-transactions`;
30006
30110
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30007
30111
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -30029,6 +30133,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30029
30133
  localVarQueryParameter['end_date'] = endDate;
30030
30134
  }
30031
30135
 
30136
+ if (page !== undefined) {
30137
+ localVarQueryParameter['page'] = page;
30138
+ }
30139
+
30140
+ if (pageSize !== undefined) {
30141
+ localVarQueryParameter['page_size'] = pageSize;
30142
+ }
30143
+
30032
30144
  if (limit !== undefined) {
30033
30145
  localVarQueryParameter['limit'] = limit;
30034
30146
  }
@@ -30037,6 +30149,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30037
30149
  localVarQueryParameter['offset'] = offset;
30038
30150
  }
30039
30151
 
30152
+ if (sortBy !== undefined) {
30153
+ localVarQueryParameter['sort_by'] = sortBy;
30154
+ }
30155
+
30156
+ if (sortOrder !== undefined) {
30157
+ localVarQueryParameter['sort_order'] = sortOrder;
30158
+ }
30159
+
30040
30160
 
30041
30161
 
30042
30162
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -30119,14 +30239,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30119
30239
  };
30120
30240
  },
30121
30241
  /**
30122
- * Retrieves a paginated list of receipts for the organization
30242
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
30123
30243
  * @summary List receipts
30124
30244
  * @param {number} [page] Page number (default: 1)
30125
30245
  * @param {number} [pageSize] Page size (default: 20, max: 100)
30246
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
30247
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30126
30248
  * @param {*} [options] Override http request option.
30127
30249
  * @throws {RequiredError}
30128
30250
  */
30129
- adminBillingReceiptsGet: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30251
+ adminBillingReceiptsGet: async (page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30130
30252
  const localVarPath = `/admin/billing/receipts`;
30131
30253
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30132
30254
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -30150,6 +30272,14 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30150
30272
  localVarQueryParameter['page_size'] = pageSize;
30151
30273
  }
30152
30274
 
30275
+ if (sortBy !== undefined) {
30276
+ localVarQueryParameter['sort_by'] = sortBy;
30277
+ }
30278
+
30279
+ if (sortOrder !== undefined) {
30280
+ localVarQueryParameter['sort_order'] = sortOrder;
30281
+ }
30282
+
30153
30283
 
30154
30284
 
30155
30285
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -30449,52 +30579,64 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30449
30579
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30450
30580
  },
30451
30581
  /**
30452
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
30582
+ * 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
30583
  * @summary Get credit ledger
30454
30584
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30455
30585
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30456
30586
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30457
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30458
- * @param {number} [offset] Number of results to skip (default: 0)
30587
+ * @param {number} [page] Page number (default: 1)
30588
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30589
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30590
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30591
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
30592
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30459
30593
  * @param {*} [options] Override http request option.
30460
30594
  * @throws {RequiredError}
30461
30595
  */
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);
30596
+ 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>> {
30597
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30464
30598
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30465
30599
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']?.[localVarOperationServerIndex]?.url;
30466
30600
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30467
30601
  },
30468
30602
  /**
30469
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
30603
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30470
30604
  * @summary Get credit purchases
30471
30605
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30472
30606
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30473
30607
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30474
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30475
- * @param {number} [offset] Number of results to skip (default: 0)
30608
+ * @param {number} [page] Page number (default: 1)
30609
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30610
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30611
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30612
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
30613
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30476
30614
  * @param {*} [options] Override http request option.
30477
30615
  * @throws {RequiredError}
30478
30616
  */
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);
30617
+ 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>> {
30618
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30481
30619
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30482
30620
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditPurchasesGet']?.[localVarOperationServerIndex]?.url;
30483
30621
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30484
30622
  },
30485
30623
  /**
30486
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
30624
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30487
30625
  * @summary Get credit transactions
30488
30626
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30489
30627
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30490
30628
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30491
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30492
- * @param {number} [offset] Number of results to skip (default: 0)
30629
+ * @param {number} [page] Page number (default: 1)
30630
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30631
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30632
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30633
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
30634
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30493
30635
  * @param {*} [options] Override http request option.
30494
30636
  * @throws {RequiredError}
30495
30637
  */
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);
30638
+ 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>> {
30639
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30498
30640
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30499
30641
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']?.[localVarOperationServerIndex]?.url;
30500
30642
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30546,11 +30688,13 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30546
30688
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30547
30689
  * @param {number} [page] Page number (default: 1)
30548
30690
  * @param {number} [limit] Number of results per page (default: 20, max: 100)
30691
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
30692
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30549
30693
  * @param {*} [options] Override http request option.
30550
30694
  * @throws {RequiredError}
30551
30695
  */
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);
30696
+ async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30697
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options);
30554
30698
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30555
30699
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
30556
30700
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30630,11 +30774,17 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30630
30774
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30631
30775
  * @param {number} [page] Page number (default: 1)
30632
30776
  * @param {number} [pageSize] Page size (default: 50, max: 100)
30777
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
30778
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30779
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
30780
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
30781
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
30782
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
30633
30783
  * @param {*} [options] Override http request option.
30634
30784
  * @throws {RequiredError}
30635
30785
  */
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);
30786
+ async adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30787
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options);
30638
30788
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30639
30789
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']?.[localVarOperationServerIndex]?.url;
30640
30790
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30709,18 +30859,22 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30709
30859
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30710
30860
  },
30711
30861
  /**
30712
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
30862
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30713
30863
  * @summary Get payment transactions
30714
30864
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30715
30865
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30716
30866
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30717
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30718
- * @param {number} [offset] Number of results to skip (default: 0)
30867
+ * @param {number} [page] Page number (default: 1)
30868
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
30869
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30870
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
30871
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
30872
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30719
30873
  * @param {*} [options] Override http request option.
30720
30874
  * @throws {RequiredError}
30721
30875
  */
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);
30876
+ 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>> {
30877
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30724
30878
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30725
30879
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']?.[localVarOperationServerIndex]?.url;
30726
30880
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30751,15 +30905,17 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30751
30905
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30752
30906
  },
30753
30907
  /**
30754
- * Retrieves a paginated list of receipts for the organization
30908
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
30755
30909
  * @summary List receipts
30756
30910
  * @param {number} [page] Page number (default: 1)
30757
30911
  * @param {number} [pageSize] Page size (default: 20, max: 100)
30912
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
30913
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30758
30914
  * @param {*} [options] Override http request option.
30759
30915
  * @throws {RequiredError}
30760
30916
  */
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);
30917
+ async adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30918
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options);
30763
30919
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30764
30920
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']?.[localVarOperationServerIndex]?.url;
30765
30921
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30904,46 +31060,58 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
30904
31060
  return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
30905
31061
  },
30906
31062
  /**
30907
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
31063
+ * 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
31064
  * @summary Get credit ledger
30909
31065
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30910
31066
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30911
31067
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30912
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30913
- * @param {number} [offset] Number of results to skip (default: 0)
31068
+ * @param {number} [page] Page number (default: 1)
31069
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31070
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31071
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31072
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
31073
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30914
31074
  * @param {*} [options] Override http request option.
30915
31075
  * @throws {RequiredError}
30916
31076
  */
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));
31077
+ adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31078
+ return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
30919
31079
  },
30920
31080
  /**
30921
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
31081
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30922
31082
  * @summary Get credit purchases
30923
31083
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30924
31084
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30925
31085
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30926
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30927
- * @param {number} [offset] Number of results to skip (default: 0)
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, amount, created_at, credits_purchased) (default: created_at)
31091
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30928
31092
  * @param {*} [options] Override http request option.
30929
31093
  * @throws {RequiredError}
30930
31094
  */
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));
31095
+ adminBillingCreditPurchasesGet(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.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
30933
31097
  },
30934
31098
  /**
30935
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
31099
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
30936
31100
  * @summary Get credit transactions
30937
31101
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30938
31102
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30939
31103
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30940
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
30941
- * @param {number} [offset] Number of results to skip (default: 0)
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, credits_used, transaction_date, transaction_type) (default: transaction_date)
31109
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30942
31110
  * @param {*} [options] Override http request option.
30943
31111
  * @throws {RequiredError}
30944
31112
  */
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));
31113
+ adminBillingCreditTransactionsGet(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.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
30947
31115
  },
30948
31116
  /**
30949
31117
  * Automatically generates invoices for all completed payments without invoices
@@ -30983,11 +31151,13 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
30983
31151
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30984
31152
  * @param {number} [page] Page number (default: 1)
30985
31153
  * @param {number} [limit] Number of results per page (default: 20, max: 100)
31154
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
31155
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
30986
31156
  * @param {*} [options] Override http request option.
30987
31157
  * @throws {RequiredError}
30988
31158
  */
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));
31159
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31160
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
30991
31161
  },
30992
31162
  /**
30993
31163
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -31049,11 +31219,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31049
31219
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31050
31220
  * @param {number} [page] Page number (default: 1)
31051
31221
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31222
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
31223
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31224
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
31225
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
31226
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
31227
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
31052
31228
  * @param {*} [options] Override http request option.
31053
31229
  * @throws {RequiredError}
31054
31230
  */
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));
31231
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31232
+ return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
31057
31233
  },
31058
31234
  /**
31059
31235
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
@@ -31110,18 +31286,22 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31110
31286
  return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
31111
31287
  },
31112
31288
  /**
31113
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
31289
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31114
31290
  * @summary Get payment transactions
31115
31291
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31116
31292
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31117
31293
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31118
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31119
- * @param {number} [offset] Number of results to skip (default: 0)
31294
+ * @param {number} [page] Page number (default: 1)
31295
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31296
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31297
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31298
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
31299
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31120
31300
  * @param {*} [options] Override http request option.
31121
31301
  * @throws {RequiredError}
31122
31302
  */
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));
31303
+ adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31304
+ return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31125
31305
  },
31126
31306
  /**
31127
31307
  * Generates receipts for all completed payments without receipts in the organization
@@ -31143,15 +31323,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31143
31323
  return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
31144
31324
  },
31145
31325
  /**
31146
- * Retrieves a paginated list of receipts for the organization
31326
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
31147
31327
  * @summary List receipts
31148
31328
  * @param {number} [page] Page number (default: 1)
31149
31329
  * @param {number} [pageSize] Page size (default: 20, max: 100)
31330
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
31331
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31150
31332
  * @param {*} [options] Override http request option.
31151
31333
  * @throws {RequiredError}
31152
31334
  */
31153
- adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31154
- return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
31335
+ adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31336
+ return localVarFp.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31155
31337
  },
31156
31338
  /**
31157
31339
  * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
@@ -31293,51 +31475,63 @@ export class BillingDashboardApi extends BaseAPI {
31293
31475
  }
31294
31476
 
31295
31477
  /**
31296
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
31478
+ * 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
31479
  * @summary Get credit ledger
31298
31480
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31299
31481
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31300
31482
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31301
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31302
- * @param {number} [offset] Number of results to skip (default: 0)
31483
+ * @param {number} [page] Page number (default: 1)
31484
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31485
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31486
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31487
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
31488
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31303
31489
  * @param {*} [options] Override http request option.
31304
31490
  * @throws {RequiredError}
31305
31491
  * @memberof BillingDashboardApi
31306
31492
  */
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));
31493
+ public adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31494
+ return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31309
31495
  }
31310
31496
 
31311
31497
  /**
31312
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
31498
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31313
31499
  * @summary Get credit purchases
31314
31500
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31315
31501
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31316
31502
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31317
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31318
- * @param {number} [offset] Number of results to skip (default: 0)
31503
+ * @param {number} [page] Page number (default: 1)
31504
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31505
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31506
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31507
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
31508
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31319
31509
  * @param {*} [options] Override http request option.
31320
31510
  * @throws {RequiredError}
31321
31511
  * @memberof BillingDashboardApi
31322
31512
  */
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));
31513
+ public adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31514
+ return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31325
31515
  }
31326
31516
 
31327
31517
  /**
31328
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
31518
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31329
31519
  * @summary Get credit transactions
31330
31520
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31331
31521
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31332
31522
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31333
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31334
- * @param {number} [offset] Number of results to skip (default: 0)
31523
+ * @param {number} [page] Page number (default: 1)
31524
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31525
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31526
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31527
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
31528
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31335
31529
  * @param {*} [options] Override http request option.
31336
31530
  * @throws {RequiredError}
31337
31531
  * @memberof BillingDashboardApi
31338
31532
  */
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));
31533
+ public adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31534
+ return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31341
31535
  }
31342
31536
 
31343
31537
  /**
@@ -31384,12 +31578,14 @@ export class BillingDashboardApi extends BaseAPI {
31384
31578
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31385
31579
  * @param {number} [page] Page number (default: 1)
31386
31580
  * @param {number} [limit] Number of results per page (default: 20, max: 100)
31581
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
31582
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31387
31583
  * @param {*} [options] Override http request option.
31388
31584
  * @throws {RequiredError}
31389
31585
  * @memberof BillingDashboardApi
31390
31586
  */
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));
31587
+ public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31588
+ return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31393
31589
  }
31394
31590
 
31395
31591
  /**
@@ -31462,12 +31658,18 @@ export class BillingDashboardApi extends BaseAPI {
31462
31658
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31463
31659
  * @param {number} [page] Page number (default: 1)
31464
31660
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31661
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
31662
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31663
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
31664
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
31665
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
31666
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
31465
31667
  * @param {*} [options] Override http request option.
31466
31668
  * @throws {RequiredError}
31467
31669
  * @memberof BillingDashboardApi
31468
31670
  */
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));
31671
+ public adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) {
31672
+ return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
31471
31673
  }
31472
31674
 
31473
31675
  /**
@@ -31535,19 +31737,23 @@ export class BillingDashboardApi extends BaseAPI {
31535
31737
  }
31536
31738
 
31537
31739
  /**
31538
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
31740
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
31539
31741
  * @summary Get payment transactions
31540
31742
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31541
31743
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31542
31744
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31543
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
31544
- * @param {number} [offset] Number of results to skip (default: 0)
31745
+ * @param {number} [page] Page number (default: 1)
31746
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
31747
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31748
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
31749
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
31750
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31545
31751
  * @param {*} [options] Override http request option.
31546
31752
  * @throws {RequiredError}
31547
31753
  * @memberof BillingDashboardApi
31548
31754
  */
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));
31755
+ public adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31756
+ return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31551
31757
  }
31552
31758
 
31553
31759
  /**
@@ -31574,16 +31780,18 @@ export class BillingDashboardApi extends BaseAPI {
31574
31780
  }
31575
31781
 
31576
31782
  /**
31577
- * Retrieves a paginated list of receipts for the organization
31783
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
31578
31784
  * @summary List receipts
31579
31785
  * @param {number} [page] Page number (default: 1)
31580
31786
  * @param {number} [pageSize] Page size (default: 20, max: 100)
31787
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
31788
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
31581
31789
  * @param {*} [options] Override http request option.
31582
31790
  * @throws {RequiredError}
31583
31791
  * @memberof BillingDashboardApi
31584
31792
  */
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));
31793
+ public adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31794
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31587
31795
  }
31588
31796
 
31589
31797
  /**