@seekora-ai/admin-api 1.1.93 → 1.1.94

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