@seekora-ai/admin-api 1.1.5 → 1.1.7

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/esm/api.js CHANGED
@@ -84,6 +84,11 @@ export const DataTypesBillingAlertRequestAlertTypeEnum = {
84
84
  ExpiringCredits: 'expiring_credits',
85
85
  DaysRemaining: 'days_remaining'
86
86
  };
87
+ export const DataTypesBillingAlertRequestThresholdUnitEnum = {
88
+ Credits: 'credits',
89
+ Days: 'days',
90
+ Percentage: 'percentage'
91
+ };
87
92
  export const DataTypesCreateCustomWordListRequestTypeEnum = {
88
93
  Stopwords: 'stopwords',
89
94
  Synonyms: 'synonyms'
@@ -6971,6 +6976,42 @@ export const AuthApiAxiosParamCreator = function (configuration) {
6971
6976
  options: localVarRequestOptions,
6972
6977
  };
6973
6978
  }),
6979
+ /**
6980
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
6981
+ * @summary Link or Unlink an SSO provider
6982
+ * @param {string} authorization Bearer <access_token>
6983
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
6984
+ * @param {*} [options] Override http request option.
6985
+ * @throws {RequiredError}
6986
+ */
6987
+ authUpdateSsoPost: (authorization_1, dataTypesLoginRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesLoginRequest_1, ...args_1], void 0, function* (authorization, dataTypesLoginRequest, options = {}) {
6988
+ // verify required parameter 'authorization' is not null or undefined
6989
+ assertParamExists('authUpdateSsoPost', 'authorization', authorization);
6990
+ // verify required parameter 'dataTypesLoginRequest' is not null or undefined
6991
+ assertParamExists('authUpdateSsoPost', 'dataTypesLoginRequest', dataTypesLoginRequest);
6992
+ const localVarPath = `/Auth/update-sso`;
6993
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6994
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6995
+ let baseOptions;
6996
+ if (configuration) {
6997
+ baseOptions = configuration.baseOptions;
6998
+ }
6999
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7000
+ const localVarHeaderParameter = {};
7001
+ const localVarQueryParameter = {};
7002
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7003
+ if (authorization != null) {
7004
+ localVarHeaderParameter['Authorization'] = String(authorization);
7005
+ }
7006
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7007
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7008
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7009
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesLoginRequest, localVarRequestOptions, configuration);
7010
+ return {
7011
+ url: toPathString(localVarUrlObj),
7012
+ options: localVarRequestOptions,
7013
+ };
7014
+ }),
6974
7015
  };
6975
7016
  };
6976
7017
  /**
@@ -7026,6 +7067,23 @@ export const AuthApiFp = function (configuration) {
7026
7067
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7027
7068
  });
7028
7069
  },
7070
+ /**
7071
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7072
+ * @summary Link or Unlink an SSO provider
7073
+ * @param {string} authorization Bearer <access_token>
7074
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7075
+ * @param {*} [options] Override http request option.
7076
+ * @throws {RequiredError}
7077
+ */
7078
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7079
+ return __awaiter(this, void 0, void 0, function* () {
7080
+ var _a, _b, _c;
7081
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authUpdateSsoPost(authorization, dataTypesLoginRequest, options);
7082
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7083
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authUpdateSsoPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7084
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7085
+ });
7086
+ },
7029
7087
  };
7030
7088
  };
7031
7089
  /**
@@ -7063,6 +7121,17 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
7063
7121
  authSessionGet(options) {
7064
7122
  return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
7065
7123
  },
7124
+ /**
7125
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7126
+ * @summary Link or Unlink an SSO provider
7127
+ * @param {string} authorization Bearer <access_token>
7128
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7129
+ * @param {*} [options] Override http request option.
7130
+ * @throws {RequiredError}
7131
+ */
7132
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7133
+ return localVarFp.authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(axios, basePath));
7134
+ },
7066
7135
  };
7067
7136
  };
7068
7137
  /**
@@ -7103,6 +7172,18 @@ export class AuthApi extends BaseAPI {
7103
7172
  authSessionGet(options) {
7104
7173
  return AuthApiFp(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
7105
7174
  }
7175
+ /**
7176
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7177
+ * @summary Link or Unlink an SSO provider
7178
+ * @param {string} authorization Bearer <access_token>
7179
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7180
+ * @param {*} [options] Override http request option.
7181
+ * @throws {RequiredError}
7182
+ * @memberof AuthApi
7183
+ */
7184
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7185
+ return AuthApiFp(this.configuration).authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(this.axios, this.basePath));
7186
+ }
7106
7187
  }
7107
7188
  /**
7108
7189
  * AutomatedRefundManagementApi - axios parameter creator
@@ -8215,6 +8296,161 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
8215
8296
  options: localVarRequestOptions,
8216
8297
  };
8217
8298
  }),
8299
+ /**
8300
+ * Generates receipts for all completed payments without receipts in the organization
8301
+ * @summary Auto-generate receipts for organization
8302
+ * @param {*} [options] Override http request option.
8303
+ * @throws {RequiredError}
8304
+ */
8305
+ adminBillingReceiptsAutoGeneratePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
8306
+ const localVarPath = `/admin/billing/receipts/auto-generate`;
8307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8308
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8309
+ let baseOptions;
8310
+ if (configuration) {
8311
+ baseOptions = configuration.baseOptions;
8312
+ }
8313
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8314
+ const localVarHeaderParameter = {};
8315
+ const localVarQueryParameter = {};
8316
+ // authentication BearerAuth required
8317
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8318
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8320
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8321
+ return {
8322
+ url: toPathString(localVarUrlObj),
8323
+ options: localVarRequestOptions,
8324
+ };
8325
+ }),
8326
+ /**
8327
+ * Generates a receipt for a completed payment
8328
+ * @summary Generate receipt from payment
8329
+ * @param {number} paymentId Payment ID
8330
+ * @param {*} [options] Override http request option.
8331
+ * @throws {RequiredError}
8332
+ */
8333
+ adminBillingReceiptsGeneratePaymentIdPost: (paymentId_1, ...args_1) => __awaiter(this, [paymentId_1, ...args_1], void 0, function* (paymentId, options = {}) {
8334
+ // verify required parameter 'paymentId' is not null or undefined
8335
+ assertParamExists('adminBillingReceiptsGeneratePaymentIdPost', 'paymentId', paymentId);
8336
+ const localVarPath = `/admin/billing/receipts/generate/{paymentId}`
8337
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
8338
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8339
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8340
+ let baseOptions;
8341
+ if (configuration) {
8342
+ baseOptions = configuration.baseOptions;
8343
+ }
8344
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8345
+ const localVarHeaderParameter = {};
8346
+ const localVarQueryParameter = {};
8347
+ // authentication BearerAuth required
8348
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8349
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8351
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8352
+ return {
8353
+ url: toPathString(localVarUrlObj),
8354
+ options: localVarRequestOptions,
8355
+ };
8356
+ }),
8357
+ /**
8358
+ * Retrieves a paginated list of receipts for the organization
8359
+ * @summary List receipts
8360
+ * @param {number} [page] Page number (default: 1)
8361
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
8362
+ * @param {*} [options] Override http request option.
8363
+ * @throws {RequiredError}
8364
+ */
8365
+ adminBillingReceiptsGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
8366
+ const localVarPath = `/admin/billing/receipts`;
8367
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8368
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8369
+ let baseOptions;
8370
+ if (configuration) {
8371
+ baseOptions = configuration.baseOptions;
8372
+ }
8373
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8374
+ const localVarHeaderParameter = {};
8375
+ const localVarQueryParameter = {};
8376
+ // authentication BearerAuth required
8377
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8378
+ if (page !== undefined) {
8379
+ localVarQueryParameter['page'] = page;
8380
+ }
8381
+ if (pageSize !== undefined) {
8382
+ localVarQueryParameter['page_size'] = pageSize;
8383
+ }
8384
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8385
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8386
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8387
+ return {
8388
+ url: toPathString(localVarUrlObj),
8389
+ options: localVarRequestOptions,
8390
+ };
8391
+ }),
8392
+ /**
8393
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
8394
+ * @summary Download receipt PDF
8395
+ * @param {number} id Receipt ID
8396
+ * @param {*} [options] Override http request option.
8397
+ * @throws {RequiredError}
8398
+ */
8399
+ adminBillingReceiptsIdDownloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
8400
+ // verify required parameter 'id' is not null or undefined
8401
+ assertParamExists('adminBillingReceiptsIdDownloadGet', 'id', id);
8402
+ const localVarPath = `/admin/billing/receipts/{id}/download`
8403
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8405
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8406
+ let baseOptions;
8407
+ if (configuration) {
8408
+ baseOptions = configuration.baseOptions;
8409
+ }
8410
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8411
+ const localVarHeaderParameter = {};
8412
+ const localVarQueryParameter = {};
8413
+ // authentication BearerAuth required
8414
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8415
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8416
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8417
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8418
+ return {
8419
+ url: toPathString(localVarUrlObj),
8420
+ options: localVarRequestOptions,
8421
+ };
8422
+ }),
8423
+ /**
8424
+ * Retrieves a single receipt by its ID
8425
+ * @summary Get receipt by ID
8426
+ * @param {number} id Receipt ID
8427
+ * @param {*} [options] Override http request option.
8428
+ * @throws {RequiredError}
8429
+ */
8430
+ adminBillingReceiptsIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
8431
+ // verify required parameter 'id' is not null or undefined
8432
+ assertParamExists('adminBillingReceiptsIdGet', 'id', id);
8433
+ const localVarPath = `/admin/billing/receipts/{id}`
8434
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8435
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8436
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8437
+ let baseOptions;
8438
+ if (configuration) {
8439
+ baseOptions = configuration.baseOptions;
8440
+ }
8441
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8442
+ const localVarHeaderParameter = {};
8443
+ const localVarQueryParameter = {};
8444
+ // authentication BearerAuth required
8445
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8446
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8447
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8448
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8449
+ return {
8450
+ url: toPathString(localVarUrlObj),
8451
+ options: localVarRequestOptions,
8452
+ };
8453
+ }),
8218
8454
  /**
8219
8455
  * Returns saved payment cards from Razorpay for the organization
8220
8456
  * @summary Get saved payment cards
@@ -8757,6 +8993,86 @@ export const BillingDashboardApiFp = function (configuration) {
8757
8993
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8758
8994
  });
8759
8995
  },
8996
+ /**
8997
+ * Generates receipts for all completed payments without receipts in the organization
8998
+ * @summary Auto-generate receipts for organization
8999
+ * @param {*} [options] Override http request option.
9000
+ * @throws {RequiredError}
9001
+ */
9002
+ adminBillingReceiptsAutoGeneratePost(options) {
9003
+ return __awaiter(this, void 0, void 0, function* () {
9004
+ var _a, _b, _c;
9005
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsAutoGeneratePost(options);
9006
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9007
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsAutoGeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9008
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9009
+ });
9010
+ },
9011
+ /**
9012
+ * Generates a receipt for a completed payment
9013
+ * @summary Generate receipt from payment
9014
+ * @param {number} paymentId Payment ID
9015
+ * @param {*} [options] Override http request option.
9016
+ * @throws {RequiredError}
9017
+ */
9018
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9019
+ return __awaiter(this, void 0, void 0, function* () {
9020
+ var _a, _b, _c;
9021
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options);
9022
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9023
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsGeneratePaymentIdPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9024
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9025
+ });
9026
+ },
9027
+ /**
9028
+ * Retrieves a paginated list of receipts for the organization
9029
+ * @summary List receipts
9030
+ * @param {number} [page] Page number (default: 1)
9031
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9032
+ * @param {*} [options] Override http request option.
9033
+ * @throws {RequiredError}
9034
+ */
9035
+ adminBillingReceiptsGet(page, pageSize, options) {
9036
+ return __awaiter(this, void 0, void 0, function* () {
9037
+ var _a, _b, _c;
9038
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
9039
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9040
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9041
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9042
+ });
9043
+ },
9044
+ /**
9045
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9046
+ * @summary Download receipt PDF
9047
+ * @param {number} id Receipt ID
9048
+ * @param {*} [options] Override http request option.
9049
+ * @throws {RequiredError}
9050
+ */
9051
+ adminBillingReceiptsIdDownloadGet(id, options) {
9052
+ return __awaiter(this, void 0, void 0, function* () {
9053
+ var _a, _b, _c;
9054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsIdDownloadGet(id, options);
9055
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9056
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsIdDownloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9058
+ });
9059
+ },
9060
+ /**
9061
+ * Retrieves a single receipt by its ID
9062
+ * @summary Get receipt by ID
9063
+ * @param {number} id Receipt ID
9064
+ * @param {*} [options] Override http request option.
9065
+ * @throws {RequiredError}
9066
+ */
9067
+ adminBillingReceiptsIdGet(id, options) {
9068
+ return __awaiter(this, void 0, void 0, function* () {
9069
+ var _a, _b, _c;
9070
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsIdGet(id, options);
9071
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9072
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9073
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9074
+ });
9075
+ },
8760
9076
  /**
8761
9077
  * Returns saved payment cards from Razorpay for the organization
8762
9078
  * @summary Get saved payment cards
@@ -9095,6 +9411,56 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9095
9411
  adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9096
9412
  return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
9097
9413
  },
9414
+ /**
9415
+ * Generates receipts for all completed payments without receipts in the organization
9416
+ * @summary Auto-generate receipts for organization
9417
+ * @param {*} [options] Override http request option.
9418
+ * @throws {RequiredError}
9419
+ */
9420
+ adminBillingReceiptsAutoGeneratePost(options) {
9421
+ return localVarFp.adminBillingReceiptsAutoGeneratePost(options).then((request) => request(axios, basePath));
9422
+ },
9423
+ /**
9424
+ * Generates a receipt for a completed payment
9425
+ * @summary Generate receipt from payment
9426
+ * @param {number} paymentId Payment ID
9427
+ * @param {*} [options] Override http request option.
9428
+ * @throws {RequiredError}
9429
+ */
9430
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9431
+ return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
9432
+ },
9433
+ /**
9434
+ * Retrieves a paginated list of receipts for the organization
9435
+ * @summary List receipts
9436
+ * @param {number} [page] Page number (default: 1)
9437
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9438
+ * @param {*} [options] Override http request option.
9439
+ * @throws {RequiredError}
9440
+ */
9441
+ adminBillingReceiptsGet(page, pageSize, options) {
9442
+ return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
9443
+ },
9444
+ /**
9445
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9446
+ * @summary Download receipt PDF
9447
+ * @param {number} id Receipt ID
9448
+ * @param {*} [options] Override http request option.
9449
+ * @throws {RequiredError}
9450
+ */
9451
+ adminBillingReceiptsIdDownloadGet(id, options) {
9452
+ return localVarFp.adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(axios, basePath));
9453
+ },
9454
+ /**
9455
+ * Retrieves a single receipt by its ID
9456
+ * @summary Get receipt by ID
9457
+ * @param {number} id Receipt ID
9458
+ * @param {*} [options] Override http request option.
9459
+ * @throws {RequiredError}
9460
+ */
9461
+ adminBillingReceiptsIdGet(id, options) {
9462
+ return localVarFp.adminBillingReceiptsIdGet(id, options).then((request) => request(axios, basePath));
9463
+ },
9098
9464
  /**
9099
9465
  * Returns saved payment cards from Razorpay for the organization
9100
9466
  * @summary Get saved payment cards
@@ -9446,6 +9812,61 @@ export class BillingDashboardApi extends BaseAPI {
9446
9812
  adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9447
9813
  return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
9448
9814
  }
9815
+ /**
9816
+ * Generates receipts for all completed payments without receipts in the organization
9817
+ * @summary Auto-generate receipts for organization
9818
+ * @param {*} [options] Override http request option.
9819
+ * @throws {RequiredError}
9820
+ * @memberof BillingDashboardApi
9821
+ */
9822
+ adminBillingReceiptsAutoGeneratePost(options) {
9823
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
9824
+ }
9825
+ /**
9826
+ * Generates a receipt for a completed payment
9827
+ * @summary Generate receipt from payment
9828
+ * @param {number} paymentId Payment ID
9829
+ * @param {*} [options] Override http request option.
9830
+ * @throws {RequiredError}
9831
+ * @memberof BillingDashboardApi
9832
+ */
9833
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9834
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
9835
+ }
9836
+ /**
9837
+ * Retrieves a paginated list of receipts for the organization
9838
+ * @summary List receipts
9839
+ * @param {number} [page] Page number (default: 1)
9840
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9841
+ * @param {*} [options] Override http request option.
9842
+ * @throws {RequiredError}
9843
+ * @memberof BillingDashboardApi
9844
+ */
9845
+ adminBillingReceiptsGet(page, pageSize, options) {
9846
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
9847
+ }
9848
+ /**
9849
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9850
+ * @summary Download receipt PDF
9851
+ * @param {number} id Receipt ID
9852
+ * @param {*} [options] Override http request option.
9853
+ * @throws {RequiredError}
9854
+ * @memberof BillingDashboardApi
9855
+ */
9856
+ adminBillingReceiptsIdDownloadGet(id, options) {
9857
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(this.axios, this.basePath));
9858
+ }
9859
+ /**
9860
+ * Retrieves a single receipt by its ID
9861
+ * @summary Get receipt by ID
9862
+ * @param {number} id Receipt ID
9863
+ * @param {*} [options] Override http request option.
9864
+ * @throws {RequiredError}
9865
+ * @memberof BillingDashboardApi
9866
+ */
9867
+ adminBillingReceiptsIdGet(id, options) {
9868
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsIdGet(id, options).then((request) => request(this.axios, this.basePath));
9869
+ }
9449
9870
  /**
9450
9871
  * Returns saved payment cards from Razorpay for the organization
9451
9872
  * @summary Get saved payment cards
@@ -9580,6 +10001,170 @@ export class CommonApi extends BaseAPI {
9580
10001
  return CommonApiFp(this.configuration).v1CommonLanguagesGet(options).then((request) => request(this.axios, this.basePath));
9581
10002
  }
9582
10003
  }
10004
+ /**
10005
+ * CompanyConfigApi - axios parameter creator
10006
+ * @export
10007
+ */
10008
+ export const CompanyConfigApiAxiosParamCreator = function (configuration) {
10009
+ return {
10010
+ /**
10011
+ * Retrieves company information used on invoices and receipts
10012
+ * @summary Get company configuration
10013
+ * @param {*} [options] Override http request option.
10014
+ * @throws {RequiredError}
10015
+ */
10016
+ adminV1ConfigCompanyGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10017
+ const localVarPath = `/admin/v1/config/company`;
10018
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10019
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10020
+ let baseOptions;
10021
+ if (configuration) {
10022
+ baseOptions = configuration.baseOptions;
10023
+ }
10024
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10025
+ const localVarHeaderParameter = {};
10026
+ const localVarQueryParameter = {};
10027
+ // authentication BearerAuth required
10028
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10029
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10030
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10031
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10032
+ return {
10033
+ url: toPathString(localVarUrlObj),
10034
+ options: localVarRequestOptions,
10035
+ };
10036
+ }),
10037
+ /**
10038
+ * Updates company information used on invoices and receipts
10039
+ * @summary Update company configuration
10040
+ * @param {DataTypesCompanyConfigRequest} dataTypesCompanyConfigRequest Company config
10041
+ * @param {*} [options] Override http request option.
10042
+ * @throws {RequiredError}
10043
+ */
10044
+ adminV1ConfigCompanyPut: (dataTypesCompanyConfigRequest_1, ...args_1) => __awaiter(this, [dataTypesCompanyConfigRequest_1, ...args_1], void 0, function* (dataTypesCompanyConfigRequest, options = {}) {
10045
+ // verify required parameter 'dataTypesCompanyConfigRequest' is not null or undefined
10046
+ assertParamExists('adminV1ConfigCompanyPut', 'dataTypesCompanyConfigRequest', dataTypesCompanyConfigRequest);
10047
+ const localVarPath = `/admin/v1/config/company`;
10048
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10049
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10050
+ let baseOptions;
10051
+ if (configuration) {
10052
+ baseOptions = configuration.baseOptions;
10053
+ }
10054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
10055
+ const localVarHeaderParameter = {};
10056
+ const localVarQueryParameter = {};
10057
+ // authentication BearerAuth required
10058
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10059
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10060
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10062
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10063
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCompanyConfigRequest, localVarRequestOptions, configuration);
10064
+ return {
10065
+ url: toPathString(localVarUrlObj),
10066
+ options: localVarRequestOptions,
10067
+ };
10068
+ }),
10069
+ };
10070
+ };
10071
+ /**
10072
+ * CompanyConfigApi - functional programming interface
10073
+ * @export
10074
+ */
10075
+ export const CompanyConfigApiFp = function (configuration) {
10076
+ const localVarAxiosParamCreator = CompanyConfigApiAxiosParamCreator(configuration);
10077
+ return {
10078
+ /**
10079
+ * Retrieves company information used on invoices and receipts
10080
+ * @summary Get company configuration
10081
+ * @param {*} [options] Override http request option.
10082
+ * @throws {RequiredError}
10083
+ */
10084
+ adminV1ConfigCompanyGet(options) {
10085
+ return __awaiter(this, void 0, void 0, function* () {
10086
+ var _a, _b, _c;
10087
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1ConfigCompanyGet(options);
10088
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10089
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyConfigApi.adminV1ConfigCompanyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10090
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10091
+ });
10092
+ },
10093
+ /**
10094
+ * Updates company information used on invoices and receipts
10095
+ * @summary Update company configuration
10096
+ * @param {DataTypesCompanyConfigRequest} dataTypesCompanyConfigRequest Company config
10097
+ * @param {*} [options] Override http request option.
10098
+ * @throws {RequiredError}
10099
+ */
10100
+ adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options) {
10101
+ return __awaiter(this, void 0, void 0, function* () {
10102
+ var _a, _b, _c;
10103
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options);
10104
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10105
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyConfigApi.adminV1ConfigCompanyPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10107
+ });
10108
+ },
10109
+ };
10110
+ };
10111
+ /**
10112
+ * CompanyConfigApi - factory interface
10113
+ * @export
10114
+ */
10115
+ export const CompanyConfigApiFactory = function (configuration, basePath, axios) {
10116
+ const localVarFp = CompanyConfigApiFp(configuration);
10117
+ return {
10118
+ /**
10119
+ * Retrieves company information used on invoices and receipts
10120
+ * @summary Get company configuration
10121
+ * @param {*} [options] Override http request option.
10122
+ * @throws {RequiredError}
10123
+ */
10124
+ adminV1ConfigCompanyGet(options) {
10125
+ return localVarFp.adminV1ConfigCompanyGet(options).then((request) => request(axios, basePath));
10126
+ },
10127
+ /**
10128
+ * Updates company information used on invoices and receipts
10129
+ * @summary Update company configuration
10130
+ * @param {DataTypesCompanyConfigRequest} dataTypesCompanyConfigRequest Company config
10131
+ * @param {*} [options] Override http request option.
10132
+ * @throws {RequiredError}
10133
+ */
10134
+ adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options) {
10135
+ return localVarFp.adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options).then((request) => request(axios, basePath));
10136
+ },
10137
+ };
10138
+ };
10139
+ /**
10140
+ * CompanyConfigApi - object-oriented interface
10141
+ * @export
10142
+ * @class CompanyConfigApi
10143
+ * @extends {BaseAPI}
10144
+ */
10145
+ export class CompanyConfigApi extends BaseAPI {
10146
+ /**
10147
+ * Retrieves company information used on invoices and receipts
10148
+ * @summary Get company configuration
10149
+ * @param {*} [options] Override http request option.
10150
+ * @throws {RequiredError}
10151
+ * @memberof CompanyConfigApi
10152
+ */
10153
+ adminV1ConfigCompanyGet(options) {
10154
+ return CompanyConfigApiFp(this.configuration).adminV1ConfigCompanyGet(options).then((request) => request(this.axios, this.basePath));
10155
+ }
10156
+ /**
10157
+ * Updates company information used on invoices and receipts
10158
+ * @summary Update company configuration
10159
+ * @param {DataTypesCompanyConfigRequest} dataTypesCompanyConfigRequest Company config
10160
+ * @param {*} [options] Override http request option.
10161
+ * @throws {RequiredError}
10162
+ * @memberof CompanyConfigApi
10163
+ */
10164
+ adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options) {
10165
+ return CompanyConfigApiFp(this.configuration).adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options).then((request) => request(this.axios, this.basePath));
10166
+ }
10167
+ }
9583
10168
  /**
9584
10169
  * ConnectorsApi - axios parameter creator
9585
10170
  * @export
@@ -17797,10 +18382,22 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
17797
18382
  * @summary List orders (paginated)
17798
18383
  * @param {number} [page] Page number (default 1)
17799
18384
  * @param {number} [pageSize] Page size (default 20, max 100)
17800
- * @param {*} [options] Override http request option.
17801
- * @throws {RequiredError}
17802
- */
17803
- adminPaymentGatewayOrdersGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
18385
+ * @param {string} [search] Search by order ID, gateway references, amount, or customer details
18386
+ * @param {string} [statuses] Comma-separated statuses to include
18387
+ * @param {string} [paymentTypes] Comma-separated payment types to include
18388
+ * @param {string} [gateways] Comma-separated gateways to include
18389
+ * @param {string} [currencies] Comma-separated currencies to include
18390
+ * @param {string} [createdFrom] Created_at filter (RFC3339 or YYYY-MM-DD)
18391
+ * @param {string} [createdTo] Created_at upper bound (inclusive, RFC3339 or YYYY-MM-DD)
18392
+ * @param {number} [amountMin] Minimum order amount
18393
+ * @param {number} [amountMax] Maximum order amount
18394
+ * @param {string} [sort] Multi-field sort (e.g. created_at:desc,amount:asc or -created_at,+amount)
18395
+ * @param {string} [sortBy] Legacy single-field sort
18396
+ * @param {string} [sortOrder] Sort direction for sort_by (asc or desc)
18397
+ * @param {*} [options] Override http request option.
18398
+ * @throws {RequiredError}
18399
+ */
18400
+ adminPaymentGatewayOrdersGet: (page_1, pageSize_1, search_1, statuses_1, paymentTypes_1, gateways_1, currencies_1, createdFrom_1, createdTo_1, amountMin_1, amountMax_1, sort_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, search_1, statuses_1, paymentTypes_1, gateways_1, currencies_1, createdFrom_1, createdTo_1, amountMin_1, amountMax_1, sort_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options = {}) {
17804
18401
  const localVarPath = `/admin/payment-gateway/orders`;
17805
18402
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17806
18403
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -17819,6 +18416,42 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
17819
18416
  if (pageSize !== undefined) {
17820
18417
  localVarQueryParameter['page_size'] = pageSize;
17821
18418
  }
18419
+ if (search !== undefined) {
18420
+ localVarQueryParameter['search'] = search;
18421
+ }
18422
+ if (statuses !== undefined) {
18423
+ localVarQueryParameter['statuses'] = statuses;
18424
+ }
18425
+ if (paymentTypes !== undefined) {
18426
+ localVarQueryParameter['payment_types'] = paymentTypes;
18427
+ }
18428
+ if (gateways !== undefined) {
18429
+ localVarQueryParameter['gateways'] = gateways;
18430
+ }
18431
+ if (currencies !== undefined) {
18432
+ localVarQueryParameter['currencies'] = currencies;
18433
+ }
18434
+ if (createdFrom !== undefined) {
18435
+ localVarQueryParameter['created_from'] = createdFrom;
18436
+ }
18437
+ if (createdTo !== undefined) {
18438
+ localVarQueryParameter['created_to'] = createdTo;
18439
+ }
18440
+ if (amountMin !== undefined) {
18441
+ localVarQueryParameter['amount_min'] = amountMin;
18442
+ }
18443
+ if (amountMax !== undefined) {
18444
+ localVarQueryParameter['amount_max'] = amountMax;
18445
+ }
18446
+ if (sort !== undefined) {
18447
+ localVarQueryParameter['sort'] = sort;
18448
+ }
18449
+ if (sortBy !== undefined) {
18450
+ localVarQueryParameter['sort_by'] = sortBy;
18451
+ }
18452
+ if (sortOrder !== undefined) {
18453
+ localVarQueryParameter['sort_order'] = sortOrder;
18454
+ }
17822
18455
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17823
18456
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17824
18457
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -18163,13 +18796,25 @@ export const PaymentGatewayApiFp = function (configuration) {
18163
18796
  * @summary List orders (paginated)
18164
18797
  * @param {number} [page] Page number (default 1)
18165
18798
  * @param {number} [pageSize] Page size (default 20, max 100)
18799
+ * @param {string} [search] Search by order ID, gateway references, amount, or customer details
18800
+ * @param {string} [statuses] Comma-separated statuses to include
18801
+ * @param {string} [paymentTypes] Comma-separated payment types to include
18802
+ * @param {string} [gateways] Comma-separated gateways to include
18803
+ * @param {string} [currencies] Comma-separated currencies to include
18804
+ * @param {string} [createdFrom] Created_at filter (RFC3339 or YYYY-MM-DD)
18805
+ * @param {string} [createdTo] Created_at upper bound (inclusive, RFC3339 or YYYY-MM-DD)
18806
+ * @param {number} [amountMin] Minimum order amount
18807
+ * @param {number} [amountMax] Maximum order amount
18808
+ * @param {string} [sort] Multi-field sort (e.g. created_at:desc,amount:asc or -created_at,+amount)
18809
+ * @param {string} [sortBy] Legacy single-field sort
18810
+ * @param {string} [sortOrder] Sort direction for sort_by (asc or desc)
18166
18811
  * @param {*} [options] Override http request option.
18167
18812
  * @throws {RequiredError}
18168
18813
  */
18169
- adminPaymentGatewayOrdersGet(page, pageSize, options) {
18814
+ adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options) {
18170
18815
  return __awaiter(this, void 0, void 0, function* () {
18171
18816
  var _a, _b, _c;
18172
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayOrdersGet(page, pageSize, options);
18817
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options);
18173
18818
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18174
18819
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18175
18820
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18361,11 +19006,23 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
18361
19006
  * @summary List orders (paginated)
18362
19007
  * @param {number} [page] Page number (default 1)
18363
19008
  * @param {number} [pageSize] Page size (default 20, max 100)
19009
+ * @param {string} [search] Search by order ID, gateway references, amount, or customer details
19010
+ * @param {string} [statuses] Comma-separated statuses to include
19011
+ * @param {string} [paymentTypes] Comma-separated payment types to include
19012
+ * @param {string} [gateways] Comma-separated gateways to include
19013
+ * @param {string} [currencies] Comma-separated currencies to include
19014
+ * @param {string} [createdFrom] Created_at filter (RFC3339 or YYYY-MM-DD)
19015
+ * @param {string} [createdTo] Created_at upper bound (inclusive, RFC3339 or YYYY-MM-DD)
19016
+ * @param {number} [amountMin] Minimum order amount
19017
+ * @param {number} [amountMax] Maximum order amount
19018
+ * @param {string} [sort] Multi-field sort (e.g. created_at:desc,amount:asc or -created_at,+amount)
19019
+ * @param {string} [sortBy] Legacy single-field sort
19020
+ * @param {string} [sortOrder] Sort direction for sort_by (asc or desc)
18364
19021
  * @param {*} [options] Override http request option.
18365
19022
  * @throws {RequiredError}
18366
19023
  */
18367
- adminPaymentGatewayOrdersGet(page, pageSize, options) {
18368
- return localVarFp.adminPaymentGatewayOrdersGet(page, pageSize, options).then((request) => request(axios, basePath));
19024
+ adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options) {
19025
+ return localVarFp.adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options).then((request) => request(axios, basePath));
18369
19026
  },
18370
19027
  /**
18371
19028
  * Returns order details, list of payment transactions for that order, and the latest invoice if available. Does not expose raw gateway secrets.
@@ -18502,12 +19159,24 @@ export class PaymentGatewayApi extends BaseAPI {
18502
19159
  * @summary List orders (paginated)
18503
19160
  * @param {number} [page] Page number (default 1)
18504
19161
  * @param {number} [pageSize] Page size (default 20, max 100)
19162
+ * @param {string} [search] Search by order ID, gateway references, amount, or customer details
19163
+ * @param {string} [statuses] Comma-separated statuses to include
19164
+ * @param {string} [paymentTypes] Comma-separated payment types to include
19165
+ * @param {string} [gateways] Comma-separated gateways to include
19166
+ * @param {string} [currencies] Comma-separated currencies to include
19167
+ * @param {string} [createdFrom] Created_at filter (RFC3339 or YYYY-MM-DD)
19168
+ * @param {string} [createdTo] Created_at upper bound (inclusive, RFC3339 or YYYY-MM-DD)
19169
+ * @param {number} [amountMin] Minimum order amount
19170
+ * @param {number} [amountMax] Maximum order amount
19171
+ * @param {string} [sort] Multi-field sort (e.g. created_at:desc,amount:asc or -created_at,+amount)
19172
+ * @param {string} [sortBy] Legacy single-field sort
19173
+ * @param {string} [sortOrder] Sort direction for sort_by (asc or desc)
18505
19174
  * @param {*} [options] Override http request option.
18506
19175
  * @throws {RequiredError}
18507
19176
  * @memberof PaymentGatewayApi
18508
19177
  */
18509
- adminPaymentGatewayOrdersGet(page, pageSize, options) {
18510
- return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
19178
+ adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options) {
19179
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
18511
19180
  }
18512
19181
  /**
18513
19182
  * Returns order details, list of payment transactions for that order, and the latest invoice if available. Does not expose raw gateway secrets.