@seekora-ai/admin-api 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +311 -103
- package/dist/api.d.ts +186 -82
- package/dist/api.js +283 -101
- package/dist/esm/api.d.ts +186 -82
- package/dist/esm/api.js +283 -101
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.10.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
|
|
@@ -25216,10 +25228,12 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25216
25228
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25217
25229
|
* @param {number} [page] Page number (default: 1)
|
|
25218
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)
|
|
25219
25233
|
* @param {*} [options] Override http request option.
|
|
25220
25234
|
* @throws {RequiredError}
|
|
25221
25235
|
*/
|
|
25222
|
-
adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25236
|
+
adminBillingInvoicesGet: (orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25223
25237
|
/**
|
|
25224
25238
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
25225
25239
|
* @summary Delete invoice
|
|
@@ -25270,10 +25284,16 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25270
25284
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25271
25285
|
* @param {number} [page] Page number (default: 1)
|
|
25272
25286
|
* @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 {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
25290
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
25291
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
25292
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
25273
25293
|
* @param {*} [options] Override http request option.
|
|
25274
25294
|
* @throws {RequiredError}
|
|
25275
25295
|
*/
|
|
25276
|
-
adminBillingOrdersGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
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>;
|
|
25277
25297
|
/**
|
|
25278
25298
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
25279
25299
|
* @summary Get single order with transactions and invoices
|
|
@@ -25319,17 +25339,21 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25319
25339
|
*/
|
|
25320
25340
|
adminBillingOverviewNewGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25321
25341
|
/**
|
|
25322
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
25342
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25323
25343
|
* @summary Get payment transactions
|
|
25324
25344
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25325
25345
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25326
25346
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25327
|
-
* @param {number} [
|
|
25328
|
-
* @param {number} [
|
|
25347
|
+
* @param {number} [page] Page number (default: 1)
|
|
25348
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25349
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25350
|
+
* @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)
|
|
25329
25353
|
* @param {*} [options] Override http request option.
|
|
25330
25354
|
* @throws {RequiredError}
|
|
25331
25355
|
*/
|
|
25332
|
-
adminBillingPaymentTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25356
|
+
adminBillingPaymentTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25333
25357
|
/**
|
|
25334
25358
|
* Generates receipts for all completed payments without receipts in the organization
|
|
25335
25359
|
* @summary Auto-generate receipts for organization
|
|
@@ -25346,14 +25370,16 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
|
|
|
25346
25370
|
*/
|
|
25347
25371
|
adminBillingReceiptsGeneratePaymentIdPost: (paymentId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25348
25372
|
/**
|
|
25349
|
-
* Retrieves a paginated list of receipts for the organization
|
|
25373
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
25350
25374
|
* @summary List receipts
|
|
25351
25375
|
* @param {number} [page] Page number (default: 1)
|
|
25352
25376
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
25377
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
25378
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25353
25379
|
* @param {*} [options] Override http request option.
|
|
25354
25380
|
* @throws {RequiredError}
|
|
25355
25381
|
*/
|
|
25356
|
-
adminBillingReceiptsGet: (page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25382
|
+
adminBillingReceiptsGet: (page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25357
25383
|
/**
|
|
25358
25384
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
25359
25385
|
* @summary Download receipt PDF
|
|
@@ -25458,41 +25484,53 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25458
25484
|
*/
|
|
25459
25485
|
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
25486
|
/**
|
|
25461
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
25487
|
+
* 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
25488
|
* @summary Get credit ledger
|
|
25463
25489
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25464
25490
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25465
25491
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25466
|
-
* @param {number} [
|
|
25467
|
-
* @param {number} [
|
|
25492
|
+
* @param {number} [page] Page number (default: 1)
|
|
25493
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25494
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25495
|
+
* @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)
|
|
25468
25498
|
* @param {*} [options] Override http request option.
|
|
25469
25499
|
* @throws {RequiredError}
|
|
25470
25500
|
*/
|
|
25471
|
-
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
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>>;
|
|
25472
25502
|
/**
|
|
25473
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
25503
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25474
25504
|
* @summary Get credit purchases
|
|
25475
25505
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25476
25506
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25477
25507
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25478
|
-
* @param {number} [
|
|
25479
|
-
* @param {number} [
|
|
25508
|
+
* @param {number} [page] Page number (default: 1)
|
|
25509
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25510
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25511
|
+
* @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)
|
|
25480
25514
|
* @param {*} [options] Override http request option.
|
|
25481
25515
|
* @throws {RequiredError}
|
|
25482
25516
|
*/
|
|
25483
|
-
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
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>>;
|
|
25484
25518
|
/**
|
|
25485
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
25519
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25486
25520
|
* @summary Get credit transactions
|
|
25487
25521
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25488
25522
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25489
25523
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25490
|
-
* @param {number} [
|
|
25491
|
-
* @param {number} [
|
|
25524
|
+
* @param {number} [page] Page number (default: 1)
|
|
25525
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25526
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25527
|
+
* @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)
|
|
25492
25530
|
* @param {*} [options] Override http request option.
|
|
25493
25531
|
* @throws {RequiredError}
|
|
25494
25532
|
*/
|
|
25495
|
-
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
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>>;
|
|
25496
25534
|
/**
|
|
25497
25535
|
* Automatically generates invoices for all completed payments without invoices
|
|
25498
25536
|
* @summary Auto-generate invoices
|
|
@@ -25525,10 +25563,12 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25525
25563
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25526
25564
|
* @param {number} [page] Page number (default: 1)
|
|
25527
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)
|
|
25528
25568
|
* @param {*} [options] Override http request option.
|
|
25529
25569
|
* @throws {RequiredError}
|
|
25530
25570
|
*/
|
|
25531
|
-
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
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>>;
|
|
25532
25572
|
/**
|
|
25533
25573
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
25534
25574
|
* @summary Delete invoice
|
|
@@ -25579,10 +25619,16 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25579
25619
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25580
25620
|
* @param {number} [page] Page number (default: 1)
|
|
25581
25621
|
* @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)
|
|
25624
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
25625
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
25626
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
25627
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
25582
25628
|
* @param {*} [options] Override http request option.
|
|
25583
25629
|
* @throws {RequiredError}
|
|
25584
25630
|
*/
|
|
25585
|
-
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
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>>;
|
|
25586
25632
|
/**
|
|
25587
25633
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
25588
25634
|
* @summary Get single order with transactions and invoices
|
|
@@ -25628,17 +25674,21 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25628
25674
|
*/
|
|
25629
25675
|
adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25630
25676
|
/**
|
|
25631
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
25677
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25632
25678
|
* @summary Get payment transactions
|
|
25633
25679
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25634
25680
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25635
25681
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25636
|
-
* @param {number} [
|
|
25637
|
-
* @param {number} [
|
|
25682
|
+
* @param {number} [page] Page number (default: 1)
|
|
25683
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25684
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25685
|
+
* @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)
|
|
25638
25688
|
* @param {*} [options] Override http request option.
|
|
25639
25689
|
* @throws {RequiredError}
|
|
25640
25690
|
*/
|
|
25641
|
-
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
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>>;
|
|
25642
25692
|
/**
|
|
25643
25693
|
* Generates receipts for all completed payments without receipts in the organization
|
|
25644
25694
|
* @summary Auto-generate receipts for organization
|
|
@@ -25655,14 +25705,16 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
|
|
|
25655
25705
|
*/
|
|
25656
25706
|
adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesReceipt>>;
|
|
25657
25707
|
/**
|
|
25658
|
-
* Retrieves a paginated list of receipts for the organization
|
|
25708
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
25659
25709
|
* @summary List receipts
|
|
25660
25710
|
* @param {number} [page] Page number (default: 1)
|
|
25661
25711
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
25712
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
25713
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25662
25714
|
* @param {*} [options] Override http request option.
|
|
25663
25715
|
* @throws {RequiredError}
|
|
25664
25716
|
*/
|
|
25665
|
-
adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25717
|
+
adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
25666
25718
|
/**
|
|
25667
25719
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
25668
25720
|
* @summary Download receipt PDF
|
|
@@ -25767,41 +25819,53 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25767
25819
|
*/
|
|
25768
25820
|
adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25769
25821
|
/**
|
|
25770
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
25822
|
+
* 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
25823
|
* @summary Get credit ledger
|
|
25772
25824
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25773
25825
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25774
25826
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25775
|
-
* @param {number} [
|
|
25776
|
-
* @param {number} [
|
|
25827
|
+
* @param {number} [page] Page number (default: 1)
|
|
25828
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25829
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25830
|
+
* @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)
|
|
25777
25833
|
* @param {*} [options] Override http request option.
|
|
25778
25834
|
* @throws {RequiredError}
|
|
25779
25835
|
*/
|
|
25780
|
-
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25836
|
+
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25781
25837
|
/**
|
|
25782
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
25838
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25783
25839
|
* @summary Get credit purchases
|
|
25784
25840
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25785
25841
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25786
25842
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25787
|
-
* @param {number} [
|
|
25788
|
-
* @param {number} [
|
|
25843
|
+
* @param {number} [page] Page number (default: 1)
|
|
25844
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25845
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25846
|
+
* @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)
|
|
25789
25849
|
* @param {*} [options] Override http request option.
|
|
25790
25850
|
* @throws {RequiredError}
|
|
25791
25851
|
*/
|
|
25792
|
-
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25852
|
+
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25793
25853
|
/**
|
|
25794
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
25854
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25795
25855
|
* @summary Get credit transactions
|
|
25796
25856
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25797
25857
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25798
25858
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25799
|
-
* @param {number} [
|
|
25800
|
-
* @param {number} [
|
|
25859
|
+
* @param {number} [page] Page number (default: 1)
|
|
25860
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
25861
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
25862
|
+
* @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)
|
|
25801
25865
|
* @param {*} [options] Override http request option.
|
|
25802
25866
|
* @throws {RequiredError}
|
|
25803
25867
|
*/
|
|
25804
|
-
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25868
|
+
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25805
25869
|
/**
|
|
25806
25870
|
* Automatically generates invoices for all completed payments without invoices
|
|
25807
25871
|
* @summary Auto-generate invoices
|
|
@@ -25834,10 +25898,12 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25834
25898
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25835
25899
|
* @param {number} [page] Page number (default: 1)
|
|
25836
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)
|
|
25837
25903
|
* @param {*} [options] Override http request option.
|
|
25838
25904
|
* @throws {RequiredError}
|
|
25839
25905
|
*/
|
|
25840
|
-
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25906
|
+
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25841
25907
|
/**
|
|
25842
25908
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
25843
25909
|
* @summary Delete invoice
|
|
@@ -25888,10 +25954,16 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25888
25954
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25889
25955
|
* @param {number} [page] Page number (default: 1)
|
|
25890
25956
|
* @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)
|
|
25959
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
25960
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
25961
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
25962
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
25891
25963
|
* @param {*} [options] Override http request option.
|
|
25892
25964
|
* @throws {RequiredError}
|
|
25893
25965
|
*/
|
|
25894
|
-
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
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>;
|
|
25895
25967
|
/**
|
|
25896
25968
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
25897
25969
|
* @summary Get single order with transactions and invoices
|
|
@@ -25937,17 +26009,21 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25937
26009
|
*/
|
|
25938
26010
|
adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25939
26011
|
/**
|
|
25940
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
26012
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
25941
26013
|
* @summary Get payment transactions
|
|
25942
26014
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
25943
26015
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
25944
26016
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
25945
|
-
* @param {number} [
|
|
25946
|
-
* @param {number} [
|
|
26017
|
+
* @param {number} [page] Page number (default: 1)
|
|
26018
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26019
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26020
|
+
* @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)
|
|
25947
26023
|
* @param {*} [options] Override http request option.
|
|
25948
26024
|
* @throws {RequiredError}
|
|
25949
26025
|
*/
|
|
25950
|
-
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
26026
|
+
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25951
26027
|
/**
|
|
25952
26028
|
* Generates receipts for all completed payments without receipts in the organization
|
|
25953
26029
|
* @summary Auto-generate receipts for organization
|
|
@@ -25964,14 +26040,16 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
|
|
|
25964
26040
|
*/
|
|
25965
26041
|
adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesReceipt>;
|
|
25966
26042
|
/**
|
|
25967
|
-
* Retrieves a paginated list of receipts for the organization
|
|
26043
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
25968
26044
|
* @summary List receipts
|
|
25969
26045
|
* @param {number} [page] Page number (default: 1)
|
|
25970
26046
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
26047
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
26048
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
25971
26049
|
* @param {*} [options] Override http request option.
|
|
25972
26050
|
* @throws {RequiredError}
|
|
25973
26051
|
*/
|
|
25974
|
-
adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
26052
|
+
adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
25975
26053
|
/**
|
|
25976
26054
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
25977
26055
|
* @summary Download receipt PDF
|
|
@@ -26084,44 +26162,56 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26084
26162
|
*/
|
|
26085
26163
|
adminBillingCreditConsumptionGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26086
26164
|
/**
|
|
26087
|
-
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
26165
|
+
* 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
26166
|
* @summary Get credit ledger
|
|
26089
26167
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26090
26168
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26091
26169
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26092
|
-
* @param {number} [
|
|
26093
|
-
* @param {number} [
|
|
26170
|
+
* @param {number} [page] Page number (default: 1)
|
|
26171
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26172
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26173
|
+
* @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)
|
|
26094
26176
|
* @param {*} [options] Override http request option.
|
|
26095
26177
|
* @throws {RequiredError}
|
|
26096
26178
|
* @memberof BillingDashboardApi
|
|
26097
26179
|
*/
|
|
26098
|
-
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
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, {}>>;
|
|
26099
26181
|
/**
|
|
26100
|
-
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
|
|
26182
|
+
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26101
26183
|
* @summary Get credit purchases
|
|
26102
26184
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26103
26185
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26104
26186
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26105
|
-
* @param {number} [
|
|
26106
|
-
* @param {number} [
|
|
26187
|
+
* @param {number} [page] Page number (default: 1)
|
|
26188
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26189
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26190
|
+
* @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)
|
|
26107
26193
|
* @param {*} [options] Override http request option.
|
|
26108
26194
|
* @throws {RequiredError}
|
|
26109
26195
|
* @memberof BillingDashboardApi
|
|
26110
26196
|
*/
|
|
26111
|
-
adminBillingCreditPurchasesGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
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, {}>>;
|
|
26112
26198
|
/**
|
|
26113
|
-
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
|
|
26199
|
+
* Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26114
26200
|
* @summary Get credit transactions
|
|
26115
26201
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26116
26202
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26117
26203
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26118
|
-
* @param {number} [
|
|
26119
|
-
* @param {number} [
|
|
26204
|
+
* @param {number} [page] Page number (default: 1)
|
|
26205
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26206
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26207
|
+
* @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)
|
|
26120
26210
|
* @param {*} [options] Override http request option.
|
|
26121
26211
|
* @throws {RequiredError}
|
|
26122
26212
|
* @memberof BillingDashboardApi
|
|
26123
26213
|
*/
|
|
26124
|
-
adminBillingCreditTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
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, {}>>;
|
|
26125
26215
|
/**
|
|
26126
26216
|
* Automatically generates invoices for all completed payments without invoices
|
|
26127
26217
|
* @summary Auto-generate invoices
|
|
@@ -26157,11 +26247,13 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26157
26247
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26158
26248
|
* @param {number} [page] Page number (default: 1)
|
|
26159
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)
|
|
26160
26252
|
* @param {*} [options] Override http request option.
|
|
26161
26253
|
* @throws {RequiredError}
|
|
26162
26254
|
* @memberof BillingDashboardApi
|
|
26163
26255
|
*/
|
|
26164
|
-
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
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, {}>>;
|
|
26165
26257
|
/**
|
|
26166
26258
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
26167
26259
|
* @summary Delete invoice
|
|
@@ -26217,11 +26309,17 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26217
26309
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26218
26310
|
* @param {number} [page] Page number (default: 1)
|
|
26219
26311
|
* @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)
|
|
26314
|
+
* @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
|
|
26315
|
+
* @param {string} [status] Filter by order status (created, paid, failed, refunded)
|
|
26316
|
+
* @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
|
|
26317
|
+
* @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
|
|
26220
26318
|
* @param {*} [options] Override http request option.
|
|
26221
26319
|
* @throws {RequiredError}
|
|
26222
26320
|
* @memberof BillingDashboardApi
|
|
26223
26321
|
*/
|
|
26224
|
-
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
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, {}>>;
|
|
26225
26323
|
/**
|
|
26226
26324
|
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
26227
26325
|
* @summary Get single order with transactions and invoices
|
|
@@ -26272,18 +26370,22 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26272
26370
|
*/
|
|
26273
26371
|
adminBillingOverviewNewGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26274
26372
|
/**
|
|
26275
|
-
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
26373
|
+
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26276
26374
|
* @summary Get payment transactions
|
|
26277
26375
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
26278
26376
|
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
26279
26377
|
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
26280
|
-
* @param {number} [
|
|
26281
|
-
* @param {number} [
|
|
26378
|
+
* @param {number} [page] Page number (default: 1)
|
|
26379
|
+
* @param {number} [pageSize] Page size (default: 50, max: 100)
|
|
26380
|
+
* @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
|
|
26381
|
+
* @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)
|
|
26282
26384
|
* @param {*} [options] Override http request option.
|
|
26283
26385
|
* @throws {RequiredError}
|
|
26284
26386
|
* @memberof BillingDashboardApi
|
|
26285
26387
|
*/
|
|
26286
|
-
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
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, {}>>;
|
|
26287
26389
|
/**
|
|
26288
26390
|
* Generates receipts for all completed payments without receipts in the organization
|
|
26289
26391
|
* @summary Auto-generate receipts for organization
|
|
@@ -26302,15 +26404,17 @@ export declare class BillingDashboardApi extends BaseAPI {
|
|
|
26302
26404
|
*/
|
|
26303
26405
|
adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseDataTypesReceipt, any, {}>>;
|
|
26304
26406
|
/**
|
|
26305
|
-
* Retrieves a paginated list of receipts for the organization
|
|
26407
|
+
* Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
|
|
26306
26408
|
* @summary List receipts
|
|
26307
26409
|
* @param {number} [page] Page number (default: 1)
|
|
26308
26410
|
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
26411
|
+
* @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
|
|
26412
|
+
* @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
|
|
26309
26413
|
* @param {*} [options] Override http request option.
|
|
26310
26414
|
* @throws {RequiredError}
|
|
26311
26415
|
* @memberof BillingDashboardApi
|
|
26312
26416
|
*/
|
|
26313
|
-
adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26417
|
+
adminBillingReceiptsGet(page?: number, pageSize?: number, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
26314
26418
|
/**
|
|
26315
26419
|
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
26316
26420
|
* @summary Download receipt PDF
|