yellowgrid-api-ts 3.2.135-dev.0 → 3.2.136-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 +3 -3
- package/api.ts +136 -136
- package/dist/api.d.ts +72 -72
- package/dist/api.js +161 -161
- package/docs/AccountsApi.md +67 -67
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,9 +51,9 @@ 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* | [**deleteUpdateContact**](docs/AccountsApi.md#deleteupdatecontact) | **DELETE** /admin/accounts/{id}/contacts/{contact_id} |
|
|
57
57
|
*AccountsApi* | [**getGetAccount**](docs/AccountsApi.md#getgetaccount) | **GET** /accounts/me | Get Account
|
|
58
58
|
*AccountsApi* | [**getGetAccountContacts**](docs/AccountsApi.md#getgetaccountcontacts) | **GET** /accounts/me/contacts | Get Account Contacts
|
|
59
59
|
*AccountsApi* | [**getGetAccountDetailedSummary**](docs/AccountsApi.md#getgetaccountdetailedsummary) | **GET** /accounts/{id}/summary | Get Account Detailed Summary
|
|
@@ -70,7 +70,7 @@ Class | Method | HTTP request | Description
|
|
|
70
70
|
*AccountsApi* | [**patchUpdateAccountContactPassword**](docs/AccountsApi.md#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password
|
|
71
71
|
*AccountsApi* | [**patchUpdateAccountPhone**](docs/AccountsApi.md#patchupdateaccountphone) | **PATCH** /admin/accounts/{id}/phone |
|
|
72
72
|
*AccountsApi* | [**patchUpdateAccountVatNumber**](docs/AccountsApi.md#patchupdateaccountvatnumber) | **PATCH** /admin/accounts/{id}/vatNumber |
|
|
73
|
-
*AccountsApi* | [**
|
|
73
|
+
*AccountsApi* | [**postAdminCreateAccountContact**](docs/AccountsApi.md#postadmincreateaccountcontact) | **POST** /admin/accounts/{id}/contacts/ |
|
|
74
74
|
*AccountsApi* | [**postGetAccountContacts**](docs/AccountsApi.md#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact
|
|
75
75
|
*AccountsApi* | [**postGetAccounts**](docs/AccountsApi.md#postgetaccounts) | **POST** /accounts | Create a new customer account
|
|
76
76
|
*AccountsApi* | [**postGetAdminAccount**](docs/AccountsApi.md#postgetadminaccount) | **POST** /admin/me | Get Admin Account
|
|
@@ -79,9 +79,9 @@ Class | Method | HTTP request | Description
|
|
|
79
79
|
*AccountsApi* | [**postSendPasswordReset**](docs/AccountsApi.md#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email
|
|
80
80
|
*AccountsApi* | [**postSendWelcomeEmail**](docs/AccountsApi.md#postsendwelcomeemail) | **POST** /admin/accounts/{id}/email/welcome |
|
|
81
81
|
*AccountsApi* | [**postSubmitResellerApplication**](docs/AccountsApi.md#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application
|
|
82
|
+
*AccountsApi* | [**putAdminUpdateAccountContact**](docs/AccountsApi.md#putadminupdateaccountcontact) | **PUT** /admin/accounts/{id}/contacts/{contact_id} |
|
|
82
83
|
*AccountsApi* | [**putUpdateAccountContact**](docs/AccountsApi.md#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact
|
|
83
84
|
*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
85
|
*AccountsApi* | [**putUpdateShippingAddress**](docs/AccountsApi.md#putupdateshippingaddress) | **PUT** /admin/accounts/{id}/shipping/address |
|
|
86
86
|
*CRMApi* | [**getGetCrmActivities**](docs/CRMApi.md#getgetcrmactivities) | **GET** /admin/crm/{id}/activities |
|
|
87
87
|
*CRMApi* | [**getSearchByPhone**](docs/CRMApi.md#getsearchbyphone) | **GET** /crm/contact/search |
|
package/api.ts
CHANGED
|
@@ -8216,17 +8216,20 @@ export interface XeroLogEntity {
|
|
|
8216
8216
|
export const AccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8217
8217
|
return {
|
|
8218
8218
|
/**
|
|
8219
|
-
* Delete
|
|
8220
|
-
* @
|
|
8221
|
-
* @param {
|
|
8219
|
+
* Delete Account Contact
|
|
8220
|
+
* @param {string} id Account Xero ID
|
|
8221
|
+
* @param {number} contactId Contact ID
|
|
8222
8222
|
* @param {*} [options] Override http request option.
|
|
8223
8223
|
* @throws {RequiredError}
|
|
8224
8224
|
*/
|
|
8225
|
-
|
|
8225
|
+
deleteAdminUpdateAccountContact: async (id: string, contactId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8226
8226
|
// verify required parameter 'id' is not null or undefined
|
|
8227
|
-
assertParamExists('
|
|
8228
|
-
|
|
8229
|
-
|
|
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)));
|
|
8230
8233
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8231
8234
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8232
8235
|
let baseOptions;
|
|
@@ -8249,17 +8252,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8249
8252
|
};
|
|
8250
8253
|
},
|
|
8251
8254
|
/**
|
|
8252
|
-
* Delete
|
|
8253
|
-
* @summary Delete
|
|
8254
|
-
* @param {string}
|
|
8255
|
+
* Delete client credentials
|
|
8256
|
+
* @summary Delete client credentials
|
|
8257
|
+
* @param {string} id OAuth 2.0 Client ID
|
|
8255
8258
|
* @param {*} [options] Override http request option.
|
|
8256
8259
|
* @throws {RequiredError}
|
|
8257
8260
|
*/
|
|
8258
|
-
|
|
8259
|
-
// verify required parameter '
|
|
8260
|
-
assertParamExists('
|
|
8261
|
-
const localVarPath = `/accounts/me/contacts/{
|
|
8262
|
-
.replace(`{${"
|
|
8261
|
+
deleteDeleteClientCredentials: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8262
|
+
// verify required parameter 'id' is not null or undefined
|
|
8263
|
+
assertParamExists('deleteDeleteClientCredentials', 'id', id)
|
|
8264
|
+
const localVarPath = `/accounts/me/contacts/credentials/{id}`
|
|
8265
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8263
8266
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8264
8267
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8265
8268
|
let baseOptions;
|
|
@@ -8282,20 +8285,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8282
8285
|
};
|
|
8283
8286
|
},
|
|
8284
8287
|
/**
|
|
8285
|
-
* Delete Account
|
|
8286
|
-
* @
|
|
8287
|
-
* @param {
|
|
8288
|
+
* Delete Account Contacts
|
|
8289
|
+
* @summary Delete Account Contact
|
|
8290
|
+
* @param {string} email Contact Email Address
|
|
8288
8291
|
* @param {*} [options] Override http request option.
|
|
8289
8292
|
* @throws {RequiredError}
|
|
8290
8293
|
*/
|
|
8291
|
-
|
|
8292
|
-
// verify required parameter '
|
|
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)));
|
|
8294
|
+
deleteUpdateAccountContact: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8295
|
+
// verify required parameter 'email' is not null or undefined
|
|
8296
|
+
assertParamExists('deleteUpdateAccountContact', 'email', email)
|
|
8297
|
+
const localVarPath = `/accounts/me/contacts/{email}`
|
|
8298
|
+
.replace(`{${"email"}}`, encodeURIComponent(String(email)));
|
|
8299
8299
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8300
8300
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8301
8301
|
let baseOptions;
|
|
@@ -8884,9 +8884,9 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8884
8884
|
* @param {*} [options] Override http request option.
|
|
8885
8885
|
* @throws {RequiredError}
|
|
8886
8886
|
*/
|
|
8887
|
-
|
|
8887
|
+
postAdminCreateAccountContact: async (id: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8888
8888
|
// verify required parameter 'id' is not null or undefined
|
|
8889
|
-
assertParamExists('
|
|
8889
|
+
assertParamExists('postAdminCreateAccountContact', 'id', id)
|
|
8890
8890
|
const localVarPath = `/admin/accounts/{id}/contacts/`
|
|
8891
8891
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8892
8892
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9189,18 +9189,21 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9189
9189
|
};
|
|
9190
9190
|
},
|
|
9191
9191
|
/**
|
|
9192
|
-
* Update Account
|
|
9193
|
-
* @
|
|
9194
|
-
* @param {
|
|
9195
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] Account
|
|
9192
|
+
* Update Account Contact
|
|
9193
|
+
* @param {string} id Account Xero ID
|
|
9194
|
+
* @param {number} contactId Contact ID
|
|
9195
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9196
9196
|
* @param {*} [options] Override http request option.
|
|
9197
9197
|
* @throws {RequiredError}
|
|
9198
9198
|
*/
|
|
9199
|
-
|
|
9200
|
-
// verify required parameter '
|
|
9201
|
-
assertParamExists('
|
|
9202
|
-
|
|
9203
|
-
|
|
9199
|
+
putAdminUpdateAccountContact: async (id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9200
|
+
// verify required parameter 'id' is not null or undefined
|
|
9201
|
+
assertParamExists('putAdminUpdateAccountContact', 'id', id)
|
|
9202
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
9203
|
+
assertParamExists('putAdminUpdateAccountContact', 'contactId', contactId)
|
|
9204
|
+
const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
|
|
9205
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
9206
|
+
.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
|
|
9204
9207
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9205
9208
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9206
9209
|
let baseOptions;
|
|
@@ -9225,17 +9228,18 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9225
9228
|
};
|
|
9226
9229
|
},
|
|
9227
9230
|
/**
|
|
9228
|
-
* Update Account
|
|
9229
|
-
* @
|
|
9230
|
-
* @param {
|
|
9231
|
+
* Update Account Contacts
|
|
9232
|
+
* @summary Update Account Contact
|
|
9233
|
+
* @param {string} email Contact Email Address
|
|
9234
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Account request
|
|
9231
9235
|
* @param {*} [options] Override http request option.
|
|
9232
9236
|
* @throws {RequiredError}
|
|
9233
9237
|
*/
|
|
9234
|
-
|
|
9235
|
-
// verify required parameter '
|
|
9236
|
-
assertParamExists('
|
|
9237
|
-
const localVarPath = `/
|
|
9238
|
-
.replace(`{${"
|
|
9238
|
+
putUpdateAccountContact: async (email: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9239
|
+
// verify required parameter 'email' is not null or undefined
|
|
9240
|
+
assertParamExists('putUpdateAccountContact', 'email', email)
|
|
9241
|
+
const localVarPath = `/accounts/me/contacts/{email}`
|
|
9242
|
+
.replace(`{${"email"}}`, encodeURIComponent(String(email)));
|
|
9239
9243
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9240
9244
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9241
9245
|
let baseOptions;
|
|
@@ -9252,7 +9256,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9252
9256
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9253
9257
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9254
9258
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9255
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
9259
|
+
localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
|
|
9256
9260
|
|
|
9257
9261
|
return {
|
|
9258
9262
|
url: toPathString(localVarUrlObj),
|
|
@@ -9260,21 +9264,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9260
9264
|
};
|
|
9261
9265
|
},
|
|
9262
9266
|
/**
|
|
9263
|
-
* Update Account
|
|
9264
|
-
* @param {string} id
|
|
9265
|
-
* @param {
|
|
9266
|
-
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9267
|
+
* Update Account Billing Address
|
|
9268
|
+
* @param {string} id Xero ID
|
|
9269
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
9267
9270
|
* @param {*} [options] Override http request option.
|
|
9268
9271
|
* @throws {RequiredError}
|
|
9269
9272
|
*/
|
|
9270
|
-
|
|
9273
|
+
putUpdateBillingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9271
9274
|
// 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)));
|
|
9275
|
+
assertParamExists('putUpdateBillingAddress', 'id', id)
|
|
9276
|
+
const localVarPath = `/admin/accounts/{id}/billing/address`
|
|
9277
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9278
9278
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9279
9279
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9280
9280
|
let baseOptions;
|
|
@@ -9291,7 +9291,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9291
9291
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9292
9292
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9293
9293
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9294
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
9294
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
|
|
9295
9295
|
|
|
9296
9296
|
return {
|
|
9297
9297
|
url: toPathString(localVarUrlObj),
|
|
@@ -9342,6 +9342,19 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9342
9342
|
export const AccountsApiFp = function(configuration?: Configuration) {
|
|
9343
9343
|
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration)
|
|
9344
9344
|
return {
|
|
9345
|
+
/**
|
|
9346
|
+
* Delete Account Contact
|
|
9347
|
+
* @param {string} id Account Xero ID
|
|
9348
|
+
* @param {number} contactId Contact ID
|
|
9349
|
+
* @param {*} [options] Override http request option.
|
|
9350
|
+
* @throws {RequiredError}
|
|
9351
|
+
*/
|
|
9352
|
+
async deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9353
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options);
|
|
9354
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9355
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9356
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9357
|
+
},
|
|
9345
9358
|
/**
|
|
9346
9359
|
* Delete client credentials
|
|
9347
9360
|
* @summary Delete client credentials
|
|
@@ -9368,19 +9381,6 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9368
9381
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9369
9382
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9370
9383
|
},
|
|
9371
|
-
/**
|
|
9372
|
-
* Delete Account Contact
|
|
9373
|
-
* @param {string} id Account Xero ID
|
|
9374
|
-
* @param {number} contactId Contact ID
|
|
9375
|
-
* @param {*} [options] Override http request option.
|
|
9376
|
-
* @throws {RequiredError}
|
|
9377
|
-
*/
|
|
9378
|
-
async deleteUpdateContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateContact(id, contactId, options);
|
|
9380
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9381
|
-
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteUpdateContact']?.[localVarOperationServerIndex]?.url;
|
|
9382
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9383
|
-
},
|
|
9384
9384
|
/**
|
|
9385
9385
|
* Get Account
|
|
9386
9386
|
* @summary Get Account
|
|
@@ -9595,10 +9595,10 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9595
9595
|
* @param {*} [options] Override http request option.
|
|
9596
9596
|
* @throws {RequiredError}
|
|
9597
9597
|
*/
|
|
9598
|
-
async
|
|
9599
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
9598
|
+
async postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9599
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options);
|
|
9600
9600
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9601
|
-
const localVarOperationServerBasePath = operationServerMap['AccountsApi.
|
|
9601
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9602
9602
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9603
9603
|
},
|
|
9604
9604
|
/**
|
|
@@ -9706,6 +9706,20 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9706
9706
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSubmitResellerApplication']?.[localVarOperationServerIndex]?.url;
|
|
9707
9707
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9708
9708
|
},
|
|
9709
|
+
/**
|
|
9710
|
+
* Update Account Contact
|
|
9711
|
+
* @param {string} id Account Xero ID
|
|
9712
|
+
* @param {number} contactId Contact ID
|
|
9713
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9714
|
+
* @param {*} [options] Override http request option.
|
|
9715
|
+
* @throws {RequiredError}
|
|
9716
|
+
*/
|
|
9717
|
+
async putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options);
|
|
9719
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9720
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9722
|
+
},
|
|
9709
9723
|
/**
|
|
9710
9724
|
* Update Account Contacts
|
|
9711
9725
|
* @summary Update Account Contact
|
|
@@ -9733,20 +9747,6 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9733
9747
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateBillingAddress']?.[localVarOperationServerIndex]?.url;
|
|
9734
9748
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9735
9749
|
},
|
|
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
9750
|
/**
|
|
9751
9751
|
* Update Account Shipping Address
|
|
9752
9752
|
* @param {string} id Xero ID
|
|
@@ -9769,6 +9769,16 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9769
9769
|
export const AccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
9770
9770
|
const localVarFp = AccountsApiFp(configuration)
|
|
9771
9771
|
return {
|
|
9772
|
+
/**
|
|
9773
|
+
* Delete Account Contact
|
|
9774
|
+
* @param {string} id Account Xero ID
|
|
9775
|
+
* @param {number} contactId Contact ID
|
|
9776
|
+
* @param {*} [options] Override http request option.
|
|
9777
|
+
* @throws {RequiredError}
|
|
9778
|
+
*/
|
|
9779
|
+
deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9780
|
+
return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(axios, basePath));
|
|
9781
|
+
},
|
|
9772
9782
|
/**
|
|
9773
9783
|
* Delete client credentials
|
|
9774
9784
|
* @summary Delete client credentials
|
|
@@ -9789,16 +9799,6 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9789
9799
|
deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9790
9800
|
return localVarFp.deleteUpdateAccountContact(email, options).then((request) => request(axios, basePath));
|
|
9791
9801
|
},
|
|
9792
|
-
/**
|
|
9793
|
-
* Delete Account Contact
|
|
9794
|
-
* @param {string} id Account Xero ID
|
|
9795
|
-
* @param {number} contactId Contact ID
|
|
9796
|
-
* @param {*} [options] Override http request option.
|
|
9797
|
-
* @throws {RequiredError}
|
|
9798
|
-
*/
|
|
9799
|
-
deleteUpdateContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9800
|
-
return localVarFp.deleteUpdateContact(id, contactId, options).then((request) => request(axios, basePath));
|
|
9801
|
-
},
|
|
9802
9802
|
/**
|
|
9803
9803
|
* Get Account
|
|
9804
9804
|
* @summary Get Account
|
|
@@ -9965,8 +9965,8 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9965
9965
|
* @param {*} [options] Override http request option.
|
|
9966
9966
|
* @throws {RequiredError}
|
|
9967
9967
|
*/
|
|
9968
|
-
|
|
9969
|
-
return localVarFp.
|
|
9968
|
+
postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9969
|
+
return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(axios, basePath));
|
|
9970
9970
|
},
|
|
9971
9971
|
/**
|
|
9972
9972
|
* Add Account Contacts
|
|
@@ -10049,6 +10049,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10049
10049
|
postSubmitResellerApplication(creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10050
10050
|
return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(axios, basePath));
|
|
10051
10051
|
},
|
|
10052
|
+
/**
|
|
10053
|
+
* Update Account Contact
|
|
10054
|
+
* @param {string} id Account Xero ID
|
|
10055
|
+
* @param {number} contactId Contact ID
|
|
10056
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
10057
|
+
* @param {*} [options] Override http request option.
|
|
10058
|
+
* @throws {RequiredError}
|
|
10059
|
+
*/
|
|
10060
|
+
putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10061
|
+
return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(axios, basePath));
|
|
10062
|
+
},
|
|
10052
10063
|
/**
|
|
10053
10064
|
* Update Account Contacts
|
|
10054
10065
|
* @summary Update Account Contact
|
|
@@ -10070,17 +10081,6 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10070
10081
|
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10071
10082
|
return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
|
|
10072
10083
|
},
|
|
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
10084
|
/**
|
|
10085
10085
|
* Update Account Shipping Address
|
|
10086
10086
|
* @param {string} id Xero ID
|
|
@@ -10098,6 +10098,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10098
10098
|
* AccountsApi - object-oriented interface
|
|
10099
10099
|
*/
|
|
10100
10100
|
export class AccountsApi extends BaseAPI {
|
|
10101
|
+
/**
|
|
10102
|
+
* Delete Account Contact
|
|
10103
|
+
* @param {string} id Account Xero ID
|
|
10104
|
+
* @param {number} contactId Contact ID
|
|
10105
|
+
* @param {*} [options] Override http request option.
|
|
10106
|
+
* @throws {RequiredError}
|
|
10107
|
+
*/
|
|
10108
|
+
public deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig) {
|
|
10109
|
+
return AccountsApiFp(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(this.axios, this.basePath));
|
|
10110
|
+
}
|
|
10111
|
+
|
|
10101
10112
|
/**
|
|
10102
10113
|
* Delete client credentials
|
|
10103
10114
|
* @summary Delete client credentials
|
|
@@ -10120,17 +10131,6 @@ export class AccountsApi extends BaseAPI {
|
|
|
10120
10131
|
return AccountsApiFp(this.configuration).deleteUpdateAccountContact(email, options).then((request) => request(this.axios, this.basePath));
|
|
10121
10132
|
}
|
|
10122
10133
|
|
|
10123
|
-
/**
|
|
10124
|
-
* Delete Account Contact
|
|
10125
|
-
* @param {string} id Account Xero ID
|
|
10126
|
-
* @param {number} contactId Contact ID
|
|
10127
|
-
* @param {*} [options] Override http request option.
|
|
10128
|
-
* @throws {RequiredError}
|
|
10129
|
-
*/
|
|
10130
|
-
public deleteUpdateContact(id: string, contactId: number, options?: RawAxiosRequestConfig) {
|
|
10131
|
-
return AccountsApiFp(this.configuration).deleteUpdateContact(id, contactId, options).then((request) => request(this.axios, this.basePath));
|
|
10132
|
-
}
|
|
10133
|
-
|
|
10134
10134
|
/**
|
|
10135
10135
|
* Get Account
|
|
10136
10136
|
* @summary Get Account
|
|
@@ -10313,8 +10313,8 @@ export class AccountsApi extends BaseAPI {
|
|
|
10313
10313
|
* @param {*} [options] Override http request option.
|
|
10314
10314
|
* @throws {RequiredError}
|
|
10315
10315
|
*/
|
|
10316
|
-
public
|
|
10317
|
-
return AccountsApiFp(this.configuration).
|
|
10316
|
+
public postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
|
|
10317
|
+
return AccountsApiFp(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
10318
10318
|
}
|
|
10319
10319
|
|
|
10320
10320
|
/**
|
|
@@ -10406,6 +10406,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
10406
10406
|
return AccountsApiFp(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(this.axios, this.basePath));
|
|
10407
10407
|
}
|
|
10408
10408
|
|
|
10409
|
+
/**
|
|
10410
|
+
* Update Account Contact
|
|
10411
|
+
* @param {string} id Account Xero ID
|
|
10412
|
+
* @param {number} contactId Contact ID
|
|
10413
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
10414
|
+
* @param {*} [options] Override http request option.
|
|
10415
|
+
* @throws {RequiredError}
|
|
10416
|
+
*/
|
|
10417
|
+
public putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
|
|
10418
|
+
return AccountsApiFp(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
10419
|
+
}
|
|
10420
|
+
|
|
10409
10421
|
/**
|
|
10410
10422
|
* Update Account Contacts
|
|
10411
10423
|
* @summary Update Account Contact
|
|
@@ -10429,18 +10441,6 @@ export class AccountsApi extends BaseAPI {
|
|
|
10429
10441
|
return AccountsApiFp(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10430
10442
|
}
|
|
10431
10443
|
|
|
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
10444
|
/**
|
|
10445
10445
|
* Update Account Shipping Address
|
|
10446
10446
|
* @param {string} id Xero ID
|