@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/dist/api.d.ts CHANGED
@@ -25158,12 +25158,12 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25158
25158
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25159
25159
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25160
25160
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25161
- * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
25162
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25161
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
25162
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
25163
25163
  * @param {*} [options] Override http request option.
25164
25164
  * @throws {RequiredError}
25165
25165
  */
25166
- adminBillingCreditLedgerGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25166
+ adminBillingCreditLedgerGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25167
25167
  /**
25168
25168
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25169
25169
  * @summary Get credit purchases
@@ -25174,12 +25174,12 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25174
25174
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25175
25175
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25176
25176
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25177
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
25178
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25177
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
25178
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
25179
25179
  * @param {*} [options] Override http request option.
25180
25180
  * @throws {RequiredError}
25181
25181
  */
25182
- adminBillingCreditPurchasesGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25182
+ adminBillingCreditPurchasesGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditPurchasesGetSortByEnum, sortOrder?: AdminBillingCreditPurchasesGetSortOrderEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25183
25183
  /**
25184
25184
  * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25185
25185
  * @summary Get credit transactions
@@ -25190,12 +25190,12 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25190
25190
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25191
25191
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25192
25192
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25193
- * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
25194
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25193
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
25194
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
25195
25195
  * @param {*} [options] Override http request option.
25196
25196
  * @throws {RequiredError}
25197
25197
  */
25198
- adminBillingCreditTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25198
+ adminBillingCreditTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditTransactionsGetSortByEnum, sortOrder?: AdminBillingCreditTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25199
25199
  /**
25200
25200
  * Automatically generates invoices for all completed payments without invoices
25201
25201
  * @summary Auto-generate invoices
@@ -25220,20 +25220,22 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25220
25220
  */
25221
25221
  adminBillingInvoicesGeneratePaymentIdPost: (paymentId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25222
25222
  /**
25223
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25223
+ * 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.
25224
25224
  * @summary Get invoices
25225
25225
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25226
25226
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25227
25227
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25228
25228
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25229
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25229
25230
  * @param {number} [page] Page number (default: 1)
25230
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25231
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25232
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25231
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25232
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25233
+ * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
25234
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
25233
25235
  * @param {*} [options] Override http request option.
25234
25236
  * @throws {RequiredError}
25235
25237
  */
25236
- adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25238
+ adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25237
25239
  /**
25238
25240
  * Deletes an invoice (soft delete by setting status to cancelled)
25239
25241
  * @summary Delete invoice
@@ -25277,15 +25279,16 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25277
25279
  */
25278
25280
  adminBillingInvoicesInvoiceIdPayPost: (invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25279
25281
  /**
25280
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25282
+ * 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.
25281
25283
  * @summary Get orders
25282
25284
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25283
25285
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25284
25286
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25285
25287
  * @param {number} [page] Page number (default: 1)
25286
25288
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25287
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25288
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25289
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25290
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
25291
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
25289
25292
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
25290
25293
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
25291
25294
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -25293,7 +25296,7 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25293
25296
  * @param {*} [options] Override http request option.
25294
25297
  * @throws {RequiredError}
25295
25298
  */
25296
- 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<RequestArgs>;
25299
+ 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<RequestArgs>;
25297
25300
  /**
25298
25301
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25299
25302
  * @summary Get single order with transactions and invoices
@@ -25348,12 +25351,12 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
25348
25351
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25349
25352
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25350
25353
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25351
- * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
25352
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25354
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
25355
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
25353
25356
  * @param {*} [options] Override http request option.
25354
25357
  * @throws {RequiredError}
25355
25358
  */
25356
- adminBillingPaymentTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25359
+ adminBillingPaymentTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingPaymentTransactionsGetSortByEnum, sortOrder?: AdminBillingPaymentTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25357
25360
  /**
25358
25361
  * Generates receipts for all completed payments without receipts in the organization
25359
25362
  * @summary Auto-generate receipts for organization
@@ -25493,12 +25496,12 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25493
25496
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25494
25497
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25495
25498
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25496
- * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
25497
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25499
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
25500
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
25498
25501
  * @param {*} [options] Override http request option.
25499
25502
  * @throws {RequiredError}
25500
25503
  */
25501
- 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>>;
25504
+ 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>>;
25502
25505
  /**
25503
25506
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25504
25507
  * @summary Get credit purchases
@@ -25509,12 +25512,12 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25509
25512
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25510
25513
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25511
25514
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25512
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
25513
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25515
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
25516
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
25514
25517
  * @param {*} [options] Override http request option.
25515
25518
  * @throws {RequiredError}
25516
25519
  */
25517
- 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>>;
25520
+ 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>>;
25518
25521
  /**
25519
25522
  * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25520
25523
  * @summary Get credit transactions
@@ -25525,12 +25528,12 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25525
25528
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25526
25529
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25527
25530
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25528
- * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
25529
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25531
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
25532
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
25530
25533
  * @param {*} [options] Override http request option.
25531
25534
  * @throws {RequiredError}
25532
25535
  */
25533
- 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>>;
25536
+ 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>>;
25534
25537
  /**
25535
25538
  * Automatically generates invoices for all completed payments without invoices
25536
25539
  * @summary Auto-generate invoices
@@ -25555,20 +25558,22 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25555
25558
  */
25556
25559
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25557
25560
  /**
25558
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25561
+ * 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.
25559
25562
  * @summary Get invoices
25560
25563
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25561
25564
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25562
25565
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25563
25566
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25567
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25564
25568
  * @param {number} [page] Page number (default: 1)
25565
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25566
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25567
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25569
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25570
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25571
+ * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
25572
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
25568
25573
  * @param {*} [options] Override http request option.
25569
25574
  * @throws {RequiredError}
25570
25575
  */
25571
- 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>>;
25576
+ 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>>;
25572
25577
  /**
25573
25578
  * Deletes an invoice (soft delete by setting status to cancelled)
25574
25579
  * @summary Delete invoice
@@ -25612,15 +25617,16 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25612
25617
  */
25613
25618
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>>;
25614
25619
  /**
25615
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25620
+ * 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.
25616
25621
  * @summary Get orders
25617
25622
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25618
25623
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25619
25624
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25620
25625
  * @param {number} [page] Page number (default: 1)
25621
25626
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25622
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25623
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25627
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25628
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
25629
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
25624
25630
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
25625
25631
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
25626
25632
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -25628,7 +25634,7 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25628
25634
  * @param {*} [options] Override http request option.
25629
25635
  * @throws {RequiredError}
25630
25636
  */
25631
- 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>>;
25637
+ 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>>;
25632
25638
  /**
25633
25639
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25634
25640
  * @summary Get single order with transactions and invoices
@@ -25683,12 +25689,12 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
25683
25689
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25684
25690
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25685
25691
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25686
- * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
25687
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25692
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
25693
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
25688
25694
  * @param {*} [options] Override http request option.
25689
25695
  * @throws {RequiredError}
25690
25696
  */
25691
- 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>>;
25697
+ 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>>;
25692
25698
  /**
25693
25699
  * Generates receipts for all completed payments without receipts in the organization
25694
25700
  * @summary Auto-generate receipts for organization
@@ -25828,12 +25834,12 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25828
25834
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25829
25835
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25830
25836
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25831
- * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
25832
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25837
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
25838
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
25833
25839
  * @param {*} [options] Override http request option.
25834
25840
  * @throws {RequiredError}
25835
25841
  */
25836
- adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25842
+ adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25837
25843
  /**
25838
25844
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25839
25845
  * @summary Get credit purchases
@@ -25844,12 +25850,12 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25844
25850
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25845
25851
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25846
25852
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25847
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
25848
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25853
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
25854
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
25849
25855
  * @param {*} [options] Override http request option.
25850
25856
  * @throws {RequiredError}
25851
25857
  */
25852
- adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25858
+ adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditPurchasesGetSortByEnum, sortOrder?: AdminBillingCreditPurchasesGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25853
25859
  /**
25854
25860
  * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25855
25861
  * @summary Get credit transactions
@@ -25860,12 +25866,12 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25860
25866
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25861
25867
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25862
25868
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
25863
- * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
25864
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25869
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
25870
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
25865
25871
  * @param {*} [options] Override http request option.
25866
25872
  * @throws {RequiredError}
25867
25873
  */
25868
- adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25874
+ adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditTransactionsGetSortByEnum, sortOrder?: AdminBillingCreditTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25869
25875
  /**
25870
25876
  * Automatically generates invoices for all completed payments without invoices
25871
25877
  * @summary Auto-generate invoices
@@ -25890,20 +25896,22 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25890
25896
  */
25891
25897
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25892
25898
  /**
25893
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
25899
+ * 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.
25894
25900
  * @summary Get invoices
25895
25901
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25896
25902
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
25897
25903
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25898
25904
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25905
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
25899
25906
  * @param {number} [page] Page number (default: 1)
25900
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
25901
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
25902
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25907
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
25908
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
25909
+ * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
25910
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
25903
25911
  * @param {*} [options] Override http request option.
25904
25912
  * @throws {RequiredError}
25905
25913
  */
25906
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25914
+ 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>;
25907
25915
  /**
25908
25916
  * Deletes an invoice (soft delete by setting status to cancelled)
25909
25917
  * @summary Delete invoice
@@ -25947,15 +25955,16 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25947
25955
  */
25948
25956
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>;
25949
25957
  /**
25950
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
25958
+ * 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.
25951
25959
  * @summary Get orders
25952
25960
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
25953
25961
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
25954
25962
  * @param {string} [endDate] End date (YYYY-MM-DD format)
25955
25963
  * @param {number} [page] Page number (default: 1)
25956
25964
  * @param {number} [pageSize] Page size (default: 50, max: 100)
25957
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
25958
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
25965
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
25966
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
25967
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
25959
25968
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
25960
25969
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
25961
25970
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -25963,7 +25972,7 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
25963
25972
  * @param {*} [options] Override http request option.
25964
25973
  * @throws {RequiredError}
25965
25974
  */
25966
- 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>;
25975
+ 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>;
25967
25976
  /**
25968
25977
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
25969
25978
  * @summary Get single order with transactions and invoices
@@ -26018,12 +26027,12 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
26018
26027
  * @param {number} [pageSize] Page size (default: 50, max: 100)
26019
26028
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
26020
26029
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
26021
- * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
26022
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26030
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
26031
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
26023
26032
  * @param {*} [options] Override http request option.
26024
26033
  * @throws {RequiredError}
26025
26034
  */
26026
- adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
26035
+ adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingPaymentTransactionsGetSortByEnum, sortOrder?: AdminBillingPaymentTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
26027
26036
  /**
26028
26037
  * Generates receipts for all completed payments without receipts in the organization
26029
26038
  * @summary Auto-generate receipts for organization
@@ -26171,13 +26180,13 @@ export declare class BillingDashboardApi extends BaseAPI {
26171
26180
  * @param {number} [pageSize] Page size (default: 50, max: 100)
26172
26181
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
26173
26182
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
26174
- * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
26175
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26183
+ * @param {AdminBillingCreditLedgerGetSortByEnum} [sortBy] Field to sort by
26184
+ * @param {AdminBillingCreditLedgerGetSortOrderEnum} [sortOrder] Sort direction
26176
26185
  * @param {*} [options] Override http request option.
26177
26186
  * @throws {RequiredError}
26178
26187
  * @memberof BillingDashboardApi
26179
26188
  */
26180
- adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26189
+ adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26181
26190
  /**
26182
26191
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
26183
26192
  * @summary Get credit purchases
@@ -26188,13 +26197,13 @@ export declare class BillingDashboardApi extends BaseAPI {
26188
26197
  * @param {number} [pageSize] Page size (default: 50, max: 100)
26189
26198
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
26190
26199
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
26191
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
26192
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26200
+ * @param {AdminBillingCreditPurchasesGetSortByEnum} [sortBy] Field to sort by
26201
+ * @param {AdminBillingCreditPurchasesGetSortOrderEnum} [sortOrder] Sort direction
26193
26202
  * @param {*} [options] Override http request option.
26194
26203
  * @throws {RequiredError}
26195
26204
  * @memberof BillingDashboardApi
26196
26205
  */
26197
- adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26206
+ adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditPurchasesGetSortByEnum, sortOrder?: AdminBillingCreditPurchasesGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26198
26207
  /**
26199
26208
  * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
26200
26209
  * @summary Get credit transactions
@@ -26205,13 +26214,13 @@ export declare class BillingDashboardApi extends BaseAPI {
26205
26214
  * @param {number} [pageSize] Page size (default: 50, max: 100)
26206
26215
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
26207
26216
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
26208
- * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
26209
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26217
+ * @param {AdminBillingCreditTransactionsGetSortByEnum} [sortBy] Field to sort by
26218
+ * @param {AdminBillingCreditTransactionsGetSortOrderEnum} [sortOrder] Sort direction
26210
26219
  * @param {*} [options] Override http request option.
26211
26220
  * @throws {RequiredError}
26212
26221
  * @memberof BillingDashboardApi
26213
26222
  */
26214
- adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26223
+ adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditTransactionsGetSortByEnum, sortOrder?: AdminBillingCreditTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26215
26224
  /**
26216
26225
  * Automatically generates invoices for all completed payments without invoices
26217
26226
  * @summary Auto-generate invoices
@@ -26239,21 +26248,23 @@ export declare class BillingDashboardApi extends BaseAPI {
26239
26248
  */
26240
26249
  adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26241
26250
  /**
26242
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
26251
+ * 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.
26243
26252
  * @summary Get invoices
26244
26253
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
26245
26254
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
26246
26255
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
26247
26256
  * @param {string} [endDate] End date (YYYY-MM-DD format)
26257
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
26248
26258
  * @param {number} [page] Page number (default: 1)
26249
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
26250
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
26251
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26259
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
26260
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
26261
+ * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
26262
+ * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
26252
26263
  * @param {*} [options] Override http request option.
26253
26264
  * @throws {RequiredError}
26254
26265
  * @memberof BillingDashboardApi
26255
26266
  */
26256
- adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26267
+ adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26257
26268
  /**
26258
26269
  * Deletes an invoice (soft delete by setting status to cancelled)
26259
26270
  * @summary Delete invoice
@@ -26302,15 +26313,16 @@ export declare class BillingDashboardApi extends BaseAPI {
26302
26313
  */
26303
26314
  adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseDataTypesPayInvoiceResponse, any, {}>>;
26304
26315
  /**
26305
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
26316
+ * 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.
26306
26317
  * @summary Get orders
26307
26318
  * @param {number} [orgId] Organization ID (defaults to user\&#39;s org)
26308
26319
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
26309
26320
  * @param {string} [endDate] End date (YYYY-MM-DD format)
26310
26321
  * @param {number} [page] Page number (default: 1)
26311
26322
  * @param {number} [pageSize] Page size (default: 50, max: 100)
26312
- * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
26313
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26323
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
26324
+ * @param {AdminBillingOrdersGetSortByEnum} [sortBy] Field to sort by
26325
+ * @param {AdminBillingOrdersGetSortOrderEnum} [sortOrder] Sort direction
26314
26326
  * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
26315
26327
  * @param {string} [status] Filter by order status (created, paid, failed, refunded)
26316
26328
  * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
@@ -26319,7 +26331,7 @@ export declare class BillingDashboardApi extends BaseAPI {
26319
26331
  * @throws {RequiredError}
26320
26332
  * @memberof BillingDashboardApi
26321
26333
  */
26322
- 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<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26334
+ 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<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26323
26335
  /**
26324
26336
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
26325
26337
  * @summary Get single order with transactions and invoices
@@ -26379,13 +26391,13 @@ export declare class BillingDashboardApi extends BaseAPI {
26379
26391
  * @param {number} [pageSize] Page size (default: 50, max: 100)
26380
26392
  * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
26381
26393
  * @param {number} [offset] Alternative: Number of results to skip (default: 0)
26382
- * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
26383
- * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
26394
+ * @param {AdminBillingPaymentTransactionsGetSortByEnum} [sortBy] Field to sort by
26395
+ * @param {AdminBillingPaymentTransactionsGetSortOrderEnum} [sortOrder] Sort direction
26384
26396
  * @param {*} [options] Override http request option.
26385
26397
  * @throws {RequiredError}
26386
26398
  * @memberof BillingDashboardApi
26387
26399
  */
26388
- adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26400
+ adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingPaymentTransactionsGetSortByEnum, sortOrder?: AdminBillingPaymentTransactionsGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26389
26401
  /**
26390
26402
  * Generates receipts for all completed payments without receipts in the organization
26391
26403
  * @summary Auto-generate receipts for organization
@@ -26460,6 +26472,136 @@ export declare class BillingDashboardApi extends BaseAPI {
26460
26472
  */
26461
26473
  adminBillingUsageDetailsGet(xstoreid?: string, startDate?: string, endDate?: string, granularity?: AdminBillingUsageDetailsGetGranularityEnum, chartPage?: number, chartPageSize?: number, endpointPage?: number, endpointPageSize?: number, consumptionPage?: number, consumptionPageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
26462
26474
  }
26475
+ /**
26476
+ * @export
26477
+ */
26478
+ export declare const AdminBillingCreditLedgerGetSortByEnum: {
26479
+ readonly Id: "id";
26480
+ readonly Credits: "credits";
26481
+ readonly TransactionDate: "transaction_date";
26482
+ readonly TransactionType: "transaction_type";
26483
+ };
26484
+ export type AdminBillingCreditLedgerGetSortByEnum = typeof AdminBillingCreditLedgerGetSortByEnum[keyof typeof AdminBillingCreditLedgerGetSortByEnum];
26485
+ /**
26486
+ * @export
26487
+ */
26488
+ export declare const AdminBillingCreditLedgerGetSortOrderEnum: {
26489
+ readonly Asc: "asc";
26490
+ readonly Desc: "desc";
26491
+ readonly Asc2: "ASC";
26492
+ readonly Desc2: "DESC";
26493
+ };
26494
+ export type AdminBillingCreditLedgerGetSortOrderEnum = typeof AdminBillingCreditLedgerGetSortOrderEnum[keyof typeof AdminBillingCreditLedgerGetSortOrderEnum];
26495
+ /**
26496
+ * @export
26497
+ */
26498
+ export declare const AdminBillingCreditPurchasesGetSortByEnum: {
26499
+ readonly Id: "id";
26500
+ readonly Amount: "amount";
26501
+ readonly CreatedAt: "created_at";
26502
+ readonly CreditsPurchased: "credits_purchased";
26503
+ };
26504
+ export type AdminBillingCreditPurchasesGetSortByEnum = typeof AdminBillingCreditPurchasesGetSortByEnum[keyof typeof AdminBillingCreditPurchasesGetSortByEnum];
26505
+ /**
26506
+ * @export
26507
+ */
26508
+ export declare const AdminBillingCreditPurchasesGetSortOrderEnum: {
26509
+ readonly Asc: "asc";
26510
+ readonly Desc: "desc";
26511
+ readonly Asc2: "ASC";
26512
+ readonly Desc2: "DESC";
26513
+ };
26514
+ export type AdminBillingCreditPurchasesGetSortOrderEnum = typeof AdminBillingCreditPurchasesGetSortOrderEnum[keyof typeof AdminBillingCreditPurchasesGetSortOrderEnum];
26515
+ /**
26516
+ * @export
26517
+ */
26518
+ export declare const AdminBillingCreditTransactionsGetSortByEnum: {
26519
+ readonly Id: "id";
26520
+ readonly CreditsUsed: "credits_used";
26521
+ readonly TransactionDate: "transaction_date";
26522
+ readonly TransactionType: "transaction_type";
26523
+ };
26524
+ export type AdminBillingCreditTransactionsGetSortByEnum = typeof AdminBillingCreditTransactionsGetSortByEnum[keyof typeof AdminBillingCreditTransactionsGetSortByEnum];
26525
+ /**
26526
+ * @export
26527
+ */
26528
+ export declare const AdminBillingCreditTransactionsGetSortOrderEnum: {
26529
+ readonly Asc: "asc";
26530
+ readonly Desc: "desc";
26531
+ readonly Asc2: "ASC";
26532
+ readonly Desc2: "DESC";
26533
+ };
26534
+ export type AdminBillingCreditTransactionsGetSortOrderEnum = typeof AdminBillingCreditTransactionsGetSortOrderEnum[keyof typeof AdminBillingCreditTransactionsGetSortOrderEnum];
26535
+ /**
26536
+ * @export
26537
+ */
26538
+ export declare const AdminBillingInvoicesGetSortByEnum: {
26539
+ readonly Id: "id";
26540
+ readonly InvoiceId: "invoice_id";
26541
+ readonly InvoiceNumber: "invoice_number";
26542
+ readonly Amount: "amount";
26543
+ readonly TotalAmount: "total_amount";
26544
+ readonly CreatedAt: "created_at";
26545
+ readonly IssueDate: "issue_date";
26546
+ readonly DueDate: "due_date";
26547
+ readonly PaidDate: "paid_date";
26548
+ readonly Status: "status";
26549
+ };
26550
+ export type AdminBillingInvoicesGetSortByEnum = typeof AdminBillingInvoicesGetSortByEnum[keyof typeof AdminBillingInvoicesGetSortByEnum];
26551
+ /**
26552
+ * @export
26553
+ */
26554
+ export declare const AdminBillingInvoicesGetSortOrderEnum: {
26555
+ readonly Asc: "asc";
26556
+ readonly Desc: "desc";
26557
+ readonly Asc2: "ASC";
26558
+ readonly Desc2: "DESC";
26559
+ };
26560
+ export type AdminBillingInvoicesGetSortOrderEnum = typeof AdminBillingInvoicesGetSortOrderEnum[keyof typeof AdminBillingInvoicesGetSortOrderEnum];
26561
+ /**
26562
+ * @export
26563
+ */
26564
+ export declare const AdminBillingOrdersGetSortByEnum: {
26565
+ readonly Id: "id";
26566
+ readonly Amount: "amount";
26567
+ readonly CreatedAt: "created_at";
26568
+ readonly UpdatedAt: "updated_at";
26569
+ readonly Status: "status";
26570
+ };
26571
+ export type AdminBillingOrdersGetSortByEnum = typeof AdminBillingOrdersGetSortByEnum[keyof typeof AdminBillingOrdersGetSortByEnum];
26572
+ /**
26573
+ * @export
26574
+ */
26575
+ export declare const AdminBillingOrdersGetSortOrderEnum: {
26576
+ readonly Asc: "asc";
26577
+ readonly Desc: "desc";
26578
+ readonly Asc2: "ASC";
26579
+ readonly Desc2: "DESC";
26580
+ };
26581
+ export type AdminBillingOrdersGetSortOrderEnum = typeof AdminBillingOrdersGetSortOrderEnum[keyof typeof AdminBillingOrdersGetSortOrderEnum];
26582
+ /**
26583
+ * @export
26584
+ */
26585
+ export declare const AdminBillingPaymentTransactionsGetSortByEnum: {
26586
+ readonly PaymentId: "payment_id";
26587
+ readonly Amount: "amount";
26588
+ readonly PaymentDate: "payment_date";
26589
+ readonly CreatedAt: "created_at";
26590
+ readonly PaymentStatus: "payment_status";
26591
+ readonly Gateway: "gateway";
26592
+ readonly RefundAmount: "refund_amount";
26593
+ };
26594
+ export type AdminBillingPaymentTransactionsGetSortByEnum = typeof AdminBillingPaymentTransactionsGetSortByEnum[keyof typeof AdminBillingPaymentTransactionsGetSortByEnum];
26595
+ /**
26596
+ * @export
26597
+ */
26598
+ export declare const AdminBillingPaymentTransactionsGetSortOrderEnum: {
26599
+ readonly Asc: "asc";
26600
+ readonly Desc: "desc";
26601
+ readonly Asc2: "ASC";
26602
+ readonly Desc2: "DESC";
26603
+ };
26604
+ export type AdminBillingPaymentTransactionsGetSortOrderEnum = typeof AdminBillingPaymentTransactionsGetSortOrderEnum[keyof typeof AdminBillingPaymentTransactionsGetSortOrderEnum];
26463
26605
  /**
26464
26606
  * @export
26465
26607
  */