@connectedxm/admin-sdk 10.10.0 → 10.11.0

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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 10.10.0
7
+ * The version of the OpenAPI document: 10.11.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2017,6 +2017,14 @@ export interface BaseOrganization {
2017
2017
  'domain': string | null;
2018
2018
  'locale': string;
2019
2019
  }
2020
+ export interface BaseOrganizationEntity {
2021
+ 'id': string;
2022
+ 'legalName': string;
2023
+ 'tradingName': string | null;
2024
+ 'primary': boolean | null;
2025
+ 'vatNumber': string | null;
2026
+ 'vatCountry': string | null;
2027
+ }
2020
2028
  export interface BaseOrganizationModule {
2021
2029
  'id': string;
2022
2030
  'moduleType': OrganizationModuleType;
@@ -4395,6 +4403,16 @@ export enum CreateMeetingLink200ResponseStatusEnum {
4395
4403
  Ok = 'ok'
4396
4404
  }
4397
4405
 
4406
+ export interface CreateOrganizationEntity200Response {
4407
+ 'status': CreateOrganizationEntity200ResponseStatusEnum;
4408
+ 'message': string;
4409
+ 'data': OrganizationEntity;
4410
+ }
4411
+
4412
+ export enum CreateOrganizationEntity200ResponseStatusEnum {
4413
+ Ok = 'ok'
4414
+ }
4415
+
4398
4416
  export interface CreateOrganizationPaymentIntegration200Response {
4399
4417
  'status': CreateOrganizationPaymentIntegration200ResponseStatusEnum;
4400
4418
  'message': string;
@@ -9511,6 +9529,17 @@ export enum GetOrganizationDomain200ResponseStatusEnum {
9511
9529
  Ok = 'ok'
9512
9530
  }
9513
9531
 
9532
+ export interface GetOrganizationEntities200Response {
9533
+ 'status': GetOrganizationEntities200ResponseStatusEnum;
9534
+ 'message': string;
9535
+ 'data': Array<OrganizationEntity>;
9536
+ 'count'?: number;
9537
+ }
9538
+
9539
+ export enum GetOrganizationEntities200ResponseStatusEnum {
9540
+ Ok = 'ok'
9541
+ }
9542
+
9514
9543
  export interface GetOrganizationLanguageOverrides200Response {
9515
9544
  'status': GetOrganizationLanguageOverrides200ResponseStatusEnum;
9516
9545
  'message': string;
@@ -11596,6 +11625,56 @@ export enum OrganizationActionType {
11596
11625
  export interface OrganizationAllOfOAuth {
11597
11626
  'id': string;
11598
11627
  }
11628
+ export interface OrganizationEntity {
11629
+ 'id': string;
11630
+ 'legalName': string;
11631
+ 'tradingName': string | null;
11632
+ 'primary': boolean | null;
11633
+ 'vatNumber': string | null;
11634
+ 'vatCountry': string | null;
11635
+ 'companyNumber': string | null;
11636
+ 'address1': string;
11637
+ 'address2': string | null;
11638
+ 'city': string;
11639
+ 'state': string | null;
11640
+ 'country': string;
11641
+ 'zip': string;
11642
+ 'companyCode': string | null;
11643
+ 'invoicePrefix': string | null;
11644
+ 'invoiceSequence': number;
11645
+ 'createdAt': string;
11646
+ 'updatedAt': string;
11647
+ }
11648
+ export interface OrganizationEntityCreateInputs {
11649
+ 'legalName': string;
11650
+ 'tradingName'?: string | null;
11651
+ 'companyNumber'?: string | null;
11652
+ 'address1': string;
11653
+ 'address2'?: string | null;
11654
+ 'city': string;
11655
+ 'state'?: string | null;
11656
+ 'country': string;
11657
+ 'zip': string;
11658
+ 'vatNumber'?: string | null;
11659
+ 'vatCountry'?: string | null;
11660
+ 'companyCode'?: string | null;
11661
+ 'invoicePrefix'?: string | null;
11662
+ }
11663
+ export interface OrganizationEntityUpdateInputs {
11664
+ 'legalName'?: string | null;
11665
+ 'tradingName'?: string | null;
11666
+ 'companyNumber'?: string | null;
11667
+ 'address1'?: string | null;
11668
+ 'address2'?: string | null;
11669
+ 'city'?: string | null;
11670
+ 'state'?: string | null;
11671
+ 'country'?: string | null;
11672
+ 'zip'?: string | null;
11673
+ 'vatNumber'?: string | null;
11674
+ 'vatCountry'?: string | null;
11675
+ 'companyCode'?: string | null;
11676
+ 'invoicePrefix'?: string | null;
11677
+ }
11599
11678
  export interface OrganizationLanguageOverride {
11600
11679
  'key': string;
11601
11680
  'values': { [key: string]: any; };
@@ -119935,6 +120014,583 @@ export class OrganizationDomainsApi extends BaseAPI {
119935
120014
 
119936
120015
 
119937
120016
 
120017
+ /**
120018
+ * OrganizationEntitiesApi - axios parameter creator
120019
+ */
120020
+ export const OrganizationEntitiesApiAxiosParamCreator = function (configuration?: Configuration) {
120021
+ return {
120022
+ /**
120023
+ * Creates a legal entity that can sell on behalf of the organization, carrying its own registered address, VAT registration and invoicing configuration. The entity is not made primary on creation - use the set-primary route for that.
120024
+ * @summary Create an organization legal entity
120025
+ * @param {OrganizationEntityCreateInputs} organizationEntityCreateInputs
120026
+ * @param {*} [options] Override http request option.
120027
+ * @throws {RequiredError}
120028
+ */
120029
+ createOrganizationEntity: async (organizationEntityCreateInputs: OrganizationEntityCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120030
+ // verify required parameter 'organizationEntityCreateInputs' is not null or undefined
120031
+ assertParamExists('createOrganizationEntity', 'organizationEntityCreateInputs', organizationEntityCreateInputs)
120032
+ const localVarPath = `/organization/entities`;
120033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120034
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120035
+ let baseOptions;
120036
+ if (configuration) {
120037
+ baseOptions = configuration.baseOptions;
120038
+ }
120039
+
120040
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
120041
+ const localVarHeaderParameter = {} as any;
120042
+ const localVarQueryParameter = {} as any;
120043
+
120044
+ // authentication ApiKeyAuth required
120045
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120046
+
120047
+ // authentication OrganizationId required
120048
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120049
+
120050
+ localVarHeaderParameter['Content-Type'] = 'application/json';
120051
+ localVarHeaderParameter['Accept'] = 'application/json';
120052
+
120053
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120055
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120056
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationEntityCreateInputs, localVarRequestOptions, configuration)
120057
+
120058
+ return {
120059
+ url: toPathString(localVarUrlObj),
120060
+ options: localVarRequestOptions,
120061
+ };
120062
+ },
120063
+ /**
120064
+ * Permanently deletes a legal entity. The organization\'s primary entity can never be deleted - set another entity as primary first, which is also why an organization always retains at least one entity.
120065
+ * @summary Delete an organization legal entity
120066
+ * @param {string} entityId The entity identifier
120067
+ * @param {*} [options] Override http request option.
120068
+ * @throws {RequiredError}
120069
+ */
120070
+ deleteOrganizationEntity: async (entityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120071
+ // verify required parameter 'entityId' is not null or undefined
120072
+ assertParamExists('deleteOrganizationEntity', 'entityId', entityId)
120073
+ const localVarPath = `/organization/entities/{entityId}`
120074
+ .replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
120075
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120076
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120077
+ let baseOptions;
120078
+ if (configuration) {
120079
+ baseOptions = configuration.baseOptions;
120080
+ }
120081
+
120082
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
120083
+ const localVarHeaderParameter = {} as any;
120084
+ const localVarQueryParameter = {} as any;
120085
+
120086
+ // authentication ApiKeyAuth required
120087
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120088
+
120089
+ // authentication OrganizationId required
120090
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120091
+
120092
+ localVarHeaderParameter['Accept'] = 'application/json';
120093
+
120094
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120095
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120096
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120097
+
120098
+ return {
120099
+ url: toPathString(localVarUrlObj),
120100
+ options: localVarRequestOptions,
120101
+ };
120102
+ },
120103
+ /**
120104
+ * Returns a paginated, searchable list of the legal entities that sell on behalf of the organization, each carrying its registered address, VAT registration and invoicing configuration.
120105
+ * @summary List an organization\'s legal entities
120106
+ * @param {number} [page] Page number
120107
+ * @param {number} [pageSize] Number of items per page
120108
+ * @param {string} [orderBy] Field to order by
120109
+ * @param {string} [search] Search query
120110
+ * @param {*} [options] Override http request option.
120111
+ * @throws {RequiredError}
120112
+ */
120113
+ getOrganizationEntities: async (page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120114
+ const localVarPath = `/organization/entities`;
120115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120117
+ let baseOptions;
120118
+ if (configuration) {
120119
+ baseOptions = configuration.baseOptions;
120120
+ }
120121
+
120122
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
120123
+ const localVarHeaderParameter = {} as any;
120124
+ const localVarQueryParameter = {} as any;
120125
+
120126
+ // authentication ApiKeyAuth required
120127
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120128
+
120129
+ // authentication OrganizationId required
120130
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120131
+
120132
+ if (page !== undefined) {
120133
+ localVarQueryParameter['page'] = page;
120134
+ }
120135
+
120136
+ if (pageSize !== undefined) {
120137
+ localVarQueryParameter['pageSize'] = pageSize;
120138
+ }
120139
+
120140
+ if (orderBy !== undefined) {
120141
+ localVarQueryParameter['orderBy'] = orderBy;
120142
+ }
120143
+
120144
+ if (search !== undefined) {
120145
+ localVarQueryParameter['search'] = search;
120146
+ }
120147
+
120148
+ localVarHeaderParameter['Accept'] = 'application/json';
120149
+
120150
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120152
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120153
+
120154
+ return {
120155
+ url: toPathString(localVarUrlObj),
120156
+ options: localVarRequestOptions,
120157
+ };
120158
+ },
120159
+ /**
120160
+ * Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
120161
+ * @summary Get an organization legal entity
120162
+ * @param {string} entityId The entity identifier
120163
+ * @param {*} [options] Override http request option.
120164
+ * @throws {RequiredError}
120165
+ */
120166
+ getOrganizationEntity: async (entityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120167
+ // verify required parameter 'entityId' is not null or undefined
120168
+ assertParamExists('getOrganizationEntity', 'entityId', entityId)
120169
+ const localVarPath = `/organization/entities/{entityId}`
120170
+ .replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
120171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120173
+ let baseOptions;
120174
+ if (configuration) {
120175
+ baseOptions = configuration.baseOptions;
120176
+ }
120177
+
120178
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
120179
+ const localVarHeaderParameter = {} as any;
120180
+ const localVarQueryParameter = {} as any;
120181
+
120182
+ // authentication ApiKeyAuth required
120183
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120184
+
120185
+ // authentication OrganizationId required
120186
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120187
+
120188
+ localVarHeaderParameter['Accept'] = 'application/json';
120189
+
120190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120192
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120193
+
120194
+ return {
120195
+ url: toPathString(localVarUrlObj),
120196
+ options: localVarRequestOptions,
120197
+ };
120198
+ },
120199
+ /**
120200
+ * Marks the specified entity as the organization\'s primary selling entity, clearing primary status from whichever entity held it before. This is the fallback entity used when an event has no entity of its own.
120201
+ * @summary Set an organization legal entity as primary
120202
+ * @param {string} entityId The entity identifier
120203
+ * @param {*} [options] Override http request option.
120204
+ * @throws {RequiredError}
120205
+ */
120206
+ setPrimaryOrganizationEntity: async (entityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120207
+ // verify required parameter 'entityId' is not null or undefined
120208
+ assertParamExists('setPrimaryOrganizationEntity', 'entityId', entityId)
120209
+ const localVarPath = `/organization/entities/{entityId}/primary`
120210
+ .replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
120211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120213
+ let baseOptions;
120214
+ if (configuration) {
120215
+ baseOptions = configuration.baseOptions;
120216
+ }
120217
+
120218
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
120219
+ const localVarHeaderParameter = {} as any;
120220
+ const localVarQueryParameter = {} as any;
120221
+
120222
+ // authentication ApiKeyAuth required
120223
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120224
+
120225
+ // authentication OrganizationId required
120226
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120227
+
120228
+ localVarHeaderParameter['Accept'] = 'application/json';
120229
+
120230
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120232
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120233
+
120234
+ return {
120235
+ url: toPathString(localVarUrlObj),
120236
+ options: localVarRequestOptions,
120237
+ };
120238
+ },
120239
+ /**
120240
+ * Updates the identity, registered address, VAT registration or invoicing configuration of a legal entity. Primary status cannot be changed here - use the set-primary route.
120241
+ * @summary Update an organization legal entity
120242
+ * @param {string} entityId The entity identifier
120243
+ * @param {OrganizationEntityUpdateInputs} organizationEntityUpdateInputs
120244
+ * @param {*} [options] Override http request option.
120245
+ * @throws {RequiredError}
120246
+ */
120247
+ updateOrganizationEntity: async (entityId: string, organizationEntityUpdateInputs: OrganizationEntityUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120248
+ // verify required parameter 'entityId' is not null or undefined
120249
+ assertParamExists('updateOrganizationEntity', 'entityId', entityId)
120250
+ // verify required parameter 'organizationEntityUpdateInputs' is not null or undefined
120251
+ assertParamExists('updateOrganizationEntity', 'organizationEntityUpdateInputs', organizationEntityUpdateInputs)
120252
+ const localVarPath = `/organization/entities/{entityId}`
120253
+ .replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
120254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120256
+ let baseOptions;
120257
+ if (configuration) {
120258
+ baseOptions = configuration.baseOptions;
120259
+ }
120260
+
120261
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
120262
+ const localVarHeaderParameter = {} as any;
120263
+ const localVarQueryParameter = {} as any;
120264
+
120265
+ // authentication ApiKeyAuth required
120266
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120267
+
120268
+ // authentication OrganizationId required
120269
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120270
+
120271
+ localVarHeaderParameter['Content-Type'] = 'application/json';
120272
+ localVarHeaderParameter['Accept'] = 'application/json';
120273
+
120274
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120275
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120276
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120277
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationEntityUpdateInputs, localVarRequestOptions, configuration)
120278
+
120279
+ return {
120280
+ url: toPathString(localVarUrlObj),
120281
+ options: localVarRequestOptions,
120282
+ };
120283
+ },
120284
+ }
120285
+ };
120286
+
120287
+ /**
120288
+ * OrganizationEntitiesApi - functional programming interface
120289
+ */
120290
+ export const OrganizationEntitiesApiFp = function(configuration?: Configuration) {
120291
+ const localVarAxiosParamCreator = OrganizationEntitiesApiAxiosParamCreator(configuration)
120292
+ return {
120293
+ /**
120294
+ * Creates a legal entity that can sell on behalf of the organization, carrying its own registered address, VAT registration and invoicing configuration. The entity is not made primary on creation - use the set-primary route for that.
120295
+ * @summary Create an organization legal entity
120296
+ * @param {OrganizationEntityCreateInputs} organizationEntityCreateInputs
120297
+ * @param {*} [options] Override http request option.
120298
+ * @throws {RequiredError}
120299
+ */
120300
+ async createOrganizationEntity(organizationEntityCreateInputs: OrganizationEntityCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationEntity200Response>> {
120301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationEntity(organizationEntityCreateInputs, options);
120302
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120303
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.createOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120304
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120305
+ },
120306
+ /**
120307
+ * Permanently deletes a legal entity. The organization\'s primary entity can never be deleted - set another entity as primary first, which is also why an organization always retains at least one entity.
120308
+ * @summary Delete an organization legal entity
120309
+ * @param {string} entityId The entity identifier
120310
+ * @param {*} [options] Override http request option.
120311
+ * @throws {RequiredError}
120312
+ */
120313
+ async deleteOrganizationEntity(entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
120314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationEntity(entityId, options);
120315
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120316
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.deleteOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120317
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120318
+ },
120319
+ /**
120320
+ * Returns a paginated, searchable list of the legal entities that sell on behalf of the organization, each carrying its registered address, VAT registration and invoicing configuration.
120321
+ * @summary List an organization\'s legal entities
120322
+ * @param {number} [page] Page number
120323
+ * @param {number} [pageSize] Number of items per page
120324
+ * @param {string} [orderBy] Field to order by
120325
+ * @param {string} [search] Search query
120326
+ * @param {*} [options] Override http request option.
120327
+ * @throws {RequiredError}
120328
+ */
120329
+ async getOrganizationEntities(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationEntities200Response>> {
120330
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationEntities(page, pageSize, orderBy, search, options);
120331
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120332
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.getOrganizationEntities']?.[localVarOperationServerIndex]?.url;
120333
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120334
+ },
120335
+ /**
120336
+ * Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
120337
+ * @summary Get an organization legal entity
120338
+ * @param {string} entityId The entity identifier
120339
+ * @param {*} [options] Override http request option.
120340
+ * @throws {RequiredError}
120341
+ */
120342
+ async getOrganizationEntity(entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationEntity200Response>> {
120343
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationEntity(entityId, options);
120344
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120345
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.getOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120346
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120347
+ },
120348
+ /**
120349
+ * Marks the specified entity as the organization\'s primary selling entity, clearing primary status from whichever entity held it before. This is the fallback entity used when an event has no entity of its own.
120350
+ * @summary Set an organization legal entity as primary
120351
+ * @param {string} entityId The entity identifier
120352
+ * @param {*} [options] Override http request option.
120353
+ * @throws {RequiredError}
120354
+ */
120355
+ async setPrimaryOrganizationEntity(entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationEntity200Response>> {
120356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryOrganizationEntity(entityId, options);
120357
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120358
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.setPrimaryOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120359
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120360
+ },
120361
+ /**
120362
+ * Updates the identity, registered address, VAT registration or invoicing configuration of a legal entity. Primary status cannot be changed here - use the set-primary route.
120363
+ * @summary Update an organization legal entity
120364
+ * @param {string} entityId The entity identifier
120365
+ * @param {OrganizationEntityUpdateInputs} organizationEntityUpdateInputs
120366
+ * @param {*} [options] Override http request option.
120367
+ * @throws {RequiredError}
120368
+ */
120369
+ async updateOrganizationEntity(entityId: string, organizationEntityUpdateInputs: OrganizationEntityUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationEntity200Response>> {
120370
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationEntity(entityId, organizationEntityUpdateInputs, options);
120371
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120372
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.updateOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120373
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120374
+ },
120375
+ }
120376
+ };
120377
+
120378
+ /**
120379
+ * OrganizationEntitiesApi - factory interface
120380
+ */
120381
+ export const OrganizationEntitiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
120382
+ const localVarFp = OrganizationEntitiesApiFp(configuration)
120383
+ return {
120384
+ /**
120385
+ * Creates a legal entity that can sell on behalf of the organization, carrying its own registered address, VAT registration and invoicing configuration. The entity is not made primary on creation - use the set-primary route for that.
120386
+ * @summary Create an organization legal entity
120387
+ * @param {OrganizationEntitiesApiCreateOrganizationEntityRequest} requestParameters Request parameters.
120388
+ * @param {*} [options] Override http request option.
120389
+ * @throws {RequiredError}
120390
+ */
120391
+ createOrganizationEntity(requestParameters: OrganizationEntitiesApiCreateOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrganizationEntity200Response> {
120392
+ return localVarFp.createOrganizationEntity(requestParameters.organizationEntityCreateInputs, options).then((request) => request(axios, basePath));
120393
+ },
120394
+ /**
120395
+ * Permanently deletes a legal entity. The organization\'s primary entity can never be deleted - set another entity as primary first, which is also why an organization always retains at least one entity.
120396
+ * @summary Delete an organization legal entity
120397
+ * @param {OrganizationEntitiesApiDeleteOrganizationEntityRequest} requestParameters Request parameters.
120398
+ * @param {*} [options] Override http request option.
120399
+ * @throws {RequiredError}
120400
+ */
120401
+ deleteOrganizationEntity(requestParameters: OrganizationEntitiesApiDeleteOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
120402
+ return localVarFp.deleteOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
120403
+ },
120404
+ /**
120405
+ * Returns a paginated, searchable list of the legal entities that sell on behalf of the organization, each carrying its registered address, VAT registration and invoicing configuration.
120406
+ * @summary List an organization\'s legal entities
120407
+ * @param {OrganizationEntitiesApiGetOrganizationEntitiesRequest} requestParameters Request parameters.
120408
+ * @param {*} [options] Override http request option.
120409
+ * @throws {RequiredError}
120410
+ */
120411
+ getOrganizationEntities(requestParameters: OrganizationEntitiesApiGetOrganizationEntitiesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetOrganizationEntities200Response> {
120412
+ return localVarFp.getOrganizationEntities(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
120413
+ },
120414
+ /**
120415
+ * Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
120416
+ * @summary Get an organization legal entity
120417
+ * @param {OrganizationEntitiesApiGetOrganizationEntityRequest} requestParameters Request parameters.
120418
+ * @param {*} [options] Override http request option.
120419
+ * @throws {RequiredError}
120420
+ */
120421
+ getOrganizationEntity(requestParameters: OrganizationEntitiesApiGetOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrganizationEntity200Response> {
120422
+ return localVarFp.getOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
120423
+ },
120424
+ /**
120425
+ * Marks the specified entity as the organization\'s primary selling entity, clearing primary status from whichever entity held it before. This is the fallback entity used when an event has no entity of its own.
120426
+ * @summary Set an organization legal entity as primary
120427
+ * @param {OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest} requestParameters Request parameters.
120428
+ * @param {*} [options] Override http request option.
120429
+ * @throws {RequiredError}
120430
+ */
120431
+ setPrimaryOrganizationEntity(requestParameters: OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrganizationEntity200Response> {
120432
+ return localVarFp.setPrimaryOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
120433
+ },
120434
+ /**
120435
+ * Updates the identity, registered address, VAT registration or invoicing configuration of a legal entity. Primary status cannot be changed here - use the set-primary route.
120436
+ * @summary Update an organization legal entity
120437
+ * @param {OrganizationEntitiesApiUpdateOrganizationEntityRequest} requestParameters Request parameters.
120438
+ * @param {*} [options] Override http request option.
120439
+ * @throws {RequiredError}
120440
+ */
120441
+ updateOrganizationEntity(requestParameters: OrganizationEntitiesApiUpdateOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrganizationEntity200Response> {
120442
+ return localVarFp.updateOrganizationEntity(requestParameters.entityId, requestParameters.organizationEntityUpdateInputs, options).then((request) => request(axios, basePath));
120443
+ },
120444
+ };
120445
+ };
120446
+
120447
+ /**
120448
+ * Request parameters for createOrganizationEntity operation in OrganizationEntitiesApi.
120449
+ */
120450
+ export interface OrganizationEntitiesApiCreateOrganizationEntityRequest {
120451
+ readonly organizationEntityCreateInputs: OrganizationEntityCreateInputs
120452
+ }
120453
+
120454
+ /**
120455
+ * Request parameters for deleteOrganizationEntity operation in OrganizationEntitiesApi.
120456
+ */
120457
+ export interface OrganizationEntitiesApiDeleteOrganizationEntityRequest {
120458
+ /**
120459
+ * The entity identifier
120460
+ */
120461
+ readonly entityId: string
120462
+ }
120463
+
120464
+ /**
120465
+ * Request parameters for getOrganizationEntities operation in OrganizationEntitiesApi.
120466
+ */
120467
+ export interface OrganizationEntitiesApiGetOrganizationEntitiesRequest {
120468
+ /**
120469
+ * Page number
120470
+ */
120471
+ readonly page?: number
120472
+
120473
+ /**
120474
+ * Number of items per page
120475
+ */
120476
+ readonly pageSize?: number
120477
+
120478
+ /**
120479
+ * Field to order by
120480
+ */
120481
+ readonly orderBy?: string
120482
+
120483
+ /**
120484
+ * Search query
120485
+ */
120486
+ readonly search?: string
120487
+ }
120488
+
120489
+ /**
120490
+ * Request parameters for getOrganizationEntity operation in OrganizationEntitiesApi.
120491
+ */
120492
+ export interface OrganizationEntitiesApiGetOrganizationEntityRequest {
120493
+ /**
120494
+ * The entity identifier
120495
+ */
120496
+ readonly entityId: string
120497
+ }
120498
+
120499
+ /**
120500
+ * Request parameters for setPrimaryOrganizationEntity operation in OrganizationEntitiesApi.
120501
+ */
120502
+ export interface OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest {
120503
+ /**
120504
+ * The entity identifier
120505
+ */
120506
+ readonly entityId: string
120507
+ }
120508
+
120509
+ /**
120510
+ * Request parameters for updateOrganizationEntity operation in OrganizationEntitiesApi.
120511
+ */
120512
+ export interface OrganizationEntitiesApiUpdateOrganizationEntityRequest {
120513
+ /**
120514
+ * The entity identifier
120515
+ */
120516
+ readonly entityId: string
120517
+
120518
+ readonly organizationEntityUpdateInputs: OrganizationEntityUpdateInputs
120519
+ }
120520
+
120521
+ /**
120522
+ * OrganizationEntitiesApi - object-oriented interface
120523
+ */
120524
+ export class OrganizationEntitiesApi extends BaseAPI {
120525
+ /**
120526
+ * Creates a legal entity that can sell on behalf of the organization, carrying its own registered address, VAT registration and invoicing configuration. The entity is not made primary on creation - use the set-primary route for that.
120527
+ * @summary Create an organization legal entity
120528
+ * @param {OrganizationEntitiesApiCreateOrganizationEntityRequest} requestParameters Request parameters.
120529
+ * @param {*} [options] Override http request option.
120530
+ * @throws {RequiredError}
120531
+ */
120532
+ public createOrganizationEntity(requestParameters: OrganizationEntitiesApiCreateOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120533
+ return OrganizationEntitiesApiFp(this.configuration).createOrganizationEntity(requestParameters.organizationEntityCreateInputs, options).then((request) => request(this.axios, this.basePath));
120534
+ }
120535
+
120536
+ /**
120537
+ * Permanently deletes a legal entity. The organization\'s primary entity can never be deleted - set another entity as primary first, which is also why an organization always retains at least one entity.
120538
+ * @summary Delete an organization legal entity
120539
+ * @param {OrganizationEntitiesApiDeleteOrganizationEntityRequest} requestParameters Request parameters.
120540
+ * @param {*} [options] Override http request option.
120541
+ * @throws {RequiredError}
120542
+ */
120543
+ public deleteOrganizationEntity(requestParameters: OrganizationEntitiesApiDeleteOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120544
+ return OrganizationEntitiesApiFp(this.configuration).deleteOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
120545
+ }
120546
+
120547
+ /**
120548
+ * Returns a paginated, searchable list of the legal entities that sell on behalf of the organization, each carrying its registered address, VAT registration and invoicing configuration.
120549
+ * @summary List an organization\'s legal entities
120550
+ * @param {OrganizationEntitiesApiGetOrganizationEntitiesRequest} requestParameters Request parameters.
120551
+ * @param {*} [options] Override http request option.
120552
+ * @throws {RequiredError}
120553
+ */
120554
+ public getOrganizationEntities(requestParameters: OrganizationEntitiesApiGetOrganizationEntitiesRequest = {}, options?: RawAxiosRequestConfig) {
120555
+ return OrganizationEntitiesApiFp(this.configuration).getOrganizationEntities(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
120556
+ }
120557
+
120558
+ /**
120559
+ * Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
120560
+ * @summary Get an organization legal entity
120561
+ * @param {OrganizationEntitiesApiGetOrganizationEntityRequest} requestParameters Request parameters.
120562
+ * @param {*} [options] Override http request option.
120563
+ * @throws {RequiredError}
120564
+ */
120565
+ public getOrganizationEntity(requestParameters: OrganizationEntitiesApiGetOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120566
+ return OrganizationEntitiesApiFp(this.configuration).getOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
120567
+ }
120568
+
120569
+ /**
120570
+ * Marks the specified entity as the organization\'s primary selling entity, clearing primary status from whichever entity held it before. This is the fallback entity used when an event has no entity of its own.
120571
+ * @summary Set an organization legal entity as primary
120572
+ * @param {OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest} requestParameters Request parameters.
120573
+ * @param {*} [options] Override http request option.
120574
+ * @throws {RequiredError}
120575
+ */
120576
+ public setPrimaryOrganizationEntity(requestParameters: OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120577
+ return OrganizationEntitiesApiFp(this.configuration).setPrimaryOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
120578
+ }
120579
+
120580
+ /**
120581
+ * Updates the identity, registered address, VAT registration or invoicing configuration of a legal entity. Primary status cannot be changed here - use the set-primary route.
120582
+ * @summary Update an organization legal entity
120583
+ * @param {OrganizationEntitiesApiUpdateOrganizationEntityRequest} requestParameters Request parameters.
120584
+ * @param {*} [options] Override http request option.
120585
+ * @throws {RequiredError}
120586
+ */
120587
+ public updateOrganizationEntity(requestParameters: OrganizationEntitiesApiUpdateOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120588
+ return OrganizationEntitiesApiFp(this.configuration).updateOrganizationEntity(requestParameters.entityId, requestParameters.organizationEntityUpdateInputs, options).then((request) => request(this.axios, this.basePath));
120589
+ }
120590
+ }
120591
+
120592
+
120593
+
119938
120594
  /**
119939
120595
  * OrganizationIntegrationsApi - axios parameter creator
119940
120596
  */