yellowgrid-api-ts 3.2.133-dev.0 → 3.2.135-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 -0
- package/api.ts +219 -0
- package/dist/api.d.ts +104 -0
- package/dist/api.js +257 -0
- package/dist/models/ServiceEnum.d.ts +5 -0
- package/dist/models/ServiceEnum.js +5 -0
- package/docs/AccountsApi.md +179 -0
- package/docs/ProspectDTO.md +2 -0
- package/models/ServiceEnum.ts +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@ Class | Method | HTTP request | Description
|
|
|
53
53
|
------------ | ------------- | ------------- | -------------
|
|
54
54
|
*AccountsApi* | [**deleteDeleteClientCredentials**](docs/AccountsApi.md#deletedeleteclientcredentials) | **DELETE** /accounts/me/contacts/credentials/{id} | Delete client credentials
|
|
55
55
|
*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} |
|
|
56
57
|
*AccountsApi* | [**getGetAccount**](docs/AccountsApi.md#getgetaccount) | **GET** /accounts/me | Get Account
|
|
57
58
|
*AccountsApi* | [**getGetAccountContacts**](docs/AccountsApi.md#getgetaccountcontacts) | **GET** /accounts/me/contacts | Get Account Contacts
|
|
58
59
|
*AccountsApi* | [**getGetAccountDetailedSummary**](docs/AccountsApi.md#getgetaccountdetailedsummary) | **GET** /accounts/{id}/summary | Get Account Detailed Summary
|
|
@@ -69,6 +70,7 @@ Class | Method | HTTP request | Description
|
|
|
69
70
|
*AccountsApi* | [**patchUpdateAccountContactPassword**](docs/AccountsApi.md#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password
|
|
70
71
|
*AccountsApi* | [**patchUpdateAccountPhone**](docs/AccountsApi.md#patchupdateaccountphone) | **PATCH** /admin/accounts/{id}/phone |
|
|
71
72
|
*AccountsApi* | [**patchUpdateAccountVatNumber**](docs/AccountsApi.md#patchupdateaccountvatnumber) | **PATCH** /admin/accounts/{id}/vatNumber |
|
|
73
|
+
*AccountsApi* | [**postCreateContact**](docs/AccountsApi.md#postcreatecontact) | **POST** /admin/accounts/{id}/contacts/ |
|
|
72
74
|
*AccountsApi* | [**postGetAccountContacts**](docs/AccountsApi.md#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact
|
|
73
75
|
*AccountsApi* | [**postGetAccounts**](docs/AccountsApi.md#postgetaccounts) | **POST** /accounts | Create a new customer account
|
|
74
76
|
*AccountsApi* | [**postGetAdminAccount**](docs/AccountsApi.md#postgetadminaccount) | **POST** /admin/me | Get Admin Account
|
|
@@ -79,6 +81,7 @@ Class | Method | HTTP request | Description
|
|
|
79
81
|
*AccountsApi* | [**postSubmitResellerApplication**](docs/AccountsApi.md#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application
|
|
80
82
|
*AccountsApi* | [**putUpdateAccountContact**](docs/AccountsApi.md#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact
|
|
81
83
|
*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} |
|
|
82
85
|
*AccountsApi* | [**putUpdateShippingAddress**](docs/AccountsApi.md#putupdateshippingaddress) | **PUT** /admin/accounts/{id}/shipping/address |
|
|
83
86
|
*CRMApi* | [**getGetCrmActivities**](docs/CRMApi.md#getgetcrmactivities) | **GET** /admin/crm/{id}/activities |
|
|
84
87
|
*CRMApi* | [**getSearchByPhone**](docs/CRMApi.md#getsearchbyphone) | **GET** /crm/contact/search |
|
package/api.ts
CHANGED
|
@@ -4668,6 +4668,10 @@ export interface ProspectDTO {
|
|
|
4668
4668
|
* Status
|
|
4669
4669
|
*/
|
|
4670
4670
|
'status'?: ProspectDTOStatusEnum;
|
|
4671
|
+
/**
|
|
4672
|
+
* Order Count
|
|
4673
|
+
*/
|
|
4674
|
+
'orderCount'?: number;
|
|
4671
4675
|
}
|
|
4672
4676
|
|
|
4673
4677
|
export const ProspectDTOStatusEnum = {
|
|
@@ -8268,6 +8272,42 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8268
8272
|
const localVarQueryParameter = {} as any;
|
|
8269
8273
|
|
|
8270
8274
|
|
|
8275
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8276
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8277
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8278
|
+
|
|
8279
|
+
return {
|
|
8280
|
+
url: toPathString(localVarUrlObj),
|
|
8281
|
+
options: localVarRequestOptions,
|
|
8282
|
+
};
|
|
8283
|
+
},
|
|
8284
|
+
/**
|
|
8285
|
+
* Delete Account Contact
|
|
8286
|
+
* @param {string} id Account Xero ID
|
|
8287
|
+
* @param {number} contactId Contact ID
|
|
8288
|
+
* @param {*} [options] Override http request option.
|
|
8289
|
+
* @throws {RequiredError}
|
|
8290
|
+
*/
|
|
8291
|
+
deleteUpdateContact: async (id: string, contactId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8292
|
+
// verify required parameter 'id' is not null or undefined
|
|
8293
|
+
assertParamExists('deleteUpdateContact', 'id', id)
|
|
8294
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
8295
|
+
assertParamExists('deleteUpdateContact', 'contactId', contactId)
|
|
8296
|
+
const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
|
|
8297
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
8298
|
+
.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
|
|
8299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8300
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8301
|
+
let baseOptions;
|
|
8302
|
+
if (configuration) {
|
|
8303
|
+
baseOptions = configuration.baseOptions;
|
|
8304
|
+
}
|
|
8305
|
+
|
|
8306
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
8307
|
+
const localVarHeaderParameter = {} as any;
|
|
8308
|
+
const localVarQueryParameter = {} as any;
|
|
8309
|
+
|
|
8310
|
+
|
|
8271
8311
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8272
8312
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8273
8313
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8837,6 +8877,41 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8837
8877
|
options: localVarRequestOptions,
|
|
8838
8878
|
};
|
|
8839
8879
|
},
|
|
8880
|
+
/**
|
|
8881
|
+
* Create Account Contact
|
|
8882
|
+
* @param {string} id Account Xero ID
|
|
8883
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
8884
|
+
* @param {*} [options] Override http request option.
|
|
8885
|
+
* @throws {RequiredError}
|
|
8886
|
+
*/
|
|
8887
|
+
postCreateContact: async (id: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8888
|
+
// verify required parameter 'id' is not null or undefined
|
|
8889
|
+
assertParamExists('postCreateContact', 'id', id)
|
|
8890
|
+
const localVarPath = `/admin/accounts/{id}/contacts/`
|
|
8891
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8892
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8893
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8894
|
+
let baseOptions;
|
|
8895
|
+
if (configuration) {
|
|
8896
|
+
baseOptions = configuration.baseOptions;
|
|
8897
|
+
}
|
|
8898
|
+
|
|
8899
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8900
|
+
const localVarHeaderParameter = {} as any;
|
|
8901
|
+
const localVarQueryParameter = {} as any;
|
|
8902
|
+
|
|
8903
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8904
|
+
|
|
8905
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8906
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8907
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8908
|
+
localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
|
|
8909
|
+
|
|
8910
|
+
return {
|
|
8911
|
+
url: toPathString(localVarUrlObj),
|
|
8912
|
+
options: localVarRequestOptions,
|
|
8913
|
+
};
|
|
8914
|
+
},
|
|
8840
8915
|
/**
|
|
8841
8916
|
* Add Account Contacts
|
|
8842
8917
|
* @summary Add Account Contact
|
|
@@ -9184,6 +9259,45 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9184
9259
|
options: localVarRequestOptions,
|
|
9185
9260
|
};
|
|
9186
9261
|
},
|
|
9262
|
+
/**
|
|
9263
|
+
* Update Account Contact
|
|
9264
|
+
* @param {string} id Account Xero ID
|
|
9265
|
+
* @param {number} contactId Contact ID
|
|
9266
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9267
|
+
* @param {*} [options] Override http request option.
|
|
9268
|
+
* @throws {RequiredError}
|
|
9269
|
+
*/
|
|
9270
|
+
putUpdateContact: async (id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9271
|
+
// verify required parameter 'id' is not null or undefined
|
|
9272
|
+
assertParamExists('putUpdateContact', 'id', id)
|
|
9273
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
9274
|
+
assertParamExists('putUpdateContact', 'contactId', contactId)
|
|
9275
|
+
const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
|
|
9276
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
9277
|
+
.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
|
|
9278
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9279
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9280
|
+
let baseOptions;
|
|
9281
|
+
if (configuration) {
|
|
9282
|
+
baseOptions = configuration.baseOptions;
|
|
9283
|
+
}
|
|
9284
|
+
|
|
9285
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
9286
|
+
const localVarHeaderParameter = {} as any;
|
|
9287
|
+
const localVarQueryParameter = {} as any;
|
|
9288
|
+
|
|
9289
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9290
|
+
|
|
9291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9293
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9294
|
+
localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
|
|
9295
|
+
|
|
9296
|
+
return {
|
|
9297
|
+
url: toPathString(localVarUrlObj),
|
|
9298
|
+
options: localVarRequestOptions,
|
|
9299
|
+
};
|
|
9300
|
+
},
|
|
9187
9301
|
/**
|
|
9188
9302
|
* Update Account Shipping Address
|
|
9189
9303
|
* @param {string} id Xero ID
|
|
@@ -9254,6 +9368,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9254
9368
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9255
9369
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9256
9370
|
},
|
|
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
|
+
},
|
|
9257
9384
|
/**
|
|
9258
9385
|
* Get Account
|
|
9259
9386
|
* @summary Get Account
|
|
@@ -9461,6 +9588,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9461
9588
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountVatNumber']?.[localVarOperationServerIndex]?.url;
|
|
9462
9589
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9463
9590
|
},
|
|
9591
|
+
/**
|
|
9592
|
+
* Create Account Contact
|
|
9593
|
+
* @param {string} id Account Xero ID
|
|
9594
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
9595
|
+
* @param {*} [options] Override http request option.
|
|
9596
|
+
* @throws {RequiredError}
|
|
9597
|
+
*/
|
|
9598
|
+
async postCreateContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9599
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateContact(id, accountContactRequestModel, options);
|
|
9600
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9601
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postCreateContact']?.[localVarOperationServerIndex]?.url;
|
|
9602
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9603
|
+
},
|
|
9464
9604
|
/**
|
|
9465
9605
|
* Add Account Contacts
|
|
9466
9606
|
* @summary Add Account Contact
|
|
@@ -9593,6 +9733,20 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9593
9733
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateBillingAddress']?.[localVarOperationServerIndex]?.url;
|
|
9594
9734
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9595
9735
|
},
|
|
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
|
+
},
|
|
9596
9750
|
/**
|
|
9597
9751
|
* Update Account Shipping Address
|
|
9598
9752
|
* @param {string} id Xero ID
|
|
@@ -9635,6 +9789,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9635
9789
|
deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9636
9790
|
return localVarFp.deleteUpdateAccountContact(email, options).then((request) => request(axios, basePath));
|
|
9637
9791
|
},
|
|
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
|
+
},
|
|
9638
9802
|
/**
|
|
9639
9803
|
* Get Account
|
|
9640
9804
|
* @summary Get Account
|
|
@@ -9794,6 +9958,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9794
9958
|
patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9795
9959
|
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(axios, basePath));
|
|
9796
9960
|
},
|
|
9961
|
+
/**
|
|
9962
|
+
* Create Account Contact
|
|
9963
|
+
* @param {string} id Account Xero ID
|
|
9964
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
9965
|
+
* @param {*} [options] Override http request option.
|
|
9966
|
+
* @throws {RequiredError}
|
|
9967
|
+
*/
|
|
9968
|
+
postCreateContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9969
|
+
return localVarFp.postCreateContact(id, accountContactRequestModel, options).then((request) => request(axios, basePath));
|
|
9970
|
+
},
|
|
9797
9971
|
/**
|
|
9798
9972
|
* Add Account Contacts
|
|
9799
9973
|
* @summary Add Account Contact
|
|
@@ -9896,6 +10070,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9896
10070
|
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9897
10071
|
return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
|
|
9898
10072
|
},
|
|
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
|
+
},
|
|
9899
10084
|
/**
|
|
9900
10085
|
* Update Account Shipping Address
|
|
9901
10086
|
* @param {string} id Xero ID
|
|
@@ -9935,6 +10120,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9935
10120
|
return AccountsApiFp(this.configuration).deleteUpdateAccountContact(email, options).then((request) => request(this.axios, this.basePath));
|
|
9936
10121
|
}
|
|
9937
10122
|
|
|
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
|
+
|
|
9938
10134
|
/**
|
|
9939
10135
|
* Get Account
|
|
9940
10136
|
* @summary Get Account
|
|
@@ -10110,6 +10306,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
10110
10306
|
return AccountsApiFp(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10111
10307
|
}
|
|
10112
10308
|
|
|
10309
|
+
/**
|
|
10310
|
+
* Create Account Contact
|
|
10311
|
+
* @param {string} id Account Xero ID
|
|
10312
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
10313
|
+
* @param {*} [options] Override http request option.
|
|
10314
|
+
* @throws {RequiredError}
|
|
10315
|
+
*/
|
|
10316
|
+
public postCreateContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
|
|
10317
|
+
return AccountsApiFp(this.configuration).postCreateContact(id, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
10318
|
+
}
|
|
10319
|
+
|
|
10113
10320
|
/**
|
|
10114
10321
|
* Add Account Contacts
|
|
10115
10322
|
* @summary Add Account Contact
|
|
@@ -10222,6 +10429,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
10222
10429
|
return AccountsApiFp(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10223
10430
|
}
|
|
10224
10431
|
|
|
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
|
+
|
|
10225
10444
|
/**
|
|
10226
10445
|
* Update Account Shipping Address
|
|
10227
10446
|
* @param {string} id Xero ID
|
package/dist/api.d.ts
CHANGED
|
@@ -4626,6 +4626,10 @@ export interface ProspectDTO {
|
|
|
4626
4626
|
* Status
|
|
4627
4627
|
*/
|
|
4628
4628
|
'status'?: ProspectDTOStatusEnum;
|
|
4629
|
+
/**
|
|
4630
|
+
* Order Count
|
|
4631
|
+
*/
|
|
4632
|
+
'orderCount'?: number;
|
|
4629
4633
|
}
|
|
4630
4634
|
export declare const ProspectDTOStatusEnum: {
|
|
4631
4635
|
readonly NoCallBackSet: "No Call Back Set";
|
|
@@ -8122,6 +8126,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
8122
8126
|
* @throws {RequiredError}
|
|
8123
8127
|
*/
|
|
8124
8128
|
deleteUpdateAccountContact: (email: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8129
|
+
/**
|
|
8130
|
+
* Delete Account Contact
|
|
8131
|
+
* @param {string} id Account Xero ID
|
|
8132
|
+
* @param {number} contactId Contact ID
|
|
8133
|
+
* @param {*} [options] Override http request option.
|
|
8134
|
+
* @throws {RequiredError}
|
|
8135
|
+
*/
|
|
8136
|
+
deleteUpdateContact: (id: string, contactId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8125
8137
|
/**
|
|
8126
8138
|
* Get Account
|
|
8127
8139
|
* @summary Get Account
|
|
@@ -8249,6 +8261,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
8249
8261
|
* @throws {RequiredError}
|
|
8250
8262
|
*/
|
|
8251
8263
|
patchUpdateAccountVatNumber: (id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8264
|
+
/**
|
|
8265
|
+
* Create Account Contact
|
|
8266
|
+
* @param {string} id Account Xero ID
|
|
8267
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
8268
|
+
* @param {*} [options] Override http request option.
|
|
8269
|
+
* @throws {RequiredError}
|
|
8270
|
+
*/
|
|
8271
|
+
postCreateContact: (id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8252
8272
|
/**
|
|
8253
8273
|
* Add Account Contacts
|
|
8254
8274
|
* @summary Add Account Contact
|
|
@@ -8331,6 +8351,15 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
8331
8351
|
* @throws {RequiredError}
|
|
8332
8352
|
*/
|
|
8333
8353
|
putUpdateBillingAddress: (id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8354
|
+
/**
|
|
8355
|
+
* Update Account Contact
|
|
8356
|
+
* @param {string} id Account Xero ID
|
|
8357
|
+
* @param {number} contactId Contact ID
|
|
8358
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
8359
|
+
* @param {*} [options] Override http request option.
|
|
8360
|
+
* @throws {RequiredError}
|
|
8361
|
+
*/
|
|
8362
|
+
putUpdateContact: (id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8334
8363
|
/**
|
|
8335
8364
|
* Update Account Shipping Address
|
|
8336
8365
|
* @param {string} id Xero ID
|
|
@@ -8360,6 +8389,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8360
8389
|
* @throws {RequiredError}
|
|
8361
8390
|
*/
|
|
8362
8391
|
deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8392
|
+
/**
|
|
8393
|
+
* Delete Account Contact
|
|
8394
|
+
* @param {string} id Account Xero ID
|
|
8395
|
+
* @param {number} contactId Contact ID
|
|
8396
|
+
* @param {*} [options] Override http request option.
|
|
8397
|
+
* @throws {RequiredError}
|
|
8398
|
+
*/
|
|
8399
|
+
deleteUpdateContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8363
8400
|
/**
|
|
8364
8401
|
* Get Account
|
|
8365
8402
|
* @summary Get Account
|
|
@@ -8487,6 +8524,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8487
8524
|
* @throws {RequiredError}
|
|
8488
8525
|
*/
|
|
8489
8526
|
patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8527
|
+
/**
|
|
8528
|
+
* Create Account Contact
|
|
8529
|
+
* @param {string} id Account Xero ID
|
|
8530
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
8531
|
+
* @param {*} [options] Override http request option.
|
|
8532
|
+
* @throws {RequiredError}
|
|
8533
|
+
*/
|
|
8534
|
+
postCreateContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8490
8535
|
/**
|
|
8491
8536
|
* Add Account Contacts
|
|
8492
8537
|
* @summary Add Account Contact
|
|
@@ -8569,6 +8614,15 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8569
8614
|
* @throws {RequiredError}
|
|
8570
8615
|
*/
|
|
8571
8616
|
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8617
|
+
/**
|
|
8618
|
+
* Update Account Contact
|
|
8619
|
+
* @param {string} id Account Xero ID
|
|
8620
|
+
* @param {number} contactId Contact ID
|
|
8621
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
8622
|
+
* @param {*} [options] Override http request option.
|
|
8623
|
+
* @throws {RequiredError}
|
|
8624
|
+
*/
|
|
8625
|
+
putUpdateContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8572
8626
|
/**
|
|
8573
8627
|
* Update Account Shipping Address
|
|
8574
8628
|
* @param {string} id Xero ID
|
|
@@ -8598,6 +8652,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
8598
8652
|
* @throws {RequiredError}
|
|
8599
8653
|
*/
|
|
8600
8654
|
deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8655
|
+
/**
|
|
8656
|
+
* Delete Account Contact
|
|
8657
|
+
* @param {string} id Account Xero ID
|
|
8658
|
+
* @param {number} contactId Contact ID
|
|
8659
|
+
* @param {*} [options] Override http request option.
|
|
8660
|
+
* @throws {RequiredError}
|
|
8661
|
+
*/
|
|
8662
|
+
deleteUpdateContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8601
8663
|
/**
|
|
8602
8664
|
* Get Account
|
|
8603
8665
|
* @summary Get Account
|
|
@@ -8725,6 +8787,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
8725
8787
|
* @throws {RequiredError}
|
|
8726
8788
|
*/
|
|
8727
8789
|
patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8790
|
+
/**
|
|
8791
|
+
* Create Account Contact
|
|
8792
|
+
* @param {string} id Account Xero ID
|
|
8793
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
8794
|
+
* @param {*} [options] Override http request option.
|
|
8795
|
+
* @throws {RequiredError}
|
|
8796
|
+
*/
|
|
8797
|
+
postCreateContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8728
8798
|
/**
|
|
8729
8799
|
* Add Account Contacts
|
|
8730
8800
|
* @summary Add Account Contact
|
|
@@ -8807,6 +8877,15 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
8807
8877
|
* @throws {RequiredError}
|
|
8808
8878
|
*/
|
|
8809
8879
|
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8880
|
+
/**
|
|
8881
|
+
* Update Account Contact
|
|
8882
|
+
* @param {string} id Account Xero ID
|
|
8883
|
+
* @param {number} contactId Contact ID
|
|
8884
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
8885
|
+
* @param {*} [options] Override http request option.
|
|
8886
|
+
* @throws {RequiredError}
|
|
8887
|
+
*/
|
|
8888
|
+
putUpdateContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8810
8889
|
/**
|
|
8811
8890
|
* Update Account Shipping Address
|
|
8812
8891
|
* @param {string} id Xero ID
|
|
@@ -8836,6 +8915,14 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
8836
8915
|
* @throws {RequiredError}
|
|
8837
8916
|
*/
|
|
8838
8917
|
deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8918
|
+
/**
|
|
8919
|
+
* Delete Account Contact
|
|
8920
|
+
* @param {string} id Account Xero ID
|
|
8921
|
+
* @param {number} contactId Contact ID
|
|
8922
|
+
* @param {*} [options] Override http request option.
|
|
8923
|
+
* @throws {RequiredError}
|
|
8924
|
+
*/
|
|
8925
|
+
deleteUpdateContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8839
8926
|
/**
|
|
8840
8927
|
* Get Account
|
|
8841
8928
|
* @summary Get Account
|
|
@@ -8963,6 +9050,14 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
8963
9050
|
* @throws {RequiredError}
|
|
8964
9051
|
*/
|
|
8965
9052
|
patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
9053
|
+
/**
|
|
9054
|
+
* Create Account Contact
|
|
9055
|
+
* @param {string} id Account Xero ID
|
|
9056
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
9057
|
+
* @param {*} [options] Override http request option.
|
|
9058
|
+
* @throws {RequiredError}
|
|
9059
|
+
*/
|
|
9060
|
+
postCreateContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8966
9061
|
/**
|
|
8967
9062
|
* Add Account Contacts
|
|
8968
9063
|
* @summary Add Account Contact
|
|
@@ -9045,6 +9140,15 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
9045
9140
|
* @throws {RequiredError}
|
|
9046
9141
|
*/
|
|
9047
9142
|
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
9143
|
+
/**
|
|
9144
|
+
* Update Account Contact
|
|
9145
|
+
* @param {string} id Account Xero ID
|
|
9146
|
+
* @param {number} contactId Contact ID
|
|
9147
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
9148
|
+
* @param {*} [options] Override http request option.
|
|
9149
|
+
* @throws {RequiredError}
|
|
9150
|
+
*/
|
|
9151
|
+
putUpdateContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
9048
9152
|
/**
|
|
9049
9153
|
* Update Account Shipping Address
|
|
9050
9154
|
* @param {string} id Xero ID
|
package/dist/api.js
CHANGED
|
@@ -503,6 +503,46 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
503
503
|
});
|
|
504
504
|
});
|
|
505
505
|
},
|
|
506
|
+
/**
|
|
507
|
+
* Delete Account Contact
|
|
508
|
+
* @param {string} id Account Xero ID
|
|
509
|
+
* @param {number} contactId Contact ID
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
deleteUpdateContact: function (id_1, contactId_1) {
|
|
514
|
+
var args_1 = [];
|
|
515
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
516
|
+
args_1[_i - 2] = arguments[_i];
|
|
517
|
+
}
|
|
518
|
+
return __awaiter(_this, __spreadArray([id_1, contactId_1], args_1, true), void 0, function (id, contactId, options) {
|
|
519
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
520
|
+
if (options === void 0) { options = {}; }
|
|
521
|
+
return __generator(this, function (_a) {
|
|
522
|
+
// verify required parameter 'id' is not null or undefined
|
|
523
|
+
(0, common_1.assertParamExists)('deleteUpdateContact', 'id', id);
|
|
524
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
525
|
+
(0, common_1.assertParamExists)('deleteUpdateContact', 'contactId', contactId);
|
|
526
|
+
localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
|
|
527
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
528
|
+
.replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
|
|
529
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
530
|
+
if (configuration) {
|
|
531
|
+
baseOptions = configuration.baseOptions;
|
|
532
|
+
}
|
|
533
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
534
|
+
localVarHeaderParameter = {};
|
|
535
|
+
localVarQueryParameter = {};
|
|
536
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
537
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
538
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
539
|
+
return [2 /*return*/, {
|
|
540
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
541
|
+
options: localVarRequestOptions,
|
|
542
|
+
}];
|
|
543
|
+
});
|
|
544
|
+
});
|
|
545
|
+
},
|
|
506
546
|
/**
|
|
507
547
|
* Get Account
|
|
508
548
|
* @summary Get Account
|
|
@@ -1120,6 +1160,45 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1120
1160
|
});
|
|
1121
1161
|
});
|
|
1122
1162
|
},
|
|
1163
|
+
/**
|
|
1164
|
+
* Create Account Contact
|
|
1165
|
+
* @param {string} id Account Xero ID
|
|
1166
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
1167
|
+
* @param {*} [options] Override http request option.
|
|
1168
|
+
* @throws {RequiredError}
|
|
1169
|
+
*/
|
|
1170
|
+
postCreateContact: function (id_1, accountContactRequestModel_1) {
|
|
1171
|
+
var args_1 = [];
|
|
1172
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1173
|
+
args_1[_i - 2] = arguments[_i];
|
|
1174
|
+
}
|
|
1175
|
+
return __awaiter(_this, __spreadArray([id_1, accountContactRequestModel_1], args_1, true), void 0, function (id, accountContactRequestModel, options) {
|
|
1176
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1177
|
+
if (options === void 0) { options = {}; }
|
|
1178
|
+
return __generator(this, function (_a) {
|
|
1179
|
+
// verify required parameter 'id' is not null or undefined
|
|
1180
|
+
(0, common_1.assertParamExists)('postCreateContact', 'id', id);
|
|
1181
|
+
localVarPath = "/admin/accounts/{id}/contacts/"
|
|
1182
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1183
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1184
|
+
if (configuration) {
|
|
1185
|
+
baseOptions = configuration.baseOptions;
|
|
1186
|
+
}
|
|
1187
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1188
|
+
localVarHeaderParameter = {};
|
|
1189
|
+
localVarQueryParameter = {};
|
|
1190
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1191
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1192
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1193
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1194
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
|
|
1195
|
+
return [2 /*return*/, {
|
|
1196
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1197
|
+
options: localVarRequestOptions,
|
|
1198
|
+
}];
|
|
1199
|
+
});
|
|
1200
|
+
});
|
|
1201
|
+
},
|
|
1123
1202
|
/**
|
|
1124
1203
|
* Add Account Contacts
|
|
1125
1204
|
* @summary Add Account Contact
|
|
@@ -1503,6 +1582,49 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1503
1582
|
});
|
|
1504
1583
|
});
|
|
1505
1584
|
},
|
|
1585
|
+
/**
|
|
1586
|
+
* Update Account Contact
|
|
1587
|
+
* @param {string} id Account Xero ID
|
|
1588
|
+
* @param {number} contactId Contact ID
|
|
1589
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
*/
|
|
1593
|
+
putUpdateContact: function (id_1, contactId_1, accountContactRequestModel_1) {
|
|
1594
|
+
var args_1 = [];
|
|
1595
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
1596
|
+
args_1[_i - 3] = arguments[_i];
|
|
1597
|
+
}
|
|
1598
|
+
return __awaiter(_this, __spreadArray([id_1, contactId_1, accountContactRequestModel_1], args_1, true), void 0, function (id, contactId, accountContactRequestModel, options) {
|
|
1599
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1600
|
+
if (options === void 0) { options = {}; }
|
|
1601
|
+
return __generator(this, function (_a) {
|
|
1602
|
+
// verify required parameter 'id' is not null or undefined
|
|
1603
|
+
(0, common_1.assertParamExists)('putUpdateContact', 'id', id);
|
|
1604
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
1605
|
+
(0, common_1.assertParamExists)('putUpdateContact', 'contactId', contactId);
|
|
1606
|
+
localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
|
|
1607
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)))
|
|
1608
|
+
.replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
|
|
1609
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1610
|
+
if (configuration) {
|
|
1611
|
+
baseOptions = configuration.baseOptions;
|
|
1612
|
+
}
|
|
1613
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1614
|
+
localVarHeaderParameter = {};
|
|
1615
|
+
localVarQueryParameter = {};
|
|
1616
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1617
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1618
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1619
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1620
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
|
|
1621
|
+
return [2 /*return*/, {
|
|
1622
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1623
|
+
options: localVarRequestOptions,
|
|
1624
|
+
}];
|
|
1625
|
+
});
|
|
1626
|
+
});
|
|
1627
|
+
},
|
|
1506
1628
|
/**
|
|
1507
1629
|
* Update Account Shipping Address
|
|
1508
1630
|
* @param {string} id Xero ID
|
|
@@ -1597,6 +1719,29 @@ var AccountsApiFp = function (configuration) {
|
|
|
1597
1719
|
});
|
|
1598
1720
|
});
|
|
1599
1721
|
},
|
|
1722
|
+
/**
|
|
1723
|
+
* Delete Account Contact
|
|
1724
|
+
* @param {string} id Account Xero ID
|
|
1725
|
+
* @param {number} contactId Contact ID
|
|
1726
|
+
* @param {*} [options] Override http request option.
|
|
1727
|
+
* @throws {RequiredError}
|
|
1728
|
+
*/
|
|
1729
|
+
deleteUpdateContact: function (id, contactId, options) {
|
|
1730
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1731
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1732
|
+
var _a, _b, _c;
|
|
1733
|
+
return __generator(this, function (_d) {
|
|
1734
|
+
switch (_d.label) {
|
|
1735
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateContact(id, contactId, options)];
|
|
1736
|
+
case 1:
|
|
1737
|
+
localVarAxiosArgs = _d.sent();
|
|
1738
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1739
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteUpdateContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1740
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1741
|
+
}
|
|
1742
|
+
});
|
|
1743
|
+
});
|
|
1744
|
+
},
|
|
1600
1745
|
/**
|
|
1601
1746
|
* Get Account
|
|
1602
1747
|
* @summary Get Account
|
|
@@ -1964,6 +2109,29 @@ var AccountsApiFp = function (configuration) {
|
|
|
1964
2109
|
});
|
|
1965
2110
|
});
|
|
1966
2111
|
},
|
|
2112
|
+
/**
|
|
2113
|
+
* Create Account Contact
|
|
2114
|
+
* @param {string} id Account Xero ID
|
|
2115
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
2116
|
+
* @param {*} [options] Override http request option.
|
|
2117
|
+
* @throws {RequiredError}
|
|
2118
|
+
*/
|
|
2119
|
+
postCreateContact: function (id, accountContactRequestModel, options) {
|
|
2120
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2121
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2122
|
+
var _a, _b, _c;
|
|
2123
|
+
return __generator(this, function (_d) {
|
|
2124
|
+
switch (_d.label) {
|
|
2125
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateContact(id, accountContactRequestModel, options)];
|
|
2126
|
+
case 1:
|
|
2127
|
+
localVarAxiosArgs = _d.sent();
|
|
2128
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2129
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postCreateContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2130
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
});
|
|
2134
|
+
},
|
|
1967
2135
|
/**
|
|
1968
2136
|
* Add Account Contacts
|
|
1969
2137
|
* @summary Add Account Contact
|
|
@@ -2196,6 +2364,30 @@ var AccountsApiFp = function (configuration) {
|
|
|
2196
2364
|
});
|
|
2197
2365
|
});
|
|
2198
2366
|
},
|
|
2367
|
+
/**
|
|
2368
|
+
* Update Account Contact
|
|
2369
|
+
* @param {string} id Account Xero ID
|
|
2370
|
+
* @param {number} contactId Contact ID
|
|
2371
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
*/
|
|
2375
|
+
putUpdateContact: function (id, contactId, accountContactRequestModel, 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.putUpdateContact(id, contactId, accountContactRequestModel, 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.putUpdateContact']) === 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
|
+
},
|
|
2199
2391
|
/**
|
|
2200
2392
|
* Update Account Shipping Address
|
|
2201
2393
|
* @param {string} id Xero ID
|
|
@@ -2248,6 +2440,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2248
2440
|
deleteUpdateAccountContact: function (email, options) {
|
|
2249
2441
|
return localVarFp.deleteUpdateAccountContact(email, options).then(function (request) { return request(axios, basePath); });
|
|
2250
2442
|
},
|
|
2443
|
+
/**
|
|
2444
|
+
* Delete Account Contact
|
|
2445
|
+
* @param {string} id Account Xero ID
|
|
2446
|
+
* @param {number} contactId Contact ID
|
|
2447
|
+
* @param {*} [options] Override http request option.
|
|
2448
|
+
* @throws {RequiredError}
|
|
2449
|
+
*/
|
|
2450
|
+
deleteUpdateContact: function (id, contactId, options) {
|
|
2451
|
+
return localVarFp.deleteUpdateContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
|
|
2452
|
+
},
|
|
2251
2453
|
/**
|
|
2252
2454
|
* Get Account
|
|
2253
2455
|
* @summary Get Account
|
|
@@ -2407,6 +2609,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2407
2609
|
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
2408
2610
|
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2409
2611
|
},
|
|
2612
|
+
/**
|
|
2613
|
+
* Create Account Contact
|
|
2614
|
+
* @param {string} id Account Xero ID
|
|
2615
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
2616
|
+
* @param {*} [options] Override http request option.
|
|
2617
|
+
* @throws {RequiredError}
|
|
2618
|
+
*/
|
|
2619
|
+
postCreateContact: function (id, accountContactRequestModel, options) {
|
|
2620
|
+
return localVarFp.postCreateContact(id, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
2621
|
+
},
|
|
2410
2622
|
/**
|
|
2411
2623
|
* Add Account Contacts
|
|
2412
2624
|
* @summary Add Account Contact
|
|
@@ -2509,6 +2721,17 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2509
2721
|
putUpdateBillingAddress: function (id, addressDTO, options) {
|
|
2510
2722
|
return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
|
|
2511
2723
|
},
|
|
2724
|
+
/**
|
|
2725
|
+
* Update Account Contact
|
|
2726
|
+
* @param {string} id Account Xero ID
|
|
2727
|
+
* @param {number} contactId Contact ID
|
|
2728
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
2729
|
+
* @param {*} [options] Override http request option.
|
|
2730
|
+
* @throws {RequiredError}
|
|
2731
|
+
*/
|
|
2732
|
+
putUpdateContact: function (id, contactId, accountContactRequestModel, options) {
|
|
2733
|
+
return localVarFp.putUpdateContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
2734
|
+
},
|
|
2512
2735
|
/**
|
|
2513
2736
|
* Update Account Shipping Address
|
|
2514
2737
|
* @param {string} id Xero ID
|
|
@@ -2552,6 +2775,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2552
2775
|
var _this = this;
|
|
2553
2776
|
return (0, exports.AccountsApiFp)(this.configuration).deleteUpdateAccountContact(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2554
2777
|
};
|
|
2778
|
+
/**
|
|
2779
|
+
* Delete Account Contact
|
|
2780
|
+
* @param {string} id Account Xero ID
|
|
2781
|
+
* @param {number} contactId Contact ID
|
|
2782
|
+
* @param {*} [options] Override http request option.
|
|
2783
|
+
* @throws {RequiredError}
|
|
2784
|
+
*/
|
|
2785
|
+
AccountsApi.prototype.deleteUpdateContact = function (id, contactId, options) {
|
|
2786
|
+
var _this = this;
|
|
2787
|
+
return (0, exports.AccountsApiFp)(this.configuration).deleteUpdateContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2788
|
+
};
|
|
2555
2789
|
/**
|
|
2556
2790
|
* Get Account
|
|
2557
2791
|
* @summary Get Account
|
|
@@ -2727,6 +2961,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2727
2961
|
var _this = this;
|
|
2728
2962
|
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2729
2963
|
};
|
|
2964
|
+
/**
|
|
2965
|
+
* Create Account Contact
|
|
2966
|
+
* @param {string} id Account Xero ID
|
|
2967
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
|
|
2968
|
+
* @param {*} [options] Override http request option.
|
|
2969
|
+
* @throws {RequiredError}
|
|
2970
|
+
*/
|
|
2971
|
+
AccountsApi.prototype.postCreateContact = function (id, accountContactRequestModel, options) {
|
|
2972
|
+
var _this = this;
|
|
2973
|
+
return (0, exports.AccountsApiFp)(this.configuration).postCreateContact(id, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2974
|
+
};
|
|
2730
2975
|
/**
|
|
2731
2976
|
* Add Account Contacts
|
|
2732
2977
|
* @summary Add Account Contact
|
|
@@ -2839,6 +3084,18 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2839
3084
|
var _this = this;
|
|
2840
3085
|
return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2841
3086
|
};
|
|
3087
|
+
/**
|
|
3088
|
+
* Update Account Contact
|
|
3089
|
+
* @param {string} id Account Xero ID
|
|
3090
|
+
* @param {number} contactId Contact ID
|
|
3091
|
+
* @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
|
|
3092
|
+
* @param {*} [options] Override http request option.
|
|
3093
|
+
* @throws {RequiredError}
|
|
3094
|
+
*/
|
|
3095
|
+
AccountsApi.prototype.putUpdateContact = function (id, contactId, accountContactRequestModel, options) {
|
|
3096
|
+
var _this = this;
|
|
3097
|
+
return (0, exports.AccountsApiFp)(this.configuration).putUpdateContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3098
|
+
};
|
|
2842
3099
|
/**
|
|
2843
3100
|
* Update Account Shipping Address
|
|
2844
3101
|
* @param {string} id Xero ID
|
|
@@ -9,5 +9,10 @@ export declare const ServiceEnum: {
|
|
|
9
9
|
readonly value: 1;
|
|
10
10
|
readonly publicValue: "SIP Trunks";
|
|
11
11
|
};
|
|
12
|
+
readonly CUSTOMER_PORTAL: {
|
|
13
|
+
readonly name: "CUSTOMER_PORTAL";
|
|
14
|
+
readonly value: 2;
|
|
15
|
+
readonly publicValue: "Customer Portal";
|
|
16
|
+
};
|
|
12
17
|
};
|
|
13
18
|
export type ServiceEnum = typeof ServiceEnum;
|
package/docs/AccountsApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *https://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**deleteDeleteClientCredentials**](#deletedeleteclientcredentials) | **DELETE** /accounts/me/contacts/credentials/{id} | Delete client credentials|
|
|
8
8
|
|[**deleteUpdateAccountContact**](#deleteupdateaccountcontact) | **DELETE** /accounts/me/contacts/{email} | Delete Account Contact|
|
|
9
|
+
|[**deleteUpdateContact**](#deleteupdatecontact) | **DELETE** /admin/accounts/{id}/contacts/{contact_id} | |
|
|
9
10
|
|[**getGetAccount**](#getgetaccount) | **GET** /accounts/me | Get Account|
|
|
10
11
|
|[**getGetAccountContacts**](#getgetaccountcontacts) | **GET** /accounts/me/contacts | Get Account Contacts|
|
|
11
12
|
|[**getGetAccountDetailedSummary**](#getgetaccountdetailedsummary) | **GET** /accounts/{id}/summary | Get Account Detailed Summary|
|
|
@@ -22,6 +23,7 @@ All URIs are relative to *https://localhost*
|
|
|
22
23
|
|[**patchUpdateAccountContactPassword**](#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password|
|
|
23
24
|
|[**patchUpdateAccountPhone**](#patchupdateaccountphone) | **PATCH** /admin/accounts/{id}/phone | |
|
|
24
25
|
|[**patchUpdateAccountVatNumber**](#patchupdateaccountvatnumber) | **PATCH** /admin/accounts/{id}/vatNumber | |
|
|
26
|
+
|[**postCreateContact**](#postcreatecontact) | **POST** /admin/accounts/{id}/contacts/ | |
|
|
25
27
|
|[**postGetAccountContacts**](#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact|
|
|
26
28
|
|[**postGetAccounts**](#postgetaccounts) | **POST** /accounts | Create a new customer account|
|
|
27
29
|
|[**postGetAdminAccount**](#postgetadminaccount) | **POST** /admin/me | Get Admin Account|
|
|
@@ -32,6 +34,7 @@ All URIs are relative to *https://localhost*
|
|
|
32
34
|
|[**postSubmitResellerApplication**](#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application|
|
|
33
35
|
|[**putUpdateAccountContact**](#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact|
|
|
34
36
|
|[**putUpdateBillingAddress**](#putupdatebillingaddress) | **PUT** /admin/accounts/{id}/billing/address | |
|
|
37
|
+
|[**putUpdateContact**](#putupdatecontact) | **PUT** /admin/accounts/{id}/contacts/{contact_id} | |
|
|
35
38
|
|[**putUpdateShippingAddress**](#putupdateshippingaddress) | **PUT** /admin/accounts/{id}/shipping/address | |
|
|
36
39
|
|
|
37
40
|
# **deleteDeleteClientCredentials**
|
|
@@ -142,6 +145,63 @@ No authorization required
|
|
|
142
145
|
|
|
143
146
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
144
147
|
|
|
148
|
+
# **deleteUpdateContact**
|
|
149
|
+
> deleteUpdateContact()
|
|
150
|
+
|
|
151
|
+
Delete Account Contact
|
|
152
|
+
|
|
153
|
+
### Example
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
import {
|
|
157
|
+
AccountsApi,
|
|
158
|
+
Configuration
|
|
159
|
+
} from 'yellowgrid-api-ts';
|
|
160
|
+
|
|
161
|
+
const configuration = new Configuration();
|
|
162
|
+
const apiInstance = new AccountsApi(configuration);
|
|
163
|
+
|
|
164
|
+
let id: string; //Account Xero ID (default to undefined)
|
|
165
|
+
let contactId: number; //Contact ID (default to undefined)
|
|
166
|
+
|
|
167
|
+
const { status, data } = await apiInstance.deleteUpdateContact(
|
|
168
|
+
id,
|
|
169
|
+
contactId
|
|
170
|
+
);
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Parameters
|
|
174
|
+
|
|
175
|
+
|Name | Type | Description | Notes|
|
|
176
|
+
|------------- | ------------- | ------------- | -------------|
|
|
177
|
+
| **id** | [**string**] | Account Xero ID | defaults to undefined|
|
|
178
|
+
| **contactId** | [**number**] | Contact ID | defaults to undefined|
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### Return type
|
|
182
|
+
|
|
183
|
+
void (empty response body)
|
|
184
|
+
|
|
185
|
+
### Authorization
|
|
186
|
+
|
|
187
|
+
No authorization required
|
|
188
|
+
|
|
189
|
+
### HTTP request headers
|
|
190
|
+
|
|
191
|
+
- **Content-Type**: Not defined
|
|
192
|
+
- **Accept**: Not defined
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### HTTP response details
|
|
196
|
+
| Status code | Description | Response headers |
|
|
197
|
+
|-------------|-------------|------------------|
|
|
198
|
+
|**204** | No Response | - |
|
|
199
|
+
|**400** | Bad Request | - |
|
|
200
|
+
|**401** | Unauthorised | - |
|
|
201
|
+
|**403** | Access Denied | - |
|
|
202
|
+
|
|
203
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
204
|
+
|
|
145
205
|
# **getGetAccount**
|
|
146
206
|
> PortalAccountModel getGetAccount()
|
|
147
207
|
|
|
@@ -1021,6 +1081,64 @@ No authorization required
|
|
|
1021
1081
|
|
|
1022
1082
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1023
1083
|
|
|
1084
|
+
# **postCreateContact**
|
|
1085
|
+
> postCreateContact()
|
|
1086
|
+
|
|
1087
|
+
Create Account Contact
|
|
1088
|
+
|
|
1089
|
+
### Example
|
|
1090
|
+
|
|
1091
|
+
```typescript
|
|
1092
|
+
import {
|
|
1093
|
+
AccountsApi,
|
|
1094
|
+
Configuration,
|
|
1095
|
+
AccountContactRequestModel
|
|
1096
|
+
} from 'yellowgrid-api-ts';
|
|
1097
|
+
|
|
1098
|
+
const configuration = new Configuration();
|
|
1099
|
+
const apiInstance = new AccountsApi(configuration);
|
|
1100
|
+
|
|
1101
|
+
let id: string; //Account Xero ID (default to undefined)
|
|
1102
|
+
let accountContactRequestModel: AccountContactRequestModel; //Create Account Contact Request (optional)
|
|
1103
|
+
|
|
1104
|
+
const { status, data } = await apiInstance.postCreateContact(
|
|
1105
|
+
id,
|
|
1106
|
+
accountContactRequestModel
|
|
1107
|
+
);
|
|
1108
|
+
```
|
|
1109
|
+
|
|
1110
|
+
### Parameters
|
|
1111
|
+
|
|
1112
|
+
|Name | Type | Description | Notes|
|
|
1113
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1114
|
+
| **accountContactRequestModel** | **AccountContactRequestModel**| Create Account Contact Request | |
|
|
1115
|
+
| **id** | [**string**] | Account Xero ID | defaults to undefined|
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
### Return type
|
|
1119
|
+
|
|
1120
|
+
void (empty response body)
|
|
1121
|
+
|
|
1122
|
+
### Authorization
|
|
1123
|
+
|
|
1124
|
+
No authorization required
|
|
1125
|
+
|
|
1126
|
+
### HTTP request headers
|
|
1127
|
+
|
|
1128
|
+
- **Content-Type**: application/json
|
|
1129
|
+
- **Accept**: Not defined
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
### HTTP response details
|
|
1133
|
+
| Status code | Description | Response headers |
|
|
1134
|
+
|-------------|-------------|------------------|
|
|
1135
|
+
|**201** | No Response | - |
|
|
1136
|
+
|**400** | Bad Request | - |
|
|
1137
|
+
|**401** | Unauthorised | - |
|
|
1138
|
+
|**403** | Access Denied | - |
|
|
1139
|
+
|
|
1140
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1141
|
+
|
|
1024
1142
|
# **postGetAccountContacts**
|
|
1025
1143
|
> postGetAccountContacts()
|
|
1026
1144
|
|
|
@@ -1551,6 +1669,67 @@ const { status, data } = await apiInstance.putUpdateBillingAddress(
|
|
|
1551
1669
|
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
1552
1670
|
|
|
1553
1671
|
|
|
1672
|
+
### Return type
|
|
1673
|
+
|
|
1674
|
+
void (empty response body)
|
|
1675
|
+
|
|
1676
|
+
### Authorization
|
|
1677
|
+
|
|
1678
|
+
No authorization required
|
|
1679
|
+
|
|
1680
|
+
### HTTP request headers
|
|
1681
|
+
|
|
1682
|
+
- **Content-Type**: application/json
|
|
1683
|
+
- **Accept**: Not defined
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
### HTTP response details
|
|
1687
|
+
| Status code | Description | Response headers |
|
|
1688
|
+
|-------------|-------------|------------------|
|
|
1689
|
+
|**204** | No Response | - |
|
|
1690
|
+
|**400** | Bad Request | - |
|
|
1691
|
+
|**401** | Unauthorised | - |
|
|
1692
|
+
|**403** | Access Denied | - |
|
|
1693
|
+
|
|
1694
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1695
|
+
|
|
1696
|
+
# **putUpdateContact**
|
|
1697
|
+
> putUpdateContact()
|
|
1698
|
+
|
|
1699
|
+
Update Account Contact
|
|
1700
|
+
|
|
1701
|
+
### Example
|
|
1702
|
+
|
|
1703
|
+
```typescript
|
|
1704
|
+
import {
|
|
1705
|
+
AccountsApi,
|
|
1706
|
+
Configuration,
|
|
1707
|
+
AccountContactRequestModel
|
|
1708
|
+
} from 'yellowgrid-api-ts';
|
|
1709
|
+
|
|
1710
|
+
const configuration = new Configuration();
|
|
1711
|
+
const apiInstance = new AccountsApi(configuration);
|
|
1712
|
+
|
|
1713
|
+
let id: string; //Account Xero ID (default to undefined)
|
|
1714
|
+
let contactId: number; //Contact ID (default to undefined)
|
|
1715
|
+
let accountContactRequestModel: AccountContactRequestModel; //Update Account Contact Request (optional)
|
|
1716
|
+
|
|
1717
|
+
const { status, data } = await apiInstance.putUpdateContact(
|
|
1718
|
+
id,
|
|
1719
|
+
contactId,
|
|
1720
|
+
accountContactRequestModel
|
|
1721
|
+
);
|
|
1722
|
+
```
|
|
1723
|
+
|
|
1724
|
+
### Parameters
|
|
1725
|
+
|
|
1726
|
+
|Name | Type | Description | Notes|
|
|
1727
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1728
|
+
| **accountContactRequestModel** | **AccountContactRequestModel**| Update Account Contact Request | |
|
|
1729
|
+
| **id** | [**string**] | Account Xero ID | defaults to undefined|
|
|
1730
|
+
| **contactId** | [**number**] | Contact ID | defaults to undefined|
|
|
1731
|
+
|
|
1732
|
+
|
|
1554
1733
|
### Return type
|
|
1555
1734
|
|
|
1556
1735
|
void (empty response body)
|
package/docs/ProspectDTO.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**xeroId** | **string** | Xero ID | [optional] [default to undefined]
|
|
14
14
|
**removed** | **boolean** | Removed From Prospects | [optional] [default to undefined]
|
|
15
15
|
**status** | **string** | Status | [optional] [default to undefined]
|
|
16
|
+
**orderCount** | **number** | Order Count | [optional] [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -27,6 +28,7 @@ const instance: ProspectDTO = {
|
|
|
27
28
|
xeroId,
|
|
28
29
|
removed,
|
|
29
30
|
status,
|
|
31
|
+
orderCount,
|
|
30
32
|
};
|
|
31
33
|
```
|
|
32
34
|
|
package/models/ServiceEnum.ts
CHANGED