yellowgrid-api-ts 3.2.132 → 3.2.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +21 -2
- package/README.md +45 -2
- package/api.ts +2184 -128
- package/dist/api.d.ts +1175 -28
- package/dist/api.js +2244 -219
- package/dist/models/HostingPriceListEnum.d.ts +28 -0
- package/dist/models/HostingPriceListEnum.js +30 -0
- package/docs/AccountAddressesDTO.md +25 -0
- package/docs/AccountFinanceDTO.md +37 -0
- package/docs/AccountsApi.md +1331 -53
- package/docs/AddressDTO.md +31 -0
- package/docs/AdminUserModel.md +2 -0
- package/docs/CRMApi.md +120 -0
- package/docs/{PostAddAdminNoteRequest.md → CreateCrmNoteBody.md} +3 -3
- package/docs/CreditAccountEntity.md +4 -0
- package/docs/CrmActivitiesResponseDTO.md +23 -0
- package/docs/CrmActivityDTO.md +33 -0
- package/docs/CrmDateActivitiesDTO.md +23 -0
- package/docs/CrmNoteEntity.md +39 -0
- package/docs/CrmNoteModel.md +39 -0
- package/docs/NumberPortAdminNoteBody.md +20 -0
- package/docs/NumberPortingApi.md +5 -5
- package/docs/PartnerDTO.md +39 -0
- package/docs/{PatchSetTcxWizardCnameRequest.md → PatchUpdateAccountCnameRequest.md} +3 -3
- package/docs/PatchUpdateAccountCompanyNumberRequest.md +20 -0
- package/docs/PatchUpdateAccountPhoneRequest.md +20 -0
- package/docs/PatchUpdateAccountVatNumberRequest.md +20 -0
- package/docs/PatchUpdateCreditLimitRequest.md +20 -0
- package/docs/PatchUpdatePriceListRequest.md +20 -0
- package/docs/PatchUpdateSipChannelCostRequest.md +20 -0
- package/docs/PatchUpdateTcxHostingPriceListRequest.md +20 -0
- package/docs/PatchUpdateTcxPartnerIdRequest.md +20 -0
- package/docs/PortalAccountModel.md +4 -2
- package/docs/PostSendWelcomeEmailRequest.md +20 -0
- package/docs/ProspectDTO.md +2 -0
- package/models/HostingPriceListEnum.ts +29 -0
- 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.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
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
|
|
@@ -125,6 +125,7 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
125
125
|
ApiLog: 'api_log',
|
|
126
126
|
PopsBatches: 'pops_batches',
|
|
127
127
|
PopsCourierPrices: 'pops_courier_prices',
|
|
128
|
+
PopsCrmNotes: 'pops_crm_notes',
|
|
128
129
|
PopsCreditAccounts: 'pops_credit_accounts',
|
|
129
130
|
PopsCreditNotes: 'pops_credit_notes',
|
|
130
131
|
PopsCreditNotesItems: 'pops_credit_notes_items',
|
|
@@ -283,12 +284,29 @@ exports.OrderTotalModelCurrencyEnum = {
|
|
|
283
284
|
Thb: 'THB',
|
|
284
285
|
Zar: 'ZAR',
|
|
285
286
|
};
|
|
287
|
+
exports.PatchUpdatePriceListRequestPriceListEnum = {
|
|
288
|
+
Rrp: 'RRP',
|
|
289
|
+
Trade: 'Trade',
|
|
290
|
+
Wholesale: 'Wholesale',
|
|
291
|
+
Itsp: 'ITSP',
|
|
292
|
+
SubDisti: 'Sub Disti',
|
|
293
|
+
Distributor: 'Distributor',
|
|
294
|
+
HotelDisti: 'Hotel Disti',
|
|
295
|
+
};
|
|
296
|
+
exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = {
|
|
297
|
+
_1: '1',
|
|
298
|
+
_2: '2',
|
|
299
|
+
_3: '3',
|
|
300
|
+
_4: '4',
|
|
301
|
+
_5: '5',
|
|
302
|
+
};
|
|
286
303
|
exports.ProspectDTOStatusEnum = {
|
|
287
304
|
NoCallBackSet: 'No Call Back Set',
|
|
288
305
|
CallBackDue: 'Call Back Due',
|
|
289
306
|
NoOrdersPlaced: 'No Orders Placed',
|
|
290
307
|
NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
|
|
291
308
|
NoActionRequired: 'No Action Required',
|
|
309
|
+
DoNotCall: 'Do Not Call',
|
|
292
310
|
};
|
|
293
311
|
exports.ServiceHealthDTOGlobalStatusEnum = {
|
|
294
312
|
NUMBER_0: 0,
|
|
@@ -439,6 +457,82 @@ exports.UpgradeRequestModelSchoolTypeEnum = {
|
|
|
439
457
|
var AccountsApiAxiosParamCreator = function (configuration) {
|
|
440
458
|
var _this = this;
|
|
441
459
|
return {
|
|
460
|
+
/**
|
|
461
|
+
* Delete Account Contact
|
|
462
|
+
* @param {string} id Account Xero ID
|
|
463
|
+
* @param {number} contactId Contact ID
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
*/
|
|
467
|
+
deleteAdminUpdateAccountContact: function (id_1, contactId_1) {
|
|
468
|
+
var args_1 = [];
|
|
469
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
470
|
+
args_1[_i - 2] = arguments[_i];
|
|
471
|
+
}
|
|
472
|
+
return __awaiter(_this, __spreadArray([id_1, contactId_1], args_1, true), void 0, function (id, contactId, options) {
|
|
473
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
474
|
+
if (options === void 0) { options = {}; }
|
|
475
|
+
return __generator(this, function (_a) {
|
|
476
|
+
// verify required parameter 'id' is not null or undefined
|
|
477
|
+
(0, common_1.assertParamExists)('deleteAdminUpdateAccountContact', 'id', id);
|
|
478
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
479
|
+
(0, common_1.assertParamExists)('deleteAdminUpdateAccountContact', 'contactId', contactId);
|
|
480
|
+
localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
|
|
481
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
482
|
+
.replace('{contact_id}', encodeURIComponent(String(contactId)));
|
|
483
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
484
|
+
if (configuration) {
|
|
485
|
+
baseOptions = configuration.baseOptions;
|
|
486
|
+
}
|
|
487
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
488
|
+
localVarHeaderParameter = {};
|
|
489
|
+
localVarQueryParameter = {};
|
|
490
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
491
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
492
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
493
|
+
return [2 /*return*/, {
|
|
494
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
495
|
+
options: localVarRequestOptions,
|
|
496
|
+
}];
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
},
|
|
500
|
+
/**
|
|
501
|
+
* Delete Account
|
|
502
|
+
* @param {string} id Account Xero ID
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
*/
|
|
506
|
+
deleteArchiveAccount: function (id_1) {
|
|
507
|
+
var args_1 = [];
|
|
508
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
509
|
+
args_1[_i - 1] = arguments[_i];
|
|
510
|
+
}
|
|
511
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
512
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
513
|
+
if (options === void 0) { options = {}; }
|
|
514
|
+
return __generator(this, function (_a) {
|
|
515
|
+
// verify required parameter 'id' is not null or undefined
|
|
516
|
+
(0, common_1.assertParamExists)('deleteArchiveAccount', 'id', id);
|
|
517
|
+
localVarPath = "/admin/accounts/{id}/archive"
|
|
518
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
519
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
520
|
+
if (configuration) {
|
|
521
|
+
baseOptions = configuration.baseOptions;
|
|
522
|
+
}
|
|
523
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
524
|
+
localVarHeaderParameter = {};
|
|
525
|
+
localVarQueryParameter = {};
|
|
526
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
527
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
528
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
529
|
+
return [2 /*return*/, {
|
|
530
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
531
|
+
options: localVarRequestOptions,
|
|
532
|
+
}];
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
},
|
|
442
536
|
/**
|
|
443
537
|
* Delete client credentials
|
|
444
538
|
* @summary Delete client credentials
|
|
@@ -513,6 +607,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
513
607
|
});
|
|
514
608
|
});
|
|
515
609
|
},
|
|
610
|
+
/**
|
|
611
|
+
* Get Account Contacts
|
|
612
|
+
* @param {string} id Account Xero ID
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
getAdminCreateAccountContact: function (id_1) {
|
|
617
|
+
var args_1 = [];
|
|
618
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
619
|
+
args_1[_i - 1] = arguments[_i];
|
|
620
|
+
}
|
|
621
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
622
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
623
|
+
if (options === void 0) { options = {}; }
|
|
624
|
+
return __generator(this, function (_a) {
|
|
625
|
+
// verify required parameter 'id' is not null or undefined
|
|
626
|
+
(0, common_1.assertParamExists)('getAdminCreateAccountContact', 'id', id);
|
|
627
|
+
localVarPath = "/admin/accounts/{id}/contacts"
|
|
628
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
629
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
630
|
+
if (configuration) {
|
|
631
|
+
baseOptions = configuration.baseOptions;
|
|
632
|
+
}
|
|
633
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
634
|
+
localVarHeaderParameter = {};
|
|
635
|
+
localVarQueryParameter = {};
|
|
636
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
637
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
638
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
639
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
640
|
+
return [2 /*return*/, {
|
|
641
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
642
|
+
options: localVarRequestOptions,
|
|
643
|
+
}];
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
},
|
|
516
647
|
/**
|
|
517
648
|
* Get Account
|
|
518
649
|
* @summary Get Account
|
|
@@ -547,6 +678,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
547
678
|
});
|
|
548
679
|
});
|
|
549
680
|
},
|
|
681
|
+
/**
|
|
682
|
+
* Get Account Addresses
|
|
683
|
+
* @param {string} id Xero ID
|
|
684
|
+
* @param {*} [options] Override http request option.
|
|
685
|
+
* @throws {RequiredError}
|
|
686
|
+
*/
|
|
687
|
+
getGetAccountAddresses: function (id_1) {
|
|
688
|
+
var args_1 = [];
|
|
689
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
690
|
+
args_1[_i - 1] = arguments[_i];
|
|
691
|
+
}
|
|
692
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
693
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
694
|
+
if (options === void 0) { options = {}; }
|
|
695
|
+
return __generator(this, function (_a) {
|
|
696
|
+
// verify required parameter 'id' is not null or undefined
|
|
697
|
+
(0, common_1.assertParamExists)('getGetAccountAddresses', 'id', id);
|
|
698
|
+
localVarPath = "/admin/accounts/{id}/addresses"
|
|
699
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
700
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
701
|
+
if (configuration) {
|
|
702
|
+
baseOptions = configuration.baseOptions;
|
|
703
|
+
}
|
|
704
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
705
|
+
localVarHeaderParameter = {};
|
|
706
|
+
localVarQueryParameter = {};
|
|
707
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
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
|
|
@@ -742,24 +910,24 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
742
910
|
});
|
|
743
911
|
},
|
|
744
912
|
/**
|
|
745
|
-
*
|
|
746
|
-
* @
|
|
747
|
-
* @param {string} token Verification Token
|
|
913
|
+
* Get Account Finance
|
|
914
|
+
* @param {string} id Account Xero ID
|
|
748
915
|
* @param {*} [options] Override http request option.
|
|
749
916
|
* @throws {RequiredError}
|
|
750
917
|
*/
|
|
751
|
-
|
|
918
|
+
getGetFinanceSettings: function (id_1) {
|
|
752
919
|
var args_1 = [];
|
|
753
920
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
754
921
|
args_1[_i - 1] = arguments[_i];
|
|
755
922
|
}
|
|
756
|
-
return __awaiter(_this, __spreadArray([
|
|
923
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
757
924
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
758
925
|
if (options === void 0) { options = {}; }
|
|
759
926
|
return __generator(this, function (_a) {
|
|
760
|
-
// verify required parameter '
|
|
761
|
-
(0, common_1.assertParamExists)('
|
|
762
|
-
localVarPath = "/accounts/
|
|
927
|
+
// verify required parameter 'id' is not null or undefined
|
|
928
|
+
(0, common_1.assertParamExists)('getGetFinanceSettings', 'id', id);
|
|
929
|
+
localVarPath = "/admin/accounts/{id}/finance"
|
|
930
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
763
931
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
764
932
|
if (configuration) {
|
|
765
933
|
baseOptions = configuration.baseOptions;
|
|
@@ -767,9 +935,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
767
935
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
768
936
|
localVarHeaderParameter = {};
|
|
769
937
|
localVarQueryParameter = {};
|
|
770
|
-
|
|
771
|
-
localVarQueryParameter['token'] = token;
|
|
772
|
-
}
|
|
938
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
773
939
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
774
940
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
775
941
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -781,33 +947,35 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
781
947
|
});
|
|
782
948
|
},
|
|
783
949
|
/**
|
|
784
|
-
*
|
|
785
|
-
* @param {
|
|
950
|
+
* Get Account 3CX Details
|
|
951
|
+
* @param {string} id Xero ID
|
|
786
952
|
* @param {*} [options] Override http request option.
|
|
787
953
|
* @throws {RequiredError}
|
|
788
954
|
*/
|
|
789
|
-
|
|
955
|
+
getGetTcxPartnerDetails: function (id_1) {
|
|
790
956
|
var args_1 = [];
|
|
791
957
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
792
958
|
args_1[_i - 1] = arguments[_i];
|
|
793
959
|
}
|
|
794
|
-
return __awaiter(_this, __spreadArray([
|
|
960
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
795
961
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
796
962
|
if (options === void 0) { options = {}; }
|
|
797
963
|
return __generator(this, function (_a) {
|
|
798
|
-
|
|
964
|
+
// verify required parameter 'id' is not null or undefined
|
|
965
|
+
(0, common_1.assertParamExists)('getGetTcxPartnerDetails', 'id', id);
|
|
966
|
+
localVarPath = "/admin/accounts/{id}/tcx/partner"
|
|
967
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
799
968
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
800
969
|
if (configuration) {
|
|
801
970
|
baseOptions = configuration.baseOptions;
|
|
802
971
|
}
|
|
803
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
972
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
804
973
|
localVarHeaderParameter = {};
|
|
805
974
|
localVarQueryParameter = {};
|
|
806
|
-
localVarHeaderParameter['
|
|
975
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
807
976
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
808
977
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
809
978
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
810
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchSetTcxWizardCnameRequest, localVarRequestOptions, configuration);
|
|
811
979
|
return [2 /*return*/, {
|
|
812
980
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
813
981
|
options: localVarRequestOptions,
|
|
@@ -816,40 +984,37 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
816
984
|
});
|
|
817
985
|
},
|
|
818
986
|
/**
|
|
819
|
-
*
|
|
820
|
-
* @summary
|
|
987
|
+
* Verify account email address
|
|
988
|
+
* @summary Verify account email address
|
|
821
989
|
* @param {string} token Verification Token
|
|
822
|
-
* @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
|
|
823
990
|
* @param {*} [options] Override http request option.
|
|
824
991
|
* @throws {RequiredError}
|
|
825
992
|
*/
|
|
826
|
-
|
|
993
|
+
getVerifyEmailAddress: function (token_1) {
|
|
827
994
|
var args_1 = [];
|
|
828
|
-
for (var _i =
|
|
829
|
-
args_1[_i -
|
|
995
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
996
|
+
args_1[_i - 1] = arguments[_i];
|
|
830
997
|
}
|
|
831
|
-
return __awaiter(_this, __spreadArray([token_1
|
|
998
|
+
return __awaiter(_this, __spreadArray([token_1], args_1, true), void 0, function (token, options) {
|
|
832
999
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
833
1000
|
if (options === void 0) { options = {}; }
|
|
834
1001
|
return __generator(this, function (_a) {
|
|
835
1002
|
// verify required parameter 'token' is not null or undefined
|
|
836
|
-
(0, common_1.assertParamExists)('
|
|
837
|
-
localVarPath = "/accounts/contacts/
|
|
1003
|
+
(0, common_1.assertParamExists)('getVerifyEmailAddress', 'token', token);
|
|
1004
|
+
localVarPath = "/accounts/contacts/verify";
|
|
838
1005
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
839
1006
|
if (configuration) {
|
|
840
1007
|
baseOptions = configuration.baseOptions;
|
|
841
1008
|
}
|
|
842
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1009
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
843
1010
|
localVarHeaderParameter = {};
|
|
844
1011
|
localVarQueryParameter = {};
|
|
845
1012
|
if (token !== undefined) {
|
|
846
1013
|
localVarQueryParameter['token'] = token;
|
|
847
1014
|
}
|
|
848
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
849
1015
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
850
1016
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
851
1017
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
852
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountContactPasswordRequest, localVarRequestOptions, configuration);
|
|
853
1018
|
return [2 /*return*/, {
|
|
854
1019
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
855
1020
|
options: localVarRequestOptions,
|
|
@@ -858,34 +1023,38 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
858
1023
|
});
|
|
859
1024
|
},
|
|
860
1025
|
/**
|
|
861
|
-
*
|
|
862
|
-
* @
|
|
863
|
-
* @param {
|
|
1026
|
+
* Set Account Portal Access
|
|
1027
|
+
* @param {string} id Xero ID
|
|
1028
|
+
* @param {PatchSetPortalAccessStateEnum} state Portal Access State
|
|
864
1029
|
* @param {*} [options] Override http request option.
|
|
865
1030
|
* @throws {RequiredError}
|
|
866
1031
|
*/
|
|
867
|
-
|
|
1032
|
+
patchSetPortalAccess: function (id_1, state_1) {
|
|
868
1033
|
var args_1 = [];
|
|
869
|
-
for (var _i =
|
|
870
|
-
args_1[_i -
|
|
1034
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1035
|
+
args_1[_i - 2] = arguments[_i];
|
|
871
1036
|
}
|
|
872
|
-
return __awaiter(_this, __spreadArray([
|
|
1037
|
+
return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
|
|
873
1038
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
874
1039
|
if (options === void 0) { options = {}; }
|
|
875
1040
|
return __generator(this, function (_a) {
|
|
876
|
-
|
|
1041
|
+
// verify required parameter 'id' is not null or undefined
|
|
1042
|
+
(0, common_1.assertParamExists)('patchSetPortalAccess', 'id', id);
|
|
1043
|
+
// verify required parameter 'state' is not null or undefined
|
|
1044
|
+
(0, common_1.assertParamExists)('patchSetPortalAccess', 'state', state);
|
|
1045
|
+
localVarPath = "/admin/accounts/{id}/portal/access/{state}"
|
|
1046
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
1047
|
+
.replace('{state}', encodeURIComponent(String(state)));
|
|
877
1048
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
878
1049
|
if (configuration) {
|
|
879
1050
|
baseOptions = configuration.baseOptions;
|
|
880
1051
|
}
|
|
881
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1052
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
882
1053
|
localVarHeaderParameter = {};
|
|
883
1054
|
localVarQueryParameter = {};
|
|
884
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
885
1055
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
886
1056
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
887
1057
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
888
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
|
|
889
1058
|
return [2 /*return*/, {
|
|
890
1059
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
891
1060
|
options: localVarRequestOptions,
|
|
@@ -894,35 +1063,38 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
894
1063
|
});
|
|
895
1064
|
},
|
|
896
1065
|
/**
|
|
897
|
-
*
|
|
898
|
-
* @
|
|
899
|
-
* @param {
|
|
1066
|
+
* Set Account Prize Promo
|
|
1067
|
+
* @param {string} id Xero ID
|
|
1068
|
+
* @param {PatchSetPrizePromoStateEnum} state Prize Promo State
|
|
900
1069
|
* @param {*} [options] Override http request option.
|
|
901
1070
|
* @throws {RequiredError}
|
|
902
1071
|
*/
|
|
903
|
-
|
|
1072
|
+
patchSetPrizePromo: function (id_1, state_1) {
|
|
904
1073
|
var args_1 = [];
|
|
905
|
-
for (var _i =
|
|
906
|
-
args_1[_i -
|
|
1074
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1075
|
+
args_1[_i - 2] = arguments[_i];
|
|
907
1076
|
}
|
|
908
|
-
return __awaiter(_this, __spreadArray([
|
|
1077
|
+
return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
|
|
909
1078
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
910
1079
|
if (options === void 0) { options = {}; }
|
|
911
1080
|
return __generator(this, function (_a) {
|
|
912
|
-
|
|
1081
|
+
// verify required parameter 'id' is not null or undefined
|
|
1082
|
+
(0, common_1.assertParamExists)('patchSetPrizePromo', 'id', id);
|
|
1083
|
+
// verify required parameter 'state' is not null or undefined
|
|
1084
|
+
(0, common_1.assertParamExists)('patchSetPrizePromo', 'state', state);
|
|
1085
|
+
localVarPath = "/admin/accounts/{id}/prizes/{state}"
|
|
1086
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
1087
|
+
.replace('{state}', encodeURIComponent(String(state)));
|
|
913
1088
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
914
1089
|
if (configuration) {
|
|
915
1090
|
baseOptions = configuration.baseOptions;
|
|
916
1091
|
}
|
|
917
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1092
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
918
1093
|
localVarHeaderParameter = {};
|
|
919
1094
|
localVarQueryParameter = {};
|
|
920
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
921
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
922
1095
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
923
1096
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
924
1097
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
925
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountRequestModel, localVarRequestOptions, configuration);
|
|
926
1098
|
return [2 /*return*/, {
|
|
927
1099
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
928
1100
|
options: localVarRequestOptions,
|
|
@@ -931,32 +1103,33 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
931
1103
|
});
|
|
932
1104
|
},
|
|
933
1105
|
/**
|
|
934
|
-
*
|
|
935
|
-
* @
|
|
1106
|
+
* Set 3CX Wizard CNAME
|
|
1107
|
+
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
936
1108
|
* @param {*} [options] Override http request option.
|
|
937
1109
|
* @throws {RequiredError}
|
|
938
1110
|
*/
|
|
939
|
-
|
|
1111
|
+
patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest_1) {
|
|
940
1112
|
var args_1 = [];
|
|
941
|
-
for (var _i =
|
|
942
|
-
args_1[_i] = arguments[_i];
|
|
1113
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1114
|
+
args_1[_i - 1] = arguments[_i];
|
|
943
1115
|
}
|
|
944
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1116
|
+
return __awaiter(_this, __spreadArray([patchUpdateAccountCnameRequest_1], args_1, true), void 0, function (patchUpdateAccountCnameRequest, options) {
|
|
945
1117
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
946
1118
|
if (options === void 0) { options = {}; }
|
|
947
1119
|
return __generator(this, function (_a) {
|
|
948
|
-
localVarPath = "/
|
|
1120
|
+
localVarPath = "/accounts/me/cname";
|
|
949
1121
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
950
1122
|
if (configuration) {
|
|
951
1123
|
baseOptions = configuration.baseOptions;
|
|
952
1124
|
}
|
|
953
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1125
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
954
1126
|
localVarHeaderParameter = {};
|
|
955
1127
|
localVarQueryParameter = {};
|
|
956
|
-
localVarHeaderParameter['
|
|
1128
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
957
1129
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
958
1130
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
959
1131
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1132
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration);
|
|
960
1133
|
return [2 /*return*/, {
|
|
961
1134
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
962
1135
|
options: localVarRequestOptions,
|
|
@@ -965,35 +1138,37 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
965
1138
|
});
|
|
966
1139
|
},
|
|
967
1140
|
/**
|
|
968
|
-
*
|
|
969
|
-
* @
|
|
970
|
-
* @param {
|
|
1141
|
+
* Set Account CNAME
|
|
1142
|
+
* @param {string} id Xero ID
|
|
1143
|
+
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
971
1144
|
* @param {*} [options] Override http request option.
|
|
972
1145
|
* @throws {RequiredError}
|
|
973
1146
|
*/
|
|
974
|
-
|
|
1147
|
+
patchUpdateAccountCname: function (id_1, patchUpdateAccountCnameRequest_1) {
|
|
975
1148
|
var args_1 = [];
|
|
976
|
-
for (var _i =
|
|
977
|
-
args_1[_i -
|
|
1149
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1150
|
+
args_1[_i - 2] = arguments[_i];
|
|
978
1151
|
}
|
|
979
|
-
return __awaiter(_this, __spreadArray([
|
|
1152
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountCnameRequest_1], args_1, true), void 0, function (id, patchUpdateAccountCnameRequest, options) {
|
|
980
1153
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
981
1154
|
if (options === void 0) { options = {}; }
|
|
982
1155
|
return __generator(this, function (_a) {
|
|
983
|
-
|
|
1156
|
+
// verify required parameter 'id' is not null or undefined
|
|
1157
|
+
(0, common_1.assertParamExists)('patchUpdateAccountCname', 'id', id);
|
|
1158
|
+
localVarPath = "/admin/accounts/{id}/cname"
|
|
1159
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
984
1160
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
985
1161
|
if (configuration) {
|
|
986
1162
|
baseOptions = configuration.baseOptions;
|
|
987
1163
|
}
|
|
988
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1164
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
989
1165
|
localVarHeaderParameter = {};
|
|
990
1166
|
localVarQueryParameter = {};
|
|
991
1167
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
992
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
993
1168
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
994
1169
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
995
1170
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
996
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1171
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration);
|
|
997
1172
|
return [2 /*return*/, {
|
|
998
1173
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
999
1174
|
options: localVarRequestOptions,
|
|
@@ -1002,35 +1177,37 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1002
1177
|
});
|
|
1003
1178
|
},
|
|
1004
1179
|
/**
|
|
1005
|
-
*
|
|
1006
|
-
* @
|
|
1007
|
-
* @param {
|
|
1180
|
+
* Set Account Company Number
|
|
1181
|
+
* @param {string} id Xero ID
|
|
1182
|
+
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
1008
1183
|
* @param {*} [options] Override http request option.
|
|
1009
1184
|
* @throws {RequiredError}
|
|
1010
1185
|
*/
|
|
1011
|
-
|
|
1186
|
+
patchUpdateAccountCompanyNumber: function (id_1, patchUpdateAccountCompanyNumberRequest_1) {
|
|
1012
1187
|
var args_1 = [];
|
|
1013
|
-
for (var _i =
|
|
1014
|
-
args_1[_i -
|
|
1188
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1189
|
+
args_1[_i - 2] = arguments[_i];
|
|
1015
1190
|
}
|
|
1016
|
-
return __awaiter(_this, __spreadArray([
|
|
1191
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountCompanyNumberRequest_1], args_1, true), void 0, function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
1017
1192
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1018
1193
|
if (options === void 0) { options = {}; }
|
|
1019
1194
|
return __generator(this, function (_a) {
|
|
1020
|
-
// verify required parameter '
|
|
1021
|
-
(0, common_1.assertParamExists)('
|
|
1022
|
-
localVarPath = "/accounts/
|
|
1023
|
-
.replace('{
|
|
1195
|
+
// verify required parameter 'id' is not null or undefined
|
|
1196
|
+
(0, common_1.assertParamExists)('patchUpdateAccountCompanyNumber', 'id', id);
|
|
1197
|
+
localVarPath = "/admin/accounts/{id}/companyNumber"
|
|
1198
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1024
1199
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1025
1200
|
if (configuration) {
|
|
1026
1201
|
baseOptions = configuration.baseOptions;
|
|
1027
1202
|
}
|
|
1028
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1203
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1029
1204
|
localVarHeaderParameter = {};
|
|
1030
1205
|
localVarQueryParameter = {};
|
|
1206
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1031
1207
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1032
1208
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1033
1209
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1210
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountCompanyNumberRequest, localVarRequestOptions, configuration);
|
|
1034
1211
|
return [2 /*return*/, {
|
|
1035
1212
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1036
1213
|
options: localVarRequestOptions,
|
|
@@ -1039,37 +1216,40 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1039
1216
|
});
|
|
1040
1217
|
},
|
|
1041
1218
|
/**
|
|
1042
|
-
*
|
|
1043
|
-
* @summary
|
|
1044
|
-
* @param {string}
|
|
1219
|
+
* Update Account Password
|
|
1220
|
+
* @summary Update Account Password
|
|
1221
|
+
* @param {string} token Verification Token
|
|
1222
|
+
* @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
|
|
1045
1223
|
* @param {*} [options] Override http request option.
|
|
1046
1224
|
* @throws {RequiredError}
|
|
1047
1225
|
*/
|
|
1048
|
-
|
|
1226
|
+
patchUpdateAccountContactPassword: function (token_1, patchUpdateAccountContactPasswordRequest_1) {
|
|
1049
1227
|
var args_1 = [];
|
|
1050
|
-
for (var _i =
|
|
1051
|
-
args_1[_i -
|
|
1228
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1229
|
+
args_1[_i - 2] = arguments[_i];
|
|
1052
1230
|
}
|
|
1053
|
-
return __awaiter(_this, __spreadArray([
|
|
1231
|
+
return __awaiter(_this, __spreadArray([token_1, patchUpdateAccountContactPasswordRequest_1], args_1, true), void 0, function (token, patchUpdateAccountContactPasswordRequest, options) {
|
|
1054
1232
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1055
1233
|
if (options === void 0) { options = {}; }
|
|
1056
1234
|
return __generator(this, function (_a) {
|
|
1057
|
-
// verify required parameter '
|
|
1058
|
-
(0, common_1.assertParamExists)('
|
|
1059
|
-
localVarPath = "/accounts/contacts/password
|
|
1235
|
+
// verify required parameter 'token' is not null or undefined
|
|
1236
|
+
(0, common_1.assertParamExists)('patchUpdateAccountContactPassword', 'token', token);
|
|
1237
|
+
localVarPath = "/accounts/contacts/password";
|
|
1060
1238
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1061
1239
|
if (configuration) {
|
|
1062
1240
|
baseOptions = configuration.baseOptions;
|
|
1063
1241
|
}
|
|
1064
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1242
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1065
1243
|
localVarHeaderParameter = {};
|
|
1066
1244
|
localVarQueryParameter = {};
|
|
1067
|
-
if (
|
|
1068
|
-
localVarQueryParameter['
|
|
1245
|
+
if (token !== undefined) {
|
|
1246
|
+
localVarQueryParameter['token'] = token;
|
|
1069
1247
|
}
|
|
1248
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1070
1249
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1071
1250
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1072
1251
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1252
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountContactPasswordRequest, localVarRequestOptions, configuration);
|
|
1073
1253
|
return [2 /*return*/, {
|
|
1074
1254
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1075
1255
|
options: localVarRequestOptions,
|
|
@@ -1078,43 +1258,156 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1078
1258
|
});
|
|
1079
1259
|
},
|
|
1080
1260
|
/**
|
|
1081
|
-
*
|
|
1082
|
-
* @
|
|
1083
|
-
* @param {
|
|
1084
|
-
* @param {string} [companyNumber] Company Number
|
|
1085
|
-
* @param {string} [vatNumber] VAT Number
|
|
1261
|
+
* Set Account Phone
|
|
1262
|
+
* @param {string} id Xero ID
|
|
1263
|
+
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
1086
1264
|
* @param {*} [options] Override http request option.
|
|
1087
1265
|
* @throws {RequiredError}
|
|
1088
1266
|
*/
|
|
1089
|
-
|
|
1267
|
+
patchUpdateAccountPhone: function (id_1, patchUpdateAccountPhoneRequest_1) {
|
|
1090
1268
|
var args_1 = [];
|
|
1091
|
-
for (var _i =
|
|
1092
|
-
args_1[_i -
|
|
1269
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1270
|
+
args_1[_i - 2] = arguments[_i];
|
|
1093
1271
|
}
|
|
1094
|
-
return __awaiter(_this, __spreadArray([
|
|
1272
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountPhoneRequest_1], args_1, true), void 0, function (id, patchUpdateAccountPhoneRequest, options) {
|
|
1095
1273
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1096
1274
|
if (options === void 0) { options = {}; }
|
|
1097
1275
|
return __generator(this, function (_a) {
|
|
1098
|
-
|
|
1276
|
+
// verify required parameter 'id' is not null or undefined
|
|
1277
|
+
(0, common_1.assertParamExists)('patchUpdateAccountPhone', 'id', id);
|
|
1278
|
+
localVarPath = "/admin/accounts/{id}/phone"
|
|
1279
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1099
1280
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1100
1281
|
if (configuration) {
|
|
1101
1282
|
baseOptions = configuration.baseOptions;
|
|
1102
1283
|
}
|
|
1103
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1284
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1104
1285
|
localVarHeaderParameter = {};
|
|
1105
1286
|
localVarQueryParameter = {};
|
|
1106
|
-
|
|
1107
|
-
|
|
1287
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1288
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1289
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1290
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1291
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountPhoneRequest, localVarRequestOptions, configuration);
|
|
1292
|
+
return [2 /*return*/, {
|
|
1293
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1294
|
+
options: localVarRequestOptions,
|
|
1295
|
+
}];
|
|
1296
|
+
});
|
|
1297
|
+
});
|
|
1298
|
+
},
|
|
1299
|
+
/**
|
|
1300
|
+
* Set Account VAT Number
|
|
1301
|
+
* @param {string} id Xero ID
|
|
1302
|
+
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
1303
|
+
* @param {*} [options] Override http request option.
|
|
1304
|
+
* @throws {RequiredError}
|
|
1305
|
+
*/
|
|
1306
|
+
patchUpdateAccountVatNumber: function (id_1, patchUpdateAccountVatNumberRequest_1) {
|
|
1307
|
+
var args_1 = [];
|
|
1308
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1309
|
+
args_1[_i - 2] = arguments[_i];
|
|
1310
|
+
}
|
|
1311
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateAccountVatNumberRequest_1], args_1, true), void 0, function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
1312
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1313
|
+
if (options === void 0) { options = {}; }
|
|
1314
|
+
return __generator(this, function (_a) {
|
|
1315
|
+
// verify required parameter 'id' is not null or undefined
|
|
1316
|
+
(0, common_1.assertParamExists)('patchUpdateAccountVatNumber', 'id', id);
|
|
1317
|
+
localVarPath = "/admin/accounts/{id}/vatNumber"
|
|
1318
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1319
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1320
|
+
if (configuration) {
|
|
1321
|
+
baseOptions = configuration.baseOptions;
|
|
1108
1322
|
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1323
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1324
|
+
localVarHeaderParameter = {};
|
|
1325
|
+
localVarQueryParameter = {};
|
|
1326
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1327
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1328
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1329
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1330
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateAccountVatNumberRequest, localVarRequestOptions, configuration);
|
|
1331
|
+
return [2 /*return*/, {
|
|
1332
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1333
|
+
options: localVarRequestOptions,
|
|
1334
|
+
}];
|
|
1335
|
+
});
|
|
1336
|
+
});
|
|
1337
|
+
},
|
|
1338
|
+
/**
|
|
1339
|
+
* Set Account Credit Limit
|
|
1340
|
+
* @param {string} id Xero ID
|
|
1341
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
1342
|
+
* @param {*} [options] Override http request option.
|
|
1343
|
+
* @throws {RequiredError}
|
|
1344
|
+
*/
|
|
1345
|
+
patchUpdateCreditLimit: function (id_1, patchUpdateCreditLimitRequest_1) {
|
|
1346
|
+
var args_1 = [];
|
|
1347
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1348
|
+
args_1[_i - 2] = arguments[_i];
|
|
1349
|
+
}
|
|
1350
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateCreditLimitRequest_1], args_1, true), void 0, function (id, patchUpdateCreditLimitRequest, options) {
|
|
1351
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1352
|
+
if (options === void 0) { options = {}; }
|
|
1353
|
+
return __generator(this, function (_a) {
|
|
1354
|
+
// verify required parameter 'id' is not null or undefined
|
|
1355
|
+
(0, common_1.assertParamExists)('patchUpdateCreditLimit', 'id', id);
|
|
1356
|
+
localVarPath = "/admin/accounts/{id}/creditLimit"
|
|
1357
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1358
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1359
|
+
if (configuration) {
|
|
1360
|
+
baseOptions = configuration.baseOptions;
|
|
1111
1361
|
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1362
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1363
|
+
localVarHeaderParameter = {};
|
|
1364
|
+
localVarQueryParameter = {};
|
|
1365
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1366
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1367
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1368
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1369
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1370
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateCreditLimitRequest, localVarRequestOptions, configuration);
|
|
1371
|
+
return [2 /*return*/, {
|
|
1372
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1373
|
+
options: localVarRequestOptions,
|
|
1374
|
+
}];
|
|
1375
|
+
});
|
|
1376
|
+
});
|
|
1377
|
+
},
|
|
1378
|
+
/**
|
|
1379
|
+
* Set Account Price List
|
|
1380
|
+
* @param {string} id Xero ID
|
|
1381
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
1382
|
+
* @param {*} [options] Override http request option.
|
|
1383
|
+
* @throws {RequiredError}
|
|
1384
|
+
*/
|
|
1385
|
+
patchUpdatePriceList: function (id_1, patchUpdatePriceListRequest_1) {
|
|
1386
|
+
var args_1 = [];
|
|
1387
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1388
|
+
args_1[_i - 2] = arguments[_i];
|
|
1389
|
+
}
|
|
1390
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdatePriceListRequest_1], args_1, true), void 0, function (id, patchUpdatePriceListRequest, options) {
|
|
1391
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1392
|
+
if (options === void 0) { options = {}; }
|
|
1393
|
+
return __generator(this, function (_a) {
|
|
1394
|
+
// verify required parameter 'id' is not null or undefined
|
|
1395
|
+
(0, common_1.assertParamExists)('patchUpdatePriceList', 'id', id);
|
|
1396
|
+
localVarPath = "/admin/accounts/{id}/priceList"
|
|
1397
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1398
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1399
|
+
if (configuration) {
|
|
1400
|
+
baseOptions = configuration.baseOptions;
|
|
1114
1401
|
}
|
|
1402
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1403
|
+
localVarHeaderParameter = {};
|
|
1404
|
+
localVarQueryParameter = {};
|
|
1405
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1406
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1115
1407
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1116
1408
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1117
1409
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1410
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdatePriceListRequest, localVarRequestOptions, configuration);
|
|
1118
1411
|
return [2 /*return*/, {
|
|
1119
1412
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1120
1413
|
options: localVarRequestOptions,
|
|
@@ -1123,31 +1416,150 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1123
1416
|
});
|
|
1124
1417
|
},
|
|
1125
1418
|
/**
|
|
1126
|
-
*
|
|
1127
|
-
* @
|
|
1128
|
-
* @param {
|
|
1129
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] Account request
|
|
1419
|
+
* Set Account SIP Channel Cost
|
|
1420
|
+
* @param {string} id Xero ID
|
|
1421
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
1130
1422
|
* @param {*} [options] Override http request option.
|
|
1131
1423
|
* @throws {RequiredError}
|
|
1132
1424
|
*/
|
|
1133
|
-
|
|
1425
|
+
patchUpdateSipChannelCost: function (id_1, patchUpdateSipChannelCostRequest_1) {
|
|
1134
1426
|
var args_1 = [];
|
|
1135
1427
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1136
1428
|
args_1[_i - 2] = arguments[_i];
|
|
1137
1429
|
}
|
|
1138
|
-
return __awaiter(_this, __spreadArray([
|
|
1430
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateSipChannelCostRequest_1], args_1, true), void 0, function (id, patchUpdateSipChannelCostRequest, options) {
|
|
1139
1431
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1140
1432
|
if (options === void 0) { options = {}; }
|
|
1141
1433
|
return __generator(this, function (_a) {
|
|
1142
|
-
// verify required parameter '
|
|
1143
|
-
(0, common_1.assertParamExists)('
|
|
1144
|
-
localVarPath = "/accounts/
|
|
1145
|
-
.replace('{
|
|
1434
|
+
// verify required parameter 'id' is not null or undefined
|
|
1435
|
+
(0, common_1.assertParamExists)('patchUpdateSipChannelCost', 'id', id);
|
|
1436
|
+
localVarPath = "/admin/accounts/{id}/channelCost"
|
|
1437
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1146
1438
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1147
1439
|
if (configuration) {
|
|
1148
1440
|
baseOptions = configuration.baseOptions;
|
|
1149
1441
|
}
|
|
1150
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
1442
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1443
|
+
localVarHeaderParameter = {};
|
|
1444
|
+
localVarQueryParameter = {};
|
|
1445
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1446
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1447
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1448
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1449
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1450
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateSipChannelCostRequest, localVarRequestOptions, configuration);
|
|
1451
|
+
return [2 /*return*/, {
|
|
1452
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1453
|
+
options: localVarRequestOptions,
|
|
1454
|
+
}];
|
|
1455
|
+
});
|
|
1456
|
+
});
|
|
1457
|
+
},
|
|
1458
|
+
/**
|
|
1459
|
+
* Set Account 3CX Hosting Price List
|
|
1460
|
+
* @param {string} id Xero ID
|
|
1461
|
+
* @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
patchUpdateTcxHostingPriceList: function (id_1, patchUpdateTcxHostingPriceListRequest_1) {
|
|
1466
|
+
var args_1 = [];
|
|
1467
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1468
|
+
args_1[_i - 2] = arguments[_i];
|
|
1469
|
+
}
|
|
1470
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateTcxHostingPriceListRequest_1], args_1, true), void 0, function (id, patchUpdateTcxHostingPriceListRequest, options) {
|
|
1471
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1472
|
+
if (options === void 0) { options = {}; }
|
|
1473
|
+
return __generator(this, function (_a) {
|
|
1474
|
+
// verify required parameter 'id' is not null or undefined
|
|
1475
|
+
(0, common_1.assertParamExists)('patchUpdateTcxHostingPriceList', 'id', id);
|
|
1476
|
+
localVarPath = "/admin/accounts/{id}/tcx/hosting/priceList"
|
|
1477
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1478
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1479
|
+
if (configuration) {
|
|
1480
|
+
baseOptions = configuration.baseOptions;
|
|
1481
|
+
}
|
|
1482
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1483
|
+
localVarHeaderParameter = {};
|
|
1484
|
+
localVarQueryParameter = {};
|
|
1485
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1486
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1487
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1488
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1489
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1490
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateTcxHostingPriceListRequest, localVarRequestOptions, configuration);
|
|
1491
|
+
return [2 /*return*/, {
|
|
1492
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1493
|
+
options: localVarRequestOptions,
|
|
1494
|
+
}];
|
|
1495
|
+
});
|
|
1496
|
+
});
|
|
1497
|
+
},
|
|
1498
|
+
/**
|
|
1499
|
+
* Set Account 3CX Partner ID
|
|
1500
|
+
* @param {string} id Xero ID
|
|
1501
|
+
* @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
*/
|
|
1505
|
+
patchUpdateTcxPartnerId: function (id_1, patchUpdateTcxPartnerIdRequest_1) {
|
|
1506
|
+
var args_1 = [];
|
|
1507
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1508
|
+
args_1[_i - 2] = arguments[_i];
|
|
1509
|
+
}
|
|
1510
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateTcxPartnerIdRequest_1], args_1, true), void 0, function (id, patchUpdateTcxPartnerIdRequest, options) {
|
|
1511
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1512
|
+
if (options === void 0) { options = {}; }
|
|
1513
|
+
return __generator(this, function (_a) {
|
|
1514
|
+
// verify required parameter 'id' is not null or undefined
|
|
1515
|
+
(0, common_1.assertParamExists)('patchUpdateTcxPartnerId', 'id', id);
|
|
1516
|
+
localVarPath = "/admin/accounts{id}/tcx/partner/id"
|
|
1517
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1518
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1519
|
+
if (configuration) {
|
|
1520
|
+
baseOptions = configuration.baseOptions;
|
|
1521
|
+
}
|
|
1522
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1523
|
+
localVarHeaderParameter = {};
|
|
1524
|
+
localVarQueryParameter = {};
|
|
1525
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1526
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1527
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1528
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1529
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1530
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateTcxPartnerIdRequest, localVarRequestOptions, configuration);
|
|
1531
|
+
return [2 /*return*/, {
|
|
1532
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1533
|
+
options: localVarRequestOptions,
|
|
1534
|
+
}];
|
|
1535
|
+
});
|
|
1536
|
+
});
|
|
1537
|
+
},
|
|
1538
|
+
/**
|
|
1539
|
+
* Create Account Contact
|
|
1540
|
+
* @param {string} id Account Xero ID
|
|
1541
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
1542
|
+
* @param {*} [options] Override http request option.
|
|
1543
|
+
* @throws {RequiredError}
|
|
1544
|
+
*/
|
|
1545
|
+
postAdminCreateAccountContact: function (id_1, accountContactRequestModel_1) {
|
|
1546
|
+
var args_1 = [];
|
|
1547
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1548
|
+
args_1[_i - 2] = arguments[_i];
|
|
1549
|
+
}
|
|
1550
|
+
return __awaiter(_this, __spreadArray([id_1, accountContactRequestModel_1], args_1, true), void 0, function (id, accountContactRequestModel, options) {
|
|
1551
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1552
|
+
if (options === void 0) { options = {}; }
|
|
1553
|
+
return __generator(this, function (_a) {
|
|
1554
|
+
// verify required parameter 'id' is not null or undefined
|
|
1555
|
+
(0, common_1.assertParamExists)('postAdminCreateAccountContact', 'id', id);
|
|
1556
|
+
localVarPath = "/admin/accounts/{id}/contacts"
|
|
1557
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1558
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1559
|
+
if (configuration) {
|
|
1560
|
+
baseOptions = configuration.baseOptions;
|
|
1561
|
+
}
|
|
1562
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1151
1563
|
localVarHeaderParameter = {};
|
|
1152
1564
|
localVarQueryParameter = {};
|
|
1153
1565
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1162,7 +1574,472 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1162
1574
|
});
|
|
1163
1575
|
});
|
|
1164
1576
|
},
|
|
1165
|
-
|
|
1577
|
+
/**
|
|
1578
|
+
* Add Account Contacts
|
|
1579
|
+
* @summary Add Account Contact
|
|
1580
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] New account request
|
|
1581
|
+
* @param {*} [options] Override http request option.
|
|
1582
|
+
* @throws {RequiredError}
|
|
1583
|
+
*/
|
|
1584
|
+
postGetAccountContacts: function (accountContactRequestModel_1) {
|
|
1585
|
+
var args_1 = [];
|
|
1586
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1587
|
+
args_1[_i - 1] = arguments[_i];
|
|
1588
|
+
}
|
|
1589
|
+
return __awaiter(_this, __spreadArray([accountContactRequestModel_1], args_1, true), void 0, function (accountContactRequestModel, options) {
|
|
1590
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1591
|
+
if (options === void 0) { options = {}; }
|
|
1592
|
+
return __generator(this, function (_a) {
|
|
1593
|
+
localVarPath = "/accounts/me/contacts";
|
|
1594
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1595
|
+
if (configuration) {
|
|
1596
|
+
baseOptions = configuration.baseOptions;
|
|
1597
|
+
}
|
|
1598
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1599
|
+
localVarHeaderParameter = {};
|
|
1600
|
+
localVarQueryParameter = {};
|
|
1601
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1602
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1603
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1604
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1605
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
|
|
1606
|
+
return [2 /*return*/, {
|
|
1607
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1608
|
+
options: localVarRequestOptions,
|
|
1609
|
+
}];
|
|
1610
|
+
});
|
|
1611
|
+
});
|
|
1612
|
+
},
|
|
1613
|
+
/**
|
|
1614
|
+
* Create new customer account
|
|
1615
|
+
* @summary Create a new customer account
|
|
1616
|
+
* @param {AccountRequestModel} [accountRequestModel] New account request
|
|
1617
|
+
* @param {*} [options] Override http request option.
|
|
1618
|
+
* @throws {RequiredError}
|
|
1619
|
+
*/
|
|
1620
|
+
postGetAccounts: function (accountRequestModel_1) {
|
|
1621
|
+
var args_1 = [];
|
|
1622
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1623
|
+
args_1[_i - 1] = arguments[_i];
|
|
1624
|
+
}
|
|
1625
|
+
return __awaiter(_this, __spreadArray([accountRequestModel_1], args_1, true), void 0, function (accountRequestModel, options) {
|
|
1626
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1627
|
+
if (options === void 0) { options = {}; }
|
|
1628
|
+
return __generator(this, function (_a) {
|
|
1629
|
+
localVarPath = "/accounts";
|
|
1630
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1631
|
+
if (configuration) {
|
|
1632
|
+
baseOptions = configuration.baseOptions;
|
|
1633
|
+
}
|
|
1634
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1635
|
+
localVarHeaderParameter = {};
|
|
1636
|
+
localVarQueryParameter = {};
|
|
1637
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1638
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1639
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1640
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1641
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1642
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountRequestModel, localVarRequestOptions, configuration);
|
|
1643
|
+
return [2 /*return*/, {
|
|
1644
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1645
|
+
options: localVarRequestOptions,
|
|
1646
|
+
}];
|
|
1647
|
+
});
|
|
1648
|
+
});
|
|
1649
|
+
},
|
|
1650
|
+
/**
|
|
1651
|
+
* Get Admin Account
|
|
1652
|
+
* @summary Get Admin Account
|
|
1653
|
+
* @param {*} [options] Override http request option.
|
|
1654
|
+
* @throws {RequiredError}
|
|
1655
|
+
*/
|
|
1656
|
+
postGetAdminAccount: function () {
|
|
1657
|
+
var args_1 = [];
|
|
1658
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1659
|
+
args_1[_i] = arguments[_i];
|
|
1660
|
+
}
|
|
1661
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1662
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1663
|
+
if (options === void 0) { options = {}; }
|
|
1664
|
+
return __generator(this, function (_a) {
|
|
1665
|
+
localVarPath = "/admin/me";
|
|
1666
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1667
|
+
if (configuration) {
|
|
1668
|
+
baseOptions = configuration.baseOptions;
|
|
1669
|
+
}
|
|
1670
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1671
|
+
localVarHeaderParameter = {};
|
|
1672
|
+
localVarQueryParameter = {};
|
|
1673
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1674
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1675
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1676
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1677
|
+
return [2 /*return*/, {
|
|
1678
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1679
|
+
options: localVarRequestOptions,
|
|
1680
|
+
}];
|
|
1681
|
+
});
|
|
1682
|
+
});
|
|
1683
|
+
},
|
|
1684
|
+
/**
|
|
1685
|
+
* Create client credentials
|
|
1686
|
+
* @summary Create client credentials
|
|
1687
|
+
* @param {PostGetClientCredentialsRequest} [postGetClientCredentialsRequest] New client credentials request
|
|
1688
|
+
* @param {*} [options] Override http request option.
|
|
1689
|
+
* @throws {RequiredError}
|
|
1690
|
+
*/
|
|
1691
|
+
postGetClientCredentials: function (postGetClientCredentialsRequest_1) {
|
|
1692
|
+
var args_1 = [];
|
|
1693
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1694
|
+
args_1[_i - 1] = arguments[_i];
|
|
1695
|
+
}
|
|
1696
|
+
return __awaiter(_this, __spreadArray([postGetClientCredentialsRequest_1], args_1, true), void 0, function (postGetClientCredentialsRequest, options) {
|
|
1697
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1698
|
+
if (options === void 0) { options = {}; }
|
|
1699
|
+
return __generator(this, function (_a) {
|
|
1700
|
+
localVarPath = "/accounts/me/contacts/credentials";
|
|
1701
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1702
|
+
if (configuration) {
|
|
1703
|
+
baseOptions = configuration.baseOptions;
|
|
1704
|
+
}
|
|
1705
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1706
|
+
localVarHeaderParameter = {};
|
|
1707
|
+
localVarQueryParameter = {};
|
|
1708
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1709
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1710
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1711
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1712
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1713
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetClientCredentialsRequest, localVarRequestOptions, configuration);
|
|
1714
|
+
return [2 /*return*/, {
|
|
1715
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1716
|
+
options: localVarRequestOptions,
|
|
1717
|
+
}];
|
|
1718
|
+
});
|
|
1719
|
+
});
|
|
1720
|
+
},
|
|
1721
|
+
/**
|
|
1722
|
+
* Send email verification email
|
|
1723
|
+
* @summary Send email verification email
|
|
1724
|
+
* @param {string} email Email Address
|
|
1725
|
+
* @param {*} [options] Override http request option.
|
|
1726
|
+
* @throws {RequiredError}
|
|
1727
|
+
*/
|
|
1728
|
+
postSendEmailVerificationEmail: function (email_1) {
|
|
1729
|
+
var args_1 = [];
|
|
1730
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1731
|
+
args_1[_i - 1] = arguments[_i];
|
|
1732
|
+
}
|
|
1733
|
+
return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
|
|
1734
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1735
|
+
if (options === void 0) { options = {}; }
|
|
1736
|
+
return __generator(this, function (_a) {
|
|
1737
|
+
// verify required parameter 'email' is not null or undefined
|
|
1738
|
+
(0, common_1.assertParamExists)('postSendEmailVerificationEmail', 'email', email);
|
|
1739
|
+
localVarPath = "/accounts/contacts/verify/{email}"
|
|
1740
|
+
.replace('{email}', encodeURIComponent(String(email)));
|
|
1741
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1742
|
+
if (configuration) {
|
|
1743
|
+
baseOptions = configuration.baseOptions;
|
|
1744
|
+
}
|
|
1745
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1746
|
+
localVarHeaderParameter = {};
|
|
1747
|
+
localVarQueryParameter = {};
|
|
1748
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1749
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1750
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1751
|
+
return [2 /*return*/, {
|
|
1752
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1753
|
+
options: localVarRequestOptions,
|
|
1754
|
+
}];
|
|
1755
|
+
});
|
|
1756
|
+
});
|
|
1757
|
+
},
|
|
1758
|
+
/**
|
|
1759
|
+
* Send password reset email
|
|
1760
|
+
* @summary Send password reset email
|
|
1761
|
+
* @param {string} email Email Address
|
|
1762
|
+
* @param {*} [options] Override http request option.
|
|
1763
|
+
* @throws {RequiredError}
|
|
1764
|
+
*/
|
|
1765
|
+
postSendPasswordReset: function (email_1) {
|
|
1766
|
+
var args_1 = [];
|
|
1767
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1768
|
+
args_1[_i - 1] = arguments[_i];
|
|
1769
|
+
}
|
|
1770
|
+
return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
|
|
1771
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1772
|
+
if (options === void 0) { options = {}; }
|
|
1773
|
+
return __generator(this, function (_a) {
|
|
1774
|
+
// verify required parameter 'email' is not null or undefined
|
|
1775
|
+
(0, common_1.assertParamExists)('postSendPasswordReset', 'email', email);
|
|
1776
|
+
localVarPath = "/accounts/contacts/password/reset";
|
|
1777
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1778
|
+
if (configuration) {
|
|
1779
|
+
baseOptions = configuration.baseOptions;
|
|
1780
|
+
}
|
|
1781
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1782
|
+
localVarHeaderParameter = {};
|
|
1783
|
+
localVarQueryParameter = {};
|
|
1784
|
+
if (email !== undefined) {
|
|
1785
|
+
localVarQueryParameter['email'] = email;
|
|
1786
|
+
}
|
|
1787
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1788
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1789
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1790
|
+
return [2 /*return*/, {
|
|
1791
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1792
|
+
options: localVarRequestOptions,
|
|
1793
|
+
}];
|
|
1794
|
+
});
|
|
1795
|
+
});
|
|
1796
|
+
},
|
|
1797
|
+
/**
|
|
1798
|
+
* Send Account Welcome Email
|
|
1799
|
+
* @param {string} id Xero ID
|
|
1800
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
1801
|
+
* @param {*} [options] Override http request option.
|
|
1802
|
+
* @throws {RequiredError}
|
|
1803
|
+
*/
|
|
1804
|
+
postSendWelcomeEmail: function (id_1, postSendWelcomeEmailRequest_1) {
|
|
1805
|
+
var args_1 = [];
|
|
1806
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1807
|
+
args_1[_i - 2] = arguments[_i];
|
|
1808
|
+
}
|
|
1809
|
+
return __awaiter(_this, __spreadArray([id_1, postSendWelcomeEmailRequest_1], args_1, true), void 0, function (id, postSendWelcomeEmailRequest, options) {
|
|
1810
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1811
|
+
if (options === void 0) { options = {}; }
|
|
1812
|
+
return __generator(this, function (_a) {
|
|
1813
|
+
// verify required parameter 'id' is not null or undefined
|
|
1814
|
+
(0, common_1.assertParamExists)('postSendWelcomeEmail', 'id', id);
|
|
1815
|
+
localVarPath = "/admin/accounts/{id}/email/welcome"
|
|
1816
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1817
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1818
|
+
if (configuration) {
|
|
1819
|
+
baseOptions = configuration.baseOptions;
|
|
1820
|
+
}
|
|
1821
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1822
|
+
localVarHeaderParameter = {};
|
|
1823
|
+
localVarQueryParameter = {};
|
|
1824
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1825
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1826
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1827
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1828
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSendWelcomeEmailRequest, localVarRequestOptions, configuration);
|
|
1829
|
+
return [2 /*return*/, {
|
|
1830
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1831
|
+
options: localVarRequestOptions,
|
|
1832
|
+
}];
|
|
1833
|
+
});
|
|
1834
|
+
});
|
|
1835
|
+
},
|
|
1836
|
+
/**
|
|
1837
|
+
* Submit reseller application
|
|
1838
|
+
* @summary Submit reseller application
|
|
1839
|
+
* @param {number} [creditRequired] Credit Required
|
|
1840
|
+
* @param {string} [companyNumber] Company Number
|
|
1841
|
+
* @param {string} [vatNumber] VAT Number
|
|
1842
|
+
* @param {*} [options] Override http request option.
|
|
1843
|
+
* @throws {RequiredError}
|
|
1844
|
+
*/
|
|
1845
|
+
postSubmitResellerApplication: function (creditRequired_1, companyNumber_1, vatNumber_1) {
|
|
1846
|
+
var args_1 = [];
|
|
1847
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
1848
|
+
args_1[_i - 3] = arguments[_i];
|
|
1849
|
+
}
|
|
1850
|
+
return __awaiter(_this, __spreadArray([creditRequired_1, companyNumber_1, vatNumber_1], args_1, true), void 0, function (creditRequired, companyNumber, vatNumber, options) {
|
|
1851
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1852
|
+
if (options === void 0) { options = {}; }
|
|
1853
|
+
return __generator(this, function (_a) {
|
|
1854
|
+
localVarPath = "/accounts/reseller";
|
|
1855
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1856
|
+
if (configuration) {
|
|
1857
|
+
baseOptions = configuration.baseOptions;
|
|
1858
|
+
}
|
|
1859
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1860
|
+
localVarHeaderParameter = {};
|
|
1861
|
+
localVarQueryParameter = {};
|
|
1862
|
+
if (creditRequired !== undefined) {
|
|
1863
|
+
localVarQueryParameter['creditRequired'] = creditRequired;
|
|
1864
|
+
}
|
|
1865
|
+
if (companyNumber !== undefined) {
|
|
1866
|
+
localVarQueryParameter['companyNumber'] = companyNumber;
|
|
1867
|
+
}
|
|
1868
|
+
if (vatNumber !== undefined) {
|
|
1869
|
+
localVarQueryParameter['vatNumber'] = vatNumber;
|
|
1870
|
+
}
|
|
1871
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1872
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1873
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1874
|
+
return [2 /*return*/, {
|
|
1875
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1876
|
+
options: localVarRequestOptions,
|
|
1877
|
+
}];
|
|
1878
|
+
});
|
|
1879
|
+
});
|
|
1880
|
+
},
|
|
1881
|
+
/**
|
|
1882
|
+
* Update Account Contact
|
|
1883
|
+
* @param {string} id Account Xero ID
|
|
1884
|
+
* @param {number} contactId Contact ID
|
|
1885
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
1886
|
+
* @param {*} [options] Override http request option.
|
|
1887
|
+
* @throws {RequiredError}
|
|
1888
|
+
*/
|
|
1889
|
+
putAdminUpdateAccountContact: function (id_1, contactId_1, accountContactRequestModel_1) {
|
|
1890
|
+
var args_1 = [];
|
|
1891
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
1892
|
+
args_1[_i - 3] = arguments[_i];
|
|
1893
|
+
}
|
|
1894
|
+
return __awaiter(_this, __spreadArray([id_1, contactId_1, accountContactRequestModel_1], args_1, true), void 0, function (id, contactId, accountContactRequestModel, options) {
|
|
1895
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1896
|
+
if (options === void 0) { options = {}; }
|
|
1897
|
+
return __generator(this, function (_a) {
|
|
1898
|
+
// verify required parameter 'id' is not null or undefined
|
|
1899
|
+
(0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'id', id);
|
|
1900
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
1901
|
+
(0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'contactId', contactId);
|
|
1902
|
+
localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
|
|
1903
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
1904
|
+
.replace('{contact_id}', encodeURIComponent(String(contactId)));
|
|
1905
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1906
|
+
if (configuration) {
|
|
1907
|
+
baseOptions = configuration.baseOptions;
|
|
1908
|
+
}
|
|
1909
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1910
|
+
localVarHeaderParameter = {};
|
|
1911
|
+
localVarQueryParameter = {};
|
|
1912
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1913
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1914
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1915
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1916
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
|
|
1917
|
+
return [2 /*return*/, {
|
|
1918
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1919
|
+
options: localVarRequestOptions,
|
|
1920
|
+
}];
|
|
1921
|
+
});
|
|
1922
|
+
});
|
|
1923
|
+
},
|
|
1924
|
+
/**
|
|
1925
|
+
* Update Account Contacts
|
|
1926
|
+
* @summary Update Account Contact
|
|
1927
|
+
* @param {string} email Contact Email Address
|
|
1928
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Account request
|
|
1929
|
+
* @param {*} [options] Override http request option.
|
|
1930
|
+
* @throws {RequiredError}
|
|
1931
|
+
*/
|
|
1932
|
+
putUpdateAccountContact: function (email_1, accountContactRequestModel_1) {
|
|
1933
|
+
var args_1 = [];
|
|
1934
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1935
|
+
args_1[_i - 2] = arguments[_i];
|
|
1936
|
+
}
|
|
1937
|
+
return __awaiter(_this, __spreadArray([email_1, accountContactRequestModel_1], args_1, true), void 0, function (email, accountContactRequestModel, options) {
|
|
1938
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1939
|
+
if (options === void 0) { options = {}; }
|
|
1940
|
+
return __generator(this, function (_a) {
|
|
1941
|
+
// verify required parameter 'email' is not null or undefined
|
|
1942
|
+
(0, common_1.assertParamExists)('putUpdateAccountContact', 'email', email);
|
|
1943
|
+
localVarPath = "/accounts/me/contacts/{email}"
|
|
1944
|
+
.replace('{email}', encodeURIComponent(String(email)));
|
|
1945
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1946
|
+
if (configuration) {
|
|
1947
|
+
baseOptions = configuration.baseOptions;
|
|
1948
|
+
}
|
|
1949
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1950
|
+
localVarHeaderParameter = {};
|
|
1951
|
+
localVarQueryParameter = {};
|
|
1952
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1953
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1954
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1955
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1956
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
|
|
1957
|
+
return [2 /*return*/, {
|
|
1958
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1959
|
+
options: localVarRequestOptions,
|
|
1960
|
+
}];
|
|
1961
|
+
});
|
|
1962
|
+
});
|
|
1963
|
+
},
|
|
1964
|
+
/**
|
|
1965
|
+
* Update Account Billing Address
|
|
1966
|
+
* @param {string} id Xero ID
|
|
1967
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
1968
|
+
* @param {*} [options] Override http request option.
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
*/
|
|
1971
|
+
putUpdateBillingAddress: function (id_1, addressDTO_1) {
|
|
1972
|
+
var args_1 = [];
|
|
1973
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1974
|
+
args_1[_i - 2] = arguments[_i];
|
|
1975
|
+
}
|
|
1976
|
+
return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
|
|
1977
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1978
|
+
if (options === void 0) { options = {}; }
|
|
1979
|
+
return __generator(this, function (_a) {
|
|
1980
|
+
// verify required parameter 'id' is not null or undefined
|
|
1981
|
+
(0, common_1.assertParamExists)('putUpdateBillingAddress', 'id', id);
|
|
1982
|
+
localVarPath = "/admin/accounts/{id}/billing/address"
|
|
1983
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1984
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1985
|
+
if (configuration) {
|
|
1986
|
+
baseOptions = configuration.baseOptions;
|
|
1987
|
+
}
|
|
1988
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1989
|
+
localVarHeaderParameter = {};
|
|
1990
|
+
localVarQueryParameter = {};
|
|
1991
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1992
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1993
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1994
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1995
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
|
|
1996
|
+
return [2 /*return*/, {
|
|
1997
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1998
|
+
options: localVarRequestOptions,
|
|
1999
|
+
}];
|
|
2000
|
+
});
|
|
2001
|
+
});
|
|
2002
|
+
},
|
|
2003
|
+
/**
|
|
2004
|
+
* Update Account Shipping Address
|
|
2005
|
+
* @param {string} id Xero ID
|
|
2006
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
2007
|
+
* @param {*} [options] Override http request option.
|
|
2008
|
+
* @throws {RequiredError}
|
|
2009
|
+
*/
|
|
2010
|
+
putUpdateShippingAddress: function (id_1, addressDTO_1) {
|
|
2011
|
+
var args_1 = [];
|
|
2012
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2013
|
+
args_1[_i - 2] = arguments[_i];
|
|
2014
|
+
}
|
|
2015
|
+
return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
|
|
2016
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2017
|
+
if (options === void 0) { options = {}; }
|
|
2018
|
+
return __generator(this, function (_a) {
|
|
2019
|
+
// verify required parameter 'id' is not null or undefined
|
|
2020
|
+
(0, common_1.assertParamExists)('putUpdateShippingAddress', 'id', id);
|
|
2021
|
+
localVarPath = "/admin/accounts/{id}/shipping/address"
|
|
2022
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
2023
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2024
|
+
if (configuration) {
|
|
2025
|
+
baseOptions = configuration.baseOptions;
|
|
2026
|
+
}
|
|
2027
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2028
|
+
localVarHeaderParameter = {};
|
|
2029
|
+
localVarQueryParameter = {};
|
|
2030
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2031
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2032
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2033
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2034
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
|
|
2035
|
+
return [2 /*return*/, {
|
|
2036
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2037
|
+
options: localVarRequestOptions,
|
|
2038
|
+
}];
|
|
2039
|
+
});
|
|
2040
|
+
});
|
|
2041
|
+
},
|
|
2042
|
+
};
|
|
1166
2043
|
};
|
|
1167
2044
|
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
1168
2045
|
/**
|
|
@@ -1172,253 +2049,662 @@ var AccountsApiFp = function (configuration) {
|
|
|
1172
2049
|
var localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
1173
2050
|
return {
|
|
1174
2051
|
/**
|
|
1175
|
-
* Delete
|
|
1176
|
-
* @
|
|
1177
|
-
* @param {
|
|
2052
|
+
* Delete Account Contact
|
|
2053
|
+
* @param {string} id Account Xero ID
|
|
2054
|
+
* @param {number} contactId Contact ID
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
*/
|
|
2058
|
+
deleteAdminUpdateAccountContact: function (id, contactId, options) {
|
|
2059
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2060
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2061
|
+
var _a, _b, _c;
|
|
2062
|
+
return __generator(this, function (_d) {
|
|
2063
|
+
switch (_d.label) {
|
|
2064
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options)];
|
|
2065
|
+
case 1:
|
|
2066
|
+
localVarAxiosArgs = _d.sent();
|
|
2067
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2068
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2069
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
});
|
|
2073
|
+
},
|
|
2074
|
+
/**
|
|
2075
|
+
* Delete Account
|
|
2076
|
+
* @param {string} id Account Xero ID
|
|
2077
|
+
* @param {*} [options] Override http request option.
|
|
2078
|
+
* @throws {RequiredError}
|
|
2079
|
+
*/
|
|
2080
|
+
deleteArchiveAccount: function (id, options) {
|
|
2081
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2082
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2083
|
+
var _a, _b, _c;
|
|
2084
|
+
return __generator(this, function (_d) {
|
|
2085
|
+
switch (_d.label) {
|
|
2086
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteArchiveAccount(id, options)];
|
|
2087
|
+
case 1:
|
|
2088
|
+
localVarAxiosArgs = _d.sent();
|
|
2089
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2090
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteArchiveAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2091
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2092
|
+
}
|
|
2093
|
+
});
|
|
2094
|
+
});
|
|
2095
|
+
},
|
|
2096
|
+
/**
|
|
2097
|
+
* Delete client credentials
|
|
2098
|
+
* @summary Delete client credentials
|
|
2099
|
+
* @param {string} id OAuth 2.0 Client ID
|
|
2100
|
+
* @param {*} [options] Override http request option.
|
|
2101
|
+
* @throws {RequiredError}
|
|
2102
|
+
*/
|
|
2103
|
+
deleteDeleteClientCredentials: function (id, options) {
|
|
2104
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2105
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2106
|
+
var _a, _b, _c;
|
|
2107
|
+
return __generator(this, function (_d) {
|
|
2108
|
+
switch (_d.label) {
|
|
2109
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteClientCredentials(id, options)];
|
|
2110
|
+
case 1:
|
|
2111
|
+
localVarAxiosArgs = _d.sent();
|
|
2112
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2113
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteDeleteClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2114
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2115
|
+
}
|
|
2116
|
+
});
|
|
2117
|
+
});
|
|
2118
|
+
},
|
|
2119
|
+
/**
|
|
2120
|
+
* Delete Account Contacts
|
|
2121
|
+
* @summary Delete Account Contact
|
|
2122
|
+
* @param {string} email Contact Email Address
|
|
2123
|
+
* @param {*} [options] Override http request option.
|
|
2124
|
+
* @throws {RequiredError}
|
|
2125
|
+
*/
|
|
2126
|
+
deleteUpdateAccountContact: function (email, options) {
|
|
2127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2128
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2129
|
+
var _a, _b, _c;
|
|
2130
|
+
return __generator(this, function (_d) {
|
|
2131
|
+
switch (_d.label) {
|
|
2132
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateAccountContact(email, options)];
|
|
2133
|
+
case 1:
|
|
2134
|
+
localVarAxiosArgs = _d.sent();
|
|
2135
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2136
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2137
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2138
|
+
}
|
|
2139
|
+
});
|
|
2140
|
+
});
|
|
2141
|
+
},
|
|
2142
|
+
/**
|
|
2143
|
+
* Get Account Contacts
|
|
2144
|
+
* @param {string} id Account Xero ID
|
|
2145
|
+
* @param {*} [options] Override http request option.
|
|
2146
|
+
* @throws {RequiredError}
|
|
2147
|
+
*/
|
|
2148
|
+
getAdminCreateAccountContact: function (id, options) {
|
|
2149
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2150
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2151
|
+
var _a, _b, _c;
|
|
2152
|
+
return __generator(this, function (_d) {
|
|
2153
|
+
switch (_d.label) {
|
|
2154
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAdminCreateAccountContact(id, options)];
|
|
2155
|
+
case 1:
|
|
2156
|
+
localVarAxiosArgs = _d.sent();
|
|
2157
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2158
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getAdminCreateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2159
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2160
|
+
}
|
|
2161
|
+
});
|
|
2162
|
+
});
|
|
2163
|
+
},
|
|
2164
|
+
/**
|
|
2165
|
+
* Get Account
|
|
2166
|
+
* @summary Get Account
|
|
2167
|
+
* @param {*} [options] Override http request option.
|
|
2168
|
+
* @throws {RequiredError}
|
|
2169
|
+
*/
|
|
2170
|
+
getGetAccount: function (options) {
|
|
2171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2172
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2173
|
+
var _a, _b, _c;
|
|
2174
|
+
return __generator(this, function (_d) {
|
|
2175
|
+
switch (_d.label) {
|
|
2176
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccount(options)];
|
|
2177
|
+
case 1:
|
|
2178
|
+
localVarAxiosArgs = _d.sent();
|
|
2179
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2180
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2181
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2182
|
+
}
|
|
2183
|
+
});
|
|
2184
|
+
});
|
|
2185
|
+
},
|
|
2186
|
+
/**
|
|
2187
|
+
* Get Account Addresses
|
|
2188
|
+
* @param {string} id Xero ID
|
|
2189
|
+
* @param {*} [options] Override http request option.
|
|
2190
|
+
* @throws {RequiredError}
|
|
2191
|
+
*/
|
|
2192
|
+
getGetAccountAddresses: function (id, options) {
|
|
2193
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2194
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2195
|
+
var _a, _b, _c;
|
|
2196
|
+
return __generator(this, function (_d) {
|
|
2197
|
+
switch (_d.label) {
|
|
2198
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountAddresses(id, options)];
|
|
2199
|
+
case 1:
|
|
2200
|
+
localVarAxiosArgs = _d.sent();
|
|
2201
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2202
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountAddresses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2203
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2204
|
+
}
|
|
2205
|
+
});
|
|
2206
|
+
});
|
|
2207
|
+
},
|
|
2208
|
+
/**
|
|
2209
|
+
* Get Account Contacts
|
|
2210
|
+
* @summary Get Account Contacts
|
|
2211
|
+
* @param {string} [email] Contact Email Address
|
|
2212
|
+
* @param {*} [options] Override http request option.
|
|
2213
|
+
* @throws {RequiredError}
|
|
2214
|
+
*/
|
|
2215
|
+
getGetAccountContacts: function (email, options) {
|
|
2216
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2217
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2218
|
+
var _a, _b, _c;
|
|
2219
|
+
return __generator(this, function (_d) {
|
|
2220
|
+
switch (_d.label) {
|
|
2221
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountContacts(email, options)];
|
|
2222
|
+
case 1:
|
|
2223
|
+
localVarAxiosArgs = _d.sent();
|
|
2224
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2225
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountContacts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2226
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2227
|
+
}
|
|
2228
|
+
});
|
|
2229
|
+
});
|
|
2230
|
+
},
|
|
2231
|
+
/**
|
|
2232
|
+
* Get Account Detailed Summary
|
|
2233
|
+
* @summary Get Account Detailed Summary
|
|
2234
|
+
* @param {number} id Customer ID
|
|
2235
|
+
* @param {*} [options] Override http request option.
|
|
2236
|
+
* @throws {RequiredError}
|
|
2237
|
+
*/
|
|
2238
|
+
getGetAccountDetailedSummary: function (id, options) {
|
|
2239
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2240
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2241
|
+
var _a, _b, _c;
|
|
2242
|
+
return __generator(this, function (_d) {
|
|
2243
|
+
switch (_d.label) {
|
|
2244
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options)];
|
|
2245
|
+
case 1:
|
|
2246
|
+
localVarAxiosArgs = _d.sent();
|
|
2247
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2248
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccountDetailedSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2249
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2250
|
+
}
|
|
2251
|
+
});
|
|
2252
|
+
});
|
|
2253
|
+
},
|
|
2254
|
+
/**
|
|
2255
|
+
* Get Accounts
|
|
2256
|
+
* @summary Get Accounts
|
|
2257
|
+
* @param {number} [pageSize] Number Of Results
|
|
2258
|
+
* @param {number} [page] Page Number
|
|
2259
|
+
* @param {string} [search] Search
|
|
2260
|
+
* @param {boolean} [active] Active
|
|
2261
|
+
* @param {*} [options] Override http request option.
|
|
2262
|
+
* @throws {RequiredError}
|
|
2263
|
+
*/
|
|
2264
|
+
getGetAccounts: function (pageSize, page, search, active, options) {
|
|
2265
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2266
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2267
|
+
var _a, _b, _c;
|
|
2268
|
+
return __generator(this, function (_d) {
|
|
2269
|
+
switch (_d.label) {
|
|
2270
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAccounts(pageSize, page, search, active, options)];
|
|
2271
|
+
case 1:
|
|
2272
|
+
localVarAxiosArgs = _d.sent();
|
|
2273
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2274
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2275
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2276
|
+
}
|
|
2277
|
+
});
|
|
2278
|
+
});
|
|
2279
|
+
},
|
|
2280
|
+
/**
|
|
2281
|
+
* Get user\'s client credentials
|
|
2282
|
+
* @summary Get user\'s client credentials
|
|
2283
|
+
* @param {*} [options] Override http request option.
|
|
2284
|
+
* @throws {RequiredError}
|
|
2285
|
+
*/
|
|
2286
|
+
getGetClientCredentials: function (options) {
|
|
2287
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2288
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2289
|
+
var _a, _b, _c;
|
|
2290
|
+
return __generator(this, function (_d) {
|
|
2291
|
+
switch (_d.label) {
|
|
2292
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetClientCredentials(options)];
|
|
2293
|
+
case 1:
|
|
2294
|
+
localVarAxiosArgs = _d.sent();
|
|
2295
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2296
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2297
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2298
|
+
}
|
|
2299
|
+
});
|
|
2300
|
+
});
|
|
2301
|
+
},
|
|
2302
|
+
/**
|
|
2303
|
+
* Get 3CX Keys
|
|
2304
|
+
* @summary Get 3CX Keys
|
|
2305
|
+
* @param {*} [options] Override http request option.
|
|
2306
|
+
* @throws {RequiredError}
|
|
2307
|
+
*/
|
|
2308
|
+
getGetCustomerKeys: function (options) {
|
|
2309
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2310
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2311
|
+
var _a, _b, _c;
|
|
2312
|
+
return __generator(this, function (_d) {
|
|
2313
|
+
switch (_d.label) {
|
|
2314
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerKeys(options)];
|
|
2315
|
+
case 1:
|
|
2316
|
+
localVarAxiosArgs = _d.sent();
|
|
2317
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2318
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetCustomerKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2319
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2320
|
+
}
|
|
2321
|
+
});
|
|
2322
|
+
});
|
|
2323
|
+
},
|
|
2324
|
+
/**
|
|
2325
|
+
* Get Account Finance
|
|
2326
|
+
* @param {string} id Account Xero ID
|
|
2327
|
+
* @param {*} [options] Override http request option.
|
|
2328
|
+
* @throws {RequiredError}
|
|
2329
|
+
*/
|
|
2330
|
+
getGetFinanceSettings: function (id, options) {
|
|
2331
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2332
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2333
|
+
var _a, _b, _c;
|
|
2334
|
+
return __generator(this, function (_d) {
|
|
2335
|
+
switch (_d.label) {
|
|
2336
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetFinanceSettings(id, options)];
|
|
2337
|
+
case 1:
|
|
2338
|
+
localVarAxiosArgs = _d.sent();
|
|
2339
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2340
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetFinanceSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2341
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
});
|
|
2345
|
+
},
|
|
2346
|
+
/**
|
|
2347
|
+
* Get Account 3CX Details
|
|
2348
|
+
* @param {string} id Xero ID
|
|
2349
|
+
* @param {*} [options] Override http request option.
|
|
2350
|
+
* @throws {RequiredError}
|
|
2351
|
+
*/
|
|
2352
|
+
getGetTcxPartnerDetails: function (id, options) {
|
|
2353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2354
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2355
|
+
var _a, _b, _c;
|
|
2356
|
+
return __generator(this, function (_d) {
|
|
2357
|
+
switch (_d.label) {
|
|
2358
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetTcxPartnerDetails(id, options)];
|
|
2359
|
+
case 1:
|
|
2360
|
+
localVarAxiosArgs = _d.sent();
|
|
2361
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2362
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetTcxPartnerDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2363
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2364
|
+
}
|
|
2365
|
+
});
|
|
2366
|
+
});
|
|
2367
|
+
},
|
|
2368
|
+
/**
|
|
2369
|
+
* Verify account email address
|
|
2370
|
+
* @summary Verify account email address
|
|
2371
|
+
* @param {string} token Verification Token
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
*/
|
|
2375
|
+
getVerifyEmailAddress: function (token, options) {
|
|
2376
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2377
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2378
|
+
var _a, _b, _c;
|
|
2379
|
+
return __generator(this, function (_d) {
|
|
2380
|
+
switch (_d.label) {
|
|
2381
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVerifyEmailAddress(token, options)];
|
|
2382
|
+
case 1:
|
|
2383
|
+
localVarAxiosArgs = _d.sent();
|
|
2384
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2385
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getVerifyEmailAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2386
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2387
|
+
}
|
|
2388
|
+
});
|
|
2389
|
+
});
|
|
2390
|
+
},
|
|
2391
|
+
/**
|
|
2392
|
+
* Set Account Portal Access
|
|
2393
|
+
* @param {string} id Xero ID
|
|
2394
|
+
* @param {PatchSetPortalAccessStateEnum} state Portal Access State
|
|
2395
|
+
* @param {*} [options] Override http request option.
|
|
2396
|
+
* @throws {RequiredError}
|
|
2397
|
+
*/
|
|
2398
|
+
patchSetPortalAccess: function (id, state, options) {
|
|
2399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2400
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2401
|
+
var _a, _b, _c;
|
|
2402
|
+
return __generator(this, function (_d) {
|
|
2403
|
+
switch (_d.label) {
|
|
2404
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetPortalAccess(id, state, options)];
|
|
2405
|
+
case 1:
|
|
2406
|
+
localVarAxiosArgs = _d.sent();
|
|
2407
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2408
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetPortalAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2409
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2410
|
+
}
|
|
2411
|
+
});
|
|
2412
|
+
});
|
|
2413
|
+
},
|
|
2414
|
+
/**
|
|
2415
|
+
* Set Account Prize Promo
|
|
2416
|
+
* @param {string} id Xero ID
|
|
2417
|
+
* @param {PatchSetPrizePromoStateEnum} state Prize Promo State
|
|
2418
|
+
* @param {*} [options] Override http request option.
|
|
2419
|
+
* @throws {RequiredError}
|
|
2420
|
+
*/
|
|
2421
|
+
patchSetPrizePromo: function (id, state, options) {
|
|
2422
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2423
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2424
|
+
var _a, _b, _c;
|
|
2425
|
+
return __generator(this, function (_d) {
|
|
2426
|
+
switch (_d.label) {
|
|
2427
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetPrizePromo(id, state, options)];
|
|
2428
|
+
case 1:
|
|
2429
|
+
localVarAxiosArgs = _d.sent();
|
|
2430
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2431
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetPrizePromo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2432
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2433
|
+
}
|
|
2434
|
+
});
|
|
2435
|
+
});
|
|
2436
|
+
},
|
|
2437
|
+
/**
|
|
2438
|
+
* Set 3CX Wizard CNAME
|
|
2439
|
+
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
2440
|
+
* @param {*} [options] Override http request option.
|
|
2441
|
+
* @throws {RequiredError}
|
|
2442
|
+
*/
|
|
2443
|
+
patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest, options) {
|
|
2444
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2445
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2446
|
+
var _a, _b, _c;
|
|
2447
|
+
return __generator(this, function (_d) {
|
|
2448
|
+
switch (_d.label) {
|
|
2449
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options)];
|
|
2450
|
+
case 1:
|
|
2451
|
+
localVarAxiosArgs = _d.sent();
|
|
2452
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2453
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetTcxWizardCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2454
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2455
|
+
}
|
|
2456
|
+
});
|
|
2457
|
+
});
|
|
2458
|
+
},
|
|
2459
|
+
/**
|
|
2460
|
+
* Set Account CNAME
|
|
2461
|
+
* @param {string} id Xero ID
|
|
2462
|
+
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
1178
2463
|
* @param {*} [options] Override http request option.
|
|
1179
2464
|
* @throws {RequiredError}
|
|
1180
2465
|
*/
|
|
1181
|
-
|
|
2466
|
+
patchUpdateAccountCname: function (id, patchUpdateAccountCnameRequest, options) {
|
|
1182
2467
|
return __awaiter(this, void 0, void 0, function () {
|
|
1183
2468
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1184
2469
|
var _a, _b, _c;
|
|
1185
2470
|
return __generator(this, function (_d) {
|
|
1186
2471
|
switch (_d.label) {
|
|
1187
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2472
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options)];
|
|
1188
2473
|
case 1:
|
|
1189
2474
|
localVarAxiosArgs = _d.sent();
|
|
1190
2475
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1191
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2476
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountCname']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1192
2477
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1193
2478
|
}
|
|
1194
2479
|
});
|
|
1195
2480
|
});
|
|
1196
2481
|
},
|
|
1197
2482
|
/**
|
|
1198
|
-
*
|
|
1199
|
-
* @
|
|
1200
|
-
* @param {
|
|
2483
|
+
* Set Account Company Number
|
|
2484
|
+
* @param {string} id Xero ID
|
|
2485
|
+
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
1201
2486
|
* @param {*} [options] Override http request option.
|
|
1202
2487
|
* @throws {RequiredError}
|
|
1203
2488
|
*/
|
|
1204
|
-
|
|
2489
|
+
patchUpdateAccountCompanyNumber: function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
1205
2490
|
return __awaiter(this, void 0, void 0, function () {
|
|
1206
2491
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1207
2492
|
var _a, _b, _c;
|
|
1208
2493
|
return __generator(this, function (_d) {
|
|
1209
2494
|
switch (_d.label) {
|
|
1210
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2495
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options)];
|
|
1211
2496
|
case 1:
|
|
1212
2497
|
localVarAxiosArgs = _d.sent();
|
|
1213
2498
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1214
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2499
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountCompanyNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1215
2500
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1216
2501
|
}
|
|
1217
2502
|
});
|
|
1218
2503
|
});
|
|
1219
2504
|
},
|
|
1220
2505
|
/**
|
|
1221
|
-
*
|
|
1222
|
-
* @summary
|
|
2506
|
+
* Update Account Password
|
|
2507
|
+
* @summary Update Account Password
|
|
2508
|
+
* @param {string} token Verification Token
|
|
2509
|
+
* @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
|
|
1223
2510
|
* @param {*} [options] Override http request option.
|
|
1224
2511
|
* @throws {RequiredError}
|
|
1225
2512
|
*/
|
|
1226
|
-
|
|
2513
|
+
patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
|
|
1227
2514
|
return __awaiter(this, void 0, void 0, function () {
|
|
1228
2515
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1229
2516
|
var _a, _b, _c;
|
|
1230
2517
|
return __generator(this, function (_d) {
|
|
1231
2518
|
switch (_d.label) {
|
|
1232
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2519
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options)];
|
|
1233
2520
|
case 1:
|
|
1234
2521
|
localVarAxiosArgs = _d.sent();
|
|
1235
2522
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1236
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2523
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountContactPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1237
2524
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1238
2525
|
}
|
|
1239
2526
|
});
|
|
1240
2527
|
});
|
|
1241
2528
|
},
|
|
1242
2529
|
/**
|
|
1243
|
-
*
|
|
1244
|
-
* @
|
|
1245
|
-
* @param {
|
|
2530
|
+
* Set Account Phone
|
|
2531
|
+
* @param {string} id Xero ID
|
|
2532
|
+
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
1246
2533
|
* @param {*} [options] Override http request option.
|
|
1247
2534
|
* @throws {RequiredError}
|
|
1248
2535
|
*/
|
|
1249
|
-
|
|
2536
|
+
patchUpdateAccountPhone: function (id, patchUpdateAccountPhoneRequest, options) {
|
|
1250
2537
|
return __awaiter(this, void 0, void 0, function () {
|
|
1251
2538
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1252
2539
|
var _a, _b, _c;
|
|
1253
2540
|
return __generator(this, function (_d) {
|
|
1254
2541
|
switch (_d.label) {
|
|
1255
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2542
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options)];
|
|
1256
2543
|
case 1:
|
|
1257
2544
|
localVarAxiosArgs = _d.sent();
|
|
1258
2545
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1259
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2546
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountPhone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1260
2547
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1261
2548
|
}
|
|
1262
2549
|
});
|
|
1263
2550
|
});
|
|
1264
2551
|
},
|
|
1265
2552
|
/**
|
|
1266
|
-
*
|
|
1267
|
-
* @
|
|
1268
|
-
* @param {
|
|
2553
|
+
* Set Account VAT Number
|
|
2554
|
+
* @param {string} id Xero ID
|
|
2555
|
+
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
1269
2556
|
* @param {*} [options] Override http request option.
|
|
1270
2557
|
* @throws {RequiredError}
|
|
1271
2558
|
*/
|
|
1272
|
-
|
|
2559
|
+
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
1273
2560
|
return __awaiter(this, void 0, void 0, function () {
|
|
1274
2561
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1275
2562
|
var _a, _b, _c;
|
|
1276
2563
|
return __generator(this, function (_d) {
|
|
1277
2564
|
switch (_d.label) {
|
|
1278
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2565
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options)];
|
|
1279
2566
|
case 1:
|
|
1280
2567
|
localVarAxiosArgs = _d.sent();
|
|
1281
2568
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1282
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2569
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateAccountVatNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1283
2570
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1284
2571
|
}
|
|
1285
2572
|
});
|
|
1286
2573
|
});
|
|
1287
2574
|
},
|
|
1288
2575
|
/**
|
|
1289
|
-
*
|
|
1290
|
-
* @
|
|
1291
|
-
* @param {
|
|
1292
|
-
* @param {number} [page] Page Number
|
|
1293
|
-
* @param {string} [search] Search
|
|
1294
|
-
* @param {boolean} [active] Active
|
|
2576
|
+
* Set Account Credit Limit
|
|
2577
|
+
* @param {string} id Xero ID
|
|
2578
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
1295
2579
|
* @param {*} [options] Override http request option.
|
|
1296
2580
|
* @throws {RequiredError}
|
|
1297
2581
|
*/
|
|
1298
|
-
|
|
2582
|
+
patchUpdateCreditLimit: function (id, patchUpdateCreditLimitRequest, options) {
|
|
1299
2583
|
return __awaiter(this, void 0, void 0, function () {
|
|
1300
2584
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1301
2585
|
var _a, _b, _c;
|
|
1302
2586
|
return __generator(this, function (_d) {
|
|
1303
2587
|
switch (_d.label) {
|
|
1304
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2588
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options)];
|
|
1305
2589
|
case 1:
|
|
1306
2590
|
localVarAxiosArgs = _d.sent();
|
|
1307
2591
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1308
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2592
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateCreditLimit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1309
2593
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1310
2594
|
}
|
|
1311
2595
|
});
|
|
1312
2596
|
});
|
|
1313
2597
|
},
|
|
1314
2598
|
/**
|
|
1315
|
-
*
|
|
1316
|
-
* @
|
|
2599
|
+
* Set Account Price List
|
|
2600
|
+
* @param {string} id Xero ID
|
|
2601
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
1317
2602
|
* @param {*} [options] Override http request option.
|
|
1318
2603
|
* @throws {RequiredError}
|
|
1319
2604
|
*/
|
|
1320
|
-
|
|
2605
|
+
patchUpdatePriceList: function (id, patchUpdatePriceListRequest, options) {
|
|
1321
2606
|
return __awaiter(this, void 0, void 0, function () {
|
|
1322
2607
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1323
2608
|
var _a, _b, _c;
|
|
1324
2609
|
return __generator(this, function (_d) {
|
|
1325
2610
|
switch (_d.label) {
|
|
1326
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2611
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdatePriceList(id, patchUpdatePriceListRequest, options)];
|
|
1327
2612
|
case 1:
|
|
1328
2613
|
localVarAxiosArgs = _d.sent();
|
|
1329
2614
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1330
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2615
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdatePriceList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1331
2616
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1332
2617
|
}
|
|
1333
2618
|
});
|
|
1334
2619
|
});
|
|
1335
2620
|
},
|
|
1336
2621
|
/**
|
|
1337
|
-
*
|
|
1338
|
-
* @
|
|
2622
|
+
* Set Account SIP Channel Cost
|
|
2623
|
+
* @param {string} id Xero ID
|
|
2624
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
1339
2625
|
* @param {*} [options] Override http request option.
|
|
1340
2626
|
* @throws {RequiredError}
|
|
1341
2627
|
*/
|
|
1342
|
-
|
|
2628
|
+
patchUpdateSipChannelCost: function (id, patchUpdateSipChannelCostRequest, options) {
|
|
1343
2629
|
return __awaiter(this, void 0, void 0, function () {
|
|
1344
2630
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1345
2631
|
var _a, _b, _c;
|
|
1346
2632
|
return __generator(this, function (_d) {
|
|
1347
2633
|
switch (_d.label) {
|
|
1348
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2634
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options)];
|
|
1349
2635
|
case 1:
|
|
1350
2636
|
localVarAxiosArgs = _d.sent();
|
|
1351
2637
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1352
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2638
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateSipChannelCost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1353
2639
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1354
2640
|
}
|
|
1355
2641
|
});
|
|
1356
2642
|
});
|
|
1357
2643
|
},
|
|
1358
2644
|
/**
|
|
1359
|
-
*
|
|
1360
|
-
* @
|
|
1361
|
-
* @param {
|
|
2645
|
+
* Set Account 3CX Hosting Price List
|
|
2646
|
+
* @param {string} id Xero ID
|
|
2647
|
+
* @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
|
|
1362
2648
|
* @param {*} [options] Override http request option.
|
|
1363
2649
|
* @throws {RequiredError}
|
|
1364
2650
|
*/
|
|
1365
|
-
|
|
2651
|
+
patchUpdateTcxHostingPriceList: function (id, patchUpdateTcxHostingPriceListRequest, options) {
|
|
1366
2652
|
return __awaiter(this, void 0, void 0, function () {
|
|
1367
2653
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1368
2654
|
var _a, _b, _c;
|
|
1369
2655
|
return __generator(this, function (_d) {
|
|
1370
2656
|
switch (_d.label) {
|
|
1371
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2657
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options)];
|
|
1372
2658
|
case 1:
|
|
1373
2659
|
localVarAxiosArgs = _d.sent();
|
|
1374
2660
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1375
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2661
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateTcxHostingPriceList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1376
2662
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1377
2663
|
}
|
|
1378
2664
|
});
|
|
1379
2665
|
});
|
|
1380
2666
|
},
|
|
1381
2667
|
/**
|
|
1382
|
-
* Set 3CX
|
|
1383
|
-
* @param {
|
|
2668
|
+
* Set Account 3CX Partner ID
|
|
2669
|
+
* @param {string} id Xero ID
|
|
2670
|
+
* @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
|
|
1384
2671
|
* @param {*} [options] Override http request option.
|
|
1385
2672
|
* @throws {RequiredError}
|
|
1386
2673
|
*/
|
|
1387
|
-
|
|
2674
|
+
patchUpdateTcxPartnerId: function (id, patchUpdateTcxPartnerIdRequest, options) {
|
|
1388
2675
|
return __awaiter(this, void 0, void 0, function () {
|
|
1389
2676
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1390
2677
|
var _a, _b, _c;
|
|
1391
2678
|
return __generator(this, function (_d) {
|
|
1392
2679
|
switch (_d.label) {
|
|
1393
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2680
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options)];
|
|
1394
2681
|
case 1:
|
|
1395
2682
|
localVarAxiosArgs = _d.sent();
|
|
1396
2683
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1397
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2684
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateTcxPartnerId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1398
2685
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1399
2686
|
}
|
|
1400
2687
|
});
|
|
1401
2688
|
});
|
|
1402
2689
|
},
|
|
1403
2690
|
/**
|
|
1404
|
-
*
|
|
1405
|
-
* @
|
|
1406
|
-
* @param {
|
|
1407
|
-
* @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
|
|
2691
|
+
* Create Account Contact
|
|
2692
|
+
* @param {string} id Account Xero ID
|
|
2693
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
1408
2694
|
* @param {*} [options] Override http request option.
|
|
1409
2695
|
* @throws {RequiredError}
|
|
1410
2696
|
*/
|
|
1411
|
-
|
|
2697
|
+
postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
|
|
1412
2698
|
return __awaiter(this, void 0, void 0, function () {
|
|
1413
2699
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1414
2700
|
var _a, _b, _c;
|
|
1415
2701
|
return __generator(this, function (_d) {
|
|
1416
2702
|
switch (_d.label) {
|
|
1417
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
2703
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options)];
|
|
1418
2704
|
case 1:
|
|
1419
2705
|
localVarAxiosArgs = _d.sent();
|
|
1420
2706
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1421
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.
|
|
2707
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postAdminCreateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1422
2708
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1423
2709
|
}
|
|
1424
2710
|
});
|
|
@@ -1561,6 +2847,29 @@ var AccountsApiFp = function (configuration) {
|
|
|
1561
2847
|
});
|
|
1562
2848
|
});
|
|
1563
2849
|
},
|
|
2850
|
+
/**
|
|
2851
|
+
* Send Account Welcome Email
|
|
2852
|
+
* @param {string} id Xero ID
|
|
2853
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
2854
|
+
* @param {*} [options] Override http request option.
|
|
2855
|
+
* @throws {RequiredError}
|
|
2856
|
+
*/
|
|
2857
|
+
postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
|
|
2858
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2859
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2860
|
+
var _a, _b, _c;
|
|
2861
|
+
return __generator(this, function (_d) {
|
|
2862
|
+
switch (_d.label) {
|
|
2863
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options)];
|
|
2864
|
+
case 1:
|
|
2865
|
+
localVarAxiosArgs = _d.sent();
|
|
2866
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2867
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postSendWelcomeEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2868
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2869
|
+
}
|
|
2870
|
+
});
|
|
2871
|
+
});
|
|
2872
|
+
},
|
|
1564
2873
|
/**
|
|
1565
2874
|
* Submit reseller application
|
|
1566
2875
|
* @summary Submit reseller application
|
|
@@ -1586,6 +2895,30 @@ var AccountsApiFp = function (configuration) {
|
|
|
1586
2895
|
});
|
|
1587
2896
|
});
|
|
1588
2897
|
},
|
|
2898
|
+
/**
|
|
2899
|
+
* Update Account Contact
|
|
2900
|
+
* @param {string} id Account Xero ID
|
|
2901
|
+
* @param {number} contactId Contact ID
|
|
2902
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
2903
|
+
* @param {*} [options] Override http request option.
|
|
2904
|
+
* @throws {RequiredError}
|
|
2905
|
+
*/
|
|
2906
|
+
putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
|
|
2907
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2908
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2909
|
+
var _a, _b, _c;
|
|
2910
|
+
return __generator(this, function (_d) {
|
|
2911
|
+
switch (_d.label) {
|
|
2912
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options)];
|
|
2913
|
+
case 1:
|
|
2914
|
+
localVarAxiosArgs = _d.sent();
|
|
2915
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2916
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2917
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2918
|
+
}
|
|
2919
|
+
});
|
|
2920
|
+
});
|
|
2921
|
+
},
|
|
1589
2922
|
/**
|
|
1590
2923
|
* Update Account Contacts
|
|
1591
2924
|
* @summary Update Account Contact
|
|
@@ -1610,6 +2943,52 @@ var AccountsApiFp = function (configuration) {
|
|
|
1610
2943
|
});
|
|
1611
2944
|
});
|
|
1612
2945
|
},
|
|
2946
|
+
/**
|
|
2947
|
+
* Update Account Billing Address
|
|
2948
|
+
* @param {string} id Xero ID
|
|
2949
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
2950
|
+
* @param {*} [options] Override http request option.
|
|
2951
|
+
* @throws {RequiredError}
|
|
2952
|
+
*/
|
|
2953
|
+
putUpdateBillingAddress: function (id, addressDTO, options) {
|
|
2954
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2955
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2956
|
+
var _a, _b, _c;
|
|
2957
|
+
return __generator(this, function (_d) {
|
|
2958
|
+
switch (_d.label) {
|
|
2959
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options)];
|
|
2960
|
+
case 1:
|
|
2961
|
+
localVarAxiosArgs = _d.sent();
|
|
2962
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2963
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateBillingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2964
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2965
|
+
}
|
|
2966
|
+
});
|
|
2967
|
+
});
|
|
2968
|
+
},
|
|
2969
|
+
/**
|
|
2970
|
+
* Update Account Shipping Address
|
|
2971
|
+
* @param {string} id Xero ID
|
|
2972
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
2973
|
+
* @param {*} [options] Override http request option.
|
|
2974
|
+
* @throws {RequiredError}
|
|
2975
|
+
*/
|
|
2976
|
+
putUpdateShippingAddress: function (id, addressDTO, options) {
|
|
2977
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2978
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2979
|
+
var _a, _b, _c;
|
|
2980
|
+
return __generator(this, function (_d) {
|
|
2981
|
+
switch (_d.label) {
|
|
2982
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateShippingAddress(id, addressDTO, options)];
|
|
2983
|
+
case 1:
|
|
2984
|
+
localVarAxiosArgs = _d.sent();
|
|
2985
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2986
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateShippingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2987
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2988
|
+
}
|
|
2989
|
+
});
|
|
2990
|
+
});
|
|
2991
|
+
},
|
|
1613
2992
|
};
|
|
1614
2993
|
};
|
|
1615
2994
|
exports.AccountsApiFp = AccountsApiFp;
|
|
@@ -1619,6 +2998,25 @@ exports.AccountsApiFp = AccountsApiFp;
|
|
|
1619
2998
|
var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
1620
2999
|
var localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
1621
3000
|
return {
|
|
3001
|
+
/**
|
|
3002
|
+
* Delete Account Contact
|
|
3003
|
+
* @param {string} id Account Xero ID
|
|
3004
|
+
* @param {number} contactId Contact ID
|
|
3005
|
+
* @param {*} [options] Override http request option.
|
|
3006
|
+
* @throws {RequiredError}
|
|
3007
|
+
*/
|
|
3008
|
+
deleteAdminUpdateAccountContact: function (id, contactId, options) {
|
|
3009
|
+
return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
|
|
3010
|
+
},
|
|
3011
|
+
/**
|
|
3012
|
+
* Delete Account
|
|
3013
|
+
* @param {string} id Account Xero ID
|
|
3014
|
+
* @param {*} [options] Override http request option.
|
|
3015
|
+
* @throws {RequiredError}
|
|
3016
|
+
*/
|
|
3017
|
+
deleteArchiveAccount: function (id, options) {
|
|
3018
|
+
return localVarFp.deleteArchiveAccount(id, options).then(function (request) { return request(axios, basePath); });
|
|
3019
|
+
},
|
|
1622
3020
|
/**
|
|
1623
3021
|
* Delete client credentials
|
|
1624
3022
|
* @summary Delete client credentials
|
|
@@ -1639,6 +3037,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1639
3037
|
deleteUpdateAccountContact: function (email, options) {
|
|
1640
3038
|
return localVarFp.deleteUpdateAccountContact(email, options).then(function (request) { return request(axios, basePath); });
|
|
1641
3039
|
},
|
|
3040
|
+
/**
|
|
3041
|
+
* Get Account Contacts
|
|
3042
|
+
* @param {string} id Account Xero ID
|
|
3043
|
+
* @param {*} [options] Override http request option.
|
|
3044
|
+
* @throws {RequiredError}
|
|
3045
|
+
*/
|
|
3046
|
+
getAdminCreateAccountContact: function (id, options) {
|
|
3047
|
+
return localVarFp.getAdminCreateAccountContact(id, options).then(function (request) { return request(axios, basePath); });
|
|
3048
|
+
},
|
|
1642
3049
|
/**
|
|
1643
3050
|
* Get Account
|
|
1644
3051
|
* @summary Get Account
|
|
@@ -1648,6 +3055,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1648
3055
|
getGetAccount: function (options) {
|
|
1649
3056
|
return localVarFp.getGetAccount(options).then(function (request) { return request(axios, basePath); });
|
|
1650
3057
|
},
|
|
3058
|
+
/**
|
|
3059
|
+
* Get Account Addresses
|
|
3060
|
+
* @param {string} id Xero ID
|
|
3061
|
+
* @param {*} [options] Override http request option.
|
|
3062
|
+
* @throws {RequiredError}
|
|
3063
|
+
*/
|
|
3064
|
+
getGetAccountAddresses: function (id, options) {
|
|
3065
|
+
return localVarFp.getGetAccountAddresses(id, options).then(function (request) { return request(axios, basePath); });
|
|
3066
|
+
},
|
|
1651
3067
|
/**
|
|
1652
3068
|
* Get Account Contacts
|
|
1653
3069
|
* @summary Get Account Contacts
|
|
@@ -1699,6 +3115,24 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1699
3115
|
getGetCustomerKeys: function (options) {
|
|
1700
3116
|
return localVarFp.getGetCustomerKeys(options).then(function (request) { return request(axios, basePath); });
|
|
1701
3117
|
},
|
|
3118
|
+
/**
|
|
3119
|
+
* Get Account Finance
|
|
3120
|
+
* @param {string} id Account Xero ID
|
|
3121
|
+
* @param {*} [options] Override http request option.
|
|
3122
|
+
* @throws {RequiredError}
|
|
3123
|
+
*/
|
|
3124
|
+
getGetFinanceSettings: function (id, options) {
|
|
3125
|
+
return localVarFp.getGetFinanceSettings(id, options).then(function (request) { return request(axios, basePath); });
|
|
3126
|
+
},
|
|
3127
|
+
/**
|
|
3128
|
+
* Get Account 3CX Details
|
|
3129
|
+
* @param {string} id Xero ID
|
|
3130
|
+
* @param {*} [options] Override http request option.
|
|
3131
|
+
* @throws {RequiredError}
|
|
3132
|
+
*/
|
|
3133
|
+
getGetTcxPartnerDetails: function (id, options) {
|
|
3134
|
+
return localVarFp.getGetTcxPartnerDetails(id, options).then(function (request) { return request(axios, basePath); });
|
|
3135
|
+
},
|
|
1702
3136
|
/**
|
|
1703
3137
|
* Verify account email address
|
|
1704
3138
|
* @summary Verify account email address
|
|
@@ -1709,14 +3143,54 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1709
3143
|
getVerifyEmailAddress: function (token, options) {
|
|
1710
3144
|
return localVarFp.getVerifyEmailAddress(token, options).then(function (request) { return request(axios, basePath); });
|
|
1711
3145
|
},
|
|
3146
|
+
/**
|
|
3147
|
+
* Set Account Portal Access
|
|
3148
|
+
* @param {string} id Xero ID
|
|
3149
|
+
* @param {PatchSetPortalAccessStateEnum} state Portal Access State
|
|
3150
|
+
* @param {*} [options] Override http request option.
|
|
3151
|
+
* @throws {RequiredError}
|
|
3152
|
+
*/
|
|
3153
|
+
patchSetPortalAccess: function (id, state, options) {
|
|
3154
|
+
return localVarFp.patchSetPortalAccess(id, state, options).then(function (request) { return request(axios, basePath); });
|
|
3155
|
+
},
|
|
3156
|
+
/**
|
|
3157
|
+
* Set Account Prize Promo
|
|
3158
|
+
* @param {string} id Xero ID
|
|
3159
|
+
* @param {PatchSetPrizePromoStateEnum} state Prize Promo State
|
|
3160
|
+
* @param {*} [options] Override http request option.
|
|
3161
|
+
* @throws {RequiredError}
|
|
3162
|
+
*/
|
|
3163
|
+
patchSetPrizePromo: function (id, state, options) {
|
|
3164
|
+
return localVarFp.patchSetPrizePromo(id, state, options).then(function (request) { return request(axios, basePath); });
|
|
3165
|
+
},
|
|
1712
3166
|
/**
|
|
1713
3167
|
* Set 3CX Wizard CNAME
|
|
1714
|
-
* @param {
|
|
3168
|
+
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
3169
|
+
* @param {*} [options] Override http request option.
|
|
3170
|
+
* @throws {RequiredError}
|
|
3171
|
+
*/
|
|
3172
|
+
patchSetTcxWizardCname: function (patchUpdateAccountCnameRequest, options) {
|
|
3173
|
+
return localVarFp.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3174
|
+
},
|
|
3175
|
+
/**
|
|
3176
|
+
* Set Account CNAME
|
|
3177
|
+
* @param {string} id Xero ID
|
|
3178
|
+
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
3179
|
+
* @param {*} [options] Override http request option.
|
|
3180
|
+
* @throws {RequiredError}
|
|
3181
|
+
*/
|
|
3182
|
+
patchUpdateAccountCname: function (id, patchUpdateAccountCnameRequest, options) {
|
|
3183
|
+
return localVarFp.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3184
|
+
},
|
|
3185
|
+
/**
|
|
3186
|
+
* Set Account Company Number
|
|
3187
|
+
* @param {string} id Xero ID
|
|
3188
|
+
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
1715
3189
|
* @param {*} [options] Override http request option.
|
|
1716
3190
|
* @throws {RequiredError}
|
|
1717
3191
|
*/
|
|
1718
|
-
|
|
1719
|
-
return localVarFp.
|
|
3192
|
+
patchUpdateAccountCompanyNumber: function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
3193
|
+
return localVarFp.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1720
3194
|
},
|
|
1721
3195
|
/**
|
|
1722
3196
|
* Update Account Password
|
|
@@ -1729,6 +3203,86 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1729
3203
|
patchUpdateAccountContactPassword: function (token, patchUpdateAccountContactPasswordRequest, options) {
|
|
1730
3204
|
return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(axios, basePath); });
|
|
1731
3205
|
},
|
|
3206
|
+
/**
|
|
3207
|
+
* Set Account Phone
|
|
3208
|
+
* @param {string} id Xero ID
|
|
3209
|
+
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
3210
|
+
* @param {*} [options] Override http request option.
|
|
3211
|
+
* @throws {RequiredError}
|
|
3212
|
+
*/
|
|
3213
|
+
patchUpdateAccountPhone: function (id, patchUpdateAccountPhoneRequest, options) {
|
|
3214
|
+
return localVarFp.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3215
|
+
},
|
|
3216
|
+
/**
|
|
3217
|
+
* Set Account VAT Number
|
|
3218
|
+
* @param {string} id Xero ID
|
|
3219
|
+
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
3220
|
+
* @param {*} [options] Override http request option.
|
|
3221
|
+
* @throws {RequiredError}
|
|
3222
|
+
*/
|
|
3223
|
+
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
3224
|
+
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3225
|
+
},
|
|
3226
|
+
/**
|
|
3227
|
+
* Set Account Credit Limit
|
|
3228
|
+
* @param {string} id Xero ID
|
|
3229
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
3230
|
+
* @param {*} [options] Override http request option.
|
|
3231
|
+
* @throws {RequiredError}
|
|
3232
|
+
*/
|
|
3233
|
+
patchUpdateCreditLimit: function (id, patchUpdateCreditLimitRequest, options) {
|
|
3234
|
+
return localVarFp.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3235
|
+
},
|
|
3236
|
+
/**
|
|
3237
|
+
* Set Account Price List
|
|
3238
|
+
* @param {string} id Xero ID
|
|
3239
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
3240
|
+
* @param {*} [options] Override http request option.
|
|
3241
|
+
* @throws {RequiredError}
|
|
3242
|
+
*/
|
|
3243
|
+
patchUpdatePriceList: function (id, patchUpdatePriceListRequest, options) {
|
|
3244
|
+
return localVarFp.patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3245
|
+
},
|
|
3246
|
+
/**
|
|
3247
|
+
* Set Account SIP Channel Cost
|
|
3248
|
+
* @param {string} id Xero ID
|
|
3249
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
3250
|
+
* @param {*} [options] Override http request option.
|
|
3251
|
+
* @throws {RequiredError}
|
|
3252
|
+
*/
|
|
3253
|
+
patchUpdateSipChannelCost: function (id, patchUpdateSipChannelCostRequest, options) {
|
|
3254
|
+
return localVarFp.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3255
|
+
},
|
|
3256
|
+
/**
|
|
3257
|
+
* Set Account 3CX Hosting Price List
|
|
3258
|
+
* @param {string} id Xero ID
|
|
3259
|
+
* @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
|
|
3260
|
+
* @param {*} [options] Override http request option.
|
|
3261
|
+
* @throws {RequiredError}
|
|
3262
|
+
*/
|
|
3263
|
+
patchUpdateTcxHostingPriceList: function (id, patchUpdateTcxHostingPriceListRequest, options) {
|
|
3264
|
+
return localVarFp.patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3265
|
+
},
|
|
3266
|
+
/**
|
|
3267
|
+
* Set Account 3CX Partner ID
|
|
3268
|
+
* @param {string} id Xero ID
|
|
3269
|
+
* @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
|
|
3270
|
+
* @param {*} [options] Override http request option.
|
|
3271
|
+
* @throws {RequiredError}
|
|
3272
|
+
*/
|
|
3273
|
+
patchUpdateTcxPartnerId: function (id, patchUpdateTcxPartnerIdRequest, options) {
|
|
3274
|
+
return localVarFp.patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3275
|
+
},
|
|
3276
|
+
/**
|
|
3277
|
+
* Create Account Contact
|
|
3278
|
+
* @param {string} id Account Xero ID
|
|
3279
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
3280
|
+
* @param {*} [options] Override http request option.
|
|
3281
|
+
* @throws {RequiredError}
|
|
3282
|
+
*/
|
|
3283
|
+
postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
|
|
3284
|
+
return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
3285
|
+
},
|
|
1732
3286
|
/**
|
|
1733
3287
|
* Add Account Contacts
|
|
1734
3288
|
* @summary Add Account Contact
|
|
@@ -1788,6 +3342,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1788
3342
|
postSendPasswordReset: function (email, options) {
|
|
1789
3343
|
return localVarFp.postSendPasswordReset(email, options).then(function (request) { return request(axios, basePath); });
|
|
1790
3344
|
},
|
|
3345
|
+
/**
|
|
3346
|
+
* Send Account Welcome Email
|
|
3347
|
+
* @param {string} id Xero ID
|
|
3348
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
3349
|
+
* @param {*} [options] Override http request option.
|
|
3350
|
+
* @throws {RequiredError}
|
|
3351
|
+
*/
|
|
3352
|
+
postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
|
|
3353
|
+
return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3354
|
+
},
|
|
1791
3355
|
/**
|
|
1792
3356
|
* Submit reseller application
|
|
1793
3357
|
* @summary Submit reseller application
|
|
@@ -1800,6 +3364,17 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1800
3364
|
postSubmitResellerApplication: function (creditRequired, companyNumber, vatNumber, options) {
|
|
1801
3365
|
return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(axios, basePath); });
|
|
1802
3366
|
},
|
|
3367
|
+
/**
|
|
3368
|
+
* Update Account Contact
|
|
3369
|
+
* @param {string} id Account Xero ID
|
|
3370
|
+
* @param {number} contactId Contact ID
|
|
3371
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
3372
|
+
* @param {*} [options] Override http request option.
|
|
3373
|
+
* @throws {RequiredError}
|
|
3374
|
+
*/
|
|
3375
|
+
putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
|
|
3376
|
+
return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
3377
|
+
},
|
|
1803
3378
|
/**
|
|
1804
3379
|
* Update Account Contacts
|
|
1805
3380
|
* @summary Update Account Contact
|
|
@@ -1811,6 +3386,26 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
1811
3386
|
putUpdateAccountContact: function (email, accountContactRequestModel, options) {
|
|
1812
3387
|
return localVarFp.putUpdateAccountContact(email, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
1813
3388
|
},
|
|
3389
|
+
/**
|
|
3390
|
+
* Update Account Billing Address
|
|
3391
|
+
* @param {string} id Xero ID
|
|
3392
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
3393
|
+
* @param {*} [options] Override http request option.
|
|
3394
|
+
* @throws {RequiredError}
|
|
3395
|
+
*/
|
|
3396
|
+
putUpdateBillingAddress: function (id, addressDTO, options) {
|
|
3397
|
+
return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
|
|
3398
|
+
},
|
|
3399
|
+
/**
|
|
3400
|
+
* Update Account Shipping Address
|
|
3401
|
+
* @param {string} id Xero ID
|
|
3402
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
3403
|
+
* @param {*} [options] Override http request option.
|
|
3404
|
+
* @throws {RequiredError}
|
|
3405
|
+
*/
|
|
3406
|
+
putUpdateShippingAddress: function (id, addressDTO, options) {
|
|
3407
|
+
return localVarFp.putUpdateShippingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
|
|
3408
|
+
},
|
|
1814
3409
|
};
|
|
1815
3410
|
};
|
|
1816
3411
|
exports.AccountsApiFactory = AccountsApiFactory;
|
|
@@ -1822,6 +3417,27 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1822
3417
|
function AccountsApi() {
|
|
1823
3418
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1824
3419
|
}
|
|
3420
|
+
/**
|
|
3421
|
+
* Delete Account Contact
|
|
3422
|
+
* @param {string} id Account Xero ID
|
|
3423
|
+
* @param {number} contactId Contact ID
|
|
3424
|
+
* @param {*} [options] Override http request option.
|
|
3425
|
+
* @throws {RequiredError}
|
|
3426
|
+
*/
|
|
3427
|
+
AccountsApi.prototype.deleteAdminUpdateAccountContact = function (id, contactId, options) {
|
|
3428
|
+
var _this = this;
|
|
3429
|
+
return (0, exports.AccountsApiFp)(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3430
|
+
};
|
|
3431
|
+
/**
|
|
3432
|
+
* Delete Account
|
|
3433
|
+
* @param {string} id Account Xero ID
|
|
3434
|
+
* @param {*} [options] Override http request option.
|
|
3435
|
+
* @throws {RequiredError}
|
|
3436
|
+
*/
|
|
3437
|
+
AccountsApi.prototype.deleteArchiveAccount = function (id, options) {
|
|
3438
|
+
var _this = this;
|
|
3439
|
+
return (0, exports.AccountsApiFp)(this.configuration).deleteArchiveAccount(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3440
|
+
};
|
|
1825
3441
|
/**
|
|
1826
3442
|
* Delete client credentials
|
|
1827
3443
|
* @summary Delete client credentials
|
|
@@ -1844,6 +3460,16 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1844
3460
|
var _this = this;
|
|
1845
3461
|
return (0, exports.AccountsApiFp)(this.configuration).deleteUpdateAccountContact(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1846
3462
|
};
|
|
3463
|
+
/**
|
|
3464
|
+
* Get Account Contacts
|
|
3465
|
+
* @param {string} id Account Xero ID
|
|
3466
|
+
* @param {*} [options] Override http request option.
|
|
3467
|
+
* @throws {RequiredError}
|
|
3468
|
+
*/
|
|
3469
|
+
AccountsApi.prototype.getAdminCreateAccountContact = function (id, options) {
|
|
3470
|
+
var _this = this;
|
|
3471
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAdminCreateAccountContact(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3472
|
+
};
|
|
1847
3473
|
/**
|
|
1848
3474
|
* Get Account
|
|
1849
3475
|
* @summary Get Account
|
|
@@ -1854,6 +3480,16 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1854
3480
|
var _this = this;
|
|
1855
3481
|
return (0, exports.AccountsApiFp)(this.configuration).getGetAccount(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1856
3482
|
};
|
|
3483
|
+
/**
|
|
3484
|
+
* Get Account Addresses
|
|
3485
|
+
* @param {string} id Xero ID
|
|
3486
|
+
* @param {*} [options] Override http request option.
|
|
3487
|
+
* @throws {RequiredError}
|
|
3488
|
+
*/
|
|
3489
|
+
AccountsApi.prototype.getGetAccountAddresses = function (id, options) {
|
|
3490
|
+
var _this = this;
|
|
3491
|
+
return (0, exports.AccountsApiFp)(this.configuration).getGetAccountAddresses(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3492
|
+
};
|
|
1857
3493
|
/**
|
|
1858
3494
|
* Get Account Contacts
|
|
1859
3495
|
* @summary Get Account Contacts
|
|
@@ -1910,6 +3546,26 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1910
3546
|
var _this = this;
|
|
1911
3547
|
return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerKeys(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1912
3548
|
};
|
|
3549
|
+
/**
|
|
3550
|
+
* Get Account Finance
|
|
3551
|
+
* @param {string} id Account Xero ID
|
|
3552
|
+
* @param {*} [options] Override http request option.
|
|
3553
|
+
* @throws {RequiredError}
|
|
3554
|
+
*/
|
|
3555
|
+
AccountsApi.prototype.getGetFinanceSettings = function (id, options) {
|
|
3556
|
+
var _this = this;
|
|
3557
|
+
return (0, exports.AccountsApiFp)(this.configuration).getGetFinanceSettings(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3558
|
+
};
|
|
3559
|
+
/**
|
|
3560
|
+
* Get Account 3CX Details
|
|
3561
|
+
* @param {string} id Xero ID
|
|
3562
|
+
* @param {*} [options] Override http request option.
|
|
3563
|
+
* @throws {RequiredError}
|
|
3564
|
+
*/
|
|
3565
|
+
AccountsApi.prototype.getGetTcxPartnerDetails = function (id, options) {
|
|
3566
|
+
var _this = this;
|
|
3567
|
+
return (0, exports.AccountsApiFp)(this.configuration).getGetTcxPartnerDetails(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3568
|
+
};
|
|
1913
3569
|
/**
|
|
1914
3570
|
* Verify account email address
|
|
1915
3571
|
* @summary Verify account email address
|
|
@@ -1921,15 +3577,59 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1921
3577
|
var _this = this;
|
|
1922
3578
|
return (0, exports.AccountsApiFp)(this.configuration).getVerifyEmailAddress(token, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1923
3579
|
};
|
|
3580
|
+
/**
|
|
3581
|
+
* Set Account Portal Access
|
|
3582
|
+
* @param {string} id Xero ID
|
|
3583
|
+
* @param {PatchSetPortalAccessStateEnum} state Portal Access State
|
|
3584
|
+
* @param {*} [options] Override http request option.
|
|
3585
|
+
* @throws {RequiredError}
|
|
3586
|
+
*/
|
|
3587
|
+
AccountsApi.prototype.patchSetPortalAccess = function (id, state, options) {
|
|
3588
|
+
var _this = this;
|
|
3589
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchSetPortalAccess(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3590
|
+
};
|
|
3591
|
+
/**
|
|
3592
|
+
* Set Account Prize Promo
|
|
3593
|
+
* @param {string} id Xero ID
|
|
3594
|
+
* @param {PatchSetPrizePromoStateEnum} state Prize Promo State
|
|
3595
|
+
* @param {*} [options] Override http request option.
|
|
3596
|
+
* @throws {RequiredError}
|
|
3597
|
+
*/
|
|
3598
|
+
AccountsApi.prototype.patchSetPrizePromo = function (id, state, options) {
|
|
3599
|
+
var _this = this;
|
|
3600
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchSetPrizePromo(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3601
|
+
};
|
|
1924
3602
|
/**
|
|
1925
3603
|
* Set 3CX Wizard CNAME
|
|
1926
|
-
* @param {
|
|
3604
|
+
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
3605
|
+
* @param {*} [options] Override http request option.
|
|
3606
|
+
* @throws {RequiredError}
|
|
3607
|
+
*/
|
|
3608
|
+
AccountsApi.prototype.patchSetTcxWizardCname = function (patchUpdateAccountCnameRequest, options) {
|
|
3609
|
+
var _this = this;
|
|
3610
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3611
|
+
};
|
|
3612
|
+
/**
|
|
3613
|
+
* Set Account CNAME
|
|
3614
|
+
* @param {string} id Xero ID
|
|
3615
|
+
* @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
AccountsApi.prototype.patchUpdateAccountCname = function (id, patchUpdateAccountCnameRequest, options) {
|
|
3620
|
+
var _this = this;
|
|
3621
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3622
|
+
};
|
|
3623
|
+
/**
|
|
3624
|
+
* Set Account Company Number
|
|
3625
|
+
* @param {string} id Xero ID
|
|
3626
|
+
* @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
|
|
1927
3627
|
* @param {*} [options] Override http request option.
|
|
1928
3628
|
* @throws {RequiredError}
|
|
1929
3629
|
*/
|
|
1930
|
-
AccountsApi.prototype.
|
|
3630
|
+
AccountsApi.prototype.patchUpdateAccountCompanyNumber = function (id, patchUpdateAccountCompanyNumberRequest, options) {
|
|
1931
3631
|
var _this = this;
|
|
1932
|
-
return (0, exports.AccountsApiFp)(this.configuration).
|
|
3632
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1933
3633
|
};
|
|
1934
3634
|
/**
|
|
1935
3635
|
* Update Account Password
|
|
@@ -1943,6 +3643,94 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1943
3643
|
var _this = this;
|
|
1944
3644
|
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1945
3645
|
};
|
|
3646
|
+
/**
|
|
3647
|
+
* Set Account Phone
|
|
3648
|
+
* @param {string} id Xero ID
|
|
3649
|
+
* @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
|
|
3650
|
+
* @param {*} [options] Override http request option.
|
|
3651
|
+
* @throws {RequiredError}
|
|
3652
|
+
*/
|
|
3653
|
+
AccountsApi.prototype.patchUpdateAccountPhone = function (id, patchUpdateAccountPhoneRequest, options) {
|
|
3654
|
+
var _this = this;
|
|
3655
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3656
|
+
};
|
|
3657
|
+
/**
|
|
3658
|
+
* Set Account VAT Number
|
|
3659
|
+
* @param {string} id Xero ID
|
|
3660
|
+
* @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
|
|
3661
|
+
* @param {*} [options] Override http request option.
|
|
3662
|
+
* @throws {RequiredError}
|
|
3663
|
+
*/
|
|
3664
|
+
AccountsApi.prototype.patchUpdateAccountVatNumber = function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
3665
|
+
var _this = this;
|
|
3666
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3667
|
+
};
|
|
3668
|
+
/**
|
|
3669
|
+
* Set Account Credit Limit
|
|
3670
|
+
* @param {string} id Xero ID
|
|
3671
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
3672
|
+
* @param {*} [options] Override http request option.
|
|
3673
|
+
* @throws {RequiredError}
|
|
3674
|
+
*/
|
|
3675
|
+
AccountsApi.prototype.patchUpdateCreditLimit = function (id, patchUpdateCreditLimitRequest, options) {
|
|
3676
|
+
var _this = this;
|
|
3677
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3678
|
+
};
|
|
3679
|
+
/**
|
|
3680
|
+
* Set Account Price List
|
|
3681
|
+
* @param {string} id Xero ID
|
|
3682
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
3683
|
+
* @param {*} [options] Override http request option.
|
|
3684
|
+
* @throws {RequiredError}
|
|
3685
|
+
*/
|
|
3686
|
+
AccountsApi.prototype.patchUpdatePriceList = function (id, patchUpdatePriceListRequest, options) {
|
|
3687
|
+
var _this = this;
|
|
3688
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3689
|
+
};
|
|
3690
|
+
/**
|
|
3691
|
+
* Set Account SIP Channel Cost
|
|
3692
|
+
* @param {string} id Xero ID
|
|
3693
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
3694
|
+
* @param {*} [options] Override http request option.
|
|
3695
|
+
* @throws {RequiredError}
|
|
3696
|
+
*/
|
|
3697
|
+
AccountsApi.prototype.patchUpdateSipChannelCost = function (id, patchUpdateSipChannelCostRequest, options) {
|
|
3698
|
+
var _this = this;
|
|
3699
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3700
|
+
};
|
|
3701
|
+
/**
|
|
3702
|
+
* Set Account 3CX Hosting Price List
|
|
3703
|
+
* @param {string} id Xero ID
|
|
3704
|
+
* @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
|
|
3705
|
+
* @param {*} [options] Override http request option.
|
|
3706
|
+
* @throws {RequiredError}
|
|
3707
|
+
*/
|
|
3708
|
+
AccountsApi.prototype.patchUpdateTcxHostingPriceList = function (id, patchUpdateTcxHostingPriceListRequest, options) {
|
|
3709
|
+
var _this = this;
|
|
3710
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3711
|
+
};
|
|
3712
|
+
/**
|
|
3713
|
+
* Set Account 3CX Partner ID
|
|
3714
|
+
* @param {string} id Xero ID
|
|
3715
|
+
* @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
|
|
3716
|
+
* @param {*} [options] Override http request option.
|
|
3717
|
+
* @throws {RequiredError}
|
|
3718
|
+
*/
|
|
3719
|
+
AccountsApi.prototype.patchUpdateTcxPartnerId = function (id, patchUpdateTcxPartnerIdRequest, options) {
|
|
3720
|
+
var _this = this;
|
|
3721
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3722
|
+
};
|
|
3723
|
+
/**
|
|
3724
|
+
* Create Account Contact
|
|
3725
|
+
* @param {string} id Account Xero ID
|
|
3726
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
3727
|
+
* @param {*} [options] Override http request option.
|
|
3728
|
+
* @throws {RequiredError}
|
|
3729
|
+
*/
|
|
3730
|
+
AccountsApi.prototype.postAdminCreateAccountContact = function (id, accountContactRequestModel, options) {
|
|
3731
|
+
var _this = this;
|
|
3732
|
+
return (0, exports.AccountsApiFp)(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3733
|
+
};
|
|
1946
3734
|
/**
|
|
1947
3735
|
* Add Account Contacts
|
|
1948
3736
|
* @summary Add Account Contact
|
|
@@ -2008,6 +3796,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2008
3796
|
var _this = this;
|
|
2009
3797
|
return (0, exports.AccountsApiFp)(this.configuration).postSendPasswordReset(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2010
3798
|
};
|
|
3799
|
+
/**
|
|
3800
|
+
* Send Account Welcome Email
|
|
3801
|
+
* @param {string} id Xero ID
|
|
3802
|
+
* @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
|
|
3803
|
+
* @param {*} [options] Override http request option.
|
|
3804
|
+
* @throws {RequiredError}
|
|
3805
|
+
*/
|
|
3806
|
+
AccountsApi.prototype.postSendWelcomeEmail = function (id, postSendWelcomeEmailRequest, options) {
|
|
3807
|
+
var _this = this;
|
|
3808
|
+
return (0, exports.AccountsApiFp)(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3809
|
+
};
|
|
2011
3810
|
/**
|
|
2012
3811
|
* Submit reseller application
|
|
2013
3812
|
* @summary Submit reseller application
|
|
@@ -2021,6 +3820,18 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2021
3820
|
var _this = this;
|
|
2022
3821
|
return (0, exports.AccountsApiFp)(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2023
3822
|
};
|
|
3823
|
+
/**
|
|
3824
|
+
* Update Account Contact
|
|
3825
|
+
* @param {string} id Account Xero ID
|
|
3826
|
+
* @param {number} contactId Contact ID
|
|
3827
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
3828
|
+
* @param {*} [options] Override http request option.
|
|
3829
|
+
* @throws {RequiredError}
|
|
3830
|
+
*/
|
|
3831
|
+
AccountsApi.prototype.putAdminUpdateAccountContact = function (id, contactId, accountContactRequestModel, options) {
|
|
3832
|
+
var _this = this;
|
|
3833
|
+
return (0, exports.AccountsApiFp)(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3834
|
+
};
|
|
2024
3835
|
/**
|
|
2025
3836
|
* Update Account Contacts
|
|
2026
3837
|
* @summary Update Account Contact
|
|
@@ -2033,9 +3844,39 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2033
3844
|
var _this = this;
|
|
2034
3845
|
return (0, exports.AccountsApiFp)(this.configuration).putUpdateAccountContact(email, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2035
3846
|
};
|
|
3847
|
+
/**
|
|
3848
|
+
* Update Account Billing Address
|
|
3849
|
+
* @param {string} id Xero ID
|
|
3850
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
3851
|
+
* @param {*} [options] Override http request option.
|
|
3852
|
+
* @throws {RequiredError}
|
|
3853
|
+
*/
|
|
3854
|
+
AccountsApi.prototype.putUpdateBillingAddress = function (id, addressDTO, options) {
|
|
3855
|
+
var _this = this;
|
|
3856
|
+
return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3857
|
+
};
|
|
3858
|
+
/**
|
|
3859
|
+
* Update Account Shipping Address
|
|
3860
|
+
* @param {string} id Xero ID
|
|
3861
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
3862
|
+
* @param {*} [options] Override http request option.
|
|
3863
|
+
* @throws {RequiredError}
|
|
3864
|
+
*/
|
|
3865
|
+
AccountsApi.prototype.putUpdateShippingAddress = function (id, addressDTO, options) {
|
|
3866
|
+
var _this = this;
|
|
3867
|
+
return (0, exports.AccountsApiFp)(this.configuration).putUpdateShippingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3868
|
+
};
|
|
2036
3869
|
return AccountsApi;
|
|
2037
3870
|
}(base_1.BaseAPI));
|
|
2038
3871
|
exports.AccountsApi = AccountsApi;
|
|
3872
|
+
exports.PatchSetPortalAccessStateEnum = {
|
|
3873
|
+
Enable: 'enable',
|
|
3874
|
+
Disable: 'disable',
|
|
3875
|
+
};
|
|
3876
|
+
exports.PatchSetPrizePromoStateEnum = {
|
|
3877
|
+
Enable: 'enable',
|
|
3878
|
+
Disable: 'disable',
|
|
3879
|
+
};
|
|
2039
3880
|
/**
|
|
2040
3881
|
* BillingApi - axios parameter creator
|
|
2041
3882
|
*/
|
|
@@ -2155,6 +3996,51 @@ exports.BillingApi = BillingApi;
|
|
|
2155
3996
|
var CRMApiAxiosParamCreator = function (configuration) {
|
|
2156
3997
|
var _this = this;
|
|
2157
3998
|
return {
|
|
3999
|
+
/**
|
|
4000
|
+
* Get Customer CRM Activities
|
|
4001
|
+
* @param {number} id Account ID
|
|
4002
|
+
* @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
|
|
4003
|
+
* @param {number} [userId] Activity Created By
|
|
4004
|
+
* @param {*} [options] Override http request option.
|
|
4005
|
+
* @throws {RequiredError}
|
|
4006
|
+
*/
|
|
4007
|
+
getGetCrmActivities: function (id_1, type_1, userId_1) {
|
|
4008
|
+
var args_1 = [];
|
|
4009
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
4010
|
+
args_1[_i - 3] = arguments[_i];
|
|
4011
|
+
}
|
|
4012
|
+
return __awaiter(_this, __spreadArray([id_1, type_1, userId_1], args_1, true), void 0, function (id, type, userId, options) {
|
|
4013
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4014
|
+
if (options === void 0) { options = {}; }
|
|
4015
|
+
return __generator(this, function (_a) {
|
|
4016
|
+
// verify required parameter 'id' is not null or undefined
|
|
4017
|
+
(0, common_1.assertParamExists)('getGetCrmActivities', 'id', id);
|
|
4018
|
+
localVarPath = "/admin/crm/{id}/activities"
|
|
4019
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
4020
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4021
|
+
if (configuration) {
|
|
4022
|
+
baseOptions = configuration.baseOptions;
|
|
4023
|
+
}
|
|
4024
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
4025
|
+
localVarHeaderParameter = {};
|
|
4026
|
+
localVarQueryParameter = {};
|
|
4027
|
+
if (type !== undefined) {
|
|
4028
|
+
localVarQueryParameter['type'] = type;
|
|
4029
|
+
}
|
|
4030
|
+
if (userId !== undefined) {
|
|
4031
|
+
localVarQueryParameter['userId'] = userId;
|
|
4032
|
+
}
|
|
4033
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4034
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4035
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4036
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4037
|
+
return [2 /*return*/, {
|
|
4038
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4039
|
+
options: localVarRequestOptions,
|
|
4040
|
+
}];
|
|
4041
|
+
});
|
|
4042
|
+
});
|
|
4043
|
+
},
|
|
2158
4044
|
/**
|
|
2159
4045
|
* Search for contacts by phone number
|
|
2160
4046
|
* @param {*} [options] Override http request option.
|
|
@@ -2188,6 +4074,46 @@ var CRMApiAxiosParamCreator = function (configuration) {
|
|
|
2188
4074
|
});
|
|
2189
4075
|
});
|
|
2190
4076
|
},
|
|
4077
|
+
/**
|
|
4078
|
+
* Create CRM Note
|
|
4079
|
+
* @param {number} id Account ID
|
|
4080
|
+
* @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
|
|
4081
|
+
* @param {*} [options] Override http request option.
|
|
4082
|
+
* @throws {RequiredError}
|
|
4083
|
+
*/
|
|
4084
|
+
postCreateCrmNote: function (id_1, createCrmNoteBody_1) {
|
|
4085
|
+
var args_1 = [];
|
|
4086
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
4087
|
+
args_1[_i - 2] = arguments[_i];
|
|
4088
|
+
}
|
|
4089
|
+
return __awaiter(_this, __spreadArray([id_1, createCrmNoteBody_1], args_1, true), void 0, function (id, createCrmNoteBody, options) {
|
|
4090
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4091
|
+
if (options === void 0) { options = {}; }
|
|
4092
|
+
return __generator(this, function (_a) {
|
|
4093
|
+
// verify required parameter 'id' is not null or undefined
|
|
4094
|
+
(0, common_1.assertParamExists)('postCreateCrmNote', 'id', id);
|
|
4095
|
+
localVarPath = "/admin/crm/{id}/activities/note"
|
|
4096
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
4097
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4098
|
+
if (configuration) {
|
|
4099
|
+
baseOptions = configuration.baseOptions;
|
|
4100
|
+
}
|
|
4101
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
4102
|
+
localVarHeaderParameter = {};
|
|
4103
|
+
localVarQueryParameter = {};
|
|
4104
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4105
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4106
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4107
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4108
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4109
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCrmNoteBody, localVarRequestOptions, configuration);
|
|
4110
|
+
return [2 /*return*/, {
|
|
4111
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4112
|
+
options: localVarRequestOptions,
|
|
4113
|
+
}];
|
|
4114
|
+
});
|
|
4115
|
+
});
|
|
4116
|
+
},
|
|
2191
4117
|
};
|
|
2192
4118
|
};
|
|
2193
4119
|
exports.CRMApiAxiosParamCreator = CRMApiAxiosParamCreator;
|
|
@@ -2197,6 +4123,30 @@ exports.CRMApiAxiosParamCreator = CRMApiAxiosParamCreator;
|
|
|
2197
4123
|
var CRMApiFp = function (configuration) {
|
|
2198
4124
|
var localVarAxiosParamCreator = (0, exports.CRMApiAxiosParamCreator)(configuration);
|
|
2199
4125
|
return {
|
|
4126
|
+
/**
|
|
4127
|
+
* Get Customer CRM Activities
|
|
4128
|
+
* @param {number} id Account ID
|
|
4129
|
+
* @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
|
|
4130
|
+
* @param {number} [userId] Activity Created By
|
|
4131
|
+
* @param {*} [options] Override http request option.
|
|
4132
|
+
* @throws {RequiredError}
|
|
4133
|
+
*/
|
|
4134
|
+
getGetCrmActivities: function (id, type, userId, options) {
|
|
4135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4136
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
4137
|
+
var _a, _b, _c;
|
|
4138
|
+
return __generator(this, function (_d) {
|
|
4139
|
+
switch (_d.label) {
|
|
4140
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCrmActivities(id, type, userId, options)];
|
|
4141
|
+
case 1:
|
|
4142
|
+
localVarAxiosArgs = _d.sent();
|
|
4143
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4144
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.getGetCrmActivities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4145
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
4146
|
+
}
|
|
4147
|
+
});
|
|
4148
|
+
});
|
|
4149
|
+
},
|
|
2200
4150
|
/**
|
|
2201
4151
|
* Search for contacts by phone number
|
|
2202
4152
|
* @param {*} [options] Override http request option.
|
|
@@ -2218,6 +4168,29 @@ var CRMApiFp = function (configuration) {
|
|
|
2218
4168
|
});
|
|
2219
4169
|
});
|
|
2220
4170
|
},
|
|
4171
|
+
/**
|
|
4172
|
+
* Create CRM Note
|
|
4173
|
+
* @param {number} id Account ID
|
|
4174
|
+
* @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
|
|
4175
|
+
* @param {*} [options] Override http request option.
|
|
4176
|
+
* @throws {RequiredError}
|
|
4177
|
+
*/
|
|
4178
|
+
postCreateCrmNote: function (id, createCrmNoteBody, options) {
|
|
4179
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4180
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
4181
|
+
var _a, _b, _c;
|
|
4182
|
+
return __generator(this, function (_d) {
|
|
4183
|
+
switch (_d.label) {
|
|
4184
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateCrmNote(id, createCrmNoteBody, options)];
|
|
4185
|
+
case 1:
|
|
4186
|
+
localVarAxiosArgs = _d.sent();
|
|
4187
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4188
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.postCreateCrmNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4189
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
4190
|
+
}
|
|
4191
|
+
});
|
|
4192
|
+
});
|
|
4193
|
+
},
|
|
2221
4194
|
};
|
|
2222
4195
|
};
|
|
2223
4196
|
exports.CRMApiFp = CRMApiFp;
|
|
@@ -2227,6 +4200,17 @@ exports.CRMApiFp = CRMApiFp;
|
|
|
2227
4200
|
var CRMApiFactory = function (configuration, basePath, axios) {
|
|
2228
4201
|
var localVarFp = (0, exports.CRMApiFp)(configuration);
|
|
2229
4202
|
return {
|
|
4203
|
+
/**
|
|
4204
|
+
* Get Customer CRM Activities
|
|
4205
|
+
* @param {number} id Account ID
|
|
4206
|
+
* @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
|
|
4207
|
+
* @param {number} [userId] Activity Created By
|
|
4208
|
+
* @param {*} [options] Override http request option.
|
|
4209
|
+
* @throws {RequiredError}
|
|
4210
|
+
*/
|
|
4211
|
+
getGetCrmActivities: function (id, type, userId, options) {
|
|
4212
|
+
return localVarFp.getGetCrmActivities(id, type, userId, options).then(function (request) { return request(axios, basePath); });
|
|
4213
|
+
},
|
|
2230
4214
|
/**
|
|
2231
4215
|
* Search for contacts by phone number
|
|
2232
4216
|
* @param {*} [options] Override http request option.
|
|
@@ -2235,6 +4219,16 @@ var CRMApiFactory = function (configuration, basePath, axios) {
|
|
|
2235
4219
|
getSearchByPhone: function (options) {
|
|
2236
4220
|
return localVarFp.getSearchByPhone(options).then(function (request) { return request(axios, basePath); });
|
|
2237
4221
|
},
|
|
4222
|
+
/**
|
|
4223
|
+
* Create CRM Note
|
|
4224
|
+
* @param {number} id Account ID
|
|
4225
|
+
* @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
|
|
4226
|
+
* @param {*} [options] Override http request option.
|
|
4227
|
+
* @throws {RequiredError}
|
|
4228
|
+
*/
|
|
4229
|
+
postCreateCrmNote: function (id, createCrmNoteBody, options) {
|
|
4230
|
+
return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(axios, basePath); });
|
|
4231
|
+
},
|
|
2238
4232
|
};
|
|
2239
4233
|
};
|
|
2240
4234
|
exports.CRMApiFactory = CRMApiFactory;
|
|
@@ -2246,6 +4240,18 @@ var CRMApi = /** @class */ (function (_super) {
|
|
|
2246
4240
|
function CRMApi() {
|
|
2247
4241
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2248
4242
|
}
|
|
4243
|
+
/**
|
|
4244
|
+
* Get Customer CRM Activities
|
|
4245
|
+
* @param {number} id Account ID
|
|
4246
|
+
* @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
|
|
4247
|
+
* @param {number} [userId] Activity Created By
|
|
4248
|
+
* @param {*} [options] Override http request option.
|
|
4249
|
+
* @throws {RequiredError}
|
|
4250
|
+
*/
|
|
4251
|
+
CRMApi.prototype.getGetCrmActivities = function (id, type, userId, options) {
|
|
4252
|
+
var _this = this;
|
|
4253
|
+
return (0, exports.CRMApiFp)(this.configuration).getGetCrmActivities(id, type, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4254
|
+
};
|
|
2249
4255
|
/**
|
|
2250
4256
|
* Search for contacts by phone number
|
|
2251
4257
|
* @param {*} [options] Override http request option.
|
|
@@ -2255,9 +4261,28 @@ var CRMApi = /** @class */ (function (_super) {
|
|
|
2255
4261
|
var _this = this;
|
|
2256
4262
|
return (0, exports.CRMApiFp)(this.configuration).getSearchByPhone(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2257
4263
|
};
|
|
4264
|
+
/**
|
|
4265
|
+
* Create CRM Note
|
|
4266
|
+
* @param {number} id Account ID
|
|
4267
|
+
* @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
|
|
4268
|
+
* @param {*} [options] Override http request option.
|
|
4269
|
+
* @throws {RequiredError}
|
|
4270
|
+
*/
|
|
4271
|
+
CRMApi.prototype.postCreateCrmNote = function (id, createCrmNoteBody, options) {
|
|
4272
|
+
var _this = this;
|
|
4273
|
+
return (0, exports.CRMApiFp)(this.configuration).postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4274
|
+
};
|
|
2258
4275
|
return CRMApi;
|
|
2259
4276
|
}(base_1.BaseAPI));
|
|
2260
4277
|
exports.CRMApi = CRMApi;
|
|
4278
|
+
exports.GetGetCrmActivitiesTypeEnum = {
|
|
4279
|
+
Alert: 'alert',
|
|
4280
|
+
Call: 'call',
|
|
4281
|
+
Note: 'note',
|
|
4282
|
+
Order: 'order',
|
|
4283
|
+
Quote: 'quote',
|
|
4284
|
+
TcxOrder: 'tcx_order',
|
|
4285
|
+
};
|
|
2261
4286
|
/**
|
|
2262
4287
|
* Class3CXApi - axios parameter creator
|
|
2263
4288
|
*/
|
|
@@ -8767,23 +10792,23 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
8767
10792
|
/**
|
|
8768
10793
|
*
|
|
8769
10794
|
* @param {number} id Number Port ID
|
|
8770
|
-
* @param {
|
|
10795
|
+
* @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
|
|
8771
10796
|
* @param {*} [options] Override http request option.
|
|
8772
10797
|
* @throws {RequiredError}
|
|
8773
10798
|
*/
|
|
8774
|
-
postAddAdminNote: function (id_1,
|
|
10799
|
+
postAddAdminNote: function (id_1, numberPortAdminNoteBody_1) {
|
|
8775
10800
|
var args_1 = [];
|
|
8776
10801
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8777
10802
|
args_1[_i - 2] = arguments[_i];
|
|
8778
10803
|
}
|
|
8779
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
10804
|
+
return __awaiter(_this, __spreadArray([id_1, numberPortAdminNoteBody_1], args_1, true), void 0, function (id, numberPortAdminNoteBody, options) {
|
|
8780
10805
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8781
10806
|
if (options === void 0) { options = {}; }
|
|
8782
10807
|
return __generator(this, function (_a) {
|
|
8783
10808
|
// verify required parameter 'id' is not null or undefined
|
|
8784
10809
|
(0, common_1.assertParamExists)('postAddAdminNote', 'id', id);
|
|
8785
|
-
// verify required parameter '
|
|
8786
|
-
(0, common_1.assertParamExists)('postAddAdminNote', '
|
|
10810
|
+
// verify required parameter 'numberPortAdminNoteBody' is not null or undefined
|
|
10811
|
+
(0, common_1.assertParamExists)('postAddAdminNote', 'numberPortAdminNoteBody', numberPortAdminNoteBody);
|
|
8787
10812
|
localVarPath = "/admin/sip/numbers/ports/{id}/notes"
|
|
8788
10813
|
.replace('{id}', encodeURIComponent(String(id)));
|
|
8789
10814
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8798,7 +10823,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
8798
10823
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8799
10824
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8800
10825
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8801
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
10826
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(numberPortAdminNoteBody, localVarRequestOptions, configuration);
|
|
8802
10827
|
return [2 /*return*/, {
|
|
8803
10828
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8804
10829
|
options: localVarRequestOptions,
|
|
@@ -9278,17 +11303,17 @@ var NumberPortingApiFp = function (configuration) {
|
|
|
9278
11303
|
/**
|
|
9279
11304
|
*
|
|
9280
11305
|
* @param {number} id Number Port ID
|
|
9281
|
-
* @param {
|
|
11306
|
+
* @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
|
|
9282
11307
|
* @param {*} [options] Override http request option.
|
|
9283
11308
|
* @throws {RequiredError}
|
|
9284
11309
|
*/
|
|
9285
|
-
postAddAdminNote: function (id,
|
|
11310
|
+
postAddAdminNote: function (id, numberPortAdminNoteBody, options) {
|
|
9286
11311
|
return __awaiter(this, void 0, void 0, function () {
|
|
9287
11312
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
9288
11313
|
var _a, _b, _c;
|
|
9289
11314
|
return __generator(this, function (_d) {
|
|
9290
11315
|
switch (_d.label) {
|
|
9291
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id,
|
|
11316
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, numberPortAdminNoteBody, options)];
|
|
9292
11317
|
case 1:
|
|
9293
11318
|
localVarAxiosArgs = _d.sent();
|
|
9294
11319
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -9501,12 +11526,12 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
|
|
|
9501
11526
|
/**
|
|
9502
11527
|
*
|
|
9503
11528
|
* @param {number} id Number Port ID
|
|
9504
|
-
* @param {
|
|
11529
|
+
* @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
|
|
9505
11530
|
* @param {*} [options] Override http request option.
|
|
9506
11531
|
* @throws {RequiredError}
|
|
9507
11532
|
*/
|
|
9508
|
-
postAddAdminNote: function (id,
|
|
9509
|
-
return localVarFp.postAddAdminNote(id,
|
|
11533
|
+
postAddAdminNote: function (id, numberPortAdminNoteBody, options) {
|
|
11534
|
+
return localVarFp.postAddAdminNote(id, numberPortAdminNoteBody, options).then(function (request) { return request(axios, basePath); });
|
|
9510
11535
|
},
|
|
9511
11536
|
/**
|
|
9512
11537
|
*
|
|
@@ -9668,13 +11693,13 @@ var NumberPortingApi = /** @class */ (function (_super) {
|
|
|
9668
11693
|
/**
|
|
9669
11694
|
*
|
|
9670
11695
|
* @param {number} id Number Port ID
|
|
9671
|
-
* @param {
|
|
11696
|
+
* @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
|
|
9672
11697
|
* @param {*} [options] Override http request option.
|
|
9673
11698
|
* @throws {RequiredError}
|
|
9674
11699
|
*/
|
|
9675
|
-
NumberPortingApi.prototype.postAddAdminNote = function (id,
|
|
11700
|
+
NumberPortingApi.prototype.postAddAdminNote = function (id, numberPortAdminNoteBody, options) {
|
|
9676
11701
|
var _this = this;
|
|
9677
|
-
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id,
|
|
11702
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, numberPortAdminNoteBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9678
11703
|
};
|
|
9679
11704
|
/**
|
|
9680
11705
|
*
|