yellowgrid-api-ts 3.2.169-dev.0 → 3.2.171-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +25 -3
  2. package/README.md +54 -3
  3. package/api.ts +3303 -464
  4. package/dist/api.d.ts +1951 -213
  5. package/dist/api.js +2693 -273
  6. package/docs/AbstractItemDiscountModel.md +21 -0
  7. package/docs/AccountAddressesDTO.md +25 -0
  8. package/docs/AccountFinanceDTO.md +37 -0
  9. package/docs/AccountsApi.md +1427 -53
  10. package/docs/AddressDTO.md +31 -0
  11. package/docs/AdminUserModel.md +2 -0
  12. package/docs/CRMApi.md +120 -0
  13. package/docs/Class3CXApi.md +48 -0
  14. package/docs/Class3CXInstallationsApi.md +55 -0
  15. package/docs/CreateCrmNoteBody.md +20 -0
  16. package/docs/CreditAccountEntity.md +4 -0
  17. package/docs/CrmActivitiesResponseDTO.md +23 -0
  18. package/docs/CrmActivityDTO.md +33 -0
  19. package/docs/CrmDateActivitiesDTO.md +23 -0
  20. package/docs/CrmNoteEntity.md +39 -0
  21. package/docs/CrmNoteModel.md +39 -0
  22. package/docs/CustomerListAccountDTO.md +45 -0
  23. package/docs/NumberPortAdminNoteBody.md +20 -0
  24. package/docs/NumberPortingApi.md +5 -5
  25. package/docs/OAuth20Api.md +48 -0
  26. package/docs/PartnerDTO.md +39 -0
  27. package/docs/PatchUpdateAccountCnameRequest.md +20 -0
  28. package/docs/PatchUpdateAccountCompanyNumberRequest.md +20 -0
  29. package/docs/PatchUpdateAccountPhoneRequest.md +20 -0
  30. package/docs/PatchUpdateAccountVatNumberRequest.md +20 -0
  31. package/docs/PatchUpdateCreditLimitRequest.md +20 -0
  32. package/docs/PatchUpdatePriceListRequest.md +20 -0
  33. package/docs/PatchUpdateSipChannelCostRequest.md +20 -0
  34. package/docs/PatchUpdateTcxHostingPriceListRequest.md +20 -0
  35. package/docs/PatchUpdateTcxPartnerIdRequest.md +20 -0
  36. package/docs/PortalAccountModel.md +4 -2
  37. package/docs/PostSendWelcomeEmailRequest.md +20 -0
  38. package/docs/ProductSearchDTO.md +37 -0
  39. package/docs/ProductSummaryDTO.md +2 -0
  40. package/docs/ProductsApi.md +10 -10
  41. package/docs/ProspectDTO.md +2 -0
  42. package/docs/RecordingBackupAzureModel.md +2 -0
  43. package/docs/TableHistoryEntity.md +35 -0
  44. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -84,10 +84,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.ProspectDTOStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
88
- exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = void 0;
89
- exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = void 0;
90
- exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = void 0;
87
+ exports.CRMApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.ProspectDTOStatusEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
88
+ exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = void 0;
89
+ exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = void 0;
90
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = void 0;
91
91
  var axios_1 = require("axios");
92
92
  // Some imports not used depending on template conditions
93
93
  // @ts-ignore
@@ -110,7 +110,8 @@ exports.AdminUserModelPermissionsEnum = {
110
110
  Standard: 'Standard',
111
111
  Technical: 'Technical',
112
112
  Privileged: 'Privileged',
113
- Development: 'Development'
113
+ Development: 'Development',
114
+ Finance: 'Finance'
114
115
  };
115
116
  exports.AuditLogEntityActionEnum = {
116
117
  Create: 'CREATE',
@@ -125,6 +126,7 @@ exports.AuditLogEntityTypeEnum = {
125
126
  ApiLog: 'api_log',
126
127
  PopsBatches: 'pops_batches',
127
128
  PopsCourierPrices: 'pops_courier_prices',
129
+ PopsCrmNotes: 'pops_crm_notes',
128
130
  PopsCreditAccounts: 'pops_credit_accounts',
129
131
  PopsCreditNotes: 'pops_credit_notes',
130
132
  PopsCreditNotesItems: 'pops_credit_notes_items',
@@ -177,6 +179,7 @@ exports.AuditLogEntityTypeEnum = {
177
179
  PopsStockTransactions: 'pops_stock_transactions',
178
180
  PopsSuppliers: 'pops_suppliers',
179
181
  PopsSupplierItems: 'pops_supplier_items',
182
+ PopsTableAttribs: 'pops_table_attribs',
180
183
  Pops3cxBackup: 'pops_3cx_backup',
181
184
  Pops3cxBilling: 'pops_3cx_billing',
182
185
  PopsDeadLicences: 'pops_dead_licences',
@@ -283,12 +286,29 @@ exports.OrderTotalModelCurrencyEnum = {
283
286
  Thb: 'THB',
284
287
  Zar: 'ZAR'
285
288
  };
289
+ exports.PatchUpdatePriceListRequestPriceListEnum = {
290
+ Rrp: 'RRP',
291
+ Trade: 'Trade',
292
+ Wholesale: 'Wholesale',
293
+ Itsp: 'ITSP',
294
+ SubDisti: 'Sub Disti',
295
+ Distributor: 'Distributor',
296
+ HotelDisti: 'Hotel Disti'
297
+ };
298
+ exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = {
299
+ _1: '1',
300
+ _2: '2',
301
+ _3: '3',
302
+ _4: '4',
303
+ _5: '5'
304
+ };
286
305
  exports.ProspectDTOStatusEnum = {
287
306
  NoCallBackSet: 'No Call Back Set',
288
307
  CallBackDue: 'Call Back Due',
289
308
  NoOrdersPlaced: 'No Orders Placed',
290
309
  NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
291
- NoActionRequired: 'No Action Required'
310
+ NoActionRequired: 'No Action Required',
311
+ DoNotCall: 'Do Not Call'
292
312
  };
293
313
  exports.ServiceHealthDTOGlobalStatusEnum = {
294
314
  NUMBER_0: 0,
@@ -440,6 +460,82 @@ exports.UpgradeRequestModelSchoolTypeEnum = {
440
460
  var AccountsApiAxiosParamCreator = function (configuration) {
441
461
  var _this = this;
442
462
  return {
463
+ /**
464
+ * Delete Account Contact
465
+ * @param {string} id Account Xero ID
466
+ * @param {number} contactId Contact ID
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ deleteAdminUpdateAccountContact: function (id_1, contactId_1) {
471
+ var args_1 = [];
472
+ for (var _i = 2; _i < arguments.length; _i++) {
473
+ args_1[_i - 2] = arguments[_i];
474
+ }
475
+ return __awaiter(_this, __spreadArray([id_1, contactId_1], args_1, true), void 0, function (id, contactId, options) {
476
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
477
+ if (options === void 0) { options = {}; }
478
+ return __generator(this, function (_a) {
479
+ // verify required parameter 'id' is not null or undefined
480
+ (0, common_1.assertParamExists)('deleteAdminUpdateAccountContact', 'id', id);
481
+ // verify required parameter 'contactId' is not null or undefined
482
+ (0, common_1.assertParamExists)('deleteAdminUpdateAccountContact', 'contactId', contactId);
483
+ localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
484
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
485
+ .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
486
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
487
+ if (configuration) {
488
+ baseOptions = configuration.baseOptions;
489
+ }
490
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
491
+ localVarHeaderParameter = {};
492
+ localVarQueryParameter = {};
493
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
494
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
495
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
496
+ return [2 /*return*/, {
497
+ url: (0, common_1.toPathString)(localVarUrlObj),
498
+ options: localVarRequestOptions,
499
+ }];
500
+ });
501
+ });
502
+ },
503
+ /**
504
+ * Delete Account
505
+ * @param {string} id Account Xero ID
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ */
509
+ deleteArchiveAccount: function (id_1) {
510
+ var args_1 = [];
511
+ for (var _i = 1; _i < arguments.length; _i++) {
512
+ args_1[_i - 1] = arguments[_i];
513
+ }
514
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
515
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
516
+ if (options === void 0) { options = {}; }
517
+ return __generator(this, function (_a) {
518
+ // verify required parameter 'id' is not null or undefined
519
+ (0, common_1.assertParamExists)('deleteArchiveAccount', 'id', id);
520
+ localVarPath = "/admin/accounts/{id}/archive"
521
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
522
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
523
+ if (configuration) {
524
+ baseOptions = configuration.baseOptions;
525
+ }
526
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
527
+ localVarHeaderParameter = {};
528
+ localVarQueryParameter = {};
529
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
530
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
531
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
532
+ return [2 /*return*/, {
533
+ url: (0, common_1.toPathString)(localVarUrlObj),
534
+ options: localVarRequestOptions,
535
+ }];
536
+ });
537
+ });
538
+ },
443
539
  /**
444
540
  * Delete client credentials
445
541
  * @summary Delete client credentials
@@ -514,6 +610,42 @@ var AccountsApiAxiosParamCreator = function (configuration) {
514
610
  });
515
611
  });
516
612
  },
613
+ /**
614
+ * Get Account Contacts
615
+ * @param {string} id Account Xero ID
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ */
619
+ getAdminCreateAccountContact: function (id_1) {
620
+ var args_1 = [];
621
+ for (var _i = 1; _i < arguments.length; _i++) {
622
+ args_1[_i - 1] = arguments[_i];
623
+ }
624
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
625
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
626
+ if (options === void 0) { options = {}; }
627
+ return __generator(this, function (_a) {
628
+ // verify required parameter 'id' is not null or undefined
629
+ (0, common_1.assertParamExists)('getAdminCreateAccountContact', 'id', id);
630
+ localVarPath = "/admin/accounts/{id}/contacts"
631
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
632
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
633
+ if (configuration) {
634
+ baseOptions = configuration.baseOptions;
635
+ }
636
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
637
+ localVarHeaderParameter = {};
638
+ localVarQueryParameter = {};
639
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
640
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
641
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
642
+ return [2 /*return*/, {
643
+ url: (0, common_1.toPathString)(localVarUrlObj),
644
+ options: localVarRequestOptions,
645
+ }];
646
+ });
647
+ });
648
+ },
517
649
  /**
518
650
  * Get Account
519
651
  * @summary Get Account
@@ -547,6 +679,42 @@ var AccountsApiAxiosParamCreator = function (configuration) {
547
679
  });
548
680
  });
549
681
  },
682
+ /**
683
+ * Get Account Addresses
684
+ * @param {string} id Xero ID
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ */
688
+ getGetAccountAddresses: function (id_1) {
689
+ var args_1 = [];
690
+ for (var _i = 1; _i < arguments.length; _i++) {
691
+ args_1[_i - 1] = arguments[_i];
692
+ }
693
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
694
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
695
+ if (options === void 0) { options = {}; }
696
+ return __generator(this, function (_a) {
697
+ // verify required parameter 'id' is not null or undefined
698
+ (0, common_1.assertParamExists)('getGetAccountAddresses', 'id', id);
699
+ localVarPath = "/admin/accounts/{id}/addresses"
700
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
701
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
702
+ if (configuration) {
703
+ baseOptions = configuration.baseOptions;
704
+ }
705
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
706
+ localVarHeaderParameter = {};
707
+ localVarQueryParameter = {};
708
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
709
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
710
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
711
+ return [2 /*return*/, {
712
+ url: (0, common_1.toPathString)(localVarUrlObj),
713
+ options: localVarRequestOptions,
714
+ }];
715
+ });
716
+ });
717
+ },
550
718
  /**
551
719
  * Get Account Contacts
552
720
  * @summary Get Account Contacts
@@ -704,12 +872,11 @@ var AccountsApiAxiosParamCreator = function (configuration) {
704
872
  });
705
873
  },
706
874
  /**
707
- * Get 3CX Keys
708
- * @summary Get 3CX Keys
875
+ * Get Customer Accounts List
709
876
  * @param {*} [options] Override http request option.
710
877
  * @throws {RequiredError}
711
878
  */
712
- getGetCustomerKeys: function () {
879
+ getGetCustomerAccountsList: function () {
713
880
  var args_1 = [];
714
881
  for (var _i = 0; _i < arguments.length; _i++) {
715
882
  args_1[_i] = arguments[_i];
@@ -718,7 +885,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
718
885
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
719
886
  if (options === void 0) { options = {}; }
720
887
  return __generator(this, function (_a) {
721
- localVarPath = "/accounts/me/tcx/keys";
888
+ localVarPath = "/admin/accounts/customers/list";
722
889
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
723
890
  if (configuration) {
724
891
  baseOptions = configuration.baseOptions;
@@ -737,24 +904,21 @@ var AccountsApiAxiosParamCreator = function (configuration) {
737
904
  });
738
905
  },
739
906
  /**
740
- * Verify account email address
741
- * @summary Verify account email address
742
- * @param {string} token Verification Token
907
+ * Get 3CX Keys
908
+ * @summary Get 3CX Keys
743
909
  * @param {*} [options] Override http request option.
744
910
  * @throws {RequiredError}
745
911
  */
746
- getVerifyEmailAddress: function (token_1) {
912
+ getGetCustomerKeys: function () {
747
913
  var args_1 = [];
748
- for (var _i = 1; _i < arguments.length; _i++) {
749
- args_1[_i - 1] = arguments[_i];
914
+ for (var _i = 0; _i < arguments.length; _i++) {
915
+ args_1[_i] = arguments[_i];
750
916
  }
751
- return __awaiter(_this, __spreadArray([token_1], args_1, true), void 0, function (token, options) {
917
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
752
918
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
753
919
  if (options === void 0) { options = {}; }
754
920
  return __generator(this, function (_a) {
755
- // verify required parameter 'token' is not null or undefined
756
- (0, common_1.assertParamExists)('getVerifyEmailAddress', 'token', token);
757
- localVarPath = "/accounts/contacts/verify";
921
+ localVarPath = "/accounts/me/tcx/keys";
758
922
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
759
923
  if (configuration) {
760
924
  baseOptions = configuration.baseOptions;
@@ -762,9 +926,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
762
926
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
763
927
  localVarHeaderParameter = {};
764
928
  localVarQueryParameter = {};
765
- if (token !== undefined) {
766
- localVarQueryParameter['token'] = token;
767
- }
768
929
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
769
930
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
770
931
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -776,33 +937,34 @@ var AccountsApiAxiosParamCreator = function (configuration) {
776
937
  });
777
938
  },
778
939
  /**
779
- * Set 3CX Wizard CNAME
780
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
940
+ * Get Account Finance
941
+ * @param {string} id Account Xero ID
781
942
  * @param {*} [options] Override http request option.
782
943
  * @throws {RequiredError}
783
944
  */
784
- patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest_1) {
945
+ getGetFinanceSettings: function (id_1) {
785
946
  var args_1 = [];
786
947
  for (var _i = 1; _i < arguments.length; _i++) {
787
948
  args_1[_i - 1] = arguments[_i];
788
949
  }
789
- return __awaiter(_this, __spreadArray([patchSetTcxWizardCnameRequest_1], args_1, true), void 0, function (patchSetTcxWizardCnameRequest, options) {
950
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
790
951
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
791
952
  if (options === void 0) { options = {}; }
792
953
  return __generator(this, function (_a) {
793
- localVarPath = "/accounts/me/cname";
954
+ // verify required parameter 'id' is not null or undefined
955
+ (0, common_1.assertParamExists)('getGetFinanceSettings', 'id', id);
956
+ localVarPath = "/admin/accounts/{id}/finance"
957
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
794
958
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
795
959
  if (configuration) {
796
960
  baseOptions = configuration.baseOptions;
797
961
  }
798
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
962
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
799
963
  localVarHeaderParameter = {};
800
964
  localVarQueryParameter = {};
801
- localVarHeaderParameter['Content-Type'] = 'application/json';
802
965
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
803
966
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
804
967
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
805
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchSetTcxWizardCnameRequest, localVarRequestOptions, configuration);
806
968
  return [2 /*return*/, {
807
969
  url: (0, common_1.toPathString)(localVarUrlObj),
808
970
  options: localVarRequestOptions,
@@ -811,40 +973,31 @@ var AccountsApiAxiosParamCreator = function (configuration) {
811
973
  });
812
974
  },
813
975
  /**
814
- * Update Account Password
815
- * @summary Update Account Password
816
- * @param {string} token Verification Token
817
- * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
976
+ * Get Last Account
977
+ * @summary Get Last Account
818
978
  * @param {*} [options] Override http request option.
819
979
  * @throws {RequiredError}
820
980
  */
821
- patchUpdateAccountContactPassword: function (token_1, patchUpdateAccountContactPasswordRequest_1) {
981
+ getGetLastAccount: function () {
822
982
  var args_1 = [];
823
- for (var _i = 2; _i < arguments.length; _i++) {
824
- args_1[_i - 2] = arguments[_i];
983
+ for (var _i = 0; _i < arguments.length; _i++) {
984
+ args_1[_i] = arguments[_i];
825
985
  }
826
- return __awaiter(_this, __spreadArray([token_1, patchUpdateAccountContactPasswordRequest_1], args_1, true), void 0, function (token, patchUpdateAccountContactPasswordRequest, options) {
986
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
827
987
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
828
988
  if (options === void 0) { options = {}; }
829
989
  return __generator(this, function (_a) {
830
- // verify required parameter 'token' is not null or undefined
831
- (0, common_1.assertParamExists)('patchUpdateAccountContactPassword', 'token', token);
832
- localVarPath = "/accounts/contacts/password";
990
+ localVarPath = "/admin/accounts/last";
833
991
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
834
992
  if (configuration) {
835
993
  baseOptions = configuration.baseOptions;
836
994
  }
837
- localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
995
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
838
996
  localVarHeaderParameter = {};
839
997
  localVarQueryParameter = {};
840
- if (token !== undefined) {
841
- localVarQueryParameter['token'] = token;
842
- }
843
- localVarHeaderParameter['Content-Type'] = 'application/json';
844
998
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
845
999
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
846
1000
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
847
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountContactPasswordRequest, localVarRequestOptions, configuration);
848
1001
  return [2 /*return*/, {
849
1002
  url: (0, common_1.toPathString)(localVarUrlObj),
850
1003
  options: localVarRequestOptions,
@@ -853,34 +1006,34 @@ var AccountsApiAxiosParamCreator = function (configuration) {
853
1006
  });
854
1007
  },
855
1008
  /**
856
- * Add Account Contacts
857
- * @summary Add Account Contact
858
- * @param {AccountContactRequestModel} [accountContactRequestModel] New account request
1009
+ * Get Account 3CX Details
1010
+ * @param {string} id Xero ID
859
1011
  * @param {*} [options] Override http request option.
860
1012
  * @throws {RequiredError}
861
1013
  */
862
- postGetAccountContacts: function (accountContactRequestModel_1) {
1014
+ getGetTcxPartnerDetails: function (id_1) {
863
1015
  var args_1 = [];
864
1016
  for (var _i = 1; _i < arguments.length; _i++) {
865
1017
  args_1[_i - 1] = arguments[_i];
866
1018
  }
867
- return __awaiter(_this, __spreadArray([accountContactRequestModel_1], args_1, true), void 0, function (accountContactRequestModel, options) {
1019
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
868
1020
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
869
1021
  if (options === void 0) { options = {}; }
870
1022
  return __generator(this, function (_a) {
871
- localVarPath = "/accounts/me/contacts";
1023
+ // verify required parameter 'id' is not null or undefined
1024
+ (0, common_1.assertParamExists)('getGetTcxPartnerDetails', 'id', id);
1025
+ localVarPath = "/admin/accounts/{id}/tcx/partner"
1026
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
872
1027
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
873
1028
  if (configuration) {
874
1029
  baseOptions = configuration.baseOptions;
875
1030
  }
876
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1031
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
877
1032
  localVarHeaderParameter = {};
878
1033
  localVarQueryParameter = {};
879
- localVarHeaderParameter['Content-Type'] = 'application/json';
880
1034
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
881
1035
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
882
1036
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
883
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
884
1037
  return [2 /*return*/, {
885
1038
  url: (0, common_1.toPathString)(localVarUrlObj),
886
1039
  options: localVarRequestOptions,
@@ -889,34 +1042,37 @@ var AccountsApiAxiosParamCreator = function (configuration) {
889
1042
  });
890
1043
  },
891
1044
  /**
892
- * Create new customer account
893
- * @summary Create a new customer account
894
- * @param {AccountRequestModel} [accountRequestModel] New account request
1045
+ * Verify account email address
1046
+ * @summary Verify account email address
1047
+ * @param {string} token Verification Token
895
1048
  * @param {*} [options] Override http request option.
896
1049
  * @throws {RequiredError}
897
1050
  */
898
- postGetAccounts: function (accountRequestModel_1) {
1051
+ getVerifyEmailAddress: function (token_1) {
899
1052
  var args_1 = [];
900
1053
  for (var _i = 1; _i < arguments.length; _i++) {
901
1054
  args_1[_i - 1] = arguments[_i];
902
1055
  }
903
- return __awaiter(_this, __spreadArray([accountRequestModel_1], args_1, true), void 0, function (accountRequestModel, options) {
1056
+ return __awaiter(_this, __spreadArray([token_1], args_1, true), void 0, function (token, options) {
904
1057
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
905
1058
  if (options === void 0) { options = {}; }
906
1059
  return __generator(this, function (_a) {
907
- localVarPath = "/accounts";
1060
+ // verify required parameter 'token' is not null or undefined
1061
+ (0, common_1.assertParamExists)('getVerifyEmailAddress', 'token', token);
1062
+ localVarPath = "/accounts/contacts/verify";
908
1063
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
909
1064
  if (configuration) {
910
1065
  baseOptions = configuration.baseOptions;
911
1066
  }
912
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1067
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
913
1068
  localVarHeaderParameter = {};
914
1069
  localVarQueryParameter = {};
915
- localVarHeaderParameter['Content-Type'] = 'application/json';
1070
+ if (token !== undefined) {
1071
+ localVarQueryParameter['token'] = token;
1072
+ }
916
1073
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
917
1074
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
918
1075
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
919
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountRequestModel, localVarRequestOptions, configuration);
920
1076
  return [2 /*return*/, {
921
1077
  url: (0, common_1.toPathString)(localVarUrlObj),
922
1078
  options: localVarRequestOptions,
@@ -925,26 +1081,33 @@ var AccountsApiAxiosParamCreator = function (configuration) {
925
1081
  });
926
1082
  },
927
1083
  /**
928
- * Get Admin Account
929
- * @summary Get Admin Account
1084
+ * Set Account Portal Access
1085
+ * @param {string} id Xero ID
1086
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
930
1087
  * @param {*} [options] Override http request option.
931
1088
  * @throws {RequiredError}
932
1089
  */
933
- postGetAdminAccount: function () {
1090
+ patchSetPortalAccess: function (id_1, state_1) {
934
1091
  var args_1 = [];
935
- for (var _i = 0; _i < arguments.length; _i++) {
936
- args_1[_i] = arguments[_i];
1092
+ for (var _i = 2; _i < arguments.length; _i++) {
1093
+ args_1[_i - 2] = arguments[_i];
937
1094
  }
938
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
1095
+ return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
939
1096
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
940
1097
  if (options === void 0) { options = {}; }
941
1098
  return __generator(this, function (_a) {
942
- localVarPath = "/admin/me";
1099
+ // verify required parameter 'id' is not null or undefined
1100
+ (0, common_1.assertParamExists)('patchSetPortalAccess', 'id', id);
1101
+ // verify required parameter 'state' is not null or undefined
1102
+ (0, common_1.assertParamExists)('patchSetPortalAccess', 'state', state);
1103
+ localVarPath = "/admin/accounts/{id}/portal/access/{state}"
1104
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
1105
+ .replace("{".concat("state", "}"), encodeURIComponent(String(state)));
943
1106
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
944
1107
  if (configuration) {
945
1108
  baseOptions = configuration.baseOptions;
946
1109
  }
947
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1110
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
948
1111
  localVarHeaderParameter = {};
949
1112
  localVarQueryParameter = {};
950
1113
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -958,34 +1121,38 @@ var AccountsApiAxiosParamCreator = function (configuration) {
958
1121
  });
959
1122
  },
960
1123
  /**
961
- * Create client credentials
962
- * @summary Create client credentials
963
- * @param {PostGetClientCredentialsRequest} [postGetClientCredentialsRequest] New client credentials request
1124
+ * Set Account Prize Promo
1125
+ * @param {string} id Xero ID
1126
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
964
1127
  * @param {*} [options] Override http request option.
965
1128
  * @throws {RequiredError}
966
1129
  */
967
- postGetClientCredentials: function (postGetClientCredentialsRequest_1) {
1130
+ patchSetPrizePromo: function (id_1, state_1) {
968
1131
  var args_1 = [];
969
- for (var _i = 1; _i < arguments.length; _i++) {
970
- args_1[_i - 1] = arguments[_i];
1132
+ for (var _i = 2; _i < arguments.length; _i++) {
1133
+ args_1[_i - 2] = arguments[_i];
971
1134
  }
972
- return __awaiter(_this, __spreadArray([postGetClientCredentialsRequest_1], args_1, true), void 0, function (postGetClientCredentialsRequest, options) {
1135
+ return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
973
1136
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
974
1137
  if (options === void 0) { options = {}; }
975
1138
  return __generator(this, function (_a) {
976
- localVarPath = "/accounts/me/contacts/credentials";
1139
+ // verify required parameter 'id' is not null or undefined
1140
+ (0, common_1.assertParamExists)('patchSetPrizePromo', 'id', id);
1141
+ // verify required parameter 'state' is not null or undefined
1142
+ (0, common_1.assertParamExists)('patchSetPrizePromo', 'state', state);
1143
+ localVarPath = "/admin/accounts/{id}/prizes/{state}"
1144
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
1145
+ .replace("{".concat("state", "}"), encodeURIComponent(String(state)));
977
1146
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
978
1147
  if (configuration) {
979
1148
  baseOptions = configuration.baseOptions;
980
1149
  }
981
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1150
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
982
1151
  localVarHeaderParameter = {};
983
1152
  localVarQueryParameter = {};
984
- localVarHeaderParameter['Content-Type'] = 'application/json';
985
1153
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
986
1154
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
987
1155
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
988
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetClientCredentialsRequest, localVarRequestOptions, configuration);
989
1156
  return [2 /*return*/, {
990
1157
  url: (0, common_1.toPathString)(localVarUrlObj),
991
1158
  options: localVarRequestOptions,
@@ -994,35 +1161,33 @@ var AccountsApiAxiosParamCreator = function (configuration) {
994
1161
  });
995
1162
  },
996
1163
  /**
997
- * Send email verification email
998
- * @summary Send email verification email
999
- * @param {string} email Email Address
1164
+ * Set 3CX Wizard CNAME
1165
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
1000
1166
  * @param {*} [options] Override http request option.
1001
1167
  * @throws {RequiredError}
1002
1168
  */
1003
- postSendEmailVerificationEmail: function (email_1) {
1169
+ patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest_1) {
1004
1170
  var args_1 = [];
1005
1171
  for (var _i = 1; _i < arguments.length; _i++) {
1006
1172
  args_1[_i - 1] = arguments[_i];
1007
1173
  }
1008
- return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
1174
+ return __awaiter(_this, __spreadArray([patchUpdateAccountCnameRequest_1], args_1, true), void 0, function (patchUpdateAccountCnameRequest, options) {
1009
1175
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1010
1176
  if (options === void 0) { options = {}; }
1011
1177
  return __generator(this, function (_a) {
1012
- // verify required parameter 'email' is not null or undefined
1013
- (0, common_1.assertParamExists)('postSendEmailVerificationEmail', 'email', email);
1014
- localVarPath = "/accounts/contacts/verify/{email}"
1015
- .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
1178
+ localVarPath = "/accounts/me/cname";
1016
1179
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1017
1180
  if (configuration) {
1018
1181
  baseOptions = configuration.baseOptions;
1019
1182
  }
1020
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1183
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1021
1184
  localVarHeaderParameter = {};
1022
1185
  localVarQueryParameter = {};
1186
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1023
1187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1024
1188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1025
1189
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1190
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration);
1026
1191
  return [2 /*return*/, {
1027
1192
  url: (0, common_1.toPathString)(localVarUrlObj),
1028
1193
  options: localVarRequestOptions,
@@ -1031,37 +1196,76 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1031
1196
  });
1032
1197
  },
1033
1198
  /**
1034
- * Send password reset email
1035
- * @summary Send password reset email
1036
- * @param {string} email Email Address
1199
+ * Set Account CNAME
1200
+ * @param {string} id Xero ID
1201
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
1037
1202
  * @param {*} [options] Override http request option.
1038
1203
  * @throws {RequiredError}
1039
1204
  */
1040
- postSendPasswordReset: function (email_1) {
1205
+ patchUpdateAccountCname: function (id_1, patchUpdateAccountCnameRequest_1) {
1041
1206
  var args_1 = [];
1042
- for (var _i = 1; _i < arguments.length; _i++) {
1043
- args_1[_i - 1] = arguments[_i];
1207
+ for (var _i = 2; _i < arguments.length; _i++) {
1208
+ args_1[_i - 2] = arguments[_i];
1044
1209
  }
1045
- return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
1210
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountCnameRequest_1], args_1, true), void 0, function (id, patchUpdateAccountCnameRequest, options) {
1046
1211
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1047
1212
  if (options === void 0) { options = {}; }
1048
1213
  return __generator(this, function (_a) {
1049
- // verify required parameter 'email' is not null or undefined
1050
- (0, common_1.assertParamExists)('postSendPasswordReset', 'email', email);
1051
- localVarPath = "/accounts/contacts/password/reset";
1214
+ // verify required parameter 'id' is not null or undefined
1215
+ (0, common_1.assertParamExists)('patchUpdateAccountCname', 'id', id);
1216
+ localVarPath = "/admin/accounts/{id}/cname"
1217
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1052
1218
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1053
1219
  if (configuration) {
1054
1220
  baseOptions = configuration.baseOptions;
1055
1221
  }
1056
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1222
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1057
1223
  localVarHeaderParameter = {};
1058
1224
  localVarQueryParameter = {};
1059
- if (email !== undefined) {
1060
- localVarQueryParameter['email'] = email;
1225
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1226
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1227
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1228
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1229
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration);
1230
+ return [2 /*return*/, {
1231
+ url: (0, common_1.toPathString)(localVarUrlObj),
1232
+ options: localVarRequestOptions,
1233
+ }];
1234
+ });
1235
+ });
1236
+ },
1237
+ /**
1238
+ * Set Account Company Number
1239
+ * @param {string} id Xero ID
1240
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
1241
+ * @param {*} [options] Override http request option.
1242
+ * @throws {RequiredError}
1243
+ */
1244
+ patchUpdateAccountCompanyNumber: function (id_1, patchUpdateAccountCompanyNumberRequest_1) {
1245
+ var args_1 = [];
1246
+ for (var _i = 2; _i < arguments.length; _i++) {
1247
+ args_1[_i - 2] = arguments[_i];
1248
+ }
1249
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountCompanyNumberRequest_1], args_1, true), void 0, function (id, patchUpdateAccountCompanyNumberRequest, options) {
1250
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1251
+ if (options === void 0) { options = {}; }
1252
+ return __generator(this, function (_a) {
1253
+ // verify required parameter 'id' is not null or undefined
1254
+ (0, common_1.assertParamExists)('patchUpdateAccountCompanyNumber', 'id', id);
1255
+ localVarPath = "/admin/accounts/{id}/companyNumber"
1256
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1257
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1258
+ if (configuration) {
1259
+ baseOptions = configuration.baseOptions;
1061
1260
  }
1261
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1262
+ localVarHeaderParameter = {};
1263
+ localVarQueryParameter = {};
1264
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1062
1265
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1063
1266
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1064
1267
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1268
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCompanyNumberRequest, localVarRequestOptions, configuration);
1065
1269
  return [2 /*return*/, {
1066
1270
  url: (0, common_1.toPathString)(localVarUrlObj),
1067
1271
  options: localVarRequestOptions,
@@ -1070,43 +1274,118 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1070
1274
  });
1071
1275
  },
1072
1276
  /**
1073
- * Submit reseller application
1074
- * @summary Submit reseller application
1075
- * @param {number} [creditRequired] Credit Required
1076
- * @param {string} [companyNumber] Company Number
1077
- * @param {string} [vatNumber] VAT Number
1277
+ * Update Account Password
1278
+ * @summary Update Account Password
1279
+ * @param {string} token Verification Token
1280
+ * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
1078
1281
  * @param {*} [options] Override http request option.
1079
1282
  * @throws {RequiredError}
1080
1283
  */
1081
- postSubmitResellerApplication: function (creditRequired_1, companyNumber_1, vatNumber_1) {
1284
+ patchUpdateAccountContactPassword: function (token_1, patchUpdateAccountContactPasswordRequest_1) {
1082
1285
  var args_1 = [];
1083
- for (var _i = 3; _i < arguments.length; _i++) {
1084
- args_1[_i - 3] = arguments[_i];
1286
+ for (var _i = 2; _i < arguments.length; _i++) {
1287
+ args_1[_i - 2] = arguments[_i];
1085
1288
  }
1086
- return __awaiter(_this, __spreadArray([creditRequired_1, companyNumber_1, vatNumber_1], args_1, true), void 0, function (creditRequired, companyNumber, vatNumber, options) {
1289
+ return __awaiter(_this, __spreadArray([token_1, patchUpdateAccountContactPasswordRequest_1], args_1, true), void 0, function (token, patchUpdateAccountContactPasswordRequest, options) {
1087
1290
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1088
1291
  if (options === void 0) { options = {}; }
1089
1292
  return __generator(this, function (_a) {
1090
- localVarPath = "/accounts/reseller";
1293
+ // verify required parameter 'token' is not null or undefined
1294
+ (0, common_1.assertParamExists)('patchUpdateAccountContactPassword', 'token', token);
1295
+ localVarPath = "/accounts/contacts/password";
1091
1296
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1092
1297
  if (configuration) {
1093
1298
  baseOptions = configuration.baseOptions;
1094
1299
  }
1095
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1300
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1096
1301
  localVarHeaderParameter = {};
1097
1302
  localVarQueryParameter = {};
1098
- if (creditRequired !== undefined) {
1099
- localVarQueryParameter['creditRequired'] = creditRequired;
1303
+ if (token !== undefined) {
1304
+ localVarQueryParameter['token'] = token;
1100
1305
  }
1101
- if (companyNumber !== undefined) {
1102
- localVarQueryParameter['companyNumber'] = companyNumber;
1306
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1307
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1308
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1309
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1310
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountContactPasswordRequest, localVarRequestOptions, configuration);
1311
+ return [2 /*return*/, {
1312
+ url: (0, common_1.toPathString)(localVarUrlObj),
1313
+ options: localVarRequestOptions,
1314
+ }];
1315
+ });
1316
+ });
1317
+ },
1318
+ /**
1319
+ * Set Account Phone
1320
+ * @param {string} id Xero ID
1321
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ */
1325
+ patchUpdateAccountPhone: function (id_1, patchUpdateAccountPhoneRequest_1) {
1326
+ var args_1 = [];
1327
+ for (var _i = 2; _i < arguments.length; _i++) {
1328
+ args_1[_i - 2] = arguments[_i];
1329
+ }
1330
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountPhoneRequest_1], args_1, true), void 0, function (id, patchUpdateAccountPhoneRequest, options) {
1331
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1332
+ if (options === void 0) { options = {}; }
1333
+ return __generator(this, function (_a) {
1334
+ // verify required parameter 'id' is not null or undefined
1335
+ (0, common_1.assertParamExists)('patchUpdateAccountPhone', 'id', id);
1336
+ localVarPath = "/admin/accounts/{id}/phone"
1337
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1338
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1339
+ if (configuration) {
1340
+ baseOptions = configuration.baseOptions;
1103
1341
  }
1104
- if (vatNumber !== undefined) {
1105
- localVarQueryParameter['vatNumber'] = vatNumber;
1342
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1343
+ localVarHeaderParameter = {};
1344
+ localVarQueryParameter = {};
1345
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1346
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1347
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1348
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1349
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountPhoneRequest, localVarRequestOptions, configuration);
1350
+ return [2 /*return*/, {
1351
+ url: (0, common_1.toPathString)(localVarUrlObj),
1352
+ options: localVarRequestOptions,
1353
+ }];
1354
+ });
1355
+ });
1356
+ },
1357
+ /**
1358
+ * Set Account VAT Number
1359
+ * @param {string} id Xero ID
1360
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
1361
+ * @param {*} [options] Override http request option.
1362
+ * @throws {RequiredError}
1363
+ */
1364
+ patchUpdateAccountVatNumber: function (id_1, patchUpdateAccountVatNumberRequest_1) {
1365
+ var args_1 = [];
1366
+ for (var _i = 2; _i < arguments.length; _i++) {
1367
+ args_1[_i - 2] = arguments[_i];
1368
+ }
1369
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountVatNumberRequest_1], args_1, true), void 0, function (id, patchUpdateAccountVatNumberRequest, options) {
1370
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1371
+ if (options === void 0) { options = {}; }
1372
+ return __generator(this, function (_a) {
1373
+ // verify required parameter 'id' is not null or undefined
1374
+ (0, common_1.assertParamExists)('patchUpdateAccountVatNumber', 'id', id);
1375
+ localVarPath = "/admin/accounts/{id}/vatNumber"
1376
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1377
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1378
+ if (configuration) {
1379
+ baseOptions = configuration.baseOptions;
1106
1380
  }
1381
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1382
+ localVarHeaderParameter = {};
1383
+ localVarQueryParameter = {};
1384
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1107
1385
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1108
1386
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1109
1387
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1388
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountVatNumberRequest, localVarRequestOptions, configuration);
1110
1389
  return [2 /*return*/, {
1111
1390
  url: (0, common_1.toPathString)(localVarUrlObj),
1112
1391
  options: localVarRequestOptions,
@@ -1115,38 +1394,37 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1115
1394
  });
1116
1395
  },
1117
1396
  /**
1118
- * Update Account Contacts
1119
- * @summary Update Account Contact
1120
- * @param {string} email Contact Email Address
1121
- * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
1397
+ * Set Account Credit Limit
1398
+ * @param {string} id Xero ID
1399
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
1122
1400
  * @param {*} [options] Override http request option.
1123
1401
  * @throws {RequiredError}
1124
1402
  */
1125
- putUpdateAccountContact: function (email_1, accountContactRequestModel_1) {
1403
+ patchUpdateCreditLimit: function (id_1, patchUpdateCreditLimitRequest_1) {
1126
1404
  var args_1 = [];
1127
1405
  for (var _i = 2; _i < arguments.length; _i++) {
1128
1406
  args_1[_i - 2] = arguments[_i];
1129
1407
  }
1130
- return __awaiter(_this, __spreadArray([email_1, accountContactRequestModel_1], args_1, true), void 0, function (email, accountContactRequestModel, options) {
1408
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateCreditLimitRequest_1], args_1, true), void 0, function (id, patchUpdateCreditLimitRequest, options) {
1131
1409
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1132
1410
  if (options === void 0) { options = {}; }
1133
1411
  return __generator(this, function (_a) {
1134
- // verify required parameter 'email' is not null or undefined
1135
- (0, common_1.assertParamExists)('putUpdateAccountContact', 'email', email);
1136
- localVarPath = "/accounts/me/contacts/{email}"
1137
- .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
1412
+ // verify required parameter 'id' is not null or undefined
1413
+ (0, common_1.assertParamExists)('patchUpdateCreditLimit', 'id', id);
1414
+ localVarPath = "/admin/accounts/{id}/creditLimit"
1415
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1138
1416
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1139
1417
  if (configuration) {
1140
1418
  baseOptions = configuration.baseOptions;
1141
1419
  }
1142
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1420
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1143
1421
  localVarHeaderParameter = {};
1144
1422
  localVarQueryParameter = {};
1145
1423
  localVarHeaderParameter['Content-Type'] = 'application/json';
1146
1424
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1147
1425
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1148
1426
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1149
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1427
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateCreditLimitRequest, localVarRequestOptions, configuration);
1150
1428
  return [2 /*return*/, {
1151
1429
  url: (0, common_1.toPathString)(localVarUrlObj),
1152
1430
  options: localVarRequestOptions,
@@ -1154,264 +1432,1373 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1154
1432
  });
1155
1433
  });
1156
1434
  },
1157
- };
1158
- };
1159
- exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
1160
- /**
1161
- * AccountsApi - functional programming interface
1162
- * @export
1163
- */
1164
- var AccountsApiFp = function (configuration) {
1165
- var localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
1166
- return {
1167
1435
  /**
1168
- * Delete client credentials
1169
- * @summary Delete client credentials
1170
- * @param {string} id OAuth 2.0 Client ID
1436
+ * Set Account Price List
1437
+ * @param {string} id Xero ID
1438
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
1439
+ * @param {*} [options] Override http request option.
1440
+ * @throws {RequiredError}
1441
+ */
1442
+ patchUpdatePriceList: function (id_1, patchUpdatePriceListRequest_1) {
1443
+ var args_1 = [];
1444
+ for (var _i = 2; _i < arguments.length; _i++) {
1445
+ args_1[_i - 2] = arguments[_i];
1446
+ }
1447
+ return __awaiter(_this, __spreadArray([id_1, patchUpdatePriceListRequest_1], args_1, true), void 0, function (id, patchUpdatePriceListRequest, options) {
1448
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1449
+ if (options === void 0) { options = {}; }
1450
+ return __generator(this, function (_a) {
1451
+ // verify required parameter 'id' is not null or undefined
1452
+ (0, common_1.assertParamExists)('patchUpdatePriceList', 'id', id);
1453
+ localVarPath = "/admin/accounts/{id}/priceList"
1454
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1455
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1456
+ if (configuration) {
1457
+ baseOptions = configuration.baseOptions;
1458
+ }
1459
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1460
+ localVarHeaderParameter = {};
1461
+ localVarQueryParameter = {};
1462
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1463
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1464
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1465
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1466
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdatePriceListRequest, localVarRequestOptions, configuration);
1467
+ return [2 /*return*/, {
1468
+ url: (0, common_1.toPathString)(localVarUrlObj),
1469
+ options: localVarRequestOptions,
1470
+ }];
1471
+ });
1472
+ });
1473
+ },
1474
+ /**
1475
+ * Set Account SIP Channel Cost
1476
+ * @param {string} id Xero ID
1477
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
1478
+ * @param {*} [options] Override http request option.
1479
+ * @throws {RequiredError}
1480
+ */
1481
+ patchUpdateSipChannelCost: function (id_1, patchUpdateSipChannelCostRequest_1) {
1482
+ var args_1 = [];
1483
+ for (var _i = 2; _i < arguments.length; _i++) {
1484
+ args_1[_i - 2] = arguments[_i];
1485
+ }
1486
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateSipChannelCostRequest_1], args_1, true), void 0, function (id, patchUpdateSipChannelCostRequest, options) {
1487
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1488
+ if (options === void 0) { options = {}; }
1489
+ return __generator(this, function (_a) {
1490
+ // verify required parameter 'id' is not null or undefined
1491
+ (0, common_1.assertParamExists)('patchUpdateSipChannelCost', 'id', id);
1492
+ localVarPath = "/admin/accounts/{id}/channelCost"
1493
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1494
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1495
+ if (configuration) {
1496
+ baseOptions = configuration.baseOptions;
1497
+ }
1498
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1499
+ localVarHeaderParameter = {};
1500
+ localVarQueryParameter = {};
1501
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1502
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1503
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1504
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1505
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateSipChannelCostRequest, localVarRequestOptions, configuration);
1506
+ return [2 /*return*/, {
1507
+ url: (0, common_1.toPathString)(localVarUrlObj),
1508
+ options: localVarRequestOptions,
1509
+ }];
1510
+ });
1511
+ });
1512
+ },
1513
+ /**
1514
+ * Set Account 3CX Hosting Price List
1515
+ * @param {string} id Xero ID
1516
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
1517
+ * @param {*} [options] Override http request option.
1518
+ * @throws {RequiredError}
1519
+ */
1520
+ patchUpdateTcxHostingPriceList: function (id_1, patchUpdateTcxHostingPriceListRequest_1) {
1521
+ var args_1 = [];
1522
+ for (var _i = 2; _i < arguments.length; _i++) {
1523
+ args_1[_i - 2] = arguments[_i];
1524
+ }
1525
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateTcxHostingPriceListRequest_1], args_1, true), void 0, function (id, patchUpdateTcxHostingPriceListRequest, options) {
1526
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1527
+ if (options === void 0) { options = {}; }
1528
+ return __generator(this, function (_a) {
1529
+ // verify required parameter 'id' is not null or undefined
1530
+ (0, common_1.assertParamExists)('patchUpdateTcxHostingPriceList', 'id', id);
1531
+ localVarPath = "/admin/accounts/{id}/tcx/hosting/priceList"
1532
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1533
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1534
+ if (configuration) {
1535
+ baseOptions = configuration.baseOptions;
1536
+ }
1537
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1538
+ localVarHeaderParameter = {};
1539
+ localVarQueryParameter = {};
1540
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1541
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1542
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1543
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1544
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateTcxHostingPriceListRequest, localVarRequestOptions, configuration);
1545
+ return [2 /*return*/, {
1546
+ url: (0, common_1.toPathString)(localVarUrlObj),
1547
+ options: localVarRequestOptions,
1548
+ }];
1549
+ });
1550
+ });
1551
+ },
1552
+ /**
1553
+ * Set Account 3CX Partner ID
1554
+ * @param {string} id Xero ID
1555
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
1556
+ * @param {*} [options] Override http request option.
1557
+ * @throws {RequiredError}
1558
+ */
1559
+ patchUpdateTcxPartnerId: function (id_1, patchUpdateTcxPartnerIdRequest_1) {
1560
+ var args_1 = [];
1561
+ for (var _i = 2; _i < arguments.length; _i++) {
1562
+ args_1[_i - 2] = arguments[_i];
1563
+ }
1564
+ return __awaiter(_this, __spreadArray([id_1, patchUpdateTcxPartnerIdRequest_1], args_1, true), void 0, function (id, patchUpdateTcxPartnerIdRequest, options) {
1565
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1566
+ if (options === void 0) { options = {}; }
1567
+ return __generator(this, function (_a) {
1568
+ // verify required parameter 'id' is not null or undefined
1569
+ (0, common_1.assertParamExists)('patchUpdateTcxPartnerId', 'id', id);
1570
+ localVarPath = "/admin/accounts{id}/tcx/partner/id"
1571
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1572
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1573
+ if (configuration) {
1574
+ baseOptions = configuration.baseOptions;
1575
+ }
1576
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1577
+ localVarHeaderParameter = {};
1578
+ localVarQueryParameter = {};
1579
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1580
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1581
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1582
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1583
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateTcxPartnerIdRequest, localVarRequestOptions, configuration);
1584
+ return [2 /*return*/, {
1585
+ url: (0, common_1.toPathString)(localVarUrlObj),
1586
+ options: localVarRequestOptions,
1587
+ }];
1588
+ });
1589
+ });
1590
+ },
1591
+ /**
1592
+ * Create Account Contact
1593
+ * @param {string} id Account Xero ID
1594
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
1595
+ * @param {*} [options] Override http request option.
1596
+ * @throws {RequiredError}
1597
+ */
1598
+ postAdminCreateAccountContact: function (id_1, accountContactRequestModel_1) {
1599
+ var args_1 = [];
1600
+ for (var _i = 2; _i < arguments.length; _i++) {
1601
+ args_1[_i - 2] = arguments[_i];
1602
+ }
1603
+ return __awaiter(_this, __spreadArray([id_1, accountContactRequestModel_1], args_1, true), void 0, function (id, accountContactRequestModel, options) {
1604
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1605
+ if (options === void 0) { options = {}; }
1606
+ return __generator(this, function (_a) {
1607
+ // verify required parameter 'id' is not null or undefined
1608
+ (0, common_1.assertParamExists)('postAdminCreateAccountContact', 'id', id);
1609
+ localVarPath = "/admin/accounts/{id}/contacts"
1610
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1611
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1612
+ if (configuration) {
1613
+ baseOptions = configuration.baseOptions;
1614
+ }
1615
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1616
+ localVarHeaderParameter = {};
1617
+ localVarQueryParameter = {};
1618
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1619
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1620
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1621
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1622
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1623
+ return [2 /*return*/, {
1624
+ url: (0, common_1.toPathString)(localVarUrlObj),
1625
+ options: localVarRequestOptions,
1626
+ }];
1627
+ });
1628
+ });
1629
+ },
1630
+ /**
1631
+ * Add Account Contacts
1632
+ * @summary Add Account Contact
1633
+ * @param {AccountContactRequestModel} [accountContactRequestModel] New account request
1634
+ * @param {*} [options] Override http request option.
1635
+ * @throws {RequiredError}
1636
+ */
1637
+ postGetAccountContacts: function (accountContactRequestModel_1) {
1638
+ var args_1 = [];
1639
+ for (var _i = 1; _i < arguments.length; _i++) {
1640
+ args_1[_i - 1] = arguments[_i];
1641
+ }
1642
+ return __awaiter(_this, __spreadArray([accountContactRequestModel_1], args_1, true), void 0, function (accountContactRequestModel, options) {
1643
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1644
+ if (options === void 0) { options = {}; }
1645
+ return __generator(this, function (_a) {
1646
+ localVarPath = "/accounts/me/contacts";
1647
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1648
+ if (configuration) {
1649
+ baseOptions = configuration.baseOptions;
1650
+ }
1651
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1652
+ localVarHeaderParameter = {};
1653
+ localVarQueryParameter = {};
1654
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1655
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1656
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1657
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1658
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1659
+ return [2 /*return*/, {
1660
+ url: (0, common_1.toPathString)(localVarUrlObj),
1661
+ options: localVarRequestOptions,
1662
+ }];
1663
+ });
1664
+ });
1665
+ },
1666
+ /**
1667
+ * Create new customer account
1668
+ * @summary Create a new customer account
1669
+ * @param {AccountRequestModel} [accountRequestModel] New account request
1670
+ * @param {*} [options] Override http request option.
1671
+ * @throws {RequiredError}
1672
+ */
1673
+ postGetAccounts: function (accountRequestModel_1) {
1674
+ var args_1 = [];
1675
+ for (var _i = 1; _i < arguments.length; _i++) {
1676
+ args_1[_i - 1] = arguments[_i];
1677
+ }
1678
+ return __awaiter(_this, __spreadArray([accountRequestModel_1], args_1, true), void 0, function (accountRequestModel, options) {
1679
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1680
+ if (options === void 0) { options = {}; }
1681
+ return __generator(this, function (_a) {
1682
+ localVarPath = "/accounts";
1683
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1684
+ if (configuration) {
1685
+ baseOptions = configuration.baseOptions;
1686
+ }
1687
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1688
+ localVarHeaderParameter = {};
1689
+ localVarQueryParameter = {};
1690
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1691
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1692
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1693
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1694
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountRequestModel, localVarRequestOptions, configuration);
1695
+ return [2 /*return*/, {
1696
+ url: (0, common_1.toPathString)(localVarUrlObj),
1697
+ options: localVarRequestOptions,
1698
+ }];
1699
+ });
1700
+ });
1701
+ },
1702
+ /**
1703
+ * Get Admin Account
1704
+ * @summary Get Admin Account
1705
+ * @param {*} [options] Override http request option.
1706
+ * @throws {RequiredError}
1707
+ */
1708
+ postGetAdminAccount: function () {
1709
+ var args_1 = [];
1710
+ for (var _i = 0; _i < arguments.length; _i++) {
1711
+ args_1[_i] = arguments[_i];
1712
+ }
1713
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
1714
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1715
+ if (options === void 0) { options = {}; }
1716
+ return __generator(this, function (_a) {
1717
+ localVarPath = "/admin/me";
1718
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1719
+ if (configuration) {
1720
+ baseOptions = configuration.baseOptions;
1721
+ }
1722
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1723
+ localVarHeaderParameter = {};
1724
+ localVarQueryParameter = {};
1725
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1726
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1727
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1728
+ return [2 /*return*/, {
1729
+ url: (0, common_1.toPathString)(localVarUrlObj),
1730
+ options: localVarRequestOptions,
1731
+ }];
1732
+ });
1733
+ });
1734
+ },
1735
+ /**
1736
+ * Create client credentials
1737
+ * @summary Create client credentials
1738
+ * @param {PostGetClientCredentialsRequest} [postGetClientCredentialsRequest] New client credentials request
1739
+ * @param {*} [options] Override http request option.
1740
+ * @throws {RequiredError}
1741
+ */
1742
+ postGetClientCredentials: function (postGetClientCredentialsRequest_1) {
1743
+ var args_1 = [];
1744
+ for (var _i = 1; _i < arguments.length; _i++) {
1745
+ args_1[_i - 1] = arguments[_i];
1746
+ }
1747
+ return __awaiter(_this, __spreadArray([postGetClientCredentialsRequest_1], args_1, true), void 0, function (postGetClientCredentialsRequest, options) {
1748
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1749
+ if (options === void 0) { options = {}; }
1750
+ return __generator(this, function (_a) {
1751
+ localVarPath = "/accounts/me/contacts/credentials";
1752
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1753
+ if (configuration) {
1754
+ baseOptions = configuration.baseOptions;
1755
+ }
1756
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1757
+ localVarHeaderParameter = {};
1758
+ localVarQueryParameter = {};
1759
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1760
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1761
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1762
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1763
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetClientCredentialsRequest, localVarRequestOptions, configuration);
1764
+ return [2 /*return*/, {
1765
+ url: (0, common_1.toPathString)(localVarUrlObj),
1766
+ options: localVarRequestOptions,
1767
+ }];
1768
+ });
1769
+ });
1770
+ },
1771
+ /**
1772
+ * Send email verification email
1773
+ * @summary Send email verification email
1774
+ * @param {string} email Email Address
1775
+ * @param {*} [options] Override http request option.
1776
+ * @throws {RequiredError}
1777
+ */
1778
+ postSendEmailVerificationEmail: function (email_1) {
1779
+ var args_1 = [];
1780
+ for (var _i = 1; _i < arguments.length; _i++) {
1781
+ args_1[_i - 1] = arguments[_i];
1782
+ }
1783
+ return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
1784
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1785
+ if (options === void 0) { options = {}; }
1786
+ return __generator(this, function (_a) {
1787
+ // verify required parameter 'email' is not null or undefined
1788
+ (0, common_1.assertParamExists)('postSendEmailVerificationEmail', 'email', email);
1789
+ localVarPath = "/accounts/contacts/verify/{email}"
1790
+ .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
1791
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1792
+ if (configuration) {
1793
+ baseOptions = configuration.baseOptions;
1794
+ }
1795
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1796
+ localVarHeaderParameter = {};
1797
+ localVarQueryParameter = {};
1798
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1799
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1800
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1801
+ return [2 /*return*/, {
1802
+ url: (0, common_1.toPathString)(localVarUrlObj),
1803
+ options: localVarRequestOptions,
1804
+ }];
1805
+ });
1806
+ });
1807
+ },
1808
+ /**
1809
+ * Send password reset email
1810
+ * @summary Send password reset email
1811
+ * @param {string} email Email Address
1812
+ * @param {*} [options] Override http request option.
1813
+ * @throws {RequiredError}
1814
+ */
1815
+ postSendPasswordReset: function (email_1) {
1816
+ var args_1 = [];
1817
+ for (var _i = 1; _i < arguments.length; _i++) {
1818
+ args_1[_i - 1] = arguments[_i];
1819
+ }
1820
+ return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
1821
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1822
+ if (options === void 0) { options = {}; }
1823
+ return __generator(this, function (_a) {
1824
+ // verify required parameter 'email' is not null or undefined
1825
+ (0, common_1.assertParamExists)('postSendPasswordReset', 'email', email);
1826
+ localVarPath = "/accounts/contacts/password/reset";
1827
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1828
+ if (configuration) {
1829
+ baseOptions = configuration.baseOptions;
1830
+ }
1831
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1832
+ localVarHeaderParameter = {};
1833
+ localVarQueryParameter = {};
1834
+ if (email !== undefined) {
1835
+ localVarQueryParameter['email'] = email;
1836
+ }
1837
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1838
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1839
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1840
+ return [2 /*return*/, {
1841
+ url: (0, common_1.toPathString)(localVarUrlObj),
1842
+ options: localVarRequestOptions,
1843
+ }];
1844
+ });
1845
+ });
1846
+ },
1847
+ /**
1848
+ * Send Account Welcome Email
1849
+ * @param {string} id Xero ID
1850
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
1851
+ * @param {*} [options] Override http request option.
1852
+ * @throws {RequiredError}
1853
+ */
1854
+ postSendWelcomeEmail: function (id_1, postSendWelcomeEmailRequest_1) {
1855
+ var args_1 = [];
1856
+ for (var _i = 2; _i < arguments.length; _i++) {
1857
+ args_1[_i - 2] = arguments[_i];
1858
+ }
1859
+ return __awaiter(_this, __spreadArray([id_1, postSendWelcomeEmailRequest_1], args_1, true), void 0, function (id, postSendWelcomeEmailRequest, options) {
1860
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1861
+ if (options === void 0) { options = {}; }
1862
+ return __generator(this, function (_a) {
1863
+ // verify required parameter 'id' is not null or undefined
1864
+ (0, common_1.assertParamExists)('postSendWelcomeEmail', 'id', id);
1865
+ localVarPath = "/admin/accounts/{id}/email/welcome"
1866
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1867
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1868
+ if (configuration) {
1869
+ baseOptions = configuration.baseOptions;
1870
+ }
1871
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1872
+ localVarHeaderParameter = {};
1873
+ localVarQueryParameter = {};
1874
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1875
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1876
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1877
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1878
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSendWelcomeEmailRequest, localVarRequestOptions, configuration);
1879
+ return [2 /*return*/, {
1880
+ url: (0, common_1.toPathString)(localVarUrlObj),
1881
+ options: localVarRequestOptions,
1882
+ }];
1883
+ });
1884
+ });
1885
+ },
1886
+ /**
1887
+ * Submit reseller application
1888
+ * @summary Submit reseller application
1889
+ * @param {number} [creditRequired] Credit Required
1890
+ * @param {string} [companyNumber] Company Number
1891
+ * @param {string} [vatNumber] VAT Number
1892
+ * @param {*} [options] Override http request option.
1893
+ * @throws {RequiredError}
1894
+ */
1895
+ postSubmitResellerApplication: function (creditRequired_1, companyNumber_1, vatNumber_1) {
1896
+ var args_1 = [];
1897
+ for (var _i = 3; _i < arguments.length; _i++) {
1898
+ args_1[_i - 3] = arguments[_i];
1899
+ }
1900
+ return __awaiter(_this, __spreadArray([creditRequired_1, companyNumber_1, vatNumber_1], args_1, true), void 0, function (creditRequired, companyNumber, vatNumber, options) {
1901
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1902
+ if (options === void 0) { options = {}; }
1903
+ return __generator(this, function (_a) {
1904
+ localVarPath = "/accounts/reseller";
1905
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1906
+ if (configuration) {
1907
+ baseOptions = configuration.baseOptions;
1908
+ }
1909
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1910
+ localVarHeaderParameter = {};
1911
+ localVarQueryParameter = {};
1912
+ if (creditRequired !== undefined) {
1913
+ localVarQueryParameter['creditRequired'] = creditRequired;
1914
+ }
1915
+ if (companyNumber !== undefined) {
1916
+ localVarQueryParameter['companyNumber'] = companyNumber;
1917
+ }
1918
+ if (vatNumber !== undefined) {
1919
+ localVarQueryParameter['vatNumber'] = vatNumber;
1920
+ }
1921
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1922
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1923
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1924
+ return [2 /*return*/, {
1925
+ url: (0, common_1.toPathString)(localVarUrlObj),
1926
+ options: localVarRequestOptions,
1927
+ }];
1928
+ });
1929
+ });
1930
+ },
1931
+ /**
1932
+ * Update Account Contact
1933
+ * @param {string} id Account Xero ID
1934
+ * @param {number} contactId Contact ID
1935
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
1936
+ * @param {*} [options] Override http request option.
1937
+ * @throws {RequiredError}
1938
+ */
1939
+ putAdminUpdateAccountContact: function (id_1, contactId_1, accountContactRequestModel_1) {
1940
+ var args_1 = [];
1941
+ for (var _i = 3; _i < arguments.length; _i++) {
1942
+ args_1[_i - 3] = arguments[_i];
1943
+ }
1944
+ return __awaiter(_this, __spreadArray([id_1, contactId_1, accountContactRequestModel_1], args_1, true), void 0, function (id, contactId, accountContactRequestModel, options) {
1945
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1946
+ if (options === void 0) { options = {}; }
1947
+ return __generator(this, function (_a) {
1948
+ // verify required parameter 'id' is not null or undefined
1949
+ (0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'id', id);
1950
+ // verify required parameter 'contactId' is not null or undefined
1951
+ (0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'contactId', contactId);
1952
+ localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
1953
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
1954
+ .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
1955
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1956
+ if (configuration) {
1957
+ baseOptions = configuration.baseOptions;
1958
+ }
1959
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1960
+ localVarHeaderParameter = {};
1961
+ localVarQueryParameter = {};
1962
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1963
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1964
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1965
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1966
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1967
+ return [2 /*return*/, {
1968
+ url: (0, common_1.toPathString)(localVarUrlObj),
1969
+ options: localVarRequestOptions,
1970
+ }];
1971
+ });
1972
+ });
1973
+ },
1974
+ /**
1975
+ * Update Account Contacts
1976
+ * @summary Update Account Contact
1977
+ * @param {string} email Contact Email Address
1978
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
1979
+ * @param {*} [options] Override http request option.
1980
+ * @throws {RequiredError}
1981
+ */
1982
+ putUpdateAccountContact: function (email_1, accountContactRequestModel_1) {
1983
+ var args_1 = [];
1984
+ for (var _i = 2; _i < arguments.length; _i++) {
1985
+ args_1[_i - 2] = arguments[_i];
1986
+ }
1987
+ return __awaiter(_this, __spreadArray([email_1, accountContactRequestModel_1], args_1, true), void 0, function (email, accountContactRequestModel, options) {
1988
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1989
+ if (options === void 0) { options = {}; }
1990
+ return __generator(this, function (_a) {
1991
+ // verify required parameter 'email' is not null or undefined
1992
+ (0, common_1.assertParamExists)('putUpdateAccountContact', 'email', email);
1993
+ localVarPath = "/accounts/me/contacts/{email}"
1994
+ .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
1995
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1996
+ if (configuration) {
1997
+ baseOptions = configuration.baseOptions;
1998
+ }
1999
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2000
+ localVarHeaderParameter = {};
2001
+ localVarQueryParameter = {};
2002
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2003
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2004
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2005
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2006
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
2007
+ return [2 /*return*/, {
2008
+ url: (0, common_1.toPathString)(localVarUrlObj),
2009
+ options: localVarRequestOptions,
2010
+ }];
2011
+ });
2012
+ });
2013
+ },
2014
+ /**
2015
+ * Update Account Billing Address
2016
+ * @param {string} id Xero ID
2017
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ */
2021
+ putUpdateBillingAddress: function (id_1, addressDTO_1) {
2022
+ var args_1 = [];
2023
+ for (var _i = 2; _i < arguments.length; _i++) {
2024
+ args_1[_i - 2] = arguments[_i];
2025
+ }
2026
+ return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
2027
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2028
+ if (options === void 0) { options = {}; }
2029
+ return __generator(this, function (_a) {
2030
+ // verify required parameter 'id' is not null or undefined
2031
+ (0, common_1.assertParamExists)('putUpdateBillingAddress', 'id', id);
2032
+ localVarPath = "/admin/accounts/{id}/billing/address"
2033
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2034
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2035
+ if (configuration) {
2036
+ baseOptions = configuration.baseOptions;
2037
+ }
2038
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2039
+ localVarHeaderParameter = {};
2040
+ localVarQueryParameter = {};
2041
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2042
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2043
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2044
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2045
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
2046
+ return [2 /*return*/, {
2047
+ url: (0, common_1.toPathString)(localVarUrlObj),
2048
+ options: localVarRequestOptions,
2049
+ }];
2050
+ });
2051
+ });
2052
+ },
2053
+ /**
2054
+ * Update Account Shipping Address
2055
+ * @param {string} id Xero ID
2056
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
2057
+ * @param {*} [options] Override http request option.
2058
+ * @throws {RequiredError}
2059
+ */
2060
+ putUpdateShippingAddress: function (id_1, addressDTO_1) {
2061
+ var args_1 = [];
2062
+ for (var _i = 2; _i < arguments.length; _i++) {
2063
+ args_1[_i - 2] = arguments[_i];
2064
+ }
2065
+ return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
2066
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2067
+ if (options === void 0) { options = {}; }
2068
+ return __generator(this, function (_a) {
2069
+ // verify required parameter 'id' is not null or undefined
2070
+ (0, common_1.assertParamExists)('putUpdateShippingAddress', 'id', id);
2071
+ localVarPath = "/admin/accounts/{id}/shipping/address"
2072
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2073
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2074
+ if (configuration) {
2075
+ baseOptions = configuration.baseOptions;
2076
+ }
2077
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2078
+ localVarHeaderParameter = {};
2079
+ localVarQueryParameter = {};
2080
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2081
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2082
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2083
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2084
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
2085
+ return [2 /*return*/, {
2086
+ url: (0, common_1.toPathString)(localVarUrlObj),
2087
+ options: localVarRequestOptions,
2088
+ }];
2089
+ });
2090
+ });
2091
+ },
2092
+ };
2093
+ };
2094
+ exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
2095
+ /**
2096
+ * AccountsApi - functional programming interface
2097
+ * @export
2098
+ */
2099
+ var AccountsApiFp = function (configuration) {
2100
+ var localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
2101
+ return {
2102
+ /**
2103
+ * Delete Account Contact
2104
+ * @param {string} id Account Xero ID
2105
+ * @param {number} contactId Contact ID
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ deleteAdminUpdateAccountContact: function (id, contactId, options) {
2110
+ return __awaiter(this, void 0, void 0, function () {
2111
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2112
+ var _a, _b, _c;
2113
+ return __generator(this, function (_d) {
2114
+ switch (_d.label) {
2115
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options)];
2116
+ case 1:
2117
+ localVarAxiosArgs = _d.sent();
2118
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2119
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2120
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2121
+ }
2122
+ });
2123
+ });
2124
+ },
2125
+ /**
2126
+ * Delete Account
2127
+ * @param {string} id Account Xero ID
2128
+ * @param {*} [options] Override http request option.
2129
+ * @throws {RequiredError}
2130
+ */
2131
+ deleteArchiveAccount: function (id, options) {
2132
+ return __awaiter(this, void 0, void 0, function () {
2133
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2134
+ var _a, _b, _c;
2135
+ return __generator(this, function (_d) {
2136
+ switch (_d.label) {
2137
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteArchiveAccount(id, options)];
2138
+ case 1:
2139
+ localVarAxiosArgs = _d.sent();
2140
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2141
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteArchiveAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2142
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2143
+ }
2144
+ });
2145
+ });
2146
+ },
2147
+ /**
2148
+ * Delete client credentials
2149
+ * @summary Delete client credentials
2150
+ * @param {string} id OAuth 2.0 Client ID
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ deleteDeleteClientCredentials: function (id, options) {
2155
+ return __awaiter(this, void 0, void 0, function () {
2156
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2157
+ var _a, _b, _c;
2158
+ return __generator(this, function (_d) {
2159
+ switch (_d.label) {
2160
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteClientCredentials(id, options)];
2161
+ case 1:
2162
+ localVarAxiosArgs = _d.sent();
2163
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2164
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteDeleteClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2165
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2166
+ }
2167
+ });
2168
+ });
2169
+ },
2170
+ /**
2171
+ * Delete Account Contacts
2172
+ * @summary Delete Account Contact
2173
+ * @param {string} email Contact Email Address
2174
+ * @param {*} [options] Override http request option.
2175
+ * @throws {RequiredError}
2176
+ */
2177
+ deleteUpdateAccountContact: function (email, options) {
2178
+ return __awaiter(this, void 0, void 0, function () {
2179
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2180
+ var _a, _b, _c;
2181
+ return __generator(this, function (_d) {
2182
+ switch (_d.label) {
2183
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateAccountContact(email, options)];
2184
+ case 1:
2185
+ localVarAxiosArgs = _d.sent();
2186
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2187
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2188
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2189
+ }
2190
+ });
2191
+ });
2192
+ },
2193
+ /**
2194
+ * Get Account Contacts
2195
+ * @param {string} id Account Xero ID
2196
+ * @param {*} [options] Override http request option.
2197
+ * @throws {RequiredError}
2198
+ */
2199
+ getAdminCreateAccountContact: function (id, options) {
2200
+ return __awaiter(this, void 0, void 0, function () {
2201
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2202
+ var _a, _b, _c;
2203
+ return __generator(this, function (_d) {
2204
+ switch (_d.label) {
2205
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAdminCreateAccountContact(id, options)];
2206
+ case 1:
2207
+ localVarAxiosArgs = _d.sent();
2208
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2209
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getAdminCreateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2210
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2211
+ }
2212
+ });
2213
+ });
2214
+ },
2215
+ /**
2216
+ * Get Account
2217
+ * @summary Get Account
2218
+ * @param {*} [options] Override http request option.
2219
+ * @throws {RequiredError}
2220
+ */
2221
+ getGetAccount: function (options) {
2222
+ return __awaiter(this, void 0, void 0, function () {
2223
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2224
+ var _a, _b, _c;
2225
+ return __generator(this, function (_d) {
2226
+ switch (_d.label) {
2227
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccount(options)];
2228
+ case 1:
2229
+ localVarAxiosArgs = _d.sent();
2230
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2231
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2232
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2233
+ }
2234
+ });
2235
+ });
2236
+ },
2237
+ /**
2238
+ * Get Account Addresses
2239
+ * @param {string} id Xero ID
2240
+ * @param {*} [options] Override http request option.
2241
+ * @throws {RequiredError}
2242
+ */
2243
+ getGetAccountAddresses: function (id, options) {
2244
+ return __awaiter(this, void 0, void 0, function () {
2245
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2246
+ var _a, _b, _c;
2247
+ return __generator(this, function (_d) {
2248
+ switch (_d.label) {
2249
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountAddresses(id, options)];
2250
+ case 1:
2251
+ localVarAxiosArgs = _d.sent();
2252
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2253
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountAddresses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2254
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2255
+ }
2256
+ });
2257
+ });
2258
+ },
2259
+ /**
2260
+ * Get Account Contacts
2261
+ * @summary Get Account Contacts
2262
+ * @param {string} [email] Contact Email Address
2263
+ * @param {*} [options] Override http request option.
2264
+ * @throws {RequiredError}
2265
+ */
2266
+ getGetAccountContacts: function (email, options) {
2267
+ return __awaiter(this, void 0, void 0, function () {
2268
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2269
+ var _a, _b, _c;
2270
+ return __generator(this, function (_d) {
2271
+ switch (_d.label) {
2272
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountContacts(email, options)];
2273
+ case 1:
2274
+ localVarAxiosArgs = _d.sent();
2275
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2276
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountContacts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2277
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2278
+ }
2279
+ });
2280
+ });
2281
+ },
2282
+ /**
2283
+ * Get Account Detailed Summary
2284
+ * @summary Get Account Detailed Summary
2285
+ * @param {number} id Customer ID
2286
+ * @param {*} [options] Override http request option.
2287
+ * @throws {RequiredError}
2288
+ */
2289
+ getGetAccountDetailedSummary: function (id, options) {
2290
+ return __awaiter(this, void 0, void 0, function () {
2291
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2292
+ var _a, _b, _c;
2293
+ return __generator(this, function (_d) {
2294
+ switch (_d.label) {
2295
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options)];
2296
+ case 1:
2297
+ localVarAxiosArgs = _d.sent();
2298
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2299
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountDetailedSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2300
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2301
+ }
2302
+ });
2303
+ });
2304
+ },
2305
+ /**
2306
+ * Get Accounts
2307
+ * @summary Get Accounts
2308
+ * @param {number} [pageSize] Number Of Results
2309
+ * @param {number} [page] Page Number
2310
+ * @param {string} [search] Search
2311
+ * @param {boolean} [active] Active
2312
+ * @param {*} [options] Override http request option.
2313
+ * @throws {RequiredError}
2314
+ */
2315
+ getGetAccounts: function (pageSize, page, search, active, options) {
2316
+ return __awaiter(this, void 0, void 0, function () {
2317
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2318
+ var _a, _b, _c;
2319
+ return __generator(this, function (_d) {
2320
+ switch (_d.label) {
2321
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccounts(pageSize, page, search, active, options)];
2322
+ case 1:
2323
+ localVarAxiosArgs = _d.sent();
2324
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2325
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2326
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2327
+ }
2328
+ });
2329
+ });
2330
+ },
2331
+ /**
2332
+ * Get user\'s client credentials
2333
+ * @summary Get user\'s client credentials
2334
+ * @param {*} [options] Override http request option.
2335
+ * @throws {RequiredError}
2336
+ */
2337
+ getGetClientCredentials: function (options) {
2338
+ return __awaiter(this, void 0, void 0, function () {
2339
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2340
+ var _a, _b, _c;
2341
+ return __generator(this, function (_d) {
2342
+ switch (_d.label) {
2343
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetClientCredentials(options)];
2344
+ case 1:
2345
+ localVarAxiosArgs = _d.sent();
2346
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2347
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2348
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2349
+ }
2350
+ });
2351
+ });
2352
+ },
2353
+ /**
2354
+ * Get Customer Accounts List
2355
+ * @param {*} [options] Override http request option.
2356
+ * @throws {RequiredError}
2357
+ */
2358
+ getGetCustomerAccountsList: function (options) {
2359
+ return __awaiter(this, void 0, void 0, function () {
2360
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2361
+ var _a, _b, _c;
2362
+ return __generator(this, function (_d) {
2363
+ switch (_d.label) {
2364
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerAccountsList(options)];
2365
+ case 1:
2366
+ localVarAxiosArgs = _d.sent();
2367
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2368
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetCustomerAccountsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2369
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2370
+ }
2371
+ });
2372
+ });
2373
+ },
2374
+ /**
2375
+ * Get 3CX Keys
2376
+ * @summary Get 3CX Keys
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ */
2380
+ getGetCustomerKeys: function (options) {
2381
+ return __awaiter(this, void 0, void 0, function () {
2382
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2383
+ var _a, _b, _c;
2384
+ return __generator(this, function (_d) {
2385
+ switch (_d.label) {
2386
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerKeys(options)];
2387
+ case 1:
2388
+ localVarAxiosArgs = _d.sent();
2389
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2390
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetCustomerKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2391
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2392
+ }
2393
+ });
2394
+ });
2395
+ },
2396
+ /**
2397
+ * Get Account Finance
2398
+ * @param {string} id Account Xero ID
2399
+ * @param {*} [options] Override http request option.
2400
+ * @throws {RequiredError}
2401
+ */
2402
+ getGetFinanceSettings: function (id, options) {
2403
+ return __awaiter(this, void 0, void 0, function () {
2404
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2405
+ var _a, _b, _c;
2406
+ return __generator(this, function (_d) {
2407
+ switch (_d.label) {
2408
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetFinanceSettings(id, options)];
2409
+ case 1:
2410
+ localVarAxiosArgs = _d.sent();
2411
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2412
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetFinanceSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2413
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2414
+ }
2415
+ });
2416
+ });
2417
+ },
2418
+ /**
2419
+ * Get Last Account
2420
+ * @summary Get Last Account
2421
+ * @param {*} [options] Override http request option.
2422
+ * @throws {RequiredError}
2423
+ */
2424
+ getGetLastAccount: function (options) {
2425
+ return __awaiter(this, void 0, void 0, function () {
2426
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2427
+ var _a, _b, _c;
2428
+ return __generator(this, function (_d) {
2429
+ switch (_d.label) {
2430
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetLastAccount(options)];
2431
+ case 1:
2432
+ localVarAxiosArgs = _d.sent();
2433
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2434
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetLastAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2435
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2436
+ }
2437
+ });
2438
+ });
2439
+ },
2440
+ /**
2441
+ * Get Account 3CX Details
2442
+ * @param {string} id Xero ID
2443
+ * @param {*} [options] Override http request option.
2444
+ * @throws {RequiredError}
2445
+ */
2446
+ getGetTcxPartnerDetails: function (id, options) {
2447
+ return __awaiter(this, void 0, void 0, function () {
2448
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2449
+ var _a, _b, _c;
2450
+ return __generator(this, function (_d) {
2451
+ switch (_d.label) {
2452
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxPartnerDetails(id, options)];
2453
+ case 1:
2454
+ localVarAxiosArgs = _d.sent();
2455
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2456
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetTcxPartnerDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2457
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2458
+ }
2459
+ });
2460
+ });
2461
+ },
2462
+ /**
2463
+ * Verify account email address
2464
+ * @summary Verify account email address
2465
+ * @param {string} token Verification Token
2466
+ * @param {*} [options] Override http request option.
2467
+ * @throws {RequiredError}
2468
+ */
2469
+ getVerifyEmailAddress: function (token, options) {
2470
+ return __awaiter(this, void 0, void 0, function () {
2471
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2472
+ var _a, _b, _c;
2473
+ return __generator(this, function (_d) {
2474
+ switch (_d.label) {
2475
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVerifyEmailAddress(token, options)];
2476
+ case 1:
2477
+ localVarAxiosArgs = _d.sent();
2478
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2479
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getVerifyEmailAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2480
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2481
+ }
2482
+ });
2483
+ });
2484
+ },
2485
+ /**
2486
+ * Set Account Portal Access
2487
+ * @param {string} id Xero ID
2488
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
2489
+ * @param {*} [options] Override http request option.
2490
+ * @throws {RequiredError}
2491
+ */
2492
+ patchSetPortalAccess: function (id, state, options) {
2493
+ return __awaiter(this, void 0, void 0, function () {
2494
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2495
+ var _a, _b, _c;
2496
+ return __generator(this, function (_d) {
2497
+ switch (_d.label) {
2498
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetPortalAccess(id, state, options)];
2499
+ case 1:
2500
+ localVarAxiosArgs = _d.sent();
2501
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2502
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetPortalAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2503
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2504
+ }
2505
+ });
2506
+ });
2507
+ },
2508
+ /**
2509
+ * Set Account Prize Promo
2510
+ * @param {string} id Xero ID
2511
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
2512
+ * @param {*} [options] Override http request option.
2513
+ * @throws {RequiredError}
2514
+ */
2515
+ patchSetPrizePromo: function (id, state, options) {
2516
+ return __awaiter(this, void 0, void 0, function () {
2517
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2518
+ var _a, _b, _c;
2519
+ return __generator(this, function (_d) {
2520
+ switch (_d.label) {
2521
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetPrizePromo(id, state, options)];
2522
+ case 1:
2523
+ localVarAxiosArgs = _d.sent();
2524
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2525
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetPrizePromo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2526
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2527
+ }
2528
+ });
2529
+ });
2530
+ },
2531
+ /**
2532
+ * Set 3CX Wizard CNAME
2533
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
2534
+ * @param {*} [options] Override http request option.
2535
+ * @throws {RequiredError}
2536
+ */
2537
+ patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest, options) {
2538
+ return __awaiter(this, void 0, void 0, function () {
2539
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2540
+ var _a, _b, _c;
2541
+ return __generator(this, function (_d) {
2542
+ switch (_d.label) {
2543
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options)];
2544
+ case 1:
2545
+ localVarAxiosArgs = _d.sent();
2546
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2547
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetTcxWizardCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2548
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2549
+ }
2550
+ });
2551
+ });
2552
+ },
2553
+ /**
2554
+ * Set Account CNAME
2555
+ * @param {string} id Xero ID
2556
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
1171
2557
  * @param {*} [options] Override http request option.
1172
2558
  * @throws {RequiredError}
1173
2559
  */
1174
- deleteDeleteClientCredentials: function (id, options) {
2560
+ patchUpdateAccountCname: function (id, patchUpdateAccountCnameRequest, options) {
1175
2561
  return __awaiter(this, void 0, void 0, function () {
1176
2562
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1177
2563
  var _a, _b, _c;
1178
2564
  return __generator(this, function (_d) {
1179
2565
  switch (_d.label) {
1180
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteClientCredentials(id, options)];
2566
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options)];
1181
2567
  case 1:
1182
2568
  localVarAxiosArgs = _d.sent();
1183
2569
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1184
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteDeleteClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2570
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1185
2571
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1186
2572
  }
1187
2573
  });
1188
2574
  });
1189
2575
  },
1190
2576
  /**
1191
- * Delete Account Contacts
1192
- * @summary Delete Account Contact
1193
- * @param {string} email Contact Email Address
2577
+ * Set Account Company Number
2578
+ * @param {string} id Xero ID
2579
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
1194
2580
  * @param {*} [options] Override http request option.
1195
2581
  * @throws {RequiredError}
1196
2582
  */
1197
- deleteUpdateAccountContact: function (email, options) {
2583
+ patchUpdateAccountCompanyNumber: function (id, patchUpdateAccountCompanyNumberRequest, options) {
1198
2584
  return __awaiter(this, void 0, void 0, function () {
1199
2585
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1200
2586
  var _a, _b, _c;
1201
2587
  return __generator(this, function (_d) {
1202
2588
  switch (_d.label) {
1203
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateAccountContact(email, options)];
2589
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options)];
1204
2590
  case 1:
1205
2591
  localVarAxiosArgs = _d.sent();
1206
2592
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1207
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2593
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountCompanyNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1208
2594
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1209
2595
  }
1210
2596
  });
1211
2597
  });
1212
2598
  },
1213
2599
  /**
1214
- * Get Account
1215
- * @summary Get Account
2600
+ * Update Account Password
2601
+ * @summary Update Account Password
2602
+ * @param {string} token Verification Token
2603
+ * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
1216
2604
  * @param {*} [options] Override http request option.
1217
2605
  * @throws {RequiredError}
1218
2606
  */
1219
- getGetAccount: function (options) {
2607
+ patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
1220
2608
  return __awaiter(this, void 0, void 0, function () {
1221
2609
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1222
2610
  var _a, _b, _c;
1223
2611
  return __generator(this, function (_d) {
1224
2612
  switch (_d.label) {
1225
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccount(options)];
2613
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options)];
1226
2614
  case 1:
1227
2615
  localVarAxiosArgs = _d.sent();
1228
2616
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1229
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2617
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountContactPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1230
2618
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1231
2619
  }
1232
2620
  });
1233
2621
  });
1234
2622
  },
1235
2623
  /**
1236
- * Get Account Contacts
1237
- * @summary Get Account Contacts
1238
- * @param {string} [email] Contact Email Address
2624
+ * Set Account Phone
2625
+ * @param {string} id Xero ID
2626
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
1239
2627
  * @param {*} [options] Override http request option.
1240
2628
  * @throws {RequiredError}
1241
2629
  */
1242
- getGetAccountContacts: function (email, options) {
2630
+ patchUpdateAccountPhone: function (id, patchUpdateAccountPhoneRequest, options) {
1243
2631
  return __awaiter(this, void 0, void 0, function () {
1244
2632
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1245
2633
  var _a, _b, _c;
1246
2634
  return __generator(this, function (_d) {
1247
2635
  switch (_d.label) {
1248
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountContacts(email, options)];
2636
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options)];
1249
2637
  case 1:
1250
2638
  localVarAxiosArgs = _d.sent();
1251
2639
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1252
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountContacts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2640
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountPhone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1253
2641
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1254
2642
  }
1255
2643
  });
1256
2644
  });
1257
2645
  },
1258
2646
  /**
1259
- * Get Account Detailed Summary
1260
- * @summary Get Account Detailed Summary
1261
- * @param {number} id Customer ID
2647
+ * Set Account VAT Number
2648
+ * @param {string} id Xero ID
2649
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
1262
2650
  * @param {*} [options] Override http request option.
1263
2651
  * @throws {RequiredError}
1264
2652
  */
1265
- getGetAccountDetailedSummary: function (id, options) {
2653
+ patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
1266
2654
  return __awaiter(this, void 0, void 0, function () {
1267
2655
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1268
2656
  var _a, _b, _c;
1269
2657
  return __generator(this, function (_d) {
1270
2658
  switch (_d.label) {
1271
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options)];
2659
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options)];
1272
2660
  case 1:
1273
2661
  localVarAxiosArgs = _d.sent();
1274
2662
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1275
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountDetailedSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2663
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountVatNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1276
2664
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1277
2665
  }
1278
2666
  });
1279
2667
  });
1280
2668
  },
1281
2669
  /**
1282
- * Get Accounts
1283
- * @summary Get Accounts
1284
- * @param {number} [pageSize] Number Of Results
1285
- * @param {number} [page] Page Number
1286
- * @param {string} [search] Search
1287
- * @param {boolean} [active] Active
2670
+ * Set Account Credit Limit
2671
+ * @param {string} id Xero ID
2672
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
1288
2673
  * @param {*} [options] Override http request option.
1289
2674
  * @throws {RequiredError}
1290
2675
  */
1291
- getGetAccounts: function (pageSize, page, search, active, options) {
2676
+ patchUpdateCreditLimit: function (id, patchUpdateCreditLimitRequest, options) {
1292
2677
  return __awaiter(this, void 0, void 0, function () {
1293
2678
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1294
2679
  var _a, _b, _c;
1295
2680
  return __generator(this, function (_d) {
1296
2681
  switch (_d.label) {
1297
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccounts(pageSize, page, search, active, options)];
2682
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options)];
1298
2683
  case 1:
1299
2684
  localVarAxiosArgs = _d.sent();
1300
2685
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1301
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2686
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateCreditLimit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1302
2687
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1303
2688
  }
1304
2689
  });
1305
2690
  });
1306
2691
  },
1307
2692
  /**
1308
- * Get user\'s client credentials
1309
- * @summary Get user\'s client credentials
2693
+ * Set Account Price List
2694
+ * @param {string} id Xero ID
2695
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
1310
2696
  * @param {*} [options] Override http request option.
1311
2697
  * @throws {RequiredError}
1312
2698
  */
1313
- getGetClientCredentials: function (options) {
2699
+ patchUpdatePriceList: function (id, patchUpdatePriceListRequest, options) {
1314
2700
  return __awaiter(this, void 0, void 0, function () {
1315
2701
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1316
2702
  var _a, _b, _c;
1317
2703
  return __generator(this, function (_d) {
1318
2704
  switch (_d.label) {
1319
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetClientCredentials(options)];
2705
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdatePriceList(id, patchUpdatePriceListRequest, options)];
1320
2706
  case 1:
1321
2707
  localVarAxiosArgs = _d.sent();
1322
2708
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1323
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2709
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdatePriceList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1324
2710
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1325
2711
  }
1326
2712
  });
1327
2713
  });
1328
2714
  },
1329
2715
  /**
1330
- * Get 3CX Keys
1331
- * @summary Get 3CX Keys
2716
+ * Set Account SIP Channel Cost
2717
+ * @param {string} id Xero ID
2718
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
1332
2719
  * @param {*} [options] Override http request option.
1333
2720
  * @throws {RequiredError}
1334
2721
  */
1335
- getGetCustomerKeys: function (options) {
2722
+ patchUpdateSipChannelCost: function (id, patchUpdateSipChannelCostRequest, options) {
1336
2723
  return __awaiter(this, void 0, void 0, function () {
1337
2724
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1338
2725
  var _a, _b, _c;
1339
2726
  return __generator(this, function (_d) {
1340
2727
  switch (_d.label) {
1341
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerKeys(options)];
2728
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options)];
1342
2729
  case 1:
1343
2730
  localVarAxiosArgs = _d.sent();
1344
2731
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1345
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetCustomerKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2732
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateSipChannelCost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1346
2733
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1347
2734
  }
1348
2735
  });
1349
2736
  });
1350
2737
  },
1351
2738
  /**
1352
- * Verify account email address
1353
- * @summary Verify account email address
1354
- * @param {string} token Verification Token
2739
+ * Set Account 3CX Hosting Price List
2740
+ * @param {string} id Xero ID
2741
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
1355
2742
  * @param {*} [options] Override http request option.
1356
2743
  * @throws {RequiredError}
1357
2744
  */
1358
- getVerifyEmailAddress: function (token, options) {
2745
+ patchUpdateTcxHostingPriceList: function (id, patchUpdateTcxHostingPriceListRequest, options) {
1359
2746
  return __awaiter(this, void 0, void 0, function () {
1360
2747
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1361
2748
  var _a, _b, _c;
1362
2749
  return __generator(this, function (_d) {
1363
2750
  switch (_d.label) {
1364
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVerifyEmailAddress(token, options)];
2751
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options)];
1365
2752
  case 1:
1366
2753
  localVarAxiosArgs = _d.sent();
1367
2754
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1368
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getVerifyEmailAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2755
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateTcxHostingPriceList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1369
2756
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1370
2757
  }
1371
2758
  });
1372
2759
  });
1373
2760
  },
1374
2761
  /**
1375
- * Set 3CX Wizard CNAME
1376
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
2762
+ * Set Account 3CX Partner ID
2763
+ * @param {string} id Xero ID
2764
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
1377
2765
  * @param {*} [options] Override http request option.
1378
2766
  * @throws {RequiredError}
1379
2767
  */
1380
- patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest, options) {
2768
+ patchUpdateTcxPartnerId: function (id, patchUpdateTcxPartnerIdRequest, options) {
1381
2769
  return __awaiter(this, void 0, void 0, function () {
1382
2770
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1383
2771
  var _a, _b, _c;
1384
2772
  return __generator(this, function (_d) {
1385
2773
  switch (_d.label) {
1386
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options)];
2774
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options)];
1387
2775
  case 1:
1388
2776
  localVarAxiosArgs = _d.sent();
1389
2777
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1390
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetTcxWizardCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2778
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateTcxPartnerId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1391
2779
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1392
2780
  }
1393
2781
  });
1394
2782
  });
1395
2783
  },
1396
2784
  /**
1397
- * Update Account Password
1398
- * @summary Update Account Password
1399
- * @param {string} token Verification Token
1400
- * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
2785
+ * Create Account Contact
2786
+ * @param {string} id Account Xero ID
2787
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
1401
2788
  * @param {*} [options] Override http request option.
1402
2789
  * @throws {RequiredError}
1403
2790
  */
1404
- patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
2791
+ postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
1405
2792
  return __awaiter(this, void 0, void 0, function () {
1406
2793
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1407
2794
  var _a, _b, _c;
1408
2795
  return __generator(this, function (_d) {
1409
2796
  switch (_d.label) {
1410
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options)];
2797
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options)];
1411
2798
  case 1:
1412
2799
  localVarAxiosArgs = _d.sent();
1413
2800
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1414
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountContactPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2801
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postAdminCreateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1415
2802
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1416
2803
  }
1417
2804
  });
@@ -1554,6 +2941,29 @@ var AccountsApiFp = function (configuration) {
1554
2941
  });
1555
2942
  });
1556
2943
  },
2944
+ /**
2945
+ * Send Account Welcome Email
2946
+ * @param {string} id Xero ID
2947
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
2948
+ * @param {*} [options] Override http request option.
2949
+ * @throws {RequiredError}
2950
+ */
2951
+ postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
2952
+ return __awaiter(this, void 0, void 0, function () {
2953
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2954
+ var _a, _b, _c;
2955
+ return __generator(this, function (_d) {
2956
+ switch (_d.label) {
2957
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options)];
2958
+ case 1:
2959
+ localVarAxiosArgs = _d.sent();
2960
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2961
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postSendWelcomeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2962
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2963
+ }
2964
+ });
2965
+ });
2966
+ },
1557
2967
  /**
1558
2968
  * Submit reseller application
1559
2969
  * @summary Submit reseller application
@@ -1579,6 +2989,30 @@ var AccountsApiFp = function (configuration) {
1579
2989
  });
1580
2990
  });
1581
2991
  },
2992
+ /**
2993
+ * Update Account Contact
2994
+ * @param {string} id Account Xero ID
2995
+ * @param {number} contactId Contact ID
2996
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2997
+ * @param {*} [options] Override http request option.
2998
+ * @throws {RequiredError}
2999
+ */
3000
+ putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
3001
+ return __awaiter(this, void 0, void 0, function () {
3002
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3003
+ var _a, _b, _c;
3004
+ return __generator(this, function (_d) {
3005
+ switch (_d.label) {
3006
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options)];
3007
+ case 1:
3008
+ localVarAxiosArgs = _d.sent();
3009
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3010
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3011
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3012
+ }
3013
+ });
3014
+ });
3015
+ },
1582
3016
  /**
1583
3017
  * Update Account Contacts
1584
3018
  * @summary Update Account Contact
@@ -1603,6 +3037,52 @@ var AccountsApiFp = function (configuration) {
1603
3037
  });
1604
3038
  });
1605
3039
  },
3040
+ /**
3041
+ * Update Account Billing Address
3042
+ * @param {string} id Xero ID
3043
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
3044
+ * @param {*} [options] Override http request option.
3045
+ * @throws {RequiredError}
3046
+ */
3047
+ putUpdateBillingAddress: function (id, addressDTO, options) {
3048
+ return __awaiter(this, void 0, void 0, function () {
3049
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3050
+ var _a, _b, _c;
3051
+ return __generator(this, function (_d) {
3052
+ switch (_d.label) {
3053
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options)];
3054
+ case 1:
3055
+ localVarAxiosArgs = _d.sent();
3056
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3057
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateBillingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3058
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3059
+ }
3060
+ });
3061
+ });
3062
+ },
3063
+ /**
3064
+ * Update Account Shipping Address
3065
+ * @param {string} id Xero ID
3066
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
3067
+ * @param {*} [options] Override http request option.
3068
+ * @throws {RequiredError}
3069
+ */
3070
+ putUpdateShippingAddress: function (id, addressDTO, options) {
3071
+ return __awaiter(this, void 0, void 0, function () {
3072
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3073
+ var _a, _b, _c;
3074
+ return __generator(this, function (_d) {
3075
+ switch (_d.label) {
3076
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateShippingAddress(id, addressDTO, options)];
3077
+ case 1:
3078
+ localVarAxiosArgs = _d.sent();
3079
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3080
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateShippingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3081
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3082
+ }
3083
+ });
3084
+ });
3085
+ },
1606
3086
  };
1607
3087
  };
1608
3088
  exports.AccountsApiFp = AccountsApiFp;
@@ -1613,6 +3093,25 @@ exports.AccountsApiFp = AccountsApiFp;
1613
3093
  var AccountsApiFactory = function (configuration, basePath, axios) {
1614
3094
  var localVarFp = (0, exports.AccountsApiFp)(configuration);
1615
3095
  return {
3096
+ /**
3097
+ * Delete Account Contact
3098
+ * @param {string} id Account Xero ID
3099
+ * @param {number} contactId Contact ID
3100
+ * @param {*} [options] Override http request option.
3101
+ * @throws {RequiredError}
3102
+ */
3103
+ deleteAdminUpdateAccountContact: function (id, contactId, options) {
3104
+ return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
3105
+ },
3106
+ /**
3107
+ * Delete Account
3108
+ * @param {string} id Account Xero ID
3109
+ * @param {*} [options] Override http request option.
3110
+ * @throws {RequiredError}
3111
+ */
3112
+ deleteArchiveAccount: function (id, options) {
3113
+ return localVarFp.deleteArchiveAccount(id, options).then(function (request) { return request(axios, basePath); });
3114
+ },
1616
3115
  /**
1617
3116
  * Delete client credentials
1618
3117
  * @summary Delete client credentials
@@ -1633,6 +3132,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1633
3132
  deleteUpdateAccountContact: function (email, options) {
1634
3133
  return localVarFp.deleteUpdateAccountContact(email, options).then(function (request) { return request(axios, basePath); });
1635
3134
  },
3135
+ /**
3136
+ * Get Account Contacts
3137
+ * @param {string} id Account Xero ID
3138
+ * @param {*} [options] Override http request option.
3139
+ * @throws {RequiredError}
3140
+ */
3141
+ getAdminCreateAccountContact: function (id, options) {
3142
+ return localVarFp.getAdminCreateAccountContact(id, options).then(function (request) { return request(axios, basePath); });
3143
+ },
1636
3144
  /**
1637
3145
  * Get Account
1638
3146
  * @summary Get Account
@@ -1642,6 +3150,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1642
3150
  getGetAccount: function (options) {
1643
3151
  return localVarFp.getGetAccount(options).then(function (request) { return request(axios, basePath); });
1644
3152
  },
3153
+ /**
3154
+ * Get Account Addresses
3155
+ * @param {string} id Xero ID
3156
+ * @param {*} [options] Override http request option.
3157
+ * @throws {RequiredError}
3158
+ */
3159
+ getGetAccountAddresses: function (id, options) {
3160
+ return localVarFp.getGetAccountAddresses(id, options).then(function (request) { return request(axios, basePath); });
3161
+ },
1645
3162
  /**
1646
3163
  * Get Account Contacts
1647
3164
  * @summary Get Account Contacts
@@ -1684,6 +3201,14 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1684
3201
  getGetClientCredentials: function (options) {
1685
3202
  return localVarFp.getGetClientCredentials(options).then(function (request) { return request(axios, basePath); });
1686
3203
  },
3204
+ /**
3205
+ * Get Customer Accounts List
3206
+ * @param {*} [options] Override http request option.
3207
+ * @throws {RequiredError}
3208
+ */
3209
+ getGetCustomerAccountsList: function (options) {
3210
+ return localVarFp.getGetCustomerAccountsList(options).then(function (request) { return request(axios, basePath); });
3211
+ },
1687
3212
  /**
1688
3213
  * Get 3CX Keys
1689
3214
  * @summary Get 3CX Keys
@@ -1693,6 +3218,33 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1693
3218
  getGetCustomerKeys: function (options) {
1694
3219
  return localVarFp.getGetCustomerKeys(options).then(function (request) { return request(axios, basePath); });
1695
3220
  },
3221
+ /**
3222
+ * Get Account Finance
3223
+ * @param {string} id Account Xero ID
3224
+ * @param {*} [options] Override http request option.
3225
+ * @throws {RequiredError}
3226
+ */
3227
+ getGetFinanceSettings: function (id, options) {
3228
+ return localVarFp.getGetFinanceSettings(id, options).then(function (request) { return request(axios, basePath); });
3229
+ },
3230
+ /**
3231
+ * Get Last Account
3232
+ * @summary Get Last Account
3233
+ * @param {*} [options] Override http request option.
3234
+ * @throws {RequiredError}
3235
+ */
3236
+ getGetLastAccount: function (options) {
3237
+ return localVarFp.getGetLastAccount(options).then(function (request) { return request(axios, basePath); });
3238
+ },
3239
+ /**
3240
+ * Get Account 3CX Details
3241
+ * @param {string} id Xero ID
3242
+ * @param {*} [options] Override http request option.
3243
+ * @throws {RequiredError}
3244
+ */
3245
+ getGetTcxPartnerDetails: function (id, options) {
3246
+ return localVarFp.getGetTcxPartnerDetails(id, options).then(function (request) { return request(axios, basePath); });
3247
+ },
1696
3248
  /**
1697
3249
  * Verify account email address
1698
3250
  * @summary Verify account email address
@@ -1703,14 +3255,54 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1703
3255
  getVerifyEmailAddress: function (token, options) {
1704
3256
  return localVarFp.getVerifyEmailAddress(token, options).then(function (request) { return request(axios, basePath); });
1705
3257
  },
3258
+ /**
3259
+ * Set Account Portal Access
3260
+ * @param {string} id Xero ID
3261
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
3262
+ * @param {*} [options] Override http request option.
3263
+ * @throws {RequiredError}
3264
+ */
3265
+ patchSetPortalAccess: function (id, state, options) {
3266
+ return localVarFp.patchSetPortalAccess(id, state, options).then(function (request) { return request(axios, basePath); });
3267
+ },
3268
+ /**
3269
+ * Set Account Prize Promo
3270
+ * @param {string} id Xero ID
3271
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
3272
+ * @param {*} [options] Override http request option.
3273
+ * @throws {RequiredError}
3274
+ */
3275
+ patchSetPrizePromo: function (id, state, options) {
3276
+ return localVarFp.patchSetPrizePromo(id, state, options).then(function (request) { return request(axios, basePath); });
3277
+ },
1706
3278
  /**
1707
3279
  * Set 3CX Wizard CNAME
1708
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
3280
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
3281
+ * @param {*} [options] Override http request option.
3282
+ * @throws {RequiredError}
3283
+ */
3284
+ patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest, options) {
3285
+ return localVarFp.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(axios, basePath); });
3286
+ },
3287
+ /**
3288
+ * Set Account CNAME
3289
+ * @param {string} id Xero ID
3290
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
3291
+ * @param {*} [options] Override http request option.
3292
+ * @throws {RequiredError}
3293
+ */
3294
+ patchUpdateAccountCname: function (id, patchUpdateAccountCnameRequest, options) {
3295
+ return localVarFp.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(axios, basePath); });
3296
+ },
3297
+ /**
3298
+ * Set Account Company Number
3299
+ * @param {string} id Xero ID
3300
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
1709
3301
  * @param {*} [options] Override http request option.
1710
3302
  * @throws {RequiredError}
1711
3303
  */
1712
- patchSetTcxWizardCname: function (patchSetTcxWizardCnameRequest, options) {
1713
- return localVarFp.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then(function (request) { return request(axios, basePath); });
3304
+ patchUpdateAccountCompanyNumber: function (id, patchUpdateAccountCompanyNumberRequest, options) {
3305
+ return localVarFp.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then(function (request) { return request(axios, basePath); });
1714
3306
  },
1715
3307
  /**
1716
3308
  * Update Account Password
@@ -1723,6 +3315,86 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1723
3315
  patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
1724
3316
  return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(axios, basePath); });
1725
3317
  },
3318
+ /**
3319
+ * Set Account Phone
3320
+ * @param {string} id Xero ID
3321
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
3322
+ * @param {*} [options] Override http request option.
3323
+ * @throws {RequiredError}
3324
+ */
3325
+ patchUpdateAccountPhone: function (id, patchUpdateAccountPhoneRequest, options) {
3326
+ return localVarFp.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then(function (request) { return request(axios, basePath); });
3327
+ },
3328
+ /**
3329
+ * Set Account VAT Number
3330
+ * @param {string} id Xero ID
3331
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
3332
+ * @param {*} [options] Override http request option.
3333
+ * @throws {RequiredError}
3334
+ */
3335
+ patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
3336
+ return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(axios, basePath); });
3337
+ },
3338
+ /**
3339
+ * Set Account Credit Limit
3340
+ * @param {string} id Xero ID
3341
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
3342
+ * @param {*} [options] Override http request option.
3343
+ * @throws {RequiredError}
3344
+ */
3345
+ patchUpdateCreditLimit: function (id, patchUpdateCreditLimitRequest, options) {
3346
+ return localVarFp.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then(function (request) { return request(axios, basePath); });
3347
+ },
3348
+ /**
3349
+ * Set Account Price List
3350
+ * @param {string} id Xero ID
3351
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
3352
+ * @param {*} [options] Override http request option.
3353
+ * @throws {RequiredError}
3354
+ */
3355
+ patchUpdatePriceList: function (id, patchUpdatePriceListRequest, options) {
3356
+ return localVarFp.patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then(function (request) { return request(axios, basePath); });
3357
+ },
3358
+ /**
3359
+ * Set Account SIP Channel Cost
3360
+ * @param {string} id Xero ID
3361
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
3362
+ * @param {*} [options] Override http request option.
3363
+ * @throws {RequiredError}
3364
+ */
3365
+ patchUpdateSipChannelCost: function (id, patchUpdateSipChannelCostRequest, options) {
3366
+ return localVarFp.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then(function (request) { return request(axios, basePath); });
3367
+ },
3368
+ /**
3369
+ * Set Account 3CX Hosting Price List
3370
+ * @param {string} id Xero ID
3371
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
3372
+ * @param {*} [options] Override http request option.
3373
+ * @throws {RequiredError}
3374
+ */
3375
+ patchUpdateTcxHostingPriceList: function (id, patchUpdateTcxHostingPriceListRequest, options) {
3376
+ return localVarFp.patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options).then(function (request) { return request(axios, basePath); });
3377
+ },
3378
+ /**
3379
+ * Set Account 3CX Partner ID
3380
+ * @param {string} id Xero ID
3381
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
3382
+ * @param {*} [options] Override http request option.
3383
+ * @throws {RequiredError}
3384
+ */
3385
+ patchUpdateTcxPartnerId: function (id, patchUpdateTcxPartnerIdRequest, options) {
3386
+ return localVarFp.patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options).then(function (request) { return request(axios, basePath); });
3387
+ },
3388
+ /**
3389
+ * Create Account Contact
3390
+ * @param {string} id Account Xero ID
3391
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
3392
+ * @param {*} [options] Override http request option.
3393
+ * @throws {RequiredError}
3394
+ */
3395
+ postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
3396
+ return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
3397
+ },
1726
3398
  /**
1727
3399
  * Add Account Contacts
1728
3400
  * @summary Add Account Contact
@@ -1782,6 +3454,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1782
3454
  postSendPasswordReset: function (email, options) {
1783
3455
  return localVarFp.postSendPasswordReset(email, options).then(function (request) { return request(axios, basePath); });
1784
3456
  },
3457
+ /**
3458
+ * Send Account Welcome Email
3459
+ * @param {string} id Xero ID
3460
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
3461
+ * @param {*} [options] Override http request option.
3462
+ * @throws {RequiredError}
3463
+ */
3464
+ postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
3465
+ return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(axios, basePath); });
3466
+ },
1785
3467
  /**
1786
3468
  * Submit reseller application
1787
3469
  * @summary Submit reseller application
@@ -1791,8 +3473,19 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1791
3473
  * @param {*} [options] Override http request option.
1792
3474
  * @throws {RequiredError}
1793
3475
  */
1794
- postSubmitResellerApplication: function (creditRequired, companyNumber, vatNumber, options) {
1795
- return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(axios, basePath); });
3476
+ postSubmitResellerApplication: function (creditRequired, companyNumber, vatNumber, options) {
3477
+ return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(axios, basePath); });
3478
+ },
3479
+ /**
3480
+ * Update Account Contact
3481
+ * @param {string} id Account Xero ID
3482
+ * @param {number} contactId Contact ID
3483
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
3484
+ * @param {*} [options] Override http request option.
3485
+ * @throws {RequiredError}
3486
+ */
3487
+ putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
3488
+ return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
1796
3489
  },
1797
3490
  /**
1798
3491
  * Update Account Contacts
@@ -1805,6 +3498,26 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
1805
3498
  putUpdateAccountContact: function (email, accountContactRequestModel, options) {
1806
3499
  return localVarFp.putUpdateAccountContact(email, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
1807
3500
  },
3501
+ /**
3502
+ * Update Account Billing Address
3503
+ * @param {string} id Xero ID
3504
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
3505
+ * @param {*} [options] Override http request option.
3506
+ * @throws {RequiredError}
3507
+ */
3508
+ putUpdateBillingAddress: function (id, addressDTO, options) {
3509
+ return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
3510
+ },
3511
+ /**
3512
+ * Update Account Shipping Address
3513
+ * @param {string} id Xero ID
3514
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
3515
+ * @param {*} [options] Override http request option.
3516
+ * @throws {RequiredError}
3517
+ */
3518
+ putUpdateShippingAddress: function (id, addressDTO, options) {
3519
+ return localVarFp.putUpdateShippingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
3520
+ },
1808
3521
  };
1809
3522
  };
1810
3523
  exports.AccountsApiFactory = AccountsApiFactory;
@@ -1819,6 +3532,29 @@ var AccountsApi = /** @class */ (function (_super) {
1819
3532
  function AccountsApi() {
1820
3533
  return _super !== null && _super.apply(this, arguments) || this;
1821
3534
  }
3535
+ /**
3536
+ * Delete Account Contact
3537
+ * @param {string} id Account Xero ID
3538
+ * @param {number} contactId Contact ID
3539
+ * @param {*} [options] Override http request option.
3540
+ * @throws {RequiredError}
3541
+ * @memberof AccountsApi
3542
+ */
3543
+ AccountsApi.prototype.deleteAdminUpdateAccountContact = function (id, contactId, options) {
3544
+ var _this = this;
3545
+ return (0, exports.AccountsApiFp)(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3546
+ };
3547
+ /**
3548
+ * Delete Account
3549
+ * @param {string} id Account Xero ID
3550
+ * @param {*} [options] Override http request option.
3551
+ * @throws {RequiredError}
3552
+ * @memberof AccountsApi
3553
+ */
3554
+ AccountsApi.prototype.deleteArchiveAccount = function (id, options) {
3555
+ var _this = this;
3556
+ return (0, exports.AccountsApiFp)(this.configuration).deleteArchiveAccount(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3557
+ };
1822
3558
  /**
1823
3559
  * Delete client credentials
1824
3560
  * @summary Delete client credentials
@@ -1843,6 +3579,17 @@ var AccountsApi = /** @class */ (function (_super) {
1843
3579
  var _this = this;
1844
3580
  return (0, exports.AccountsApiFp)(this.configuration).deleteUpdateAccountContact(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
1845
3581
  };
3582
+ /**
3583
+ * Get Account Contacts
3584
+ * @param {string} id Account Xero ID
3585
+ * @param {*} [options] Override http request option.
3586
+ * @throws {RequiredError}
3587
+ * @memberof AccountsApi
3588
+ */
3589
+ AccountsApi.prototype.getAdminCreateAccountContact = function (id, options) {
3590
+ var _this = this;
3591
+ return (0, exports.AccountsApiFp)(this.configuration).getAdminCreateAccountContact(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3592
+ };
1846
3593
  /**
1847
3594
  * Get Account
1848
3595
  * @summary Get Account
@@ -1854,6 +3601,17 @@ var AccountsApi = /** @class */ (function (_super) {
1854
3601
  var _this = this;
1855
3602
  return (0, exports.AccountsApiFp)(this.configuration).getGetAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
1856
3603
  };
3604
+ /**
3605
+ * Get Account Addresses
3606
+ * @param {string} id Xero ID
3607
+ * @param {*} [options] Override http request option.
3608
+ * @throws {RequiredError}
3609
+ * @memberof AccountsApi
3610
+ */
3611
+ AccountsApi.prototype.getGetAccountAddresses = function (id, options) {
3612
+ var _this = this;
3613
+ return (0, exports.AccountsApiFp)(this.configuration).getGetAccountAddresses(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3614
+ };
1857
3615
  /**
1858
3616
  * Get Account Contacts
1859
3617
  * @summary Get Account Contacts
@@ -1904,6 +3662,16 @@ var AccountsApi = /** @class */ (function (_super) {
1904
3662
  var _this = this;
1905
3663
  return (0, exports.AccountsApiFp)(this.configuration).getGetClientCredentials(options).then(function (request) { return request(_this.axios, _this.basePath); });
1906
3664
  };
3665
+ /**
3666
+ * Get Customer Accounts List
3667
+ * @param {*} [options] Override http request option.
3668
+ * @throws {RequiredError}
3669
+ * @memberof AccountsApi
3670
+ */
3671
+ AccountsApi.prototype.getGetCustomerAccountsList = function (options) {
3672
+ var _this = this;
3673
+ return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerAccountsList(options).then(function (request) { return request(_this.axios, _this.basePath); });
3674
+ };
1907
3675
  /**
1908
3676
  * Get 3CX Keys
1909
3677
  * @summary Get 3CX Keys
@@ -1915,6 +3683,39 @@ var AccountsApi = /** @class */ (function (_super) {
1915
3683
  var _this = this;
1916
3684
  return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerKeys(options).then(function (request) { return request(_this.axios, _this.basePath); });
1917
3685
  };
3686
+ /**
3687
+ * Get Account Finance
3688
+ * @param {string} id Account Xero ID
3689
+ * @param {*} [options] Override http request option.
3690
+ * @throws {RequiredError}
3691
+ * @memberof AccountsApi
3692
+ */
3693
+ AccountsApi.prototype.getGetFinanceSettings = function (id, options) {
3694
+ var _this = this;
3695
+ return (0, exports.AccountsApiFp)(this.configuration).getGetFinanceSettings(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3696
+ };
3697
+ /**
3698
+ * Get Last Account
3699
+ * @summary Get Last Account
3700
+ * @param {*} [options] Override http request option.
3701
+ * @throws {RequiredError}
3702
+ * @memberof AccountsApi
3703
+ */
3704
+ AccountsApi.prototype.getGetLastAccount = function (options) {
3705
+ var _this = this;
3706
+ return (0, exports.AccountsApiFp)(this.configuration).getGetLastAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
3707
+ };
3708
+ /**
3709
+ * Get Account 3CX Details
3710
+ * @param {string} id Xero ID
3711
+ * @param {*} [options] Override http request option.
3712
+ * @throws {RequiredError}
3713
+ * @memberof AccountsApi
3714
+ */
3715
+ AccountsApi.prototype.getGetTcxPartnerDetails = function (id, options) {
3716
+ var _this = this;
3717
+ return (0, exports.AccountsApiFp)(this.configuration).getGetTcxPartnerDetails(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3718
+ };
1918
3719
  /**
1919
3720
  * Verify account email address
1920
3721
  * @summary Verify account email address
@@ -1927,16 +3728,64 @@ var AccountsApi = /** @class */ (function (_super) {
1927
3728
  var _this = this;
1928
3729
  return (0, exports.AccountsApiFp)(this.configuration).getVerifyEmailAddress(token, options).then(function (request) { return request(_this.axios, _this.basePath); });
1929
3730
  };
3731
+ /**
3732
+ * Set Account Portal Access
3733
+ * @param {string} id Xero ID
3734
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
3735
+ * @param {*} [options] Override http request option.
3736
+ * @throws {RequiredError}
3737
+ * @memberof AccountsApi
3738
+ */
3739
+ AccountsApi.prototype.patchSetPortalAccess = function (id, state, options) {
3740
+ var _this = this;
3741
+ return (0, exports.AccountsApiFp)(this.configuration).patchSetPortalAccess(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
3742
+ };
3743
+ /**
3744
+ * Set Account Prize Promo
3745
+ * @param {string} id Xero ID
3746
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
3747
+ * @param {*} [options] Override http request option.
3748
+ * @throws {RequiredError}
3749
+ * @memberof AccountsApi
3750
+ */
3751
+ AccountsApi.prototype.patchSetPrizePromo = function (id, state, options) {
3752
+ var _this = this;
3753
+ return (0, exports.AccountsApiFp)(this.configuration).patchSetPrizePromo(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
3754
+ };
1930
3755
  /**
1931
3756
  * Set 3CX Wizard CNAME
1932
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
3757
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
3758
+ * @param {*} [options] Override http request option.
3759
+ * @throws {RequiredError}
3760
+ * @memberof AccountsApi
3761
+ */
3762
+ AccountsApi.prototype.patchSetTcxWizardCname = function (patchUpdateAccountCnameRequest, options) {
3763
+ var _this = this;
3764
+ return (0, exports.AccountsApiFp)(this.configuration).patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3765
+ };
3766
+ /**
3767
+ * Set Account CNAME
3768
+ * @param {string} id Xero ID
3769
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
3770
+ * @param {*} [options] Override http request option.
3771
+ * @throws {RequiredError}
3772
+ * @memberof AccountsApi
3773
+ */
3774
+ AccountsApi.prototype.patchUpdateAccountCname = function (id, patchUpdateAccountCnameRequest, options) {
3775
+ var _this = this;
3776
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3777
+ };
3778
+ /**
3779
+ * Set Account Company Number
3780
+ * @param {string} id Xero ID
3781
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
1933
3782
  * @param {*} [options] Override http request option.
1934
3783
  * @throws {RequiredError}
1935
3784
  * @memberof AccountsApi
1936
3785
  */
1937
- AccountsApi.prototype.patchSetTcxWizardCname = function (patchSetTcxWizardCnameRequest, options) {
3786
+ AccountsApi.prototype.patchUpdateAccountCompanyNumber = function (id, patchUpdateAccountCompanyNumberRequest, options) {
1938
3787
  var _this = this;
1939
- return (0, exports.AccountsApiFp)(this.configuration).patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3788
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1940
3789
  };
1941
3790
  /**
1942
3791
  * Update Account Password
@@ -1951,6 +3800,102 @@ var AccountsApi = /** @class */ (function (_super) {
1951
3800
  var _this = this;
1952
3801
  return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1953
3802
  };
3803
+ /**
3804
+ * Set Account Phone
3805
+ * @param {string} id Xero ID
3806
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
3807
+ * @param {*} [options] Override http request option.
3808
+ * @throws {RequiredError}
3809
+ * @memberof AccountsApi
3810
+ */
3811
+ AccountsApi.prototype.patchUpdateAccountPhone = function (id, patchUpdateAccountPhoneRequest, options) {
3812
+ var _this = this;
3813
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3814
+ };
3815
+ /**
3816
+ * Set Account VAT Number
3817
+ * @param {string} id Xero ID
3818
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
3819
+ * @param {*} [options] Override http request option.
3820
+ * @throws {RequiredError}
3821
+ * @memberof AccountsApi
3822
+ */
3823
+ AccountsApi.prototype.patchUpdateAccountVatNumber = function (id, patchUpdateAccountVatNumberRequest, options) {
3824
+ var _this = this;
3825
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3826
+ };
3827
+ /**
3828
+ * Set Account Credit Limit
3829
+ * @param {string} id Xero ID
3830
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
3831
+ * @param {*} [options] Override http request option.
3832
+ * @throws {RequiredError}
3833
+ * @memberof AccountsApi
3834
+ */
3835
+ AccountsApi.prototype.patchUpdateCreditLimit = function (id, patchUpdateCreditLimitRequest, options) {
3836
+ var _this = this;
3837
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3838
+ };
3839
+ /**
3840
+ * Set Account Price List
3841
+ * @param {string} id Xero ID
3842
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
3843
+ * @param {*} [options] Override http request option.
3844
+ * @throws {RequiredError}
3845
+ * @memberof AccountsApi
3846
+ */
3847
+ AccountsApi.prototype.patchUpdatePriceList = function (id, patchUpdatePriceListRequest, options) {
3848
+ var _this = this;
3849
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3850
+ };
3851
+ /**
3852
+ * Set Account SIP Channel Cost
3853
+ * @param {string} id Xero ID
3854
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
3855
+ * @param {*} [options] Override http request option.
3856
+ * @throws {RequiredError}
3857
+ * @memberof AccountsApi
3858
+ */
3859
+ AccountsApi.prototype.patchUpdateSipChannelCost = function (id, patchUpdateSipChannelCostRequest, options) {
3860
+ var _this = this;
3861
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3862
+ };
3863
+ /**
3864
+ * Set Account 3CX Hosting Price List
3865
+ * @param {string} id Xero ID
3866
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
3867
+ * @param {*} [options] Override http request option.
3868
+ * @throws {RequiredError}
3869
+ * @memberof AccountsApi
3870
+ */
3871
+ AccountsApi.prototype.patchUpdateTcxHostingPriceList = function (id, patchUpdateTcxHostingPriceListRequest, options) {
3872
+ var _this = this;
3873
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3874
+ };
3875
+ /**
3876
+ * Set Account 3CX Partner ID
3877
+ * @param {string} id Xero ID
3878
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
3879
+ * @param {*} [options] Override http request option.
3880
+ * @throws {RequiredError}
3881
+ * @memberof AccountsApi
3882
+ */
3883
+ AccountsApi.prototype.patchUpdateTcxPartnerId = function (id, patchUpdateTcxPartnerIdRequest, options) {
3884
+ var _this = this;
3885
+ return (0, exports.AccountsApiFp)(this.configuration).patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3886
+ };
3887
+ /**
3888
+ * Create Account Contact
3889
+ * @param {string} id Account Xero ID
3890
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
3891
+ * @param {*} [options] Override http request option.
3892
+ * @throws {RequiredError}
3893
+ * @memberof AccountsApi
3894
+ */
3895
+ AccountsApi.prototype.postAdminCreateAccountContact = function (id, accountContactRequestModel, options) {
3896
+ var _this = this;
3897
+ return (0, exports.AccountsApiFp)(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
3898
+ };
1954
3899
  /**
1955
3900
  * Add Account Contacts
1956
3901
  * @summary Add Account Contact
@@ -2022,6 +3967,18 @@ var AccountsApi = /** @class */ (function (_super) {
2022
3967
  var _this = this;
2023
3968
  return (0, exports.AccountsApiFp)(this.configuration).postSendPasswordReset(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
2024
3969
  };
3970
+ /**
3971
+ * Send Account Welcome Email
3972
+ * @param {string} id Xero ID
3973
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
3974
+ * @param {*} [options] Override http request option.
3975
+ * @throws {RequiredError}
3976
+ * @memberof AccountsApi
3977
+ */
3978
+ AccountsApi.prototype.postSendWelcomeEmail = function (id, postSendWelcomeEmailRequest, options) {
3979
+ var _this = this;
3980
+ return (0, exports.AccountsApiFp)(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3981
+ };
2025
3982
  /**
2026
3983
  * Submit reseller application
2027
3984
  * @summary Submit reseller application
@@ -2036,6 +3993,19 @@ var AccountsApi = /** @class */ (function (_super) {
2036
3993
  var _this = this;
2037
3994
  return (0, exports.AccountsApiFp)(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(_this.axios, _this.basePath); });
2038
3995
  };
3996
+ /**
3997
+ * Update Account Contact
3998
+ * @param {string} id Account Xero ID
3999
+ * @param {number} contactId Contact ID
4000
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
4001
+ * @param {*} [options] Override http request option.
4002
+ * @throws {RequiredError}
4003
+ * @memberof AccountsApi
4004
+ */
4005
+ AccountsApi.prototype.putAdminUpdateAccountContact = function (id, contactId, accountContactRequestModel, options) {
4006
+ var _this = this;
4007
+ return (0, exports.AccountsApiFp)(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
4008
+ };
2039
4009
  /**
2040
4010
  * Update Account Contacts
2041
4011
  * @summary Update Account Contact
@@ -2049,9 +4019,47 @@ var AccountsApi = /** @class */ (function (_super) {
2049
4019
  var _this = this;
2050
4020
  return (0, exports.AccountsApiFp)(this.configuration).putUpdateAccountContact(email, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
2051
4021
  };
4022
+ /**
4023
+ * Update Account Billing Address
4024
+ * @param {string} id Xero ID
4025
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
4026
+ * @param {*} [options] Override http request option.
4027
+ * @throws {RequiredError}
4028
+ * @memberof AccountsApi
4029
+ */
4030
+ AccountsApi.prototype.putUpdateBillingAddress = function (id, addressDTO, options) {
4031
+ var _this = this;
4032
+ return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
4033
+ };
4034
+ /**
4035
+ * Update Account Shipping Address
4036
+ * @param {string} id Xero ID
4037
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
4038
+ * @param {*} [options] Override http request option.
4039
+ * @throws {RequiredError}
4040
+ * @memberof AccountsApi
4041
+ */
4042
+ AccountsApi.prototype.putUpdateShippingAddress = function (id, addressDTO, options) {
4043
+ var _this = this;
4044
+ return (0, exports.AccountsApiFp)(this.configuration).putUpdateShippingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
4045
+ };
2052
4046
  return AccountsApi;
2053
4047
  }(base_1.BaseAPI));
2054
4048
  exports.AccountsApi = AccountsApi;
4049
+ /**
4050
+ * @export
4051
+ */
4052
+ exports.PatchSetPortalAccessStateEnum = {
4053
+ Enable: 'enable',
4054
+ Disable: 'disable'
4055
+ };
4056
+ /**
4057
+ * @export
4058
+ */
4059
+ exports.PatchSetPrizePromoStateEnum = {
4060
+ Enable: 'enable',
4061
+ Disable: 'disable'
4062
+ };
2055
4063
  /**
2056
4064
  * BillingApi - axios parameter creator
2057
4065
  * @export
@@ -2179,30 +4187,113 @@ var CRMApiAxiosParamCreator = function (configuration) {
2179
4187
  var _this = this;
2180
4188
  return {
2181
4189
  /**
2182
- * Search for contacts by phone number
4190
+ * Get Customer CRM Activities
4191
+ * @param {number} id Account ID
4192
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
4193
+ * @param {number} [userId] Activity Created By
4194
+ * @param {*} [options] Override http request option.
4195
+ * @throws {RequiredError}
4196
+ */
4197
+ getGetCrmActivities: function (id_1, type_1, userId_1) {
4198
+ var args_1 = [];
4199
+ for (var _i = 3; _i < arguments.length; _i++) {
4200
+ args_1[_i - 3] = arguments[_i];
4201
+ }
4202
+ return __awaiter(_this, __spreadArray([id_1, type_1, userId_1], args_1, true), void 0, function (id, type, userId, options) {
4203
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4204
+ if (options === void 0) { options = {}; }
4205
+ return __generator(this, function (_a) {
4206
+ // verify required parameter 'id' is not null or undefined
4207
+ (0, common_1.assertParamExists)('getGetCrmActivities', 'id', id);
4208
+ localVarPath = "/admin/crm/{id}/activities"
4209
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
4210
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4211
+ if (configuration) {
4212
+ baseOptions = configuration.baseOptions;
4213
+ }
4214
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4215
+ localVarHeaderParameter = {};
4216
+ localVarQueryParameter = {};
4217
+ if (type !== undefined) {
4218
+ localVarQueryParameter['type'] = type;
4219
+ }
4220
+ if (userId !== undefined) {
4221
+ localVarQueryParameter['userId'] = userId;
4222
+ }
4223
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4224
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4225
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4226
+ return [2 /*return*/, {
4227
+ url: (0, common_1.toPathString)(localVarUrlObj),
4228
+ options: localVarRequestOptions,
4229
+ }];
4230
+ });
4231
+ });
4232
+ },
4233
+ /**
4234
+ * Search for contacts by phone number
4235
+ * @param {*} [options] Override http request option.
4236
+ * @throws {RequiredError}
4237
+ */
4238
+ getSearchByPhone: function () {
4239
+ var args_1 = [];
4240
+ for (var _i = 0; _i < arguments.length; _i++) {
4241
+ args_1[_i] = arguments[_i];
4242
+ }
4243
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
4244
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4245
+ if (options === void 0) { options = {}; }
4246
+ return __generator(this, function (_a) {
4247
+ localVarPath = "/crm/contact/search";
4248
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4249
+ if (configuration) {
4250
+ baseOptions = configuration.baseOptions;
4251
+ }
4252
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4253
+ localVarHeaderParameter = {};
4254
+ localVarQueryParameter = {};
4255
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4256
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4257
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4258
+ return [2 /*return*/, {
4259
+ url: (0, common_1.toPathString)(localVarUrlObj),
4260
+ options: localVarRequestOptions,
4261
+ }];
4262
+ });
4263
+ });
4264
+ },
4265
+ /**
4266
+ * Create CRM Note
4267
+ * @param {number} id Account ID
4268
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
2183
4269
  * @param {*} [options] Override http request option.
2184
4270
  * @throws {RequiredError}
2185
4271
  */
2186
- getSearchByPhone: function () {
4272
+ postCreateCrmNote: function (id_1, createCrmNoteBody_1) {
2187
4273
  var args_1 = [];
2188
- for (var _i = 0; _i < arguments.length; _i++) {
2189
- args_1[_i] = arguments[_i];
4274
+ for (var _i = 2; _i < arguments.length; _i++) {
4275
+ args_1[_i - 2] = arguments[_i];
2190
4276
  }
2191
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
4277
+ return __awaiter(_this, __spreadArray([id_1, createCrmNoteBody_1], args_1, true), void 0, function (id, createCrmNoteBody, options) {
2192
4278
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2193
4279
  if (options === void 0) { options = {}; }
2194
4280
  return __generator(this, function (_a) {
2195
- localVarPath = "/crm/contact/search";
4281
+ // verify required parameter 'id' is not null or undefined
4282
+ (0, common_1.assertParamExists)('postCreateCrmNote', 'id', id);
4283
+ localVarPath = "/admin/crm/{id}/activities/note"
4284
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2196
4285
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2197
4286
  if (configuration) {
2198
4287
  baseOptions = configuration.baseOptions;
2199
4288
  }
2200
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4289
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2201
4290
  localVarHeaderParameter = {};
2202
4291
  localVarQueryParameter = {};
4292
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2203
4293
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2204
4294
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2205
4295
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4296
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCrmNoteBody, localVarRequestOptions, configuration);
2206
4297
  return [2 /*return*/, {
2207
4298
  url: (0, common_1.toPathString)(localVarUrlObj),
2208
4299
  options: localVarRequestOptions,
@@ -2220,6 +4311,30 @@ exports.CRMApiAxiosParamCreator = CRMApiAxiosParamCreator;
2220
4311
  var CRMApiFp = function (configuration) {
2221
4312
  var localVarAxiosParamCreator = (0, exports.CRMApiAxiosParamCreator)(configuration);
2222
4313
  return {
4314
+ /**
4315
+ * Get Customer CRM Activities
4316
+ * @param {number} id Account ID
4317
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
4318
+ * @param {number} [userId] Activity Created By
4319
+ * @param {*} [options] Override http request option.
4320
+ * @throws {RequiredError}
4321
+ */
4322
+ getGetCrmActivities: function (id, type, userId, options) {
4323
+ return __awaiter(this, void 0, void 0, function () {
4324
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
4325
+ var _a, _b, _c;
4326
+ return __generator(this, function (_d) {
4327
+ switch (_d.label) {
4328
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCrmActivities(id, type, userId, options)];
4329
+ case 1:
4330
+ localVarAxiosArgs = _d.sent();
4331
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4332
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.getGetCrmActivities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4333
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
4334
+ }
4335
+ });
4336
+ });
4337
+ },
2223
4338
  /**
2224
4339
  * Search for contacts by phone number
2225
4340
  * @param {*} [options] Override http request option.
@@ -2241,6 +4356,29 @@ var CRMApiFp = function (configuration) {
2241
4356
  });
2242
4357
  });
2243
4358
  },
4359
+ /**
4360
+ * Create CRM Note
4361
+ * @param {number} id Account ID
4362
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
4363
+ * @param {*} [options] Override http request option.
4364
+ * @throws {RequiredError}
4365
+ */
4366
+ postCreateCrmNote: function (id, createCrmNoteBody, options) {
4367
+ return __awaiter(this, void 0, void 0, function () {
4368
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
4369
+ var _a, _b, _c;
4370
+ return __generator(this, function (_d) {
4371
+ switch (_d.label) {
4372
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateCrmNote(id, createCrmNoteBody, options)];
4373
+ case 1:
4374
+ localVarAxiosArgs = _d.sent();
4375
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4376
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.postCreateCrmNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4377
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
4378
+ }
4379
+ });
4380
+ });
4381
+ },
2244
4382
  };
2245
4383
  };
2246
4384
  exports.CRMApiFp = CRMApiFp;
@@ -2251,6 +4389,17 @@ exports.CRMApiFp = CRMApiFp;
2251
4389
  var CRMApiFactory = function (configuration, basePath, axios) {
2252
4390
  var localVarFp = (0, exports.CRMApiFp)(configuration);
2253
4391
  return {
4392
+ /**
4393
+ * Get Customer CRM Activities
4394
+ * @param {number} id Account ID
4395
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
4396
+ * @param {number} [userId] Activity Created By
4397
+ * @param {*} [options] Override http request option.
4398
+ * @throws {RequiredError}
4399
+ */
4400
+ getGetCrmActivities: function (id, type, userId, options) {
4401
+ return localVarFp.getGetCrmActivities(id, type, userId, options).then(function (request) { return request(axios, basePath); });
4402
+ },
2254
4403
  /**
2255
4404
  * Search for contacts by phone number
2256
4405
  * @param {*} [options] Override http request option.
@@ -2259,6 +4408,16 @@ var CRMApiFactory = function (configuration, basePath, axios) {
2259
4408
  getSearchByPhone: function (options) {
2260
4409
  return localVarFp.getSearchByPhone(options).then(function (request) { return request(axios, basePath); });
2261
4410
  },
4411
+ /**
4412
+ * Create CRM Note
4413
+ * @param {number} id Account ID
4414
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
4415
+ * @param {*} [options] Override http request option.
4416
+ * @throws {RequiredError}
4417
+ */
4418
+ postCreateCrmNote: function (id, createCrmNoteBody, options) {
4419
+ return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(axios, basePath); });
4420
+ },
2262
4421
  };
2263
4422
  };
2264
4423
  exports.CRMApiFactory = CRMApiFactory;
@@ -2273,6 +4432,19 @@ var CRMApi = /** @class */ (function (_super) {
2273
4432
  function CRMApi() {
2274
4433
  return _super !== null && _super.apply(this, arguments) || this;
2275
4434
  }
4435
+ /**
4436
+ * Get Customer CRM Activities
4437
+ * @param {number} id Account ID
4438
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
4439
+ * @param {number} [userId] Activity Created By
4440
+ * @param {*} [options] Override http request option.
4441
+ * @throws {RequiredError}
4442
+ * @memberof CRMApi
4443
+ */
4444
+ CRMApi.prototype.getGetCrmActivities = function (id, type, userId, options) {
4445
+ var _this = this;
4446
+ return (0, exports.CRMApiFp)(this.configuration).getGetCrmActivities(id, type, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4447
+ };
2276
4448
  /**
2277
4449
  * Search for contacts by phone number
2278
4450
  * @param {*} [options] Override http request option.
@@ -2283,9 +4455,33 @@ var CRMApi = /** @class */ (function (_super) {
2283
4455
  var _this = this;
2284
4456
  return (0, exports.CRMApiFp)(this.configuration).getSearchByPhone(options).then(function (request) { return request(_this.axios, _this.basePath); });
2285
4457
  };
4458
+ /**
4459
+ * Create CRM Note
4460
+ * @param {number} id Account ID
4461
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
4462
+ * @param {*} [options] Override http request option.
4463
+ * @throws {RequiredError}
4464
+ * @memberof CRMApi
4465
+ */
4466
+ CRMApi.prototype.postCreateCrmNote = function (id, createCrmNoteBody, options) {
4467
+ var _this = this;
4468
+ return (0, exports.CRMApiFp)(this.configuration).postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
4469
+ };
2286
4470
  return CRMApi;
2287
4471
  }(base_1.BaseAPI));
2288
4472
  exports.CRMApi = CRMApi;
4473
+ /**
4474
+ * @export
4475
+ */
4476
+ exports.GetGetCrmActivitiesTypeEnum = {
4477
+ Alert: 'alert',
4478
+ Call: 'call',
4479
+ Email: 'email',
4480
+ Note: 'note',
4481
+ Order: 'order',
4482
+ Quote: 'quote',
4483
+ TcxOrder: 'tcx_order'
4484
+ };
2289
4485
  /**
2290
4486
  * Class3CXApi - axios parameter creator
2291
4487
  * @export
@@ -2332,6 +4528,39 @@ var Class3CXApiAxiosParamCreator = function (configuration) {
2332
4528
  });
2333
4529
  });
2334
4530
  },
4531
+ /**
4532
+ * Get 3CX Expiring Keys
4533
+ * @summary Get 3CX Expiring Keys
4534
+ * @param {*} [options] Override http request option.
4535
+ * @throws {RequiredError}
4536
+ */
4537
+ getGetTcxExpiringKeys: function () {
4538
+ var args_1 = [];
4539
+ for (var _i = 0; _i < arguments.length; _i++) {
4540
+ args_1[_i] = arguments[_i];
4541
+ }
4542
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
4543
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4544
+ if (options === void 0) { options = {}; }
4545
+ return __generator(this, function (_a) {
4546
+ localVarPath = "/tcx/admin/keys/expiring/csv";
4547
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4548
+ if (configuration) {
4549
+ baseOptions = configuration.baseOptions;
4550
+ }
4551
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4552
+ localVarHeaderParameter = {};
4553
+ localVarQueryParameter = {};
4554
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4555
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4556
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4557
+ return [2 /*return*/, {
4558
+ url: (0, common_1.toPathString)(localVarUrlObj),
4559
+ options: localVarRequestOptions,
4560
+ }];
4561
+ });
4562
+ });
4563
+ },
2335
4564
  /**
2336
4565
  * Get Bulk 3CX Licence Details
2337
4566
  * @summary Get bulk 3CX Licence Details
@@ -2401,6 +4630,28 @@ var Class3CXApiFp = function (configuration) {
2401
4630
  });
2402
4631
  });
2403
4632
  },
4633
+ /**
4634
+ * Get 3CX Expiring Keys
4635
+ * @summary Get 3CX Expiring Keys
4636
+ * @param {*} [options] Override http request option.
4637
+ * @throws {RequiredError}
4638
+ */
4639
+ getGetTcxExpiringKeys: function (options) {
4640
+ return __awaiter(this, void 0, void 0, function () {
4641
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
4642
+ var _a, _b, _c;
4643
+ return __generator(this, function (_d) {
4644
+ switch (_d.label) {
4645
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxExpiringKeys(options)];
4646
+ case 1:
4647
+ localVarAxiosArgs = _d.sent();
4648
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4649
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXApi.getGetTcxExpiringKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4650
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
4651
+ }
4652
+ });
4653
+ });
4654
+ },
2404
4655
  /**
2405
4656
  * Get Bulk 3CX Licence Details
2406
4657
  * @summary Get bulk 3CX Licence Details
@@ -2444,6 +4695,15 @@ var Class3CXApiFactory = function (configuration, basePath, axios) {
2444
4695
  getGetLicenceDetails: function (key, options) {
2445
4696
  return localVarFp.getGetLicenceDetails(key, options).then(function (request) { return request(axios, basePath); });
2446
4697
  },
4698
+ /**
4699
+ * Get 3CX Expiring Keys
4700
+ * @summary Get 3CX Expiring Keys
4701
+ * @param {*} [options] Override http request option.
4702
+ * @throws {RequiredError}
4703
+ */
4704
+ getGetTcxExpiringKeys: function (options) {
4705
+ return localVarFp.getGetTcxExpiringKeys(options).then(function (request) { return request(axios, basePath); });
4706
+ },
2447
4707
  /**
2448
4708
  * Get Bulk 3CX Licence Details
2449
4709
  * @summary Get bulk 3CX Licence Details
@@ -2480,6 +4740,17 @@ var Class3CXApi = /** @class */ (function (_super) {
2480
4740
  var _this = this;
2481
4741
  return (0, exports.Class3CXApiFp)(this.configuration).getGetLicenceDetails(key, options).then(function (request) { return request(_this.axios, _this.basePath); });
2482
4742
  };
4743
+ /**
4744
+ * Get 3CX Expiring Keys
4745
+ * @summary Get 3CX Expiring Keys
4746
+ * @param {*} [options] Override http request option.
4747
+ * @throws {RequiredError}
4748
+ * @memberof Class3CXApi
4749
+ */
4750
+ Class3CXApi.prototype.getGetTcxExpiringKeys = function (options) {
4751
+ var _this = this;
4752
+ return (0, exports.Class3CXApiFp)(this.configuration).getGetTcxExpiringKeys(options).then(function (request) { return request(_this.axios, _this.basePath); });
4753
+ };
2483
4754
  /**
2484
4755
  * Get Bulk 3CX Licence Details
2485
4756
  * @summary Get bulk 3CX Licence Details
@@ -5462,6 +7733,43 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
5462
7733
  });
5463
7734
  });
5464
7735
  },
7736
+ /**
7737
+ * Get Recording Backup Storage
7738
+ * @summary Get Recording Backup Storage
7739
+ * @param {string} instanceId Instance ID
7740
+ * @param {*} [options] Override http request option.
7741
+ * @throws {RequiredError}
7742
+ */
7743
+ getGetRecordingBackupStorage: function (instanceId_1) {
7744
+ var args_1 = [];
7745
+ for (var _i = 1; _i < arguments.length; _i++) {
7746
+ args_1[_i - 1] = arguments[_i];
7747
+ }
7748
+ return __awaiter(_this, __spreadArray([instanceId_1], args_1, true), void 0, function (instanceId, options) {
7749
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7750
+ if (options === void 0) { options = {}; }
7751
+ return __generator(this, function (_a) {
7752
+ // verify required parameter 'instanceId' is not null or undefined
7753
+ (0, common_1.assertParamExists)('getGetRecordingBackupStorage', 'instanceId', instanceId);
7754
+ localVarPath = "/tcx/installations/{instance_id}/recordings/backup"
7755
+ .replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
7756
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7757
+ if (configuration) {
7758
+ baseOptions = configuration.baseOptions;
7759
+ }
7760
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
7761
+ localVarHeaderParameter = {};
7762
+ localVarQueryParameter = {};
7763
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7764
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7765
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7766
+ return [2 /*return*/, {
7767
+ url: (0, common_1.toPathString)(localVarUrlObj),
7768
+ options: localVarRequestOptions,
7769
+ }];
7770
+ });
7771
+ });
7772
+ },
5465
7773
  /**
5466
7774
  * Change instance owner
5467
7775
  * @summary Change instance owner
@@ -6230,6 +8538,29 @@ var Class3CXInstallationsApiFp = function (configuration) {
6230
8538
  });
6231
8539
  });
6232
8540
  },
8541
+ /**
8542
+ * Get Recording Backup Storage
8543
+ * @summary Get Recording Backup Storage
8544
+ * @param {string} instanceId Instance ID
8545
+ * @param {*} [options] Override http request option.
8546
+ * @throws {RequiredError}
8547
+ */
8548
+ getGetRecordingBackupStorage: function (instanceId, options) {
8549
+ return __awaiter(this, void 0, void 0, function () {
8550
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8551
+ var _a, _b, _c;
8552
+ return __generator(this, function (_d) {
8553
+ switch (_d.label) {
8554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetRecordingBackupStorage(instanceId, options)];
8555
+ case 1:
8556
+ localVarAxiosArgs = _d.sent();
8557
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8558
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.getGetRecordingBackupStorage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8559
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8560
+ }
8561
+ });
8562
+ });
8563
+ },
6233
8564
  /**
6234
8565
  * Change instance owner
6235
8566
  * @summary Change instance owner
@@ -6672,6 +9003,16 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
6672
9003
  getGetInstallations: function (pageSize, page, customerId, search, status, hosting, installType, options) {
6673
9004
  return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(axios, basePath); });
6674
9005
  },
9006
+ /**
9007
+ * Get Recording Backup Storage
9008
+ * @summary Get Recording Backup Storage
9009
+ * @param {string} instanceId Instance ID
9010
+ * @param {*} [options] Override http request option.
9011
+ * @throws {RequiredError}
9012
+ */
9013
+ getGetRecordingBackupStorage: function (instanceId, options) {
9014
+ return localVarFp.getGetRecordingBackupStorage(instanceId, options).then(function (request) { return request(axios, basePath); });
9015
+ },
6675
9016
  /**
6676
9017
  * Change instance owner
6677
9018
  * @summary Change instance owner
@@ -6901,6 +9242,18 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
6901
9242
  var _this = this;
6902
9243
  return (0, exports.Class3CXInstallationsApiFp)(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(_this.axios, _this.basePath); });
6903
9244
  };
9245
+ /**
9246
+ * Get Recording Backup Storage
9247
+ * @summary Get Recording Backup Storage
9248
+ * @param {string} instanceId Instance ID
9249
+ * @param {*} [options] Override http request option.
9250
+ * @throws {RequiredError}
9251
+ * @memberof Class3CXInstallationsApi
9252
+ */
9253
+ Class3CXInstallationsApi.prototype.getGetRecordingBackupStorage = function (instanceId, options) {
9254
+ var _this = this;
9255
+ return (0, exports.Class3CXInstallationsApiFp)(this.configuration).getGetRecordingBackupStorage(instanceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9256
+ };
6904
9257
  /**
6905
9258
  * Change instance owner
6906
9259
  * @summary Change instance owner
@@ -8871,23 +11224,23 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
8871
11224
  /**
8872
11225
  *
8873
11226
  * @param {number} id Number Port ID
8874
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
11227
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
8875
11228
  * @param {*} [options] Override http request option.
8876
11229
  * @throws {RequiredError}
8877
11230
  */
8878
- postAddAdminNote: function (id_1, postAddAdminNoteRequest_1) {
11231
+ postAddAdminNote: function (id_1, numberPortAdminNoteBody_1) {
8879
11232
  var args_1 = [];
8880
11233
  for (var _i = 2; _i < arguments.length; _i++) {
8881
11234
  args_1[_i - 2] = arguments[_i];
8882
11235
  }
8883
- return __awaiter(_this, __spreadArray([id_1, postAddAdminNoteRequest_1], args_1, true), void 0, function (id, postAddAdminNoteRequest, options) {
11236
+ return __awaiter(_this, __spreadArray([id_1, numberPortAdminNoteBody_1], args_1, true), void 0, function (id, numberPortAdminNoteBody, options) {
8884
11237
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8885
11238
  if (options === void 0) { options = {}; }
8886
11239
  return __generator(this, function (_a) {
8887
11240
  // verify required parameter 'id' is not null or undefined
8888
11241
  (0, common_1.assertParamExists)('postAddAdminNote', 'id', id);
8889
- // verify required parameter 'postAddAdminNoteRequest' is not null or undefined
8890
- (0, common_1.assertParamExists)('postAddAdminNote', 'postAddAdminNoteRequest', postAddAdminNoteRequest);
11242
+ // verify required parameter 'numberPortAdminNoteBody' is not null or undefined
11243
+ (0, common_1.assertParamExists)('postAddAdminNote', 'numberPortAdminNoteBody', numberPortAdminNoteBody);
8891
11244
  localVarPath = "/admin/sip/numbers/ports/{id}/notes"
8892
11245
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8893
11246
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -8901,7 +11254,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
8901
11254
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8902
11255
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8903
11256
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8904
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postAddAdminNoteRequest, localVarRequestOptions, configuration);
11257
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(numberPortAdminNoteBody, localVarRequestOptions, configuration);
8905
11258
  return [2 /*return*/, {
8906
11259
  url: (0, common_1.toPathString)(localVarUrlObj),
8907
11260
  options: localVarRequestOptions,
@@ -9378,17 +11731,17 @@ var NumberPortingApiFp = function (configuration) {
9378
11731
  /**
9379
11732
  *
9380
11733
  * @param {number} id Number Port ID
9381
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
11734
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
9382
11735
  * @param {*} [options] Override http request option.
9383
11736
  * @throws {RequiredError}
9384
11737
  */
9385
- postAddAdminNote: function (id, postAddAdminNoteRequest, options) {
11738
+ postAddAdminNote: function (id, numberPortAdminNoteBody, options) {
9386
11739
  return __awaiter(this, void 0, void 0, function () {
9387
11740
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9388
11741
  var _a, _b, _c;
9389
11742
  return __generator(this, function (_d) {
9390
11743
  switch (_d.label) {
9391
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, postAddAdminNoteRequest, options)];
11744
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, numberPortAdminNoteBody, options)];
9392
11745
  case 1:
9393
11746
  localVarAxiosArgs = _d.sent();
9394
11747
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -9602,12 +11955,12 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
9602
11955
  /**
9603
11956
  *
9604
11957
  * @param {number} id Number Port ID
9605
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
11958
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
9606
11959
  * @param {*} [options] Override http request option.
9607
11960
  * @throws {RequiredError}
9608
11961
  */
9609
- postAddAdminNote: function (id, postAddAdminNoteRequest, options) {
9610
- return localVarFp.postAddAdminNote(id, postAddAdminNoteRequest, options).then(function (request) { return request(axios, basePath); });
11962
+ postAddAdminNote: function (id, numberPortAdminNoteBody, options) {
11963
+ return localVarFp.postAddAdminNote(id, numberPortAdminNoteBody, options).then(function (request) { return request(axios, basePath); });
9611
11964
  },
9612
11965
  /**
9613
11966
  *
@@ -9779,14 +12132,14 @@ var NumberPortingApi = /** @class */ (function (_super) {
9779
12132
  /**
9780
12133
  *
9781
12134
  * @param {number} id Number Port ID
9782
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
12135
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
9783
12136
  * @param {*} [options] Override http request option.
9784
12137
  * @throws {RequiredError}
9785
12138
  * @memberof NumberPortingApi
9786
12139
  */
9787
- NumberPortingApi.prototype.postAddAdminNote = function (id, postAddAdminNoteRequest, options) {
12140
+ NumberPortingApi.prototype.postAddAdminNote = function (id, numberPortAdminNoteBody, options) {
9788
12141
  var _this = this;
9789
- return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, postAddAdminNoteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
12142
+ return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, numberPortAdminNoteBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
9790
12143
  };
9791
12144
  /**
9792
12145
  *
@@ -10128,6 +12481,38 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
10128
12481
  });
10129
12482
  });
10130
12483
  },
12484
+ /**
12485
+ * Remove Oauth 2.0 Cookies
12486
+ * @param {*} [options] Override http request option.
12487
+ * @throws {RequiredError}
12488
+ */
12489
+ postLogout: function () {
12490
+ var args_1 = [];
12491
+ for (var _i = 0; _i < arguments.length; _i++) {
12492
+ args_1[_i] = arguments[_i];
12493
+ }
12494
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
12495
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12496
+ if (options === void 0) { options = {}; }
12497
+ return __generator(this, function (_a) {
12498
+ localVarPath = "/oauth2/logout";
12499
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12500
+ if (configuration) {
12501
+ baseOptions = configuration.baseOptions;
12502
+ }
12503
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12504
+ localVarHeaderParameter = {};
12505
+ localVarQueryParameter = {};
12506
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12507
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12508
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12509
+ return [2 /*return*/, {
12510
+ url: (0, common_1.toPathString)(localVarUrlObj),
12511
+ options: localVarRequestOptions,
12512
+ }];
12513
+ });
12514
+ });
12515
+ },
10131
12516
  /**
10132
12517
  * Portal Login
10133
12518
  * @summary Portal Login
@@ -10303,6 +12688,27 @@ var OAuth20ApiFp = function (configuration) {
10303
12688
  });
10304
12689
  });
10305
12690
  },
12691
+ /**
12692
+ * Remove Oauth 2.0 Cookies
12693
+ * @param {*} [options] Override http request option.
12694
+ * @throws {RequiredError}
12695
+ */
12696
+ postLogout: function (options) {
12697
+ return __awaiter(this, void 0, void 0, function () {
12698
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12699
+ var _a, _b, _c;
12700
+ return __generator(this, function (_d) {
12701
+ switch (_d.label) {
12702
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postLogout(options)];
12703
+ case 1:
12704
+ localVarAxiosArgs = _d.sent();
12705
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12706
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postLogout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12707
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12708
+ }
12709
+ });
12710
+ });
12711
+ },
10306
12712
  /**
10307
12713
  * Portal Login
10308
12714
  * @summary Portal Login
@@ -10400,6 +12806,14 @@ var OAuth20ApiFactory = function (configuration, basePath, axios) {
10400
12806
  postGetIdentity: function (options) {
10401
12807
  return localVarFp.postGetIdentity(options).then(function (request) { return request(axios, basePath); });
10402
12808
  },
12809
+ /**
12810
+ * Remove Oauth 2.0 Cookies
12811
+ * @param {*} [options] Override http request option.
12812
+ * @throws {RequiredError}
12813
+ */
12814
+ postLogout: function (options) {
12815
+ return localVarFp.postLogout(options).then(function (request) { return request(axios, basePath); });
12816
+ },
10403
12817
  /**
10404
12818
  * Portal Login
10405
12819
  * @summary Portal Login
@@ -10498,6 +12912,16 @@ var OAuth20Api = /** @class */ (function (_super) {
10498
12912
  var _this = this;
10499
12913
  return (0, exports.OAuth20ApiFp)(this.configuration).postGetIdentity(options).then(function (request) { return request(_this.axios, _this.basePath); });
10500
12914
  };
12915
+ /**
12916
+ * Remove Oauth 2.0 Cookies
12917
+ * @param {*} [options] Override http request option.
12918
+ * @throws {RequiredError}
12919
+ * @memberof OAuth20Api
12920
+ */
12921
+ OAuth20Api.prototype.postLogout = function (options) {
12922
+ var _this = this;
12923
+ return (0, exports.OAuth20ApiFp)(this.configuration).postLogout(options).then(function (request) { return request(_this.axios, _this.basePath); });
12924
+ };
10501
12925
  /**
10502
12926
  * Portal Login
10503
12927
  * @summary Portal Login
@@ -14168,23 +16592,21 @@ var ProductsApiAxiosParamCreator = function (configuration) {
14168
16592
  * Get Product
14169
16593
  * @summary Get Product
14170
16594
  * @param {string} sku Product SKU
14171
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
16595
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
14172
16596
  * @param {*} [options] Override http request option.
14173
16597
  * @throws {RequiredError}
14174
16598
  */
14175
- postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
16599
+ postGetProduct: function (sku_1, productSearchDTO_1) {
14176
16600
  var args_1 = [];
14177
16601
  for (var _i = 2; _i < arguments.length; _i++) {
14178
16602
  args_1[_i - 2] = arguments[_i];
14179
16603
  }
14180
- return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
16604
+ return __awaiter(_this, __spreadArray([sku_1, productSearchDTO_1], args_1, true), void 0, function (sku, productSearchDTO, options) {
14181
16605
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14182
16606
  if (options === void 0) { options = {}; }
14183
16607
  return __generator(this, function (_a) {
14184
16608
  // verify required parameter 'sku' is not null or undefined
14185
16609
  (0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
14186
- // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
14187
- (0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
14188
16610
  localVarPath = "/products/{sku}"
14189
16611
  .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
14190
16612
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -14198,7 +16620,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
14198
16620
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14199
16621
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14200
16622
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14201
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
16623
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(productSearchDTO, localVarRequestOptions, configuration);
14202
16624
  return [2 /*return*/, {
14203
16625
  url: (0, common_1.toPathString)(localVarUrlObj),
14204
16626
  options: localVarRequestOptions,
@@ -14211,16 +16633,16 @@ var ProductsApiAxiosParamCreator = function (configuration) {
14211
16633
  * @summary Get Product For Customer
14212
16634
  * @param {number} customerId Customer ID
14213
16635
  * @param {string} sku Product SKU
14214
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
16636
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
14215
16637
  * @param {*} [options] Override http request option.
14216
16638
  * @throws {RequiredError}
14217
16639
  */
14218
- postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1) {
16640
+ postGetProductForCustomer: function (customerId_1, sku_1, productSearchDTO_1) {
14219
16641
  var args_1 = [];
14220
16642
  for (var _i = 3; _i < arguments.length; _i++) {
14221
16643
  args_1[_i - 3] = arguments[_i];
14222
16644
  }
14223
- return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, options) {
16645
+ return __awaiter(_this, __spreadArray([customerId_1, sku_1, productSearchDTO_1], args_1, true), void 0, function (customerId, sku, productSearchDTO, options) {
14224
16646
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14225
16647
  if (options === void 0) { options = {}; }
14226
16648
  return __generator(this, function (_a) {
@@ -14228,8 +16650,6 @@ var ProductsApiAxiosParamCreator = function (configuration) {
14228
16650
  (0, common_1.assertParamExists)('postGetProductForCustomer', 'customerId', customerId);
14229
16651
  // verify required parameter 'sku' is not null or undefined
14230
16652
  (0, common_1.assertParamExists)('postGetProductForCustomer', 'sku', sku);
14231
- // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
14232
- (0, common_1.assertParamExists)('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
14233
16653
  localVarPath = "/admin/products/{sku}"
14234
16654
  .replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
14235
16655
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -14246,7 +16666,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
14246
16666
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14247
16667
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14248
16668
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14249
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
16669
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(productSearchDTO, localVarRequestOptions, configuration);
14250
16670
  return [2 /*return*/, {
14251
16671
  url: (0, common_1.toPathString)(localVarUrlObj),
14252
16672
  options: localVarRequestOptions,
@@ -14451,17 +16871,17 @@ var ProductsApiFp = function (configuration) {
14451
16871
  * Get Product
14452
16872
  * @summary Get Product
14453
16873
  * @param {string} sku Product SKU
14454
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
16874
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
14455
16875
  * @param {*} [options] Override http request option.
14456
16876
  * @throws {RequiredError}
14457
16877
  */
14458
- postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
16878
+ postGetProduct: function (sku, productSearchDTO, options) {
14459
16879
  return __awaiter(this, void 0, void 0, function () {
14460
16880
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
14461
16881
  var _a, _b, _c;
14462
16882
  return __generator(this, function (_d) {
14463
16883
  switch (_d.label) {
14464
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
16884
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, productSearchDTO, options)];
14465
16885
  case 1:
14466
16886
  localVarAxiosArgs = _d.sent();
14467
16887
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -14476,17 +16896,17 @@ var ProductsApiFp = function (configuration) {
14476
16896
  * @summary Get Product For Customer
14477
16897
  * @param {number} customerId Customer ID
14478
16898
  * @param {string} sku Product SKU
14479
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
16899
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
14480
16900
  * @param {*} [options] Override http request option.
14481
16901
  * @throws {RequiredError}
14482
16902
  */
14483
- postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
16903
+ postGetProductForCustomer: function (customerId, sku, productSearchDTO, options) {
14484
16904
  return __awaiter(this, void 0, void 0, function () {
14485
16905
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
14486
16906
  var _a, _b, _c;
14487
16907
  return __generator(this, function (_d) {
14488
16908
  switch (_d.label) {
14489
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options)];
16909
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, productSearchDTO, options)];
14490
16910
  case 1:
14491
16911
  localVarAxiosArgs = _d.sent();
14492
16912
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -14589,24 +17009,24 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
14589
17009
  * Get Product
14590
17010
  * @summary Get Product
14591
17011
  * @param {string} sku Product SKU
14592
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17012
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
14593
17013
  * @param {*} [options] Override http request option.
14594
17014
  * @throws {RequiredError}
14595
17015
  */
14596
- postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
14597
- return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
17016
+ postGetProduct: function (sku, productSearchDTO, options) {
17017
+ return localVarFp.postGetProduct(sku, productSearchDTO, options).then(function (request) { return request(axios, basePath); });
14598
17018
  },
14599
17019
  /**
14600
17020
  * Get Product For Customer
14601
17021
  * @summary Get Product For Customer
14602
17022
  * @param {number} customerId Customer ID
14603
17023
  * @param {string} sku Product SKU
14604
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17024
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
14605
17025
  * @param {*} [options] Override http request option.
14606
17026
  * @throws {RequiredError}
14607
17027
  */
14608
- postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
14609
- return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
17028
+ postGetProductForCustomer: function (customerId, sku, productSearchDTO, options) {
17029
+ return localVarFp.postGetProductForCustomer(customerId, sku, productSearchDTO, options).then(function (request) { return request(axios, basePath); });
14610
17030
  },
14611
17031
  };
14612
17032
  };
@@ -14721,28 +17141,28 @@ var ProductsApi = /** @class */ (function (_super) {
14721
17141
  * Get Product
14722
17142
  * @summary Get Product
14723
17143
  * @param {string} sku Product SKU
14724
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17144
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
14725
17145
  * @param {*} [options] Override http request option.
14726
17146
  * @throws {RequiredError}
14727
17147
  * @memberof ProductsApi
14728
17148
  */
14729
- ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
17149
+ ProductsApi.prototype.postGetProduct = function (sku, productSearchDTO, options) {
14730
17150
  var _this = this;
14731
- return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
17151
+ return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, productSearchDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
14732
17152
  };
14733
17153
  /**
14734
17154
  * Get Product For Customer
14735
17155
  * @summary Get Product For Customer
14736
17156
  * @param {number} customerId Customer ID
14737
17157
  * @param {string} sku Product SKU
14738
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17158
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
14739
17159
  * @param {*} [options] Override http request option.
14740
17160
  * @throws {RequiredError}
14741
17161
  * @memberof ProductsApi
14742
17162
  */
14743
- ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
17163
+ ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, productSearchDTO, options) {
14744
17164
  var _this = this;
14745
- return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
17165
+ return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, productSearchDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
14746
17166
  };
14747
17167
  return ProductsApi;
14748
17168
  }(base_1.BaseAPI));