yellowgrid-api-ts 3.2.132 → 3.2.133

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 (37) hide show
  1. package/.openapi-generator/FILES +21 -2
  2. package/README.md +45 -2
  3. package/api.ts +2184 -128
  4. package/dist/api.d.ts +1175 -28
  5. package/dist/api.js +2244 -219
  6. package/dist/models/HostingPriceListEnum.d.ts +28 -0
  7. package/dist/models/HostingPriceListEnum.js +30 -0
  8. package/docs/AccountAddressesDTO.md +25 -0
  9. package/docs/AccountFinanceDTO.md +37 -0
  10. package/docs/AccountsApi.md +1331 -53
  11. package/docs/AddressDTO.md +31 -0
  12. package/docs/AdminUserModel.md +2 -0
  13. package/docs/CRMApi.md +120 -0
  14. package/docs/{PostAddAdminNoteRequest.md → CreateCrmNoteBody.md} +3 -3
  15. package/docs/CreditAccountEntity.md +4 -0
  16. package/docs/CrmActivitiesResponseDTO.md +23 -0
  17. package/docs/CrmActivityDTO.md +33 -0
  18. package/docs/CrmDateActivitiesDTO.md +23 -0
  19. package/docs/CrmNoteEntity.md +39 -0
  20. package/docs/CrmNoteModel.md +39 -0
  21. package/docs/NumberPortAdminNoteBody.md +20 -0
  22. package/docs/NumberPortingApi.md +5 -5
  23. package/docs/PartnerDTO.md +39 -0
  24. package/docs/{PatchSetTcxWizardCnameRequest.md → PatchUpdateAccountCnameRequest.md} +3 -3
  25. package/docs/PatchUpdateAccountCompanyNumberRequest.md +20 -0
  26. package/docs/PatchUpdateAccountPhoneRequest.md +20 -0
  27. package/docs/PatchUpdateAccountVatNumberRequest.md +20 -0
  28. package/docs/PatchUpdateCreditLimitRequest.md +20 -0
  29. package/docs/PatchUpdatePriceListRequest.md +20 -0
  30. package/docs/PatchUpdateSipChannelCostRequest.md +20 -0
  31. package/docs/PatchUpdateTcxHostingPriceListRequest.md +20 -0
  32. package/docs/PatchUpdateTcxPartnerIdRequest.md +20 -0
  33. package/docs/PortalAccountModel.md +4 -2
  34. package/docs/PostSendWelcomeEmailRequest.md +20 -0
  35. package/docs/ProspectDTO.md +2 -0
  36. package/models/HostingPriceListEnum.ts +29 -0
  37. package/package.json +1 -1
package/api.ts CHANGED
@@ -53,6 +53,17 @@ export interface AbstractOrderRequestDTO {
53
53
  */
54
54
  'quote'?: boolean;
55
55
  }
56
+ /**
57
+ * Account Addresses
58
+ */
59
+ export interface AccountAddressesDTO {
60
+ 'billingAddress'?: AddressDTO;
61
+ 'shippingAddress'?: AddressDTO;
62
+ /**
63
+ * Addresses
64
+ */
65
+ 'previousShippingAddreses'?: Array<AddressDTO>;
66
+ }
56
67
  /**
57
68
  * AccountContactsEntity
58
69
  */
@@ -250,6 +261,46 @@ export interface AccountDetailedSummaryDTO {
250
261
  */
251
262
  'balance'?: number | null;
252
263
  }
264
+ /**
265
+ * Account Finance DTO
266
+ */
267
+ export interface AccountFinanceDTO {
268
+ /**
269
+ * Account ID
270
+ */
271
+ 'id'?: number;
272
+ /**
273
+ * Account Xero ID
274
+ */
275
+ 'xeroId'?: string;
276
+ /**
277
+ * Account Number
278
+ */
279
+ 'accountNumber'?: string;
280
+ /**
281
+ * Credit Limit
282
+ */
283
+ 'creditLimit'?: number;
284
+ /**
285
+ * Balance Used
286
+ */
287
+ 'balance'?: number;
288
+ /**
289
+ * Overdue Amount
290
+ */
291
+ 'overdue'?: number;
292
+ 'priceList'?: CustomerPriceListEnum;
293
+ /**
294
+ * SIP Trunk Channel Cost
295
+ */
296
+ 'sipChannelCost'?: number;
297
+ /**
298
+ * Xero Contact URL
299
+ */
300
+ 'xeroUrl'?: string;
301
+ }
302
+
303
+
253
304
  /**
254
305
  * New Account Request
255
306
  */
@@ -361,6 +412,35 @@ export interface AccountsResponseModel {
361
412
  */
362
413
  'totalResults'?: number;
363
414
  }
415
+ /**
416
+ * Address
417
+ */
418
+ export interface AddressDTO {
419
+ /**
420
+ * Address Line 1
421
+ */
422
+ 'addressLine1'?: string;
423
+ /**
424
+ * Address Line 2
425
+ */
426
+ 'addressLine2'?: string;
427
+ /**
428
+ * City
429
+ */
430
+ 'city'?: string;
431
+ /**
432
+ * Region
433
+ */
434
+ 'region'?: string;
435
+ /**
436
+ * Postal Code
437
+ */
438
+ 'postalCode'?: string;
439
+ /**
440
+ * Country
441
+ */
442
+ 'iso'?: string;
443
+ }
364
444
  /**
365
445
  * Order Address
366
446
  */
@@ -606,6 +686,10 @@ export type AdminOrderRequestDTOPaymentMethodEnum = typeof AdminOrderRequestDTOP
606
686
  * Admin User
607
687
  */
608
688
  export interface AdminUserModel {
689
+ /**
690
+ * ID
691
+ */
692
+ 'id'?: number;
609
693
  /**
610
694
  * First Name
611
695
  */
@@ -858,6 +942,7 @@ export const AuditLogEntityTypeEnum = {
858
942
  ApiLog: 'api_log',
859
943
  PopsBatches: 'pops_batches',
860
944
  PopsCourierPrices: 'pops_courier_prices',
945
+ PopsCrmNotes: 'pops_crm_notes',
861
946
  PopsCreditAccounts: 'pops_credit_accounts',
862
947
  PopsCreditNotes: 'pops_credit_notes',
863
948
  PopsCreditNotesItems: 'pops_credit_notes_items',
@@ -1342,6 +1427,12 @@ export interface CourierPriceEntity {
1342
1427
  */
1343
1428
  'maxKg'?: number;
1344
1429
  }
1430
+ export interface CreateCrmNoteBody {
1431
+ /**
1432
+ * Note
1433
+ */
1434
+ 'note'?: string;
1435
+ }
1345
1436
  /**
1346
1437
  * Credit Account
1347
1438
  */
@@ -1430,6 +1521,14 @@ export interface CreditAccountEntity {
1430
1521
  * Prize Promo Enabled
1431
1522
  */
1432
1523
  'prizePromo'?: boolean;
1524
+ /**
1525
+ * Portal Access
1526
+ */
1527
+ 'portalAccess'?: boolean;
1528
+ /**
1529
+ * CNAME
1530
+ */
1531
+ 'cname'?: string;
1433
1532
  }
1434
1533
  /**
1435
1534
  * Credit Note
@@ -1561,6 +1660,52 @@ export interface CreditNoteModel {
1561
1660
  */
1562
1661
  'items'?: Array<CreditNoteItemModel>;
1563
1662
  }
1663
+ /**
1664
+ * CRM Activities Response
1665
+ */
1666
+ export interface CrmActivitiesResponseDTO {
1667
+ /**
1668
+ * Dates
1669
+ */
1670
+ 'dates'?: Array<CrmDateActivitiesDTO>;
1671
+ /**
1672
+ * Agents
1673
+ */
1674
+ 'agents'?: Array<AdminUserModel>;
1675
+ }
1676
+ /**
1677
+ * CRM Activity
1678
+ */
1679
+ export interface CrmActivityDTO {
1680
+ /**
1681
+ * Activity Type
1682
+ */
1683
+ 'type'?: string;
1684
+ /**
1685
+ * Activity Timestamp
1686
+ */
1687
+ 'timestamp'?: string | null;
1688
+ /**
1689
+ * Activity Title
1690
+ */
1691
+ 'title'?: string;
1692
+ /**
1693
+ * Activity Description
1694
+ */
1695
+ 'description'?: string;
1696
+ /**
1697
+ * Activity URL
1698
+ */
1699
+ 'url'?: string | null;
1700
+ /**
1701
+ * Activity User Name
1702
+ */
1703
+ 'user'?: string | null;
1704
+ /**
1705
+ * Activity Contact Name
1706
+ */
1707
+ 'contact'?: string | null;
1708
+ }
1564
1709
  /**
1565
1710
  * CRM Contact
1566
1711
  */
@@ -1594,6 +1739,109 @@ export interface CrmContactDTO {
1594
1739
  */
1595
1740
  'url'?: string;
1596
1741
  }
1742
+ /**
1743
+ * CRM Date Activities
1744
+ */
1745
+ export interface CrmDateActivitiesDTO {
1746
+ /**
1747
+ * Date
1748
+ */
1749
+ 'date'?: string | null;
1750
+ /**
1751
+ * Activities
1752
+ */
1753
+ 'activities'?: Array<CrmActivityDTO>;
1754
+ }
1755
+ /**
1756
+ * CrmNotesEntity
1757
+ */
1758
+ export interface CrmNoteEntity {
1759
+ /**
1760
+ * id
1761
+ */
1762
+ 'id'?: number;
1763
+ /**
1764
+ * customerId
1765
+ */
1766
+ 'customerId'?: string;
1767
+ /**
1768
+ * userId
1769
+ */
1770
+ 'userId'?: number;
1771
+ /**
1772
+ * type
1773
+ */
1774
+ 'type'?: string;
1775
+ /**
1776
+ * note
1777
+ */
1778
+ 'note'?: string;
1779
+ /**
1780
+ * timestamp
1781
+ */
1782
+ 'timestamp'?: string;
1783
+ /**
1784
+ * journalTime
1785
+ */
1786
+ 'journalTime'?: string;
1787
+ /**
1788
+ * duration
1789
+ */
1790
+ 'duration'?: string;
1791
+ /**
1792
+ * callType
1793
+ */
1794
+ 'callType'?: string;
1795
+ /**
1796
+ * callId
1797
+ */
1798
+ 'callId'?: number;
1799
+ }
1800
+ /**
1801
+ * CrmNotesEntity
1802
+ */
1803
+ export interface CrmNoteModel {
1804
+ /**
1805
+ * id
1806
+ */
1807
+ 'id'?: number;
1808
+ /**
1809
+ * customerId
1810
+ */
1811
+ 'customerId'?: string;
1812
+ /**
1813
+ * userId
1814
+ */
1815
+ 'userId'?: number;
1816
+ /**
1817
+ * type
1818
+ */
1819
+ 'type'?: string;
1820
+ /**
1821
+ * note
1822
+ */
1823
+ 'note'?: string;
1824
+ /**
1825
+ * timestamp
1826
+ */
1827
+ 'timestamp'?: string;
1828
+ /**
1829
+ * journalTime
1830
+ */
1831
+ 'journalTime'?: string;
1832
+ /**
1833
+ * duration
1834
+ */
1835
+ 'duration'?: string;
1836
+ /**
1837
+ * callType
1838
+ */
1839
+ 'callType'?: string;
1840
+ /**
1841
+ * callId
1842
+ */
1843
+ 'callId'?: number;
1844
+ }
1597
1845
  /**
1598
1846
  * SIP Trunk Customer
1599
1847
  */
@@ -3009,6 +3257,12 @@ export interface NavigationModel {
3009
3257
  */
3010
3258
  'openNewPage'?: boolean;
3011
3259
  }
3260
+ export interface NumberPortAdminNoteBody {
3261
+ /**
3262
+ * Note
3263
+ */
3264
+ 'note'?: string;
3265
+ }
3012
3266
  /**
3013
3267
  * Number Port Response
3014
3268
  */
@@ -3990,18 +4244,135 @@ export interface OrderedItemModel {
3990
4244
  */
3991
4245
  'returnedStock'?: number;
3992
4246
  }
3993
- export interface PatchSetTcxWizardCnameRequest {
4247
+ /**
4248
+ * 3CX Partner Details
4249
+ */
4250
+ export interface PartnerDTO {
4251
+ /**
4252
+ * 3CX Partner ID
4253
+ */
4254
+ 'partnerId'?: string;
4255
+ /**
4256
+ * 3CX Partner Company Name
4257
+ */
4258
+ 'companyName'?: string;
4259
+ /**
4260
+ * 3CX Partner Contact Name
4261
+ */
4262
+ 'contactName'?: string;
4263
+ /**
4264
+ * 3CX Partner Contact Phone
4265
+ */
4266
+ 'contactPhone'?: string;
4267
+ /**
4268
+ * 3CX Partner Contact Email
4269
+ */
4270
+ 'contactEmail'?: string;
4271
+ /**
4272
+ * 3CX Partner Level
4273
+ */
4274
+ 'partnerLevel'?: string;
4275
+ /**
4276
+ * 3CX Partner Licence Discount Percent
4277
+ */
4278
+ 'licenceDiscountPercent'?: number;
4279
+ /**
4280
+ * 3CX Partner Hosting Discount Percent
4281
+ */
4282
+ 'hostingDisountPercent'?: number;
4283
+ /**
4284
+ * 3CX Hosting Price List ID
4285
+ */
4286
+ 'hostingPriceListId'?: number;
4287
+ /**
4288
+ * 3CX Installation URL
4289
+ */
4290
+ 'installationUrl'?: string;
4291
+ }
4292
+ export interface PatchUpdateAccountCnameRequest {
3994
4293
  /**
3995
4294
  * CNAME
3996
4295
  */
3997
4296
  'cname'?: string;
3998
4297
  }
4298
+ export interface PatchUpdateAccountCompanyNumberRequest {
4299
+ /**
4300
+ * Company Number
4301
+ */
4302
+ 'companyNumber'?: string;
4303
+ }
3999
4304
  export interface PatchUpdateAccountContactPasswordRequest {
4000
4305
  /**
4001
4306
  * Password
4002
4307
  */
4003
4308
  'password'?: string;
4004
4309
  }
4310
+ export interface PatchUpdateAccountPhoneRequest {
4311
+ /**
4312
+ * Phone
4313
+ */
4314
+ 'phone'?: string;
4315
+ }
4316
+ export interface PatchUpdateAccountVatNumberRequest {
4317
+ /**
4318
+ * VAT Number
4319
+ */
4320
+ 'vatNumber'?: string;
4321
+ }
4322
+ export interface PatchUpdateCreditLimitRequest {
4323
+ /**
4324
+ * Credit Limit
4325
+ */
4326
+ 'creditLimit'?: number;
4327
+ }
4328
+ export interface PatchUpdatePriceListRequest {
4329
+ /**
4330
+ * Price List
4331
+ */
4332
+ 'priceList'?: PatchUpdatePriceListRequestPriceListEnum;
4333
+ }
4334
+
4335
+ export const PatchUpdatePriceListRequestPriceListEnum = {
4336
+ Rrp: 'RRP',
4337
+ Trade: 'Trade',
4338
+ Wholesale: 'Wholesale',
4339
+ Itsp: 'ITSP',
4340
+ SubDisti: 'Sub Disti',
4341
+ Distributor: 'Distributor',
4342
+ HotelDisti: 'Hotel Disti',
4343
+ } as const;
4344
+
4345
+ export type PatchUpdatePriceListRequestPriceListEnum = typeof PatchUpdatePriceListRequestPriceListEnum[keyof typeof PatchUpdatePriceListRequestPriceListEnum];
4346
+
4347
+ export interface PatchUpdateSipChannelCostRequest {
4348
+ /**
4349
+ * SIP Channel Cost
4350
+ */
4351
+ 'channelCost'?: number;
4352
+ }
4353
+ export interface PatchUpdateTcxHostingPriceListRequest {
4354
+ /**
4355
+ * Price List
4356
+ */
4357
+ 'priceList'?: PatchUpdateTcxHostingPriceListRequestPriceListEnum;
4358
+ }
4359
+
4360
+ export const PatchUpdateTcxHostingPriceListRequestPriceListEnum = {
4361
+ _1: '1',
4362
+ _2: '2',
4363
+ _3: '3',
4364
+ _4: '4',
4365
+ _5: '5',
4366
+ } as const;
4367
+
4368
+ export type PatchUpdateTcxHostingPriceListRequestPriceListEnum = typeof PatchUpdateTcxHostingPriceListRequestPriceListEnum[keyof typeof PatchUpdateTcxHostingPriceListRequestPriceListEnum];
4369
+
4370
+ export interface PatchUpdateTcxPartnerIdRequest {
4371
+ /**
4372
+ * Set Account 3CX Partner ID
4373
+ */
4374
+ 'partnerId'?: string;
4375
+ }
4005
4376
  /**
4006
4377
  * Customer Account
4007
4378
  */
@@ -4090,6 +4461,14 @@ export interface PortalAccountModel {
4090
4461
  * Prize Promo Enabled
4091
4462
  */
4092
4463
  'prizePromo'?: boolean;
4464
+ /**
4465
+ * Portal Access
4466
+ */
4467
+ 'portalAccess'?: boolean;
4468
+ /**
4469
+ * Wizard CNAME
4470
+ */
4471
+ 'cname'?: string;
4093
4472
  /**
4094
4473
  * Active Direct Debit Mandate
4095
4474
  */
@@ -4098,10 +4477,6 @@ export interface PortalAccountModel {
4098
4477
  * Portal Navigation
4099
4478
  */
4100
4479
  'navigation'?: Array<NavigationModel>;
4101
- /**
4102
- * Wizard CNAME
4103
- */
4104
- 'cname'?: string;
4105
4480
  }
4106
4481
  /**
4107
4482
  * Portal Login
@@ -4136,12 +4511,6 @@ export interface PortalLoginModel {
4136
4511
  */
4137
4512
  'redirect_uri'?: string;
4138
4513
  }
4139
- export interface PostAddAdminNoteRequest {
4140
- /**
4141
- * Note
4142
- */
4143
- 'note'?: string;
4144
- }
4145
4514
  export interface PostAddOrderNoteRequest {
4146
4515
  /**
4147
4516
  * Order Note
@@ -4179,6 +4548,12 @@ export interface PostGetProductForCustomerRequest {
4179
4548
  */
4180
4549
  'renewalYears'?: number | null;
4181
4550
  }
4551
+ export interface PostSendWelcomeEmailRequest {
4552
+ /**
4553
+ * email
4554
+ */
4555
+ 'email'?: string;
4556
+ }
4182
4557
  export interface PostSplitOrderRequest {
4183
4558
  /**
4184
4559
  * Item Ids
@@ -4490,6 +4865,10 @@ export interface ProspectDTO {
4490
4865
  * Status
4491
4866
  */
4492
4867
  'status'?: ProspectDTOStatusEnum;
4868
+ /**
4869
+ * Order Count
4870
+ */
4871
+ 'orderCount'?: number;
4493
4872
  }
4494
4873
 
4495
4874
  export const ProspectDTOStatusEnum = {
@@ -4498,6 +4877,7 @@ export const ProspectDTOStatusEnum = {
4498
4877
  NoOrdersPlaced: 'No Orders Placed',
4499
4878
  NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
4500
4879
  NoActionRequired: 'No Action Required',
4880
+ DoNotCall: 'Do Not Call',
4501
4881
  } as const;
4502
4882
 
4503
4883
  export type ProspectDTOStatusEnum = typeof ProspectDTOStatusEnum[keyof typeof ProspectDTOStatusEnum];
@@ -8116,6 +8496,74 @@ export interface XeroLogEntity {
8116
8496
  */
8117
8497
  export const AccountsApiAxiosParamCreator = function (configuration?: Configuration) {
8118
8498
  return {
8499
+ /**
8500
+ * Delete Account Contact
8501
+ * @param {string} id Account Xero ID
8502
+ * @param {number} contactId Contact ID
8503
+ * @param {*} [options] Override http request option.
8504
+ * @throws {RequiredError}
8505
+ */
8506
+ deleteAdminUpdateAccountContact: async (id: string, contactId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8507
+ // verify required parameter 'id' is not null or undefined
8508
+ assertParamExists('deleteAdminUpdateAccountContact', 'id', id)
8509
+ // verify required parameter 'contactId' is not null or undefined
8510
+ assertParamExists('deleteAdminUpdateAccountContact', 'contactId', contactId)
8511
+ const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
8512
+ .replace('{id}', encodeURIComponent(String(id)))
8513
+ .replace('{contact_id}', encodeURIComponent(String(contactId)));
8514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8516
+ let baseOptions;
8517
+ if (configuration) {
8518
+ baseOptions = configuration.baseOptions;
8519
+ }
8520
+
8521
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
8522
+ const localVarHeaderParameter = {} as any;
8523
+ const localVarQueryParameter = {} as any;
8524
+
8525
+
8526
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8528
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8529
+
8530
+ return {
8531
+ url: toPathString(localVarUrlObj),
8532
+ options: localVarRequestOptions,
8533
+ };
8534
+ },
8535
+ /**
8536
+ * Delete Account
8537
+ * @param {string} id Account Xero ID
8538
+ * @param {*} [options] Override http request option.
8539
+ * @throws {RequiredError}
8540
+ */
8541
+ deleteArchiveAccount: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8542
+ // verify required parameter 'id' is not null or undefined
8543
+ assertParamExists('deleteArchiveAccount', 'id', id)
8544
+ const localVarPath = `/admin/accounts/{id}/archive`
8545
+ .replace('{id}', encodeURIComponent(String(id)));
8546
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8547
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8548
+ let baseOptions;
8549
+ if (configuration) {
8550
+ baseOptions = configuration.baseOptions;
8551
+ }
8552
+
8553
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
8554
+ const localVarHeaderParameter = {} as any;
8555
+ const localVarQueryParameter = {} as any;
8556
+
8557
+
8558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8560
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8561
+
8562
+ return {
8563
+ url: toPathString(localVarUrlObj),
8564
+ options: localVarRequestOptions,
8565
+ };
8566
+ },
8119
8567
  /**
8120
8568
  * Delete client credentials
8121
8569
  * @summary Delete client credentials
@@ -8173,6 +8621,39 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8173
8621
  const localVarQueryParameter = {} as any;
8174
8622
 
8175
8623
 
8624
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8625
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8626
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8627
+
8628
+ return {
8629
+ url: toPathString(localVarUrlObj),
8630
+ options: localVarRequestOptions,
8631
+ };
8632
+ },
8633
+ /**
8634
+ * Get Account Contacts
8635
+ * @param {string} id Account Xero ID
8636
+ * @param {*} [options] Override http request option.
8637
+ * @throws {RequiredError}
8638
+ */
8639
+ getAdminCreateAccountContact: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8640
+ // verify required parameter 'id' is not null or undefined
8641
+ assertParamExists('getAdminCreateAccountContact', 'id', id)
8642
+ const localVarPath = `/admin/accounts/{id}/contacts`
8643
+ .replace('{id}', encodeURIComponent(String(id)));
8644
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8645
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8646
+ let baseOptions;
8647
+ if (configuration) {
8648
+ baseOptions = configuration.baseOptions;
8649
+ }
8650
+
8651
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8652
+ const localVarHeaderParameter = {} as any;
8653
+ const localVarQueryParameter = {} as any;
8654
+
8655
+ localVarHeaderParameter['Accept'] = 'application/json';
8656
+
8176
8657
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8177
8658
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8178
8659
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8212,6 +8693,39 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8212
8693
  options: localVarRequestOptions,
8213
8694
  };
8214
8695
  },
8696
+ /**
8697
+ * Get Account Addresses
8698
+ * @param {string} id Xero ID
8699
+ * @param {*} [options] Override http request option.
8700
+ * @throws {RequiredError}
8701
+ */
8702
+ getGetAccountAddresses: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8703
+ // verify required parameter 'id' is not null or undefined
8704
+ assertParamExists('getGetAccountAddresses', 'id', id)
8705
+ const localVarPath = `/admin/accounts/{id}/addresses`
8706
+ .replace('{id}', encodeURIComponent(String(id)));
8707
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8709
+ let baseOptions;
8710
+ if (configuration) {
8711
+ baseOptions = configuration.baseOptions;
8712
+ }
8713
+
8714
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8715
+ const localVarHeaderParameter = {} as any;
8716
+ const localVarQueryParameter = {} as any;
8717
+
8718
+ localVarHeaderParameter['Accept'] = 'application/json';
8719
+
8720
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8721
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8722
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8723
+
8724
+ return {
8725
+ url: toPathString(localVarUrlObj),
8726
+ options: localVarRequestOptions,
8727
+ };
8728
+ },
8215
8729
  /**
8216
8730
  * Get Account Contacts
8217
8731
  * @summary Get Account Contacts
@@ -8392,16 +8906,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8392
8906
  };
8393
8907
  },
8394
8908
  /**
8395
- * Verify account email address
8396
- * @summary Verify account email address
8397
- * @param {string} token Verification Token
8909
+ * Get Account Finance
8910
+ * @param {string} id Account Xero ID
8398
8911
  * @param {*} [options] Override http request option.
8399
8912
  * @throws {RequiredError}
8400
8913
  */
8401
- getVerifyEmailAddress: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8402
- // verify required parameter 'token' is not null or undefined
8403
- assertParamExists('getVerifyEmailAddress', 'token', token)
8404
- const localVarPath = `/accounts/contacts/verify`;
8914
+ getGetFinanceSettings: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8915
+ // verify required parameter 'id' is not null or undefined
8916
+ assertParamExists('getGetFinanceSettings', 'id', id)
8917
+ const localVarPath = `/admin/accounts/{id}/finance`
8918
+ .replace('{id}', encodeURIComponent(String(id)));
8405
8919
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8406
8920
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8407
8921
  let baseOptions;
@@ -8413,10 +8927,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8413
8927
  const localVarHeaderParameter = {} as any;
8414
8928
  const localVarQueryParameter = {} as any;
8415
8929
 
8416
- if (token !== undefined) {
8417
- localVarQueryParameter['token'] = token;
8418
- }
8419
-
8930
+ localVarHeaderParameter['Accept'] = 'application/json';
8420
8931
 
8421
8932
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8422
8933
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8428,13 +8939,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8428
8939
  };
8429
8940
  },
8430
8941
  /**
8431
- * Set 3CX Wizard CNAME
8432
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
8942
+ * Get Account 3CX Details
8943
+ * @param {string} id Xero ID
8433
8944
  * @param {*} [options] Override http request option.
8434
8945
  * @throws {RequiredError}
8435
8946
  */
8436
- patchSetTcxWizardCname: async (patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8437
- const localVarPath = `/accounts/me/cname`;
8947
+ getGetTcxPartnerDetails: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8948
+ // verify required parameter 'id' is not null or undefined
8949
+ assertParamExists('getGetTcxPartnerDetails', 'id', id)
8950
+ const localVarPath = `/admin/accounts/{id}/tcx/partner`
8951
+ .replace('{id}', encodeURIComponent(String(id)));
8438
8952
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8439
8953
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8440
8954
  let baseOptions;
@@ -8442,16 +8956,15 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8442
8956
  baseOptions = configuration.baseOptions;
8443
8957
  }
8444
8958
 
8445
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8959
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8446
8960
  const localVarHeaderParameter = {} as any;
8447
8961
  const localVarQueryParameter = {} as any;
8448
8962
 
8449
- localVarHeaderParameter['Content-Type'] = 'application/json';
8963
+ localVarHeaderParameter['Accept'] = 'application/json';
8450
8964
 
8451
8965
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8452
8966
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8453
8967
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8454
- localVarRequestOptions.data = serializeDataIfNeeded(patchSetTcxWizardCnameRequest, localVarRequestOptions, configuration)
8455
8968
 
8456
8969
  return {
8457
8970
  url: toPathString(localVarUrlObj),
@@ -8459,17 +8972,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8459
8972
  };
8460
8973
  },
8461
8974
  /**
8462
- * Update Account Password
8463
- * @summary Update Account Password
8975
+ * Verify account email address
8976
+ * @summary Verify account email address
8464
8977
  * @param {string} token Verification Token
8465
- * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
8466
8978
  * @param {*} [options] Override http request option.
8467
8979
  * @throws {RequiredError}
8468
8980
  */
8469
- patchUpdateAccountContactPassword: async (token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8981
+ getVerifyEmailAddress: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8470
8982
  // verify required parameter 'token' is not null or undefined
8471
- assertParamExists('patchUpdateAccountContactPassword', 'token', token)
8472
- const localVarPath = `/accounts/contacts/password`;
8983
+ assertParamExists('getVerifyEmailAddress', 'token', token)
8984
+ const localVarPath = `/accounts/contacts/verify`;
8473
8985
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8474
8986
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8475
8987
  let baseOptions;
@@ -8477,7 +8989,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8477
8989
  baseOptions = configuration.baseOptions;
8478
8990
  }
8479
8991
 
8480
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8992
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8481
8993
  const localVarHeaderParameter = {} as any;
8482
8994
  const localVarQueryParameter = {} as any;
8483
8995
 
@@ -8485,12 +8997,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8485
8997
  localVarQueryParameter['token'] = token;
8486
8998
  }
8487
8999
 
8488
- localVarHeaderParameter['Content-Type'] = 'application/json';
8489
9000
 
8490
9001
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8491
9002
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8492
9003
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8493
- localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountContactPasswordRequest, localVarRequestOptions, configuration)
8494
9004
 
8495
9005
  return {
8496
9006
  url: toPathString(localVarUrlObj),
@@ -8498,14 +9008,20 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8498
9008
  };
8499
9009
  },
8500
9010
  /**
8501
- * Add Account Contacts
8502
- * @summary Add Account Contact
8503
- * @param {AccountContactRequestModel} [accountContactRequestModel] New account request
9011
+ * Set Account Portal Access
9012
+ * @param {string} id Xero ID
9013
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
8504
9014
  * @param {*} [options] Override http request option.
8505
9015
  * @throws {RequiredError}
8506
9016
  */
8507
- postGetAccountContacts: async (accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8508
- const localVarPath = `/accounts/me/contacts`;
9017
+ patchSetPortalAccess: async (id: string, state: PatchSetPortalAccessStateEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9018
+ // verify required parameter 'id' is not null or undefined
9019
+ assertParamExists('patchSetPortalAccess', 'id', id)
9020
+ // verify required parameter 'state' is not null or undefined
9021
+ assertParamExists('patchSetPortalAccess', 'state', state)
9022
+ const localVarPath = `/admin/accounts/{id}/portal/access/{state}`
9023
+ .replace('{id}', encodeURIComponent(String(id)))
9024
+ .replace('{state}', encodeURIComponent(String(state)));
8509
9025
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8510
9026
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8511
9027
  let baseOptions;
@@ -8513,16 +9029,14 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8513
9029
  baseOptions = configuration.baseOptions;
8514
9030
  }
8515
9031
 
8516
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9032
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8517
9033
  const localVarHeaderParameter = {} as any;
8518
9034
  const localVarQueryParameter = {} as any;
8519
9035
 
8520
- localVarHeaderParameter['Content-Type'] = 'application/json';
8521
9036
 
8522
9037
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8523
9038
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8524
9039
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8525
- localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
8526
9040
 
8527
9041
  return {
8528
9042
  url: toPathString(localVarUrlObj),
@@ -8530,14 +9044,20 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8530
9044
  };
8531
9045
  },
8532
9046
  /**
8533
- * Create new customer account
8534
- * @summary Create a new customer account
8535
- * @param {AccountRequestModel} [accountRequestModel] New account request
9047
+ * Set Account Prize Promo
9048
+ * @param {string} id Xero ID
9049
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
8536
9050
  * @param {*} [options] Override http request option.
8537
9051
  * @throws {RequiredError}
8538
9052
  */
8539
- postGetAccounts: async (accountRequestModel?: AccountRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8540
- const localVarPath = `/accounts`;
9053
+ patchSetPrizePromo: async (id: string, state: PatchSetPrizePromoStateEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9054
+ // verify required parameter 'id' is not null or undefined
9055
+ assertParamExists('patchSetPrizePromo', 'id', id)
9056
+ // verify required parameter 'state' is not null or undefined
9057
+ assertParamExists('patchSetPrizePromo', 'state', state)
9058
+ const localVarPath = `/admin/accounts/{id}/prizes/{state}`
9059
+ .replace('{id}', encodeURIComponent(String(id)))
9060
+ .replace('{state}', encodeURIComponent(String(state)));
8541
9061
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8542
9062
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8543
9063
  let baseOptions;
@@ -8545,17 +9065,14 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8545
9065
  baseOptions = configuration.baseOptions;
8546
9066
  }
8547
9067
 
8548
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9068
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8549
9069
  const localVarHeaderParameter = {} as any;
8550
9070
  const localVarQueryParameter = {} as any;
8551
9071
 
8552
- localVarHeaderParameter['Content-Type'] = 'application/json';
8553
- localVarHeaderParameter['Accept'] = 'application/json';
8554
9072
 
8555
9073
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8556
9074
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8557
9075
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8558
- localVarRequestOptions.data = serializeDataIfNeeded(accountRequestModel, localVarRequestOptions, configuration)
8559
9076
 
8560
9077
  return {
8561
9078
  url: toPathString(localVarUrlObj),
@@ -8563,13 +9080,13 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8563
9080
  };
8564
9081
  },
8565
9082
  /**
8566
- * Get Admin Account
8567
- * @summary Get Admin Account
9083
+ * Set 3CX Wizard CNAME
9084
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8568
9085
  * @param {*} [options] Override http request option.
8569
9086
  * @throws {RequiredError}
8570
9087
  */
8571
- postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8572
- const localVarPath = `/admin/me`;
9088
+ patchSetTcxWizardCname: async (patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9089
+ const localVarPath = `/accounts/me/cname`;
8573
9090
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8574
9091
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8575
9092
  let baseOptions;
@@ -8577,15 +9094,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8577
9094
  baseOptions = configuration.baseOptions;
8578
9095
  }
8579
9096
 
8580
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9097
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8581
9098
  const localVarHeaderParameter = {} as any;
8582
9099
  const localVarQueryParameter = {} as any;
8583
9100
 
8584
- localVarHeaderParameter['Accept'] = 'application/json';
9101
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8585
9102
 
8586
9103
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8587
9104
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8588
9105
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9106
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration)
8589
9107
 
8590
9108
  return {
8591
9109
  url: toPathString(localVarUrlObj),
@@ -8593,14 +9111,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8593
9111
  };
8594
9112
  },
8595
9113
  /**
8596
- * Create client credentials
8597
- * @summary Create client credentials
8598
- * @param {PostGetClientCredentialsRequest} [postGetClientCredentialsRequest] New client credentials request
9114
+ * Set Account CNAME
9115
+ * @param {string} id Xero ID
9116
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8599
9117
  * @param {*} [options] Override http request option.
8600
9118
  * @throws {RequiredError}
8601
9119
  */
8602
- postGetClientCredentials: async (postGetClientCredentialsRequest?: PostGetClientCredentialsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8603
- const localVarPath = `/accounts/me/contacts/credentials`;
9120
+ patchUpdateAccountCname: async (id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9121
+ // verify required parameter 'id' is not null or undefined
9122
+ assertParamExists('patchUpdateAccountCname', 'id', id)
9123
+ const localVarPath = `/admin/accounts/{id}/cname`
9124
+ .replace('{id}', encodeURIComponent(String(id)));
8604
9125
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8605
9126
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8606
9127
  let baseOptions;
@@ -8608,17 +9129,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8608
9129
  baseOptions = configuration.baseOptions;
8609
9130
  }
8610
9131
 
8611
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9132
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8612
9133
  const localVarHeaderParameter = {} as any;
8613
9134
  const localVarQueryParameter = {} as any;
8614
9135
 
8615
9136
  localVarHeaderParameter['Content-Type'] = 'application/json';
8616
- localVarHeaderParameter['Accept'] = 'application/json';
8617
9137
 
8618
9138
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8619
9139
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8620
9140
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8621
- localVarRequestOptions.data = serializeDataIfNeeded(postGetClientCredentialsRequest, localVarRequestOptions, configuration)
9141
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration)
8622
9142
 
8623
9143
  return {
8624
9144
  url: toPathString(localVarUrlObj),
@@ -8626,17 +9146,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8626
9146
  };
8627
9147
  },
8628
9148
  /**
8629
- * Send email verification email
8630
- * @summary Send email verification email
8631
- * @param {string} email Email Address
9149
+ * Set Account Company Number
9150
+ * @param {string} id Xero ID
9151
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
8632
9152
  * @param {*} [options] Override http request option.
8633
9153
  * @throws {RequiredError}
8634
9154
  */
8635
- postSendEmailVerificationEmail: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8636
- // verify required parameter 'email' is not null or undefined
8637
- assertParamExists('postSendEmailVerificationEmail', 'email', email)
8638
- const localVarPath = `/accounts/contacts/verify/{email}`
8639
- .replace('{email}', encodeURIComponent(String(email)));
9155
+ patchUpdateAccountCompanyNumber: async (id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9156
+ // verify required parameter 'id' is not null or undefined
9157
+ assertParamExists('patchUpdateAccountCompanyNumber', 'id', id)
9158
+ const localVarPath = `/admin/accounts/{id}/companyNumber`
9159
+ .replace('{id}', encodeURIComponent(String(id)));
8640
9160
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8641
9161
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8642
9162
  let baseOptions;
@@ -8644,14 +9164,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8644
9164
  baseOptions = configuration.baseOptions;
8645
9165
  }
8646
9166
 
8647
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9167
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8648
9168
  const localVarHeaderParameter = {} as any;
8649
9169
  const localVarQueryParameter = {} as any;
8650
9170
 
9171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8651
9172
 
8652
9173
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8653
9174
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8654
9175
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9176
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCompanyNumberRequest, localVarRequestOptions, configuration)
8655
9177
 
8656
9178
  return {
8657
9179
  url: toPathString(localVarUrlObj),
@@ -8659,16 +9181,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8659
9181
  };
8660
9182
  },
8661
9183
  /**
8662
- * Send password reset email
8663
- * @summary Send password reset email
8664
- * @param {string} email Email Address
9184
+ * Update Account Password
9185
+ * @summary Update Account Password
9186
+ * @param {string} token Verification Token
9187
+ * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
8665
9188
  * @param {*} [options] Override http request option.
8666
9189
  * @throws {RequiredError}
8667
9190
  */
8668
- postSendPasswordReset: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8669
- // verify required parameter 'email' is not null or undefined
8670
- assertParamExists('postSendPasswordReset', 'email', email)
8671
- const localVarPath = `/accounts/contacts/password/reset`;
9191
+ patchUpdateAccountContactPassword: async (token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9192
+ // verify required parameter 'token' is not null or undefined
9193
+ assertParamExists('patchUpdateAccountContactPassword', 'token', token)
9194
+ const localVarPath = `/accounts/contacts/password`;
8672
9195
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8673
9196
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8674
9197
  let baseOptions;
@@ -8676,18 +9199,20 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8676
9199
  baseOptions = configuration.baseOptions;
8677
9200
  }
8678
9201
 
8679
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9202
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8680
9203
  const localVarHeaderParameter = {} as any;
8681
9204
  const localVarQueryParameter = {} as any;
8682
9205
 
8683
- if (email !== undefined) {
8684
- localVarQueryParameter['email'] = email;
9206
+ if (token !== undefined) {
9207
+ localVarQueryParameter['token'] = token;
8685
9208
  }
8686
9209
 
9210
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8687
9211
 
8688
9212
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8689
9213
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8690
9214
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9215
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountContactPasswordRequest, localVarRequestOptions, configuration)
8691
9216
 
8692
9217
  return {
8693
9218
  url: toPathString(localVarUrlObj),
@@ -8695,16 +9220,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8695
9220
  };
8696
9221
  },
8697
9222
  /**
8698
- * Submit reseller application
8699
- * @summary Submit reseller application
8700
- * @param {number} [creditRequired] Credit Required
8701
- * @param {string} [companyNumber] Company Number
8702
- * @param {string} [vatNumber] VAT Number
9223
+ * Set Account Phone
9224
+ * @param {string} id Xero ID
9225
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
8703
9226
  * @param {*} [options] Override http request option.
8704
9227
  * @throws {RequiredError}
8705
9228
  */
8706
- postSubmitResellerApplication: async (creditRequired?: number, companyNumber?: string, vatNumber?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8707
- const localVarPath = `/accounts/reseller`;
9229
+ patchUpdateAccountPhone: async (id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9230
+ // verify required parameter 'id' is not null or undefined
9231
+ assertParamExists('patchUpdateAccountPhone', 'id', id)
9232
+ const localVarPath = `/admin/accounts/{id}/phone`
9233
+ .replace('{id}', encodeURIComponent(String(id)));
8708
9234
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8709
9235
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8710
9236
  let baseOptions;
@@ -8712,13 +9238,529 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8712
9238
  baseOptions = configuration.baseOptions;
8713
9239
  }
8714
9240
 
8715
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9241
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8716
9242
  const localVarHeaderParameter = {} as any;
8717
9243
  const localVarQueryParameter = {} as any;
8718
9244
 
8719
- if (creditRequired !== undefined) {
8720
- localVarQueryParameter['creditRequired'] = creditRequired;
8721
- }
9245
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9246
+
9247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9249
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9250
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountPhoneRequest, localVarRequestOptions, configuration)
9251
+
9252
+ return {
9253
+ url: toPathString(localVarUrlObj),
9254
+ options: localVarRequestOptions,
9255
+ };
9256
+ },
9257
+ /**
9258
+ * Set Account VAT Number
9259
+ * @param {string} id Xero ID
9260
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
9261
+ * @param {*} [options] Override http request option.
9262
+ * @throws {RequiredError}
9263
+ */
9264
+ patchUpdateAccountVatNumber: async (id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9265
+ // verify required parameter 'id' is not null or undefined
9266
+ assertParamExists('patchUpdateAccountVatNumber', 'id', id)
9267
+ const localVarPath = `/admin/accounts/{id}/vatNumber`
9268
+ .replace('{id}', encodeURIComponent(String(id)));
9269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9271
+ let baseOptions;
9272
+ if (configuration) {
9273
+ baseOptions = configuration.baseOptions;
9274
+ }
9275
+
9276
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
9277
+ const localVarHeaderParameter = {} as any;
9278
+ const localVarQueryParameter = {} as any;
9279
+
9280
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9281
+
9282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9284
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9285
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountVatNumberRequest, localVarRequestOptions, configuration)
9286
+
9287
+ return {
9288
+ url: toPathString(localVarUrlObj),
9289
+ options: localVarRequestOptions,
9290
+ };
9291
+ },
9292
+ /**
9293
+ * Set Account Credit Limit
9294
+ * @param {string} id Xero ID
9295
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
9296
+ * @param {*} [options] Override http request option.
9297
+ * @throws {RequiredError}
9298
+ */
9299
+ patchUpdateCreditLimit: async (id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9300
+ // verify required parameter 'id' is not null or undefined
9301
+ assertParamExists('patchUpdateCreditLimit', 'id', id)
9302
+ const localVarPath = `/admin/accounts/{id}/creditLimit`
9303
+ .replace('{id}', encodeURIComponent(String(id)));
9304
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9305
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9306
+ let baseOptions;
9307
+ if (configuration) {
9308
+ baseOptions = configuration.baseOptions;
9309
+ }
9310
+
9311
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
9312
+ const localVarHeaderParameter = {} as any;
9313
+ const localVarQueryParameter = {} as any;
9314
+
9315
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9316
+ localVarHeaderParameter['Accept'] = 'application/json';
9317
+
9318
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9320
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9321
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateCreditLimitRequest, localVarRequestOptions, configuration)
9322
+
9323
+ return {
9324
+ url: toPathString(localVarUrlObj),
9325
+ options: localVarRequestOptions,
9326
+ };
9327
+ },
9328
+ /**
9329
+ * Set Account Price List
9330
+ * @param {string} id Xero ID
9331
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
9332
+ * @param {*} [options] Override http request option.
9333
+ * @throws {RequiredError}
9334
+ */
9335
+ patchUpdatePriceList: async (id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9336
+ // verify required parameter 'id' is not null or undefined
9337
+ assertParamExists('patchUpdatePriceList', 'id', id)
9338
+ const localVarPath = `/admin/accounts/{id}/priceList`
9339
+ .replace('{id}', encodeURIComponent(String(id)));
9340
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9341
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9342
+ let baseOptions;
9343
+ if (configuration) {
9344
+ baseOptions = configuration.baseOptions;
9345
+ }
9346
+
9347
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
9348
+ const localVarHeaderParameter = {} as any;
9349
+ const localVarQueryParameter = {} as any;
9350
+
9351
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9352
+ localVarHeaderParameter['Accept'] = 'application/json';
9353
+
9354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9356
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9357
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdatePriceListRequest, localVarRequestOptions, configuration)
9358
+
9359
+ return {
9360
+ url: toPathString(localVarUrlObj),
9361
+ options: localVarRequestOptions,
9362
+ };
9363
+ },
9364
+ /**
9365
+ * Set Account SIP Channel Cost
9366
+ * @param {string} id Xero ID
9367
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
9368
+ * @param {*} [options] Override http request option.
9369
+ * @throws {RequiredError}
9370
+ */
9371
+ patchUpdateSipChannelCost: async (id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9372
+ // verify required parameter 'id' is not null or undefined
9373
+ assertParamExists('patchUpdateSipChannelCost', 'id', id)
9374
+ const localVarPath = `/admin/accounts/{id}/channelCost`
9375
+ .replace('{id}', encodeURIComponent(String(id)));
9376
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9377
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9378
+ let baseOptions;
9379
+ if (configuration) {
9380
+ baseOptions = configuration.baseOptions;
9381
+ }
9382
+
9383
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
9384
+ const localVarHeaderParameter = {} as any;
9385
+ const localVarQueryParameter = {} as any;
9386
+
9387
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9388
+ localVarHeaderParameter['Accept'] = 'application/json';
9389
+
9390
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9392
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9393
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateSipChannelCostRequest, localVarRequestOptions, configuration)
9394
+
9395
+ return {
9396
+ url: toPathString(localVarUrlObj),
9397
+ options: localVarRequestOptions,
9398
+ };
9399
+ },
9400
+ /**
9401
+ * Set Account 3CX Hosting Price List
9402
+ * @param {string} id Xero ID
9403
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
9404
+ * @param {*} [options] Override http request option.
9405
+ * @throws {RequiredError}
9406
+ */
9407
+ patchUpdateTcxHostingPriceList: async (id: string, patchUpdateTcxHostingPriceListRequest?: PatchUpdateTcxHostingPriceListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9408
+ // verify required parameter 'id' is not null or undefined
9409
+ assertParamExists('patchUpdateTcxHostingPriceList', 'id', id)
9410
+ const localVarPath = `/admin/accounts/{id}/tcx/hosting/priceList`
9411
+ .replace('{id}', encodeURIComponent(String(id)));
9412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9413
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9414
+ let baseOptions;
9415
+ if (configuration) {
9416
+ baseOptions = configuration.baseOptions;
9417
+ }
9418
+
9419
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
9420
+ const localVarHeaderParameter = {} as any;
9421
+ const localVarQueryParameter = {} as any;
9422
+
9423
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9424
+ localVarHeaderParameter['Accept'] = 'application/json';
9425
+
9426
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9428
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9429
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateTcxHostingPriceListRequest, localVarRequestOptions, configuration)
9430
+
9431
+ return {
9432
+ url: toPathString(localVarUrlObj),
9433
+ options: localVarRequestOptions,
9434
+ };
9435
+ },
9436
+ /**
9437
+ * Set Account 3CX Partner ID
9438
+ * @param {string} id Xero ID
9439
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
9440
+ * @param {*} [options] Override http request option.
9441
+ * @throws {RequiredError}
9442
+ */
9443
+ patchUpdateTcxPartnerId: async (id: string, patchUpdateTcxPartnerIdRequest?: PatchUpdateTcxPartnerIdRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9444
+ // verify required parameter 'id' is not null or undefined
9445
+ assertParamExists('patchUpdateTcxPartnerId', 'id', id)
9446
+ const localVarPath = `/admin/accounts{id}/tcx/partner/id`
9447
+ .replace('{id}', encodeURIComponent(String(id)));
9448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9449
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9450
+ let baseOptions;
9451
+ if (configuration) {
9452
+ baseOptions = configuration.baseOptions;
9453
+ }
9454
+
9455
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
9456
+ const localVarHeaderParameter = {} as any;
9457
+ const localVarQueryParameter = {} as any;
9458
+
9459
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9460
+ localVarHeaderParameter['Accept'] = 'application/json';
9461
+
9462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9464
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9465
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateTcxPartnerIdRequest, localVarRequestOptions, configuration)
9466
+
9467
+ return {
9468
+ url: toPathString(localVarUrlObj),
9469
+ options: localVarRequestOptions,
9470
+ };
9471
+ },
9472
+ /**
9473
+ * Create Account Contact
9474
+ * @param {string} id Account Xero ID
9475
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
9476
+ * @param {*} [options] Override http request option.
9477
+ * @throws {RequiredError}
9478
+ */
9479
+ postAdminCreateAccountContact: async (id: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9480
+ // verify required parameter 'id' is not null or undefined
9481
+ assertParamExists('postAdminCreateAccountContact', 'id', id)
9482
+ const localVarPath = `/admin/accounts/{id}/contacts`
9483
+ .replace('{id}', encodeURIComponent(String(id)));
9484
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9485
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9486
+ let baseOptions;
9487
+ if (configuration) {
9488
+ baseOptions = configuration.baseOptions;
9489
+ }
9490
+
9491
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9492
+ const localVarHeaderParameter = {} as any;
9493
+ const localVarQueryParameter = {} as any;
9494
+
9495
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9496
+
9497
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9498
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9499
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9500
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
9501
+
9502
+ return {
9503
+ url: toPathString(localVarUrlObj),
9504
+ options: localVarRequestOptions,
9505
+ };
9506
+ },
9507
+ /**
9508
+ * Add Account Contacts
9509
+ * @summary Add Account Contact
9510
+ * @param {AccountContactRequestModel} [accountContactRequestModel] New account request
9511
+ * @param {*} [options] Override http request option.
9512
+ * @throws {RequiredError}
9513
+ */
9514
+ postGetAccountContacts: async (accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9515
+ const localVarPath = `/accounts/me/contacts`;
9516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9517
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9518
+ let baseOptions;
9519
+ if (configuration) {
9520
+ baseOptions = configuration.baseOptions;
9521
+ }
9522
+
9523
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9524
+ const localVarHeaderParameter = {} as any;
9525
+ const localVarQueryParameter = {} as any;
9526
+
9527
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9528
+
9529
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9530
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9531
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9532
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
9533
+
9534
+ return {
9535
+ url: toPathString(localVarUrlObj),
9536
+ options: localVarRequestOptions,
9537
+ };
9538
+ },
9539
+ /**
9540
+ * Create new customer account
9541
+ * @summary Create a new customer account
9542
+ * @param {AccountRequestModel} [accountRequestModel] New account request
9543
+ * @param {*} [options] Override http request option.
9544
+ * @throws {RequiredError}
9545
+ */
9546
+ postGetAccounts: async (accountRequestModel?: AccountRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9547
+ const localVarPath = `/accounts`;
9548
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9549
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9550
+ let baseOptions;
9551
+ if (configuration) {
9552
+ baseOptions = configuration.baseOptions;
9553
+ }
9554
+
9555
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9556
+ const localVarHeaderParameter = {} as any;
9557
+ const localVarQueryParameter = {} as any;
9558
+
9559
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9560
+ localVarHeaderParameter['Accept'] = 'application/json';
9561
+
9562
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9563
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9564
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9565
+ localVarRequestOptions.data = serializeDataIfNeeded(accountRequestModel, localVarRequestOptions, configuration)
9566
+
9567
+ return {
9568
+ url: toPathString(localVarUrlObj),
9569
+ options: localVarRequestOptions,
9570
+ };
9571
+ },
9572
+ /**
9573
+ * Get Admin Account
9574
+ * @summary Get Admin Account
9575
+ * @param {*} [options] Override http request option.
9576
+ * @throws {RequiredError}
9577
+ */
9578
+ postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9579
+ const localVarPath = `/admin/me`;
9580
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9581
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9582
+ let baseOptions;
9583
+ if (configuration) {
9584
+ baseOptions = configuration.baseOptions;
9585
+ }
9586
+
9587
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9588
+ const localVarHeaderParameter = {} as any;
9589
+ const localVarQueryParameter = {} as any;
9590
+
9591
+ localVarHeaderParameter['Accept'] = 'application/json';
9592
+
9593
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9594
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9595
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9596
+
9597
+ return {
9598
+ url: toPathString(localVarUrlObj),
9599
+ options: localVarRequestOptions,
9600
+ };
9601
+ },
9602
+ /**
9603
+ * Create client credentials
9604
+ * @summary Create client credentials
9605
+ * @param {PostGetClientCredentialsRequest} [postGetClientCredentialsRequest] New client credentials request
9606
+ * @param {*} [options] Override http request option.
9607
+ * @throws {RequiredError}
9608
+ */
9609
+ postGetClientCredentials: async (postGetClientCredentialsRequest?: PostGetClientCredentialsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9610
+ const localVarPath = `/accounts/me/contacts/credentials`;
9611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9612
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9613
+ let baseOptions;
9614
+ if (configuration) {
9615
+ baseOptions = configuration.baseOptions;
9616
+ }
9617
+
9618
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9619
+ const localVarHeaderParameter = {} as any;
9620
+ const localVarQueryParameter = {} as any;
9621
+
9622
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9623
+ localVarHeaderParameter['Accept'] = 'application/json';
9624
+
9625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9626
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9627
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9628
+ localVarRequestOptions.data = serializeDataIfNeeded(postGetClientCredentialsRequest, localVarRequestOptions, configuration)
9629
+
9630
+ return {
9631
+ url: toPathString(localVarUrlObj),
9632
+ options: localVarRequestOptions,
9633
+ };
9634
+ },
9635
+ /**
9636
+ * Send email verification email
9637
+ * @summary Send email verification email
9638
+ * @param {string} email Email Address
9639
+ * @param {*} [options] Override http request option.
9640
+ * @throws {RequiredError}
9641
+ */
9642
+ postSendEmailVerificationEmail: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9643
+ // verify required parameter 'email' is not null or undefined
9644
+ assertParamExists('postSendEmailVerificationEmail', 'email', email)
9645
+ const localVarPath = `/accounts/contacts/verify/{email}`
9646
+ .replace('{email}', encodeURIComponent(String(email)));
9647
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9648
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9649
+ let baseOptions;
9650
+ if (configuration) {
9651
+ baseOptions = configuration.baseOptions;
9652
+ }
9653
+
9654
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9655
+ const localVarHeaderParameter = {} as any;
9656
+ const localVarQueryParameter = {} as any;
9657
+
9658
+
9659
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9660
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9661
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9662
+
9663
+ return {
9664
+ url: toPathString(localVarUrlObj),
9665
+ options: localVarRequestOptions,
9666
+ };
9667
+ },
9668
+ /**
9669
+ * Send password reset email
9670
+ * @summary Send password reset email
9671
+ * @param {string} email Email Address
9672
+ * @param {*} [options] Override http request option.
9673
+ * @throws {RequiredError}
9674
+ */
9675
+ postSendPasswordReset: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9676
+ // verify required parameter 'email' is not null or undefined
9677
+ assertParamExists('postSendPasswordReset', 'email', email)
9678
+ const localVarPath = `/accounts/contacts/password/reset`;
9679
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9680
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9681
+ let baseOptions;
9682
+ if (configuration) {
9683
+ baseOptions = configuration.baseOptions;
9684
+ }
9685
+
9686
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9687
+ const localVarHeaderParameter = {} as any;
9688
+ const localVarQueryParameter = {} as any;
9689
+
9690
+ if (email !== undefined) {
9691
+ localVarQueryParameter['email'] = email;
9692
+ }
9693
+
9694
+
9695
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9696
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9697
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9698
+
9699
+ return {
9700
+ url: toPathString(localVarUrlObj),
9701
+ options: localVarRequestOptions,
9702
+ };
9703
+ },
9704
+ /**
9705
+ * Send Account Welcome Email
9706
+ * @param {string} id Xero ID
9707
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
9708
+ * @param {*} [options] Override http request option.
9709
+ * @throws {RequiredError}
9710
+ */
9711
+ postSendWelcomeEmail: async (id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9712
+ // verify required parameter 'id' is not null or undefined
9713
+ assertParamExists('postSendWelcomeEmail', 'id', id)
9714
+ const localVarPath = `/admin/accounts/{id}/email/welcome`
9715
+ .replace('{id}', encodeURIComponent(String(id)));
9716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9717
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9718
+ let baseOptions;
9719
+ if (configuration) {
9720
+ baseOptions = configuration.baseOptions;
9721
+ }
9722
+
9723
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9724
+ const localVarHeaderParameter = {} as any;
9725
+ const localVarQueryParameter = {} as any;
9726
+
9727
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9728
+
9729
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9730
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9731
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9732
+ localVarRequestOptions.data = serializeDataIfNeeded(postSendWelcomeEmailRequest, localVarRequestOptions, configuration)
9733
+
9734
+ return {
9735
+ url: toPathString(localVarUrlObj),
9736
+ options: localVarRequestOptions,
9737
+ };
9738
+ },
9739
+ /**
9740
+ * Submit reseller application
9741
+ * @summary Submit reseller application
9742
+ * @param {number} [creditRequired] Credit Required
9743
+ * @param {string} [companyNumber] Company Number
9744
+ * @param {string} [vatNumber] VAT Number
9745
+ * @param {*} [options] Override http request option.
9746
+ * @throws {RequiredError}
9747
+ */
9748
+ postSubmitResellerApplication: async (creditRequired?: number, companyNumber?: string, vatNumber?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9749
+ const localVarPath = `/accounts/reseller`;
9750
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9751
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9752
+ let baseOptions;
9753
+ if (configuration) {
9754
+ baseOptions = configuration.baseOptions;
9755
+ }
9756
+
9757
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9758
+ const localVarHeaderParameter = {} as any;
9759
+ const localVarQueryParameter = {} as any;
9760
+
9761
+ if (creditRequired !== undefined) {
9762
+ localVarQueryParameter['creditRequired'] = creditRequired;
9763
+ }
8722
9764
 
8723
9765
  if (companyNumber !== undefined) {
8724
9766
  localVarQueryParameter['companyNumber'] = companyNumber;
@@ -8738,6 +9780,45 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8738
9780
  options: localVarRequestOptions,
8739
9781
  };
8740
9782
  },
9783
+ /**
9784
+ * Update Account Contact
9785
+ * @param {string} id Account Xero ID
9786
+ * @param {number} contactId Contact ID
9787
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
9788
+ * @param {*} [options] Override http request option.
9789
+ * @throws {RequiredError}
9790
+ */
9791
+ putAdminUpdateAccountContact: async (id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9792
+ // verify required parameter 'id' is not null or undefined
9793
+ assertParamExists('putAdminUpdateAccountContact', 'id', id)
9794
+ // verify required parameter 'contactId' is not null or undefined
9795
+ assertParamExists('putAdminUpdateAccountContact', 'contactId', contactId)
9796
+ const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
9797
+ .replace('{id}', encodeURIComponent(String(id)))
9798
+ .replace('{contact_id}', encodeURIComponent(String(contactId)));
9799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9800
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9801
+ let baseOptions;
9802
+ if (configuration) {
9803
+ baseOptions = configuration.baseOptions;
9804
+ }
9805
+
9806
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
9807
+ const localVarHeaderParameter = {} as any;
9808
+ const localVarQueryParameter = {} as any;
9809
+
9810
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9811
+
9812
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9813
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9814
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9815
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
9816
+
9817
+ return {
9818
+ url: toPathString(localVarUrlObj),
9819
+ options: localVarRequestOptions,
9820
+ };
9821
+ },
8741
9822
  /**
8742
9823
  * Update Account Contacts
8743
9824
  * @summary Update Account Contact
@@ -8746,11 +9827,81 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8746
9827
  * @param {*} [options] Override http request option.
8747
9828
  * @throws {RequiredError}
8748
9829
  */
8749
- putUpdateAccountContact: async (email: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8750
- // verify required parameter 'email' is not null or undefined
8751
- assertParamExists('putUpdateAccountContact', 'email', email)
8752
- const localVarPath = `/accounts/me/contacts/{email}`
8753
- .replace('{email}', encodeURIComponent(String(email)));
9830
+ putUpdateAccountContact: async (email: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9831
+ // verify required parameter 'email' is not null or undefined
9832
+ assertParamExists('putUpdateAccountContact', 'email', email)
9833
+ const localVarPath = `/accounts/me/contacts/{email}`
9834
+ .replace('{email}', encodeURIComponent(String(email)));
9835
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9836
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9837
+ let baseOptions;
9838
+ if (configuration) {
9839
+ baseOptions = configuration.baseOptions;
9840
+ }
9841
+
9842
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
9843
+ const localVarHeaderParameter = {} as any;
9844
+ const localVarQueryParameter = {} as any;
9845
+
9846
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9847
+
9848
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9849
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9850
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9851
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
9852
+
9853
+ return {
9854
+ url: toPathString(localVarUrlObj),
9855
+ options: localVarRequestOptions,
9856
+ };
9857
+ },
9858
+ /**
9859
+ * Update Account Billing Address
9860
+ * @param {string} id Xero ID
9861
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
9862
+ * @param {*} [options] Override http request option.
9863
+ * @throws {RequiredError}
9864
+ */
9865
+ putUpdateBillingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9866
+ // verify required parameter 'id' is not null or undefined
9867
+ assertParamExists('putUpdateBillingAddress', 'id', id)
9868
+ const localVarPath = `/admin/accounts/{id}/billing/address`
9869
+ .replace('{id}', encodeURIComponent(String(id)));
9870
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9871
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9872
+ let baseOptions;
9873
+ if (configuration) {
9874
+ baseOptions = configuration.baseOptions;
9875
+ }
9876
+
9877
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
9878
+ const localVarHeaderParameter = {} as any;
9879
+ const localVarQueryParameter = {} as any;
9880
+
9881
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9882
+
9883
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9884
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9885
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9886
+ localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
9887
+
9888
+ return {
9889
+ url: toPathString(localVarUrlObj),
9890
+ options: localVarRequestOptions,
9891
+ };
9892
+ },
9893
+ /**
9894
+ * Update Account Shipping Address
9895
+ * @param {string} id Xero ID
9896
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
9897
+ * @param {*} [options] Override http request option.
9898
+ * @throws {RequiredError}
9899
+ */
9900
+ putUpdateShippingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9901
+ // verify required parameter 'id' is not null or undefined
9902
+ assertParamExists('putUpdateShippingAddress', 'id', id)
9903
+ const localVarPath = `/admin/accounts/{id}/shipping/address`
9904
+ .replace('{id}', encodeURIComponent(String(id)));
8754
9905
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8755
9906
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8756
9907
  let baseOptions;
@@ -8767,7 +9918,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8767
9918
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8768
9919
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8769
9920
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8770
- localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
9921
+ localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
8771
9922
 
8772
9923
  return {
8773
9924
  url: toPathString(localVarUrlObj),
@@ -8783,6 +9934,31 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8783
9934
  export const AccountsApiFp = function(configuration?: Configuration) {
8784
9935
  const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration)
8785
9936
  return {
9937
+ /**
9938
+ * Delete Account Contact
9939
+ * @param {string} id Account Xero ID
9940
+ * @param {number} contactId Contact ID
9941
+ * @param {*} [options] Override http request option.
9942
+ * @throws {RequiredError}
9943
+ */
9944
+ async deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9945
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options);
9946
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9947
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
9948
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9949
+ },
9950
+ /**
9951
+ * Delete Account
9952
+ * @param {string} id Account Xero ID
9953
+ * @param {*} [options] Override http request option.
9954
+ * @throws {RequiredError}
9955
+ */
9956
+ async deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteArchiveAccount(id, options);
9958
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9959
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteArchiveAccount']?.[localVarOperationServerIndex]?.url;
9960
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9961
+ },
8786
9962
  /**
8787
9963
  * Delete client credentials
8788
9964
  * @summary Delete client credentials
@@ -8809,6 +9985,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
8809
9985
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
8810
9986
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8811
9987
  },
9988
+ /**
9989
+ * Get Account Contacts
9990
+ * @param {string} id Account Xero ID
9991
+ * @param {*} [options] Override http request option.
9992
+ * @throws {RequiredError}
9993
+ */
9994
+ async getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountContactModel>>> {
9995
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAdminCreateAccountContact(id, options);
9996
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9997
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
9998
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9999
+ },
8812
10000
  /**
8813
10001
  * Get Account
8814
10002
  * @summary Get Account
@@ -8821,6 +10009,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
8821
10009
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccount']?.[localVarOperationServerIndex]?.url;
8822
10010
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8823
10011
  },
10012
+ /**
10013
+ * Get Account Addresses
10014
+ * @param {string} id Xero ID
10015
+ * @param {*} [options] Override http request option.
10016
+ * @throws {RequiredError}
10017
+ */
10018
+ async getGetAccountAddresses(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountAddressesDTO>> {
10019
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountAddresses(id, options);
10020
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10021
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountAddresses']?.[localVarOperationServerIndex]?.url;
10022
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10023
+ },
8824
10024
  /**
8825
10025
  * Get Account Contacts
8826
10026
  * @summary Get Account Contacts
@@ -8887,6 +10087,30 @@ export const AccountsApiFp = function(configuration?: Configuration) {
8887
10087
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerKeys']?.[localVarOperationServerIndex]?.url;
8888
10088
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8889
10089
  },
10090
+ /**
10091
+ * Get Account Finance
10092
+ * @param {string} id Account Xero ID
10093
+ * @param {*} [options] Override http request option.
10094
+ * @throws {RequiredError}
10095
+ */
10096
+ async getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
10097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetFinanceSettings(id, options);
10098
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10099
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetFinanceSettings']?.[localVarOperationServerIndex]?.url;
10100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10101
+ },
10102
+ /**
10103
+ * Get Account 3CX Details
10104
+ * @param {string} id Xero ID
10105
+ * @param {*} [options] Override http request option.
10106
+ * @throws {RequiredError}
10107
+ */
10108
+ async getGetTcxPartnerDetails(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerDTO>> {
10109
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetTcxPartnerDetails(id, options);
10110
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10111
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetTcxPartnerDetails']?.[localVarOperationServerIndex]?.url;
10112
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10113
+ },
8890
10114
  /**
8891
10115
  * Verify account email address
8892
10116
  * @summary Verify account email address
@@ -8900,18 +10124,70 @@ export const AccountsApiFp = function(configuration?: Configuration) {
8900
10124
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getVerifyEmailAddress']?.[localVarOperationServerIndex]?.url;
8901
10125
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8902
10126
  },
10127
+ /**
10128
+ * Set Account Portal Access
10129
+ * @param {string} id Xero ID
10130
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
10131
+ * @param {*} [options] Override http request option.
10132
+ * @throws {RequiredError}
10133
+ */
10134
+ async patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10135
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetPortalAccess(id, state, options);
10136
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10137
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetPortalAccess']?.[localVarOperationServerIndex]?.url;
10138
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10139
+ },
10140
+ /**
10141
+ * Set Account Prize Promo
10142
+ * @param {string} id Xero ID
10143
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
10144
+ * @param {*} [options] Override http request option.
10145
+ * @throws {RequiredError}
10146
+ */
10147
+ async patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetPrizePromo(id, state, options);
10149
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10150
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetPrizePromo']?.[localVarOperationServerIndex]?.url;
10151
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10152
+ },
8903
10153
  /**
8904
10154
  * Set 3CX Wizard CNAME
8905
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
10155
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8906
10156
  * @param {*} [options] Override http request option.
8907
10157
  * @throws {RequiredError}
8908
10158
  */
8909
- async patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8910
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options);
10159
+ async patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10160
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options);
8911
10161
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8912
10162
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetTcxWizardCname']?.[localVarOperationServerIndex]?.url;
8913
10163
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8914
10164
  },
10165
+ /**
10166
+ * Set Account CNAME
10167
+ * @param {string} id Xero ID
10168
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
10169
+ * @param {*} [options] Override http request option.
10170
+ * @throws {RequiredError}
10171
+ */
10172
+ async patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10173
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options);
10174
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10175
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountCname']?.[localVarOperationServerIndex]?.url;
10176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10177
+ },
10178
+ /**
10179
+ * Set Account Company Number
10180
+ * @param {string} id Xero ID
10181
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
10182
+ * @param {*} [options] Override http request option.
10183
+ * @throws {RequiredError}
10184
+ */
10185
+ async patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10186
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options);
10187
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10188
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountCompanyNumber']?.[localVarOperationServerIndex]?.url;
10189
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10190
+ },
8915
10191
  /**
8916
10192
  * Update Account Password
8917
10193
  * @summary Update Account Password
@@ -8926,6 +10202,110 @@ export const AccountsApiFp = function(configuration?: Configuration) {
8926
10202
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountContactPassword']?.[localVarOperationServerIndex]?.url;
8927
10203
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8928
10204
  },
10205
+ /**
10206
+ * Set Account Phone
10207
+ * @param {string} id Xero ID
10208
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
10209
+ * @param {*} [options] Override http request option.
10210
+ * @throws {RequiredError}
10211
+ */
10212
+ async patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10213
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options);
10214
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10215
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountPhone']?.[localVarOperationServerIndex]?.url;
10216
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10217
+ },
10218
+ /**
10219
+ * Set Account VAT Number
10220
+ * @param {string} id Xero ID
10221
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
10222
+ * @param {*} [options] Override http request option.
10223
+ * @throws {RequiredError}
10224
+ */
10225
+ async patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10226
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options);
10227
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10228
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountVatNumber']?.[localVarOperationServerIndex]?.url;
10229
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10230
+ },
10231
+ /**
10232
+ * Set Account Credit Limit
10233
+ * @param {string} id Xero ID
10234
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
10235
+ * @param {*} [options] Override http request option.
10236
+ * @throws {RequiredError}
10237
+ */
10238
+ async patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
10239
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options);
10240
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10241
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateCreditLimit']?.[localVarOperationServerIndex]?.url;
10242
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10243
+ },
10244
+ /**
10245
+ * Set Account Price List
10246
+ * @param {string} id Xero ID
10247
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
10248
+ * @param {*} [options] Override http request option.
10249
+ * @throws {RequiredError}
10250
+ */
10251
+ async patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
10252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdatePriceList(id, patchUpdatePriceListRequest, options);
10253
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10254
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdatePriceList']?.[localVarOperationServerIndex]?.url;
10255
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10256
+ },
10257
+ /**
10258
+ * Set Account SIP Channel Cost
10259
+ * @param {string} id Xero ID
10260
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
10261
+ * @param {*} [options] Override http request option.
10262
+ * @throws {RequiredError}
10263
+ */
10264
+ async patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
10265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options);
10266
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10267
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateSipChannelCost']?.[localVarOperationServerIndex]?.url;
10268
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10269
+ },
10270
+ /**
10271
+ * Set Account 3CX Hosting Price List
10272
+ * @param {string} id Xero ID
10273
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
10274
+ * @param {*} [options] Override http request option.
10275
+ * @throws {RequiredError}
10276
+ */
10277
+ async patchUpdateTcxHostingPriceList(id: string, patchUpdateTcxHostingPriceListRequest?: PatchUpdateTcxHostingPriceListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerDTO>> {
10278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options);
10279
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10280
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateTcxHostingPriceList']?.[localVarOperationServerIndex]?.url;
10281
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10282
+ },
10283
+ /**
10284
+ * Set Account 3CX Partner ID
10285
+ * @param {string} id Xero ID
10286
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
10287
+ * @param {*} [options] Override http request option.
10288
+ * @throws {RequiredError}
10289
+ */
10290
+ async patchUpdateTcxPartnerId(id: string, patchUpdateTcxPartnerIdRequest?: PatchUpdateTcxPartnerIdRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerDTO>> {
10291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options);
10292
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10293
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateTcxPartnerId']?.[localVarOperationServerIndex]?.url;
10294
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10295
+ },
10296
+ /**
10297
+ * Create Account Contact
10298
+ * @param {string} id Account Xero ID
10299
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
10300
+ * @param {*} [options] Override http request option.
10301
+ * @throws {RequiredError}
10302
+ */
10303
+ async postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options);
10305
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10306
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.postAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
10307
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10308
+ },
8929
10309
  /**
8930
10310
  * Add Account Contacts
8931
10311
  * @summary Add Account Contact
@@ -9003,6 +10383,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9003
10383
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSendPasswordReset']?.[localVarOperationServerIndex]?.url;
9004
10384
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9005
10385
  },
10386
+ /**
10387
+ * Send Account Welcome Email
10388
+ * @param {string} id Xero ID
10389
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
10390
+ * @param {*} [options] Override http request option.
10391
+ * @throws {RequiredError}
10392
+ */
10393
+ async postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10394
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options);
10395
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10396
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSendWelcomeEmail']?.[localVarOperationServerIndex]?.url;
10397
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10398
+ },
9006
10399
  /**
9007
10400
  * Submit reseller application
9008
10401
  * @summary Submit reseller application
@@ -9018,6 +10411,20 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9018
10411
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSubmitResellerApplication']?.[localVarOperationServerIndex]?.url;
9019
10412
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9020
10413
  },
10414
+ /**
10415
+ * Update Account Contact
10416
+ * @param {string} id Account Xero ID
10417
+ * @param {number} contactId Contact ID
10418
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
10419
+ * @param {*} [options] Override http request option.
10420
+ * @throws {RequiredError}
10421
+ */
10422
+ async putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options);
10424
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10425
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
10426
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10427
+ },
9021
10428
  /**
9022
10429
  * Update Account Contacts
9023
10430
  * @summary Update Account Contact
@@ -9032,6 +10439,32 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9032
10439
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
9033
10440
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9034
10441
  },
10442
+ /**
10443
+ * Update Account Billing Address
10444
+ * @param {string} id Xero ID
10445
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
10446
+ * @param {*} [options] Override http request option.
10447
+ * @throws {RequiredError}
10448
+ */
10449
+ async putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options);
10451
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10452
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateBillingAddress']?.[localVarOperationServerIndex]?.url;
10453
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10454
+ },
10455
+ /**
10456
+ * Update Account Shipping Address
10457
+ * @param {string} id Xero ID
10458
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
10459
+ * @param {*} [options] Override http request option.
10460
+ * @throws {RequiredError}
10461
+ */
10462
+ async putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
10463
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateShippingAddress(id, addressDTO, options);
10464
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10465
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateShippingAddress']?.[localVarOperationServerIndex]?.url;
10466
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10467
+ },
9035
10468
  }
9036
10469
  };
9037
10470
 
@@ -9041,6 +10474,25 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9041
10474
  export const AccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9042
10475
  const localVarFp = AccountsApiFp(configuration)
9043
10476
  return {
10477
+ /**
10478
+ * Delete Account Contact
10479
+ * @param {string} id Account Xero ID
10480
+ * @param {number} contactId Contact ID
10481
+ * @param {*} [options] Override http request option.
10482
+ * @throws {RequiredError}
10483
+ */
10484
+ deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10485
+ return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(axios, basePath));
10486
+ },
10487
+ /**
10488
+ * Delete Account
10489
+ * @param {string} id Account Xero ID
10490
+ * @param {*} [options] Override http request option.
10491
+ * @throws {RequiredError}
10492
+ */
10493
+ deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10494
+ return localVarFp.deleteArchiveAccount(id, options).then((request) => request(axios, basePath));
10495
+ },
9044
10496
  /**
9045
10497
  * Delete client credentials
9046
10498
  * @summary Delete client credentials
@@ -9061,6 +10513,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9061
10513
  deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9062
10514
  return localVarFp.deleteUpdateAccountContact(email, options).then((request) => request(axios, basePath));
9063
10515
  },
10516
+ /**
10517
+ * Get Account Contacts
10518
+ * @param {string} id Account Xero ID
10519
+ * @param {*} [options] Override http request option.
10520
+ * @throws {RequiredError}
10521
+ */
10522
+ getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
10523
+ return localVarFp.getAdminCreateAccountContact(id, options).then((request) => request(axios, basePath));
10524
+ },
9064
10525
  /**
9065
10526
  * Get Account
9066
10527
  * @summary Get Account
@@ -9070,6 +10531,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9070
10531
  getGetAccount(options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
9071
10532
  return localVarFp.getGetAccount(options).then((request) => request(axios, basePath));
9072
10533
  },
10534
+ /**
10535
+ * Get Account Addresses
10536
+ * @param {string} id Xero ID
10537
+ * @param {*} [options] Override http request option.
10538
+ * @throws {RequiredError}
10539
+ */
10540
+ getGetAccountAddresses(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountAddressesDTO> {
10541
+ return localVarFp.getGetAccountAddresses(id, options).then((request) => request(axios, basePath));
10542
+ },
9073
10543
  /**
9074
10544
  * Get Account Contacts
9075
10545
  * @summary Get Account Contacts
@@ -9121,6 +10591,24 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9121
10591
  getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>> {
9122
10592
  return localVarFp.getGetCustomerKeys(options).then((request) => request(axios, basePath));
9123
10593
  },
10594
+ /**
10595
+ * Get Account Finance
10596
+ * @param {string} id Account Xero ID
10597
+ * @param {*} [options] Override http request option.
10598
+ * @throws {RequiredError}
10599
+ */
10600
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
10601
+ return localVarFp.getGetFinanceSettings(id, options).then((request) => request(axios, basePath));
10602
+ },
10603
+ /**
10604
+ * Get Account 3CX Details
10605
+ * @param {string} id Xero ID
10606
+ * @param {*} [options] Override http request option.
10607
+ * @throws {RequiredError}
10608
+ */
10609
+ getGetTcxPartnerDetails(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PartnerDTO> {
10610
+ return localVarFp.getGetTcxPartnerDetails(id, options).then((request) => request(axios, basePath));
10611
+ },
9124
10612
  /**
9125
10613
  * Verify account email address
9126
10614
  * @summary Verify account email address
@@ -9131,14 +10619,54 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9131
10619
  getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9132
10620
  return localVarFp.getVerifyEmailAddress(token, options).then((request) => request(axios, basePath));
9133
10621
  },
10622
+ /**
10623
+ * Set Account Portal Access
10624
+ * @param {string} id Xero ID
10625
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
10626
+ * @param {*} [options] Override http request option.
10627
+ * @throws {RequiredError}
10628
+ */
10629
+ patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10630
+ return localVarFp.patchSetPortalAccess(id, state, options).then((request) => request(axios, basePath));
10631
+ },
10632
+ /**
10633
+ * Set Account Prize Promo
10634
+ * @param {string} id Xero ID
10635
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
10636
+ * @param {*} [options] Override http request option.
10637
+ * @throws {RequiredError}
10638
+ */
10639
+ patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10640
+ return localVarFp.patchSetPrizePromo(id, state, options).then((request) => request(axios, basePath));
10641
+ },
9134
10642
  /**
9135
10643
  * Set 3CX Wizard CNAME
9136
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
10644
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
10645
+ * @param {*} [options] Override http request option.
10646
+ * @throws {RequiredError}
10647
+ */
10648
+ patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10649
+ return localVarFp.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then((request) => request(axios, basePath));
10650
+ },
10651
+ /**
10652
+ * Set Account CNAME
10653
+ * @param {string} id Xero ID
10654
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
10655
+ * @param {*} [options] Override http request option.
10656
+ * @throws {RequiredError}
10657
+ */
10658
+ patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10659
+ return localVarFp.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then((request) => request(axios, basePath));
10660
+ },
10661
+ /**
10662
+ * Set Account Company Number
10663
+ * @param {string} id Xero ID
10664
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
9137
10665
  * @param {*} [options] Override http request option.
9138
10666
  * @throws {RequiredError}
9139
10667
  */
9140
- patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9141
- return localVarFp.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then((request) => request(axios, basePath));
10668
+ patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10669
+ return localVarFp.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then((request) => request(axios, basePath));
9142
10670
  },
9143
10671
  /**
9144
10672
  * Update Account Password
@@ -9151,6 +10679,86 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9151
10679
  patchUpdateAccountContactPassword(token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9152
10680
  return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then((request) => request(axios, basePath));
9153
10681
  },
10682
+ /**
10683
+ * Set Account Phone
10684
+ * @param {string} id Xero ID
10685
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
10686
+ * @param {*} [options] Override http request option.
10687
+ * @throws {RequiredError}
10688
+ */
10689
+ patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10690
+ return localVarFp.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then((request) => request(axios, basePath));
10691
+ },
10692
+ /**
10693
+ * Set Account VAT Number
10694
+ * @param {string} id Xero ID
10695
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
10696
+ * @param {*} [options] Override http request option.
10697
+ * @throws {RequiredError}
10698
+ */
10699
+ patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10700
+ return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(axios, basePath));
10701
+ },
10702
+ /**
10703
+ * Set Account Credit Limit
10704
+ * @param {string} id Xero ID
10705
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
10706
+ * @param {*} [options] Override http request option.
10707
+ * @throws {RequiredError}
10708
+ */
10709
+ patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
10710
+ return localVarFp.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then((request) => request(axios, basePath));
10711
+ },
10712
+ /**
10713
+ * Set Account Price List
10714
+ * @param {string} id Xero ID
10715
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
10716
+ * @param {*} [options] Override http request option.
10717
+ * @throws {RequiredError}
10718
+ */
10719
+ patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
10720
+ return localVarFp.patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then((request) => request(axios, basePath));
10721
+ },
10722
+ /**
10723
+ * Set Account SIP Channel Cost
10724
+ * @param {string} id Xero ID
10725
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
10726
+ * @param {*} [options] Override http request option.
10727
+ * @throws {RequiredError}
10728
+ */
10729
+ patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
10730
+ return localVarFp.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then((request) => request(axios, basePath));
10731
+ },
10732
+ /**
10733
+ * Set Account 3CX Hosting Price List
10734
+ * @param {string} id Xero ID
10735
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
10736
+ * @param {*} [options] Override http request option.
10737
+ * @throws {RequiredError}
10738
+ */
10739
+ patchUpdateTcxHostingPriceList(id: string, patchUpdateTcxHostingPriceListRequest?: PatchUpdateTcxHostingPriceListRequest, options?: RawAxiosRequestConfig): AxiosPromise<PartnerDTO> {
10740
+ return localVarFp.patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options).then((request) => request(axios, basePath));
10741
+ },
10742
+ /**
10743
+ * Set Account 3CX Partner ID
10744
+ * @param {string} id Xero ID
10745
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
10746
+ * @param {*} [options] Override http request option.
10747
+ * @throws {RequiredError}
10748
+ */
10749
+ patchUpdateTcxPartnerId(id: string, patchUpdateTcxPartnerIdRequest?: PatchUpdateTcxPartnerIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PartnerDTO> {
10750
+ return localVarFp.patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options).then((request) => request(axios, basePath));
10751
+ },
10752
+ /**
10753
+ * Create Account Contact
10754
+ * @param {string} id Account Xero ID
10755
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
10756
+ * @param {*} [options] Override http request option.
10757
+ * @throws {RequiredError}
10758
+ */
10759
+ postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10760
+ return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(axios, basePath));
10761
+ },
9154
10762
  /**
9155
10763
  * Add Account Contacts
9156
10764
  * @summary Add Account Contact
@@ -9210,6 +10818,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9210
10818
  postSendPasswordReset(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9211
10819
  return localVarFp.postSendPasswordReset(email, options).then((request) => request(axios, basePath));
9212
10820
  },
10821
+ /**
10822
+ * Send Account Welcome Email
10823
+ * @param {string} id Xero ID
10824
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
10825
+ * @param {*} [options] Override http request option.
10826
+ * @throws {RequiredError}
10827
+ */
10828
+ postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10829
+ return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then((request) => request(axios, basePath));
10830
+ },
9213
10831
  /**
9214
10832
  * Submit reseller application
9215
10833
  * @summary Submit reseller application
@@ -9222,6 +10840,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9222
10840
  postSubmitResellerApplication(creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9223
10841
  return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(axios, basePath));
9224
10842
  },
10843
+ /**
10844
+ * Update Account Contact
10845
+ * @param {string} id Account Xero ID
10846
+ * @param {number} contactId Contact ID
10847
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
10848
+ * @param {*} [options] Override http request option.
10849
+ * @throws {RequiredError}
10850
+ */
10851
+ putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10852
+ return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(axios, basePath));
10853
+ },
9225
10854
  /**
9226
10855
  * Update Account Contacts
9227
10856
  * @summary Update Account Contact
@@ -9233,6 +10862,26 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9233
10862
  putUpdateAccountContact(email: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9234
10863
  return localVarFp.putUpdateAccountContact(email, accountContactRequestModel, options).then((request) => request(axios, basePath));
9235
10864
  },
10865
+ /**
10866
+ * Update Account Billing Address
10867
+ * @param {string} id Xero ID
10868
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
10869
+ * @param {*} [options] Override http request option.
10870
+ * @throws {RequiredError}
10871
+ */
10872
+ putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10873
+ return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
10874
+ },
10875
+ /**
10876
+ * Update Account Shipping Address
10877
+ * @param {string} id Xero ID
10878
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
10879
+ * @param {*} [options] Override http request option.
10880
+ * @throws {RequiredError}
10881
+ */
10882
+ putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10883
+ return localVarFp.putUpdateShippingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
10884
+ },
9236
10885
  };
9237
10886
  };
9238
10887
 
@@ -9240,6 +10889,27 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9240
10889
  * AccountsApi - object-oriented interface
9241
10890
  */
9242
10891
  export class AccountsApi extends BaseAPI {
10892
+ /**
10893
+ * Delete Account Contact
10894
+ * @param {string} id Account Xero ID
10895
+ * @param {number} contactId Contact ID
10896
+ * @param {*} [options] Override http request option.
10897
+ * @throws {RequiredError}
10898
+ */
10899
+ public deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig) {
10900
+ return AccountsApiFp(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(this.axios, this.basePath));
10901
+ }
10902
+
10903
+ /**
10904
+ * Delete Account
10905
+ * @param {string} id Account Xero ID
10906
+ * @param {*} [options] Override http request option.
10907
+ * @throws {RequiredError}
10908
+ */
10909
+ public deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig) {
10910
+ return AccountsApiFp(this.configuration).deleteArchiveAccount(id, options).then((request) => request(this.axios, this.basePath));
10911
+ }
10912
+
9243
10913
  /**
9244
10914
  * Delete client credentials
9245
10915
  * @summary Delete client credentials
@@ -9262,6 +10932,16 @@ export class AccountsApi extends BaseAPI {
9262
10932
  return AccountsApiFp(this.configuration).deleteUpdateAccountContact(email, options).then((request) => request(this.axios, this.basePath));
9263
10933
  }
9264
10934
 
10935
+ /**
10936
+ * Get Account Contacts
10937
+ * @param {string} id Account Xero ID
10938
+ * @param {*} [options] Override http request option.
10939
+ * @throws {RequiredError}
10940
+ */
10941
+ public getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig) {
10942
+ return AccountsApiFp(this.configuration).getAdminCreateAccountContact(id, options).then((request) => request(this.axios, this.basePath));
10943
+ }
10944
+
9265
10945
  /**
9266
10946
  * Get Account
9267
10947
  * @summary Get Account
@@ -9272,6 +10952,16 @@ export class AccountsApi extends BaseAPI {
9272
10952
  return AccountsApiFp(this.configuration).getGetAccount(options).then((request) => request(this.axios, this.basePath));
9273
10953
  }
9274
10954
 
10955
+ /**
10956
+ * Get Account Addresses
10957
+ * @param {string} id Xero ID
10958
+ * @param {*} [options] Override http request option.
10959
+ * @throws {RequiredError}
10960
+ */
10961
+ public getGetAccountAddresses(id: string, options?: RawAxiosRequestConfig) {
10962
+ return AccountsApiFp(this.configuration).getGetAccountAddresses(id, options).then((request) => request(this.axios, this.basePath));
10963
+ }
10964
+
9275
10965
  /**
9276
10966
  * Get Account Contacts
9277
10967
  * @summary Get Account Contacts
@@ -9328,6 +11018,26 @@ export class AccountsApi extends BaseAPI {
9328
11018
  return AccountsApiFp(this.configuration).getGetCustomerKeys(options).then((request) => request(this.axios, this.basePath));
9329
11019
  }
9330
11020
 
11021
+ /**
11022
+ * Get Account Finance
11023
+ * @param {string} id Account Xero ID
11024
+ * @param {*} [options] Override http request option.
11025
+ * @throws {RequiredError}
11026
+ */
11027
+ public getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig) {
11028
+ return AccountsApiFp(this.configuration).getGetFinanceSettings(id, options).then((request) => request(this.axios, this.basePath));
11029
+ }
11030
+
11031
+ /**
11032
+ * Get Account 3CX Details
11033
+ * @param {string} id Xero ID
11034
+ * @param {*} [options] Override http request option.
11035
+ * @throws {RequiredError}
11036
+ */
11037
+ public getGetTcxPartnerDetails(id: string, options?: RawAxiosRequestConfig) {
11038
+ return AccountsApiFp(this.configuration).getGetTcxPartnerDetails(id, options).then((request) => request(this.axios, this.basePath));
11039
+ }
11040
+
9331
11041
  /**
9332
11042
  * Verify account email address
9333
11043
  * @summary Verify account email address
@@ -9339,14 +11049,58 @@ export class AccountsApi extends BaseAPI {
9339
11049
  return AccountsApiFp(this.configuration).getVerifyEmailAddress(token, options).then((request) => request(this.axios, this.basePath));
9340
11050
  }
9341
11051
 
11052
+ /**
11053
+ * Set Account Portal Access
11054
+ * @param {string} id Xero ID
11055
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
11056
+ * @param {*} [options] Override http request option.
11057
+ * @throws {RequiredError}
11058
+ */
11059
+ public patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig) {
11060
+ return AccountsApiFp(this.configuration).patchSetPortalAccess(id, state, options).then((request) => request(this.axios, this.basePath));
11061
+ }
11062
+
11063
+ /**
11064
+ * Set Account Prize Promo
11065
+ * @param {string} id Xero ID
11066
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
11067
+ * @param {*} [options] Override http request option.
11068
+ * @throws {RequiredError}
11069
+ */
11070
+ public patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig) {
11071
+ return AccountsApiFp(this.configuration).patchSetPrizePromo(id, state, options).then((request) => request(this.axios, this.basePath));
11072
+ }
11073
+
9342
11074
  /**
9343
11075
  * Set 3CX Wizard CNAME
9344
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
11076
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
11077
+ * @param {*} [options] Override http request option.
11078
+ * @throws {RequiredError}
11079
+ */
11080
+ public patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig) {
11081
+ return AccountsApiFp(this.configuration).patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then((request) => request(this.axios, this.basePath));
11082
+ }
11083
+
11084
+ /**
11085
+ * Set Account CNAME
11086
+ * @param {string} id Xero ID
11087
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
11088
+ * @param {*} [options] Override http request option.
11089
+ * @throws {RequiredError}
11090
+ */
11091
+ public patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig) {
11092
+ return AccountsApiFp(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then((request) => request(this.axios, this.basePath));
11093
+ }
11094
+
11095
+ /**
11096
+ * Set Account Company Number
11097
+ * @param {string} id Xero ID
11098
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
9345
11099
  * @param {*} [options] Override http request option.
9346
11100
  * @throws {RequiredError}
9347
11101
  */
9348
- public patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig) {
9349
- return AccountsApiFp(this.configuration).patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then((request) => request(this.axios, this.basePath));
11102
+ public patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig) {
11103
+ return AccountsApiFp(this.configuration).patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then((request) => request(this.axios, this.basePath));
9350
11104
  }
9351
11105
 
9352
11106
  /**
@@ -9361,6 +11115,94 @@ export class AccountsApi extends BaseAPI {
9361
11115
  return AccountsApiFp(this.configuration).patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then((request) => request(this.axios, this.basePath));
9362
11116
  }
9363
11117
 
11118
+ /**
11119
+ * Set Account Phone
11120
+ * @param {string} id Xero ID
11121
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
11122
+ * @param {*} [options] Override http request option.
11123
+ * @throws {RequiredError}
11124
+ */
11125
+ public patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig) {
11126
+ return AccountsApiFp(this.configuration).patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then((request) => request(this.axios, this.basePath));
11127
+ }
11128
+
11129
+ /**
11130
+ * Set Account VAT Number
11131
+ * @param {string} id Xero ID
11132
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
11133
+ * @param {*} [options] Override http request option.
11134
+ * @throws {RequiredError}
11135
+ */
11136
+ public patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig) {
11137
+ return AccountsApiFp(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(this.axios, this.basePath));
11138
+ }
11139
+
11140
+ /**
11141
+ * Set Account Credit Limit
11142
+ * @param {string} id Xero ID
11143
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
11144
+ * @param {*} [options] Override http request option.
11145
+ * @throws {RequiredError}
11146
+ */
11147
+ public patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig) {
11148
+ return AccountsApiFp(this.configuration).patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then((request) => request(this.axios, this.basePath));
11149
+ }
11150
+
11151
+ /**
11152
+ * Set Account Price List
11153
+ * @param {string} id Xero ID
11154
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
11155
+ * @param {*} [options] Override http request option.
11156
+ * @throws {RequiredError}
11157
+ */
11158
+ public patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig) {
11159
+ return AccountsApiFp(this.configuration).patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then((request) => request(this.axios, this.basePath));
11160
+ }
11161
+
11162
+ /**
11163
+ * Set Account SIP Channel Cost
11164
+ * @param {string} id Xero ID
11165
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
11166
+ * @param {*} [options] Override http request option.
11167
+ * @throws {RequiredError}
11168
+ */
11169
+ public patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig) {
11170
+ return AccountsApiFp(this.configuration).patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then((request) => request(this.axios, this.basePath));
11171
+ }
11172
+
11173
+ /**
11174
+ * Set Account 3CX Hosting Price List
11175
+ * @param {string} id Xero ID
11176
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
11177
+ * @param {*} [options] Override http request option.
11178
+ * @throws {RequiredError}
11179
+ */
11180
+ public patchUpdateTcxHostingPriceList(id: string, patchUpdateTcxHostingPriceListRequest?: PatchUpdateTcxHostingPriceListRequest, options?: RawAxiosRequestConfig) {
11181
+ return AccountsApiFp(this.configuration).patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options).then((request) => request(this.axios, this.basePath));
11182
+ }
11183
+
11184
+ /**
11185
+ * Set Account 3CX Partner ID
11186
+ * @param {string} id Xero ID
11187
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
11188
+ * @param {*} [options] Override http request option.
11189
+ * @throws {RequiredError}
11190
+ */
11191
+ public patchUpdateTcxPartnerId(id: string, patchUpdateTcxPartnerIdRequest?: PatchUpdateTcxPartnerIdRequest, options?: RawAxiosRequestConfig) {
11192
+ return AccountsApiFp(this.configuration).patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options).then((request) => request(this.axios, this.basePath));
11193
+ }
11194
+
11195
+ /**
11196
+ * Create Account Contact
11197
+ * @param {string} id Account Xero ID
11198
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
11199
+ * @param {*} [options] Override http request option.
11200
+ * @throws {RequiredError}
11201
+ */
11202
+ public postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
11203
+ return AccountsApiFp(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
11204
+ }
11205
+
9364
11206
  /**
9365
11207
  * Add Account Contacts
9366
11208
  * @summary Add Account Contact
@@ -9426,6 +11268,17 @@ export class AccountsApi extends BaseAPI {
9426
11268
  return AccountsApiFp(this.configuration).postSendPasswordReset(email, options).then((request) => request(this.axios, this.basePath));
9427
11269
  }
9428
11270
 
11271
+ /**
11272
+ * Send Account Welcome Email
11273
+ * @param {string} id Xero ID
11274
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
11275
+ * @param {*} [options] Override http request option.
11276
+ * @throws {RequiredError}
11277
+ */
11278
+ public postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig) {
11279
+ return AccountsApiFp(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then((request) => request(this.axios, this.basePath));
11280
+ }
11281
+
9429
11282
  /**
9430
11283
  * Submit reseller application
9431
11284
  * @summary Submit reseller application
@@ -9439,6 +11292,18 @@ export class AccountsApi extends BaseAPI {
9439
11292
  return AccountsApiFp(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(this.axios, this.basePath));
9440
11293
  }
9441
11294
 
11295
+ /**
11296
+ * Update Account Contact
11297
+ * @param {string} id Account Xero ID
11298
+ * @param {number} contactId Contact ID
11299
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
11300
+ * @param {*} [options] Override http request option.
11301
+ * @throws {RequiredError}
11302
+ */
11303
+ public putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
11304
+ return AccountsApiFp(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
11305
+ }
11306
+
9442
11307
  /**
9443
11308
  * Update Account Contacts
9444
11309
  * @summary Update Account Contact
@@ -9450,8 +11315,40 @@ export class AccountsApi extends BaseAPI {
9450
11315
  public putUpdateAccountContact(email: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
9451
11316
  return AccountsApiFp(this.configuration).putUpdateAccountContact(email, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
9452
11317
  }
11318
+
11319
+ /**
11320
+ * Update Account Billing Address
11321
+ * @param {string} id Xero ID
11322
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
11323
+ * @param {*} [options] Override http request option.
11324
+ * @throws {RequiredError}
11325
+ */
11326
+ public putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) {
11327
+ return AccountsApiFp(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
11328
+ }
11329
+
11330
+ /**
11331
+ * Update Account Shipping Address
11332
+ * @param {string} id Xero ID
11333
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
11334
+ * @param {*} [options] Override http request option.
11335
+ * @throws {RequiredError}
11336
+ */
11337
+ public putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) {
11338
+ return AccountsApiFp(this.configuration).putUpdateShippingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
11339
+ }
9453
11340
  }
9454
11341
 
11342
+ export const PatchSetPortalAccessStateEnum = {
11343
+ Enable: 'enable',
11344
+ Disable: 'disable',
11345
+ } as const;
11346
+ export type PatchSetPortalAccessStateEnum = typeof PatchSetPortalAccessStateEnum[keyof typeof PatchSetPortalAccessStateEnum];
11347
+ export const PatchSetPrizePromoStateEnum = {
11348
+ Enable: 'enable',
11349
+ Disable: 'disable',
11350
+ } as const;
11351
+ export type PatchSetPrizePromoStateEnum = typeof PatchSetPrizePromoStateEnum[keyof typeof PatchSetPrizePromoStateEnum];
9455
11352
 
9456
11353
 
9457
11354
  /**
@@ -9553,6 +11450,49 @@ export class BillingApi extends BaseAPI {
9553
11450
  */
9554
11451
  export const CRMApiAxiosParamCreator = function (configuration?: Configuration) {
9555
11452
  return {
11453
+ /**
11454
+ * Get Customer CRM Activities
11455
+ * @param {number} id Account ID
11456
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
11457
+ * @param {number} [userId] Activity Created By
11458
+ * @param {*} [options] Override http request option.
11459
+ * @throws {RequiredError}
11460
+ */
11461
+ getGetCrmActivities: async (id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11462
+ // verify required parameter 'id' is not null or undefined
11463
+ assertParamExists('getGetCrmActivities', 'id', id)
11464
+ const localVarPath = `/admin/crm/{id}/activities`
11465
+ .replace('{id}', encodeURIComponent(String(id)));
11466
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11467
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11468
+ let baseOptions;
11469
+ if (configuration) {
11470
+ baseOptions = configuration.baseOptions;
11471
+ }
11472
+
11473
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11474
+ const localVarHeaderParameter = {} as any;
11475
+ const localVarQueryParameter = {} as any;
11476
+
11477
+ if (type !== undefined) {
11478
+ localVarQueryParameter['type'] = type;
11479
+ }
11480
+
11481
+ if (userId !== undefined) {
11482
+ localVarQueryParameter['userId'] = userId;
11483
+ }
11484
+
11485
+ localVarHeaderParameter['Accept'] = 'application/json';
11486
+
11487
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11489
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11490
+
11491
+ return {
11492
+ url: toPathString(localVarUrlObj),
11493
+ options: localVarRequestOptions,
11494
+ };
11495
+ },
9556
11496
  /**
9557
11497
  * Search for contacts by phone number
9558
11498
  * @param {*} [options] Override http request option.
@@ -9577,6 +11517,42 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
9577
11517
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9578
11518
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9579
11519
 
11520
+ return {
11521
+ url: toPathString(localVarUrlObj),
11522
+ options: localVarRequestOptions,
11523
+ };
11524
+ },
11525
+ /**
11526
+ * Create CRM Note
11527
+ * @param {number} id Account ID
11528
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
11529
+ * @param {*} [options] Override http request option.
11530
+ * @throws {RequiredError}
11531
+ */
11532
+ postCreateCrmNote: async (id: number, createCrmNoteBody?: CreateCrmNoteBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11533
+ // verify required parameter 'id' is not null or undefined
11534
+ assertParamExists('postCreateCrmNote', 'id', id)
11535
+ const localVarPath = `/admin/crm/{id}/activities/note`
11536
+ .replace('{id}', encodeURIComponent(String(id)));
11537
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11538
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11539
+ let baseOptions;
11540
+ if (configuration) {
11541
+ baseOptions = configuration.baseOptions;
11542
+ }
11543
+
11544
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11545
+ const localVarHeaderParameter = {} as any;
11546
+ const localVarQueryParameter = {} as any;
11547
+
11548
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11549
+ localVarHeaderParameter['Accept'] = 'application/json';
11550
+
11551
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11552
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11553
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11554
+ localVarRequestOptions.data = serializeDataIfNeeded(createCrmNoteBody, localVarRequestOptions, configuration)
11555
+
9580
11556
  return {
9581
11557
  url: toPathString(localVarUrlObj),
9582
11558
  options: localVarRequestOptions,
@@ -9591,6 +11567,20 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
9591
11567
  export const CRMApiFp = function(configuration?: Configuration) {
9592
11568
  const localVarAxiosParamCreator = CRMApiAxiosParamCreator(configuration)
9593
11569
  return {
11570
+ /**
11571
+ * Get Customer CRM Activities
11572
+ * @param {number} id Account ID
11573
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
11574
+ * @param {number} [userId] Activity Created By
11575
+ * @param {*} [options] Override http request option.
11576
+ * @throws {RequiredError}
11577
+ */
11578
+ async getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivitiesResponseDTO>> {
11579
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCrmActivities(id, type, userId, options);
11580
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11581
+ const localVarOperationServerBasePath = operationServerMap['CRMApi.getGetCrmActivities']?.[localVarOperationServerIndex]?.url;
11582
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11583
+ },
9594
11584
  /**
9595
11585
  * Search for contacts by phone number
9596
11586
  * @param {*} [options] Override http request option.
@@ -9602,6 +11592,19 @@ export const CRMApiFp = function(configuration?: Configuration) {
9602
11592
  const localVarOperationServerBasePath = operationServerMap['CRMApi.getSearchByPhone']?.[localVarOperationServerIndex]?.url;
9603
11593
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9604
11594
  },
11595
+ /**
11596
+ * Create CRM Note
11597
+ * @param {number} id Account ID
11598
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
11599
+ * @param {*} [options] Override http request option.
11600
+ * @throws {RequiredError}
11601
+ */
11602
+ async postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivityDTO>> {
11603
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateCrmNote(id, createCrmNoteBody, options);
11604
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11605
+ const localVarOperationServerBasePath = operationServerMap['CRMApi.postCreateCrmNote']?.[localVarOperationServerIndex]?.url;
11606
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11607
+ },
9605
11608
  }
9606
11609
  };
9607
11610
 
@@ -9611,6 +11614,17 @@ export const CRMApiFp = function(configuration?: Configuration) {
9611
11614
  export const CRMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9612
11615
  const localVarFp = CRMApiFp(configuration)
9613
11616
  return {
11617
+ /**
11618
+ * Get Customer CRM Activities
11619
+ * @param {number} id Account ID
11620
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
11621
+ * @param {number} [userId] Activity Created By
11622
+ * @param {*} [options] Override http request option.
11623
+ * @throws {RequiredError}
11624
+ */
11625
+ getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivitiesResponseDTO> {
11626
+ return localVarFp.getGetCrmActivities(id, type, userId, options).then((request) => request(axios, basePath));
11627
+ },
9614
11628
  /**
9615
11629
  * Search for contacts by phone number
9616
11630
  * @param {*} [options] Override http request option.
@@ -9619,6 +11633,16 @@ export const CRMApiFactory = function (configuration?: Configuration, basePath?:
9619
11633
  getSearchByPhone(options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO> {
9620
11634
  return localVarFp.getSearchByPhone(options).then((request) => request(axios, basePath));
9621
11635
  },
11636
+ /**
11637
+ * Create CRM Note
11638
+ * @param {number} id Account ID
11639
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
11640
+ * @param {*} [options] Override http request option.
11641
+ * @throws {RequiredError}
11642
+ */
11643
+ postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO> {
11644
+ return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then((request) => request(axios, basePath));
11645
+ },
9622
11646
  };
9623
11647
  };
9624
11648
 
@@ -9626,6 +11650,18 @@ export const CRMApiFactory = function (configuration?: Configuration, basePath?:
9626
11650
  * CRMApi - object-oriented interface
9627
11651
  */
9628
11652
  export class CRMApi extends BaseAPI {
11653
+ /**
11654
+ * Get Customer CRM Activities
11655
+ * @param {number} id Account ID
11656
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
11657
+ * @param {number} [userId] Activity Created By
11658
+ * @param {*} [options] Override http request option.
11659
+ * @throws {RequiredError}
11660
+ */
11661
+ public getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig) {
11662
+ return CRMApiFp(this.configuration).getGetCrmActivities(id, type, userId, options).then((request) => request(this.axios, this.basePath));
11663
+ }
11664
+
9629
11665
  /**
9630
11666
  * Search for contacts by phone number
9631
11667
  * @param {*} [options] Override http request option.
@@ -9634,8 +11670,28 @@ export class CRMApi extends BaseAPI {
9634
11670
  public getSearchByPhone(options?: RawAxiosRequestConfig) {
9635
11671
  return CRMApiFp(this.configuration).getSearchByPhone(options).then((request) => request(this.axios, this.basePath));
9636
11672
  }
11673
+
11674
+ /**
11675
+ * Create CRM Note
11676
+ * @param {number} id Account ID
11677
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
11678
+ * @param {*} [options] Override http request option.
11679
+ * @throws {RequiredError}
11680
+ */
11681
+ public postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig) {
11682
+ return CRMApiFp(this.configuration).postCreateCrmNote(id, createCrmNoteBody, options).then((request) => request(this.axios, this.basePath));
11683
+ }
9637
11684
  }
9638
11685
 
11686
+ export const GetGetCrmActivitiesTypeEnum = {
11687
+ Alert: 'alert',
11688
+ Call: 'call',
11689
+ Note: 'note',
11690
+ Order: 'order',
11691
+ Quote: 'quote',
11692
+ TcxOrder: 'tcx_order',
11693
+ } as const;
11694
+ export type GetGetCrmActivitiesTypeEnum = typeof GetGetCrmActivitiesTypeEnum[keyof typeof GetGetCrmActivitiesTypeEnum];
9639
11695
 
9640
11696
 
9641
11697
  /**
@@ -15174,15 +17230,15 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
15174
17230
  /**
15175
17231
  *
15176
17232
  * @param {number} id Number Port ID
15177
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
17233
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
15178
17234
  * @param {*} [options] Override http request option.
15179
17235
  * @throws {RequiredError}
15180
17236
  */
15181
- postAddAdminNote: async (id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17237
+ postAddAdminNote: async (id: number, numberPortAdminNoteBody: NumberPortAdminNoteBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15182
17238
  // verify required parameter 'id' is not null or undefined
15183
17239
  assertParamExists('postAddAdminNote', 'id', id)
15184
- // verify required parameter 'postAddAdminNoteRequest' is not null or undefined
15185
- assertParamExists('postAddAdminNote', 'postAddAdminNoteRequest', postAddAdminNoteRequest)
17240
+ // verify required parameter 'numberPortAdminNoteBody' is not null or undefined
17241
+ assertParamExists('postAddAdminNote', 'numberPortAdminNoteBody', numberPortAdminNoteBody)
15186
17242
  const localVarPath = `/admin/sip/numbers/ports/{id}/notes`
15187
17243
  .replace('{id}', encodeURIComponent(String(id)));
15188
17244
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -15202,7 +17258,7 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
15202
17258
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15203
17259
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15204
17260
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15205
- localVarRequestOptions.data = serializeDataIfNeeded(postAddAdminNoteRequest, localVarRequestOptions, configuration)
17261
+ localVarRequestOptions.data = serializeDataIfNeeded(numberPortAdminNoteBody, localVarRequestOptions, configuration)
15206
17262
 
15207
17263
  return {
15208
17264
  url: toPathString(localVarUrlObj),
@@ -15631,12 +17687,12 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
15631
17687
  /**
15632
17688
  *
15633
17689
  * @param {number} id Number Port ID
15634
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
17690
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
15635
17691
  * @param {*} [options] Override http request option.
15636
17692
  * @throws {RequiredError}
15637
17693
  */
15638
- async postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
15639
- const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id, postAddAdminNoteRequest, options);
17694
+ async postAddAdminNote(id: number, numberPortAdminNoteBody: NumberPortAdminNoteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
17695
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id, numberPortAdminNoteBody, options);
15640
17696
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15641
17697
  const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postAddAdminNote']?.[localVarOperationServerIndex]?.url;
15642
17698
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15804,12 +17860,12 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
15804
17860
  /**
15805
17861
  *
15806
17862
  * @param {number} id Number Port ID
15807
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
17863
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
15808
17864
  * @param {*} [options] Override http request option.
15809
17865
  * @throws {RequiredError}
15810
17866
  */
15811
- postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
15812
- return localVarFp.postAddAdminNote(id, postAddAdminNoteRequest, options).then((request) => request(axios, basePath));
17867
+ postAddAdminNote(id: number, numberPortAdminNoteBody: NumberPortAdminNoteBody, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
17868
+ return localVarFp.postAddAdminNote(id, numberPortAdminNoteBody, options).then((request) => request(axios, basePath));
15813
17869
  },
15814
17870
  /**
15815
17871
  *
@@ -15967,12 +18023,12 @@ export class NumberPortingApi extends BaseAPI {
15967
18023
  /**
15968
18024
  *
15969
18025
  * @param {number} id Number Port ID
15970
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
18026
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
15971
18027
  * @param {*} [options] Override http request option.
15972
18028
  * @throws {RequiredError}
15973
18029
  */
15974
- public postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig) {
15975
- return NumberPortingApiFp(this.configuration).postAddAdminNote(id, postAddAdminNoteRequest, options).then((request) => request(this.axios, this.basePath));
18030
+ public postAddAdminNote(id: number, numberPortAdminNoteBody: NumberPortAdminNoteBody, options?: RawAxiosRequestConfig) {
18031
+ return NumberPortingApiFp(this.configuration).postAddAdminNote(id, numberPortAdminNoteBody, options).then((request) => request(this.axios, this.basePath));
15976
18032
  }
15977
18033
 
15978
18034
  /**