@seekora-ai/admin-api 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +347 -115
- package/dist/api.d.ts +210 -94
- package/dist/api.js +316 -113
- package/dist/esm/api.d.ts +210 -94
- package/dist/esm/api.js +316 -113
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.11.tgz +0 -0
- package/seekora-ai-admin-api-1.1.9.tgz +0 -0
package/dist/esm/api.d.ts
CHANGED
|
@@ -7744,7 +7744,7 @@ export interface DataTypesBillingAlertRequest {
|
|
|
7744
7744
|
* @type {string}
|
|
7745
7745
|
* @memberof DataTypesBillingAlertRequest
|
|
7746
7746
|
*/
|
|
7747
|
-
'alert_type'
|
|
7747
|
+
'alert_type'?: DataTypesBillingAlertRequestAlertTypeEnum;
|
|
7748
7748
|
/**
|
|
7749
7749
|
* Minutes between alerts (default: 60)
|
|
7750
7750
|
* @type {number}
|
|
@@ -7790,7 +7790,7 @@ export interface DataTypesBillingAlertRequest {
|
|
|
7790
7790
|
* @type {string}
|
|
7791
7791
|
* @memberof DataTypesBillingAlertRequest
|
|
7792
7792
|
*/
|
|
7793
|
-
'threshold_unit'
|
|
7793
|
+
'threshold_unit'?: DataTypesBillingAlertRequestThresholdUnitEnum;
|
|
7794
7794
|
/**
|
|
7795
7795
|
* Absolute threshold value (exclusive with threshold_percentage)
|
|
7796
7796
|
* @type {number}
|
|
@@ -25149,41 +25149,53 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25149
25149
|
*/
|
|
25150
25150
|
adminBillingCreditConsumptionGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25151
25151
|
/**
|
|
25152
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
25152
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25153
25153
|
* @summary Get credit ledger
|
|
25154
25154
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25155
25155
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25156
25156
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25157
|
-
* @param {number} [
|
|
25158
|
-
* @param {number} [
|
|
25157
|
+
* @param {number} [page] Page number (default: 1)
|
|
25158
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25159
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
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)
|
|
25159
25163
|
* @param {*} [options] Override http request option.
|
|
25160
25164
|
* @throws {RequiredError}
|
|
25161
25165
|
*/
|
|
25162
|
-
adminBillingCreditLedgerGet: (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25166
|
+
adminBillingCreditLedgerGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25163
25167
|
/**
|
|
25164
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
25168
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25165
25169
|
* @summary Get credit purchases
|
|
25166
25170
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25167
25171
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25168
25172
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25169
|
-
* @param {number} [
|
|
25170
|
-
* @param {number} [
|
|
25173
|
+
* @param {number} [page] Page number (default: 1)
|
|
25174
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25175
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
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)
|
|
25171
25179
|
* @param {*} [options] Override http request option.
|
|
25172
25180
|
* @throws {RequiredError}
|
|
25173
25181
|
*/
|
|
25174
|
-
adminBillingCreditPurchasesGet: (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25182
|
+
adminBillingCreditPurchasesGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25175
25183
|
/**
|
|
25176
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
25184
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25177
25185
|
* @summary Get credit transactions
|
|
25178
25186
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25179
25187
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25180
25188
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25181
|
-
* @param {number} [
|
|
25182
|
-
* @param {number} [
|
|
25189
|
+
* @param {number} [page] Page number (default: 1)
|
|
25190
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25191
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
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)
|
|
25183
25195
|
* @param {*} [options] Override http request option.
|
|
25184
25196
|
* @throws {RequiredError}
|
|
25185
25197
|
*/
|
|
25186
|
-
adminBillingCreditTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25198
|
+
adminBillingCreditTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25187
25199
|
/**
|
|
25188
25200
|
* Automatically generates invoices for all completed payments without invoices
|
|
25189
25201
|
* @summary Auto-generate invoices
|
|
@@ -25208,18 +25220,22 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25208
25220
|
*/
|
|
25209
25221
|
adminBillingInvoicesGeneratePaymentIdPost: (paymentId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25210
25222
|
/**
|
|
25211
|
-
* 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.
|
|
25212
25224
|
* @summary Get invoices
|
|
25213
25225
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25214
25226
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
25215
25227
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25216
25228
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25229
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
25217
25230
|
* @param {number} [page] Page number (default: 1)
|
|
25218
|
-
* @param {number} [
|
|
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 {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
25234
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25219
25235
|
* @param {*} [options] Override http request option.
|
|
25220
25236
|
* @throws {RequiredError}
|
|
25221
25237
|
*/
|
|
25222
|
-
adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25238
|
+
adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25223
25239
|
/**
|
|
25224
25240
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
25225
25241
|
* @summary Delete invoice
|
|
@@ -25263,17 +25279,24 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25263
25279
|
*/
|
|
25264
25280
|
adminBillingInvoicesInvoiceIdPayPost: (invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25265
25281
|
/**
|
|
25266
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
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.
|
|
25267
25283
|
* @summary Get orders
|
|
25268
25284
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25269
25285
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25270
25286
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25271
25287
|
* @param {number} [page] Page number (default: 1)
|
|
25272
25288
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25289
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25290
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
25291
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25292
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
25293
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
25294
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
25295
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
25273
25296
|
* @param {*} [options] Override http request option.
|
|
25274
25297
|
* @throws {RequiredError}
|
|
25275
25298
|
*/
|
|
25276
|
-
adminBillingOrdersGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25299
|
+
adminBillingOrdersGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25277
25300
|
/**
|
|
25278
25301
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
25279
25302
|
* @summary Get single order with transactions and invoices
|
|
@@ -25319,17 +25342,21 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25319
25342
|
*/
|
|
25320
25343
|
adminBillingOverviewNewGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25321
25344
|
/**
|
|
25322
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
25345
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25323
25346
|
* @summary Get payment transactions
|
|
25324
25347
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25325
25348
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25326
25349
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25327
|
-
* @param {number} [
|
|
25328
|
-
* @param {number} [
|
|
25350
|
+
* @param {number} [page] Page number (default: 1)
|
|
25351
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25352
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25353
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
25354
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
25355
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25329
25356
|
* @param {*} [options] Override http request option.
|
|
25330
25357
|
* @throws {RequiredError}
|
|
25331
25358
|
*/
|
|
25332
|
-
adminBillingPaymentTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25359
|
+
adminBillingPaymentTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25333
25360
|
/**
|
|
25334
25361
|
* Generates receipts for all completed payments without receipts in the organization
|
|
25335
25362
|
* @summary Auto-generate receipts for organization
|
|
@@ -25346,14 +25373,16 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25346
25373
|
*/
|
|
25347
25374
|
adminBillingReceiptsGeneratePaymentIdPost: (paymentId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25348
25375
|
/**
|
|
25349
|
-
* Retrieves a paginated list of receipts for the organization
|
|
25376
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
25350
25377
|
* @summary List receipts
|
|
25351
25378
|
* @param {number} [page] Page number (default: 1)
|
|
25352
25379
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
25380
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
25381
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25353
25382
|
* @param {*} [options] Override http request option.
|
|
25354
25383
|
* @throws {RequiredError}
|
|
25355
25384
|
*/
|
|
25356
|
-
adminBillingReceiptsGet: (page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25385
|
+
adminBillingReceiptsGet: (page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25357
25386
|
/**
|
|
25358
25387
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
25359
25388
|
* @summary Download receipt PDF
|
|
@@ -25458,41 +25487,53 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25458
25487
|
*/
|
|
25459
25488
|
adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25460
25489
|
/**
|
|
25461
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
25490
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25462
25491
|
* @summary Get credit ledger
|
|
25463
25492
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25464
25493
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25465
25494
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25466
|
-
* @param {number} [
|
|
25467
|
-
* @param {number} [
|
|
25495
|
+
* @param {number} [page] Page number (default: 1)
|
|
25496
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25497
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25498
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
25499
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
25500
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25468
25501
|
* @param {*} [options] Override http request option.
|
|
25469
25502
|
* @throws {RequiredError}
|
|
25470
25503
|
*/
|
|
25471
|
-
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25472
25505
|
/**
|
|
25473
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
25506
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25474
25507
|
* @summary Get credit purchases
|
|
25475
25508
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25476
25509
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25477
25510
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25478
|
-
* @param {number} [
|
|
25479
|
-
* @param {number} [
|
|
25511
|
+
* @param {number} [page] Page number (default: 1)
|
|
25512
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25513
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25514
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
25515
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
25516
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25480
25517
|
* @param {*} [options] Override http request option.
|
|
25481
25518
|
* @throws {RequiredError}
|
|
25482
25519
|
*/
|
|
25483
|
-
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25484
25521
|
/**
|
|
25485
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
25522
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25486
25523
|
* @summary Get credit transactions
|
|
25487
25524
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25488
25525
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25489
25526
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25490
|
-
* @param {number} [
|
|
25491
|
-
* @param {number} [
|
|
25527
|
+
* @param {number} [page] Page number (default: 1)
|
|
25528
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25529
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25530
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
25531
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
25532
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25492
25533
|
* @param {*} [options] Override http request option.
|
|
25493
25534
|
* @throws {RequiredError}
|
|
25494
25535
|
*/
|
|
25495
|
-
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25496
25537
|
/**
|
|
25497
25538
|
* Automatically generates invoices for all completed payments without invoices
|
|
25498
25539
|
* @summary Auto-generate invoices
|
|
@@ -25517,18 +25558,22 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25517
25558
|
*/
|
|
25518
25559
|
adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25519
25560
|
/**
|
|
25520
|
-
* 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.
|
|
25521
25562
|
* @summary Get invoices
|
|
25522
25563
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25523
25564
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
25524
25565
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25525
25566
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25567
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
25526
25568
|
* @param {number} [page] Page number (default: 1)
|
|
25527
|
-
* @param {number} [
|
|
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 {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
25572
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25528
25573
|
* @param {*} [options] Override http request option.
|
|
25529
25574
|
* @throws {RequiredError}
|
|
25530
25575
|
*/
|
|
25531
|
-
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25532
25577
|
/**
|
|
25533
25578
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
25534
25579
|
* @summary Delete invoice
|
|
@@ -25572,17 +25617,24 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25572
25617
|
*/
|
|
25573
25618
|
adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>>;
|
|
25574
25619
|
/**
|
|
25575
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
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.
|
|
25576
25621
|
* @summary Get orders
|
|
25577
25622
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25578
25623
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25579
25624
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25580
25625
|
* @param {number} [page] Page number (default: 1)
|
|
25581
25626
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25627
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25628
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
25629
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25630
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
25631
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
25632
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
25633
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
25582
25634
|
* @param {*} [options] Override http request option.
|
|
25583
25635
|
* @throws {RequiredError}
|
|
25584
25636
|
*/
|
|
25585
|
-
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25637
|
+
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25586
25638
|
/**
|
|
25587
25639
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
25588
25640
|
* @summary Get single order with transactions and invoices
|
|
@@ -25628,17 +25680,21 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25628
25680
|
*/
|
|
25629
25681
|
adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25630
25682
|
/**
|
|
25631
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
25683
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25632
25684
|
* @summary Get payment transactions
|
|
25633
25685
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25634
25686
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25635
25687
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25636
|
-
* @param {number} [
|
|
25637
|
-
* @param {number} [
|
|
25688
|
+
* @param {number} [page] Page number (default: 1)
|
|
25689
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25690
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25691
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
25692
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
25693
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25638
25694
|
* @param {*} [options] Override http request option.
|
|
25639
25695
|
* @throws {RequiredError}
|
|
25640
25696
|
*/
|
|
25641
|
-
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25642
25698
|
/**
|
|
25643
25699
|
* Generates receipts for all completed payments without receipts in the organization
|
|
25644
25700
|
* @summary Auto-generate receipts for organization
|
|
@@ -25655,14 +25711,16 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25655
25711
|
*/
|
|
25656
25712
|
adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesReceipt>>;
|
|
25657
25713
|
/**
|
|
25658
|
-
* Retrieves a paginated list of receipts for the organization
|
|
25714
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
25659
25715
|
* @summary List receipts
|
|
25660
25716
|
* @param {number} [page] Page number (default: 1)
|
|
25661
25717
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
25718
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
25719
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25662
25720
|
* @param {*} [options] Override http request option.
|
|
25663
25721
|
* @throws {RequiredError}
|
|
25664
25722
|
*/
|
|
25665
|
-
adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25723
|
+
adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25666
25724
|
/**
|
|
25667
25725
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
25668
25726
|
* @summary Download receipt PDF
|
|
@@ -25767,41 +25825,53 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25767
25825
|
*/
|
|
25768
25826
|
adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25769
25827
|
/**
|
|
25770
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
25828
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25771
25829
|
* @summary Get credit ledger
|
|
25772
25830
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25773
25831
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25774
25832
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25775
|
-
* @param {number} [
|
|
25776
|
-
* @param {number} [
|
|
25833
|
+
* @param {number} [page] Page number (default: 1)
|
|
25834
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25835
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25836
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
25837
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
25838
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25777
25839
|
* @param {*} [options] Override http request option.
|
|
25778
25840
|
* @throws {RequiredError}
|
|
25779
25841
|
*/
|
|
25780
|
-
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25842
|
+
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25781
25843
|
/**
|
|
25782
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
25844
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25783
25845
|
* @summary Get credit purchases
|
|
25784
25846
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25785
25847
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25786
25848
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25787
|
-
* @param {number} [
|
|
25788
|
-
* @param {number} [
|
|
25849
|
+
* @param {number} [page] Page number (default: 1)
|
|
25850
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25851
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25852
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
25853
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
25854
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25789
25855
|
* @param {*} [options] Override http request option.
|
|
25790
25856
|
* @throws {RequiredError}
|
|
25791
25857
|
*/
|
|
25792
|
-
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25858
|
+
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25793
25859
|
/**
|
|
25794
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
25860
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25795
25861
|
* @summary Get credit transactions
|
|
25796
25862
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25797
25863
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25798
25864
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25799
|
-
* @param {number} [
|
|
25800
|
-
* @param {number} [
|
|
25865
|
+
* @param {number} [page] Page number (default: 1)
|
|
25866
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25867
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25868
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
25869
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
25870
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25801
25871
|
* @param {*} [options] Override http request option.
|
|
25802
25872
|
* @throws {RequiredError}
|
|
25803
25873
|
*/
|
|
25804
|
-
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25874
|
+
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25805
25875
|
/**
|
|
25806
25876
|
* Automatically generates invoices for all completed payments without invoices
|
|
25807
25877
|
* @summary Auto-generate invoices
|
|
@@ -25826,18 +25896,22 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25826
25896
|
*/
|
|
25827
25897
|
adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25828
25898
|
/**
|
|
25829
|
-
* 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.
|
|
25830
25900
|
* @summary Get invoices
|
|
25831
25901
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25832
25902
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
25833
25903
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25834
25904
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25905
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
25835
25906
|
* @param {number} [page] Page number (default: 1)
|
|
25836
|
-
* @param {number} [
|
|
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 {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
25910
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25837
25911
|
* @param {*} [options] Override http request option.
|
|
25838
25912
|
* @throws {RequiredError}
|
|
25839
25913
|
*/
|
|
25840
|
-
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25914
|
+
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25841
25915
|
/**
|
|
25842
25916
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
25843
25917
|
* @summary Delete invoice
|
|
@@ -25881,17 +25955,24 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25881
25955
|
*/
|
|
25882
25956
|
adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>;
|
|
25883
25957
|
/**
|
|
25884
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
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.
|
|
25885
25959
|
* @summary Get orders
|
|
25886
25960
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25887
25961
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25888
25962
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25889
25963
|
* @param {number} [page] Page number (default: 1)
|
|
25890
25964
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25965
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25966
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
25967
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25968
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
25969
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
25970
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
25971
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
25891
25972
|
* @param {*} [options] Override http request option.
|
|
25892
25973
|
* @throws {RequiredError}
|
|
25893
25974
|
*/
|
|
25894
|
-
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25975
|
+
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25895
25976
|
/**
|
|
25896
25977
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
25897
25978
|
* @summary Get single order with transactions and invoices
|
|
@@ -25937,17 +26018,21 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25937
26018
|
*/
|
|
25938
26019
|
adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25939
26020
|
/**
|
|
25940
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
26021
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25941
26022
|
* @summary Get payment transactions
|
|
25942
26023
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25943
26024
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25944
26025
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25945
|
-
* @param {number} [
|
|
25946
|
-
* @param {number} [
|
|
26026
|
+
* @param {number} [page] Page number (default: 1)
|
|
26027
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26028
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26029
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
26030
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
26031
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25947
26032
|
* @param {*} [options] Override http request option.
|
|
25948
26033
|
* @throws {RequiredError}
|
|
25949
26034
|
*/
|
|
25950
|
-
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
26035
|
+
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25951
26036
|
/**
|
|
25952
26037
|
* Generates receipts for all completed payments without receipts in the organization
|
|
25953
26038
|
* @summary Auto-generate receipts for organization
|
|
@@ -25964,14 +26049,16 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25964
26049
|
*/
|
|
25965
26050
|
adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesReceipt>;
|
|
25966
26051
|
/**
|
|
25967
|
-
* Retrieves a paginated list of receipts for the organization
|
|
26052
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
25968
26053
|
* @summary List receipts
|
|
25969
26054
|
* @param {number} [page] Page number (default: 1)
|
|
25970
26055
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
26056
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
26057
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25971
26058
|
* @param {*} [options] Override http request option.
|
|
25972
26059
|
* @throws {RequiredError}
|
|
25973
26060
|
*/
|
|
25974
|
-
adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
26061
|
+
adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25975
26062
|
/**
|
|
25976
26063
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
25977
26064
|
* @summary Download receipt PDF
|
|
@@ -26084,44 +26171,56 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26084
26171
|
*/
|
|
26085
26172
|
adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26086
26173
|
/**
|
|
26087
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
26174
|
+
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26088
26175
|
* @summary Get credit ledger
|
|
26089
26176
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26090
26177
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26091
26178
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26092
|
-
* @param {number} [
|
|
26093
|
-
* @param {number} [
|
|
26179
|
+
* @param {number} [page] Page number (default: 1)
|
|
26180
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26181
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26182
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
26183
|
+
* @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
|
|
26184
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
26094
26185
|
* @param {*} [options] Override http request option.
|
|
26095
26186
|
* @throws {RequiredError}
|
|
26096
26187
|
* @memberof BillingDashboardApi
|
|
26097
26188
|
*/
|
|
26098
|
-
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26099
26190
|
/**
|
|
26100
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
26191
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26101
26192
|
* @summary Get credit purchases
|
|
26102
26193
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26103
26194
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26104
26195
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26105
|
-
* @param {number} [
|
|
26106
|
-
* @param {number} [
|
|
26196
|
+
* @param {number} [page] Page number (default: 1)
|
|
26197
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26198
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26199
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
26200
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
|
|
26201
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
26107
26202
|
* @param {*} [options] Override http request option.
|
|
26108
26203
|
* @throws {RequiredError}
|
|
26109
26204
|
* @memberof BillingDashboardApi
|
|
26110
26205
|
*/
|
|
26111
|
-
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26112
26207
|
/**
|
|
26113
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
26208
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26114
26209
|
* @summary Get credit transactions
|
|
26115
26210
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26116
26211
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26117
26212
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26118
|
-
* @param {number} [
|
|
26119
|
-
* @param {number} [
|
|
26213
|
+
* @param {number} [page] Page number (default: 1)
|
|
26214
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26215
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26216
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
26217
|
+
* @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
|
|
26218
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
26120
26219
|
* @param {*} [options] Override http request option.
|
|
26121
26220
|
* @throws {RequiredError}
|
|
26122
26221
|
* @memberof BillingDashboardApi
|
|
26123
26222
|
*/
|
|
26124
|
-
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26125
26224
|
/**
|
|
26126
26225
|
* Automatically generates invoices for all completed payments without invoices
|
|
26127
26226
|
* @summary Auto-generate invoices
|
|
@@ -26149,19 +26248,23 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26149
26248
|
*/
|
|
26150
26249
|
adminBillingInvoicesGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26151
26250
|
/**
|
|
26152
|
-
* 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.
|
|
26153
26252
|
* @summary Get invoices
|
|
26154
26253
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26155
26254
|
* @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
|
|
26156
26255
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26157
26256
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26257
|
+
* @param {string} [search] Search across invoice number, organization name, notes, and amount
|
|
26158
26258
|
* @param {number} [page] Page number (default: 1)
|
|
26159
|
-
* @param {number} [
|
|
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 {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
|
|
26262
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
26160
26263
|
* @param {*} [options] Override http request option.
|
|
26161
26264
|
* @throws {RequiredError}
|
|
26162
26265
|
* @memberof BillingDashboardApi
|
|
26163
26266
|
*/
|
|
26164
|
-
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26165
26268
|
/**
|
|
26166
26269
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
26167
26270
|
* @summary Delete invoice
|
|
@@ -26210,18 +26313,25 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26210
26313
|
*/
|
|
26211
26314
|
adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseDataTypesPayInvoiceResponse, any, {}>>;
|
|
26212
26315
|
/**
|
|
26213
|
-
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization.
|
|
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.
|
|
26214
26317
|
* @summary Get orders
|
|
26215
26318
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26216
26319
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26217
26320
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26218
26321
|
* @param {number} [page] Page number (default: 1)
|
|
26219
26322
|
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26323
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26324
|
+
* @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
|
|
26325
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
26326
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
26327
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
26328
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
26329
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
26220
26330
|
* @param {*} [options] Override http request option.
|
|
26221
26331
|
* @throws {RequiredError}
|
|
26222
26332
|
* @memberof BillingDashboardApi
|
|
26223
26333
|
*/
|
|
26224
|
-
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26334
|
+
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, sortBy?: string, sortOrder?: string, search?: string, status?: string, gateway?: string, paymentType?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26225
26335
|
/**
|
|
26226
26336
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
26227
26337
|
* @summary Get single order with transactions and invoices
|
|
@@ -26272,18 +26382,22 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26272
26382
|
*/
|
|
26273
26383
|
adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26274
26384
|
/**
|
|
26275
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
26385
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26276
26386
|
* @summary Get payment transactions
|
|
26277
26387
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26278
26388
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26279
26389
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26280
|
-
* @param {number} [
|
|
26281
|
-
* @param {number} [
|
|
26390
|
+
* @param {number} [page] Page number (default: 1)
|
|
26391
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26392
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26393
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
26394
|
+
* @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
|
|
26395
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
26282
26396
|
* @param {*} [options] Override http request option.
|
|
26283
26397
|
* @throws {RequiredError}
|
|
26284
26398
|
* @memberof BillingDashboardApi
|
|
26285
26399
|
*/
|
|
26286
|
-
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, 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?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26287
26401
|
/**
|
|
26288
26402
|
* Generates receipts for all completed payments without receipts in the organization
|
|
26289
26403
|
* @summary Auto-generate receipts for organization
|
|
@@ -26302,15 +26416,17 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26302
26416
|
*/
|
|
26303
26417
|
adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseDataTypesReceipt, any, {}>>;
|
|
26304
26418
|
/**
|
|
26305
|
-
* Retrieves a paginated list of receipts for the organization
|
|
26419
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
26306
26420
|
* @summary List receipts
|
|
26307
26421
|
* @param {number} [page] Page number (default: 1)
|
|
26308
26422
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
26423
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
26424
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
26309
26425
|
* @param {*} [options] Override http request option.
|
|
26310
26426
|
* @throws {RequiredError}
|
|
26311
26427
|
* @memberof BillingDashboardApi
|
|
26312
26428
|
*/
|
|
26313
|
-
adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26429
|
+
adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26314
26430
|
/**
|
|
26315
26431
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
26316
26432
|
* @summary Download receipt PDF
|