@seekora-ai/admin-api 1.1.93 → 1.1.95

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
@@ -68,6 +68,15 @@ export const DataTypesBillingAlertRequestThresholdUnitEnum = {
68
68
  Days: 'days',
69
69
  Percentage: 'percentage'
70
70
  };
71
+ export const DataTypesCreateCustomPlanRequestBillingTypeEnum = {
72
+ Monthly: 'monthly',
73
+ Annual: 'annual',
74
+ OneTime: 'one-time'
75
+ };
76
+ export const DataTypesCreateCustomPlanRequestCurrencyEnum = {
77
+ Usd: 'USD',
78
+ Inr: 'INR'
79
+ };
71
80
  export const DataTypesCreateCustomWordListRequestTypeEnum = {
72
81
  Stopwords: 'stopwords',
73
82
  Synonyms: 'synonyms'
@@ -135,6 +144,16 @@ export const DataTypesGrantStoreAccessRequestAccessLevelEnum = {
135
144
  Write: 'write',
136
145
  Admin: 'admin'
137
146
  };
147
+ export const DataTypesMarkPaidRequestCurrencyEnum = {
148
+ Usd: 'USD',
149
+ Inr: 'INR'
150
+ };
151
+ export const DataTypesMarkPaidRequestPaymentMethodEnum = {
152
+ WireTransfer: 'wire_transfer',
153
+ BankTransfer: 'bank_transfer',
154
+ Check: 'check',
155
+ Other: 'other'
156
+ };
138
157
  /**
139
158
  *
140
159
  * @export
@@ -13427,6 +13446,909 @@ export class AutomatedRefundManagementApi extends BaseAPI {
13427
13446
  return AutomatedRefundManagementApiFp(this.configuration).refundAutomatedProcessPost(refundRefundPreviewRequestDto, options).then((request) => request(this.axios, this.basePath));
13428
13447
  }
13429
13448
  }
13449
+ /**
13450
+ * BackofficeCustomPlansApi - axios parameter creator
13451
+ * @export
13452
+ */
13453
+ export const BackofficeCustomPlansApiAxiosParamCreator = function (configuration) {
13454
+ return {
13455
+ /**
13456
+ * Returns a paginated, filterable list of custom enterprise plans
13457
+ * @summary List custom plans
13458
+ * @param {number} [page] Page number
13459
+ * @param {number} [pageSize] Page size (max 100)
13460
+ * @param {number} [orgId] Filter by organization ID
13461
+ * @param {string} [status] Filter by status (active, inactive, all)
13462
+ * @param {string} [search] Search by plan name or org name
13463
+ * @param {*} [options] Override http request option.
13464
+ * @throws {RequiredError}
13465
+ */
13466
+ backofficePlansCustomGet: (page_1, pageSize_1, orgId_1, status_1, search_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, orgId_1, status_1, search_1, ...args_1], void 0, function* (page, pageSize, orgId, status, search, options = {}) {
13467
+ const localVarPath = `/backoffice/plans/custom`;
13468
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13469
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13470
+ let baseOptions;
13471
+ if (configuration) {
13472
+ baseOptions = configuration.baseOptions;
13473
+ }
13474
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13475
+ const localVarHeaderParameter = {};
13476
+ const localVarQueryParameter = {};
13477
+ // authentication ApiKeyAuth required
13478
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
13479
+ if (page !== undefined) {
13480
+ localVarQueryParameter['page'] = page;
13481
+ }
13482
+ if (pageSize !== undefined) {
13483
+ localVarQueryParameter['page_size'] = pageSize;
13484
+ }
13485
+ if (orgId !== undefined) {
13486
+ localVarQueryParameter['org_id'] = orgId;
13487
+ }
13488
+ if (status !== undefined) {
13489
+ localVarQueryParameter['status'] = status;
13490
+ }
13491
+ if (search !== undefined) {
13492
+ localVarQueryParameter['search'] = search;
13493
+ }
13494
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13496
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13497
+ return {
13498
+ url: toPathString(localVarUrlObj),
13499
+ options: localVarRequestOptions,
13500
+ };
13501
+ }),
13502
+ /**
13503
+ * Deactivates a custom enterprise plan by setting is_active to false
13504
+ * @summary Soft-delete a custom plan
13505
+ * @param {number} id Custom plan ID
13506
+ * @param {*} [options] Override http request option.
13507
+ * @throws {RequiredError}
13508
+ */
13509
+ backofficePlansCustomIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
13510
+ // verify required parameter 'id' is not null or undefined
13511
+ assertParamExists('backofficePlansCustomIdDelete', 'id', id);
13512
+ const localVarPath = `/backoffice/plans/custom/{id}`
13513
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13516
+ let baseOptions;
13517
+ if (configuration) {
13518
+ baseOptions = configuration.baseOptions;
13519
+ }
13520
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
13521
+ const localVarHeaderParameter = {};
13522
+ const localVarQueryParameter = {};
13523
+ // authentication ApiKeyAuth required
13524
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
13525
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13527
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13528
+ return {
13529
+ url: toPathString(localVarUrlObj),
13530
+ options: localVarRequestOptions,
13531
+ };
13532
+ }),
13533
+ /**
13534
+ * Retrieves a single custom enterprise plan by its ID
13535
+ * @summary Get a custom plan by ID
13536
+ * @param {number} id Custom plan ID
13537
+ * @param {*} [options] Override http request option.
13538
+ * @throws {RequiredError}
13539
+ */
13540
+ backofficePlansCustomIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
13541
+ // verify required parameter 'id' is not null or undefined
13542
+ assertParamExists('backofficePlansCustomIdGet', 'id', id);
13543
+ const localVarPath = `/backoffice/plans/custom/{id}`
13544
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13546
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13547
+ let baseOptions;
13548
+ if (configuration) {
13549
+ baseOptions = configuration.baseOptions;
13550
+ }
13551
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13552
+ const localVarHeaderParameter = {};
13553
+ const localVarQueryParameter = {};
13554
+ // authentication ApiKeyAuth required
13555
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
13556
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13557
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13558
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13559
+ return {
13560
+ url: toPathString(localVarUrlObj),
13561
+ options: localVarRequestOptions,
13562
+ };
13563
+ }),
13564
+ /**
13565
+ * Records a manual/offline payment for a custom plan, creates subscription and allocates credits
13566
+ * @summary Mark a custom plan as paid (offline payment)
13567
+ * @param {number} id Custom plan ID
13568
+ * @param {DataTypesMarkPaidRequest} dataTypesMarkPaidRequest Offline payment details
13569
+ * @param {*} [options] Override http request option.
13570
+ * @throws {RequiredError}
13571
+ */
13572
+ backofficePlansCustomIdMarkPaidPost: (id_1, dataTypesMarkPaidRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesMarkPaidRequest_1, ...args_1], void 0, function* (id, dataTypesMarkPaidRequest, options = {}) {
13573
+ // verify required parameter 'id' is not null or undefined
13574
+ assertParamExists('backofficePlansCustomIdMarkPaidPost', 'id', id);
13575
+ // verify required parameter 'dataTypesMarkPaidRequest' is not null or undefined
13576
+ assertParamExists('backofficePlansCustomIdMarkPaidPost', 'dataTypesMarkPaidRequest', dataTypesMarkPaidRequest);
13577
+ const localVarPath = `/backoffice/plans/custom/{id}/mark-paid`
13578
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13581
+ let baseOptions;
13582
+ if (configuration) {
13583
+ baseOptions = configuration.baseOptions;
13584
+ }
13585
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13586
+ const localVarHeaderParameter = {};
13587
+ const localVarQueryParameter = {};
13588
+ // authentication ApiKeyAuth required
13589
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
13590
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13591
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13592
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13593
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13594
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesMarkPaidRequest, localVarRequestOptions, configuration);
13595
+ return {
13596
+ url: toPathString(localVarUrlObj),
13597
+ options: localVarRequestOptions,
13598
+ };
13599
+ }),
13600
+ /**
13601
+ * Sends a notification to the organization regarding their custom plan
13602
+ * @summary Send notification to org about custom plan
13603
+ * @param {number} id Custom plan ID
13604
+ * @param {DataTypesNotifyOrgRequest} [dataTypesNotifyOrgRequest] Notification options
13605
+ * @param {*} [options] Override http request option.
13606
+ * @throws {RequiredError}
13607
+ */
13608
+ backofficePlansCustomIdNotifyPost: (id_1, dataTypesNotifyOrgRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesNotifyOrgRequest_1, ...args_1], void 0, function* (id, dataTypesNotifyOrgRequest, options = {}) {
13609
+ // verify required parameter 'id' is not null or undefined
13610
+ assertParamExists('backofficePlansCustomIdNotifyPost', 'id', id);
13611
+ const localVarPath = `/backoffice/plans/custom/{id}/notify`
13612
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13613
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13614
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13615
+ let baseOptions;
13616
+ if (configuration) {
13617
+ baseOptions = configuration.baseOptions;
13618
+ }
13619
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13620
+ const localVarHeaderParameter = {};
13621
+ const localVarQueryParameter = {};
13622
+ // authentication ApiKeyAuth required
13623
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
13624
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13626
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13627
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13628
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesNotifyOrgRequest, localVarRequestOptions, configuration);
13629
+ return {
13630
+ url: toPathString(localVarUrlObj),
13631
+ options: localVarRequestOptions,
13632
+ };
13633
+ }),
13634
+ /**
13635
+ * Creates a payment link via the specified gateway for a custom plan
13636
+ * @summary Generate a payment link for a custom plan
13637
+ * @param {number} id Custom plan ID
13638
+ * @param {DataTypesGeneratePaymentLinkRequest} dataTypesGeneratePaymentLinkRequest Payment link options
13639
+ * @param {*} [options] Override http request option.
13640
+ * @throws {RequiredError}
13641
+ */
13642
+ backofficePlansCustomIdPaymentLinkPost: (id_1, dataTypesGeneratePaymentLinkRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesGeneratePaymentLinkRequest_1, ...args_1], void 0, function* (id, dataTypesGeneratePaymentLinkRequest, options = {}) {
13643
+ // verify required parameter 'id' is not null or undefined
13644
+ assertParamExists('backofficePlansCustomIdPaymentLinkPost', 'id', id);
13645
+ // verify required parameter 'dataTypesGeneratePaymentLinkRequest' is not null or undefined
13646
+ assertParamExists('backofficePlansCustomIdPaymentLinkPost', 'dataTypesGeneratePaymentLinkRequest', dataTypesGeneratePaymentLinkRequest);
13647
+ const localVarPath = `/backoffice/plans/custom/{id}/payment-link`
13648
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13649
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13650
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13651
+ let baseOptions;
13652
+ if (configuration) {
13653
+ baseOptions = configuration.baseOptions;
13654
+ }
13655
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13656
+ const localVarHeaderParameter = {};
13657
+ const localVarQueryParameter = {};
13658
+ // authentication ApiKeyAuth required
13659
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
13660
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13661
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13662
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13663
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13664
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesGeneratePaymentLinkRequest, localVarRequestOptions, configuration);
13665
+ return {
13666
+ url: toPathString(localVarUrlObj),
13667
+ options: localVarRequestOptions,
13668
+ };
13669
+ }),
13670
+ /**
13671
+ * Updates the specified fields of a custom enterprise plan
13672
+ * @summary Update a custom plan
13673
+ * @param {number} id Custom plan ID
13674
+ * @param {DataTypesUpdateCustomPlanRequest} dataTypesUpdateCustomPlanRequest Fields to update
13675
+ * @param {*} [options] Override http request option.
13676
+ * @throws {RequiredError}
13677
+ */
13678
+ backofficePlansCustomIdPut: (id_1, dataTypesUpdateCustomPlanRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesUpdateCustomPlanRequest_1, ...args_1], void 0, function* (id, dataTypesUpdateCustomPlanRequest, options = {}) {
13679
+ // verify required parameter 'id' is not null or undefined
13680
+ assertParamExists('backofficePlansCustomIdPut', 'id', id);
13681
+ // verify required parameter 'dataTypesUpdateCustomPlanRequest' is not null or undefined
13682
+ assertParamExists('backofficePlansCustomIdPut', 'dataTypesUpdateCustomPlanRequest', dataTypesUpdateCustomPlanRequest);
13683
+ const localVarPath = `/backoffice/plans/custom/{id}`
13684
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13685
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13686
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13687
+ let baseOptions;
13688
+ if (configuration) {
13689
+ baseOptions = configuration.baseOptions;
13690
+ }
13691
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
13692
+ const localVarHeaderParameter = {};
13693
+ const localVarQueryParameter = {};
13694
+ // authentication ApiKeyAuth required
13695
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
13696
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13697
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13698
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13699
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13700
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateCustomPlanRequest, localVarRequestOptions, configuration);
13701
+ return {
13702
+ url: toPathString(localVarUrlObj),
13703
+ options: localVarRequestOptions,
13704
+ };
13705
+ }),
13706
+ /**
13707
+ * Creates a new custom enterprise plan for a specific organization
13708
+ * @summary Create a custom enterprise plan
13709
+ * @param {DataTypesCreateCustomPlanRequest} dataTypesCreateCustomPlanRequest Custom plan details
13710
+ * @param {*} [options] Override http request option.
13711
+ * @throws {RequiredError}
13712
+ */
13713
+ backofficePlansCustomPost: (dataTypesCreateCustomPlanRequest_1, ...args_1) => __awaiter(this, [dataTypesCreateCustomPlanRequest_1, ...args_1], void 0, function* (dataTypesCreateCustomPlanRequest, options = {}) {
13714
+ // verify required parameter 'dataTypesCreateCustomPlanRequest' is not null or undefined
13715
+ assertParamExists('backofficePlansCustomPost', 'dataTypesCreateCustomPlanRequest', dataTypesCreateCustomPlanRequest);
13716
+ const localVarPath = `/backoffice/plans/custom`;
13717
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13718
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13719
+ let baseOptions;
13720
+ if (configuration) {
13721
+ baseOptions = configuration.baseOptions;
13722
+ }
13723
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13724
+ const localVarHeaderParameter = {};
13725
+ const localVarQueryParameter = {};
13726
+ // authentication ApiKeyAuth required
13727
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
13728
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13729
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13730
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13731
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13732
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateCustomPlanRequest, localVarRequestOptions, configuration);
13733
+ return {
13734
+ url: toPathString(localVarUrlObj),
13735
+ options: localVarRequestOptions,
13736
+ };
13737
+ }),
13738
+ };
13739
+ };
13740
+ /**
13741
+ * BackofficeCustomPlansApi - functional programming interface
13742
+ * @export
13743
+ */
13744
+ export const BackofficeCustomPlansApiFp = function (configuration) {
13745
+ const localVarAxiosParamCreator = BackofficeCustomPlansApiAxiosParamCreator(configuration);
13746
+ return {
13747
+ /**
13748
+ * Returns a paginated, filterable list of custom enterprise plans
13749
+ * @summary List custom plans
13750
+ * @param {number} [page] Page number
13751
+ * @param {number} [pageSize] Page size (max 100)
13752
+ * @param {number} [orgId] Filter by organization ID
13753
+ * @param {string} [status] Filter by status (active, inactive, all)
13754
+ * @param {string} [search] Search by plan name or org name
13755
+ * @param {*} [options] Override http request option.
13756
+ * @throws {RequiredError}
13757
+ */
13758
+ backofficePlansCustomGet(page, pageSize, orgId, status, search, options) {
13759
+ return __awaiter(this, void 0, void 0, function* () {
13760
+ var _a, _b, _c;
13761
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePlansCustomGet(page, pageSize, orgId, status, search, options);
13762
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13763
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13764
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13765
+ });
13766
+ },
13767
+ /**
13768
+ * Deactivates a custom enterprise plan by setting is_active to false
13769
+ * @summary Soft-delete a custom plan
13770
+ * @param {number} id Custom plan ID
13771
+ * @param {*} [options] Override http request option.
13772
+ * @throws {RequiredError}
13773
+ */
13774
+ backofficePlansCustomIdDelete(id, options) {
13775
+ return __awaiter(this, void 0, void 0, function* () {
13776
+ var _a, _b, _c;
13777
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePlansCustomIdDelete(id, options);
13778
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13779
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13780
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13781
+ });
13782
+ },
13783
+ /**
13784
+ * Retrieves a single custom enterprise plan by its ID
13785
+ * @summary Get a custom plan by ID
13786
+ * @param {number} id Custom plan ID
13787
+ * @param {*} [options] Override http request option.
13788
+ * @throws {RequiredError}
13789
+ */
13790
+ backofficePlansCustomIdGet(id, options) {
13791
+ return __awaiter(this, void 0, void 0, function* () {
13792
+ var _a, _b, _c;
13793
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePlansCustomIdGet(id, options);
13794
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13795
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13796
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13797
+ });
13798
+ },
13799
+ /**
13800
+ * Records a manual/offline payment for a custom plan, creates subscription and allocates credits
13801
+ * @summary Mark a custom plan as paid (offline payment)
13802
+ * @param {number} id Custom plan ID
13803
+ * @param {DataTypesMarkPaidRequest} dataTypesMarkPaidRequest Offline payment details
13804
+ * @param {*} [options] Override http request option.
13805
+ * @throws {RequiredError}
13806
+ */
13807
+ backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options) {
13808
+ return __awaiter(this, void 0, void 0, function* () {
13809
+ var _a, _b, _c;
13810
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options);
13811
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13812
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdMarkPaidPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13813
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13814
+ });
13815
+ },
13816
+ /**
13817
+ * Sends a notification to the organization regarding their custom plan
13818
+ * @summary Send notification to org about custom plan
13819
+ * @param {number} id Custom plan ID
13820
+ * @param {DataTypesNotifyOrgRequest} [dataTypesNotifyOrgRequest] Notification options
13821
+ * @param {*} [options] Override http request option.
13822
+ * @throws {RequiredError}
13823
+ */
13824
+ backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options) {
13825
+ return __awaiter(this, void 0, void 0, function* () {
13826
+ var _a, _b, _c;
13827
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options);
13828
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13829
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdNotifyPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13830
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13831
+ });
13832
+ },
13833
+ /**
13834
+ * Creates a payment link via the specified gateway for a custom plan
13835
+ * @summary Generate a payment link for a custom plan
13836
+ * @param {number} id Custom plan ID
13837
+ * @param {DataTypesGeneratePaymentLinkRequest} dataTypesGeneratePaymentLinkRequest Payment link options
13838
+ * @param {*} [options] Override http request option.
13839
+ * @throws {RequiredError}
13840
+ */
13841
+ backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options) {
13842
+ return __awaiter(this, void 0, void 0, function* () {
13843
+ var _a, _b, _c;
13844
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options);
13845
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13846
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdPaymentLinkPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13847
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13848
+ });
13849
+ },
13850
+ /**
13851
+ * Updates the specified fields of a custom enterprise plan
13852
+ * @summary Update a custom plan
13853
+ * @param {number} id Custom plan ID
13854
+ * @param {DataTypesUpdateCustomPlanRequest} dataTypesUpdateCustomPlanRequest Fields to update
13855
+ * @param {*} [options] Override http request option.
13856
+ * @throws {RequiredError}
13857
+ */
13858
+ backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options) {
13859
+ return __awaiter(this, void 0, void 0, function* () {
13860
+ var _a, _b, _c;
13861
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options);
13862
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13863
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13864
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13865
+ });
13866
+ },
13867
+ /**
13868
+ * Creates a new custom enterprise plan for a specific organization
13869
+ * @summary Create a custom enterprise plan
13870
+ * @param {DataTypesCreateCustomPlanRequest} dataTypesCreateCustomPlanRequest Custom plan details
13871
+ * @param {*} [options] Override http request option.
13872
+ * @throws {RequiredError}
13873
+ */
13874
+ backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options) {
13875
+ return __awaiter(this, void 0, void 0, function* () {
13876
+ var _a, _b, _c;
13877
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options);
13878
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13879
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13880
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13881
+ });
13882
+ },
13883
+ };
13884
+ };
13885
+ /**
13886
+ * BackofficeCustomPlansApi - factory interface
13887
+ * @export
13888
+ */
13889
+ export const BackofficeCustomPlansApiFactory = function (configuration, basePath, axios) {
13890
+ const localVarFp = BackofficeCustomPlansApiFp(configuration);
13891
+ return {
13892
+ /**
13893
+ * Returns a paginated, filterable list of custom enterprise plans
13894
+ * @summary List custom plans
13895
+ * @param {number} [page] Page number
13896
+ * @param {number} [pageSize] Page size (max 100)
13897
+ * @param {number} [orgId] Filter by organization ID
13898
+ * @param {string} [status] Filter by status (active, inactive, all)
13899
+ * @param {string} [search] Search by plan name or org name
13900
+ * @param {*} [options] Override http request option.
13901
+ * @throws {RequiredError}
13902
+ */
13903
+ backofficePlansCustomGet(page, pageSize, orgId, status, search, options) {
13904
+ return localVarFp.backofficePlansCustomGet(page, pageSize, orgId, status, search, options).then((request) => request(axios, basePath));
13905
+ },
13906
+ /**
13907
+ * Deactivates a custom enterprise plan by setting is_active to false
13908
+ * @summary Soft-delete a custom plan
13909
+ * @param {number} id Custom plan ID
13910
+ * @param {*} [options] Override http request option.
13911
+ * @throws {RequiredError}
13912
+ */
13913
+ backofficePlansCustomIdDelete(id, options) {
13914
+ return localVarFp.backofficePlansCustomIdDelete(id, options).then((request) => request(axios, basePath));
13915
+ },
13916
+ /**
13917
+ * Retrieves a single custom enterprise plan by its ID
13918
+ * @summary Get a custom plan by ID
13919
+ * @param {number} id Custom plan ID
13920
+ * @param {*} [options] Override http request option.
13921
+ * @throws {RequiredError}
13922
+ */
13923
+ backofficePlansCustomIdGet(id, options) {
13924
+ return localVarFp.backofficePlansCustomIdGet(id, options).then((request) => request(axios, basePath));
13925
+ },
13926
+ /**
13927
+ * Records a manual/offline payment for a custom plan, creates subscription and allocates credits
13928
+ * @summary Mark a custom plan as paid (offline payment)
13929
+ * @param {number} id Custom plan ID
13930
+ * @param {DataTypesMarkPaidRequest} dataTypesMarkPaidRequest Offline payment details
13931
+ * @param {*} [options] Override http request option.
13932
+ * @throws {RequiredError}
13933
+ */
13934
+ backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options) {
13935
+ return localVarFp.backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options).then((request) => request(axios, basePath));
13936
+ },
13937
+ /**
13938
+ * Sends a notification to the organization regarding their custom plan
13939
+ * @summary Send notification to org about custom plan
13940
+ * @param {number} id Custom plan ID
13941
+ * @param {DataTypesNotifyOrgRequest} [dataTypesNotifyOrgRequest] Notification options
13942
+ * @param {*} [options] Override http request option.
13943
+ * @throws {RequiredError}
13944
+ */
13945
+ backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options) {
13946
+ return localVarFp.backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options).then((request) => request(axios, basePath));
13947
+ },
13948
+ /**
13949
+ * Creates a payment link via the specified gateway for a custom plan
13950
+ * @summary Generate a payment link for a custom plan
13951
+ * @param {number} id Custom plan ID
13952
+ * @param {DataTypesGeneratePaymentLinkRequest} dataTypesGeneratePaymentLinkRequest Payment link options
13953
+ * @param {*} [options] Override http request option.
13954
+ * @throws {RequiredError}
13955
+ */
13956
+ backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options) {
13957
+ return localVarFp.backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options).then((request) => request(axios, basePath));
13958
+ },
13959
+ /**
13960
+ * Updates the specified fields of a custom enterprise plan
13961
+ * @summary Update a custom plan
13962
+ * @param {number} id Custom plan ID
13963
+ * @param {DataTypesUpdateCustomPlanRequest} dataTypesUpdateCustomPlanRequest Fields to update
13964
+ * @param {*} [options] Override http request option.
13965
+ * @throws {RequiredError}
13966
+ */
13967
+ backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options) {
13968
+ return localVarFp.backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options).then((request) => request(axios, basePath));
13969
+ },
13970
+ /**
13971
+ * Creates a new custom enterprise plan for a specific organization
13972
+ * @summary Create a custom enterprise plan
13973
+ * @param {DataTypesCreateCustomPlanRequest} dataTypesCreateCustomPlanRequest Custom plan details
13974
+ * @param {*} [options] Override http request option.
13975
+ * @throws {RequiredError}
13976
+ */
13977
+ backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options) {
13978
+ return localVarFp.backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options).then((request) => request(axios, basePath));
13979
+ },
13980
+ };
13981
+ };
13982
+ /**
13983
+ * BackofficeCustomPlansApi - object-oriented interface
13984
+ * @export
13985
+ * @class BackofficeCustomPlansApi
13986
+ * @extends {BaseAPI}
13987
+ */
13988
+ export class BackofficeCustomPlansApi extends BaseAPI {
13989
+ /**
13990
+ * Returns a paginated, filterable list of custom enterprise plans
13991
+ * @summary List custom plans
13992
+ * @param {number} [page] Page number
13993
+ * @param {number} [pageSize] Page size (max 100)
13994
+ * @param {number} [orgId] Filter by organization ID
13995
+ * @param {string} [status] Filter by status (active, inactive, all)
13996
+ * @param {string} [search] Search by plan name or org name
13997
+ * @param {*} [options] Override http request option.
13998
+ * @throws {RequiredError}
13999
+ * @memberof BackofficeCustomPlansApi
14000
+ */
14001
+ backofficePlansCustomGet(page, pageSize, orgId, status, search, options) {
14002
+ return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomGet(page, pageSize, orgId, status, search, options).then((request) => request(this.axios, this.basePath));
14003
+ }
14004
+ /**
14005
+ * Deactivates a custom enterprise plan by setting is_active to false
14006
+ * @summary Soft-delete a custom plan
14007
+ * @param {number} id Custom plan ID
14008
+ * @param {*} [options] Override http request option.
14009
+ * @throws {RequiredError}
14010
+ * @memberof BackofficeCustomPlansApi
14011
+ */
14012
+ backofficePlansCustomIdDelete(id, options) {
14013
+ return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdDelete(id, options).then((request) => request(this.axios, this.basePath));
14014
+ }
14015
+ /**
14016
+ * Retrieves a single custom enterprise plan by its ID
14017
+ * @summary Get a custom plan by ID
14018
+ * @param {number} id Custom plan ID
14019
+ * @param {*} [options] Override http request option.
14020
+ * @throws {RequiredError}
14021
+ * @memberof BackofficeCustomPlansApi
14022
+ */
14023
+ backofficePlansCustomIdGet(id, options) {
14024
+ return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdGet(id, options).then((request) => request(this.axios, this.basePath));
14025
+ }
14026
+ /**
14027
+ * Records a manual/offline payment for a custom plan, creates subscription and allocates credits
14028
+ * @summary Mark a custom plan as paid (offline payment)
14029
+ * @param {number} id Custom plan ID
14030
+ * @param {DataTypesMarkPaidRequest} dataTypesMarkPaidRequest Offline payment details
14031
+ * @param {*} [options] Override http request option.
14032
+ * @throws {RequiredError}
14033
+ * @memberof BackofficeCustomPlansApi
14034
+ */
14035
+ backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options) {
14036
+ return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options).then((request) => request(this.axios, this.basePath));
14037
+ }
14038
+ /**
14039
+ * Sends a notification to the organization regarding their custom plan
14040
+ * @summary Send notification to org about custom plan
14041
+ * @param {number} id Custom plan ID
14042
+ * @param {DataTypesNotifyOrgRequest} [dataTypesNotifyOrgRequest] Notification options
14043
+ * @param {*} [options] Override http request option.
14044
+ * @throws {RequiredError}
14045
+ * @memberof BackofficeCustomPlansApi
14046
+ */
14047
+ backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options) {
14048
+ return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options).then((request) => request(this.axios, this.basePath));
14049
+ }
14050
+ /**
14051
+ * Creates a payment link via the specified gateway for a custom plan
14052
+ * @summary Generate a payment link for a custom plan
14053
+ * @param {number} id Custom plan ID
14054
+ * @param {DataTypesGeneratePaymentLinkRequest} dataTypesGeneratePaymentLinkRequest Payment link options
14055
+ * @param {*} [options] Override http request option.
14056
+ * @throws {RequiredError}
14057
+ * @memberof BackofficeCustomPlansApi
14058
+ */
14059
+ backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options) {
14060
+ return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options).then((request) => request(this.axios, this.basePath));
14061
+ }
14062
+ /**
14063
+ * Updates the specified fields of a custom enterprise plan
14064
+ * @summary Update a custom plan
14065
+ * @param {number} id Custom plan ID
14066
+ * @param {DataTypesUpdateCustomPlanRequest} dataTypesUpdateCustomPlanRequest Fields to update
14067
+ * @param {*} [options] Override http request option.
14068
+ * @throws {RequiredError}
14069
+ * @memberof BackofficeCustomPlansApi
14070
+ */
14071
+ backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options) {
14072
+ return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options).then((request) => request(this.axios, this.basePath));
14073
+ }
14074
+ /**
14075
+ * Creates a new custom enterprise plan for a specific organization
14076
+ * @summary Create a custom enterprise plan
14077
+ * @param {DataTypesCreateCustomPlanRequest} dataTypesCreateCustomPlanRequest Custom plan details
14078
+ * @param {*} [options] Override http request option.
14079
+ * @throws {RequiredError}
14080
+ * @memberof BackofficeCustomPlansApi
14081
+ */
14082
+ backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options) {
14083
+ return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options).then((request) => request(this.axios, this.basePath));
14084
+ }
14085
+ }
14086
+ /**
14087
+ * BackofficePaymentLinksApi - axios parameter creator
14088
+ * @export
14089
+ */
14090
+ export const BackofficePaymentLinksApiAxiosParamCreator = function (configuration) {
14091
+ return {
14092
+ /**
14093
+ * Returns a paginated, filterable list of payment links
14094
+ * @summary List payment links
14095
+ * @param {number} [page] Page number
14096
+ * @param {number} [pageSize] Page size (max 100)
14097
+ * @param {number} [orgId] Filter by organization ID
14098
+ * @param {string} [status] Filter by status (created, paid, expired, cancelled, all)
14099
+ * @param {number} [planId] Filter by plan ID
14100
+ * @param {*} [options] Override http request option.
14101
+ * @throws {RequiredError}
14102
+ */
14103
+ backofficePaymentLinksGet: (page_1, pageSize_1, orgId_1, status_1, planId_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, orgId_1, status_1, planId_1, ...args_1], void 0, function* (page, pageSize, orgId, status, planId, options = {}) {
14104
+ const localVarPath = `/backoffice/payment-links`;
14105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14107
+ let baseOptions;
14108
+ if (configuration) {
14109
+ baseOptions = configuration.baseOptions;
14110
+ }
14111
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14112
+ const localVarHeaderParameter = {};
14113
+ const localVarQueryParameter = {};
14114
+ // authentication ApiKeyAuth required
14115
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
14116
+ if (page !== undefined) {
14117
+ localVarQueryParameter['page'] = page;
14118
+ }
14119
+ if (pageSize !== undefined) {
14120
+ localVarQueryParameter['page_size'] = pageSize;
14121
+ }
14122
+ if (orgId !== undefined) {
14123
+ localVarQueryParameter['org_id'] = orgId;
14124
+ }
14125
+ if (status !== undefined) {
14126
+ localVarQueryParameter['status'] = status;
14127
+ }
14128
+ if (planId !== undefined) {
14129
+ localVarQueryParameter['plan_id'] = planId;
14130
+ }
14131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14133
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14134
+ return {
14135
+ url: toPathString(localVarUrlObj),
14136
+ options: localVarRequestOptions,
14137
+ };
14138
+ }),
14139
+ /**
14140
+ * Cancels a payment link that is in \'created\' status
14141
+ * @summary Cancel a payment link
14142
+ * @param {number} id Payment link ID
14143
+ * @param {*} [options] Override http request option.
14144
+ * @throws {RequiredError}
14145
+ */
14146
+ backofficePaymentLinksIdCancelPost: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
14147
+ // verify required parameter 'id' is not null or undefined
14148
+ assertParamExists('backofficePaymentLinksIdCancelPost', 'id', id);
14149
+ const localVarPath = `/backoffice/payment-links/{id}/cancel`
14150
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14153
+ let baseOptions;
14154
+ if (configuration) {
14155
+ baseOptions = configuration.baseOptions;
14156
+ }
14157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14158
+ const localVarHeaderParameter = {};
14159
+ const localVarQueryParameter = {};
14160
+ // authentication ApiKeyAuth required
14161
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
14162
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14164
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14165
+ return {
14166
+ url: toPathString(localVarUrlObj),
14167
+ options: localVarRequestOptions,
14168
+ };
14169
+ }),
14170
+ /**
14171
+ * Retrieves a single payment link by its ID
14172
+ * @summary Get a payment link by ID
14173
+ * @param {number} id Payment link ID
14174
+ * @param {*} [options] Override http request option.
14175
+ * @throws {RequiredError}
14176
+ */
14177
+ backofficePaymentLinksIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
14178
+ // verify required parameter 'id' is not null or undefined
14179
+ assertParamExists('backofficePaymentLinksIdGet', 'id', id);
14180
+ const localVarPath = `/backoffice/payment-links/{id}`
14181
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14183
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14184
+ let baseOptions;
14185
+ if (configuration) {
14186
+ baseOptions = configuration.baseOptions;
14187
+ }
14188
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14189
+ const localVarHeaderParameter = {};
14190
+ const localVarQueryParameter = {};
14191
+ // authentication ApiKeyAuth required
14192
+ yield setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration);
14193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14195
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14196
+ return {
14197
+ url: toPathString(localVarUrlObj),
14198
+ options: localVarRequestOptions,
14199
+ };
14200
+ }),
14201
+ };
14202
+ };
14203
+ /**
14204
+ * BackofficePaymentLinksApi - functional programming interface
14205
+ * @export
14206
+ */
14207
+ export const BackofficePaymentLinksApiFp = function (configuration) {
14208
+ const localVarAxiosParamCreator = BackofficePaymentLinksApiAxiosParamCreator(configuration);
14209
+ return {
14210
+ /**
14211
+ * Returns a paginated, filterable list of payment links
14212
+ * @summary List payment links
14213
+ * @param {number} [page] Page number
14214
+ * @param {number} [pageSize] Page size (max 100)
14215
+ * @param {number} [orgId] Filter by organization ID
14216
+ * @param {string} [status] Filter by status (created, paid, expired, cancelled, all)
14217
+ * @param {number} [planId] Filter by plan ID
14218
+ * @param {*} [options] Override http request option.
14219
+ * @throws {RequiredError}
14220
+ */
14221
+ backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options) {
14222
+ return __awaiter(this, void 0, void 0, function* () {
14223
+ var _a, _b, _c;
14224
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options);
14225
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14226
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficePaymentLinksApi.backofficePaymentLinksGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14227
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14228
+ });
14229
+ },
14230
+ /**
14231
+ * Cancels a payment link that is in \'created\' status
14232
+ * @summary Cancel a payment link
14233
+ * @param {number} id Payment link ID
14234
+ * @param {*} [options] Override http request option.
14235
+ * @throws {RequiredError}
14236
+ */
14237
+ backofficePaymentLinksIdCancelPost(id, options) {
14238
+ return __awaiter(this, void 0, void 0, function* () {
14239
+ var _a, _b, _c;
14240
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePaymentLinksIdCancelPost(id, options);
14241
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14242
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficePaymentLinksApi.backofficePaymentLinksIdCancelPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14243
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14244
+ });
14245
+ },
14246
+ /**
14247
+ * Retrieves a single payment link by its ID
14248
+ * @summary Get a payment link by ID
14249
+ * @param {number} id Payment link ID
14250
+ * @param {*} [options] Override http request option.
14251
+ * @throws {RequiredError}
14252
+ */
14253
+ backofficePaymentLinksIdGet(id, options) {
14254
+ return __awaiter(this, void 0, void 0, function* () {
14255
+ var _a, _b, _c;
14256
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backofficePaymentLinksIdGet(id, options);
14257
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14258
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BackofficePaymentLinksApi.backofficePaymentLinksIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14259
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14260
+ });
14261
+ },
14262
+ };
14263
+ };
14264
+ /**
14265
+ * BackofficePaymentLinksApi - factory interface
14266
+ * @export
14267
+ */
14268
+ export const BackofficePaymentLinksApiFactory = function (configuration, basePath, axios) {
14269
+ const localVarFp = BackofficePaymentLinksApiFp(configuration);
14270
+ return {
14271
+ /**
14272
+ * Returns a paginated, filterable list of payment links
14273
+ * @summary List payment links
14274
+ * @param {number} [page] Page number
14275
+ * @param {number} [pageSize] Page size (max 100)
14276
+ * @param {number} [orgId] Filter by organization ID
14277
+ * @param {string} [status] Filter by status (created, paid, expired, cancelled, all)
14278
+ * @param {number} [planId] Filter by plan ID
14279
+ * @param {*} [options] Override http request option.
14280
+ * @throws {RequiredError}
14281
+ */
14282
+ backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options) {
14283
+ return localVarFp.backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options).then((request) => request(axios, basePath));
14284
+ },
14285
+ /**
14286
+ * Cancels a payment link that is in \'created\' status
14287
+ * @summary Cancel a payment link
14288
+ * @param {number} id Payment link ID
14289
+ * @param {*} [options] Override http request option.
14290
+ * @throws {RequiredError}
14291
+ */
14292
+ backofficePaymentLinksIdCancelPost(id, options) {
14293
+ return localVarFp.backofficePaymentLinksIdCancelPost(id, options).then((request) => request(axios, basePath));
14294
+ },
14295
+ /**
14296
+ * Retrieves a single payment link by its ID
14297
+ * @summary Get a payment link by ID
14298
+ * @param {number} id Payment link ID
14299
+ * @param {*} [options] Override http request option.
14300
+ * @throws {RequiredError}
14301
+ */
14302
+ backofficePaymentLinksIdGet(id, options) {
14303
+ return localVarFp.backofficePaymentLinksIdGet(id, options).then((request) => request(axios, basePath));
14304
+ },
14305
+ };
14306
+ };
14307
+ /**
14308
+ * BackofficePaymentLinksApi - object-oriented interface
14309
+ * @export
14310
+ * @class BackofficePaymentLinksApi
14311
+ * @extends {BaseAPI}
14312
+ */
14313
+ export class BackofficePaymentLinksApi extends BaseAPI {
14314
+ /**
14315
+ * Returns a paginated, filterable list of payment links
14316
+ * @summary List payment links
14317
+ * @param {number} [page] Page number
14318
+ * @param {number} [pageSize] Page size (max 100)
14319
+ * @param {number} [orgId] Filter by organization ID
14320
+ * @param {string} [status] Filter by status (created, paid, expired, cancelled, all)
14321
+ * @param {number} [planId] Filter by plan ID
14322
+ * @param {*} [options] Override http request option.
14323
+ * @throws {RequiredError}
14324
+ * @memberof BackofficePaymentLinksApi
14325
+ */
14326
+ backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options) {
14327
+ return BackofficePaymentLinksApiFp(this.configuration).backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options).then((request) => request(this.axios, this.basePath));
14328
+ }
14329
+ /**
14330
+ * Cancels a payment link that is in \'created\' status
14331
+ * @summary Cancel a payment link
14332
+ * @param {number} id Payment link ID
14333
+ * @param {*} [options] Override http request option.
14334
+ * @throws {RequiredError}
14335
+ * @memberof BackofficePaymentLinksApi
14336
+ */
14337
+ backofficePaymentLinksIdCancelPost(id, options) {
14338
+ return BackofficePaymentLinksApiFp(this.configuration).backofficePaymentLinksIdCancelPost(id, options).then((request) => request(this.axios, this.basePath));
14339
+ }
14340
+ /**
14341
+ * Retrieves a single payment link by its ID
14342
+ * @summary Get a payment link by ID
14343
+ * @param {number} id Payment link ID
14344
+ * @param {*} [options] Override http request option.
14345
+ * @throws {RequiredError}
14346
+ * @memberof BackofficePaymentLinksApi
14347
+ */
14348
+ backofficePaymentLinksIdGet(id, options) {
14349
+ return BackofficePaymentLinksApiFp(this.configuration).backofficePaymentLinksIdGet(id, options).then((request) => request(this.axios, this.basePath));
14350
+ }
14351
+ }
13430
14352
  /**
13431
14353
  * BillingDashboardApi - axios parameter creator
13432
14354
  * @export
@@ -34057,8 +34979,8 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
34057
34979
  };
34058
34980
  }),
34059
34981
  /**
34060
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
34061
- * @summary Get available credit plans
34982
+ * Returns all active global credit plans plus any custom plans assigned to the authenticated user\'s organization. Requires JWT authentication.
34983
+ * @summary Get available credit plans (including org-specific custom plans)
34062
34984
  * @param {*} [options] Override http request option.
34063
34985
  * @throws {RequiredError}
34064
34986
  */
@@ -34073,6 +34995,8 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
34073
34995
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
34074
34996
  const localVarHeaderParameter = {};
34075
34997
  const localVarQueryParameter = {};
34998
+ // authentication BearerAuth required
34999
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
34076
35000
  setSearchParams(localVarUrlObj, localVarQueryParameter);
34077
35001
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34078
35002
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -34381,8 +35305,8 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
34381
35305
  };
34382
35306
  }),
34383
35307
  /**
34384
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
34385
- * @summary Get available credit plans
35308
+ * Returns list of all active global credit plans for purchase. Public endpoint, no authentication required.
35309
+ * @summary Get available credit plans (public)
34386
35310
  * @param {*} [options] Override http request option.
34387
35311
  * @throws {RequiredError}
34388
35312
  */
@@ -34493,8 +35417,8 @@ export const PaymentGatewayApiFp = function (configuration) {
34493
35417
  });
34494
35418
  },
34495
35419
  /**
34496
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
34497
- * @summary Get available credit plans
35420
+ * Returns all active global credit plans plus any custom plans assigned to the authenticated user\'s organization. Requires JWT authentication.
35421
+ * @summary Get available credit plans (including org-specific custom plans)
34498
35422
  * @param {*} [options] Override http request option.
34499
35423
  * @throws {RequiredError}
34500
35424
  */
@@ -34648,8 +35572,8 @@ export const PaymentGatewayApiFp = function (configuration) {
34648
35572
  });
34649
35573
  },
34650
35574
  /**
34651
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
34652
- * @summary Get available credit plans
35575
+ * Returns list of all active global credit plans for purchase. Public endpoint, no authentication required.
35576
+ * @summary Get available credit plans (public)
34653
35577
  * @param {*} [options] Override http request option.
34654
35578
  * @throws {RequiredError}
34655
35579
  */
@@ -34715,8 +35639,8 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
34715
35639
  return localVarFp.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
34716
35640
  },
34717
35641
  /**
34718
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
34719
- * @summary Get available credit plans
35642
+ * Returns all active global credit plans plus any custom plans assigned to the authenticated user\'s organization. Requires JWT authentication.
35643
+ * @summary Get available credit plans (including org-specific custom plans)
34720
35644
  * @param {*} [options] Override http request option.
34721
35645
  * @throws {RequiredError}
34722
35646
  */
@@ -34816,8 +35740,8 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
34816
35740
  return localVarFp.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
34817
35741
  },
34818
35742
  /**
34819
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
34820
- * @summary Get available credit plans
35743
+ * Returns list of all active global credit plans for purchase. Public endpoint, no authentication required.
35744
+ * @summary Get available credit plans (public)
34821
35745
  * @param {*} [options] Override http request option.
34822
35746
  * @throws {RequiredError}
34823
35747
  */
@@ -34866,8 +35790,8 @@ export class PaymentGatewayApi extends BaseAPI {
34866
35790
  return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(this.axios, this.basePath));
34867
35791
  }
34868
35792
  /**
34869
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
34870
- * @summary Get available credit plans
35793
+ * Returns all active global credit plans plus any custom plans assigned to the authenticated user\'s organization. Requires JWT authentication.
35794
+ * @summary Get available credit plans (including org-specific custom plans)
34871
35795
  * @param {*} [options] Override http request option.
34872
35796
  * @throws {RequiredError}
34873
35797
  * @memberof PaymentGatewayApi
@@ -34976,8 +35900,8 @@ export class PaymentGatewayApi extends BaseAPI {
34976
35900
  return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(this.axios, this.basePath));
34977
35901
  }
34978
35902
  /**
34979
- * Returns list of all active credit plans for purchase (available both as public and protected endpoint)
34980
- * @summary Get available credit plans
35903
+ * Returns list of all active global credit plans for purchase. Public endpoint, no authentication required.
35904
+ * @summary Get available credit plans (public)
34981
35905
  * @param {*} [options] Override http request option.
34982
35906
  * @throws {RequiredError}
34983
35907
  * @memberof PaymentGatewayApi
@@ -42775,20 +43699,20 @@ export const SearchApiAxiosParamCreator = function (configuration) {
42775
43699
  * @summary Search (POST)
42776
43700
  * @param {string} xStoreid Store ID (from dashboard)
42777
43701
  * @param {string} xStoresecret Store read secret (from dashboard)
42778
- * @param {DataTypesPublicSearchRequest} dataTypesPublicSearchRequest Search query, filters, pagination, and options
43702
+ * @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
42779
43703
  * @param {string} [xUserId] User ID for personalization
42780
43704
  * @param {string} [xAnonId] Anonymous user ID for personalization
42781
43705
  * @param {string} [xSessionId] Session ID for personalization
42782
43706
  * @param {*} [options] Override http request option.
42783
43707
  * @throws {RequiredError}
42784
43708
  */
42785
- v1SearchPost: (xStoreid_1, xStoresecret_1, dataTypesPublicSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, dataTypesPublicSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1], void 0, function* (xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options = {}) {
43709
+ v1SearchPost: (xStoreid_1, xStoresecret_1, dataTypesSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, dataTypesSearchRequest_1, xUserId_1, xAnonId_1, xSessionId_1, ...args_1], void 0, function* (xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options = {}) {
42786
43710
  // verify required parameter 'xStoreid' is not null or undefined
42787
43711
  assertParamExists('v1SearchPost', 'xStoreid', xStoreid);
42788
43712
  // verify required parameter 'xStoresecret' is not null or undefined
42789
43713
  assertParamExists('v1SearchPost', 'xStoresecret', xStoresecret);
42790
- // verify required parameter 'dataTypesPublicSearchRequest' is not null or undefined
42791
- assertParamExists('v1SearchPost', 'dataTypesPublicSearchRequest', dataTypesPublicSearchRequest);
43714
+ // verify required parameter 'dataTypesSearchRequest' is not null or undefined
43715
+ assertParamExists('v1SearchPost', 'dataTypesSearchRequest', dataTypesSearchRequest);
42792
43716
  const localVarPath = `/v1/search`;
42793
43717
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
42794
43718
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -42818,7 +43742,7 @@ export const SearchApiAxiosParamCreator = function (configuration) {
42818
43742
  setSearchParams(localVarUrlObj, localVarQueryParameter);
42819
43743
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42820
43744
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
42821
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesPublicSearchRequest, localVarRequestOptions, configuration);
43745
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSearchRequest, localVarRequestOptions, configuration);
42822
43746
  return {
42823
43747
  url: toPathString(localVarUrlObj),
42824
43748
  options: localVarRequestOptions,
@@ -42996,17 +43920,17 @@ export const SearchApiFp = function (configuration) {
42996
43920
  * @summary Search (POST)
42997
43921
  * @param {string} xStoreid Store ID (from dashboard)
42998
43922
  * @param {string} xStoresecret Store read secret (from dashboard)
42999
- * @param {DataTypesPublicSearchRequest} dataTypesPublicSearchRequest Search query, filters, pagination, and options
43923
+ * @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
43000
43924
  * @param {string} [xUserId] User ID for personalization
43001
43925
  * @param {string} [xAnonId] Anonymous user ID for personalization
43002
43926
  * @param {string} [xSessionId] Session ID for personalization
43003
43927
  * @param {*} [options] Override http request option.
43004
43928
  * @throws {RequiredError}
43005
43929
  */
43006
- v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options) {
43930
+ v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
43007
43931
  return __awaiter(this, void 0, void 0, function* () {
43008
43932
  var _a, _b, _c;
43009
- const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options);
43933
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options);
43010
43934
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
43011
43935
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.v1SearchPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
43012
43936
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -43142,15 +44066,15 @@ export const SearchApiFactory = function (configuration, basePath, axios) {
43142
44066
  * @summary Search (POST)
43143
44067
  * @param {string} xStoreid Store ID (from dashboard)
43144
44068
  * @param {string} xStoresecret Store read secret (from dashboard)
43145
- * @param {DataTypesPublicSearchRequest} dataTypesPublicSearchRequest Search query, filters, pagination, and options
44069
+ * @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
43146
44070
  * @param {string} [xUserId] User ID for personalization
43147
44071
  * @param {string} [xAnonId] Anonymous user ID for personalization
43148
44072
  * @param {string} [xSessionId] Session ID for personalization
43149
44073
  * @param {*} [options] Override http request option.
43150
44074
  * @throws {RequiredError}
43151
44075
  */
43152
- v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options) {
43153
- return localVarFp.v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(axios, basePath));
44076
+ v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
44077
+ return localVarFp.v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(axios, basePath));
43154
44078
  },
43155
44079
  };
43156
44080
  };
@@ -43289,7 +44213,7 @@ export class SearchApi extends BaseAPI {
43289
44213
  * @summary Search (POST)
43290
44214
  * @param {string} xStoreid Store ID (from dashboard)
43291
44215
  * @param {string} xStoresecret Store read secret (from dashboard)
43292
- * @param {DataTypesPublicSearchRequest} dataTypesPublicSearchRequest Search query, filters, pagination, and options
44216
+ * @param {DataTypesSearchRequest} dataTypesSearchRequest Search query, filters, pagination, and options
43293
44217
  * @param {string} [xUserId] User ID for personalization
43294
44218
  * @param {string} [xAnonId] Anonymous user ID for personalization
43295
44219
  * @param {string} [xSessionId] Session ID for personalization
@@ -43297,8 +44221,8 @@ export class SearchApi extends BaseAPI {
43297
44221
  * @throws {RequiredError}
43298
44222
  * @memberof SearchApi
43299
44223
  */
43300
- v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options) {
43301
- return SearchApiFp(this.configuration).v1SearchPost(xStoreid, xStoresecret, dataTypesPublicSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(this.axios, this.basePath));
44224
+ v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options) {
44225
+ return SearchApiFp(this.configuration).v1SearchPost(xStoreid, xStoresecret, dataTypesSearchRequest, xUserId, xAnonId, xSessionId, options).then((request) => request(this.axios, this.basePath));
43302
44226
  }
43303
44227
  }
43304
44228
  /**
@@ -45272,15 +46196,15 @@ export const StoreManagementApiAxiosParamCreator = function (configuration) {
45272
46196
  * Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
45273
46197
  * @summary Create Store (Public SDK API)
45274
46198
  * @param {string} authorization Bearer JWT Token
45275
- * @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
46199
+ * @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
45276
46200
  * @param {*} [options] Override http request option.
45277
46201
  * @throws {RequiredError}
45278
46202
  */
45279
- apiV1StoresPost: (authorization_1, dataTypesPublicCreateStoreRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesPublicCreateStoreRequest_1, ...args_1], void 0, function* (authorization, dataTypesPublicCreateStoreRequest, options = {}) {
46203
+ apiV1StoresPost: (authorization_1, dataTypesCreateStoreRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesCreateStoreRequest_1, ...args_1], void 0, function* (authorization, dataTypesCreateStoreRequest, options = {}) {
45280
46204
  // verify required parameter 'authorization' is not null or undefined
45281
46205
  assertParamExists('apiV1StoresPost', 'authorization', authorization);
45282
- // verify required parameter 'dataTypesPublicCreateStoreRequest' is not null or undefined
45283
- assertParamExists('apiV1StoresPost', 'dataTypesPublicCreateStoreRequest', dataTypesPublicCreateStoreRequest);
46206
+ // verify required parameter 'dataTypesCreateStoreRequest' is not null or undefined
46207
+ assertParamExists('apiV1StoresPost', 'dataTypesCreateStoreRequest', dataTypesCreateStoreRequest);
45284
46208
  const localVarPath = `/api/v1/stores`;
45285
46209
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
45286
46210
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -45300,7 +46224,7 @@ export const StoreManagementApiAxiosParamCreator = function (configuration) {
45300
46224
  setSearchParams(localVarUrlObj, localVarQueryParameter);
45301
46225
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45302
46226
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
45303
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesPublicCreateStoreRequest, localVarRequestOptions, configuration);
46227
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateStoreRequest, localVarRequestOptions, configuration);
45304
46228
  return {
45305
46229
  url: toPathString(localVarUrlObj),
45306
46230
  options: localVarRequestOptions,
@@ -45355,19 +46279,19 @@ export const StoreManagementApiAxiosParamCreator = function (configuration) {
45355
46279
  * @param {string} xStoreid Store ID (from dashboard)
45356
46280
  * @param {string} xStoreWriteSecret Store write secret
45357
46281
  * @param {string} xStoreID Store ID (must match x-storeid header)
45358
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
46282
+ * @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
45359
46283
  * @param {*} [options] Override http request option.
45360
46284
  * @throws {RequiredError}
45361
46285
  */
45362
- apiV1StoresXStoreIDConfigPut: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesIndexConfig_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesIndexConfig_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options = {}) {
46286
+ apiV1StoresXStoreIDConfigPut: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesStoreConfigUpdateRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesStoreConfigUpdateRequest_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options = {}) {
45363
46287
  // verify required parameter 'xStoreid' is not null or undefined
45364
46288
  assertParamExists('apiV1StoresXStoreIDConfigPut', 'xStoreid', xStoreid);
45365
46289
  // verify required parameter 'xStoreWriteSecret' is not null or undefined
45366
46290
  assertParamExists('apiV1StoresXStoreIDConfigPut', 'xStoreWriteSecret', xStoreWriteSecret);
45367
46291
  // verify required parameter 'xStoreID' is not null or undefined
45368
46292
  assertParamExists('apiV1StoresXStoreIDConfigPut', 'xStoreID', xStoreID);
45369
- // verify required parameter 'dataTypesIndexConfig' is not null or undefined
45370
- assertParamExists('apiV1StoresXStoreIDConfigPut', 'dataTypesIndexConfig', dataTypesIndexConfig);
46293
+ // verify required parameter 'dataTypesStoreConfigUpdateRequest' is not null or undefined
46294
+ assertParamExists('apiV1StoresXStoreIDConfigPut', 'dataTypesStoreConfigUpdateRequest', dataTypesStoreConfigUpdateRequest);
45371
46295
  const localVarPath = `/api/v1/stores/{xStoreID}/config`
45372
46296
  .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
45373
46297
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -45391,7 +46315,7 @@ export const StoreManagementApiAxiosParamCreator = function (configuration) {
45391
46315
  setSearchParams(localVarUrlObj, localVarQueryParameter);
45392
46316
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45393
46317
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
45394
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesIndexConfig, localVarRequestOptions, configuration);
46318
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesStoreConfigUpdateRequest, localVarRequestOptions, configuration);
45395
46319
  return {
45396
46320
  url: toPathString(localVarUrlObj),
45397
46321
  options: localVarRequestOptions,
@@ -45911,14 +46835,14 @@ export const StoreManagementApiFp = function (configuration) {
45911
46835
  * Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
45912
46836
  * @summary Create Store (Public SDK API)
45913
46837
  * @param {string} authorization Bearer JWT Token
45914
- * @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
46838
+ * @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
45915
46839
  * @param {*} [options] Override http request option.
45916
46840
  * @throws {RequiredError}
45917
46841
  */
45918
- apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
46842
+ apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
45919
46843
  return __awaiter(this, void 0, void 0, function* () {
45920
46844
  var _a, _b, _c;
45921
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options);
46845
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options);
45922
46846
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
45923
46847
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreManagementApi.apiV1StoresPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
45924
46848
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -45948,14 +46872,14 @@ export const StoreManagementApiFp = function (configuration) {
45948
46872
  * @param {string} xStoreid Store ID (from dashboard)
45949
46873
  * @param {string} xStoreWriteSecret Store write secret
45950
46874
  * @param {string} xStoreID Store ID (must match x-storeid header)
45951
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
46875
+ * @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
45952
46876
  * @param {*} [options] Override http request option.
45953
46877
  * @throws {RequiredError}
45954
46878
  */
45955
- apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
46879
+ apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options) {
45956
46880
  return __awaiter(this, void 0, void 0, function* () {
45957
46881
  var _a, _b, _c;
45958
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options);
46882
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options);
45959
46883
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
45960
46884
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoreManagementApi.apiV1StoresXStoreIDConfigPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
45961
46885
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -46178,12 +47102,12 @@ export const StoreManagementApiFactory = function (configuration, basePath, axio
46178
47102
  * Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
46179
47103
  * @summary Create Store (Public SDK API)
46180
47104
  * @param {string} authorization Bearer JWT Token
46181
- * @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
47105
+ * @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
46182
47106
  * @param {*} [options] Override http request option.
46183
47107
  * @throws {RequiredError}
46184
47108
  */
46185
- apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
46186
- return localVarFp.apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options).then((request) => request(axios, basePath));
47109
+ apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
47110
+ return localVarFp.apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options).then((request) => request(axios, basePath));
46187
47111
  },
46188
47112
  /**
46189
47113
  * Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
@@ -46203,12 +47127,12 @@ export const StoreManagementApiFactory = function (configuration, basePath, axio
46203
47127
  * @param {string} xStoreid Store ID (from dashboard)
46204
47128
  * @param {string} xStoreWriteSecret Store write secret
46205
47129
  * @param {string} xStoreID Store ID (must match x-storeid header)
46206
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
47130
+ * @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
46207
47131
  * @param {*} [options] Override http request option.
46208
47132
  * @throws {RequiredError}
46209
47133
  */
46210
- apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
46211
- return localVarFp.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options).then((request) => request(axios, basePath));
47134
+ apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options) {
47135
+ return localVarFp.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options).then((request) => request(axios, basePath));
46212
47136
  },
46213
47137
  /**
46214
47138
  * Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
@@ -46361,13 +47285,13 @@ export class StoreManagementApi extends BaseAPI {
46361
47285
  * Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
46362
47286
  * @summary Create Store (Public SDK API)
46363
47287
  * @param {string} authorization Bearer JWT Token
46364
- * @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
47288
+ * @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
46365
47289
  * @param {*} [options] Override http request option.
46366
47290
  * @throws {RequiredError}
46367
47291
  * @memberof StoreManagementApi
46368
47292
  */
46369
- apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options) {
46370
- return StoreManagementApiFp(this.configuration).apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options).then((request) => request(this.axios, this.basePath));
47293
+ apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
47294
+ return StoreManagementApiFp(this.configuration).apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options).then((request) => request(this.axios, this.basePath));
46371
47295
  }
46372
47296
  /**
46373
47297
  * Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
@@ -46388,13 +47312,13 @@ export class StoreManagementApi extends BaseAPI {
46388
47312
  * @param {string} xStoreid Store ID (from dashboard)
46389
47313
  * @param {string} xStoreWriteSecret Store write secret
46390
47314
  * @param {string} xStoreID Store ID (must match x-storeid header)
46391
- * @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
47315
+ * @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
46392
47316
  * @param {*} [options] Override http request option.
46393
47317
  * @throws {RequiredError}
46394
47318
  * @memberof StoreManagementApi
46395
47319
  */
46396
- apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options) {
46397
- return StoreManagementApiFp(this.configuration).apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options).then((request) => request(this.axios, this.basePath));
47320
+ apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options) {
47321
+ return StoreManagementApiFp(this.configuration).apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesStoreConfigUpdateRequest, options).then((request) => request(this.axios, this.basePath));
46398
47322
  }
46399
47323
  /**
46400
47324
  * Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.