@connectedxm/admin-sdk 10.10.0 → 10.12.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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/AdminApi.ts +3 -0
  3. package/README.md +2 -2
  4. package/api.ts +725 -7
  5. package/base.ts +1 -1
  6. package/common.ts +1 -1
  7. package/configuration.ts +1 -1
  8. package/dist/AdminApi.d.ts +2 -1
  9. package/dist/AdminApi.js +1 -0
  10. package/dist/api.d.ts +428 -7
  11. package/dist/api.js +510 -28
  12. package/dist/base.d.ts +1 -1
  13. package/dist/base.js +1 -1
  14. package/dist/common.d.ts +1 -1
  15. package/dist/common.js +1 -1
  16. package/dist/configuration.d.ts +1 -1
  17. package/dist/configuration.js +1 -1
  18. package/dist/esm/AdminApi.d.ts +2 -1
  19. package/dist/esm/AdminApi.js +2 -1
  20. package/dist/esm/api.d.ts +428 -7
  21. package/dist/esm/api.js +479 -1
  22. package/dist/esm/base.d.ts +1 -1
  23. package/dist/esm/base.js +1 -1
  24. package/dist/esm/common.d.ts +1 -1
  25. package/dist/esm/common.js +1 -1
  26. package/dist/esm/configuration.d.ts +1 -1
  27. package/dist/esm/configuration.js +1 -1
  28. package/docs/BaseBookingSpace.md +4 -0
  29. package/docs/BaseEvent.md +4 -0
  30. package/docs/BaseInvoice.md +4 -0
  31. package/docs/BaseOrganizationEntity.md +30 -0
  32. package/docs/BasePayment.md +7 -3
  33. package/docs/BasePaymentIntent.md +4 -0
  34. package/docs/BaseSeries.md +20 -0
  35. package/docs/BookingSpace.md +4 -0
  36. package/docs/BookingSpaceCreateInputs.md +2 -0
  37. package/docs/BookingSpaceUpdateInputs.md +2 -0
  38. package/docs/CreateOrganizationEntity200Response.md +24 -0
  39. package/docs/Event.md +4 -0
  40. package/docs/EventCreateInputs.md +2 -0
  41. package/docs/EventUpdateInputs.md +2 -0
  42. package/docs/GetOrganizationEntities200Response.md +26 -0
  43. package/docs/Invoice.md +4 -0
  44. package/docs/InvoiceCreateInputs.md +2 -0
  45. package/docs/InvoiceUpdateInputs.md +2 -0
  46. package/docs/OrganizationEntitiesApi.md +333 -0
  47. package/docs/OrganizationEntity.md +54 -0
  48. package/docs/OrganizationEntityCreateInputs.md +44 -0
  49. package/docs/OrganizationEntityUpdateInputs.md +44 -0
  50. package/docs/Payment.md +7 -3
  51. package/docs/PaymentIntent.md +4 -0
  52. package/docs/Series.md +20 -0
  53. package/docs/SeriesCreateInputs.md +16 -0
  54. package/docs/SeriesUpdateInputs.md +16 -0
  55. package/package.json +1 -1
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.12.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1041,6 +1041,8 @@ export interface BaseBookingSpace {
1041
1041
  'timezone': string;
1042
1042
  'paymentIntegrationId': string | null;
1043
1043
  'paymentIntegration': BasePaymentIntegration | null;
1044
+ 'entityId': string | null;
1045
+ 'entity': BaseOrganizationEntity | null;
1044
1046
  'placeId': string | null;
1045
1047
  'eventId': string | null;
1046
1048
  'groupId': string | null;
@@ -1279,6 +1281,8 @@ export interface BaseEvent {
1279
1281
  'series': BaseSeries | null;
1280
1282
  'paymentIntegrationId': string | null;
1281
1283
  'paymentIntegration': BasePaymentIntegration | null;
1284
+ 'entityId': string | null;
1285
+ 'entity': BaseOrganizationEntity | null;
1282
1286
  'archived': boolean;
1283
1287
  'clientTemplate': boolean;
1284
1288
  }
@@ -1861,6 +1865,8 @@ export interface BaseInvoice {
1861
1865
  'notes': string | null;
1862
1866
  'paymentIntegrationId': string | null;
1863
1867
  'paymentIntegration': BasePaymentIntegration | null;
1868
+ 'entityId': string | null;
1869
+ 'entity': BaseOrganizationEntity | null;
1864
1870
  }
1865
1871
 
1866
1872
 
@@ -2017,6 +2023,14 @@ export interface BaseOrganization {
2017
2023
  'domain': string | null;
2018
2024
  'locale': string;
2019
2025
  }
2026
+ export interface BaseOrganizationEntity {
2027
+ 'id': string;
2028
+ 'legalName': string;
2029
+ 'tradingName': string | null;
2030
+ 'primary': boolean | null;
2031
+ 'vatNumber': string | null;
2032
+ 'vatCountry': string | null;
2033
+ }
2020
2034
  export interface BaseOrganizationModule {
2021
2035
  'id': string;
2022
2036
  'moduleType': OrganizationModuleType;
@@ -2075,9 +2089,9 @@ export interface BasePayment {
2075
2089
  'stripeId': string | null;
2076
2090
  'last4': string | null;
2077
2091
  'debugId': string | null;
2078
- 'address1': boolean;
2079
- 'address2': boolean;
2080
- 'city': boolean;
2092
+ 'address1': string | null;
2093
+ 'address2': string | null;
2094
+ 'city': string | null;
2081
2095
  'country': string;
2082
2096
  'state': string;
2083
2097
  'zip': string;
@@ -2093,6 +2107,8 @@ export interface BasePayment {
2093
2107
  'couponId': string | null;
2094
2108
  'invoiceId': string | null;
2095
2109
  'seriesId': string | null;
2110
+ 'entityId': string | null;
2111
+ 'entity': BaseOrganizationEntity | null;
2096
2112
  'lineItems': Array<BasePaymentLineItem>;
2097
2113
  'createdAt': string;
2098
2114
  }
@@ -2145,6 +2161,8 @@ export interface BasePaymentIntent {
2145
2161
  'coupon': BaseCoupon | null;
2146
2162
  'integration': BasePaymentIntentIntegration | null;
2147
2163
  'taxIntegration': BasePaymentIntentTaxIntegration | null;
2164
+ 'entityId': string | null;
2165
+ 'entity': BaseOrganizationEntity | null;
2148
2166
  }
2149
2167
 
2150
2168
 
@@ -2404,6 +2422,16 @@ export interface BaseSeries {
2404
2422
  'endDate': string | null;
2405
2423
  'imageId': string | null;
2406
2424
  'image': BaseImage | null;
2425
+ 'address1': string | null;
2426
+ 'address2': string | null;
2427
+ 'city': string | null;
2428
+ 'state': string | null;
2429
+ 'country': string | null;
2430
+ 'zip': string | null;
2431
+ 'paymentIntegrationId': string | null;
2432
+ 'paymentIntegration': BasePaymentIntegration | null;
2433
+ 'entityId': string | null;
2434
+ 'entity': BaseOrganizationEntity | null;
2407
2435
  }
2408
2436
  export interface BaseSeriesQuestion {
2409
2437
  'id': string;
@@ -2998,6 +3026,8 @@ export interface BookingSpace {
2998
3026
  'timezone': string;
2999
3027
  'paymentIntegrationId': string | null;
3000
3028
  'paymentIntegration': BasePaymentIntegration | null;
3029
+ 'entityId': string | null;
3030
+ 'entity': BaseOrganizationEntity | null;
3001
3031
  'placeId': string | null;
3002
3032
  'eventId': string | null;
3003
3033
  'groupId': string | null;
@@ -3087,6 +3117,7 @@ export interface BookingSpaceCreateInputs {
3087
3117
  'eventId'?: string | null;
3088
3118
  'groupId'?: string | null;
3089
3119
  'accountId'?: string | null;
3120
+ 'entityId'?: string | null;
3090
3121
  }
3091
3122
 
3092
3123
 
@@ -3287,6 +3318,7 @@ export interface BookingSpaceUpdateInputs {
3287
3318
  'eventId'?: string | null;
3288
3319
  'groupId'?: string | null;
3289
3320
  'accountId'?: string | null;
3321
+ 'entityId'?: string | null;
3290
3322
  }
3291
3323
 
3292
3324
 
@@ -4395,6 +4427,16 @@ export enum CreateMeetingLink200ResponseStatusEnum {
4395
4427
  Ok = 'ok'
4396
4428
  }
4397
4429
 
4430
+ export interface CreateOrganizationEntity200Response {
4431
+ 'status': CreateOrganizationEntity200ResponseStatusEnum;
4432
+ 'message': string;
4433
+ 'data': OrganizationEntity;
4434
+ }
4435
+
4436
+ export enum CreateOrganizationEntity200ResponseStatusEnum {
4437
+ Ok = 'ok'
4438
+ }
4439
+
4398
4440
  export interface CreateOrganizationPaymentIntegration200Response {
4399
4441
  'status': CreateOrganizationPaymentIntegration200ResponseStatusEnum;
4400
4442
  'message': string;
@@ -4922,6 +4964,8 @@ export interface Event {
4922
4964
  'series': BaseSeries | null;
4923
4965
  'paymentIntegrationId': string | null;
4924
4966
  'paymentIntegration': BasePaymentIntegration | null;
4967
+ 'entityId': string | null;
4968
+ 'entity': BaseOrganizationEntity | null;
4925
4969
  'archived': boolean;
4926
4970
  'clientTemplate': boolean;
4927
4971
  'mapImageLightUrl': string | null;
@@ -5330,6 +5374,7 @@ export interface EventCreateInputs {
5330
5374
  'activityFeedEnabled'?: boolean;
5331
5375
  'options'?: object | null;
5332
5376
  'paymentIntegrationId'?: string | null;
5377
+ 'entityId'?: string | null;
5333
5378
  'template'?: boolean;
5334
5379
  'meetingId'?: string | null;
5335
5380
  'continuousScanning'?: boolean;
@@ -6857,6 +6902,7 @@ export interface EventUpdateInputs {
6857
6902
  'activityFeedEnabled'?: boolean;
6858
6903
  'options'?: object | null;
6859
6904
  'paymentIntegrationId'?: string | null;
6905
+ 'entityId'?: string | null;
6860
6906
  'meetingId'?: string | null;
6861
6907
  'continuousScanning'?: boolean;
6862
6908
  'scanType'?: OnSiteScanType | null;
@@ -9511,6 +9557,17 @@ export enum GetOrganizationDomain200ResponseStatusEnum {
9511
9557
  Ok = 'ok'
9512
9558
  }
9513
9559
 
9560
+ export interface GetOrganizationEntities200Response {
9561
+ 'status': GetOrganizationEntities200ResponseStatusEnum;
9562
+ 'message': string;
9563
+ 'data': Array<OrganizationEntity>;
9564
+ 'count'?: number;
9565
+ }
9566
+
9567
+ export enum GetOrganizationEntities200ResponseStatusEnum {
9568
+ Ok = 'ok'
9569
+ }
9570
+
9514
9571
  export interface GetOrganizationLanguageOverrides200Response {
9515
9572
  'status': GetOrganizationLanguageOverrides200ResponseStatusEnum;
9516
9573
  'message': string;
@@ -10750,6 +10807,8 @@ export interface Invoice {
10750
10807
  'notes': string | null;
10751
10808
  'paymentIntegrationId': string | null;
10752
10809
  'paymentIntegration': BasePaymentIntegration | null;
10810
+ 'entityId': string | null;
10811
+ 'entity': BaseOrganizationEntity | null;
10753
10812
  'lineItems': BaseInvoiceLineItem;
10754
10813
  'accountId': string | null;
10755
10814
  'account': BaseAccount | null;
@@ -10768,6 +10827,7 @@ export interface InvoiceCreateInputs {
10768
10827
  'accountId'?: string | null;
10769
10828
  'eventId'?: string | null;
10770
10829
  'paymentIntegrationId'?: string | null;
10830
+ 'entityId'?: string | null;
10771
10831
  }
10772
10832
  export interface InvoiceLineItem {
10773
10833
  'id': string;
@@ -10824,6 +10884,7 @@ export interface InvoiceUpdateInputs {
10824
10884
  'accountId'?: string | null;
10825
10885
  'eventId'?: string | null;
10826
10886
  'paymentIntegrationId'?: string | null;
10887
+ 'entityId'?: string | null;
10827
10888
  }
10828
10889
  export interface JoinMeeting200Response {
10829
10890
  'status': JoinMeeting200ResponseStatusEnum;
@@ -11596,6 +11657,56 @@ export enum OrganizationActionType {
11596
11657
  export interface OrganizationAllOfOAuth {
11597
11658
  'id': string;
11598
11659
  }
11660
+ export interface OrganizationEntity {
11661
+ 'id': string;
11662
+ 'legalName': string;
11663
+ 'tradingName': string | null;
11664
+ 'primary': boolean | null;
11665
+ 'vatNumber': string | null;
11666
+ 'vatCountry': string | null;
11667
+ 'companyNumber': string | null;
11668
+ 'address1': string;
11669
+ 'address2': string | null;
11670
+ 'city': string;
11671
+ 'state': string | null;
11672
+ 'country': string;
11673
+ 'zip': string;
11674
+ 'companyCode': string | null;
11675
+ 'invoicePrefix': string | null;
11676
+ 'invoiceSequence': number;
11677
+ 'createdAt': string;
11678
+ 'updatedAt': string;
11679
+ }
11680
+ export interface OrganizationEntityCreateInputs {
11681
+ 'legalName': string;
11682
+ 'tradingName'?: string | null;
11683
+ 'companyNumber'?: string | null;
11684
+ 'address1': string;
11685
+ 'address2'?: string | null;
11686
+ 'city': string;
11687
+ 'state'?: string | null;
11688
+ 'country': string;
11689
+ 'zip': string;
11690
+ 'vatNumber'?: string | null;
11691
+ 'vatCountry'?: string | null;
11692
+ 'companyCode'?: string | null;
11693
+ 'invoicePrefix'?: string | null;
11694
+ }
11695
+ export interface OrganizationEntityUpdateInputs {
11696
+ 'legalName'?: string | null;
11697
+ 'tradingName'?: string | null;
11698
+ 'companyNumber'?: string | null;
11699
+ 'address1'?: string | null;
11700
+ 'address2'?: string | null;
11701
+ 'city'?: string | null;
11702
+ 'state'?: string | null;
11703
+ 'country'?: string | null;
11704
+ 'zip'?: string | null;
11705
+ 'vatNumber'?: string | null;
11706
+ 'vatCountry'?: string | null;
11707
+ 'companyCode'?: string | null;
11708
+ 'invoicePrefix'?: string | null;
11709
+ }
11599
11710
  export interface OrganizationLanguageOverride {
11600
11711
  'key': string;
11601
11712
  'values': { [key: string]: any; };
@@ -12103,9 +12214,9 @@ export interface Payment {
12103
12214
  'stripeId': string | null;
12104
12215
  'last4': string | null;
12105
12216
  'debugId': string | null;
12106
- 'address1': boolean;
12107
- 'address2': boolean;
12108
- 'city': boolean;
12217
+ 'address1': string | null;
12218
+ 'address2': string | null;
12219
+ 'city': string | null;
12109
12220
  'country': string;
12110
12221
  'state': string;
12111
12222
  'zip': string;
@@ -12121,6 +12232,8 @@ export interface Payment {
12121
12232
  'couponId': string | null;
12122
12233
  'invoiceId': string | null;
12123
12234
  'seriesId': string | null;
12235
+ 'entityId': string | null;
12236
+ 'entity': BaseOrganizationEntity | null;
12124
12237
  'lineItems': Array<object>;
12125
12238
  'createdAt': string;
12126
12239
  'locationAddress1': string | null;
@@ -12219,6 +12332,8 @@ export interface PaymentIntent {
12219
12332
  'coupon': BaseCoupon | null;
12220
12333
  'integration': BasePaymentIntentIntegration | null;
12221
12334
  'taxIntegration': BasePaymentIntentTaxIntegration | null;
12335
+ 'entityId': string | null;
12336
+ 'entity': BaseOrganizationEntity | null;
12222
12337
  'account': BaseAccount | null;
12223
12338
  'event': BaseEvent | null;
12224
12339
  'session': BaseEventSession | null;
@@ -13061,6 +13176,16 @@ export interface Series {
13061
13176
  'endDate': string | null;
13062
13177
  'imageId': string | null;
13063
13178
  'image': BaseImage | null;
13179
+ 'address1': string | null;
13180
+ 'address2': string | null;
13181
+ 'city': string | null;
13182
+ 'state': string | null;
13183
+ 'country': string | null;
13184
+ 'zip': string | null;
13185
+ 'paymentIntegrationId': string | null;
13186
+ 'paymentIntegration': BasePaymentIntegration | null;
13187
+ 'entityId': string | null;
13188
+ 'entity': BaseOrganizationEntity | null;
13064
13189
  'templateId': string;
13065
13190
  'template': BaseEvent;
13066
13191
  'sortOrder': number;
@@ -13095,6 +13220,14 @@ export interface SeriesCreateInputs {
13095
13220
  'subject'?: string | null;
13096
13221
  'replyTo'?: string | null;
13097
13222
  'body'?: string | null;
13223
+ 'address1'?: string | null;
13224
+ 'address2'?: string | null;
13225
+ 'city'?: string | null;
13226
+ 'state'?: string | null;
13227
+ 'country'?: string | null;
13228
+ 'zip'?: string | null;
13229
+ 'paymentIntegrationId'?: string | null;
13230
+ 'entityId'?: string | null;
13098
13231
  }
13099
13232
 
13100
13233
 
@@ -13322,6 +13455,14 @@ export interface SeriesUpdateInputs {
13322
13455
  'subject'?: string | null;
13323
13456
  'replyTo'?: string | null;
13324
13457
  'body'?: string | null;
13458
+ 'address1'?: string | null;
13459
+ 'address2'?: string | null;
13460
+ 'city'?: string | null;
13461
+ 'state'?: string | null;
13462
+ 'country'?: string | null;
13463
+ 'zip'?: string | null;
13464
+ 'paymentIntegrationId'?: string | null;
13465
+ 'entityId'?: string | null;
13325
13466
  }
13326
13467
 
13327
13468
 
@@ -119935,6 +120076,583 @@ export class OrganizationDomainsApi extends BaseAPI {
119935
120076
 
119936
120077
 
119937
120078
 
120079
+ /**
120080
+ * OrganizationEntitiesApi - axios parameter creator
120081
+ */
120082
+ export const OrganizationEntitiesApiAxiosParamCreator = function (configuration?: Configuration) {
120083
+ return {
120084
+ /**
120085
+ * 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.
120086
+ * @summary Create an organization legal entity
120087
+ * @param {OrganizationEntityCreateInputs} organizationEntityCreateInputs
120088
+ * @param {*} [options] Override http request option.
120089
+ * @throws {RequiredError}
120090
+ */
120091
+ createOrganizationEntity: async (organizationEntityCreateInputs: OrganizationEntityCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120092
+ // verify required parameter 'organizationEntityCreateInputs' is not null or undefined
120093
+ assertParamExists('createOrganizationEntity', 'organizationEntityCreateInputs', organizationEntityCreateInputs)
120094
+ const localVarPath = `/organization/entities`;
120095
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120096
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120097
+ let baseOptions;
120098
+ if (configuration) {
120099
+ baseOptions = configuration.baseOptions;
120100
+ }
120101
+
120102
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
120103
+ const localVarHeaderParameter = {} as any;
120104
+ const localVarQueryParameter = {} as any;
120105
+
120106
+ // authentication ApiKeyAuth required
120107
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120108
+
120109
+ // authentication OrganizationId required
120110
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120111
+
120112
+ localVarHeaderParameter['Content-Type'] = 'application/json';
120113
+ localVarHeaderParameter['Accept'] = 'application/json';
120114
+
120115
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120117
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120118
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationEntityCreateInputs, localVarRequestOptions, configuration)
120119
+
120120
+ return {
120121
+ url: toPathString(localVarUrlObj),
120122
+ options: localVarRequestOptions,
120123
+ };
120124
+ },
120125
+ /**
120126
+ * 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.
120127
+ * @summary Delete an organization legal entity
120128
+ * @param {string} entityId The entity identifier
120129
+ * @param {*} [options] Override http request option.
120130
+ * @throws {RequiredError}
120131
+ */
120132
+ deleteOrganizationEntity: async (entityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120133
+ // verify required parameter 'entityId' is not null or undefined
120134
+ assertParamExists('deleteOrganizationEntity', 'entityId', entityId)
120135
+ const localVarPath = `/organization/entities/{entityId}`
120136
+ .replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
120137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120139
+ let baseOptions;
120140
+ if (configuration) {
120141
+ baseOptions = configuration.baseOptions;
120142
+ }
120143
+
120144
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
120145
+ const localVarHeaderParameter = {} as any;
120146
+ const localVarQueryParameter = {} as any;
120147
+
120148
+ // authentication ApiKeyAuth required
120149
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120150
+
120151
+ // authentication OrganizationId required
120152
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120153
+
120154
+ localVarHeaderParameter['Accept'] = 'application/json';
120155
+
120156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120159
+
120160
+ return {
120161
+ url: toPathString(localVarUrlObj),
120162
+ options: localVarRequestOptions,
120163
+ };
120164
+ },
120165
+ /**
120166
+ * 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.
120167
+ * @summary List an organization\'s legal entities
120168
+ * @param {number} [page] Page number
120169
+ * @param {number} [pageSize] Number of items per page
120170
+ * @param {string} [orderBy] Field to order by
120171
+ * @param {string} [search] Search query
120172
+ * @param {*} [options] Override http request option.
120173
+ * @throws {RequiredError}
120174
+ */
120175
+ getOrganizationEntities: async (page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120176
+ const localVarPath = `/organization/entities`;
120177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120179
+ let baseOptions;
120180
+ if (configuration) {
120181
+ baseOptions = configuration.baseOptions;
120182
+ }
120183
+
120184
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
120185
+ const localVarHeaderParameter = {} as any;
120186
+ const localVarQueryParameter = {} as any;
120187
+
120188
+ // authentication ApiKeyAuth required
120189
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120190
+
120191
+ // authentication OrganizationId required
120192
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120193
+
120194
+ if (page !== undefined) {
120195
+ localVarQueryParameter['page'] = page;
120196
+ }
120197
+
120198
+ if (pageSize !== undefined) {
120199
+ localVarQueryParameter['pageSize'] = pageSize;
120200
+ }
120201
+
120202
+ if (orderBy !== undefined) {
120203
+ localVarQueryParameter['orderBy'] = orderBy;
120204
+ }
120205
+
120206
+ if (search !== undefined) {
120207
+ localVarQueryParameter['search'] = search;
120208
+ }
120209
+
120210
+ localVarHeaderParameter['Accept'] = 'application/json';
120211
+
120212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120214
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120215
+
120216
+ return {
120217
+ url: toPathString(localVarUrlObj),
120218
+ options: localVarRequestOptions,
120219
+ };
120220
+ },
120221
+ /**
120222
+ * Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
120223
+ * @summary Get an organization legal entity
120224
+ * @param {string} entityId The entity identifier
120225
+ * @param {*} [options] Override http request option.
120226
+ * @throws {RequiredError}
120227
+ */
120228
+ getOrganizationEntity: async (entityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120229
+ // verify required parameter 'entityId' is not null or undefined
120230
+ assertParamExists('getOrganizationEntity', 'entityId', entityId)
120231
+ const localVarPath = `/organization/entities/{entityId}`
120232
+ .replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
120233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120235
+ let baseOptions;
120236
+ if (configuration) {
120237
+ baseOptions = configuration.baseOptions;
120238
+ }
120239
+
120240
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
120241
+ const localVarHeaderParameter = {} as any;
120242
+ const localVarQueryParameter = {} as any;
120243
+
120244
+ // authentication ApiKeyAuth required
120245
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120246
+
120247
+ // authentication OrganizationId required
120248
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120249
+
120250
+ localVarHeaderParameter['Accept'] = 'application/json';
120251
+
120252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120254
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120255
+
120256
+ return {
120257
+ url: toPathString(localVarUrlObj),
120258
+ options: localVarRequestOptions,
120259
+ };
120260
+ },
120261
+ /**
120262
+ * 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.
120263
+ * @summary Set an organization legal entity as primary
120264
+ * @param {string} entityId The entity identifier
120265
+ * @param {*} [options] Override http request option.
120266
+ * @throws {RequiredError}
120267
+ */
120268
+ setPrimaryOrganizationEntity: async (entityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120269
+ // verify required parameter 'entityId' is not null or undefined
120270
+ assertParamExists('setPrimaryOrganizationEntity', 'entityId', entityId)
120271
+ const localVarPath = `/organization/entities/{entityId}/primary`
120272
+ .replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
120273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120275
+ let baseOptions;
120276
+ if (configuration) {
120277
+ baseOptions = configuration.baseOptions;
120278
+ }
120279
+
120280
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
120281
+ const localVarHeaderParameter = {} as any;
120282
+ const localVarQueryParameter = {} as any;
120283
+
120284
+ // authentication ApiKeyAuth required
120285
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120286
+
120287
+ // authentication OrganizationId required
120288
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120289
+
120290
+ localVarHeaderParameter['Accept'] = 'application/json';
120291
+
120292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120294
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120295
+
120296
+ return {
120297
+ url: toPathString(localVarUrlObj),
120298
+ options: localVarRequestOptions,
120299
+ };
120300
+ },
120301
+ /**
120302
+ * 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.
120303
+ * @summary Update an organization legal entity
120304
+ * @param {string} entityId The entity identifier
120305
+ * @param {OrganizationEntityUpdateInputs} organizationEntityUpdateInputs
120306
+ * @param {*} [options] Override http request option.
120307
+ * @throws {RequiredError}
120308
+ */
120309
+ updateOrganizationEntity: async (entityId: string, organizationEntityUpdateInputs: OrganizationEntityUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120310
+ // verify required parameter 'entityId' is not null or undefined
120311
+ assertParamExists('updateOrganizationEntity', 'entityId', entityId)
120312
+ // verify required parameter 'organizationEntityUpdateInputs' is not null or undefined
120313
+ assertParamExists('updateOrganizationEntity', 'organizationEntityUpdateInputs', organizationEntityUpdateInputs)
120314
+ const localVarPath = `/organization/entities/{entityId}`
120315
+ .replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
120316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120318
+ let baseOptions;
120319
+ if (configuration) {
120320
+ baseOptions = configuration.baseOptions;
120321
+ }
120322
+
120323
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
120324
+ const localVarHeaderParameter = {} as any;
120325
+ const localVarQueryParameter = {} as any;
120326
+
120327
+ // authentication ApiKeyAuth required
120328
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
120329
+
120330
+ // authentication OrganizationId required
120331
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
120332
+
120333
+ localVarHeaderParameter['Content-Type'] = 'application/json';
120334
+ localVarHeaderParameter['Accept'] = 'application/json';
120335
+
120336
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120338
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120339
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationEntityUpdateInputs, localVarRequestOptions, configuration)
120340
+
120341
+ return {
120342
+ url: toPathString(localVarUrlObj),
120343
+ options: localVarRequestOptions,
120344
+ };
120345
+ },
120346
+ }
120347
+ };
120348
+
120349
+ /**
120350
+ * OrganizationEntitiesApi - functional programming interface
120351
+ */
120352
+ export const OrganizationEntitiesApiFp = function(configuration?: Configuration) {
120353
+ const localVarAxiosParamCreator = OrganizationEntitiesApiAxiosParamCreator(configuration)
120354
+ return {
120355
+ /**
120356
+ * 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.
120357
+ * @summary Create an organization legal entity
120358
+ * @param {OrganizationEntityCreateInputs} organizationEntityCreateInputs
120359
+ * @param {*} [options] Override http request option.
120360
+ * @throws {RequiredError}
120361
+ */
120362
+ async createOrganizationEntity(organizationEntityCreateInputs: OrganizationEntityCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationEntity200Response>> {
120363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationEntity(organizationEntityCreateInputs, options);
120364
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120365
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.createOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120366
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120367
+ },
120368
+ /**
120369
+ * 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.
120370
+ * @summary Delete an organization legal entity
120371
+ * @param {string} entityId The entity identifier
120372
+ * @param {*} [options] Override http request option.
120373
+ * @throws {RequiredError}
120374
+ */
120375
+ async deleteOrganizationEntity(entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
120376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationEntity(entityId, options);
120377
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120378
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.deleteOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120379
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120380
+ },
120381
+ /**
120382
+ * 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.
120383
+ * @summary List an organization\'s legal entities
120384
+ * @param {number} [page] Page number
120385
+ * @param {number} [pageSize] Number of items per page
120386
+ * @param {string} [orderBy] Field to order by
120387
+ * @param {string} [search] Search query
120388
+ * @param {*} [options] Override http request option.
120389
+ * @throws {RequiredError}
120390
+ */
120391
+ async getOrganizationEntities(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationEntities200Response>> {
120392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationEntities(page, pageSize, orderBy, search, options);
120393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120394
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.getOrganizationEntities']?.[localVarOperationServerIndex]?.url;
120395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120396
+ },
120397
+ /**
120398
+ * Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
120399
+ * @summary Get an organization legal entity
120400
+ * @param {string} entityId The entity identifier
120401
+ * @param {*} [options] Override http request option.
120402
+ * @throws {RequiredError}
120403
+ */
120404
+ async getOrganizationEntity(entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationEntity200Response>> {
120405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationEntity(entityId, options);
120406
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120407
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.getOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120408
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120409
+ },
120410
+ /**
120411
+ * 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.
120412
+ * @summary Set an organization legal entity as primary
120413
+ * @param {string} entityId The entity identifier
120414
+ * @param {*} [options] Override http request option.
120415
+ * @throws {RequiredError}
120416
+ */
120417
+ async setPrimaryOrganizationEntity(entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationEntity200Response>> {
120418
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryOrganizationEntity(entityId, options);
120419
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120420
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.setPrimaryOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120421
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120422
+ },
120423
+ /**
120424
+ * 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.
120425
+ * @summary Update an organization legal entity
120426
+ * @param {string} entityId The entity identifier
120427
+ * @param {OrganizationEntityUpdateInputs} organizationEntityUpdateInputs
120428
+ * @param {*} [options] Override http request option.
120429
+ * @throws {RequiredError}
120430
+ */
120431
+ async updateOrganizationEntity(entityId: string, organizationEntityUpdateInputs: OrganizationEntityUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationEntity200Response>> {
120432
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationEntity(entityId, organizationEntityUpdateInputs, options);
120433
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120434
+ const localVarOperationServerBasePath = operationServerMap['OrganizationEntitiesApi.updateOrganizationEntity']?.[localVarOperationServerIndex]?.url;
120435
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
120436
+ },
120437
+ }
120438
+ };
120439
+
120440
+ /**
120441
+ * OrganizationEntitiesApi - factory interface
120442
+ */
120443
+ export const OrganizationEntitiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
120444
+ const localVarFp = OrganizationEntitiesApiFp(configuration)
120445
+ return {
120446
+ /**
120447
+ * 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.
120448
+ * @summary Create an organization legal entity
120449
+ * @param {OrganizationEntitiesApiCreateOrganizationEntityRequest} requestParameters Request parameters.
120450
+ * @param {*} [options] Override http request option.
120451
+ * @throws {RequiredError}
120452
+ */
120453
+ createOrganizationEntity(requestParameters: OrganizationEntitiesApiCreateOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrganizationEntity200Response> {
120454
+ return localVarFp.createOrganizationEntity(requestParameters.organizationEntityCreateInputs, options).then((request) => request(axios, basePath));
120455
+ },
120456
+ /**
120457
+ * 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.
120458
+ * @summary Delete an organization legal entity
120459
+ * @param {OrganizationEntitiesApiDeleteOrganizationEntityRequest} requestParameters Request parameters.
120460
+ * @param {*} [options] Override http request option.
120461
+ * @throws {RequiredError}
120462
+ */
120463
+ deleteOrganizationEntity(requestParameters: OrganizationEntitiesApiDeleteOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
120464
+ return localVarFp.deleteOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
120465
+ },
120466
+ /**
120467
+ * 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.
120468
+ * @summary List an organization\'s legal entities
120469
+ * @param {OrganizationEntitiesApiGetOrganizationEntitiesRequest} requestParameters Request parameters.
120470
+ * @param {*} [options] Override http request option.
120471
+ * @throws {RequiredError}
120472
+ */
120473
+ getOrganizationEntities(requestParameters: OrganizationEntitiesApiGetOrganizationEntitiesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetOrganizationEntities200Response> {
120474
+ return localVarFp.getOrganizationEntities(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
120475
+ },
120476
+ /**
120477
+ * Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
120478
+ * @summary Get an organization legal entity
120479
+ * @param {OrganizationEntitiesApiGetOrganizationEntityRequest} requestParameters Request parameters.
120480
+ * @param {*} [options] Override http request option.
120481
+ * @throws {RequiredError}
120482
+ */
120483
+ getOrganizationEntity(requestParameters: OrganizationEntitiesApiGetOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrganizationEntity200Response> {
120484
+ return localVarFp.getOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
120485
+ },
120486
+ /**
120487
+ * 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.
120488
+ * @summary Set an organization legal entity as primary
120489
+ * @param {OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest} requestParameters Request parameters.
120490
+ * @param {*} [options] Override http request option.
120491
+ * @throws {RequiredError}
120492
+ */
120493
+ setPrimaryOrganizationEntity(requestParameters: OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrganizationEntity200Response> {
120494
+ return localVarFp.setPrimaryOrganizationEntity(requestParameters.entityId, options).then((request) => request(axios, basePath));
120495
+ },
120496
+ /**
120497
+ * 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.
120498
+ * @summary Update an organization legal entity
120499
+ * @param {OrganizationEntitiesApiUpdateOrganizationEntityRequest} requestParameters Request parameters.
120500
+ * @param {*} [options] Override http request option.
120501
+ * @throws {RequiredError}
120502
+ */
120503
+ updateOrganizationEntity(requestParameters: OrganizationEntitiesApiUpdateOrganizationEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrganizationEntity200Response> {
120504
+ return localVarFp.updateOrganizationEntity(requestParameters.entityId, requestParameters.organizationEntityUpdateInputs, options).then((request) => request(axios, basePath));
120505
+ },
120506
+ };
120507
+ };
120508
+
120509
+ /**
120510
+ * Request parameters for createOrganizationEntity operation in OrganizationEntitiesApi.
120511
+ */
120512
+ export interface OrganizationEntitiesApiCreateOrganizationEntityRequest {
120513
+ readonly organizationEntityCreateInputs: OrganizationEntityCreateInputs
120514
+ }
120515
+
120516
+ /**
120517
+ * Request parameters for deleteOrganizationEntity operation in OrganizationEntitiesApi.
120518
+ */
120519
+ export interface OrganizationEntitiesApiDeleteOrganizationEntityRequest {
120520
+ /**
120521
+ * The entity identifier
120522
+ */
120523
+ readonly entityId: string
120524
+ }
120525
+
120526
+ /**
120527
+ * Request parameters for getOrganizationEntities operation in OrganizationEntitiesApi.
120528
+ */
120529
+ export interface OrganizationEntitiesApiGetOrganizationEntitiesRequest {
120530
+ /**
120531
+ * Page number
120532
+ */
120533
+ readonly page?: number
120534
+
120535
+ /**
120536
+ * Number of items per page
120537
+ */
120538
+ readonly pageSize?: number
120539
+
120540
+ /**
120541
+ * Field to order by
120542
+ */
120543
+ readonly orderBy?: string
120544
+
120545
+ /**
120546
+ * Search query
120547
+ */
120548
+ readonly search?: string
120549
+ }
120550
+
120551
+ /**
120552
+ * Request parameters for getOrganizationEntity operation in OrganizationEntitiesApi.
120553
+ */
120554
+ export interface OrganizationEntitiesApiGetOrganizationEntityRequest {
120555
+ /**
120556
+ * The entity identifier
120557
+ */
120558
+ readonly entityId: string
120559
+ }
120560
+
120561
+ /**
120562
+ * Request parameters for setPrimaryOrganizationEntity operation in OrganizationEntitiesApi.
120563
+ */
120564
+ export interface OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest {
120565
+ /**
120566
+ * The entity identifier
120567
+ */
120568
+ readonly entityId: string
120569
+ }
120570
+
120571
+ /**
120572
+ * Request parameters for updateOrganizationEntity operation in OrganizationEntitiesApi.
120573
+ */
120574
+ export interface OrganizationEntitiesApiUpdateOrganizationEntityRequest {
120575
+ /**
120576
+ * The entity identifier
120577
+ */
120578
+ readonly entityId: string
120579
+
120580
+ readonly organizationEntityUpdateInputs: OrganizationEntityUpdateInputs
120581
+ }
120582
+
120583
+ /**
120584
+ * OrganizationEntitiesApi - object-oriented interface
120585
+ */
120586
+ export class OrganizationEntitiesApi extends BaseAPI {
120587
+ /**
120588
+ * 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.
120589
+ * @summary Create an organization legal entity
120590
+ * @param {OrganizationEntitiesApiCreateOrganizationEntityRequest} requestParameters Request parameters.
120591
+ * @param {*} [options] Override http request option.
120592
+ * @throws {RequiredError}
120593
+ */
120594
+ public createOrganizationEntity(requestParameters: OrganizationEntitiesApiCreateOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120595
+ return OrganizationEntitiesApiFp(this.configuration).createOrganizationEntity(requestParameters.organizationEntityCreateInputs, options).then((request) => request(this.axios, this.basePath));
120596
+ }
120597
+
120598
+ /**
120599
+ * 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.
120600
+ * @summary Delete an organization legal entity
120601
+ * @param {OrganizationEntitiesApiDeleteOrganizationEntityRequest} requestParameters Request parameters.
120602
+ * @param {*} [options] Override http request option.
120603
+ * @throws {RequiredError}
120604
+ */
120605
+ public deleteOrganizationEntity(requestParameters: OrganizationEntitiesApiDeleteOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120606
+ return OrganizationEntitiesApiFp(this.configuration).deleteOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
120607
+ }
120608
+
120609
+ /**
120610
+ * 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.
120611
+ * @summary List an organization\'s legal entities
120612
+ * @param {OrganizationEntitiesApiGetOrganizationEntitiesRequest} requestParameters Request parameters.
120613
+ * @param {*} [options] Override http request option.
120614
+ * @throws {RequiredError}
120615
+ */
120616
+ public getOrganizationEntities(requestParameters: OrganizationEntitiesApiGetOrganizationEntitiesRequest = {}, options?: RawAxiosRequestConfig) {
120617
+ return OrganizationEntitiesApiFp(this.configuration).getOrganizationEntities(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
120618
+ }
120619
+
120620
+ /**
120621
+ * Retrieves a single legal entity by ID, including its registered address, VAT registration details and invoice numbering configuration.
120622
+ * @summary Get an organization legal entity
120623
+ * @param {OrganizationEntitiesApiGetOrganizationEntityRequest} requestParameters Request parameters.
120624
+ * @param {*} [options] Override http request option.
120625
+ * @throws {RequiredError}
120626
+ */
120627
+ public getOrganizationEntity(requestParameters: OrganizationEntitiesApiGetOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120628
+ return OrganizationEntitiesApiFp(this.configuration).getOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
120629
+ }
120630
+
120631
+ /**
120632
+ * 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.
120633
+ * @summary Set an organization legal entity as primary
120634
+ * @param {OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest} requestParameters Request parameters.
120635
+ * @param {*} [options] Override http request option.
120636
+ * @throws {RequiredError}
120637
+ */
120638
+ public setPrimaryOrganizationEntity(requestParameters: OrganizationEntitiesApiSetPrimaryOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120639
+ return OrganizationEntitiesApiFp(this.configuration).setPrimaryOrganizationEntity(requestParameters.entityId, options).then((request) => request(this.axios, this.basePath));
120640
+ }
120641
+
120642
+ /**
120643
+ * 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.
120644
+ * @summary Update an organization legal entity
120645
+ * @param {OrganizationEntitiesApiUpdateOrganizationEntityRequest} requestParameters Request parameters.
120646
+ * @param {*} [options] Override http request option.
120647
+ * @throws {RequiredError}
120648
+ */
120649
+ public updateOrganizationEntity(requestParameters: OrganizationEntitiesApiUpdateOrganizationEntityRequest, options?: RawAxiosRequestConfig) {
120650
+ return OrganizationEntitiesApiFp(this.configuration).updateOrganizationEntity(requestParameters.entityId, requestParameters.organizationEntityUpdateInputs, options).then((request) => request(this.axios, this.basePath));
120651
+ }
120652
+ }
120653
+
120654
+
120655
+
119938
120656
  /**
119939
120657
  * OrganizationIntegrationsApi - axios parameter creator
119940
120658
  */