yellowgrid-api-ts 3.2.135-dev.0 → 3.2.137-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/api.ts +163 -99
- package/dist/api.d.ts +80 -52
- package/dist/api.js +193 -115
- package/docs/AccountsApi.md +107 -52
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,9 +51,10 @@ All URIs are relative to *https://localhost*
|
|
|
51
51
|
|
|
52
52
|
Class | Method | HTTP request | Description
|
|
53
53
|
------------ | ------------- | ------------- | -------------
|
|
54
|
+
*AccountsApi* | [**deleteAdminUpdateAccountContact**](docs/AccountsApi.md#deleteadminupdateaccountcontact) | **DELETE** /admin/accounts/{id}/contacts/{contact_id} |
|
|
54
55
|
*AccountsApi* | [**deleteDeleteClientCredentials**](docs/AccountsApi.md#deletedeleteclientcredentials) | **DELETE** /accounts/me/contacts/credentials/{id} | Delete client credentials
|
|
55
56
|
*AccountsApi* | [**deleteUpdateAccountContact**](docs/AccountsApi.md#deleteupdateaccountcontact) | **DELETE** /accounts/me/contacts/{email} | Delete Account Contact
|
|
56
|
-
*AccountsApi* | [**
|
|
57
|
+
*AccountsApi* | [**getAdminCreateAccountContact**](docs/AccountsApi.md#getadmincreateaccountcontact) | **GET** /admin/accounts/{id}/contacts/ |
|
|
57
58
|
*AccountsApi* | [**getGetAccount**](docs/AccountsApi.md#getgetaccount) | **GET** /accounts/me | Get Account
|
|
58
59
|
*AccountsApi* | [**getGetAccountContacts**](docs/AccountsApi.md#getgetaccountcontacts) | **GET** /accounts/me/contacts | Get Account Contacts
|
|
59
60
|
*AccountsApi* | [**getGetAccountDetailedSummary**](docs/AccountsApi.md#getgetaccountdetailedsummary) | **GET** /accounts/{id}/summary | Get Account Detailed Summary
|
|
@@ -70,7 +71,7 @@ Class | Method | HTTP request | Description
|
|
|
70
71
|
*AccountsApi* | [**patchUpdateAccountContactPassword**](docs/AccountsApi.md#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password
|
|
71
72
|
*AccountsApi* | [**patchUpdateAccountPhone**](docs/AccountsApi.md#patchupdateaccountphone) | **PATCH** /admin/accounts/{id}/phone |
|
|
72
73
|
*AccountsApi* | [**patchUpdateAccountVatNumber**](docs/AccountsApi.md#patchupdateaccountvatnumber) | **PATCH** /admin/accounts/{id}/vatNumber |
|
|
73
|
-
*AccountsApi* | [**
|
|
74
|
+
*AccountsApi* | [**postAdminCreateAccountContact**](docs/AccountsApi.md#postadmincreateaccountcontact) | **POST** /admin/accounts/{id}/contacts/ |
|
|
74
75
|
*AccountsApi* | [**postGetAccountContacts**](docs/AccountsApi.md#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact
|
|
75
76
|
*AccountsApi* | [**postGetAccounts**](docs/AccountsApi.md#postgetaccounts) | **POST** /accounts | Create a new customer account
|
|
76
77
|
*AccountsApi* | [**postGetAdminAccount**](docs/AccountsApi.md#postgetadminaccount) | **POST** /admin/me | Get Admin Account
|
|
@@ -79,9 +80,9 @@ Class | Method | HTTP request | Description
|
|
|
79
80
|
*AccountsApi* | [**postSendPasswordReset**](docs/AccountsApi.md#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email
|
|
80
81
|
*AccountsApi* | [**postSendWelcomeEmail**](docs/AccountsApi.md#postsendwelcomeemail) | **POST** /admin/accounts/{id}/email/welcome |
|
|
81
82
|
*AccountsApi* | [**postSubmitResellerApplication**](docs/AccountsApi.md#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application
|
|
83
|
+
*AccountsApi* | [**putAdminUpdateAccountContact**](docs/AccountsApi.md#putadminupdateaccountcontact) | **PUT** /admin/accounts/{id}/contacts/{contact_id} |
|
|
82
84
|
*AccountsApi* | [**putUpdateAccountContact**](docs/AccountsApi.md#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact
|
|
83
85
|
*AccountsApi* | [**putUpdateBillingAddress**](docs/AccountsApi.md#putupdatebillingaddress) | **PUT** /admin/accounts/{id}/billing/address |
|
|
84
|
-
*AccountsApi* | [**putUpdateContact**](docs/AccountsApi.md#putupdatecontact) | **PUT** /admin/accounts/{id}/contacts/{contact_id} |
|
|
85
86
|
*AccountsApi* | [**putUpdateShippingAddress**](docs/AccountsApi.md#putupdateshippingaddress) | **PUT** /admin/accounts/{id}/shipping/address |
|
|
86
87
|
*CRMApi* | [**getGetCrmActivities**](docs/CRMApi.md#getgetcrmactivities) | **GET** /admin/crm/{id}/activities |
|
|
87
88
|
*CRMApi* | [**getSearchByPhone**](docs/CRMApi.md#getsearchbyphone) | **GET** /crm/contact/search |
|
package/api.ts
CHANGED
|
@@ -8215,6 +8215,42 @@ export interface XeroLogEntity {
|
|
|
8215
8215
|
*/
|
|
8216
8216
|
export const AccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8217
8217
|
return {
|
|
8218
|
+
/**
|
|
8219
|
+
* Delete Account Contact
|
|
8220
|
+
* @param {string} id Account Xero ID
|
|
8221
|
+
* @param {number} contactId Contact ID
|
|
8222
|
+
* @param {*} [options] Override http request option.
|
|
8223
|
+
* @throws {RequiredError}
|
|
8224
|
+
*/
|
|
8225
|
+
deleteAdminUpdateAccountContact: async (id: string, contactId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8226
|
+
// verify required parameter 'id' is not null or undefined
|
|
8227
|
+
assertParamExists('deleteAdminUpdateAccountContact', 'id', id)
|
|
8228
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
8229
|
+
assertParamExists('deleteAdminUpdateAccountContact', 'contactId', contactId)
|
|
8230
|
+
const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
|
|
8231
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
8232
|
+
.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
|
|
8233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8234
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8235
|
+
let baseOptions;
|
|
8236
|
+
if (configuration) {
|
|
8237
|
+
baseOptions = configuration.baseOptions;
|
|
8238
|
+
}
|
|
8239
|
+
|
|
8240
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
8241
|
+
const localVarHeaderParameter = {} as any;
|
|
8242
|
+
const localVarQueryParameter = {} as any;
|
|
8243
|
+
|
|
8244
|
+
|
|
8245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8247
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8248
|
+
|
|
8249
|
+
return {
|
|
8250
|
+
url: toPathString(localVarUrlObj),
|
|
8251
|
+
options: localVarRequestOptions,
|
|
8252
|
+
};
|
|
8253
|
+
},
|
|
8218
8254
|
/**
|
|
8219
8255
|
* Delete client credentials
|
|
8220
8256
|
* @summary Delete client credentials
|
|
@@ -8282,20 +8318,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8282
8318
|
};
|
|
8283
8319
|
},
|
|
8284
8320
|
/**
|
|
8285
|
-
*
|
|
8321
|
+
* Get Account Contacts
|
|
8286
8322
|
* @param {string} id Account Xero ID
|
|
8287
|
-
* @param {number} contactId Contact ID
|
|
8288
8323
|
* @param {*} [options] Override http request option.
|
|
8289
8324
|
* @throws {RequiredError}
|
|
8290
8325
|
*/
|
|
8291
|
-
|
|
8326
|
+
getAdminCreateAccountContact: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8292
8327
|
// verify required parameter 'id' is not null or undefined
|
|
8293
|
-
assertParamExists('
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
|
|
8297
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
8298
|
-
.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
|
|
8328
|
+
assertParamExists('getAdminCreateAccountContact', 'id', id)
|
|
8329
|
+
const localVarPath = `/admin/accounts/{id}/contacts/`
|
|
8330
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8299
8331
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8300
8332
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8301
8333
|
let baseOptions;
|
|
@@ -8303,10 +8335,11 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8303
8335
|
baseOptions = configuration.baseOptions;
|
|
8304
8336
|
}
|
|
8305
8337
|
|
|
8306
|
-
const localVarRequestOptions = { method: '
|
|
8338
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8307
8339
|
const localVarHeaderParameter = {} as any;
|
|
8308
8340
|
const localVarQueryParameter = {} as any;
|
|
8309
8341
|
|
|
8342
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
8310
8343
|
|
|
8311
8344
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8312
8345
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -8884,9 +8917,9 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8884
8917
|
* @param {*} [options] Override http request option.
|
|
8885
8918
|
* @throws {RequiredError}
|
|
8886
8919
|
*/
|
|
8887
|
-
|
|
8920
|
+
postAdminCreateAccountContact: async (id: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8888
8921
|
// verify required parameter 'id' is not null or undefined
|
|
8889
|
-
assertParamExists('
|
|
8922
|
+
assertParamExists('postAdminCreateAccountContact', 'id', id)
|
|
8890
8923
|
const localVarPath = `/admin/accounts/{id}/contacts/`
|
|
8891
8924
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8892
8925
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9189,18 +9222,21 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9189
9222
|
};
|
|
9190
9223
|
},
|
|
9191
9224
|
/**
|
|
9192
|
-
* Update Account
|
|
9193
|
-
* @
|
|
9194
|
-
* @param {
|
|
9195
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] Account
|
|
9225
|
+
* Update Account Contact
|
|
9226
|
+
* @param {string} id Account Xero ID
|
|
9227
|
+
* @param {number} contactId Contact ID
|
|
9228
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9196
9229
|
* @param {*} [options] Override http request option.
|
|
9197
9230
|
* @throws {RequiredError}
|
|
9198
9231
|
*/
|
|
9199
|
-
|
|
9200
|
-
// verify required parameter '
|
|
9201
|
-
assertParamExists('
|
|
9202
|
-
|
|
9203
|
-
|
|
9232
|
+
putAdminUpdateAccountContact: async (id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9233
|
+
// verify required parameter 'id' is not null or undefined
|
|
9234
|
+
assertParamExists('putAdminUpdateAccountContact', 'id', id)
|
|
9235
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
9236
|
+
assertParamExists('putAdminUpdateAccountContact', 'contactId', contactId)
|
|
9237
|
+
const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
|
|
9238
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
9239
|
+
.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
|
|
9204
9240
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9205
9241
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9206
9242
|
let baseOptions;
|
|
@@ -9225,17 +9261,18 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9225
9261
|
};
|
|
9226
9262
|
},
|
|
9227
9263
|
/**
|
|
9228
|
-
* Update Account
|
|
9229
|
-
* @
|
|
9230
|
-
* @param {
|
|
9264
|
+
* Update Account Contacts
|
|
9265
|
+
* @summary Update Account Contact
|
|
9266
|
+
* @param {string} email Contact Email Address
|
|
9267
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Account request
|
|
9231
9268
|
* @param {*} [options] Override http request option.
|
|
9232
9269
|
* @throws {RequiredError}
|
|
9233
9270
|
*/
|
|
9234
|
-
|
|
9235
|
-
// verify required parameter '
|
|
9236
|
-
assertParamExists('
|
|
9237
|
-
const localVarPath = `/
|
|
9238
|
-
.replace(`{${"
|
|
9271
|
+
putUpdateAccountContact: async (email: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9272
|
+
// verify required parameter 'email' is not null or undefined
|
|
9273
|
+
assertParamExists('putUpdateAccountContact', 'email', email)
|
|
9274
|
+
const localVarPath = `/accounts/me/contacts/{email}`
|
|
9275
|
+
.replace(`{${"email"}}`, encodeURIComponent(String(email)));
|
|
9239
9276
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9240
9277
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9241
9278
|
let baseOptions;
|
|
@@ -9252,7 +9289,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9252
9289
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9253
9290
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9254
9291
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9255
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
9292
|
+
localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
|
|
9256
9293
|
|
|
9257
9294
|
return {
|
|
9258
9295
|
url: toPathString(localVarUrlObj),
|
|
@@ -9260,21 +9297,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9260
9297
|
};
|
|
9261
9298
|
},
|
|
9262
9299
|
/**
|
|
9263
|
-
* Update Account
|
|
9264
|
-
* @param {string} id
|
|
9265
|
-
* @param {
|
|
9266
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9300
|
+
* Update Account Billing Address
|
|
9301
|
+
* @param {string} id Xero ID
|
|
9302
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
9267
9303
|
* @param {*} [options] Override http request option.
|
|
9268
9304
|
* @throws {RequiredError}
|
|
9269
9305
|
*/
|
|
9270
|
-
|
|
9306
|
+
putUpdateBillingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9271
9307
|
// verify required parameter 'id' is not null or undefined
|
|
9272
|
-
assertParamExists('
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
|
|
9276
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
9277
|
-
.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
|
|
9308
|
+
assertParamExists('putUpdateBillingAddress', 'id', id)
|
|
9309
|
+
const localVarPath = `/admin/accounts/{id}/billing/address`
|
|
9310
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9278
9311
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9279
9312
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9280
9313
|
let baseOptions;
|
|
@@ -9291,7 +9324,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9291
9324
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9292
9325
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9293
9326
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9294
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
9327
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
|
|
9295
9328
|
|
|
9296
9329
|
return {
|
|
9297
9330
|
url: toPathString(localVarUrlObj),
|
|
@@ -9342,6 +9375,19 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9342
9375
|
export const AccountsApiFp = function(configuration?: Configuration) {
|
|
9343
9376
|
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration)
|
|
9344
9377
|
return {
|
|
9378
|
+
/**
|
|
9379
|
+
* Delete Account Contact
|
|
9380
|
+
* @param {string} id Account Xero ID
|
|
9381
|
+
* @param {number} contactId Contact ID
|
|
9382
|
+
* @param {*} [options] Override http request option.
|
|
9383
|
+
* @throws {RequiredError}
|
|
9384
|
+
*/
|
|
9385
|
+
async deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9386
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options);
|
|
9387
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9388
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9389
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9390
|
+
},
|
|
9345
9391
|
/**
|
|
9346
9392
|
* Delete client credentials
|
|
9347
9393
|
* @summary Delete client credentials
|
|
@@ -9369,16 +9415,15 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9369
9415
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9370
9416
|
},
|
|
9371
9417
|
/**
|
|
9372
|
-
*
|
|
9418
|
+
* Get Account Contacts
|
|
9373
9419
|
* @param {string} id Account Xero ID
|
|
9374
|
-
* @param {number} contactId Contact ID
|
|
9375
9420
|
* @param {*} [options] Override http request option.
|
|
9376
9421
|
* @throws {RequiredError}
|
|
9377
9422
|
*/
|
|
9378
|
-
async
|
|
9379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
9423
|
+
async getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountContactModel>>> {
|
|
9424
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAdminCreateAccountContact(id, options);
|
|
9380
9425
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9381
|
-
const localVarOperationServerBasePath = operationServerMap['AccountsApi.
|
|
9426
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9382
9427
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9383
9428
|
},
|
|
9384
9429
|
/**
|
|
@@ -9595,10 +9640,10 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9595
9640
|
* @param {*} [options] Override http request option.
|
|
9596
9641
|
* @throws {RequiredError}
|
|
9597
9642
|
*/
|
|
9598
|
-
async
|
|
9599
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
9643
|
+
async postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9644
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options);
|
|
9600
9645
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9601
|
-
const localVarOperationServerBasePath = operationServerMap['AccountsApi.
|
|
9646
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9602
9647
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9603
9648
|
},
|
|
9604
9649
|
/**
|
|
@@ -9706,6 +9751,20 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9706
9751
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSubmitResellerApplication']?.[localVarOperationServerIndex]?.url;
|
|
9707
9752
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9708
9753
|
},
|
|
9754
|
+
/**
|
|
9755
|
+
* Update Account Contact
|
|
9756
|
+
* @param {string} id Account Xero ID
|
|
9757
|
+
* @param {number} contactId Contact ID
|
|
9758
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9759
|
+
* @param {*} [options] Override http request option.
|
|
9760
|
+
* @throws {RequiredError}
|
|
9761
|
+
*/
|
|
9762
|
+
async putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9763
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options);
|
|
9764
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9765
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9766
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9767
|
+
},
|
|
9709
9768
|
/**
|
|
9710
9769
|
* Update Account Contacts
|
|
9711
9770
|
* @summary Update Account Contact
|
|
@@ -9733,20 +9792,6 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9733
9792
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateBillingAddress']?.[localVarOperationServerIndex]?.url;
|
|
9734
9793
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9735
9794
|
},
|
|
9736
|
-
/**
|
|
9737
|
-
* Update Account Contact
|
|
9738
|
-
* @param {string} id Account Xero ID
|
|
9739
|
-
* @param {number} contactId Contact ID
|
|
9740
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9741
|
-
* @param {*} [options] Override http request option.
|
|
9742
|
-
* @throws {RequiredError}
|
|
9743
|
-
*/
|
|
9744
|
-
async putUpdateContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9745
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateContact(id, contactId, accountContactRequestModel, options);
|
|
9746
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9747
|
-
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateContact']?.[localVarOperationServerIndex]?.url;
|
|
9748
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9749
|
-
},
|
|
9750
9795
|
/**
|
|
9751
9796
|
* Update Account Shipping Address
|
|
9752
9797
|
* @param {string} id Xero ID
|
|
@@ -9769,6 +9814,16 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9769
9814
|
export const AccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
9770
9815
|
const localVarFp = AccountsApiFp(configuration)
|
|
9771
9816
|
return {
|
|
9817
|
+
/**
|
|
9818
|
+
* Delete Account Contact
|
|
9819
|
+
* @param {string} id Account Xero ID
|
|
9820
|
+
* @param {number} contactId Contact ID
|
|
9821
|
+
* @param {*} [options] Override http request option.
|
|
9822
|
+
* @throws {RequiredError}
|
|
9823
|
+
*/
|
|
9824
|
+
deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9825
|
+
return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(axios, basePath));
|
|
9826
|
+
},
|
|
9772
9827
|
/**
|
|
9773
9828
|
* Delete client credentials
|
|
9774
9829
|
* @summary Delete client credentials
|
|
@@ -9790,14 +9845,13 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9790
9845
|
return localVarFp.deleteUpdateAccountContact(email, options).then((request) => request(axios, basePath));
|
|
9791
9846
|
},
|
|
9792
9847
|
/**
|
|
9793
|
-
*
|
|
9848
|
+
* Get Account Contacts
|
|
9794
9849
|
* @param {string} id Account Xero ID
|
|
9795
|
-
* @param {number} contactId Contact ID
|
|
9796
9850
|
* @param {*} [options] Override http request option.
|
|
9797
9851
|
* @throws {RequiredError}
|
|
9798
9852
|
*/
|
|
9799
|
-
|
|
9800
|
-
return localVarFp.
|
|
9853
|
+
getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9854
|
+
return localVarFp.getAdminCreateAccountContact(id, options).then((request) => request(axios, basePath));
|
|
9801
9855
|
},
|
|
9802
9856
|
/**
|
|
9803
9857
|
* Get Account
|
|
@@ -9965,8 +10019,8 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9965
10019
|
* @param {*} [options] Override http request option.
|
|
9966
10020
|
* @throws {RequiredError}
|
|
9967
10021
|
*/
|
|
9968
|
-
|
|
9969
|
-
return localVarFp.
|
|
10022
|
+
postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10023
|
+
return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(axios, basePath));
|
|
9970
10024
|
},
|
|
9971
10025
|
/**
|
|
9972
10026
|
* Add Account Contacts
|
|
@@ -10049,6 +10103,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10049
10103
|
postSubmitResellerApplication(creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10050
10104
|
return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(axios, basePath));
|
|
10051
10105
|
},
|
|
10106
|
+
/**
|
|
10107
|
+
* Update Account Contact
|
|
10108
|
+
* @param {string} id Account Xero ID
|
|
10109
|
+
* @param {number} contactId Contact ID
|
|
10110
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
10111
|
+
* @param {*} [options] Override http request option.
|
|
10112
|
+
* @throws {RequiredError}
|
|
10113
|
+
*/
|
|
10114
|
+
putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10115
|
+
return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(axios, basePath));
|
|
10116
|
+
},
|
|
10052
10117
|
/**
|
|
10053
10118
|
* Update Account Contacts
|
|
10054
10119
|
* @summary Update Account Contact
|
|
@@ -10070,17 +10135,6 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10070
10135
|
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10071
10136
|
return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
|
|
10072
10137
|
},
|
|
10073
|
-
/**
|
|
10074
|
-
* Update Account Contact
|
|
10075
|
-
* @param {string} id Account Xero ID
|
|
10076
|
-
* @param {number} contactId Contact ID
|
|
10077
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
10078
|
-
* @param {*} [options] Override http request option.
|
|
10079
|
-
* @throws {RequiredError}
|
|
10080
|
-
*/
|
|
10081
|
-
putUpdateContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10082
|
-
return localVarFp.putUpdateContact(id, contactId, accountContactRequestModel, options).then((request) => request(axios, basePath));
|
|
10083
|
-
},
|
|
10084
10138
|
/**
|
|
10085
10139
|
* Update Account Shipping Address
|
|
10086
10140
|
* @param {string} id Xero ID
|
|
@@ -10098,6 +10152,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10098
10152
|
* AccountsApi - object-oriented interface
|
|
10099
10153
|
*/
|
|
10100
10154
|
export class AccountsApi extends BaseAPI {
|
|
10155
|
+
/**
|
|
10156
|
+
* Delete Account Contact
|
|
10157
|
+
* @param {string} id Account Xero ID
|
|
10158
|
+
* @param {number} contactId Contact ID
|
|
10159
|
+
* @param {*} [options] Override http request option.
|
|
10160
|
+
* @throws {RequiredError}
|
|
10161
|
+
*/
|
|
10162
|
+
public deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig) {
|
|
10163
|
+
return AccountsApiFp(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(this.axios, this.basePath));
|
|
10164
|
+
}
|
|
10165
|
+
|
|
10101
10166
|
/**
|
|
10102
10167
|
* Delete client credentials
|
|
10103
10168
|
* @summary Delete client credentials
|
|
@@ -10121,14 +10186,13 @@ export class AccountsApi extends BaseAPI {
|
|
|
10121
10186
|
}
|
|
10122
10187
|
|
|
10123
10188
|
/**
|
|
10124
|
-
*
|
|
10189
|
+
* Get Account Contacts
|
|
10125
10190
|
* @param {string} id Account Xero ID
|
|
10126
|
-
* @param {number} contactId Contact ID
|
|
10127
10191
|
* @param {*} [options] Override http request option.
|
|
10128
10192
|
* @throws {RequiredError}
|
|
10129
10193
|
*/
|
|
10130
|
-
public
|
|
10131
|
-
return AccountsApiFp(this.configuration).
|
|
10194
|
+
public getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig) {
|
|
10195
|
+
return AccountsApiFp(this.configuration).getAdminCreateAccountContact(id, options).then((request) => request(this.axios, this.basePath));
|
|
10132
10196
|
}
|
|
10133
10197
|
|
|
10134
10198
|
/**
|
|
@@ -10313,8 +10377,8 @@ export class AccountsApi extends BaseAPI {
|
|
|
10313
10377
|
* @param {*} [options] Override http request option.
|
|
10314
10378
|
* @throws {RequiredError}
|
|
10315
10379
|
*/
|
|
10316
|
-
public
|
|
10317
|
-
return AccountsApiFp(this.configuration).
|
|
10380
|
+
public postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
|
|
10381
|
+
return AccountsApiFp(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
10318
10382
|
}
|
|
10319
10383
|
|
|
10320
10384
|
/**
|
|
@@ -10406,6 +10470,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
10406
10470
|
return AccountsApiFp(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(this.axios, this.basePath));
|
|
10407
10471
|
}
|
|
10408
10472
|
|
|
10473
|
+
/**
|
|
10474
|
+
* Update Account Contact
|
|
10475
|
+
* @param {string} id Account Xero ID
|
|
10476
|
+
* @param {number} contactId Contact ID
|
|
10477
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
10478
|
+
* @param {*} [options] Override http request option.
|
|
10479
|
+
* @throws {RequiredError}
|
|
10480
|
+
*/
|
|
10481
|
+
public putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
|
|
10482
|
+
return AccountsApiFp(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
10483
|
+
}
|
|
10484
|
+
|
|
10409
10485
|
/**
|
|
10410
10486
|
* Update Account Contacts
|
|
10411
10487
|
* @summary Update Account Contact
|
|
@@ -10429,18 +10505,6 @@ export class AccountsApi extends BaseAPI {
|
|
|
10429
10505
|
return AccountsApiFp(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10430
10506
|
}
|
|
10431
10507
|
|
|
10432
|
-
/**
|
|
10433
|
-
* Update Account Contact
|
|
10434
|
-
* @param {string} id Account Xero ID
|
|
10435
|
-
* @param {number} contactId Contact ID
|
|
10436
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
10437
|
-
* @param {*} [options] Override http request option.
|
|
10438
|
-
* @throws {RequiredError}
|
|
10439
|
-
*/
|
|
10440
|
-
public putUpdateContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
|
|
10441
|
-
return AccountsApiFp(this.configuration).putUpdateContact(id, contactId, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
10442
|
-
}
|
|
10443
|
-
|
|
10444
10508
|
/**
|
|
10445
10509
|
* Update Account Shipping Address
|
|
10446
10510
|
* @param {string} id Xero ID
|