yellowgrid-api-ts 3.2.114-dev.0 → 3.2.116-dev.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
@@ -259,16 +259,28 @@ export interface AccountPageDetailsDTO {
259
259
  * Company
260
260
  */
261
261
  'companyName'?: string;
262
- 'billingAddress'?: AddressModel;
263
- 'shippingAddress'?: AddressModel;
262
+ 'billingAddress'?: AddressDTO;
263
+ 'shippingAddress'?: AddressDTO;
264
264
  /**
265
265
  * Addresses
266
266
  */
267
- 'previousShippingAddreses'?: Array<AddressModel>;
267
+ 'previousShippingAddreses'?: Array<AddressDTO>;
268
268
  /**
269
269
  * Portal Access
270
270
  */
271
271
  'portalAccess'?: boolean;
272
+ /**
273
+ * Phone
274
+ */
275
+ 'phone'?: string;
276
+ /**
277
+ * VAT Number
278
+ */
279
+ 'vatNumber'?: string;
280
+ /**
281
+ * Company Number
282
+ */
283
+ 'companyNumber'?: string;
272
284
  /**
273
285
  * CNAME
274
286
  */
@@ -393,10 +405,6 @@ export interface AccountsResponseModel {
393
405
  * Address
394
406
  */
395
407
  export interface AddressDTO {
396
- /**
397
- * Company
398
- */
399
- 'company'?: string;
400
408
  /**
401
409
  * Address Line 1
402
410
  */
@@ -2353,6 +2361,42 @@ export const HostingRegionDTOCodeEnum = {
2353
2361
 
2354
2362
  export type HostingRegionDTOCodeEnum = typeof HostingRegionDTOCodeEnum[keyof typeof HostingRegionDTOCodeEnum];
2355
2363
 
2364
+ /**
2365
+ * Installation Passwords
2366
+ */
2367
+ export interface InstallationDetailsDTO {
2368
+ /**
2369
+ * PBX IP Address
2370
+ */
2371
+ 'ipAddress'?: string | null;
2372
+ /**
2373
+ * PBX Failover IP Address
2374
+ */
2375
+ 'failoverIpAddress'?: string | null;
2376
+ /**
2377
+ * Instance ID
2378
+ */
2379
+ 'instanceId'?: string | null;
2380
+ /**
2381
+ * Project ID
2382
+ */
2383
+ 'project'?: string | null;
2384
+ 'sshKey'?: GenericFileModel;
2385
+ /**
2386
+ * Root Password
2387
+ */
2388
+ 'osPassword'?: string | null;
2389
+ 'systemOwner'?: TcxUsersEntity;
2390
+ /**
2391
+ * Admin Email
2392
+ */
2393
+ 'email'?: string | null;
2394
+ /**
2395
+ * 3CX Console URL
2396
+ */
2397
+ 'url'?: string | null;
2398
+ 'backup'?: RemoteStorageDTO;
2399
+ }
2356
2400
  /**
2357
2401
  * InstanceFailoverIpsEntity
2358
2402
  */
@@ -3938,12 +3982,30 @@ export interface PatchUpdateAccountCnameRequest {
3938
3982
  */
3939
3983
  'cname'?: string;
3940
3984
  }
3985
+ export interface PatchUpdateAccountCompanyNumberRequest {
3986
+ /**
3987
+ * Company Number
3988
+ */
3989
+ 'companyNumber'?: string;
3990
+ }
3941
3991
  export interface PatchUpdateAccountContactPasswordRequest {
3942
3992
  /**
3943
3993
  * Password
3944
3994
  */
3945
3995
  'password'?: string;
3946
3996
  }
3997
+ export interface PatchUpdateAccountPhoneRequest {
3998
+ /**
3999
+ * Phone
4000
+ */
4001
+ 'phone'?: string;
4002
+ }
4003
+ export interface PatchUpdateAccountVatNumberRequest {
4004
+ /**
4005
+ * VAT Number
4006
+ */
4007
+ 'vatNumber'?: string;
4008
+ }
3947
4009
  /**
3948
4010
  * Customer Account
3949
4011
  */
@@ -4301,6 +4363,10 @@ export interface ProductSummaryDTO {
4301
4363
  * Stock Product
4302
4364
  */
4303
4365
  'stockProduct'?: boolean;
4366
+ /**
4367
+ * Date Time
4368
+ */
4369
+ 'dueDate'?: string | null;
4304
4370
  /**
4305
4371
  * Price
4306
4372
  */
@@ -4495,6 +4561,27 @@ export interface RecordingsBackupInfoDTO {
4495
4561
  'backup'?: RecordingBackupAzureModel | null;
4496
4562
  'storage'?: TcxRemoteStorageModel | null;
4497
4563
  }
4564
+ /**
4565
+ * Remote Storage
4566
+ */
4567
+ export interface RemoteStorageDTO {
4568
+ /**
4569
+ * AWS ID
4570
+ */
4571
+ 'id'?: string;
4572
+ /**
4573
+ * AWS Secret
4574
+ */
4575
+ 'secret'?: string;
4576
+ /**
4577
+ * AWS Bucket Name
4578
+ */
4579
+ 'name'?: string;
4580
+ /**
4581
+ * AWS Region
4582
+ */
4583
+ 'region'?: string;
4584
+ }
4498
4585
  /**
4499
4586
  * Resource Not Ready
4500
4587
  */
@@ -6543,57 +6630,6 @@ export interface TcxHostingPricingEntity {
6543
6630
  */
6544
6631
  'highScDiscount'?: number;
6545
6632
  }
6546
- /**
6547
- * 3CX Installation Details
6548
- */
6549
- export interface TcxInstallationDetailsModel {
6550
- /**
6551
- * PBX IP Address
6552
- */
6553
- 'ipAddress'?: string | null;
6554
- /**
6555
- * Instance ID
6556
- */
6557
- 'instanceId'?: string | null;
6558
- /**
6559
- * Project ID
6560
- */
6561
- 'project'?: string | null;
6562
- 'privateKey'?: GenericFileModel | null;
6563
- /**
6564
- * Root Password
6565
- */
6566
- 'rootPassword'?: string | null;
6567
- 'ownerExtension'?: TcxUsersEntity | null;
6568
- /**
6569
- * Admin Email
6570
- */
6571
- 'adminEmail'?: string | null;
6572
- /**
6573
- * Console URL
6574
- */
6575
- 'url'?: string | null;
6576
- /**
6577
- * Admin Username
6578
- */
6579
- 'adminUsername'?: string | null;
6580
- /**
6581
- * Admin Password
6582
- */
6583
- 'adminPassword'?: string | null;
6584
- /**
6585
- * Config Backup FTP Host
6586
- */
6587
- 'ftpHost'?: string | null;
6588
- /**
6589
- * Config Backup FTP Username
6590
- */
6591
- 'ftpUsername'?: string | null;
6592
- /**
6593
- * Config Backup FTP Password
6594
- */
6595
- 'ftpPassword'?: string | null;
6596
- }
6597
6633
  /**
6598
6634
  * 3CX Installation
6599
6635
  */
@@ -7177,6 +7213,10 @@ export interface TcxSbcDTO {
7177
7213
  * 3CX SBC Key
7178
7214
  */
7179
7215
  'tcxKey'?: string;
7216
+ /**
7217
+ * 3CX SBC Configured
7218
+ */
7219
+ 'configured'?: boolean;
7180
7220
  }
7181
7221
  /**
7182
7222
  * 3CX Wizard SBC
@@ -7316,6 +7356,19 @@ export interface TcxSbcModel {
7316
7356
  */
7317
7357
  'technicalContact'?: string;
7318
7358
  }
7359
+ /**
7360
+ * 3CX SBC Response
7361
+ */
7362
+ export interface TcxSbcResponseDTO {
7363
+ /**
7364
+ * Status
7365
+ */
7366
+ 'status'?: string;
7367
+ /**
7368
+ * Message
7369
+ */
7370
+ 'message'?: string;
7371
+ }
7319
7372
  /**
7320
7373
  * 3CX Wizard Setup Config
7321
7374
  */
@@ -8352,7 +8405,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8352
8405
  };
8353
8406
  },
8354
8407
  /**
8355
- * Set Account Prize Promo
8408
+ * Set Account CNAME
8356
8409
  * @param {string} id Xero ID
8357
8410
  * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8358
8411
  * @param {*} [options] Override http request option.
@@ -8386,6 +8439,41 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8386
8439
  options: localVarRequestOptions,
8387
8440
  };
8388
8441
  },
8442
+ /**
8443
+ * Set Account Company Number
8444
+ * @param {string} id Xero ID
8445
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
8446
+ * @param {*} [options] Override http request option.
8447
+ * @throws {RequiredError}
8448
+ */
8449
+ patchUpdateAccountCompanyNumber: async (id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8450
+ // verify required parameter 'id' is not null or undefined
8451
+ assertParamExists('patchUpdateAccountCompanyNumber', 'id', id)
8452
+ const localVarPath = `/admin/accounts/{id}/companyNumber`
8453
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8454
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8455
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8456
+ let baseOptions;
8457
+ if (configuration) {
8458
+ baseOptions = configuration.baseOptions;
8459
+ }
8460
+
8461
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8462
+ const localVarHeaderParameter = {} as any;
8463
+ const localVarQueryParameter = {} as any;
8464
+
8465
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8466
+
8467
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8468
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8469
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8470
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCompanyNumberRequest, localVarRequestOptions, configuration)
8471
+
8472
+ return {
8473
+ url: toPathString(localVarUrlObj),
8474
+ options: localVarRequestOptions,
8475
+ };
8476
+ },
8389
8477
  /**
8390
8478
  * Update Account Password
8391
8479
  * @summary Update Account Password
@@ -8425,6 +8513,76 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8425
8513
  options: localVarRequestOptions,
8426
8514
  };
8427
8515
  },
8516
+ /**
8517
+ * Set Account Phone
8518
+ * @param {string} id Xero ID
8519
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
8520
+ * @param {*} [options] Override http request option.
8521
+ * @throws {RequiredError}
8522
+ */
8523
+ patchUpdateAccountPhone: async (id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8524
+ // verify required parameter 'id' is not null or undefined
8525
+ assertParamExists('patchUpdateAccountPhone', 'id', id)
8526
+ const localVarPath = `/admin/accounts/{id}/phone`
8527
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8528
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8529
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8530
+ let baseOptions;
8531
+ if (configuration) {
8532
+ baseOptions = configuration.baseOptions;
8533
+ }
8534
+
8535
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8536
+ const localVarHeaderParameter = {} as any;
8537
+ const localVarQueryParameter = {} as any;
8538
+
8539
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8540
+
8541
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8542
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8543
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8544
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountPhoneRequest, localVarRequestOptions, configuration)
8545
+
8546
+ return {
8547
+ url: toPathString(localVarUrlObj),
8548
+ options: localVarRequestOptions,
8549
+ };
8550
+ },
8551
+ /**
8552
+ * Set Account VAT Number
8553
+ * @param {string} id Xero ID
8554
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
8555
+ * @param {*} [options] Override http request option.
8556
+ * @throws {RequiredError}
8557
+ */
8558
+ patchUpdateAccountVatNumber: async (id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8559
+ // verify required parameter 'id' is not null or undefined
8560
+ assertParamExists('patchUpdateAccountVatNumber', 'id', id)
8561
+ const localVarPath = `/admin/accounts/{id}/vat`
8562
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8564
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8565
+ let baseOptions;
8566
+ if (configuration) {
8567
+ baseOptions = configuration.baseOptions;
8568
+ }
8569
+
8570
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8571
+ const localVarHeaderParameter = {} as any;
8572
+ const localVarQueryParameter = {} as any;
8573
+
8574
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8575
+
8576
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8577
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8578
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8579
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountVatNumberRequest, localVarRequestOptions, configuration)
8580
+
8581
+ return {
8582
+ url: toPathString(localVarUrlObj),
8583
+ options: localVarRequestOptions,
8584
+ };
8585
+ },
8428
8586
  /**
8429
8587
  * Add Account Contacts
8430
8588
  * @summary Add Account Contact
@@ -8984,7 +9142,7 @@ export const AccountsApiFp = function(configuration?: Configuration) {
8984
9142
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8985
9143
  },
8986
9144
  /**
8987
- * Set Account Prize Promo
9145
+ * Set Account CNAME
8988
9146
  * @param {string} id Xero ID
8989
9147
  * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8990
9148
  * @param {*} [options] Override http request option.
@@ -8996,6 +9154,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
8996
9154
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountCname']?.[localVarOperationServerIndex]?.url;
8997
9155
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8998
9156
  },
9157
+ /**
9158
+ * Set Account Company Number
9159
+ * @param {string} id Xero ID
9160
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
9161
+ * @param {*} [options] Override http request option.
9162
+ * @throws {RequiredError}
9163
+ */
9164
+ async patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9165
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options);
9166
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9167
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountCompanyNumber']?.[localVarOperationServerIndex]?.url;
9168
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9169
+ },
8999
9170
  /**
9000
9171
  * Update Account Password
9001
9172
  * @summary Update Account Password
@@ -9010,6 +9181,32 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9010
9181
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountContactPassword']?.[localVarOperationServerIndex]?.url;
9011
9182
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9012
9183
  },
9184
+ /**
9185
+ * Set Account Phone
9186
+ * @param {string} id Xero ID
9187
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
9188
+ * @param {*} [options] Override http request option.
9189
+ * @throws {RequiredError}
9190
+ */
9191
+ async patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9192
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options);
9193
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9194
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountPhone']?.[localVarOperationServerIndex]?.url;
9195
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9196
+ },
9197
+ /**
9198
+ * Set Account VAT Number
9199
+ * @param {string} id Xero ID
9200
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
9201
+ * @param {*} [options] Override http request option.
9202
+ * @throws {RequiredError}
9203
+ */
9204
+ async patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9205
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options);
9206
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9207
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountVatNumber']?.[localVarOperationServerIndex]?.url;
9208
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9209
+ },
9013
9210
  /**
9014
9211
  * Add Account Contacts
9015
9212
  * @summary Add Account Contact
@@ -9293,7 +9490,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9293
9490
  return localVarFp.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then((request) => request(axios, basePath));
9294
9491
  },
9295
9492
  /**
9296
- * Set Account Prize Promo
9493
+ * Set Account CNAME
9297
9494
  * @param {string} id Xero ID
9298
9495
  * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
9299
9496
  * @param {*} [options] Override http request option.
@@ -9302,6 +9499,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9302
9499
  patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9303
9500
  return localVarFp.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then((request) => request(axios, basePath));
9304
9501
  },
9502
+ /**
9503
+ * Set Account Company Number
9504
+ * @param {string} id Xero ID
9505
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
9506
+ * @param {*} [options] Override http request option.
9507
+ * @throws {RequiredError}
9508
+ */
9509
+ patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9510
+ return localVarFp.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then((request) => request(axios, basePath));
9511
+ },
9305
9512
  /**
9306
9513
  * Update Account Password
9307
9514
  * @summary Update Account Password
@@ -9313,6 +9520,26 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9313
9520
  patchUpdateAccountContactPassword(token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9314
9521
  return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then((request) => request(axios, basePath));
9315
9522
  },
9523
+ /**
9524
+ * Set Account Phone
9525
+ * @param {string} id Xero ID
9526
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
9527
+ * @param {*} [options] Override http request option.
9528
+ * @throws {RequiredError}
9529
+ */
9530
+ patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9531
+ return localVarFp.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then((request) => request(axios, basePath));
9532
+ },
9533
+ /**
9534
+ * Set Account VAT Number
9535
+ * @param {string} id Xero ID
9536
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
9537
+ * @param {*} [options] Override http request option.
9538
+ * @throws {RequiredError}
9539
+ */
9540
+ patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9541
+ return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(axios, basePath));
9542
+ },
9316
9543
  /**
9317
9544
  * Add Account Contacts
9318
9545
  * @summary Add Account Contact
@@ -9574,7 +9801,7 @@ export class AccountsApi extends BaseAPI {
9574
9801
  }
9575
9802
 
9576
9803
  /**
9577
- * Set Account Prize Promo
9804
+ * Set Account CNAME
9578
9805
  * @param {string} id Xero ID
9579
9806
  * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
9580
9807
  * @param {*} [options] Override http request option.
@@ -9584,6 +9811,17 @@ export class AccountsApi extends BaseAPI {
9584
9811
  return AccountsApiFp(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then((request) => request(this.axios, this.basePath));
9585
9812
  }
9586
9813
 
9814
+ /**
9815
+ * Set Account Company Number
9816
+ * @param {string} id Xero ID
9817
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
9818
+ * @param {*} [options] Override http request option.
9819
+ * @throws {RequiredError}
9820
+ */
9821
+ public patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig) {
9822
+ return AccountsApiFp(this.configuration).patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then((request) => request(this.axios, this.basePath));
9823
+ }
9824
+
9587
9825
  /**
9588
9826
  * Update Account Password
9589
9827
  * @summary Update Account Password
@@ -9596,6 +9834,28 @@ export class AccountsApi extends BaseAPI {
9596
9834
  return AccountsApiFp(this.configuration).patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then((request) => request(this.axios, this.basePath));
9597
9835
  }
9598
9836
 
9837
+ /**
9838
+ * Set Account Phone
9839
+ * @param {string} id Xero ID
9840
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
9841
+ * @param {*} [options] Override http request option.
9842
+ * @throws {RequiredError}
9843
+ */
9844
+ public patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig) {
9845
+ return AccountsApiFp(this.configuration).patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then((request) => request(this.axios, this.basePath));
9846
+ }
9847
+
9848
+ /**
9849
+ * Set Account VAT Number
9850
+ * @param {string} id Xero ID
9851
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
9852
+ * @param {*} [options] Override http request option.
9853
+ * @throws {RequiredError}
9854
+ */
9855
+ public patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig) {
9856
+ return AccountsApiFp(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(this.axios, this.basePath));
9857
+ }
9858
+
9599
9859
  /**
9600
9860
  * Add Account Contacts
9601
9861
  * @summary Add Account Contact
@@ -12474,6 +12734,46 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
12474
12734
 
12475
12735
  localVarHeaderParameter['Accept'] = 'application/json';
12476
12736
 
12737
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12738
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12739
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12740
+
12741
+ return {
12742
+ url: toPathString(localVarUrlObj),
12743
+ options: localVarRequestOptions,
12744
+ };
12745
+ },
12746
+ /**
12747
+ * Change instance owner
12748
+ * @summary Change instance owner
12749
+ * @param {string} instanceId Instance ID
12750
+ * @param {number} customerId Customer ID
12751
+ * @param {*} [options] Override http request option.
12752
+ * @throws {RequiredError}
12753
+ */
12754
+ patchChangeInstanceOwner: async (instanceId: string, customerId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12755
+ // verify required parameter 'instanceId' is not null or undefined
12756
+ assertParamExists('patchChangeInstanceOwner', 'instanceId', instanceId)
12757
+ // verify required parameter 'customerId' is not null or undefined
12758
+ assertParamExists('patchChangeInstanceOwner', 'customerId', customerId)
12759
+ const localVarPath = `/tcx/installations/{instance_id}/owner`
12760
+ .replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
12761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12763
+ let baseOptions;
12764
+ if (configuration) {
12765
+ baseOptions = configuration.baseOptions;
12766
+ }
12767
+
12768
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12769
+ const localVarHeaderParameter = {} as any;
12770
+ const localVarQueryParameter = {} as any;
12771
+
12772
+ if (customerId !== undefined) {
12773
+ localVarQueryParameter['customer_id'] = customerId;
12774
+ }
12775
+
12776
+
12477
12777
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12478
12778
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12479
12779
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12649,17 +12949,15 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
12649
12949
  * @summary Extend additional disk on 3CX Instance
12650
12950
  * @param {string} instanceId Instance ID
12651
12951
  * @param {number} gigabytes Disk Space (GB)
12652
- * @param {string} schedule Scheduled Task (Date &amp; Time)
12952
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
12653
12953
  * @param {*} [options] Override http request option.
12654
12954
  * @throws {RequiredError}
12655
12955
  */
12656
- postExtendDisk: async (instanceId: string, gigabytes: number, schedule: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12956
+ postExtendDisk: async (instanceId: string, gigabytes: number, schedule?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12657
12957
  // verify required parameter 'instanceId' is not null or undefined
12658
12958
  assertParamExists('postExtendDisk', 'instanceId', instanceId)
12659
12959
  // verify required parameter 'gigabytes' is not null or undefined
12660
12960
  assertParamExists('postExtendDisk', 'gigabytes', gigabytes)
12661
- // verify required parameter 'schedule' is not null or undefined
12662
- assertParamExists('postExtendDisk', 'schedule', schedule)
12663
12961
  const localVarPath = `/tcx/installations/{instance_id}/disk/extend`
12664
12962
  .replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
12665
12963
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -12722,6 +13020,40 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
12722
13020
  }
12723
13021
 
12724
13022
 
13023
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13024
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13025
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13026
+
13027
+ return {
13028
+ url: toPathString(localVarUrlObj),
13029
+ options: localVarRequestOptions,
13030
+ };
13031
+ },
13032
+ /**
13033
+ * Install 3CX SBC
13034
+ * @summary Install 3CX SBC
13035
+ * @param {number} sbcId SBC ID
13036
+ * @param {*} [options] Override http request option.
13037
+ * @throws {RequiredError}
13038
+ */
13039
+ postInstallTcxSbc: async (sbcId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13040
+ // verify required parameter 'sbcId' is not null or undefined
13041
+ assertParamExists('postInstallTcxSbc', 'sbcId', sbcId)
13042
+ const localVarPath = `/tcx/installations/sbcs/{sbc_id}/install`
13043
+ .replace(`{${"sbc_id"}}`, encodeURIComponent(String(sbcId)));
13044
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13045
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13046
+ let baseOptions;
13047
+ if (configuration) {
13048
+ baseOptions = configuration.baseOptions;
13049
+ }
13050
+
13051
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13052
+ const localVarHeaderParameter = {} as any;
13053
+ const localVarQueryParameter = {} as any;
13054
+
13055
+ localVarHeaderParameter['Accept'] = 'application/json';
13056
+
12725
13057
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12726
13058
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12727
13059
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12800,6 +13132,82 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
12800
13132
  }
12801
13133
 
12802
13134
 
13135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13137
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13138
+
13139
+ return {
13140
+ url: toPathString(localVarUrlObj),
13141
+ options: localVarRequestOptions,
13142
+ };
13143
+ },
13144
+ /**
13145
+ * Restart 3CX Services
13146
+ * @summary Restart 3CX Services
13147
+ * @param {string} instanceId Instance ID
13148
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13149
+ * @param {*} [options] Override http request option.
13150
+ * @throws {RequiredError}
13151
+ */
13152
+ postRestartServices: async (instanceId: string, schedule?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13153
+ // verify required parameter 'instanceId' is not null or undefined
13154
+ assertParamExists('postRestartServices', 'instanceId', instanceId)
13155
+ const localVarPath = `/tcx/installations/{instance_id}/services/restart`
13156
+ .replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
13157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13159
+ let baseOptions;
13160
+ if (configuration) {
13161
+ baseOptions = configuration.baseOptions;
13162
+ }
13163
+
13164
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13165
+ const localVarHeaderParameter = {} as any;
13166
+ const localVarQueryParameter = {} as any;
13167
+
13168
+ if (schedule !== undefined) {
13169
+ localVarQueryParameter['schedule'] = schedule;
13170
+ }
13171
+
13172
+
13173
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13174
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13175
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13176
+
13177
+ return {
13178
+ url: toPathString(localVarUrlObj),
13179
+ options: localVarRequestOptions,
13180
+ };
13181
+ },
13182
+ /**
13183
+ * Reboot Instance
13184
+ * @summary Reboot Instance
13185
+ * @param {string} instanceId Instance ID
13186
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13187
+ * @param {*} [options] Override http request option.
13188
+ * @throws {RequiredError}
13189
+ */
13190
+ postScheduledReboot: async (instanceId: string, schedule?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13191
+ // verify required parameter 'instanceId' is not null or undefined
13192
+ assertParamExists('postScheduledReboot', 'instanceId', instanceId)
13193
+ const localVarPath = `/tcx/installations/{instance_id}/reboot/scheduled`
13194
+ .replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
13195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13196
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13197
+ let baseOptions;
13198
+ if (configuration) {
13199
+ baseOptions = configuration.baseOptions;
13200
+ }
13201
+
13202
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13203
+ const localVarHeaderParameter = {} as any;
13204
+ const localVarQueryParameter = {} as any;
13205
+
13206
+ if (schedule !== undefined) {
13207
+ localVarQueryParameter['schedule'] = schedule;
13208
+ }
13209
+
13210
+
12803
13211
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12804
13212
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12805
13213
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12838,6 +13246,39 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
12838
13246
  }
12839
13247
 
12840
13248
 
13249
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13251
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13252
+
13253
+ return {
13254
+ url: toPathString(localVarUrlObj),
13255
+ options: localVarRequestOptions,
13256
+ };
13257
+ },
13258
+ /**
13259
+ * Test 3CX Login Credentials
13260
+ * @summary Test 3CX Login Credentials
13261
+ * @param {string} instanceId Instance ID
13262
+ * @param {*} [options] Override http request option.
13263
+ * @throws {RequiredError}
13264
+ */
13265
+ postTestLoginCredentials: async (instanceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13266
+ // verify required parameter 'instanceId' is not null or undefined
13267
+ assertParamExists('postTestLoginCredentials', 'instanceId', instanceId)
13268
+ const localVarPath = `/tcx/installations/{instance_id}/tests/login`
13269
+ .replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
13270
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13271
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13272
+ let baseOptions;
13273
+ if (configuration) {
13274
+ baseOptions = configuration.baseOptions;
13275
+ }
13276
+
13277
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13278
+ const localVarHeaderParameter = {} as any;
13279
+ const localVarQueryParameter = {} as any;
13280
+
13281
+
12841
13282
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12842
13283
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12843
13284
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12936,7 +13377,7 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
12936
13377
  * @param {*} [options] Override http request option.
12937
13378
  * @throws {RequiredError}
12938
13379
  */
12939
- async getGetDetails(wizardId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxInstallationDetailsModel>> {
13380
+ async getGetDetails(wizardId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstallationDetailsDTO>> {
12940
13381
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGetDetails(wizardId, options);
12941
13382
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12942
13383
  const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.getGetDetails']?.[localVarOperationServerIndex]?.url;
@@ -12961,6 +13402,20 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
12961
13402
  const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.getGetInstallations']?.[localVarOperationServerIndex]?.url;
12962
13403
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12963
13404
  },
13405
+ /**
13406
+ * Change instance owner
13407
+ * @summary Change instance owner
13408
+ * @param {string} instanceId Instance ID
13409
+ * @param {number} customerId Customer ID
13410
+ * @param {*} [options] Override http request option.
13411
+ * @throws {RequiredError}
13412
+ */
13413
+ async patchChangeInstanceOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
13414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchChangeInstanceOwner(instanceId, customerId, options);
13415
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13416
+ const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.patchChangeInstanceOwner']?.[localVarOperationServerIndex]?.url;
13417
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13418
+ },
12964
13419
  /**
12965
13420
  * Update 3CX Instance Auto Failover
12966
13421
  * @summary Update 3CX Instance Auto Failover
@@ -13022,11 +13477,11 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
13022
13477
  * @summary Extend additional disk on 3CX Instance
13023
13478
  * @param {string} instanceId Instance ID
13024
13479
  * @param {number} gigabytes Disk Space (GB)
13025
- * @param {string} schedule Scheduled Task (Date &amp; Time)
13480
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13026
13481
  * @param {*} [options] Override http request option.
13027
13482
  * @throws {RequiredError}
13028
13483
  */
13029
- async postExtendDisk(instanceId: string, gigabytes: number, schedule: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
13484
+ async postExtendDisk(instanceId: string, gigabytes: number, schedule?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
13030
13485
  const localVarAxiosArgs = await localVarAxiosParamCreator.postExtendDisk(instanceId, gigabytes, schedule, options);
13031
13486
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13032
13487
  const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postExtendDisk']?.[localVarOperationServerIndex]?.url;
@@ -13046,6 +13501,19 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
13046
13501
  const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postFailoverInstance']?.[localVarOperationServerIndex]?.url;
13047
13502
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13048
13503
  },
13504
+ /**
13505
+ * Install 3CX SBC
13506
+ * @summary Install 3CX SBC
13507
+ * @param {number} sbcId SBC ID
13508
+ * @param {*} [options] Override http request option.
13509
+ * @throws {RequiredError}
13510
+ */
13511
+ async postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxSbcResponseDTO>> {
13512
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postInstallTcxSbc(sbcId, options);
13513
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13514
+ const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postInstallTcxSbc']?.[localVarOperationServerIndex]?.url;
13515
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13516
+ },
13049
13517
  /**
13050
13518
  * Reboot 3CX Instance
13051
13519
  * @summary Reboot 3CX Instance
@@ -13074,6 +13542,34 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
13074
13542
  const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postResizeInstance']?.[localVarOperationServerIndex]?.url;
13075
13543
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13076
13544
  },
13545
+ /**
13546
+ * Restart 3CX Services
13547
+ * @summary Restart 3CX Services
13548
+ * @param {string} instanceId Instance ID
13549
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13550
+ * @param {*} [options] Override http request option.
13551
+ * @throws {RequiredError}
13552
+ */
13553
+ async postRestartServices(instanceId: string, schedule?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
13554
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postRestartServices(instanceId, schedule, options);
13555
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13556
+ const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postRestartServices']?.[localVarOperationServerIndex]?.url;
13557
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13558
+ },
13559
+ /**
13560
+ * Reboot Instance
13561
+ * @summary Reboot Instance
13562
+ * @param {string} instanceId Instance ID
13563
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13564
+ * @param {*} [options] Override http request option.
13565
+ * @throws {RequiredError}
13566
+ */
13567
+ async postScheduledReboot(instanceId: string, schedule?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
13568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postScheduledReboot(instanceId, schedule, options);
13569
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13570
+ const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postScheduledReboot']?.[localVarOperationServerIndex]?.url;
13571
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13572
+ },
13077
13573
  /**
13078
13574
  * Suspend 3CX Instance
13079
13575
  * @summary Suspend 3CX Instance
@@ -13088,6 +13584,19 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
13088
13584
  const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postSuspendInstance']?.[localVarOperationServerIndex]?.url;
13089
13585
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13090
13586
  },
13587
+ /**
13588
+ * Test 3CX Login Credentials
13589
+ * @summary Test 3CX Login Credentials
13590
+ * @param {string} instanceId Instance ID
13591
+ * @param {*} [options] Override http request option.
13592
+ * @throws {RequiredError}
13593
+ */
13594
+ async postTestLoginCredentials(instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
13595
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postTestLoginCredentials(instanceId, options);
13596
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13597
+ const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postTestLoginCredentials']?.[localVarOperationServerIndex]?.url;
13598
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13599
+ },
13091
13600
  /**
13092
13601
  * Unsuspend 3CX Instance
13093
13602
  * @summary Unsuspend 3CX Instance
@@ -13131,7 +13640,7 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
13131
13640
  * @param {*} [options] Override http request option.
13132
13641
  * @throws {RequiredError}
13133
13642
  */
13134
- getGetDetails(wizardId: number, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationDetailsModel> {
13643
+ getGetDetails(wizardId: number, options?: RawAxiosRequestConfig): AxiosPromise<InstallationDetailsDTO> {
13135
13644
  return localVarFp.getGetDetails(wizardId, options).then((request) => request(axios, basePath));
13136
13645
  },
13137
13646
  /**
@@ -13150,6 +13659,17 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
13150
13659
  getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationsModel> {
13151
13660
  return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(axios, basePath));
13152
13661
  },
13662
+ /**
13663
+ * Change instance owner
13664
+ * @summary Change instance owner
13665
+ * @param {string} instanceId Instance ID
13666
+ * @param {number} customerId Customer ID
13667
+ * @param {*} [options] Override http request option.
13668
+ * @throws {RequiredError}
13669
+ */
13670
+ patchChangeInstanceOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13671
+ return localVarFp.patchChangeInstanceOwner(instanceId, customerId, options).then((request) => request(axios, basePath));
13672
+ },
13153
13673
  /**
13154
13674
  * Update 3CX Instance Auto Failover
13155
13675
  * @summary Update 3CX Instance Auto Failover
@@ -13199,11 +13719,11 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
13199
13719
  * @summary Extend additional disk on 3CX Instance
13200
13720
  * @param {string} instanceId Instance ID
13201
13721
  * @param {number} gigabytes Disk Space (GB)
13202
- * @param {string} schedule Scheduled Task (Date &amp; Time)
13722
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13203
13723
  * @param {*} [options] Override http request option.
13204
13724
  * @throws {RequiredError}
13205
13725
  */
13206
- postExtendDisk(instanceId: string, gigabytes: number, schedule: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13726
+ postExtendDisk(instanceId: string, gigabytes: number, schedule?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13207
13727
  return localVarFp.postExtendDisk(instanceId, gigabytes, schedule, options).then((request) => request(axios, basePath));
13208
13728
  },
13209
13729
  /**
@@ -13217,6 +13737,16 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
13217
13737
  postFailoverInstance(instanceId: string, type: PostFailoverInstanceTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13218
13738
  return localVarFp.postFailoverInstance(instanceId, type, options).then((request) => request(axios, basePath));
13219
13739
  },
13740
+ /**
13741
+ * Install 3CX SBC
13742
+ * @summary Install 3CX SBC
13743
+ * @param {number} sbcId SBC ID
13744
+ * @param {*} [options] Override http request option.
13745
+ * @throws {RequiredError}
13746
+ */
13747
+ postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig): AxiosPromise<TcxSbcResponseDTO> {
13748
+ return localVarFp.postInstallTcxSbc(sbcId, options).then((request) => request(axios, basePath));
13749
+ },
13220
13750
  /**
13221
13751
  * Reboot 3CX Instance
13222
13752
  * @summary Reboot 3CX Instance
@@ -13239,6 +13769,28 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
13239
13769
  postResizeInstance(instanceId: string, size: PostResizeInstanceSizeEnum, schedule?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13240
13770
  return localVarFp.postResizeInstance(instanceId, size, schedule, options).then((request) => request(axios, basePath));
13241
13771
  },
13772
+ /**
13773
+ * Restart 3CX Services
13774
+ * @summary Restart 3CX Services
13775
+ * @param {string} instanceId Instance ID
13776
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13777
+ * @param {*} [options] Override http request option.
13778
+ * @throws {RequiredError}
13779
+ */
13780
+ postRestartServices(instanceId: string, schedule?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13781
+ return localVarFp.postRestartServices(instanceId, schedule, options).then((request) => request(axios, basePath));
13782
+ },
13783
+ /**
13784
+ * Reboot Instance
13785
+ * @summary Reboot Instance
13786
+ * @param {string} instanceId Instance ID
13787
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13788
+ * @param {*} [options] Override http request option.
13789
+ * @throws {RequiredError}
13790
+ */
13791
+ postScheduledReboot(instanceId: string, schedule?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13792
+ return localVarFp.postScheduledReboot(instanceId, schedule, options).then((request) => request(axios, basePath));
13793
+ },
13242
13794
  /**
13243
13795
  * Suspend 3CX Instance
13244
13796
  * @summary Suspend 3CX Instance
@@ -13250,6 +13802,16 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
13250
13802
  postSuspendInstance(instanceId: string, schedule?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13251
13803
  return localVarFp.postSuspendInstance(instanceId, schedule, options).then((request) => request(axios, basePath));
13252
13804
  },
13805
+ /**
13806
+ * Test 3CX Login Credentials
13807
+ * @summary Test 3CX Login Credentials
13808
+ * @param {string} instanceId Instance ID
13809
+ * @param {*} [options] Override http request option.
13810
+ * @throws {RequiredError}
13811
+ */
13812
+ postTestLoginCredentials(instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13813
+ return localVarFp.postTestLoginCredentials(instanceId, options).then((request) => request(axios, basePath));
13814
+ },
13253
13815
  /**
13254
13816
  * Unsuspend 3CX Instance
13255
13817
  * @summary Unsuspend 3CX Instance
@@ -13306,6 +13868,18 @@ export class Class3CXInstallationsApi extends BaseAPI {
13306
13868
  return Class3CXInstallationsApiFp(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(this.axios, this.basePath));
13307
13869
  }
13308
13870
 
13871
+ /**
13872
+ * Change instance owner
13873
+ * @summary Change instance owner
13874
+ * @param {string} instanceId Instance ID
13875
+ * @param {number} customerId Customer ID
13876
+ * @param {*} [options] Override http request option.
13877
+ * @throws {RequiredError}
13878
+ */
13879
+ public patchChangeInstanceOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig) {
13880
+ return Class3CXInstallationsApiFp(this.configuration).patchChangeInstanceOwner(instanceId, customerId, options).then((request) => request(this.axios, this.basePath));
13881
+ }
13882
+
13309
13883
  /**
13310
13884
  * Update 3CX Instance Auto Failover
13311
13885
  * @summary Update 3CX Instance Auto Failover
@@ -13359,11 +13933,11 @@ export class Class3CXInstallationsApi extends BaseAPI {
13359
13933
  * @summary Extend additional disk on 3CX Instance
13360
13934
  * @param {string} instanceId Instance ID
13361
13935
  * @param {number} gigabytes Disk Space (GB)
13362
- * @param {string} schedule Scheduled Task (Date &amp; Time)
13936
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13363
13937
  * @param {*} [options] Override http request option.
13364
13938
  * @throws {RequiredError}
13365
13939
  */
13366
- public postExtendDisk(instanceId: string, gigabytes: number, schedule: string, options?: RawAxiosRequestConfig) {
13940
+ public postExtendDisk(instanceId: string, gigabytes: number, schedule?: string, options?: RawAxiosRequestConfig) {
13367
13941
  return Class3CXInstallationsApiFp(this.configuration).postExtendDisk(instanceId, gigabytes, schedule, options).then((request) => request(this.axios, this.basePath));
13368
13942
  }
13369
13943
 
@@ -13379,6 +13953,17 @@ export class Class3CXInstallationsApi extends BaseAPI {
13379
13953
  return Class3CXInstallationsApiFp(this.configuration).postFailoverInstance(instanceId, type, options).then((request) => request(this.axios, this.basePath));
13380
13954
  }
13381
13955
 
13956
+ /**
13957
+ * Install 3CX SBC
13958
+ * @summary Install 3CX SBC
13959
+ * @param {number} sbcId SBC ID
13960
+ * @param {*} [options] Override http request option.
13961
+ * @throws {RequiredError}
13962
+ */
13963
+ public postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig) {
13964
+ return Class3CXInstallationsApiFp(this.configuration).postInstallTcxSbc(sbcId, options).then((request) => request(this.axios, this.basePath));
13965
+ }
13966
+
13382
13967
  /**
13383
13968
  * Reboot 3CX Instance
13384
13969
  * @summary Reboot 3CX Instance
@@ -13403,6 +13988,30 @@ export class Class3CXInstallationsApi extends BaseAPI {
13403
13988
  return Class3CXInstallationsApiFp(this.configuration).postResizeInstance(instanceId, size, schedule, options).then((request) => request(this.axios, this.basePath));
13404
13989
  }
13405
13990
 
13991
+ /**
13992
+ * Restart 3CX Services
13993
+ * @summary Restart 3CX Services
13994
+ * @param {string} instanceId Instance ID
13995
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
13996
+ * @param {*} [options] Override http request option.
13997
+ * @throws {RequiredError}
13998
+ */
13999
+ public postRestartServices(instanceId: string, schedule?: string, options?: RawAxiosRequestConfig) {
14000
+ return Class3CXInstallationsApiFp(this.configuration).postRestartServices(instanceId, schedule, options).then((request) => request(this.axios, this.basePath));
14001
+ }
14002
+
14003
+ /**
14004
+ * Reboot Instance
14005
+ * @summary Reboot Instance
14006
+ * @param {string} instanceId Instance ID
14007
+ * @param {string} [schedule] Scheduled Task (Date &amp; Time)
14008
+ * @param {*} [options] Override http request option.
14009
+ * @throws {RequiredError}
14010
+ */
14011
+ public postScheduledReboot(instanceId: string, schedule?: string, options?: RawAxiosRequestConfig) {
14012
+ return Class3CXInstallationsApiFp(this.configuration).postScheduledReboot(instanceId, schedule, options).then((request) => request(this.axios, this.basePath));
14013
+ }
14014
+
13406
14015
  /**
13407
14016
  * Suspend 3CX Instance
13408
14017
  * @summary Suspend 3CX Instance
@@ -13415,6 +14024,17 @@ export class Class3CXInstallationsApi extends BaseAPI {
13415
14024
  return Class3CXInstallationsApiFp(this.configuration).postSuspendInstance(instanceId, schedule, options).then((request) => request(this.axios, this.basePath));
13416
14025
  }
13417
14026
 
14027
+ /**
14028
+ * Test 3CX Login Credentials
14029
+ * @summary Test 3CX Login Credentials
14030
+ * @param {string} instanceId Instance ID
14031
+ * @param {*} [options] Override http request option.
14032
+ * @throws {RequiredError}
14033
+ */
14034
+ public postTestLoginCredentials(instanceId: string, options?: RawAxiosRequestConfig) {
14035
+ return Class3CXInstallationsApiFp(this.configuration).postTestLoginCredentials(instanceId, options).then((request) => request(this.axios, this.basePath));
14036
+ }
14037
+
13418
14038
  /**
13419
14039
  * Unsuspend 3CX Instance
13420
14040
  * @summary Unsuspend 3CX Instance
@@ -17187,6 +17807,44 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17187
17807
  options: localVarRequestOptions,
17188
17808
  };
17189
17809
  },
17810
+ /**
17811
+ * Process 3CX Licences (Admin)
17812
+ * @summary Process 3CX Licences (Admin)
17813
+ * @param {number} id Order ID
17814
+ * @param {number} batchId Batch ID
17815
+ * @param {*} [options] Override http request option.
17816
+ * @throws {RequiredError}
17817
+ */
17818
+ postProcessTcxLicences: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17819
+ // verify required parameter 'id' is not null or undefined
17820
+ assertParamExists('postProcessTcxLicences', 'id', id)
17821
+ // verify required parameter 'batchId' is not null or undefined
17822
+ assertParamExists('postProcessTcxLicences', 'batchId', batchId)
17823
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/licences/process`
17824
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
17825
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
17826
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17827
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17828
+ let baseOptions;
17829
+ if (configuration) {
17830
+ baseOptions = configuration.baseOptions;
17831
+ }
17832
+
17833
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17834
+ const localVarHeaderParameter = {} as any;
17835
+ const localVarQueryParameter = {} as any;
17836
+
17837
+ localVarHeaderParameter['Accept'] = 'application/json';
17838
+
17839
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17841
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17842
+
17843
+ return {
17844
+ url: toPathString(localVarUrlObj),
17845
+ options: localVarRequestOptions,
17846
+ };
17847
+ },
17190
17848
  /**
17191
17849
  * Send Order Email
17192
17850
  * @summary Send Order Email
@@ -17885,6 +18543,20 @@ export const OrdersApiFp = function(configuration?: Configuration) {
17885
18543
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.postPrintShippingLabel']?.[localVarOperationServerIndex]?.url;
17886
18544
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17887
18545
  },
18546
+ /**
18547
+ * Process 3CX Licences (Admin)
18548
+ * @summary Process 3CX Licences (Admin)
18549
+ * @param {number} id Order ID
18550
+ * @param {number} batchId Batch ID
18551
+ * @param {*} [options] Override http request option.
18552
+ * @throws {RequiredError}
18553
+ */
18554
+ async postProcessTcxLicences(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
18555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postProcessTcxLicences(id, batchId, options);
18556
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18557
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postProcessTcxLicences']?.[localVarOperationServerIndex]?.url;
18558
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18559
+ },
17888
18560
  /**
17889
18561
  * Send Order Email
17890
18562
  * @summary Send Order Email
@@ -18254,6 +18926,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
18254
18926
  postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): AxiosPromise<File> {
18255
18927
  return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(axios, basePath));
18256
18928
  },
18929
+ /**
18930
+ * Process 3CX Licences (Admin)
18931
+ * @summary Process 3CX Licences (Admin)
18932
+ * @param {number} id Order ID
18933
+ * @param {number} batchId Batch ID
18934
+ * @param {*} [options] Override http request option.
18935
+ * @throws {RequiredError}
18936
+ */
18937
+ postProcessTcxLicences(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
18938
+ return localVarFp.postProcessTcxLicences(id, batchId, options).then((request) => request(axios, basePath));
18939
+ },
18257
18940
  /**
18258
18941
  * Send Order Email
18259
18942
  * @summary Send Order Email
@@ -18610,6 +19293,18 @@ export class OrdersApi extends BaseAPI {
18610
19293
  return OrdersApiFp(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(this.axios, this.basePath));
18611
19294
  }
18612
19295
 
19296
+ /**
19297
+ * Process 3CX Licences (Admin)
19298
+ * @summary Process 3CX Licences (Admin)
19299
+ * @param {number} id Order ID
19300
+ * @param {number} batchId Batch ID
19301
+ * @param {*} [options] Override http request option.
19302
+ * @throws {RequiredError}
19303
+ */
19304
+ public postProcessTcxLicences(id: number, batchId: number, options?: RawAxiosRequestConfig) {
19305
+ return OrdersApiFp(this.configuration).postProcessTcxLicences(id, batchId, options).then((request) => request(this.axios, this.basePath));
19306
+ }
19307
+
18613
19308
  /**
18614
19309
  * Send Order Email
18615
19310
  * @summary Send Order Email