@seekora-ai/admin-api 1.1.1 → 1.1.2

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
@@ -7803,7 +7803,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7803
7803
  };
7804
7804
  }),
7805
7805
  /**
7806
- * Downloads an invoice as a PDF file
7806
+ * Returns an invoice as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
7807
7807
  * @summary Download invoice
7808
7808
  * @param {string} id Invoice ID
7809
7809
  * @param {*} [options] Override http request option.
@@ -8548,7 +8548,7 @@ export const BillingDashboardApiFp = function (configuration) {
8548
8548
  });
8549
8549
  },
8550
8550
  /**
8551
- * Downloads an invoice as a PDF file
8551
+ * Returns an invoice as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
8552
8552
  * @summary Download invoice
8553
8553
  * @param {string} id Invoice ID
8554
8554
  * @param {*} [options] Override http request option.
@@ -8948,7 +8948,7 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
8948
8948
  return localVarFp.adminBillingInvoicesIdDelete(id, options).then((request) => request(axios, basePath));
8949
8949
  },
8950
8950
  /**
8951
- * Downloads an invoice as a PDF file
8951
+ * Returns an invoice as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
8952
8952
  * @summary Download invoice
8953
8953
  * @param {string} id Invoice ID
8954
8954
  * @param {*} [options] Override http request option.
@@ -9284,7 +9284,7 @@ export class BillingDashboardApi extends BaseAPI {
9284
9284
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
9285
9285
  }
9286
9286
  /**
9287
- * Downloads an invoice as a PDF file
9287
+ * Returns an invoice as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9288
9288
  * @summary Download invoice
9289
9289
  * @param {string} id Invoice ID
9290
9290
  * @param {*} [options] Override http request option.
@@ -11639,8 +11639,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11639
11639
  * @param {*} [options] Override http request option.
11640
11640
  * @throws {RequiredError}
11641
11641
  */
11642
- apiAdminFeatureLimitsViolationsGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
11643
- const localVarPath = `/api/admin/feature-limits/violations`;
11642
+ adminFeatureLimitsViolationsGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
11643
+ const localVarPath = `/admin/feature-limits/violations`;
11644
11644
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11645
11645
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11646
11646
  let baseOptions;
@@ -11674,10 +11674,10 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11674
11674
  * @param {*} [options] Override http request option.
11675
11675
  * @throws {RequiredError}
11676
11676
  */
11677
- apiFeatureLimitsCheckGet: (featureName_1, amount_1, ...args_1) => __awaiter(this, [featureName_1, amount_1, ...args_1], void 0, function* (featureName, amount, options = {}) {
11677
+ featureLimitsCheckGet: (featureName_1, amount_1, ...args_1) => __awaiter(this, [featureName_1, amount_1, ...args_1], void 0, function* (featureName, amount, options = {}) {
11678
11678
  // verify required parameter 'featureName' is not null or undefined
11679
- assertParamExists('apiFeatureLimitsCheckGet', 'featureName', featureName);
11680
- const localVarPath = `/api/feature-limits/check`;
11679
+ assertParamExists('featureLimitsCheckGet', 'featureName', featureName);
11680
+ const localVarPath = `/feature-limits/check`;
11681
11681
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11682
11682
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11683
11683
  let baseOptions;
@@ -11711,8 +11711,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11711
11711
  * @param {*} [options] Override http request option.
11712
11712
  * @throws {RequiredError}
11713
11713
  */
11714
- apiFeatureLimitsHistoryGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
11715
- const localVarPath = `/api/feature-limits/history`;
11714
+ featureLimitsHistoryGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
11715
+ const localVarPath = `/feature-limits/history`;
11716
11716
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11717
11717
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11718
11718
  let baseOptions;
@@ -11744,8 +11744,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11744
11744
  * @param {*} [options] Override http request option.
11745
11745
  * @throws {RequiredError}
11746
11746
  */
11747
- apiFeatureLimitsPlanGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11748
- const localVarPath = `/api/feature-limits/plan`;
11747
+ featureLimitsPlanGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11748
+ const localVarPath = `/feature-limits/plan`;
11749
11749
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11750
11750
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11751
11751
  let baseOptions;
@@ -11771,8 +11771,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11771
11771
  * @param {*} [options] Override http request option.
11772
11772
  * @throws {RequiredError}
11773
11773
  */
11774
- apiFeatureLimitsPlanInfoGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11775
- const localVarPath = `/api/feature-limits/plan/info`;
11774
+ featureLimitsPlanInfoGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11775
+ const localVarPath = `/feature-limits/plan/info`;
11776
11776
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11777
11777
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11778
11778
  let baseOptions;
@@ -11798,8 +11798,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11798
11798
  * @param {*} [options] Override http request option.
11799
11799
  * @throws {RequiredError}
11800
11800
  */
11801
- apiFeatureLimitsStatusGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11802
- const localVarPath = `/api/feature-limits/status`;
11801
+ featureLimitsStatusGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11802
+ const localVarPath = `/feature-limits/status`;
11803
11803
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11804
11804
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11805
11805
  let baseOptions;
@@ -11825,8 +11825,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11825
11825
  * @param {*} [options] Override http request option.
11826
11826
  * @throws {RequiredError}
11827
11827
  */
11828
- apiFeatureLimitsUsageGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11829
- const localVarPath = `/api/feature-limits/usage`;
11828
+ featureLimitsUsageGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11829
+ const localVarPath = `/feature-limits/usage`;
11830
11830
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11831
11831
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11832
11832
  let baseOptions;
@@ -11863,12 +11863,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11863
11863
  * @param {*} [options] Override http request option.
11864
11864
  * @throws {RequiredError}
11865
11865
  */
11866
- apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
11866
+ adminFeatureLimitsViolationsGet(featureName, limit, options) {
11867
11867
  return __awaiter(this, void 0, void 0, function* () {
11868
11868
  var _a, _b, _c;
11869
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsViolationsGet(featureName, limit, options);
11869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsViolationsGet(featureName, limit, options);
11870
11870
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11871
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiAdminFeatureLimitsViolationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11871
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.adminFeatureLimitsViolationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11872
11872
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11873
11873
  });
11874
11874
  },
@@ -11880,12 +11880,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11880
11880
  * @param {*} [options] Override http request option.
11881
11881
  * @throws {RequiredError}
11882
11882
  */
11883
- apiFeatureLimitsCheckGet(featureName, amount, options) {
11883
+ featureLimitsCheckGet(featureName, amount, options) {
11884
11884
  return __awaiter(this, void 0, void 0, function* () {
11885
11885
  var _a, _b, _c;
11886
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsCheckGet(featureName, amount, options);
11886
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsCheckGet(featureName, amount, options);
11887
11887
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11888
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsCheckGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11888
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.featureLimitsCheckGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11889
11889
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11890
11890
  });
11891
11891
  },
@@ -11897,12 +11897,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11897
11897
  * @param {*} [options] Override http request option.
11898
11898
  * @throws {RequiredError}
11899
11899
  */
11900
- apiFeatureLimitsHistoryGet(featureName, limit, options) {
11900
+ featureLimitsHistoryGet(featureName, limit, options) {
11901
11901
  return __awaiter(this, void 0, void 0, function* () {
11902
11902
  var _a, _b, _c;
11903
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsHistoryGet(featureName, limit, options);
11903
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsHistoryGet(featureName, limit, options);
11904
11904
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11905
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11905
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.featureLimitsHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11906
11906
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11907
11907
  });
11908
11908
  },
@@ -11912,12 +11912,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11912
11912
  * @param {*} [options] Override http request option.
11913
11913
  * @throws {RequiredError}
11914
11914
  */
11915
- apiFeatureLimitsPlanGet(options) {
11915
+ featureLimitsPlanGet(options) {
11916
11916
  return __awaiter(this, void 0, void 0, function* () {
11917
11917
  var _a, _b, _c;
11918
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsPlanGet(options);
11918
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsPlanGet(options);
11919
11919
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11920
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsPlanGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11920
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.featureLimitsPlanGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11921
11921
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11922
11922
  });
11923
11923
  },
@@ -11927,12 +11927,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11927
11927
  * @param {*} [options] Override http request option.
11928
11928
  * @throws {RequiredError}
11929
11929
  */
11930
- apiFeatureLimitsPlanInfoGet(options) {
11930
+ featureLimitsPlanInfoGet(options) {
11931
11931
  return __awaiter(this, void 0, void 0, function* () {
11932
11932
  var _a, _b, _c;
11933
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsPlanInfoGet(options);
11933
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsPlanInfoGet(options);
11934
11934
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11935
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsPlanInfoGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11935
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.featureLimitsPlanInfoGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11936
11936
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11937
11937
  });
11938
11938
  },
@@ -11942,12 +11942,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11942
11942
  * @param {*} [options] Override http request option.
11943
11943
  * @throws {RequiredError}
11944
11944
  */
11945
- apiFeatureLimitsStatusGet(options) {
11945
+ featureLimitsStatusGet(options) {
11946
11946
  return __awaiter(this, void 0, void 0, function* () {
11947
11947
  var _a, _b, _c;
11948
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsStatusGet(options);
11948
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsStatusGet(options);
11949
11949
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11950
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11950
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.featureLimitsStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11951
11951
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11952
11952
  });
11953
11953
  },
@@ -11957,12 +11957,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11957
11957
  * @param {*} [options] Override http request option.
11958
11958
  * @throws {RequiredError}
11959
11959
  */
11960
- apiFeatureLimitsUsageGet(options) {
11960
+ featureLimitsUsageGet(options) {
11961
11961
  return __awaiter(this, void 0, void 0, function* () {
11962
11962
  var _a, _b, _c;
11963
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsUsageGet(options);
11963
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsUsageGet(options);
11964
11964
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11965
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11965
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.featureLimitsUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11966
11966
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11967
11967
  });
11968
11968
  },
@@ -11983,8 +11983,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
11983
11983
  * @param {*} [options] Override http request option.
11984
11984
  * @throws {RequiredError}
11985
11985
  */
11986
- apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
11987
- return localVarFp.apiAdminFeatureLimitsViolationsGet(featureName, limit, options).then((request) => request(axios, basePath));
11986
+ adminFeatureLimitsViolationsGet(featureName, limit, options) {
11987
+ return localVarFp.adminFeatureLimitsViolationsGet(featureName, limit, options).then((request) => request(axios, basePath));
11988
11988
  },
11989
11989
  /**
11990
11990
  * Checks if a specific feature is within limits without incrementing usage
@@ -11994,8 +11994,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
11994
11994
  * @param {*} [options] Override http request option.
11995
11995
  * @throws {RequiredError}
11996
11996
  */
11997
- apiFeatureLimitsCheckGet(featureName, amount, options) {
11998
- return localVarFp.apiFeatureLimitsCheckGet(featureName, amount, options).then((request) => request(axios, basePath));
11997
+ featureLimitsCheckGet(featureName, amount, options) {
11998
+ return localVarFp.featureLimitsCheckGet(featureName, amount, options).then((request) => request(axios, basePath));
11999
11999
  },
12000
12000
  /**
12001
12001
  * Retrieves historical feature usage events for the organization
@@ -12005,8 +12005,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
12005
12005
  * @param {*} [options] Override http request option.
12006
12006
  * @throws {RequiredError}
12007
12007
  */
12008
- apiFeatureLimitsHistoryGet(featureName, limit, options) {
12009
- return localVarFp.apiFeatureLimitsHistoryGet(featureName, limit, options).then((request) => request(axios, basePath));
12008
+ featureLimitsHistoryGet(featureName, limit, options) {
12009
+ return localVarFp.featureLimitsHistoryGet(featureName, limit, options).then((request) => request(axios, basePath));
12010
12010
  },
12011
12011
  /**
12012
12012
  * Retrieves the organization\'s current plan with all feature limits
@@ -12014,8 +12014,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
12014
12014
  * @param {*} [options] Override http request option.
12015
12015
  * @throws {RequiredError}
12016
12016
  */
12017
- apiFeatureLimitsPlanGet(options) {
12018
- return localVarFp.apiFeatureLimitsPlanGet(options).then((request) => request(axios, basePath));
12017
+ featureLimitsPlanGet(options) {
12018
+ return localVarFp.featureLimitsPlanGet(options).then((request) => request(axios, basePath));
12019
12019
  },
12020
12020
  /**
12021
12021
  * Returns plan details and feature availability map for UI rendering
@@ -12023,8 +12023,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
12023
12023
  * @param {*} [options] Override http request option.
12024
12024
  * @throws {RequiredError}
12025
12025
  */
12026
- apiFeatureLimitsPlanInfoGet(options) {
12027
- return localVarFp.apiFeatureLimitsPlanInfoGet(options).then((request) => request(axios, basePath));
12026
+ featureLimitsPlanInfoGet(options) {
12027
+ return localVarFp.featureLimitsPlanInfoGet(options).then((request) => request(axios, basePath));
12028
12028
  },
12029
12029
  /**
12030
12030
  * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
@@ -12032,8 +12032,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
12032
12032
  * @param {*} [options] Override http request option.
12033
12033
  * @throws {RequiredError}
12034
12034
  */
12035
- apiFeatureLimitsStatusGet(options) {
12036
- return localVarFp.apiFeatureLimitsStatusGet(options).then((request) => request(axios, basePath));
12035
+ featureLimitsStatusGet(options) {
12036
+ return localVarFp.featureLimitsStatusGet(options).then((request) => request(axios, basePath));
12037
12037
  },
12038
12038
  /**
12039
12039
  * Retrieves current feature usage statistics for the organization
@@ -12041,8 +12041,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
12041
12041
  * @param {*} [options] Override http request option.
12042
12042
  * @throws {RequiredError}
12043
12043
  */
12044
- apiFeatureLimitsUsageGet(options) {
12045
- return localVarFp.apiFeatureLimitsUsageGet(options).then((request) => request(axios, basePath));
12044
+ featureLimitsUsageGet(options) {
12045
+ return localVarFp.featureLimitsUsageGet(options).then((request) => request(axios, basePath));
12046
12046
  },
12047
12047
  };
12048
12048
  };
@@ -12062,8 +12062,8 @@ export class FeatureLimitsApi extends BaseAPI {
12062
12062
  * @throws {RequiredError}
12063
12063
  * @memberof FeatureLimitsApi
12064
12064
  */
12065
- apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
12066
- return FeatureLimitsApiFp(this.configuration).apiAdminFeatureLimitsViolationsGet(featureName, limit, options).then((request) => request(this.axios, this.basePath));
12065
+ adminFeatureLimitsViolationsGet(featureName, limit, options) {
12066
+ return FeatureLimitsApiFp(this.configuration).adminFeatureLimitsViolationsGet(featureName, limit, options).then((request) => request(this.axios, this.basePath));
12067
12067
  }
12068
12068
  /**
12069
12069
  * Checks if a specific feature is within limits without incrementing usage
@@ -12074,8 +12074,8 @@ export class FeatureLimitsApi extends BaseAPI {
12074
12074
  * @throws {RequiredError}
12075
12075
  * @memberof FeatureLimitsApi
12076
12076
  */
12077
- apiFeatureLimitsCheckGet(featureName, amount, options) {
12078
- return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsCheckGet(featureName, amount, options).then((request) => request(this.axios, this.basePath));
12077
+ featureLimitsCheckGet(featureName, amount, options) {
12078
+ return FeatureLimitsApiFp(this.configuration).featureLimitsCheckGet(featureName, amount, options).then((request) => request(this.axios, this.basePath));
12079
12079
  }
12080
12080
  /**
12081
12081
  * Retrieves historical feature usage events for the organization
@@ -12086,8 +12086,8 @@ export class FeatureLimitsApi extends BaseAPI {
12086
12086
  * @throws {RequiredError}
12087
12087
  * @memberof FeatureLimitsApi
12088
12088
  */
12089
- apiFeatureLimitsHistoryGet(featureName, limit, options) {
12090
- return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsHistoryGet(featureName, limit, options).then((request) => request(this.axios, this.basePath));
12089
+ featureLimitsHistoryGet(featureName, limit, options) {
12090
+ return FeatureLimitsApiFp(this.configuration).featureLimitsHistoryGet(featureName, limit, options).then((request) => request(this.axios, this.basePath));
12091
12091
  }
12092
12092
  /**
12093
12093
  * Retrieves the organization\'s current plan with all feature limits
@@ -12096,8 +12096,8 @@ export class FeatureLimitsApi extends BaseAPI {
12096
12096
  * @throws {RequiredError}
12097
12097
  * @memberof FeatureLimitsApi
12098
12098
  */
12099
- apiFeatureLimitsPlanGet(options) {
12100
- return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsPlanGet(options).then((request) => request(this.axios, this.basePath));
12099
+ featureLimitsPlanGet(options) {
12100
+ return FeatureLimitsApiFp(this.configuration).featureLimitsPlanGet(options).then((request) => request(this.axios, this.basePath));
12101
12101
  }
12102
12102
  /**
12103
12103
  * Returns plan details and feature availability map for UI rendering
@@ -12106,8 +12106,8 @@ export class FeatureLimitsApi extends BaseAPI {
12106
12106
  * @throws {RequiredError}
12107
12107
  * @memberof FeatureLimitsApi
12108
12108
  */
12109
- apiFeatureLimitsPlanInfoGet(options) {
12110
- return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsPlanInfoGet(options).then((request) => request(this.axios, this.basePath));
12109
+ featureLimitsPlanInfoGet(options) {
12110
+ return FeatureLimitsApiFp(this.configuration).featureLimitsPlanInfoGet(options).then((request) => request(this.axios, this.basePath));
12111
12111
  }
12112
12112
  /**
12113
12113
  * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
@@ -12116,8 +12116,8 @@ export class FeatureLimitsApi extends BaseAPI {
12116
12116
  * @throws {RequiredError}
12117
12117
  * @memberof FeatureLimitsApi
12118
12118
  */
12119
- apiFeatureLimitsStatusGet(options) {
12120
- return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsStatusGet(options).then((request) => request(this.axios, this.basePath));
12119
+ featureLimitsStatusGet(options) {
12120
+ return FeatureLimitsApiFp(this.configuration).featureLimitsStatusGet(options).then((request) => request(this.axios, this.basePath));
12121
12121
  }
12122
12122
  /**
12123
12123
  * Retrieves current feature usage statistics for the organization
@@ -12126,8 +12126,8 @@ export class FeatureLimitsApi extends BaseAPI {
12126
12126
  * @throws {RequiredError}
12127
12127
  * @memberof FeatureLimitsApi
12128
12128
  */
12129
- apiFeatureLimitsUsageGet(options) {
12130
- return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsUsageGet(options).then((request) => request(this.axios, this.basePath));
12129
+ featureLimitsUsageGet(options) {
12130
+ return FeatureLimitsApiFp(this.configuration).featureLimitsUsageGet(options).then((request) => request(this.axios, this.basePath));
12131
12131
  }
12132
12132
  }
12133
12133
  /**
@@ -12142,8 +12142,8 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
12142
12142
  * @param {*} [options] Override http request option.
12143
12143
  * @throws {RequiredError}
12144
12144
  */
12145
- apiAdminFeatureLimitsCacheInvalidatePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
12146
- const localVarPath = `/api/admin/feature-limits/cache/invalidate`;
12145
+ adminFeatureLimitsCacheInvalidatePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
12146
+ const localVarPath = `/admin/feature-limits/cache/invalidate`;
12147
12147
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12148
12148
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12149
12149
  let baseOptions;
@@ -12170,10 +12170,10 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
12170
12170
  * @param {*} [options] Override http request option.
12171
12171
  * @throws {RequiredError}
12172
12172
  */
12173
- apiAdminFeatureLimitsResetPost: (featureName_1, ...args_1) => __awaiter(this, [featureName_1, ...args_1], void 0, function* (featureName, options = {}) {
12173
+ adminFeatureLimitsResetPost: (featureName_1, ...args_1) => __awaiter(this, [featureName_1, ...args_1], void 0, function* (featureName, options = {}) {
12174
12174
  // verify required parameter 'featureName' is not null or undefined
12175
- assertParamExists('apiAdminFeatureLimitsResetPost', 'featureName', featureName);
12176
- const localVarPath = `/api/admin/feature-limits/reset`;
12175
+ assertParamExists('adminFeatureLimitsResetPost', 'featureName', featureName);
12176
+ const localVarPath = `/admin/feature-limits/reset`;
12177
12177
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12178
12178
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12179
12179
  let baseOptions;
@@ -12211,12 +12211,12 @@ export const FeatureLimitsAdminApiFp = function (configuration) {
12211
12211
  * @param {*} [options] Override http request option.
12212
12212
  * @throws {RequiredError}
12213
12213
  */
12214
- apiAdminFeatureLimitsCacheInvalidatePost(options) {
12214
+ adminFeatureLimitsCacheInvalidatePost(options) {
12215
12215
  return __awaiter(this, void 0, void 0, function* () {
12216
12216
  var _a, _b, _c;
12217
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsCacheInvalidatePost(options);
12217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsCacheInvalidatePost(options);
12218
12218
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12219
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.apiAdminFeatureLimitsCacheInvalidatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12219
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsCacheInvalidatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12220
12220
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12221
12221
  });
12222
12222
  },
@@ -12227,12 +12227,12 @@ export const FeatureLimitsAdminApiFp = function (configuration) {
12227
12227
  * @param {*} [options] Override http request option.
12228
12228
  * @throws {RequiredError}
12229
12229
  */
12230
- apiAdminFeatureLimitsResetPost(featureName, options) {
12230
+ adminFeatureLimitsResetPost(featureName, options) {
12231
12231
  return __awaiter(this, void 0, void 0, function* () {
12232
12232
  var _a, _b, _c;
12233
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsResetPost(featureName, options);
12233
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsResetPost(featureName, options);
12234
12234
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12235
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.apiAdminFeatureLimitsResetPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12235
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.adminFeatureLimitsResetPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12236
12236
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12237
12237
  });
12238
12238
  },
@@ -12251,8 +12251,8 @@ export const FeatureLimitsAdminApiFactory = function (configuration, basePath, a
12251
12251
  * @param {*} [options] Override http request option.
12252
12252
  * @throws {RequiredError}
12253
12253
  */
12254
- apiAdminFeatureLimitsCacheInvalidatePost(options) {
12255
- return localVarFp.apiAdminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
12254
+ adminFeatureLimitsCacheInvalidatePost(options) {
12255
+ return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
12256
12256
  },
12257
12257
  /**
12258
12258
  * Resets usage counter for a specific feature (admin only)
@@ -12261,8 +12261,8 @@ export const FeatureLimitsAdminApiFactory = function (configuration, basePath, a
12261
12261
  * @param {*} [options] Override http request option.
12262
12262
  * @throws {RequiredError}
12263
12263
  */
12264
- apiAdminFeatureLimitsResetPost(featureName, options) {
12265
- return localVarFp.apiAdminFeatureLimitsResetPost(featureName, options).then((request) => request(axios, basePath));
12264
+ adminFeatureLimitsResetPost(featureName, options) {
12265
+ return localVarFp.adminFeatureLimitsResetPost(featureName, options).then((request) => request(axios, basePath));
12266
12266
  },
12267
12267
  };
12268
12268
  };
@@ -12280,8 +12280,8 @@ export class FeatureLimitsAdminApi extends BaseAPI {
12280
12280
  * @throws {RequiredError}
12281
12281
  * @memberof FeatureLimitsAdminApi
12282
12282
  */
12283
- apiAdminFeatureLimitsCacheInvalidatePost(options) {
12284
- return FeatureLimitsAdminApiFp(this.configuration).apiAdminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
12283
+ adminFeatureLimitsCacheInvalidatePost(options) {
12284
+ return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
12285
12285
  }
12286
12286
  /**
12287
12287
  * Resets usage counter for a specific feature (admin only)
@@ -12291,8 +12291,8 @@ export class FeatureLimitsAdminApi extends BaseAPI {
12291
12291
  * @throws {RequiredError}
12292
12292
  * @memberof FeatureLimitsAdminApi
12293
12293
  */
12294
- apiAdminFeatureLimitsResetPost(featureName, options) {
12295
- return FeatureLimitsAdminApiFp(this.configuration).apiAdminFeatureLimitsResetPost(featureName, options).then((request) => request(this.axios, this.basePath));
12294
+ adminFeatureLimitsResetPost(featureName, options) {
12295
+ return FeatureLimitsAdminApiFp(this.configuration).adminFeatureLimitsResetPost(featureName, options).then((request) => request(this.axios, this.basePath));
12296
12296
  }
12297
12297
  }
12298
12298
  /**
@@ -29424,6 +29424,308 @@ export class SubscriptionsApi extends BaseAPI {
29424
29424
  return SubscriptionsApiFp(this.configuration).miscSubscriptionsSubscriptionIDGet(subscriptionID, options).then((request) => request(this.axios, this.basePath));
29425
29425
  }
29426
29426
  }
29427
+ /**
29428
+ * TaxManagementApi - axios parameter creator
29429
+ * @export
29430
+ */
29431
+ export const TaxManagementApiAxiosParamCreator = function (configuration) {
29432
+ return {
29433
+ /**
29434
+ * Calculates GST/VAT for a transaction in a payment gateway agnostic way
29435
+ * @summary Calculate tax for a transaction
29436
+ * @param {DataTypesTaxCalculationRequest} dataTypesTaxCalculationRequest Tax calculation request
29437
+ * @param {*} [options] Override http request option.
29438
+ * @throws {RequiredError}
29439
+ */
29440
+ adminTaxCalculatePost: (dataTypesTaxCalculationRequest_1, ...args_1) => __awaiter(this, [dataTypesTaxCalculationRequest_1, ...args_1], void 0, function* (dataTypesTaxCalculationRequest, options = {}) {
29441
+ // verify required parameter 'dataTypesTaxCalculationRequest' is not null or undefined
29442
+ assertParamExists('adminTaxCalculatePost', 'dataTypesTaxCalculationRequest', dataTypesTaxCalculationRequest);
29443
+ const localVarPath = `/admin/tax/calculate`;
29444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29445
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29446
+ let baseOptions;
29447
+ if (configuration) {
29448
+ baseOptions = configuration.baseOptions;
29449
+ }
29450
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
29451
+ const localVarHeaderParameter = {};
29452
+ const localVarQueryParameter = {};
29453
+ // authentication BearerAuth required
29454
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
29455
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29456
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29457
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29458
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29459
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesTaxCalculationRequest, localVarRequestOptions, configuration);
29460
+ return {
29461
+ url: toPathString(localVarUrlObj),
29462
+ options: localVarRequestOptions,
29463
+ };
29464
+ }),
29465
+ /**
29466
+ * Retrieves GST and taxation details for an organization
29467
+ * @summary Get organization tax details
29468
+ * @param {*} [options] Override http request option.
29469
+ * @throws {RequiredError}
29470
+ */
29471
+ adminTaxOrganizationGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
29472
+ const localVarPath = `/admin/tax/organization`;
29473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29474
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29475
+ let baseOptions;
29476
+ if (configuration) {
29477
+ baseOptions = configuration.baseOptions;
29478
+ }
29479
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
29480
+ const localVarHeaderParameter = {};
29481
+ const localVarQueryParameter = {};
29482
+ // authentication BearerAuth required
29483
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
29484
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29485
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29486
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29487
+ return {
29488
+ url: toPathString(localVarUrlObj),
29489
+ options: localVarRequestOptions,
29490
+ };
29491
+ }),
29492
+ /**
29493
+ * Updates GST and taxation details for an organization
29494
+ * @summary Update organization tax details
29495
+ * @param {DataTypesUpdateOrganizationTaxDetailsRequest} dataTypesUpdateOrganizationTaxDetailsRequest Tax details to update
29496
+ * @param {*} [options] Override http request option.
29497
+ * @throws {RequiredError}
29498
+ */
29499
+ adminTaxOrganizationPut: (dataTypesUpdateOrganizationTaxDetailsRequest_1, ...args_1) => __awaiter(this, [dataTypesUpdateOrganizationTaxDetailsRequest_1, ...args_1], void 0, function* (dataTypesUpdateOrganizationTaxDetailsRequest, options = {}) {
29500
+ // verify required parameter 'dataTypesUpdateOrganizationTaxDetailsRequest' is not null or undefined
29501
+ assertParamExists('adminTaxOrganizationPut', 'dataTypesUpdateOrganizationTaxDetailsRequest', dataTypesUpdateOrganizationTaxDetailsRequest);
29502
+ const localVarPath = `/admin/tax/organization`;
29503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29504
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29505
+ let baseOptions;
29506
+ if (configuration) {
29507
+ baseOptions = configuration.baseOptions;
29508
+ }
29509
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
29510
+ const localVarHeaderParameter = {};
29511
+ const localVarQueryParameter = {};
29512
+ // authentication BearerAuth required
29513
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
29514
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29515
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29516
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29517
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29518
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateOrganizationTaxDetailsRequest, localVarRequestOptions, configuration);
29519
+ return {
29520
+ url: toPathString(localVarUrlObj),
29521
+ options: localVarRequestOptions,
29522
+ };
29523
+ }),
29524
+ /**
29525
+ * Validates GSTIN format and optionally verifies with GST portal
29526
+ * @summary Validate GSTIN
29527
+ * @param {DataTypesGSTVerificationRequest} dataTypesGSTVerificationRequest GSTIN to validate
29528
+ * @param {*} [options] Override http request option.
29529
+ * @throws {RequiredError}
29530
+ */
29531
+ adminTaxValidateGstinPost: (dataTypesGSTVerificationRequest_1, ...args_1) => __awaiter(this, [dataTypesGSTVerificationRequest_1, ...args_1], void 0, function* (dataTypesGSTVerificationRequest, options = {}) {
29532
+ // verify required parameter 'dataTypesGSTVerificationRequest' is not null or undefined
29533
+ assertParamExists('adminTaxValidateGstinPost', 'dataTypesGSTVerificationRequest', dataTypesGSTVerificationRequest);
29534
+ const localVarPath = `/admin/tax/validate-gstin`;
29535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29536
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29537
+ let baseOptions;
29538
+ if (configuration) {
29539
+ baseOptions = configuration.baseOptions;
29540
+ }
29541
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
29542
+ const localVarHeaderParameter = {};
29543
+ const localVarQueryParameter = {};
29544
+ // authentication BearerAuth required
29545
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
29546
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29547
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29548
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29549
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29550
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesGSTVerificationRequest, localVarRequestOptions, configuration);
29551
+ return {
29552
+ url: toPathString(localVarUrlObj),
29553
+ options: localVarRequestOptions,
29554
+ };
29555
+ }),
29556
+ };
29557
+ };
29558
+ /**
29559
+ * TaxManagementApi - functional programming interface
29560
+ * @export
29561
+ */
29562
+ export const TaxManagementApiFp = function (configuration) {
29563
+ const localVarAxiosParamCreator = TaxManagementApiAxiosParamCreator(configuration);
29564
+ return {
29565
+ /**
29566
+ * Calculates GST/VAT for a transaction in a payment gateway agnostic way
29567
+ * @summary Calculate tax for a transaction
29568
+ * @param {DataTypesTaxCalculationRequest} dataTypesTaxCalculationRequest Tax calculation request
29569
+ * @param {*} [options] Override http request option.
29570
+ * @throws {RequiredError}
29571
+ */
29572
+ adminTaxCalculatePost(dataTypesTaxCalculationRequest, options) {
29573
+ return __awaiter(this, void 0, void 0, function* () {
29574
+ var _a, _b, _c;
29575
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminTaxCalculatePost(dataTypesTaxCalculationRequest, options);
29576
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29577
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TaxManagementApi.adminTaxCalculatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29578
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29579
+ });
29580
+ },
29581
+ /**
29582
+ * Retrieves GST and taxation details for an organization
29583
+ * @summary Get organization tax details
29584
+ * @param {*} [options] Override http request option.
29585
+ * @throws {RequiredError}
29586
+ */
29587
+ adminTaxOrganizationGet(options) {
29588
+ return __awaiter(this, void 0, void 0, function* () {
29589
+ var _a, _b, _c;
29590
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminTaxOrganizationGet(options);
29591
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29592
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TaxManagementApi.adminTaxOrganizationGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29593
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29594
+ });
29595
+ },
29596
+ /**
29597
+ * Updates GST and taxation details for an organization
29598
+ * @summary Update organization tax details
29599
+ * @param {DataTypesUpdateOrganizationTaxDetailsRequest} dataTypesUpdateOrganizationTaxDetailsRequest Tax details to update
29600
+ * @param {*} [options] Override http request option.
29601
+ * @throws {RequiredError}
29602
+ */
29603
+ adminTaxOrganizationPut(dataTypesUpdateOrganizationTaxDetailsRequest, options) {
29604
+ return __awaiter(this, void 0, void 0, function* () {
29605
+ var _a, _b, _c;
29606
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminTaxOrganizationPut(dataTypesUpdateOrganizationTaxDetailsRequest, options);
29607
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29608
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TaxManagementApi.adminTaxOrganizationPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29609
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29610
+ });
29611
+ },
29612
+ /**
29613
+ * Validates GSTIN format and optionally verifies with GST portal
29614
+ * @summary Validate GSTIN
29615
+ * @param {DataTypesGSTVerificationRequest} dataTypesGSTVerificationRequest GSTIN to validate
29616
+ * @param {*} [options] Override http request option.
29617
+ * @throws {RequiredError}
29618
+ */
29619
+ adminTaxValidateGstinPost(dataTypesGSTVerificationRequest, options) {
29620
+ return __awaiter(this, void 0, void 0, function* () {
29621
+ var _a, _b, _c;
29622
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminTaxValidateGstinPost(dataTypesGSTVerificationRequest, options);
29623
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29624
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TaxManagementApi.adminTaxValidateGstinPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29625
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29626
+ });
29627
+ },
29628
+ };
29629
+ };
29630
+ /**
29631
+ * TaxManagementApi - factory interface
29632
+ * @export
29633
+ */
29634
+ export const TaxManagementApiFactory = function (configuration, basePath, axios) {
29635
+ const localVarFp = TaxManagementApiFp(configuration);
29636
+ return {
29637
+ /**
29638
+ * Calculates GST/VAT for a transaction in a payment gateway agnostic way
29639
+ * @summary Calculate tax for a transaction
29640
+ * @param {DataTypesTaxCalculationRequest} dataTypesTaxCalculationRequest Tax calculation request
29641
+ * @param {*} [options] Override http request option.
29642
+ * @throws {RequiredError}
29643
+ */
29644
+ adminTaxCalculatePost(dataTypesTaxCalculationRequest, options) {
29645
+ return localVarFp.adminTaxCalculatePost(dataTypesTaxCalculationRequest, options).then((request) => request(axios, basePath));
29646
+ },
29647
+ /**
29648
+ * Retrieves GST and taxation details for an organization
29649
+ * @summary Get organization tax details
29650
+ * @param {*} [options] Override http request option.
29651
+ * @throws {RequiredError}
29652
+ */
29653
+ adminTaxOrganizationGet(options) {
29654
+ return localVarFp.adminTaxOrganizationGet(options).then((request) => request(axios, basePath));
29655
+ },
29656
+ /**
29657
+ * Updates GST and taxation details for an organization
29658
+ * @summary Update organization tax details
29659
+ * @param {DataTypesUpdateOrganizationTaxDetailsRequest} dataTypesUpdateOrganizationTaxDetailsRequest Tax details to update
29660
+ * @param {*} [options] Override http request option.
29661
+ * @throws {RequiredError}
29662
+ */
29663
+ adminTaxOrganizationPut(dataTypesUpdateOrganizationTaxDetailsRequest, options) {
29664
+ return localVarFp.adminTaxOrganizationPut(dataTypesUpdateOrganizationTaxDetailsRequest, options).then((request) => request(axios, basePath));
29665
+ },
29666
+ /**
29667
+ * Validates GSTIN format and optionally verifies with GST portal
29668
+ * @summary Validate GSTIN
29669
+ * @param {DataTypesGSTVerificationRequest} dataTypesGSTVerificationRequest GSTIN to validate
29670
+ * @param {*} [options] Override http request option.
29671
+ * @throws {RequiredError}
29672
+ */
29673
+ adminTaxValidateGstinPost(dataTypesGSTVerificationRequest, options) {
29674
+ return localVarFp.adminTaxValidateGstinPost(dataTypesGSTVerificationRequest, options).then((request) => request(axios, basePath));
29675
+ },
29676
+ };
29677
+ };
29678
+ /**
29679
+ * TaxManagementApi - object-oriented interface
29680
+ * @export
29681
+ * @class TaxManagementApi
29682
+ * @extends {BaseAPI}
29683
+ */
29684
+ export class TaxManagementApi extends BaseAPI {
29685
+ /**
29686
+ * Calculates GST/VAT for a transaction in a payment gateway agnostic way
29687
+ * @summary Calculate tax for a transaction
29688
+ * @param {DataTypesTaxCalculationRequest} dataTypesTaxCalculationRequest Tax calculation request
29689
+ * @param {*} [options] Override http request option.
29690
+ * @throws {RequiredError}
29691
+ * @memberof TaxManagementApi
29692
+ */
29693
+ adminTaxCalculatePost(dataTypesTaxCalculationRequest, options) {
29694
+ return TaxManagementApiFp(this.configuration).adminTaxCalculatePost(dataTypesTaxCalculationRequest, options).then((request) => request(this.axios, this.basePath));
29695
+ }
29696
+ /**
29697
+ * Retrieves GST and taxation details for an organization
29698
+ * @summary Get organization tax details
29699
+ * @param {*} [options] Override http request option.
29700
+ * @throws {RequiredError}
29701
+ * @memberof TaxManagementApi
29702
+ */
29703
+ adminTaxOrganizationGet(options) {
29704
+ return TaxManagementApiFp(this.configuration).adminTaxOrganizationGet(options).then((request) => request(this.axios, this.basePath));
29705
+ }
29706
+ /**
29707
+ * Updates GST and taxation details for an organization
29708
+ * @summary Update organization tax details
29709
+ * @param {DataTypesUpdateOrganizationTaxDetailsRequest} dataTypesUpdateOrganizationTaxDetailsRequest Tax details to update
29710
+ * @param {*} [options] Override http request option.
29711
+ * @throws {RequiredError}
29712
+ * @memberof TaxManagementApi
29713
+ */
29714
+ adminTaxOrganizationPut(dataTypesUpdateOrganizationTaxDetailsRequest, options) {
29715
+ return TaxManagementApiFp(this.configuration).adminTaxOrganizationPut(dataTypesUpdateOrganizationTaxDetailsRequest, options).then((request) => request(this.axios, this.basePath));
29716
+ }
29717
+ /**
29718
+ * Validates GSTIN format and optionally verifies with GST portal
29719
+ * @summary Validate GSTIN
29720
+ * @param {DataTypesGSTVerificationRequest} dataTypesGSTVerificationRequest GSTIN to validate
29721
+ * @param {*} [options] Override http request option.
29722
+ * @throws {RequiredError}
29723
+ * @memberof TaxManagementApi
29724
+ */
29725
+ adminTaxValidateGstinPost(dataTypesGSTVerificationRequest, options) {
29726
+ return TaxManagementApiFp(this.configuration).adminTaxValidateGstinPost(dataTypesGSTVerificationRequest, options).then((request) => request(this.axios, this.basePath));
29727
+ }
29728
+ }
29427
29729
  /**
29428
29730
  * UserApi - axios parameter creator
29429
29731
  * @export