@seekora-ai/admin-api 1.1.10 → 1.1.12

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
@@ -29194,12 +29194,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29194
29194
  * @param {number} [pageSize] Page size (default: 50, max: 100)
29195
29195
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
29196
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)
29197
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
29198
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
29199
29199
  * @param {*} [options] Override http request option.
29200
29200
  * @throws {RequiredError}
29201
29201
  */
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> => {
29202
+ adminBillingCreditLedgerGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29203
29203
  const localVarPath = `/admin/billing/credit-ledger`;
29204
29204
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29205
29205
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29272,12 +29272,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29272
29272
  * @param {number} [pageSize] Page size (default: 50, max: 100)
29273
29273
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
29274
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)
29275
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
29276
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
29277
29277
  * @param {*} [options] Override http request option.
29278
29278
  * @throws {RequiredError}
29279
29279
  */
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> => {
29280
+ adminBillingCreditPurchasesGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditPurchasesGetSortByEnum, sortOrder?: AdminBillingCreditPurchasesGetSortOrderEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29281
29281
  const localVarPath = `/admin/billing/credit-purchases`;
29282
29282
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29283
29283
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29350,12 +29350,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29350
29350
  * @param {number} [pageSize] Page size (default: 50, max: 100)
29351
29351
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
29352
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)
29353
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
29354
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
29355
29355
  * @param {*} [options] Override http request option.
29356
29356
  * @throws {RequiredError}
29357
29357
  */
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> => {
29358
+ adminBillingCreditTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditTransactionsGetSortByEnum, sortOrder?: AdminBillingCreditTransactionsGetSortOrderEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29359
29359
  const localVarPath = `/admin/billing/credit-transactions`;
29360
29360
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29361
29361
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29526,20 +29526,22 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29526
29526
  };
29527
29527
  },
29528
29528
  /**
29529
- * 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.
29530
29530
  * @summary Get invoices
29531
29531
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29532
29532
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
29533
29533
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29534
29534
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29535
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
29535
29536
  * @param {number} [page] Page number (default: 1)
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)
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 {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
29540
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
29539
29541
  * @param {*} [options] Override http request option.
29540
29542
  * @throws {RequiredError}
29541
29543
  */
29542
- adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29544
+ adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29543
29545
  const localVarPath = `/admin/billing/invoices`;
29544
29546
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29545
29547
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29571,10 +29573,18 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29571
29573
  localVarQueryParameter['end_date'] = endDate;
29572
29574
  }
29573
29575
 
29576
+ if (search !== undefined) {
29577
+ localVarQueryParameter['search'] = search;
29578
+ }
29579
+
29574
29580
  if (page !== undefined) {
29575
29581
  localVarQueryParameter['page'] = page;
29576
29582
  }
29577
29583
 
29584
+ if (pageSize !== undefined) {
29585
+ localVarQueryParameter['page_size'] = pageSize;
29586
+ }
29587
+
29578
29588
  if (limit !== undefined) {
29579
29589
  localVarQueryParameter['limit'] = limit;
29580
29590
  }
@@ -29794,15 +29804,16 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29794
29804
  };
29795
29805
  },
29796
29806
  /**
29797
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
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.
29798
29808
  * @summary Get orders
29799
29809
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
29800
29810
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
29801
29811
  * @param {string} [endDate] End date (YYYY-MM-DD format)
29802
29812
  * @param {number} [page] Page number (default: 1)
29803
29813
  * @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)
29814
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
29815
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
29816
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
29806
29817
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
29807
29818
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
29808
29819
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -29810,7 +29821,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29810
29821
  * @param {*} [options] Override http request option.
29811
29822
  * @throws {RequiredError}
29812
29823
  */
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> => {
29824
+ adminBillingOrdersGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingOrdersGetSortByEnum, sortOrder?: AdminBillingOrdersGetSortOrderEnum, search?: string, status?: string, gateway?: string, paymentType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29814
29825
  const localVarPath = `/admin/billing/orders`;
29815
29826
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29816
29827
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29846,6 +29857,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29846
29857
  localVarQueryParameter['page_size'] = pageSize;
29847
29858
  }
29848
29859
 
29860
+ if (limit !== undefined) {
29861
+ localVarQueryParameter['limit'] = limit;
29862
+ }
29863
+
29849
29864
  if (sortBy !== undefined) {
29850
29865
  localVarQueryParameter['sort_by'] = sortBy;
29851
29866
  }
@@ -30100,12 +30115,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
30100
30115
  * @param {number} [pageSize] Page size (default: 50, max: 100)
30101
30116
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30102
30117
  * @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)
30118
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
30119
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
30105
30120
  * @param {*} [options] Override http request option.
30106
30121
  * @throws {RequiredError}
30107
30122
  */
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> => {
30123
+ adminBillingPaymentTransactionsGet: async (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingPaymentTransactionsGetSortByEnum, sortOrder?: AdminBillingPaymentTransactionsGetSortOrderEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30109
30124
  const localVarPath = `/admin/billing/payment-transactions`;
30110
30125
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30111
30126
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -30588,12 +30603,12 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30588
30603
  * @param {number} [pageSize] Page size (default: 50, max: 100)
30589
30604
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30590
30605
  * @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)
30606
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
30607
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
30593
30608
  * @param {*} [options] Override http request option.
30594
30609
  * @throws {RequiredError}
30595
30610
  */
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>> {
30611
+ async adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30597
30612
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30598
30613
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30599
30614
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']?.[localVarOperationServerIndex]?.url;
@@ -30609,12 +30624,12 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30609
30624
  * @param {number} [pageSize] Page size (default: 50, max: 100)
30610
30625
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30611
30626
  * @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)
30627
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
30628
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
30614
30629
  * @param {*} [options] Override http request option.
30615
30630
  * @throws {RequiredError}
30616
30631
  */
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>> {
30632
+ async adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditPurchasesGetSortByEnum, sortOrder?: AdminBillingCreditPurchasesGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30618
30633
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30619
30634
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30620
30635
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditPurchasesGet']?.[localVarOperationServerIndex]?.url;
@@ -30630,12 +30645,12 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30630
30645
  * @param {number} [pageSize] Page size (default: 50, max: 100)
30631
30646
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30632
30647
  * @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)
30648
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
30649
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
30635
30650
  * @param {*} [options] Override http request option.
30636
30651
  * @throws {RequiredError}
30637
30652
  */
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>> {
30653
+ async adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditTransactionsGetSortByEnum, sortOrder?: AdminBillingCreditTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30639
30654
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30640
30655
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30641
30656
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']?.[localVarOperationServerIndex]?.url;
@@ -30680,21 +30695,23 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30680
30695
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30681
30696
  },
30682
30697
  /**
30683
- * 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.
30684
30699
  * @summary Get invoices
30685
30700
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30686
30701
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
30687
30702
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30688
30703
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30704
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
30689
30705
  * @param {number} [page] Page number (default: 1)
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)
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 {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
30709
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
30693
30710
  * @param {*} [options] Override http request option.
30694
30711
  * @throws {RequiredError}
30695
30712
  */
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);
30713
+ async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, 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);
30698
30715
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30699
30716
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
30700
30717
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30767,15 +30784,16 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30767
30784
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30768
30785
  },
30769
30786
  /**
30770
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
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.
30771
30788
  * @summary Get orders
30772
30789
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
30773
30790
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
30774
30791
  * @param {string} [endDate] End date (YYYY-MM-DD format)
30775
30792
  * @param {number} [page] Page number (default: 1)
30776
30793
  * @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)
30794
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30795
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
30796
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
30779
30797
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
30780
30798
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
30781
30799
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -30783,8 +30801,8 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30783
30801
  * @param {*} [options] Override http request option.
30784
30802
  * @throws {RequiredError}
30785
30803
  */
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);
30804
+ async adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingOrdersGetSortByEnum, sortOrder?: AdminBillingOrdersGetSortOrderEnum, 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);
30788
30806
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30789
30807
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']?.[localVarOperationServerIndex]?.url;
30790
30808
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -30868,12 +30886,12 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
30868
30886
  * @param {number} [pageSize] Page size (default: 50, max: 100)
30869
30887
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
30870
30888
  * @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)
30889
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
30890
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
30873
30891
  * @param {*} [options] Override http request option.
30874
30892
  * @throws {RequiredError}
30875
30893
  */
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>> {
30894
+ async adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingPaymentTransactionsGetSortByEnum, sortOrder?: AdminBillingPaymentTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30877
30895
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
30878
30896
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30879
30897
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']?.[localVarOperationServerIndex]?.url;
@@ -31069,12 +31087,12 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31069
31087
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31070
31088
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31071
31089
  * @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)
31090
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
31091
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
31074
31092
  * @param {*} [options] Override http request option.
31075
31093
  * @throws {RequiredError}
31076
31094
  */
31077
- adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31095
+ adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31078
31096
  return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31079
31097
  },
31080
31098
  /**
@@ -31087,12 +31105,12 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31087
31105
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31088
31106
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31089
31107
  * @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)
31108
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
31109
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
31092
31110
  * @param {*} [options] Override http request option.
31093
31111
  * @throws {RequiredError}
31094
31112
  */
31095
- adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31113
+ adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditPurchasesGetSortByEnum, sortOrder?: AdminBillingCreditPurchasesGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31096
31114
  return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31097
31115
  },
31098
31116
  /**
@@ -31105,12 +31123,12 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31105
31123
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31106
31124
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31107
31125
  * @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)
31126
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
31127
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
31110
31128
  * @param {*} [options] Override http request option.
31111
31129
  * @throws {RequiredError}
31112
31130
  */
31113
- adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31131
+ adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditTransactionsGetSortByEnum, sortOrder?: AdminBillingCreditTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31114
31132
  return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31115
31133
  },
31116
31134
  /**
@@ -31143,21 +31161,23 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31143
31161
  return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
31144
31162
  },
31145
31163
  /**
31146
- * 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.
31147
31165
  * @summary Get invoices
31148
31166
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31149
31167
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
31150
31168
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31151
31169
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31170
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
31152
31171
  * @param {number} [page] Page number (default: 1)
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)
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 {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
31175
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
31156
31176
  * @param {*} [options] Override http request option.
31157
31177
  * @throws {RequiredError}
31158
31178
  */
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));
31179
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31180
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31161
31181
  },
31162
31182
  /**
31163
31183
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -31212,15 +31232,16 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31212
31232
  return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
31213
31233
  },
31214
31234
  /**
31215
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
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.
31216
31236
  * @summary Get orders
31217
31237
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31218
31238
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31219
31239
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31220
31240
  * @param {number} [page] Page number (default: 1)
31221
31241
  * @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)
31242
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31243
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
31244
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
31224
31245
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
31225
31246
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
31226
31247
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -31228,8 +31249,8 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31228
31249
  * @param {*} [options] Override http request option.
31229
31250
  * @throws {RequiredError}
31230
31251
  */
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));
31252
+ adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingOrdersGetSortByEnum, sortOrder?: AdminBillingOrdersGetSortOrderEnum, 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));
31233
31254
  },
31234
31255
  /**
31235
31256
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
@@ -31295,12 +31316,12 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
31295
31316
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31296
31317
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31297
31318
  * @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)
31319
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
31320
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
31300
31321
  * @param {*} [options] Override http request option.
31301
31322
  * @throws {RequiredError}
31302
31323
  */
31303
- adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31324
+ adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingPaymentTransactionsGetSortByEnum, sortOrder?: AdminBillingPaymentTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31304
31325
  return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
31305
31326
  },
31306
31327
  /**
@@ -31484,13 +31505,13 @@ export class BillingDashboardApi extends BaseAPI {
31484
31505
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31485
31506
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31486
31507
  * @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)
31508
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
31509
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
31489
31510
  * @param {*} [options] Override http request option.
31490
31511
  * @throws {RequiredError}
31491
31512
  * @memberof BillingDashboardApi
31492
31513
  */
31493
- public adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31514
+ public adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options?: RawAxiosRequestConfig) {
31494
31515
  return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31495
31516
  }
31496
31517
 
@@ -31504,13 +31525,13 @@ export class BillingDashboardApi extends BaseAPI {
31504
31525
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31505
31526
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31506
31527
  * @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)
31528
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
31529
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
31509
31530
  * @param {*} [options] Override http request option.
31510
31531
  * @throws {RequiredError}
31511
31532
  * @memberof BillingDashboardApi
31512
31533
  */
31513
- public adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31534
+ public adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditPurchasesGetSortByEnum, sortOrder?: AdminBillingCreditPurchasesGetSortOrderEnum, options?: RawAxiosRequestConfig) {
31514
31535
  return BillingDashboardApiFp(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31515
31536
  }
31516
31537
 
@@ -31524,13 +31545,13 @@ export class BillingDashboardApi extends BaseAPI {
31524
31545
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31525
31546
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31526
31547
  * @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)
31548
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
31549
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
31529
31550
  * @param {*} [options] Override http request option.
31530
31551
  * @throws {RequiredError}
31531
31552
  * @memberof BillingDashboardApi
31532
31553
  */
31533
- public adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31554
+ public adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditTransactionsGetSortByEnum, sortOrder?: AdminBillingCreditTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig) {
31534
31555
  return BillingDashboardApiFp(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31535
31556
  }
31536
31557
 
@@ -31570,22 +31591,24 @@ export class BillingDashboardApi extends BaseAPI {
31570
31591
  }
31571
31592
 
31572
31593
  /**
31573
- * 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.
31574
31595
  * @summary Get invoices
31575
31596
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31576
31597
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
31577
31598
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31578
31599
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31600
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
31579
31601
  * @param {number} [page] Page number (default: 1)
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)
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 {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
31605
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
31583
31606
  * @param {*} [options] Override http request option.
31584
31607
  * @throws {RequiredError}
31585
31608
  * @memberof BillingDashboardApi
31586
31609
  */
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));
31610
+ public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, 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));
31589
31612
  }
31590
31613
 
31591
31614
  /**
@@ -31651,15 +31674,16 @@ export class BillingDashboardApi extends BaseAPI {
31651
31674
  }
31652
31675
 
31653
31676
  /**
31654
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
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.
31655
31678
  * @summary Get orders
31656
31679
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
31657
31680
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
31658
31681
  * @param {string} [endDate] End date (YYYY-MM-DD format)
31659
31682
  * @param {number} [page] Page number (default: 1)
31660
31683
  * @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)
31684
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31685
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
31686
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
31663
31687
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
31664
31688
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
31665
31689
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -31668,8 +31692,8 @@ export class BillingDashboardApi extends BaseAPI {
31668
31692
  * @throws {RequiredError}
31669
31693
  * @memberof BillingDashboardApi
31670
31694
  */
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));
31695
+ public adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingOrdersGetSortByEnum, sortOrder?: AdminBillingOrdersGetSortOrderEnum, 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));
31673
31697
  }
31674
31698
 
31675
31699
  /**
@@ -31746,13 +31770,13 @@ export class BillingDashboardApi extends BaseAPI {
31746
31770
  * @param {number} [pageSize] Page size (default: 50, max: 100)
31747
31771
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
31748
31772
  * @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)
31773
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
31774
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
31751
31775
  * @param {*} [options] Override http request option.
31752
31776
  * @throws {RequiredError}
31753
31777
  * @memberof BillingDashboardApi
31754
31778
  */
31755
- public adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
31779
+ public adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingPaymentTransactionsGetSortByEnum, sortOrder?: AdminBillingPaymentTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig) {
31756
31780
  return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
31757
31781
  }
31758
31782
 
@@ -31851,6 +31875,136 @@ export class BillingDashboardApi extends BaseAPI {
31851
31875
  }
31852
31876
  }
31853
31877
 
31878
+ /**
31879
+ * @export
31880
+ */
31881
+ export const AdminBillingCreditLedgerGetSortByEnum = {
31882
+ Id: 'id',
31883
+ Credits: 'credits',
31884
+ TransactionDate: 'transaction_date',
31885
+ TransactionType: 'transaction_type'
31886
+ } as const;
31887
+ export type AdminBillingCreditLedgerGetSortByEnum = typeof AdminBillingCreditLedgerGetSortByEnum[keyof typeof AdminBillingCreditLedgerGetSortByEnum];
31888
+ /**
31889
+ * @export
31890
+ */
31891
+ export const AdminBillingCreditLedgerGetSortOrderEnum = {
31892
+ Asc: 'asc',
31893
+ Desc: 'desc',
31894
+ Asc2: 'ASC',
31895
+ Desc2: 'DESC'
31896
+ } as const;
31897
+ export type AdminBillingCreditLedgerGetSortOrderEnum = typeof AdminBillingCreditLedgerGetSortOrderEnum[keyof typeof AdminBillingCreditLedgerGetSortOrderEnum];
31898
+ /**
31899
+ * @export
31900
+ */
31901
+ export const AdminBillingCreditPurchasesGetSortByEnum = {
31902
+ Id: 'id',
31903
+ Amount: 'amount',
31904
+ CreatedAt: 'created_at',
31905
+ CreditsPurchased: 'credits_purchased'
31906
+ } as const;
31907
+ export type AdminBillingCreditPurchasesGetSortByEnum = typeof AdminBillingCreditPurchasesGetSortByEnum[keyof typeof AdminBillingCreditPurchasesGetSortByEnum];
31908
+ /**
31909
+ * @export
31910
+ */
31911
+ export const AdminBillingCreditPurchasesGetSortOrderEnum = {
31912
+ Asc: 'asc',
31913
+ Desc: 'desc',
31914
+ Asc2: 'ASC',
31915
+ Desc2: 'DESC'
31916
+ } as const;
31917
+ export type AdminBillingCreditPurchasesGetSortOrderEnum = typeof AdminBillingCreditPurchasesGetSortOrderEnum[keyof typeof AdminBillingCreditPurchasesGetSortOrderEnum];
31918
+ /**
31919
+ * @export
31920
+ */
31921
+ export const AdminBillingCreditTransactionsGetSortByEnum = {
31922
+ Id: 'id',
31923
+ CreditsUsed: 'credits_used',
31924
+ TransactionDate: 'transaction_date',
31925
+ TransactionType: 'transaction_type'
31926
+ } as const;
31927
+ export type AdminBillingCreditTransactionsGetSortByEnum = typeof AdminBillingCreditTransactionsGetSortByEnum[keyof typeof AdminBillingCreditTransactionsGetSortByEnum];
31928
+ /**
31929
+ * @export
31930
+ */
31931
+ export const AdminBillingCreditTransactionsGetSortOrderEnum = {
31932
+ Asc: 'asc',
31933
+ Desc: 'desc',
31934
+ Asc2: 'ASC',
31935
+ Desc2: 'DESC'
31936
+ } as const;
31937
+ export type AdminBillingCreditTransactionsGetSortOrderEnum = typeof AdminBillingCreditTransactionsGetSortOrderEnum[keyof typeof AdminBillingCreditTransactionsGetSortOrderEnum];
31938
+ /**
31939
+ * @export
31940
+ */
31941
+ export const AdminBillingInvoicesGetSortByEnum = {
31942
+ Id: 'id',
31943
+ InvoiceId: 'invoice_id',
31944
+ InvoiceNumber: 'invoice_number',
31945
+ Amount: 'amount',
31946
+ TotalAmount: 'total_amount',
31947
+ CreatedAt: 'created_at',
31948
+ IssueDate: 'issue_date',
31949
+ DueDate: 'due_date',
31950
+ PaidDate: 'paid_date',
31951
+ Status: 'status'
31952
+ } as const;
31953
+ export type AdminBillingInvoicesGetSortByEnum = typeof AdminBillingInvoicesGetSortByEnum[keyof typeof AdminBillingInvoicesGetSortByEnum];
31954
+ /**
31955
+ * @export
31956
+ */
31957
+ export const AdminBillingInvoicesGetSortOrderEnum = {
31958
+ Asc: 'asc',
31959
+ Desc: 'desc',
31960
+ Asc2: 'ASC',
31961
+ Desc2: 'DESC'
31962
+ } as const;
31963
+ export type AdminBillingInvoicesGetSortOrderEnum = typeof AdminBillingInvoicesGetSortOrderEnum[keyof typeof AdminBillingInvoicesGetSortOrderEnum];
31964
+ /**
31965
+ * @export
31966
+ */
31967
+ export const AdminBillingOrdersGetSortByEnum = {
31968
+ Id: 'id',
31969
+ Amount: 'amount',
31970
+ CreatedAt: 'created_at',
31971
+ UpdatedAt: 'updated_at',
31972
+ Status: 'status'
31973
+ } as const;
31974
+ export type AdminBillingOrdersGetSortByEnum = typeof AdminBillingOrdersGetSortByEnum[keyof typeof AdminBillingOrdersGetSortByEnum];
31975
+ /**
31976
+ * @export
31977
+ */
31978
+ export const AdminBillingOrdersGetSortOrderEnum = {
31979
+ Asc: 'asc',
31980
+ Desc: 'desc',
31981
+ Asc2: 'ASC',
31982
+ Desc2: 'DESC'
31983
+ } as const;
31984
+ export type AdminBillingOrdersGetSortOrderEnum = typeof AdminBillingOrdersGetSortOrderEnum[keyof typeof AdminBillingOrdersGetSortOrderEnum];
31985
+ /**
31986
+ * @export
31987
+ */
31988
+ export const AdminBillingPaymentTransactionsGetSortByEnum = {
31989
+ PaymentId: 'payment_id',
31990
+ Amount: 'amount',
31991
+ PaymentDate: 'payment_date',
31992
+ CreatedAt: 'created_at',
31993
+ PaymentStatus: 'payment_status',
31994
+ Gateway: 'gateway',
31995
+ RefundAmount: 'refund_amount'
31996
+ } as const;
31997
+ export type AdminBillingPaymentTransactionsGetSortByEnum = typeof AdminBillingPaymentTransactionsGetSortByEnum[keyof typeof AdminBillingPaymentTransactionsGetSortByEnum];
31998
+ /**
31999
+ * @export
32000
+ */
32001
+ export const AdminBillingPaymentTransactionsGetSortOrderEnum = {
32002
+ Asc: 'asc',
32003
+ Desc: 'desc',
32004
+ Asc2: 'ASC',
32005
+ Desc2: 'DESC'
32006
+ } as const;
32007
+ export type AdminBillingPaymentTransactionsGetSortOrderEnum = typeof AdminBillingPaymentTransactionsGetSortOrderEnum[keyof typeof AdminBillingPaymentTransactionsGetSortOrderEnum];
31854
32008
  /**
31855
32009
  * @export
31856
32010
  */