@seekora-ai/admin-api 1.1.0 → 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
@@ -7408,6 +7408,33 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7408
7408
  options: localVarRequestOptions,
7409
7409
  };
7410
7410
  }),
7411
+ /**
7412
+ * Returns available alert types and their configurations for the frontend
7413
+ * @summary Get billing alert types
7414
+ * @param {*} [options] Override http request option.
7415
+ * @throws {RequiredError}
7416
+ */
7417
+ adminBillingAlertsTypesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7418
+ const localVarPath = `/admin/billing/alerts/types`;
7419
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7420
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7421
+ let baseOptions;
7422
+ if (configuration) {
7423
+ baseOptions = configuration.baseOptions;
7424
+ }
7425
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7426
+ const localVarHeaderParameter = {};
7427
+ const localVarQueryParameter = {};
7428
+ // authentication BearerAuth required
7429
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7430
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7431
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7432
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7433
+ return {
7434
+ url: toPathString(localVarUrlObj),
7435
+ options: localVarRequestOptions,
7436
+ };
7437
+ }),
7411
7438
  /**
7412
7439
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
7413
7440
  * @summary Get credit consumption
@@ -7776,7 +7803,7 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7776
7803
  };
7777
7804
  }),
7778
7805
  /**
7779
- * Downloads an invoice as an HTML file (PDF can be added later)
7806
+ * Returns an invoice as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
7780
7807
  * @summary Download invoice
7781
7808
  * @param {string} id Invoice ID
7782
7809
  * @param {*} [options] Override http request option.
@@ -8339,6 +8366,21 @@ export const BillingDashboardApiFp = function (configuration) {
8339
8366
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8340
8367
  });
8341
8368
  },
8369
+ /**
8370
+ * Returns available alert types and their configurations for the frontend
8371
+ * @summary Get billing alert types
8372
+ * @param {*} [options] Override http request option.
8373
+ * @throws {RequiredError}
8374
+ */
8375
+ adminBillingAlertsTypesGet(options) {
8376
+ return __awaiter(this, void 0, void 0, function* () {
8377
+ var _a, _b, _c;
8378
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsTypesGet(options);
8379
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8380
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsTypesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8381
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8382
+ });
8383
+ },
8342
8384
  /**
8343
8385
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
8344
8386
  * @summary Get credit consumption
@@ -8506,7 +8548,7 @@ export const BillingDashboardApiFp = function (configuration) {
8506
8548
  });
8507
8549
  },
8508
8550
  /**
8509
- * Downloads an invoice as an HTML file (PDF can be added later)
8551
+ * Returns an invoice as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
8510
8552
  * @summary Download invoice
8511
8553
  * @param {string} id Invoice ID
8512
8554
  * @param {*} [options] Override http request option.
@@ -8784,6 +8826,15 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
8784
8826
  adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
8785
8827
  return localVarFp.adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
8786
8828
  },
8829
+ /**
8830
+ * Returns available alert types and their configurations for the frontend
8831
+ * @summary Get billing alert types
8832
+ * @param {*} [options] Override http request option.
8833
+ * @throws {RequiredError}
8834
+ */
8835
+ adminBillingAlertsTypesGet(options) {
8836
+ return localVarFp.adminBillingAlertsTypesGet(options).then((request) => request(axios, basePath));
8837
+ },
8787
8838
  /**
8788
8839
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
8789
8840
  * @summary Get credit consumption
@@ -8897,7 +8948,7 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
8897
8948
  return localVarFp.adminBillingInvoicesIdDelete(id, options).then((request) => request(axios, basePath));
8898
8949
  },
8899
8950
  /**
8900
- * Downloads an invoice as an HTML file (PDF can be added later)
8951
+ * Returns an invoice as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
8901
8952
  * @summary Download invoice
8902
8953
  * @param {string} id Invoice ID
8903
8954
  * @param {*} [options] Override http request option.
@@ -9101,6 +9152,16 @@ export class BillingDashboardApi extends BaseAPI {
9101
9152
  adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
9102
9153
  return BillingDashboardApiFp(this.configuration).adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
9103
9154
  }
9155
+ /**
9156
+ * Returns available alert types and their configurations for the frontend
9157
+ * @summary Get billing alert types
9158
+ * @param {*} [options] Override http request option.
9159
+ * @throws {RequiredError}
9160
+ * @memberof BillingDashboardApi
9161
+ */
9162
+ adminBillingAlertsTypesGet(options) {
9163
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertsTypesGet(options).then((request) => request(this.axios, this.basePath));
9164
+ }
9104
9165
  /**
9105
9166
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
9106
9167
  * @summary Get credit consumption
@@ -9223,7 +9284,7 @@ export class BillingDashboardApi extends BaseAPI {
9223
9284
  return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
9224
9285
  }
9225
9286
  /**
9226
- * Downloads an invoice as an HTML file (PDF can be added later)
9287
+ * Returns an invoice as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
9227
9288
  * @summary Download invoice
9228
9289
  * @param {string} id Invoice ID
9229
9290
  * @param {*} [options] Override http request option.
@@ -11578,8 +11639,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11578
11639
  * @param {*} [options] Override http request option.
11579
11640
  * @throws {RequiredError}
11580
11641
  */
11581
- apiAdminFeatureLimitsViolationsGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
11582
- 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`;
11583
11644
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11584
11645
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11585
11646
  let baseOptions;
@@ -11613,10 +11674,10 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11613
11674
  * @param {*} [options] Override http request option.
11614
11675
  * @throws {RequiredError}
11615
11676
  */
11616
- 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 = {}) {
11617
11678
  // verify required parameter 'featureName' is not null or undefined
11618
- assertParamExists('apiFeatureLimitsCheckGet', 'featureName', featureName);
11619
- const localVarPath = `/api/feature-limits/check`;
11679
+ assertParamExists('featureLimitsCheckGet', 'featureName', featureName);
11680
+ const localVarPath = `/feature-limits/check`;
11620
11681
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11621
11682
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11622
11683
  let baseOptions;
@@ -11650,8 +11711,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11650
11711
  * @param {*} [options] Override http request option.
11651
11712
  * @throws {RequiredError}
11652
11713
  */
11653
- apiFeatureLimitsHistoryGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
11654
- 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`;
11655
11716
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11656
11717
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11657
11718
  let baseOptions;
@@ -11683,8 +11744,62 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11683
11744
  * @param {*} [options] Override http request option.
11684
11745
  * @throws {RequiredError}
11685
11746
  */
11686
- apiFeatureLimitsPlanGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11687
- 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
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11750
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11751
+ let baseOptions;
11752
+ if (configuration) {
11753
+ baseOptions = configuration.baseOptions;
11754
+ }
11755
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11756
+ const localVarHeaderParameter = {};
11757
+ const localVarQueryParameter = {};
11758
+ // authentication BearerAuth required
11759
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11760
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11761
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11762
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11763
+ return {
11764
+ url: toPathString(localVarUrlObj),
11765
+ options: localVarRequestOptions,
11766
+ };
11767
+ }),
11768
+ /**
11769
+ * Returns plan details and feature availability map for UI rendering
11770
+ * @summary Get plan information for frontend
11771
+ * @param {*} [options] Override http request option.
11772
+ * @throws {RequiredError}
11773
+ */
11774
+ featureLimitsPlanInfoGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11775
+ const localVarPath = `/feature-limits/plan/info`;
11776
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11777
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11778
+ let baseOptions;
11779
+ if (configuration) {
11780
+ baseOptions = configuration.baseOptions;
11781
+ }
11782
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11783
+ const localVarHeaderParameter = {};
11784
+ const localVarQueryParameter = {};
11785
+ // authentication BearerAuth required
11786
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
11787
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11788
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11789
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11790
+ return {
11791
+ url: toPathString(localVarUrlObj),
11792
+ options: localVarRequestOptions,
11793
+ };
11794
+ }),
11795
+ /**
11796
+ * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
11797
+ * @summary Get real-time limit status
11798
+ * @param {*} [options] Override http request option.
11799
+ * @throws {RequiredError}
11800
+ */
11801
+ featureLimitsStatusGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11802
+ const localVarPath = `/feature-limits/status`;
11688
11803
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11689
11804
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11690
11805
  let baseOptions;
@@ -11710,8 +11825,8 @@ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11710
11825
  * @param {*} [options] Override http request option.
11711
11826
  * @throws {RequiredError}
11712
11827
  */
11713
- apiFeatureLimitsUsageGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11714
- const localVarPath = `/api/feature-limits/usage`;
11828
+ featureLimitsUsageGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11829
+ const localVarPath = `/feature-limits/usage`;
11715
11830
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11716
11831
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11717
11832
  let baseOptions;
@@ -11748,12 +11863,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11748
11863
  * @param {*} [options] Override http request option.
11749
11864
  * @throws {RequiredError}
11750
11865
  */
11751
- apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
11866
+ adminFeatureLimitsViolationsGet(featureName, limit, options) {
11752
11867
  return __awaiter(this, void 0, void 0, function* () {
11753
11868
  var _a, _b, _c;
11754
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsViolationsGet(featureName, limit, options);
11869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsViolationsGet(featureName, limit, options);
11755
11870
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11756
- 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;
11757
11872
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11758
11873
  });
11759
11874
  },
@@ -11765,12 +11880,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11765
11880
  * @param {*} [options] Override http request option.
11766
11881
  * @throws {RequiredError}
11767
11882
  */
11768
- apiFeatureLimitsCheckGet(featureName, amount, options) {
11883
+ featureLimitsCheckGet(featureName, amount, options) {
11769
11884
  return __awaiter(this, void 0, void 0, function* () {
11770
11885
  var _a, _b, _c;
11771
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsCheckGet(featureName, amount, options);
11886
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsCheckGet(featureName, amount, options);
11772
11887
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11773
- 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;
11774
11889
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11775
11890
  });
11776
11891
  },
@@ -11782,12 +11897,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11782
11897
  * @param {*} [options] Override http request option.
11783
11898
  * @throws {RequiredError}
11784
11899
  */
11785
- apiFeatureLimitsHistoryGet(featureName, limit, options) {
11900
+ featureLimitsHistoryGet(featureName, limit, options) {
11786
11901
  return __awaiter(this, void 0, void 0, function* () {
11787
11902
  var _a, _b, _c;
11788
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsHistoryGet(featureName, limit, options);
11903
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsHistoryGet(featureName, limit, options);
11789
11904
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11790
- 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;
11791
11906
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11792
11907
  });
11793
11908
  },
@@ -11797,12 +11912,42 @@ export const FeatureLimitsApiFp = function (configuration) {
11797
11912
  * @param {*} [options] Override http request option.
11798
11913
  * @throws {RequiredError}
11799
11914
  */
11800
- apiFeatureLimitsPlanGet(options) {
11915
+ featureLimitsPlanGet(options) {
11801
11916
  return __awaiter(this, void 0, void 0, function* () {
11802
11917
  var _a, _b, _c;
11803
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsPlanGet(options);
11918
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsPlanGet(options);
11804
11919
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11805
- 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
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11922
+ });
11923
+ },
11924
+ /**
11925
+ * Returns plan details and feature availability map for UI rendering
11926
+ * @summary Get plan information for frontend
11927
+ * @param {*} [options] Override http request option.
11928
+ * @throws {RequiredError}
11929
+ */
11930
+ featureLimitsPlanInfoGet(options) {
11931
+ return __awaiter(this, void 0, void 0, function* () {
11932
+ var _a, _b, _c;
11933
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsPlanInfoGet(options);
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.featureLimitsPlanInfoGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11936
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11937
+ });
11938
+ },
11939
+ /**
11940
+ * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
11941
+ * @summary Get real-time limit status
11942
+ * @param {*} [options] Override http request option.
11943
+ * @throws {RequiredError}
11944
+ */
11945
+ featureLimitsStatusGet(options) {
11946
+ return __awaiter(this, void 0, void 0, function* () {
11947
+ var _a, _b, _c;
11948
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsStatusGet(options);
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.featureLimitsStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11806
11951
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11807
11952
  });
11808
11953
  },
@@ -11812,12 +11957,12 @@ export const FeatureLimitsApiFp = function (configuration) {
11812
11957
  * @param {*} [options] Override http request option.
11813
11958
  * @throws {RequiredError}
11814
11959
  */
11815
- apiFeatureLimitsUsageGet(options) {
11960
+ featureLimitsUsageGet(options) {
11816
11961
  return __awaiter(this, void 0, void 0, function* () {
11817
11962
  var _a, _b, _c;
11818
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsUsageGet(options);
11963
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.featureLimitsUsageGet(options);
11819
11964
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11820
- 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;
11821
11966
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11822
11967
  });
11823
11968
  },
@@ -11838,8 +11983,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
11838
11983
  * @param {*} [options] Override http request option.
11839
11984
  * @throws {RequiredError}
11840
11985
  */
11841
- apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
11842
- 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));
11843
11988
  },
11844
11989
  /**
11845
11990
  * Checks if a specific feature is within limits without incrementing usage
@@ -11849,8 +11994,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
11849
11994
  * @param {*} [options] Override http request option.
11850
11995
  * @throws {RequiredError}
11851
11996
  */
11852
- apiFeatureLimitsCheckGet(featureName, amount, options) {
11853
- 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));
11854
11999
  },
11855
12000
  /**
11856
12001
  * Retrieves historical feature usage events for the organization
@@ -11860,8 +12005,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
11860
12005
  * @param {*} [options] Override http request option.
11861
12006
  * @throws {RequiredError}
11862
12007
  */
11863
- apiFeatureLimitsHistoryGet(featureName, limit, options) {
11864
- 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));
11865
12010
  },
11866
12011
  /**
11867
12012
  * Retrieves the organization\'s current plan with all feature limits
@@ -11869,8 +12014,26 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
11869
12014
  * @param {*} [options] Override http request option.
11870
12015
  * @throws {RequiredError}
11871
12016
  */
11872
- apiFeatureLimitsPlanGet(options) {
11873
- return localVarFp.apiFeatureLimitsPlanGet(options).then((request) => request(axios, basePath));
12017
+ featureLimitsPlanGet(options) {
12018
+ return localVarFp.featureLimitsPlanGet(options).then((request) => request(axios, basePath));
12019
+ },
12020
+ /**
12021
+ * Returns plan details and feature availability map for UI rendering
12022
+ * @summary Get plan information for frontend
12023
+ * @param {*} [options] Override http request option.
12024
+ * @throws {RequiredError}
12025
+ */
12026
+ featureLimitsPlanInfoGet(options) {
12027
+ return localVarFp.featureLimitsPlanInfoGet(options).then((request) => request(axios, basePath));
12028
+ },
12029
+ /**
12030
+ * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
12031
+ * @summary Get real-time limit status
12032
+ * @param {*} [options] Override http request option.
12033
+ * @throws {RequiredError}
12034
+ */
12035
+ featureLimitsStatusGet(options) {
12036
+ return localVarFp.featureLimitsStatusGet(options).then((request) => request(axios, basePath));
11874
12037
  },
11875
12038
  /**
11876
12039
  * Retrieves current feature usage statistics for the organization
@@ -11878,8 +12041,8 @@ export const FeatureLimitsApiFactory = function (configuration, basePath, axios)
11878
12041
  * @param {*} [options] Override http request option.
11879
12042
  * @throws {RequiredError}
11880
12043
  */
11881
- apiFeatureLimitsUsageGet(options) {
11882
- return localVarFp.apiFeatureLimitsUsageGet(options).then((request) => request(axios, basePath));
12044
+ featureLimitsUsageGet(options) {
12045
+ return localVarFp.featureLimitsUsageGet(options).then((request) => request(axios, basePath));
11883
12046
  },
11884
12047
  };
11885
12048
  };
@@ -11899,8 +12062,8 @@ export class FeatureLimitsApi extends BaseAPI {
11899
12062
  * @throws {RequiredError}
11900
12063
  * @memberof FeatureLimitsApi
11901
12064
  */
11902
- apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
11903
- 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));
11904
12067
  }
11905
12068
  /**
11906
12069
  * Checks if a specific feature is within limits without incrementing usage
@@ -11911,8 +12074,8 @@ export class FeatureLimitsApi extends BaseAPI {
11911
12074
  * @throws {RequiredError}
11912
12075
  * @memberof FeatureLimitsApi
11913
12076
  */
11914
- apiFeatureLimitsCheckGet(featureName, amount, options) {
11915
- 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));
11916
12079
  }
11917
12080
  /**
11918
12081
  * Retrieves historical feature usage events for the organization
@@ -11923,8 +12086,8 @@ export class FeatureLimitsApi extends BaseAPI {
11923
12086
  * @throws {RequiredError}
11924
12087
  * @memberof FeatureLimitsApi
11925
12088
  */
11926
- apiFeatureLimitsHistoryGet(featureName, limit, options) {
11927
- 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));
11928
12091
  }
11929
12092
  /**
11930
12093
  * Retrieves the organization\'s current plan with all feature limits
@@ -11933,8 +12096,28 @@ export class FeatureLimitsApi extends BaseAPI {
11933
12096
  * @throws {RequiredError}
11934
12097
  * @memberof FeatureLimitsApi
11935
12098
  */
11936
- apiFeatureLimitsPlanGet(options) {
11937
- 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
+ }
12102
+ /**
12103
+ * Returns plan details and feature availability map for UI rendering
12104
+ * @summary Get plan information for frontend
12105
+ * @param {*} [options] Override http request option.
12106
+ * @throws {RequiredError}
12107
+ * @memberof FeatureLimitsApi
12108
+ */
12109
+ featureLimitsPlanInfoGet(options) {
12110
+ return FeatureLimitsApiFp(this.configuration).featureLimitsPlanInfoGet(options).then((request) => request(this.axios, this.basePath));
12111
+ }
12112
+ /**
12113
+ * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
12114
+ * @summary Get real-time limit status
12115
+ * @param {*} [options] Override http request option.
12116
+ * @throws {RequiredError}
12117
+ * @memberof FeatureLimitsApi
12118
+ */
12119
+ featureLimitsStatusGet(options) {
12120
+ return FeatureLimitsApiFp(this.configuration).featureLimitsStatusGet(options).then((request) => request(this.axios, this.basePath));
11938
12121
  }
11939
12122
  /**
11940
12123
  * Retrieves current feature usage statistics for the organization
@@ -11943,8 +12126,8 @@ export class FeatureLimitsApi extends BaseAPI {
11943
12126
  * @throws {RequiredError}
11944
12127
  * @memberof FeatureLimitsApi
11945
12128
  */
11946
- apiFeatureLimitsUsageGet(options) {
11947
- 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));
11948
12131
  }
11949
12132
  }
11950
12133
  /**
@@ -11959,8 +12142,8 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
11959
12142
  * @param {*} [options] Override http request option.
11960
12143
  * @throws {RequiredError}
11961
12144
  */
11962
- apiAdminFeatureLimitsCacheInvalidatePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11963
- 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`;
11964
12147
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11965
12148
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11966
12149
  let baseOptions;
@@ -11987,10 +12170,10 @@ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
11987
12170
  * @param {*} [options] Override http request option.
11988
12171
  * @throws {RequiredError}
11989
12172
  */
11990
- 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 = {}) {
11991
12174
  // verify required parameter 'featureName' is not null or undefined
11992
- assertParamExists('apiAdminFeatureLimitsResetPost', 'featureName', featureName);
11993
- const localVarPath = `/api/admin/feature-limits/reset`;
12175
+ assertParamExists('adminFeatureLimitsResetPost', 'featureName', featureName);
12176
+ const localVarPath = `/admin/feature-limits/reset`;
11994
12177
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11995
12178
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11996
12179
  let baseOptions;
@@ -12028,12 +12211,12 @@ export const FeatureLimitsAdminApiFp = function (configuration) {
12028
12211
  * @param {*} [options] Override http request option.
12029
12212
  * @throws {RequiredError}
12030
12213
  */
12031
- apiAdminFeatureLimitsCacheInvalidatePost(options) {
12214
+ adminFeatureLimitsCacheInvalidatePost(options) {
12032
12215
  return __awaiter(this, void 0, void 0, function* () {
12033
12216
  var _a, _b, _c;
12034
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsCacheInvalidatePost(options);
12217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsCacheInvalidatePost(options);
12035
12218
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12036
- 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;
12037
12220
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12038
12221
  });
12039
12222
  },
@@ -12044,12 +12227,12 @@ export const FeatureLimitsAdminApiFp = function (configuration) {
12044
12227
  * @param {*} [options] Override http request option.
12045
12228
  * @throws {RequiredError}
12046
12229
  */
12047
- apiAdminFeatureLimitsResetPost(featureName, options) {
12230
+ adminFeatureLimitsResetPost(featureName, options) {
12048
12231
  return __awaiter(this, void 0, void 0, function* () {
12049
12232
  var _a, _b, _c;
12050
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsResetPost(featureName, options);
12233
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminFeatureLimitsResetPost(featureName, options);
12051
12234
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12052
- 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;
12053
12236
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12054
12237
  });
12055
12238
  },
@@ -12068,8 +12251,8 @@ export const FeatureLimitsAdminApiFactory = function (configuration, basePath, a
12068
12251
  * @param {*} [options] Override http request option.
12069
12252
  * @throws {RequiredError}
12070
12253
  */
12071
- apiAdminFeatureLimitsCacheInvalidatePost(options) {
12072
- return localVarFp.apiAdminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
12254
+ adminFeatureLimitsCacheInvalidatePost(options) {
12255
+ return localVarFp.adminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
12073
12256
  },
12074
12257
  /**
12075
12258
  * Resets usage counter for a specific feature (admin only)
@@ -12078,8 +12261,8 @@ export const FeatureLimitsAdminApiFactory = function (configuration, basePath, a
12078
12261
  * @param {*} [options] Override http request option.
12079
12262
  * @throws {RequiredError}
12080
12263
  */
12081
- apiAdminFeatureLimitsResetPost(featureName, options) {
12082
- 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));
12083
12266
  },
12084
12267
  };
12085
12268
  };
@@ -12097,8 +12280,8 @@ export class FeatureLimitsAdminApi extends BaseAPI {
12097
12280
  * @throws {RequiredError}
12098
12281
  * @memberof FeatureLimitsAdminApi
12099
12282
  */
12100
- apiAdminFeatureLimitsCacheInvalidatePost(options) {
12101
- 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));
12102
12285
  }
12103
12286
  /**
12104
12287
  * Resets usage counter for a specific feature (admin only)
@@ -12108,8 +12291,8 @@ export class FeatureLimitsAdminApi extends BaseAPI {
12108
12291
  * @throws {RequiredError}
12109
12292
  * @memberof FeatureLimitsAdminApi
12110
12293
  */
12111
- apiAdminFeatureLimitsResetPost(featureName, options) {
12112
- 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));
12113
12296
  }
12114
12297
  }
12115
12298
  /**
@@ -17710,6 +17893,38 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
17710
17893
  options: localVarRequestOptions,
17711
17894
  };
17712
17895
  }),
17896
+ /**
17897
+ * Verifies an invoice payment using only the gateway order ID. Fetches payment details from the gateway automatically. Ideal for testing without webhook access.
17898
+ * @summary Verify invoice payment (simplified)
17899
+ * @param {AdminPaymentGatewayVerifyInvoicePostRequest} adminPaymentGatewayVerifyInvoicePostRequest Gateway Order ID
17900
+ * @param {*} [options] Override http request option.
17901
+ * @throws {RequiredError}
17902
+ */
17903
+ adminPaymentGatewayVerifyInvoicePost: (adminPaymentGatewayVerifyInvoicePostRequest_1, ...args_1) => __awaiter(this, [adminPaymentGatewayVerifyInvoicePostRequest_1, ...args_1], void 0, function* (adminPaymentGatewayVerifyInvoicePostRequest, options = {}) {
17904
+ // verify required parameter 'adminPaymentGatewayVerifyInvoicePostRequest' is not null or undefined
17905
+ assertParamExists('adminPaymentGatewayVerifyInvoicePost', 'adminPaymentGatewayVerifyInvoicePostRequest', adminPaymentGatewayVerifyInvoicePostRequest);
17906
+ const localVarPath = `/admin/payment-gateway/verify-invoice`;
17907
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17908
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17909
+ let baseOptions;
17910
+ if (configuration) {
17911
+ baseOptions = configuration.baseOptions;
17912
+ }
17913
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17914
+ const localVarHeaderParameter = {};
17915
+ const localVarQueryParameter = {};
17916
+ // authentication BearerAuth required
17917
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
17918
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17919
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17920
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17921
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17922
+ localVarRequestOptions.data = serializeDataIfNeeded(adminPaymentGatewayVerifyInvoicePostRequest, localVarRequestOptions, configuration);
17923
+ return {
17924
+ url: toPathString(localVarUrlObj),
17925
+ options: localVarRequestOptions,
17926
+ };
17927
+ }),
17713
17928
  /**
17714
17929
  * Verifies the current status of a payment using only the order ID. Returns frontend-friendly status (\"success\", \"pending\", or \"error\"). This is a simplified endpoint that can be used for polling instead of payment-status endpoint for immediate verification.
17715
17930
  * @summary Verify payment status by order ID
@@ -17980,6 +18195,22 @@ export const PaymentGatewayApiFp = function (configuration) {
17980
18195
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17981
18196
  });
17982
18197
  },
18198
+ /**
18199
+ * Verifies an invoice payment using only the gateway order ID. Fetches payment details from the gateway automatically. Ideal for testing without webhook access.
18200
+ * @summary Verify invoice payment (simplified)
18201
+ * @param {AdminPaymentGatewayVerifyInvoicePostRequest} adminPaymentGatewayVerifyInvoicePostRequest Gateway Order ID
18202
+ * @param {*} [options] Override http request option.
18203
+ * @throws {RequiredError}
18204
+ */
18205
+ adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options) {
18206
+ return __awaiter(this, void 0, void 0, function* () {
18207
+ var _a, _b, _c;
18208
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options);
18209
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18210
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayVerifyInvoicePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18211
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18212
+ });
18213
+ },
17983
18214
  /**
17984
18215
  * Verifies the current status of a payment using only the order ID. Returns frontend-friendly status (\"success\", \"pending\", or \"error\"). This is a simplified endpoint that can be used for polling instead of payment-status endpoint for immediate verification.
17985
18216
  * @summary Verify payment status by order ID
@@ -18138,6 +18369,16 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
18138
18369
  adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
18139
18370
  return localVarFp.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
18140
18371
  },
18372
+ /**
18373
+ * Verifies an invoice payment using only the gateway order ID. Fetches payment details from the gateway automatically. Ideal for testing without webhook access.
18374
+ * @summary Verify invoice payment (simplified)
18375
+ * @param {AdminPaymentGatewayVerifyInvoicePostRequest} adminPaymentGatewayVerifyInvoicePostRequest Gateway Order ID
18376
+ * @param {*} [options] Override http request option.
18377
+ * @throws {RequiredError}
18378
+ */
18379
+ adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options) {
18380
+ return localVarFp.adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options).then((request) => request(axios, basePath));
18381
+ },
18141
18382
  /**
18142
18383
  * Verifies the current status of a payment using only the order ID. Returns frontend-friendly status (\"success\", \"pending\", or \"error\"). This is a simplified endpoint that can be used for polling instead of payment-status endpoint for immediate verification.
18143
18384
  * @summary Verify payment status by order ID
@@ -18273,6 +18514,17 @@ export class PaymentGatewayApi extends BaseAPI {
18273
18514
  adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
18274
18515
  return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
18275
18516
  }
18517
+ /**
18518
+ * Verifies an invoice payment using only the gateway order ID. Fetches payment details from the gateway automatically. Ideal for testing without webhook access.
18519
+ * @summary Verify invoice payment (simplified)
18520
+ * @param {AdminPaymentGatewayVerifyInvoicePostRequest} adminPaymentGatewayVerifyInvoicePostRequest Gateway Order ID
18521
+ * @param {*} [options] Override http request option.
18522
+ * @throws {RequiredError}
18523
+ * @memberof PaymentGatewayApi
18524
+ */
18525
+ adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options) {
18526
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options).then((request) => request(this.axios, this.basePath));
18527
+ }
18276
18528
  /**
18277
18529
  * Verifies the current status of a payment using only the order ID. Returns frontend-friendly status (\"success\", \"pending\", or \"error\"). This is a simplified endpoint that can be used for polling instead of payment-status endpoint for immediate verification.
18278
18530
  * @summary Verify payment status by order ID
@@ -27421,6 +27673,90 @@ export const StoresApiAxiosParamCreator = function (configuration) {
27421
27673
  options: localVarRequestOptions,
27422
27674
  };
27423
27675
  }),
27676
+ /**
27677
+ * Retrieves aggregated daily statistics for a specific store including records usage, response times, and operation counts.
27678
+ * @summary Get Daily Statistics for a Store
27679
+ * @param {string} xStoreID Store ID
27680
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
27681
+ * @param {string} [endDate] End date (YYYY-MM-DD)
27682
+ * @param {*} [options] Override http request option.
27683
+ * @throws {RequiredError}
27684
+ */
27685
+ adminStoresXStoreIDAnalyticsDailyStatsGet: (xStoreID_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [xStoreID_1, startDate_1, endDate_1, ...args_1], void 0, function* (xStoreID, startDate, endDate, options = {}) {
27686
+ // verify required parameter 'xStoreID' is not null or undefined
27687
+ assertParamExists('adminStoresXStoreIDAnalyticsDailyStatsGet', 'xStoreID', xStoreID);
27688
+ const localVarPath = `/admin/Stores/{xStoreID}/analytics/daily-stats`
27689
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
27690
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27691
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27692
+ let baseOptions;
27693
+ if (configuration) {
27694
+ baseOptions = configuration.baseOptions;
27695
+ }
27696
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
27697
+ const localVarHeaderParameter = {};
27698
+ const localVarQueryParameter = {};
27699
+ // authentication BearerAuth required
27700
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
27701
+ if (startDate !== undefined) {
27702
+ localVarQueryParameter['start_date'] = startDate;
27703
+ }
27704
+ if (endDate !== undefined) {
27705
+ localVarQueryParameter['end_date'] = endDate;
27706
+ }
27707
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27708
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27709
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27710
+ return {
27711
+ url: toPathString(localVarUrlObj),
27712
+ options: localVarRequestOptions,
27713
+ };
27714
+ }),
27715
+ /**
27716
+ * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
27717
+ * @summary Get Time Series Data for Store Metrics
27718
+ * @param {string} xStoreID Store ID
27719
+ * @param {string} metric Metric type: records, search_response_time, operations, search_requests
27720
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
27721
+ * @param {string} [endDate] End date (YYYY-MM-DD)
27722
+ * @param {*} [options] Override http request option.
27723
+ * @throws {RequiredError}
27724
+ */
27725
+ adminStoresXStoreIDAnalyticsTimeseriesGet: (xStoreID_1, metric_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [xStoreID_1, metric_1, startDate_1, endDate_1, ...args_1], void 0, function* (xStoreID, metric, startDate, endDate, options = {}) {
27726
+ // verify required parameter 'xStoreID' is not null or undefined
27727
+ assertParamExists('adminStoresXStoreIDAnalyticsTimeseriesGet', 'xStoreID', xStoreID);
27728
+ // verify required parameter 'metric' is not null or undefined
27729
+ assertParamExists('adminStoresXStoreIDAnalyticsTimeseriesGet', 'metric', metric);
27730
+ const localVarPath = `/admin/Stores/{xStoreID}/analytics/timeseries`
27731
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
27732
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27733
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27734
+ let baseOptions;
27735
+ if (configuration) {
27736
+ baseOptions = configuration.baseOptions;
27737
+ }
27738
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
27739
+ const localVarHeaderParameter = {};
27740
+ const localVarQueryParameter = {};
27741
+ // authentication BearerAuth required
27742
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
27743
+ if (metric !== undefined) {
27744
+ localVarQueryParameter['metric'] = metric;
27745
+ }
27746
+ if (startDate !== undefined) {
27747
+ localVarQueryParameter['start_date'] = startDate;
27748
+ }
27749
+ if (endDate !== undefined) {
27750
+ localVarQueryParameter['end_date'] = endDate;
27751
+ }
27752
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27753
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27754
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27755
+ return {
27756
+ url: toPathString(localVarUrlObj),
27757
+ options: localVarRequestOptions,
27758
+ };
27759
+ }),
27424
27760
  /**
27425
27761
  * Retrieve detailed information for a specific API usage event including headers, request body, and response body
27426
27762
  * @summary Get Specific API Usage Event
@@ -27906,6 +28242,43 @@ export const StoresApiFp = function (configuration) {
27906
28242
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27907
28243
  });
27908
28244
  },
28245
+ /**
28246
+ * Retrieves aggregated daily statistics for a specific store including records usage, response times, and operation counts.
28247
+ * @summary Get Daily Statistics for a Store
28248
+ * @param {string} xStoreID Store ID
28249
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28250
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28251
+ * @param {*} [options] Override http request option.
28252
+ * @throws {RequiredError}
28253
+ */
28254
+ adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options) {
28255
+ return __awaiter(this, void 0, void 0, function* () {
28256
+ var _a, _b, _c;
28257
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options);
28258
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
28259
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDAnalyticsDailyStatsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
28260
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28261
+ });
28262
+ },
28263
+ /**
28264
+ * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
28265
+ * @summary Get Time Series Data for Store Metrics
28266
+ * @param {string} xStoreID Store ID
28267
+ * @param {string} metric Metric type: records, search_response_time, operations, search_requests
28268
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28269
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28270
+ * @param {*} [options] Override http request option.
28271
+ * @throws {RequiredError}
28272
+ */
28273
+ adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options) {
28274
+ return __awaiter(this, void 0, void 0, function* () {
28275
+ var _a, _b, _c;
28276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options);
28277
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
28278
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDAnalyticsTimeseriesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
28279
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28280
+ });
28281
+ },
27909
28282
  /**
27910
28283
  * Retrieve detailed information for a specific API usage event including headers, request body, and response body
27911
28284
  * @summary Get Specific API Usage Event
@@ -28155,6 +28528,31 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
28155
28528
  adminStoresUpdateStatusIdStatusPut(id, status, options) {
28156
28529
  return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
28157
28530
  },
28531
+ /**
28532
+ * Retrieves aggregated daily statistics for a specific store including records usage, response times, and operation counts.
28533
+ * @summary Get Daily Statistics for a Store
28534
+ * @param {string} xStoreID Store ID
28535
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28536
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28537
+ * @param {*} [options] Override http request option.
28538
+ * @throws {RequiredError}
28539
+ */
28540
+ adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options) {
28541
+ return localVarFp.adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options).then((request) => request(axios, basePath));
28542
+ },
28543
+ /**
28544
+ * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
28545
+ * @summary Get Time Series Data for Store Metrics
28546
+ * @param {string} xStoreID Store ID
28547
+ * @param {string} metric Metric type: records, search_response_time, operations, search_requests
28548
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28549
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28550
+ * @param {*} [options] Override http request option.
28551
+ * @throws {RequiredError}
28552
+ */
28553
+ adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options) {
28554
+ return localVarFp.adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options).then((request) => request(axios, basePath));
28555
+ },
28158
28556
  /**
28159
28557
  * Retrieve detailed information for a specific API usage event including headers, request body, and response body
28160
28558
  * @summary Get Specific API Usage Event
@@ -28343,6 +28741,33 @@ export class StoresApi extends BaseAPI {
28343
28741
  adminStoresUpdateStatusIdStatusPut(id, status, options) {
28344
28742
  return StoresApiFp(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
28345
28743
  }
28744
+ /**
28745
+ * Retrieves aggregated daily statistics for a specific store including records usage, response times, and operation counts.
28746
+ * @summary Get Daily Statistics for a Store
28747
+ * @param {string} xStoreID Store ID
28748
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28749
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28750
+ * @param {*} [options] Override http request option.
28751
+ * @throws {RequiredError}
28752
+ * @memberof StoresApi
28753
+ */
28754
+ adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options) {
28755
+ return StoresApiFp(this.configuration).adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
28756
+ }
28757
+ /**
28758
+ * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
28759
+ * @summary Get Time Series Data for Store Metrics
28760
+ * @param {string} xStoreID Store ID
28761
+ * @param {string} metric Metric type: records, search_response_time, operations, search_requests
28762
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28763
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28764
+ * @param {*} [options] Override http request option.
28765
+ * @throws {RequiredError}
28766
+ * @memberof StoresApi
28767
+ */
28768
+ adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options) {
28769
+ return StoresApiFp(this.configuration).adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
28770
+ }
28346
28771
  /**
28347
28772
  * Retrieve detailed information for a specific API usage event including headers, request body, and response body
28348
28773
  * @summary Get Specific API Usage Event
@@ -28999,6 +29424,308 @@ export class SubscriptionsApi extends BaseAPI {
28999
29424
  return SubscriptionsApiFp(this.configuration).miscSubscriptionsSubscriptionIDGet(subscriptionID, options).then((request) => request(this.axios, this.basePath));
29000
29425
  }
29001
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
+ }
29002
29729
  /**
29003
29730
  * UserApi - axios parameter creator
29004
29731
  * @export