@seekora-ai/admin-api 1.1.5 → 1.1.6

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
@@ -7003,6 +7003,42 @@ const AuthApiAxiosParamCreator = function (configuration) {
7003
7003
  options: localVarRequestOptions,
7004
7004
  };
7005
7005
  }),
7006
+ /**
7007
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7008
+ * @summary Link or Unlink an SSO provider
7009
+ * @param {string} authorization Bearer <access_token>
7010
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7011
+ * @param {*} [options] Override http request option.
7012
+ * @throws {RequiredError}
7013
+ */
7014
+ authUpdateSsoPost: (authorization_1, dataTypesLoginRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesLoginRequest_1, ...args_1], void 0, function* (authorization, dataTypesLoginRequest, options = {}) {
7015
+ // verify required parameter 'authorization' is not null or undefined
7016
+ (0, common_1.assertParamExists)('authUpdateSsoPost', 'authorization', authorization);
7017
+ // verify required parameter 'dataTypesLoginRequest' is not null or undefined
7018
+ (0, common_1.assertParamExists)('authUpdateSsoPost', 'dataTypesLoginRequest', dataTypesLoginRequest);
7019
+ const localVarPath = `/Auth/update-sso`;
7020
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7021
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7022
+ let baseOptions;
7023
+ if (configuration) {
7024
+ baseOptions = configuration.baseOptions;
7025
+ }
7026
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7027
+ const localVarHeaderParameter = {};
7028
+ const localVarQueryParameter = {};
7029
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7030
+ if (authorization != null) {
7031
+ localVarHeaderParameter['Authorization'] = String(authorization);
7032
+ }
7033
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7034
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7035
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7036
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesLoginRequest, localVarRequestOptions, configuration);
7037
+ return {
7038
+ url: (0, common_1.toPathString)(localVarUrlObj),
7039
+ options: localVarRequestOptions,
7040
+ };
7041
+ }),
7006
7042
  };
7007
7043
  };
7008
7044
  exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
@@ -7059,6 +7095,23 @@ const AuthApiFp = function (configuration) {
7059
7095
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7060
7096
  });
7061
7097
  },
7098
+ /**
7099
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7100
+ * @summary Link or Unlink an SSO provider
7101
+ * @param {string} authorization Bearer <access_token>
7102
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7103
+ * @param {*} [options] Override http request option.
7104
+ * @throws {RequiredError}
7105
+ */
7106
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7107
+ return __awaiter(this, void 0, void 0, function* () {
7108
+ var _a, _b, _c;
7109
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authUpdateSsoPost(authorization, dataTypesLoginRequest, options);
7110
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7111
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authUpdateSsoPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7112
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7113
+ });
7114
+ },
7062
7115
  };
7063
7116
  };
7064
7117
  exports.AuthApiFp = AuthApiFp;
@@ -7097,6 +7150,17 @@ const AuthApiFactory = function (configuration, basePath, axios) {
7097
7150
  authSessionGet(options) {
7098
7151
  return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
7099
7152
  },
7153
+ /**
7154
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7155
+ * @summary Link or Unlink an SSO provider
7156
+ * @param {string} authorization Bearer <access_token>
7157
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7158
+ * @param {*} [options] Override http request option.
7159
+ * @throws {RequiredError}
7160
+ */
7161
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7162
+ return localVarFp.authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(axios, basePath));
7163
+ },
7100
7164
  };
7101
7165
  };
7102
7166
  exports.AuthApiFactory = AuthApiFactory;
@@ -7138,6 +7202,18 @@ class AuthApi extends base_1.BaseAPI {
7138
7202
  authSessionGet(options) {
7139
7203
  return (0, exports.AuthApiFp)(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
7140
7204
  }
7205
+ /**
7206
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7207
+ * @summary Link or Unlink an SSO provider
7208
+ * @param {string} authorization Bearer <access_token>
7209
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7210
+ * @param {*} [options] Override http request option.
7211
+ * @throws {RequiredError}
7212
+ * @memberof AuthApi
7213
+ */
7214
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7215
+ return (0, exports.AuthApiFp)(this.configuration).authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(this.axios, this.basePath));
7216
+ }
7141
7217
  }
7142
7218
  exports.AuthApi = AuthApi;
7143
7219
  /**
@@ -8255,6 +8331,161 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
8255
8331
  options: localVarRequestOptions,
8256
8332
  };
8257
8333
  }),
8334
+ /**
8335
+ * Generates receipts for all completed payments without receipts in the organization
8336
+ * @summary Auto-generate receipts for organization
8337
+ * @param {*} [options] Override http request option.
8338
+ * @throws {RequiredError}
8339
+ */
8340
+ adminBillingReceiptsAutoGeneratePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
8341
+ const localVarPath = `/admin/billing/receipts/auto-generate`;
8342
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8343
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8344
+ let baseOptions;
8345
+ if (configuration) {
8346
+ baseOptions = configuration.baseOptions;
8347
+ }
8348
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8349
+ const localVarHeaderParameter = {};
8350
+ const localVarQueryParameter = {};
8351
+ // authentication BearerAuth required
8352
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8353
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8355
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8356
+ return {
8357
+ url: (0, common_1.toPathString)(localVarUrlObj),
8358
+ options: localVarRequestOptions,
8359
+ };
8360
+ }),
8361
+ /**
8362
+ * Generates a receipt for a completed payment
8363
+ * @summary Generate receipt from payment
8364
+ * @param {number} paymentId Payment ID
8365
+ * @param {*} [options] Override http request option.
8366
+ * @throws {RequiredError}
8367
+ */
8368
+ adminBillingReceiptsGeneratePaymentIdPost: (paymentId_1, ...args_1) => __awaiter(this, [paymentId_1, ...args_1], void 0, function* (paymentId, options = {}) {
8369
+ // verify required parameter 'paymentId' is not null or undefined
8370
+ (0, common_1.assertParamExists)('adminBillingReceiptsGeneratePaymentIdPost', 'paymentId', paymentId);
8371
+ const localVarPath = `/admin/billing/receipts/generate/{paymentId}`
8372
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
8373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8374
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8375
+ let baseOptions;
8376
+ if (configuration) {
8377
+ baseOptions = configuration.baseOptions;
8378
+ }
8379
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8380
+ const localVarHeaderParameter = {};
8381
+ const localVarQueryParameter = {};
8382
+ // authentication BearerAuth required
8383
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8384
+ (0, common_1.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: (0, common_1.toPathString)(localVarUrlObj),
8389
+ options: localVarRequestOptions,
8390
+ };
8391
+ }),
8392
+ /**
8393
+ * Retrieves a paginated list of receipts for the organization
8394
+ * @summary List receipts
8395
+ * @param {number} [page] Page number (default: 1)
8396
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
8397
+ * @param {*} [options] Override http request option.
8398
+ * @throws {RequiredError}
8399
+ */
8400
+ adminBillingReceiptsGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
8401
+ const localVarPath = `/admin/billing/receipts`;
8402
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8403
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8404
+ let baseOptions;
8405
+ if (configuration) {
8406
+ baseOptions = configuration.baseOptions;
8407
+ }
8408
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8409
+ const localVarHeaderParameter = {};
8410
+ const localVarQueryParameter = {};
8411
+ // authentication BearerAuth required
8412
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8413
+ if (page !== undefined) {
8414
+ localVarQueryParameter['page'] = page;
8415
+ }
8416
+ if (pageSize !== undefined) {
8417
+ localVarQueryParameter['page_size'] = pageSize;
8418
+ }
8419
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8421
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8422
+ return {
8423
+ url: (0, common_1.toPathString)(localVarUrlObj),
8424
+ options: localVarRequestOptions,
8425
+ };
8426
+ }),
8427
+ /**
8428
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
8429
+ * @summary Download receipt PDF
8430
+ * @param {number} id Receipt ID
8431
+ * @param {*} [options] Override http request option.
8432
+ * @throws {RequiredError}
8433
+ */
8434
+ adminBillingReceiptsIdDownloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
8435
+ // verify required parameter 'id' is not null or undefined
8436
+ (0, common_1.assertParamExists)('adminBillingReceiptsIdDownloadGet', 'id', id);
8437
+ const localVarPath = `/admin/billing/receipts/{id}/download`
8438
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8439
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8440
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8441
+ let baseOptions;
8442
+ if (configuration) {
8443
+ baseOptions = configuration.baseOptions;
8444
+ }
8445
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8446
+ const localVarHeaderParameter = {};
8447
+ const localVarQueryParameter = {};
8448
+ // authentication BearerAuth required
8449
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8450
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8451
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8452
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8453
+ return {
8454
+ url: (0, common_1.toPathString)(localVarUrlObj),
8455
+ options: localVarRequestOptions,
8456
+ };
8457
+ }),
8458
+ /**
8459
+ * Retrieves a single receipt by its ID
8460
+ * @summary Get receipt by ID
8461
+ * @param {number} id Receipt ID
8462
+ * @param {*} [options] Override http request option.
8463
+ * @throws {RequiredError}
8464
+ */
8465
+ adminBillingReceiptsIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
8466
+ // verify required parameter 'id' is not null or undefined
8467
+ (0, common_1.assertParamExists)('adminBillingReceiptsIdGet', 'id', id);
8468
+ const localVarPath = `/admin/billing/receipts/{id}`
8469
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8471
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8472
+ let baseOptions;
8473
+ if (configuration) {
8474
+ baseOptions = configuration.baseOptions;
8475
+ }
8476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8477
+ const localVarHeaderParameter = {};
8478
+ const localVarQueryParameter = {};
8479
+ // authentication BearerAuth required
8480
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8481
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8482
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8483
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8484
+ return {
8485
+ url: (0, common_1.toPathString)(localVarUrlObj),
8486
+ options: localVarRequestOptions,
8487
+ };
8488
+ }),
8258
8489
  /**
8259
8490
  * Returns saved payment cards from Razorpay for the organization
8260
8491
  * @summary Get saved payment cards
@@ -8798,6 +9029,86 @@ const BillingDashboardApiFp = function (configuration) {
8798
9029
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8799
9030
  });
8800
9031
  },
9032
+ /**
9033
+ * Generates receipts for all completed payments without receipts in the organization
9034
+ * @summary Auto-generate receipts for organization
9035
+ * @param {*} [options] Override http request option.
9036
+ * @throws {RequiredError}
9037
+ */
9038
+ adminBillingReceiptsAutoGeneratePost(options) {
9039
+ return __awaiter(this, void 0, void 0, function* () {
9040
+ var _a, _b, _c;
9041
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsAutoGeneratePost(options);
9042
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9043
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingReceiptsAutoGeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9044
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9045
+ });
9046
+ },
9047
+ /**
9048
+ * Generates a receipt for a completed payment
9049
+ * @summary Generate receipt from payment
9050
+ * @param {number} paymentId Payment ID
9051
+ * @param {*} [options] Override http request option.
9052
+ * @throws {RequiredError}
9053
+ */
9054
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9055
+ return __awaiter(this, void 0, void 0, function* () {
9056
+ var _a, _b, _c;
9057
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options);
9058
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9059
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingReceiptsGeneratePaymentIdPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9060
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9061
+ });
9062
+ },
9063
+ /**
9064
+ * Retrieves a paginated list of receipts for the organization
9065
+ * @summary List receipts
9066
+ * @param {number} [page] Page number (default: 1)
9067
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9068
+ * @param {*} [options] Override http request option.
9069
+ * @throws {RequiredError}
9070
+ */
9071
+ adminBillingReceiptsGet(page, pageSize, options) {
9072
+ return __awaiter(this, void 0, void 0, function* () {
9073
+ var _a, _b, _c;
9074
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
9075
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9076
+ 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;
9077
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9078
+ });
9079
+ },
9080
+ /**
9081
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9082
+ * @summary Download receipt PDF
9083
+ * @param {number} id Receipt ID
9084
+ * @param {*} [options] Override http request option.
9085
+ * @throws {RequiredError}
9086
+ */
9087
+ adminBillingReceiptsIdDownloadGet(id, options) {
9088
+ return __awaiter(this, void 0, void 0, function* () {
9089
+ var _a, _b, _c;
9090
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsIdDownloadGet(id, options);
9091
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9092
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingReceiptsIdDownloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9093
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9094
+ });
9095
+ },
9096
+ /**
9097
+ * Retrieves a single receipt by its ID
9098
+ * @summary Get receipt by ID
9099
+ * @param {number} id Receipt ID
9100
+ * @param {*} [options] Override http request option.
9101
+ * @throws {RequiredError}
9102
+ */
9103
+ adminBillingReceiptsIdGet(id, options) {
9104
+ return __awaiter(this, void 0, void 0, function* () {
9105
+ var _a, _b, _c;
9106
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsIdGet(id, options);
9107
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9108
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingReceiptsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9109
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9110
+ });
9111
+ },
8801
9112
  /**
8802
9113
  * Returns saved payment cards from Razorpay for the organization
8803
9114
  * @summary Get saved payment cards
@@ -9137,6 +9448,56 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
9137
9448
  adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9138
9449
  return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
9139
9450
  },
9451
+ /**
9452
+ * Generates receipts for all completed payments without receipts in the organization
9453
+ * @summary Auto-generate receipts for organization
9454
+ * @param {*} [options] Override http request option.
9455
+ * @throws {RequiredError}
9456
+ */
9457
+ adminBillingReceiptsAutoGeneratePost(options) {
9458
+ return localVarFp.adminBillingReceiptsAutoGeneratePost(options).then((request) => request(axios, basePath));
9459
+ },
9460
+ /**
9461
+ * Generates a receipt for a completed payment
9462
+ * @summary Generate receipt from payment
9463
+ * @param {number} paymentId Payment ID
9464
+ * @param {*} [options] Override http request option.
9465
+ * @throws {RequiredError}
9466
+ */
9467
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9468
+ return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
9469
+ },
9470
+ /**
9471
+ * Retrieves a paginated list of receipts for the organization
9472
+ * @summary List receipts
9473
+ * @param {number} [page] Page number (default: 1)
9474
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9475
+ * @param {*} [options] Override http request option.
9476
+ * @throws {RequiredError}
9477
+ */
9478
+ adminBillingReceiptsGet(page, pageSize, options) {
9479
+ return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
9480
+ },
9481
+ /**
9482
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9483
+ * @summary Download receipt PDF
9484
+ * @param {number} id Receipt ID
9485
+ * @param {*} [options] Override http request option.
9486
+ * @throws {RequiredError}
9487
+ */
9488
+ adminBillingReceiptsIdDownloadGet(id, options) {
9489
+ return localVarFp.adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(axios, basePath));
9490
+ },
9491
+ /**
9492
+ * Retrieves a single receipt by its ID
9493
+ * @summary Get receipt by ID
9494
+ * @param {number} id Receipt ID
9495
+ * @param {*} [options] Override http request option.
9496
+ * @throws {RequiredError}
9497
+ */
9498
+ adminBillingReceiptsIdGet(id, options) {
9499
+ return localVarFp.adminBillingReceiptsIdGet(id, options).then((request) => request(axios, basePath));
9500
+ },
9140
9501
  /**
9141
9502
  * Returns saved payment cards from Razorpay for the organization
9142
9503
  * @summary Get saved payment cards
@@ -9489,6 +9850,61 @@ class BillingDashboardApi extends base_1.BaseAPI {
9489
9850
  adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9490
9851
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
9491
9852
  }
9853
+ /**
9854
+ * Generates receipts for all completed payments without receipts in the organization
9855
+ * @summary Auto-generate receipts for organization
9856
+ * @param {*} [options] Override http request option.
9857
+ * @throws {RequiredError}
9858
+ * @memberof BillingDashboardApi
9859
+ */
9860
+ adminBillingReceiptsAutoGeneratePost(options) {
9861
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
9862
+ }
9863
+ /**
9864
+ * Generates a receipt for a completed payment
9865
+ * @summary Generate receipt from payment
9866
+ * @param {number} paymentId Payment ID
9867
+ * @param {*} [options] Override http request option.
9868
+ * @throws {RequiredError}
9869
+ * @memberof BillingDashboardApi
9870
+ */
9871
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9872
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
9873
+ }
9874
+ /**
9875
+ * Retrieves a paginated list of receipts for the organization
9876
+ * @summary List receipts
9877
+ * @param {number} [page] Page number (default: 1)
9878
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9879
+ * @param {*} [options] Override http request option.
9880
+ * @throws {RequiredError}
9881
+ * @memberof BillingDashboardApi
9882
+ */
9883
+ adminBillingReceiptsGet(page, pageSize, options) {
9884
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
9885
+ }
9886
+ /**
9887
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9888
+ * @summary Download receipt PDF
9889
+ * @param {number} id Receipt ID
9890
+ * @param {*} [options] Override http request option.
9891
+ * @throws {RequiredError}
9892
+ * @memberof BillingDashboardApi
9893
+ */
9894
+ adminBillingReceiptsIdDownloadGet(id, options) {
9895
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(this.axios, this.basePath));
9896
+ }
9897
+ /**
9898
+ * Retrieves a single receipt by its ID
9899
+ * @summary Get receipt by ID
9900
+ * @param {number} id Receipt ID
9901
+ * @param {*} [options] Override http request option.
9902
+ * @throws {RequiredError}
9903
+ * @memberof BillingDashboardApi
9904
+ */
9905
+ adminBillingReceiptsIdGet(id, options) {
9906
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingReceiptsIdGet(id, options).then((request) => request(this.axios, this.basePath));
9907
+ }
9492
9908
  /**
9493
9909
  * Returns saved payment cards from Razorpay for the organization
9494
9910
  * @summary Get saved payment cards