@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/esm/api.js CHANGED
@@ -6971,6 +6971,42 @@ export const AuthApiAxiosParamCreator = function (configuration) {
6971
6971
  options: localVarRequestOptions,
6972
6972
  };
6973
6973
  }),
6974
+ /**
6975
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
6976
+ * @summary Link or Unlink an SSO provider
6977
+ * @param {string} authorization Bearer <access_token>
6978
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
6979
+ * @param {*} [options] Override http request option.
6980
+ * @throws {RequiredError}
6981
+ */
6982
+ authUpdateSsoPost: (authorization_1, dataTypesLoginRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesLoginRequest_1, ...args_1], void 0, function* (authorization, dataTypesLoginRequest, options = {}) {
6983
+ // verify required parameter 'authorization' is not null or undefined
6984
+ assertParamExists('authUpdateSsoPost', 'authorization', authorization);
6985
+ // verify required parameter 'dataTypesLoginRequest' is not null or undefined
6986
+ assertParamExists('authUpdateSsoPost', 'dataTypesLoginRequest', dataTypesLoginRequest);
6987
+ const localVarPath = `/Auth/update-sso`;
6988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6990
+ let baseOptions;
6991
+ if (configuration) {
6992
+ baseOptions = configuration.baseOptions;
6993
+ }
6994
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6995
+ const localVarHeaderParameter = {};
6996
+ const localVarQueryParameter = {};
6997
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6998
+ if (authorization != null) {
6999
+ localVarHeaderParameter['Authorization'] = String(authorization);
7000
+ }
7001
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7002
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7003
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7004
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesLoginRequest, localVarRequestOptions, configuration);
7005
+ return {
7006
+ url: toPathString(localVarUrlObj),
7007
+ options: localVarRequestOptions,
7008
+ };
7009
+ }),
6974
7010
  };
6975
7011
  };
6976
7012
  /**
@@ -7026,6 +7062,23 @@ export const AuthApiFp = function (configuration) {
7026
7062
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7027
7063
  });
7028
7064
  },
7065
+ /**
7066
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7067
+ * @summary Link or Unlink an SSO provider
7068
+ * @param {string} authorization Bearer <access_token>
7069
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7070
+ * @param {*} [options] Override http request option.
7071
+ * @throws {RequiredError}
7072
+ */
7073
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7074
+ return __awaiter(this, void 0, void 0, function* () {
7075
+ var _a, _b, _c;
7076
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authUpdateSsoPost(authorization, dataTypesLoginRequest, options);
7077
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7078
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authUpdateSsoPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7079
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7080
+ });
7081
+ },
7029
7082
  };
7030
7083
  };
7031
7084
  /**
@@ -7063,6 +7116,17 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
7063
7116
  authSessionGet(options) {
7064
7117
  return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
7065
7118
  },
7119
+ /**
7120
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7121
+ * @summary Link or Unlink an SSO provider
7122
+ * @param {string} authorization Bearer <access_token>
7123
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7124
+ * @param {*} [options] Override http request option.
7125
+ * @throws {RequiredError}
7126
+ */
7127
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7128
+ return localVarFp.authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(axios, basePath));
7129
+ },
7066
7130
  };
7067
7131
  };
7068
7132
  /**
@@ -7103,6 +7167,18 @@ export class AuthApi extends BaseAPI {
7103
7167
  authSessionGet(options) {
7104
7168
  return AuthApiFp(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
7105
7169
  }
7170
+ /**
7171
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
7172
+ * @summary Link or Unlink an SSO provider
7173
+ * @param {string} authorization Bearer <access_token>
7174
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
7175
+ * @param {*} [options] Override http request option.
7176
+ * @throws {RequiredError}
7177
+ * @memberof AuthApi
7178
+ */
7179
+ authUpdateSsoPost(authorization, dataTypesLoginRequest, options) {
7180
+ return AuthApiFp(this.configuration).authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(this.axios, this.basePath));
7181
+ }
7106
7182
  }
7107
7183
  /**
7108
7184
  * AutomatedRefundManagementApi - axios parameter creator
@@ -8215,6 +8291,161 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
8215
8291
  options: localVarRequestOptions,
8216
8292
  };
8217
8293
  }),
8294
+ /**
8295
+ * Generates receipts for all completed payments without receipts in the organization
8296
+ * @summary Auto-generate receipts for organization
8297
+ * @param {*} [options] Override http request option.
8298
+ * @throws {RequiredError}
8299
+ */
8300
+ adminBillingReceiptsAutoGeneratePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
8301
+ const localVarPath = `/admin/billing/receipts/auto-generate`;
8302
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8304
+ let baseOptions;
8305
+ if (configuration) {
8306
+ baseOptions = configuration.baseOptions;
8307
+ }
8308
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8309
+ const localVarHeaderParameter = {};
8310
+ const localVarQueryParameter = {};
8311
+ // authentication BearerAuth required
8312
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8313
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8314
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8315
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8316
+ return {
8317
+ url: toPathString(localVarUrlObj),
8318
+ options: localVarRequestOptions,
8319
+ };
8320
+ }),
8321
+ /**
8322
+ * Generates a receipt for a completed payment
8323
+ * @summary Generate receipt from payment
8324
+ * @param {number} paymentId Payment ID
8325
+ * @param {*} [options] Override http request option.
8326
+ * @throws {RequiredError}
8327
+ */
8328
+ adminBillingReceiptsGeneratePaymentIdPost: (paymentId_1, ...args_1) => __awaiter(this, [paymentId_1, ...args_1], void 0, function* (paymentId, options = {}) {
8329
+ // verify required parameter 'paymentId' is not null or undefined
8330
+ assertParamExists('adminBillingReceiptsGeneratePaymentIdPost', 'paymentId', paymentId);
8331
+ const localVarPath = `/admin/billing/receipts/generate/{paymentId}`
8332
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
8333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8334
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8335
+ let baseOptions;
8336
+ if (configuration) {
8337
+ baseOptions = configuration.baseOptions;
8338
+ }
8339
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8340
+ const localVarHeaderParameter = {};
8341
+ const localVarQueryParameter = {};
8342
+ // authentication BearerAuth required
8343
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8344
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8346
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8347
+ return {
8348
+ url: toPathString(localVarUrlObj),
8349
+ options: localVarRequestOptions,
8350
+ };
8351
+ }),
8352
+ /**
8353
+ * Retrieves a paginated list of receipts for the organization
8354
+ * @summary List receipts
8355
+ * @param {number} [page] Page number (default: 1)
8356
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
8357
+ * @param {*} [options] Override http request option.
8358
+ * @throws {RequiredError}
8359
+ */
8360
+ adminBillingReceiptsGet: (page_1, pageSize_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, ...args_1], void 0, function* (page, pageSize, options = {}) {
8361
+ const localVarPath = `/admin/billing/receipts`;
8362
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8363
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8364
+ let baseOptions;
8365
+ if (configuration) {
8366
+ baseOptions = configuration.baseOptions;
8367
+ }
8368
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8369
+ const localVarHeaderParameter = {};
8370
+ const localVarQueryParameter = {};
8371
+ // authentication BearerAuth required
8372
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8373
+ if (page !== undefined) {
8374
+ localVarQueryParameter['page'] = page;
8375
+ }
8376
+ if (pageSize !== undefined) {
8377
+ localVarQueryParameter['page_size'] = pageSize;
8378
+ }
8379
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8381
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8382
+ return {
8383
+ url: toPathString(localVarUrlObj),
8384
+ options: localVarRequestOptions,
8385
+ };
8386
+ }),
8387
+ /**
8388
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
8389
+ * @summary Download receipt PDF
8390
+ * @param {number} id Receipt ID
8391
+ * @param {*} [options] Override http request option.
8392
+ * @throws {RequiredError}
8393
+ */
8394
+ adminBillingReceiptsIdDownloadGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
8395
+ // verify required parameter 'id' is not null or undefined
8396
+ assertParamExists('adminBillingReceiptsIdDownloadGet', 'id', id);
8397
+ const localVarPath = `/admin/billing/receipts/{id}/download`
8398
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8399
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8400
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8401
+ let baseOptions;
8402
+ if (configuration) {
8403
+ baseOptions = configuration.baseOptions;
8404
+ }
8405
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8406
+ const localVarHeaderParameter = {};
8407
+ const localVarQueryParameter = {};
8408
+ // authentication BearerAuth required
8409
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8410
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8411
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8412
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8413
+ return {
8414
+ url: toPathString(localVarUrlObj),
8415
+ options: localVarRequestOptions,
8416
+ };
8417
+ }),
8418
+ /**
8419
+ * Retrieves a single receipt by its ID
8420
+ * @summary Get receipt by ID
8421
+ * @param {number} id Receipt ID
8422
+ * @param {*} [options] Override http request option.
8423
+ * @throws {RequiredError}
8424
+ */
8425
+ adminBillingReceiptsIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
8426
+ // verify required parameter 'id' is not null or undefined
8427
+ assertParamExists('adminBillingReceiptsIdGet', 'id', id);
8428
+ const localVarPath = `/admin/billing/receipts/{id}`
8429
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8432
+ let baseOptions;
8433
+ if (configuration) {
8434
+ baseOptions = configuration.baseOptions;
8435
+ }
8436
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8437
+ const localVarHeaderParameter = {};
8438
+ const localVarQueryParameter = {};
8439
+ // authentication BearerAuth required
8440
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
8441
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8442
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8443
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8444
+ return {
8445
+ url: toPathString(localVarUrlObj),
8446
+ options: localVarRequestOptions,
8447
+ };
8448
+ }),
8218
8449
  /**
8219
8450
  * Returns saved payment cards from Razorpay for the organization
8220
8451
  * @summary Get saved payment cards
@@ -8757,6 +8988,86 @@ export const BillingDashboardApiFp = function (configuration) {
8757
8988
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8758
8989
  });
8759
8990
  },
8991
+ /**
8992
+ * Generates receipts for all completed payments without receipts in the organization
8993
+ * @summary Auto-generate receipts for organization
8994
+ * @param {*} [options] Override http request option.
8995
+ * @throws {RequiredError}
8996
+ */
8997
+ adminBillingReceiptsAutoGeneratePost(options) {
8998
+ return __awaiter(this, void 0, void 0, function* () {
8999
+ var _a, _b, _c;
9000
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsAutoGeneratePost(options);
9001
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9002
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsAutoGeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9003
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9004
+ });
9005
+ },
9006
+ /**
9007
+ * Generates a receipt for a completed payment
9008
+ * @summary Generate receipt from payment
9009
+ * @param {number} paymentId Payment ID
9010
+ * @param {*} [options] Override http request option.
9011
+ * @throws {RequiredError}
9012
+ */
9013
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9014
+ return __awaiter(this, void 0, void 0, function* () {
9015
+ var _a, _b, _c;
9016
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options);
9017
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9018
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsGeneratePaymentIdPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9019
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9020
+ });
9021
+ },
9022
+ /**
9023
+ * Retrieves a paginated list of receipts for the organization
9024
+ * @summary List receipts
9025
+ * @param {number} [page] Page number (default: 1)
9026
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9027
+ * @param {*} [options] Override http request option.
9028
+ * @throws {RequiredError}
9029
+ */
9030
+ adminBillingReceiptsGet(page, pageSize, options) {
9031
+ return __awaiter(this, void 0, void 0, function* () {
9032
+ var _a, _b, _c;
9033
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
9034
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9035
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9036
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9037
+ });
9038
+ },
9039
+ /**
9040
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9041
+ * @summary Download receipt PDF
9042
+ * @param {number} id Receipt ID
9043
+ * @param {*} [options] Override http request option.
9044
+ * @throws {RequiredError}
9045
+ */
9046
+ adminBillingReceiptsIdDownloadGet(id, options) {
9047
+ return __awaiter(this, void 0, void 0, function* () {
9048
+ var _a, _b, _c;
9049
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsIdDownloadGet(id, options);
9050
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9051
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsIdDownloadGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9052
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9053
+ });
9054
+ },
9055
+ /**
9056
+ * Retrieves a single receipt by its ID
9057
+ * @summary Get receipt by ID
9058
+ * @param {number} id Receipt ID
9059
+ * @param {*} [options] Override http request option.
9060
+ * @throws {RequiredError}
9061
+ */
9062
+ adminBillingReceiptsIdGet(id, options) {
9063
+ return __awaiter(this, void 0, void 0, function* () {
9064
+ var _a, _b, _c;
9065
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingReceiptsIdGet(id, options);
9066
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9067
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingReceiptsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9068
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9069
+ });
9070
+ },
8760
9071
  /**
8761
9072
  * Returns saved payment cards from Razorpay for the organization
8762
9073
  * @summary Get saved payment cards
@@ -9095,6 +9406,56 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
9095
9406
  adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9096
9407
  return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
9097
9408
  },
9409
+ /**
9410
+ * Generates receipts for all completed payments without receipts in the organization
9411
+ * @summary Auto-generate receipts for organization
9412
+ * @param {*} [options] Override http request option.
9413
+ * @throws {RequiredError}
9414
+ */
9415
+ adminBillingReceiptsAutoGeneratePost(options) {
9416
+ return localVarFp.adminBillingReceiptsAutoGeneratePost(options).then((request) => request(axios, basePath));
9417
+ },
9418
+ /**
9419
+ * Generates a receipt for a completed payment
9420
+ * @summary Generate receipt from payment
9421
+ * @param {number} paymentId Payment ID
9422
+ * @param {*} [options] Override http request option.
9423
+ * @throws {RequiredError}
9424
+ */
9425
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9426
+ return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
9427
+ },
9428
+ /**
9429
+ * Retrieves a paginated list of receipts for the organization
9430
+ * @summary List receipts
9431
+ * @param {number} [page] Page number (default: 1)
9432
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9433
+ * @param {*} [options] Override http request option.
9434
+ * @throws {RequiredError}
9435
+ */
9436
+ adminBillingReceiptsGet(page, pageSize, options) {
9437
+ return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
9438
+ },
9439
+ /**
9440
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9441
+ * @summary Download receipt PDF
9442
+ * @param {number} id Receipt ID
9443
+ * @param {*} [options] Override http request option.
9444
+ * @throws {RequiredError}
9445
+ */
9446
+ adminBillingReceiptsIdDownloadGet(id, options) {
9447
+ return localVarFp.adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(axios, basePath));
9448
+ },
9449
+ /**
9450
+ * Retrieves a single receipt by its ID
9451
+ * @summary Get receipt by ID
9452
+ * @param {number} id Receipt ID
9453
+ * @param {*} [options] Override http request option.
9454
+ * @throws {RequiredError}
9455
+ */
9456
+ adminBillingReceiptsIdGet(id, options) {
9457
+ return localVarFp.adminBillingReceiptsIdGet(id, options).then((request) => request(axios, basePath));
9458
+ },
9098
9459
  /**
9099
9460
  * Returns saved payment cards from Razorpay for the organization
9100
9461
  * @summary Get saved payment cards
@@ -9446,6 +9807,61 @@ export class BillingDashboardApi extends BaseAPI {
9446
9807
  adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
9447
9808
  return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
9448
9809
  }
9810
+ /**
9811
+ * Generates receipts for all completed payments without receipts in the organization
9812
+ * @summary Auto-generate receipts for organization
9813
+ * @param {*} [options] Override http request option.
9814
+ * @throws {RequiredError}
9815
+ * @memberof BillingDashboardApi
9816
+ */
9817
+ adminBillingReceiptsAutoGeneratePost(options) {
9818
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
9819
+ }
9820
+ /**
9821
+ * Generates a receipt for a completed payment
9822
+ * @summary Generate receipt from payment
9823
+ * @param {number} paymentId Payment ID
9824
+ * @param {*} [options] Override http request option.
9825
+ * @throws {RequiredError}
9826
+ * @memberof BillingDashboardApi
9827
+ */
9828
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId, options) {
9829
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
9830
+ }
9831
+ /**
9832
+ * Retrieves a paginated list of receipts for the organization
9833
+ * @summary List receipts
9834
+ * @param {number} [page] Page number (default: 1)
9835
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
9836
+ * @param {*} [options] Override http request option.
9837
+ * @throws {RequiredError}
9838
+ * @memberof BillingDashboardApi
9839
+ */
9840
+ adminBillingReceiptsGet(page, pageSize, options) {
9841
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
9842
+ }
9843
+ /**
9844
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9845
+ * @summary Download receipt PDF
9846
+ * @param {number} id Receipt ID
9847
+ * @param {*} [options] Override http request option.
9848
+ * @throws {RequiredError}
9849
+ * @memberof BillingDashboardApi
9850
+ */
9851
+ adminBillingReceiptsIdDownloadGet(id, options) {
9852
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(this.axios, this.basePath));
9853
+ }
9854
+ /**
9855
+ * Retrieves a single receipt by its ID
9856
+ * @summary Get receipt by ID
9857
+ * @param {number} id Receipt ID
9858
+ * @param {*} [options] Override http request option.
9859
+ * @throws {RequiredError}
9860
+ * @memberof BillingDashboardApi
9861
+ */
9862
+ adminBillingReceiptsIdGet(id, options) {
9863
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsIdGet(id, options).then((request) => request(this.axios, this.basePath));
9864
+ }
9449
9865
  /**
9450
9866
  * Returns saved payment cards from Razorpay for the organization
9451
9867
  * @summary Get saved payment cards
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file