@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/dist/api.js CHANGED
@@ -7628,17 +7628,21 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7628
7628
  };
7629
7629
  }),
7630
7630
  /**
7631
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
7631
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
7632
7632
  * @summary Get credit ledger
7633
7633
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
7634
7634
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
7635
7635
  * @param {string} [endDate] End date (YYYY-MM-DD format)
7636
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
7637
- * @param {number} [offset] Number of results to skip (default: 0)
7636
+ * @param {number} [page] Page number (default: 1)
7637
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
7638
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
7639
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7640
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
7641
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7638
7642
  * @param {*} [options] Override http request option.
7639
7643
  * @throws {RequiredError}
7640
7644
  */
7641
- adminBillingCreditLedgerGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
7645
+ adminBillingCreditLedgerGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options = {}) {
7642
7646
  const localVarPath = `/admin/billing/credit-ledger`;
7643
7647
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7644
7648
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7660,12 +7664,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7660
7664
  if (endDate !== undefined) {
7661
7665
  localVarQueryParameter['end_date'] = endDate;
7662
7666
  }
7667
+ if (page !== undefined) {
7668
+ localVarQueryParameter['page'] = page;
7669
+ }
7670
+ if (pageSize !== undefined) {
7671
+ localVarQueryParameter['page_size'] = pageSize;
7672
+ }
7663
7673
  if (limit !== undefined) {
7664
7674
  localVarQueryParameter['limit'] = limit;
7665
7675
  }
7666
7676
  if (offset !== undefined) {
7667
7677
  localVarQueryParameter['offset'] = offset;
7668
7678
  }
7679
+ if (sortBy !== undefined) {
7680
+ localVarQueryParameter['sort_by'] = sortBy;
7681
+ }
7682
+ if (sortOrder !== undefined) {
7683
+ localVarQueryParameter['sort_order'] = sortOrder;
7684
+ }
7669
7685
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7670
7686
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7671
7687
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7675,17 +7691,21 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7675
7691
  };
7676
7692
  }),
7677
7693
  /**
7678
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
7694
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
7679
7695
  * @summary Get credit purchases
7680
7696
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
7681
7697
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
7682
7698
  * @param {string} [endDate] End date (YYYY-MM-DD format)
7683
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
7684
- * @param {number} [offset] Number of results to skip (default: 0)
7699
+ * @param {number} [page] Page number (default: 1)
7700
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
7701
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
7702
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7703
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
7704
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7685
7705
  * @param {*} [options] Override http request option.
7686
7706
  * @throws {RequiredError}
7687
7707
  */
7688
- adminBillingCreditPurchasesGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
7708
+ adminBillingCreditPurchasesGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options = {}) {
7689
7709
  const localVarPath = `/admin/billing/credit-purchases`;
7690
7710
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7691
7711
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7707,12 +7727,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7707
7727
  if (endDate !== undefined) {
7708
7728
  localVarQueryParameter['end_date'] = endDate;
7709
7729
  }
7730
+ if (page !== undefined) {
7731
+ localVarQueryParameter['page'] = page;
7732
+ }
7733
+ if (pageSize !== undefined) {
7734
+ localVarQueryParameter['page_size'] = pageSize;
7735
+ }
7710
7736
  if (limit !== undefined) {
7711
7737
  localVarQueryParameter['limit'] = limit;
7712
7738
  }
7713
7739
  if (offset !== undefined) {
7714
7740
  localVarQueryParameter['offset'] = offset;
7715
7741
  }
7742
+ if (sortBy !== undefined) {
7743
+ localVarQueryParameter['sort_by'] = sortBy;
7744
+ }
7745
+ if (sortOrder !== undefined) {
7746
+ localVarQueryParameter['sort_order'] = sortOrder;
7747
+ }
7716
7748
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7717
7749
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7718
7750
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7722,17 +7754,21 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7722
7754
  };
7723
7755
  }),
7724
7756
  /**
7725
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
7757
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
7726
7758
  * @summary Get credit transactions
7727
7759
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
7728
7760
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
7729
7761
  * @param {string} [endDate] End date (YYYY-MM-DD format)
7730
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
7731
- * @param {number} [offset] Number of results to skip (default: 0)
7762
+ * @param {number} [page] Page number (default: 1)
7763
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
7764
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
7765
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7766
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
7767
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7732
7768
  * @param {*} [options] Override http request option.
7733
7769
  * @throws {RequiredError}
7734
7770
  */
7735
- adminBillingCreditTransactionsGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
7771
+ adminBillingCreditTransactionsGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options = {}) {
7736
7772
  const localVarPath = `/admin/billing/credit-transactions`;
7737
7773
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7738
7774
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7754,12 +7790,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7754
7790
  if (endDate !== undefined) {
7755
7791
  localVarQueryParameter['end_date'] = endDate;
7756
7792
  }
7793
+ if (page !== undefined) {
7794
+ localVarQueryParameter['page'] = page;
7795
+ }
7796
+ if (pageSize !== undefined) {
7797
+ localVarQueryParameter['page_size'] = pageSize;
7798
+ }
7757
7799
  if (limit !== undefined) {
7758
7800
  localVarQueryParameter['limit'] = limit;
7759
7801
  }
7760
7802
  if (offset !== undefined) {
7761
7803
  localVarQueryParameter['offset'] = offset;
7762
7804
  }
7805
+ if (sortBy !== undefined) {
7806
+ localVarQueryParameter['sort_by'] = sortBy;
7807
+ }
7808
+ if (sortOrder !== undefined) {
7809
+ localVarQueryParameter['sort_order'] = sortOrder;
7810
+ }
7763
7811
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7764
7812
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7765
7813
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7858,18 +7906,22 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7858
7906
  };
7859
7907
  }),
7860
7908
  /**
7861
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
7909
+ * 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.
7862
7910
  * @summary Get invoices
7863
7911
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
7864
7912
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
7865
7913
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
7866
7914
  * @param {string} [endDate] End date (YYYY-MM-DD format)
7915
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
7867
7916
  * @param {number} [page] Page number (default: 1)
7868
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
7917
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
7918
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
7919
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
7920
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
7869
7921
  * @param {*} [options] Override http request option.
7870
7922
  * @throws {RequiredError}
7871
7923
  */
7872
- adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, page, limit, options = {}) {
7924
+ adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options = {}) {
7873
7925
  const localVarPath = `/admin/billing/invoices`;
7874
7926
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7875
7927
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7894,12 +7946,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7894
7946
  if (endDate !== undefined) {
7895
7947
  localVarQueryParameter['end_date'] = endDate;
7896
7948
  }
7949
+ if (search !== undefined) {
7950
+ localVarQueryParameter['search'] = search;
7951
+ }
7897
7952
  if (page !== undefined) {
7898
7953
  localVarQueryParameter['page'] = page;
7899
7954
  }
7955
+ if (pageSize !== undefined) {
7956
+ localVarQueryParameter['page_size'] = pageSize;
7957
+ }
7900
7958
  if (limit !== undefined) {
7901
7959
  localVarQueryParameter['limit'] = limit;
7902
7960
  }
7961
+ if (sortBy !== undefined) {
7962
+ localVarQueryParameter['sort_by'] = sortBy;
7963
+ }
7964
+ if (sortOrder !== undefined) {
7965
+ localVarQueryParameter['sort_order'] = sortOrder;
7966
+ }
7903
7967
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7904
7968
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7905
7969
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8072,17 +8136,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8072
8136
  };
8073
8137
  }),
8074
8138
  /**
8075
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8139
+ * 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.
8076
8140
  * @summary Get orders
8077
8141
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
8078
8142
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8079
8143
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8080
8144
  * @param {number} [page] Page number (default: 1)
8081
8145
  * @param {number} [pageSize] Page size (default: 50, max: 100)
8146
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8147
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
8148
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8149
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
8150
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
8151
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
8152
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
8082
8153
  * @param {*} [options] Override http request option.
8083
8154
  * @throws {RequiredError}
8084
8155
  */
8085
- adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, options = {}) {
8156
+ adminBillingOrdersGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, search_1, status_1, gateway_1, paymentType_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options = {}) {
8086
8157
  const localVarPath = `/admin/billing/orders`;
8087
8158
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8088
8159
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8110,6 +8181,27 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8110
8181
  if (pageSize !== undefined) {
8111
8182
  localVarQueryParameter['page_size'] = pageSize;
8112
8183
  }
8184
+ if (limit !== undefined) {
8185
+ localVarQueryParameter['limit'] = limit;
8186
+ }
8187
+ if (sortBy !== undefined) {
8188
+ localVarQueryParameter['sort_by'] = sortBy;
8189
+ }
8190
+ if (sortOrder !== undefined) {
8191
+ localVarQueryParameter['sort_order'] = sortOrder;
8192
+ }
8193
+ if (search !== undefined) {
8194
+ localVarQueryParameter['search'] = search;
8195
+ }
8196
+ if (status !== undefined) {
8197
+ localVarQueryParameter['status'] = status;
8198
+ }
8199
+ if (gateway !== undefined) {
8200
+ localVarQueryParameter['gateway'] = gateway;
8201
+ }
8202
+ if (paymentType !== undefined) {
8203
+ localVarQueryParameter['payment_type'] = paymentType;
8204
+ }
8113
8205
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8114
8206
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8115
8207
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8290,17 +8382,21 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8290
8382
  };
8291
8383
  }),
8292
8384
  /**
8293
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
8385
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8294
8386
  * @summary Get payment transactions
8295
8387
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
8296
8388
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8297
8389
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8298
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
8299
- * @param {number} [offset] Number of results to skip (default: 0)
8390
+ * @param {number} [page] Page number (default: 1)
8391
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
8392
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8393
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8394
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
8395
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8300
8396
  * @param {*} [options] Override http request option.
8301
8397
  * @throws {RequiredError}
8302
8398
  */
8303
- adminBillingPaymentTransactionsGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
8399
+ adminBillingPaymentTransactionsGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options = {}) {
8304
8400
  const localVarPath = `/admin/billing/payment-transactions`;
8305
8401
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8306
8402
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8322,12 +8418,24 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8322
8418
  if (endDate !== undefined) {
8323
8419
  localVarQueryParameter['end_date'] = endDate;
8324
8420
  }
8421
+ if (page !== undefined) {
8422
+ localVarQueryParameter['page'] = page;
8423
+ }
8424
+ if (pageSize !== undefined) {
8425
+ localVarQueryParameter['page_size'] = pageSize;
8426
+ }
8325
8427
  if (limit !== undefined) {
8326
8428
  localVarQueryParameter['limit'] = limit;
8327
8429
  }
8328
8430
  if (offset !== undefined) {
8329
8431
  localVarQueryParameter['offset'] = offset;
8330
8432
  }
8433
+ if (sortBy !== undefined) {
8434
+ localVarQueryParameter['sort_by'] = sortBy;
8435
+ }
8436
+ if (sortOrder !== undefined) {
8437
+ localVarQueryParameter['sort_order'] = sortOrder;
8438
+ }
8331
8439
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8332
8440
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8333
8441
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8395,14 +8503,16 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8395
8503
  };
8396
8504
  }),
8397
8505
  /**
8398
- * Retrieves a paginated list of receipts for the organization
8506
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
8399
8507
  * @summary List receipts
8400
8508
  * @param {number} [page] Page number (default: 1)
8401
8509
  * @param {number} [pageSize] Page size (default: 20, max: 100)
8510
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
8511
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8402
8512
  * @param {*} [options] Override http request option.
8403
8513
  * @throws {RequiredError}
8404
8514
  */
8405
- adminBillingReceiptsGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
8515
+ adminBillingReceiptsGet: (page_1, pageSize_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (page, pageSize, sortBy, sortOrder, options = {}) {
8406
8516
  const localVarPath = `/admin/billing/receipts`;
8407
8517
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8408
8518
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8421,6 +8531,12 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8421
8531
  if (pageSize !== undefined) {
8422
8532
  localVarQueryParameter['page_size'] = pageSize;
8423
8533
  }
8534
+ if (sortBy !== undefined) {
8535
+ localVarQueryParameter['sort_by'] = sortBy;
8536
+ }
8537
+ if (sortOrder !== undefined) {
8538
+ localVarQueryParameter['sort_order'] = sortOrder;
8539
+ }
8424
8540
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8425
8541
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8426
8542
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -8701,60 +8817,72 @@ const BillingDashboardApiFp = function (configuration) {
8701
8817
  });
8702
8818
  },
8703
8819
  /**
8704
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
8820
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8705
8821
  * @summary Get credit ledger
8706
8822
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
8707
8823
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8708
8824
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8709
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
8710
- * @param {number} [offset] Number of results to skip (default: 0)
8825
+ * @param {number} [page] Page number (default: 1)
8826
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
8827
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8828
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8829
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
8830
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8711
8831
  * @param {*} [options] Override http request option.
8712
8832
  * @throws {RequiredError}
8713
8833
  */
8714
- adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
8834
+ adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
8715
8835
  return __awaiter(this, void 0, void 0, function* () {
8716
8836
  var _a, _b, _c;
8717
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options);
8837
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
8718
8838
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8719
8839
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8720
8840
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8721
8841
  });
8722
8842
  },
8723
8843
  /**
8724
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
8844
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8725
8845
  * @summary Get credit purchases
8726
8846
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
8727
8847
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8728
8848
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8729
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
8730
- * @param {number} [offset] Number of results to skip (default: 0)
8849
+ * @param {number} [page] Page number (default: 1)
8850
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
8851
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8852
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8853
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
8854
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8731
8855
  * @param {*} [options] Override http request option.
8732
8856
  * @throws {RequiredError}
8733
8857
  */
8734
- adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
8858
+ adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
8735
8859
  return __awaiter(this, void 0, void 0, function* () {
8736
8860
  var _a, _b, _c;
8737
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options);
8861
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
8738
8862
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8739
8863
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingCreditPurchasesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8740
8864
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8741
8865
  });
8742
8866
  },
8743
8867
  /**
8744
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
8868
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
8745
8869
  * @summary Get credit transactions
8746
8870
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
8747
8871
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8748
8872
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8749
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
8750
- * @param {number} [offset] Number of results to skip (default: 0)
8873
+ * @param {number} [page] Page number (default: 1)
8874
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
8875
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
8876
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
8877
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
8878
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8751
8879
  * @param {*} [options] Override http request option.
8752
8880
  * @throws {RequiredError}
8753
8881
  */
8754
- adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
8882
+ adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
8755
8883
  return __awaiter(this, void 0, void 0, function* () {
8756
8884
  var _a, _b, _c;
8757
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options);
8885
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
8758
8886
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8759
8887
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingCreditTransactionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8760
8888
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8808,21 +8936,25 @@ const BillingDashboardApiFp = function (configuration) {
8808
8936
  });
8809
8937
  },
8810
8938
  /**
8811
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
8939
+ * 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.
8812
8940
  * @summary Get invoices
8813
8941
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
8814
8942
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
8815
8943
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8816
8944
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8945
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
8817
8946
  * @param {number} [page] Page number (default: 1)
8818
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
8947
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
8948
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
8949
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
8950
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
8819
8951
  * @param {*} [options] Override http request option.
8820
8952
  * @throws {RequiredError}
8821
8953
  */
8822
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
8954
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
8823
8955
  return __awaiter(this, void 0, void 0, function* () {
8824
8956
  var _a, _b, _c;
8825
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
8957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
8826
8958
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8827
8959
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8828
8960
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8911,20 +9043,27 @@ const BillingDashboardApiFp = function (configuration) {
8911
9043
  });
8912
9044
  },
8913
9045
  /**
8914
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9046
+ * 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.
8915
9047
  * @summary Get orders
8916
9048
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
8917
9049
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
8918
9050
  * @param {string} [endDate] End date (YYYY-MM-DD format)
8919
9051
  * @param {number} [page] Page number (default: 1)
8920
9052
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9053
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9054
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9055
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9056
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
9057
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
9058
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
9059
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
8921
9060
  * @param {*} [options] Override http request option.
8922
9061
  * @throws {RequiredError}
8923
9062
  */
8924
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
9063
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
8925
9064
  return __awaiter(this, void 0, void 0, function* () {
8926
9065
  var _a, _b, _c;
8927
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options);
9066
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options);
8928
9067
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8929
9068
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8930
9069
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9015,20 +9154,24 @@ const BillingDashboardApiFp = function (configuration) {
9015
9154
  });
9016
9155
  },
9017
9156
  /**
9018
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
9157
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9019
9158
  * @summary Get payment transactions
9020
9159
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9021
9160
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9022
9161
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9023
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9024
- * @param {number} [offset] Number of results to skip (default: 0)
9162
+ * @param {number} [page] Page number (default: 1)
9163
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
9164
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9165
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9166
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
9167
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9025
9168
  * @param {*} [options] Override http request option.
9026
9169
  * @throws {RequiredError}
9027
9170
  */
9028
- adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9171
+ adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
9029
9172
  return __awaiter(this, void 0, void 0, function* () {
9030
9173
  var _a, _b, _c;
9031
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options);
9174
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options);
9032
9175
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9033
9176
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9034
9177
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9066,17 +9209,19 @@ const BillingDashboardApiFp = function (configuration) {
9066
9209
  });
9067
9210
  },
9068
9211
  /**
9069
- * Retrieves a paginated list of receipts for the organization
9212
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
9070
9213
  * @summary List receipts
9071
9214
  * @param {number} [page] Page number (default: 1)
9072
9215
  * @param {number} [pageSize] Page size (default: 20, max: 100)
9216
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
9217
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9073
9218
  * @param {*} [options] Override http request option.
9074
9219
  * @throws {RequiredError}
9075
9220
  */
9076
- adminBillingReceiptsGet(page, pageSize, options) {
9221
+ adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
9077
9222
  return __awaiter(this, void 0, void 0, function* () {
9078
9223
  var _a, _b, _c;
9079
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
9224
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options);
9080
9225
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9081
9226
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9082
9227
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9234,46 +9379,58 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9234
9379
  return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
9235
9380
  },
9236
9381
  /**
9237
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
9382
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9238
9383
  * @summary Get credit ledger
9239
9384
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9240
9385
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9241
9386
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9242
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9243
- * @param {number} [offset] Number of results to skip (default: 0)
9387
+ * @param {number} [page] Page number (default: 1)
9388
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
9389
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9390
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9391
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
9392
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9244
9393
  * @param {*} [options] Override http request option.
9245
9394
  * @throws {RequiredError}
9246
9395
  */
9247
- adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
9248
- return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
9396
+ adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
9397
+ return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9249
9398
  },
9250
9399
  /**
9251
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
9400
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9252
9401
  * @summary Get credit purchases
9253
9402
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9254
9403
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9255
9404
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9256
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9257
- * @param {number} [offset] Number of results to skip (default: 0)
9405
+ * @param {number} [page] Page number (default: 1)
9406
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
9407
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9408
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9409
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
9410
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9258
9411
  * @param {*} [options] Override http request option.
9259
9412
  * @throws {RequiredError}
9260
9413
  */
9261
- adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
9262
- return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
9414
+ adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
9415
+ return localVarFp.adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9263
9416
  },
9264
9417
  /**
9265
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
9418
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9266
9419
  * @summary Get credit transactions
9267
9420
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9268
9421
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9269
9422
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9270
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9271
- * @param {number} [offset] Number of results to skip (default: 0)
9423
+ * @param {number} [page] Page number (default: 1)
9424
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
9425
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9426
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9427
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
9428
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9272
9429
  * @param {*} [options] Override http request option.
9273
9430
  * @throws {RequiredError}
9274
9431
  */
9275
- adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9276
- return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
9432
+ adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
9433
+ return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9277
9434
  },
9278
9435
  /**
9279
9436
  * Automatically generates invoices for all completed payments without invoices
@@ -9305,19 +9462,23 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9305
9462
  return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
9306
9463
  },
9307
9464
  /**
9308
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
9465
+ * 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.
9309
9466
  * @summary Get invoices
9310
9467
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9311
9468
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
9312
9469
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9313
9470
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9471
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
9314
9472
  * @param {number} [page] Page number (default: 1)
9315
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
9473
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
9474
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
9475
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
9476
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9316
9477
  * @param {*} [options] Override http request option.
9317
9478
  * @throws {RequiredError}
9318
9479
  */
9319
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
9320
- return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(axios, basePath));
9480
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
9481
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9321
9482
  },
9322
9483
  /**
9323
9484
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -9372,18 +9533,25 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9372
9533
  return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
9373
9534
  },
9374
9535
  /**
9375
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9536
+ * 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.
9376
9537
  * @summary Get orders
9377
9538
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9378
9539
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9379
9540
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9380
9541
  * @param {number} [page] Page number (default: 1)
9381
9542
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9543
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9544
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9545
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9546
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
9547
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
9548
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
9549
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
9382
9550
  * @param {*} [options] Override http request option.
9383
9551
  * @throws {RequiredError}
9384
9552
  */
9385
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
9386
- return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
9553
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9554
+ return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(axios, basePath));
9387
9555
  },
9388
9556
  /**
9389
9557
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
@@ -9440,18 +9608,22 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9440
9608
  return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
9441
9609
  },
9442
9610
  /**
9443
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
9611
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9444
9612
  * @summary Get payment transactions
9445
9613
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9446
9614
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9447
9615
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9448
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9449
- * @param {number} [offset] Number of results to skip (default: 0)
9616
+ * @param {number} [page] Page number (default: 1)
9617
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
9618
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9619
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9620
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
9621
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9450
9622
  * @param {*} [options] Override http request option.
9451
9623
  * @throws {RequiredError}
9452
9624
  */
9453
- adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9454
- return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
9625
+ adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
9626
+ return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9455
9627
  },
9456
9628
  /**
9457
9629
  * Generates receipts for all completed payments without receipts in the organization
@@ -9473,15 +9645,17 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9473
9645
  return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
9474
9646
  },
9475
9647
  /**
9476
- * Retrieves a paginated list of receipts for the organization
9648
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
9477
9649
  * @summary List receipts
9478
9650
  * @param {number} [page] Page number (default: 1)
9479
9651
  * @param {number} [pageSize] Page size (default: 20, max: 100)
9652
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
9653
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9480
9654
  * @param {*} [options] Override http request option.
9481
9655
  * @throws {RequiredError}
9482
9656
  */
9483
- adminBillingReceiptsGet(page, pageSize, options) {
9484
- return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
9657
+ adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
9658
+ return localVarFp.adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(axios, basePath));
9485
9659
  },
9486
9660
  /**
9487
9661
  * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
@@ -9617,49 +9791,61 @@ class BillingDashboardApi extends base_1.BaseAPI {
9617
9791
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
9618
9792
  }
9619
9793
  /**
9620
- * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
9794
+ * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9621
9795
  * @summary Get credit ledger
9622
9796
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9623
9797
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9624
9798
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9625
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9626
- * @param {number} [offset] Number of results to skip (default: 0)
9799
+ * @param {number} [page] Page number (default: 1)
9800
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
9801
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9802
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9803
+ * @param {string} [sortBy] Field to sort by (id, credits, transaction_date, transaction_type) (default: transaction_date)
9804
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9627
9805
  * @param {*} [options] Override http request option.
9628
9806
  * @throws {RequiredError}
9629
9807
  * @memberof BillingDashboardApi
9630
9808
  */
9631
- adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options) {
9632
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
9809
+ adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
9810
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9633
9811
  }
9634
9812
  /**
9635
- * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization
9813
+ * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9636
9814
  * @summary Get credit purchases
9637
9815
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9638
9816
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9639
9817
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9640
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9641
- * @param {number} [offset] Number of results to skip (default: 0)
9818
+ * @param {number} [page] Page number (default: 1)
9819
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
9820
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9821
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9822
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, credits_purchased) (default: created_at)
9823
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9642
9824
  * @param {*} [options] Override http request option.
9643
9825
  * @throws {RequiredError}
9644
9826
  * @memberof BillingDashboardApi
9645
9827
  */
9646
- adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options) {
9647
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
9828
+ adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
9829
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditPurchasesGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9648
9830
  }
9649
9831
  /**
9650
- * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization
9832
+ * Retrieves paginated list of credit transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9651
9833
  * @summary Get credit transactions
9652
9834
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9653
9835
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9654
9836
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9655
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9656
- * @param {number} [offset] Number of results to skip (default: 0)
9837
+ * @param {number} [page] Page number (default: 1)
9838
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
9839
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9840
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
9841
+ * @param {string} [sortBy] Field to sort by (id, credits_used, transaction_date, transaction_type) (default: transaction_date)
9842
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9657
9843
  * @param {*} [options] Override http request option.
9658
9844
  * @throws {RequiredError}
9659
9845
  * @memberof BillingDashboardApi
9660
9846
  */
9661
- adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9662
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
9847
+ adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
9848
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9663
9849
  }
9664
9850
  /**
9665
9851
  * Automatically generates invoices for all completed payments without invoices
@@ -9694,20 +9880,24 @@ class BillingDashboardApi extends base_1.BaseAPI {
9694
9880
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
9695
9881
  }
9696
9882
  /**
9697
- * Retrieves paginated list of invoices with filtering options for the authenticated user\'s organization. Returns analytics-compatible pagination object.
9883
+ * 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.
9698
9884
  * @summary Get invoices
9699
9885
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9700
9886
  * @param {string} [status] Invoice status (draft, sent, paid, overdue, cancelled)
9701
9887
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9702
9888
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9889
+ * @param {string} [search] Search across invoice number, organization name, notes, and amount
9703
9890
  * @param {number} [page] Page number (default: 1)
9704
- * @param {number} [limit] Number of results per page (default: 20, max: 100)
9891
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100) - alternative to limit
9892
+ * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
9893
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, due_date, status) (default: created_at)
9894
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9705
9895
  * @param {*} [options] Override http request option.
9706
9896
  * @throws {RequiredError}
9707
9897
  * @memberof BillingDashboardApi
9708
9898
  */
9709
- adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
9710
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(this.axios, this.basePath));
9899
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
9900
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9711
9901
  }
9712
9902
  /**
9713
9903
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -9767,19 +9957,26 @@ class BillingDashboardApi extends base_1.BaseAPI {
9767
9957
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
9768
9958
  }
9769
9959
  /**
9770
- * Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9960
+ * 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.
9771
9961
  * @summary Get orders
9772
9962
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9773
9963
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9774
9964
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9775
9965
  * @param {number} [page] Page number (default: 1)
9776
9966
  * @param {number} [pageSize] Page size (default: 50, max: 100)
9967
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
9968
+ * @param {string} [sortBy] Field to sort by (id, amount, created_at, updated_at, status) (default: created_at)
9969
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9970
+ * @param {string} [search] Search in order ID, gateway order ID, gateway payment ID
9971
+ * @param {string} [status] Filter by order status (created, paid, failed, refunded)
9972
+ * @param {string} [gateway] Filter by payment gateway (razorpay, stripe, etc.)
9973
+ * @param {string} [paymentType] Filter by payment type (subscription, credits, etc.)
9777
9974
  * @param {*} [options] Override http request option.
9778
9975
  * @throws {RequiredError}
9779
9976
  * @memberof BillingDashboardApi
9780
9977
  */
9781
- adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options) {
9782
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
9978
+ adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options) {
9979
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, limit, sortBy, sortOrder, search, status, gateway, paymentType, options).then((request) => request(this.axios, this.basePath));
9783
9980
  }
9784
9981
  /**
9785
9982
  * Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
@@ -9841,19 +10038,23 @@ class BillingDashboardApi extends base_1.BaseAPI {
9841
10038
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOverviewNewGet(options).then((request) => request(this.axios, this.basePath));
9842
10039
  }
9843
10040
  /**
9844
- * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
10041
+ * Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
9845
10042
  * @summary Get payment transactions
9846
10043
  * @param {number} [orgId] Organization ID (defaults to user\'s org)
9847
10044
  * @param {string} [startDate] Start date (YYYY-MM-DD format)
9848
10045
  * @param {string} [endDate] End date (YYYY-MM-DD format)
9849
- * @param {number} [limit] Number of results per page (default: 50, max: 100)
9850
- * @param {number} [offset] Number of results to skip (default: 0)
10046
+ * @param {number} [page] Page number (default: 1)
10047
+ * @param {number} [pageSize] Page size (default: 50, max: 100)
10048
+ * @param {number} [limit] Alternative: Number of results per page (default: 50, max: 100)
10049
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
10050
+ * @param {string} [sortBy] Field to sort by (payment_id, amount, payment_date, created_at, payment_status, gateway, refund_amount) (default: payment_date)
10051
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9851
10052
  * @param {*} [options] Override http request option.
9852
10053
  * @throws {RequiredError}
9853
10054
  * @memberof BillingDashboardApi
9854
10055
  */
9855
- adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9856
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
10056
+ adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
10057
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9857
10058
  }
9858
10059
  /**
9859
10060
  * Generates receipts for all completed payments without receipts in the organization
@@ -9877,16 +10078,18 @@ class BillingDashboardApi extends base_1.BaseAPI {
9877
10078
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
9878
10079
  }
9879
10080
  /**
9880
- * Retrieves a paginated list of receipts for the organization
10081
+ * Retrieves a paginated list of receipts for the organization. Uses page/page_size pagination like analytics APIs.
9881
10082
  * @summary List receipts
9882
10083
  * @param {number} [page] Page number (default: 1)
9883
10084
  * @param {number} [pageSize] Page size (default: 20, max: 100)
10085
+ * @param {string} [sortBy] Field to sort by (id, amount, payment_date, created_at) (default: created_at)
10086
+ * @param {string} [sortOrder] Sort order (ASC, DESC) (default: DESC)
9884
10087
  * @param {*} [options] Override http request option.
9885
10088
  * @throws {RequiredError}
9886
10089
  * @memberof BillingDashboardApi
9887
10090
  */
9888
- adminBillingReceiptsGet(page, pageSize, options) {
9889
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
10091
+ adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options) {
10092
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsGet(page, pageSize, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
9890
10093
  }
9891
10094
  /**
9892
10095
  * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.