yellowgrid-api-ts 3.2.139-dev.0 → 3.2.141-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/.openapi-generator/FILES +4 -0
- package/README.md +9 -0
- package/api.ts +420 -0
- package/dist/api.d.ts +230 -0
- package/dist/api.js +420 -4
- package/docs/AccountFinanceDTO.md +35 -0
- package/docs/AccountsApi.md +287 -0
- package/docs/CustomerItemRequestDTO.md +2 -0
- package/docs/DetailedItemRequestDTO.md +2 -0
- package/docs/ItemDTO.md +2 -0
- package/docs/OrderItemDTO.md +2 -0
- package/docs/PatchUpdateCreditLimitRequest.md +20 -0
- package/docs/PatchUpdatePriceListRequest.md +20 -0
- package/docs/PatchUpdateSipChannelCostRequest.md +20 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -10,6 +10,7 @@ docs/AccountContactEntity.md
|
|
|
10
10
|
docs/AccountContactModel.md
|
|
11
11
|
docs/AccountContactRequestModel.md
|
|
12
12
|
docs/AccountDetailedSummaryDTO.md
|
|
13
|
+
docs/AccountFinanceDTO.md
|
|
13
14
|
docs/AccountPageDetailsDTO.md
|
|
14
15
|
docs/AccountRequestModel.md
|
|
15
16
|
docs/AccountSummaryDTO.md
|
|
@@ -133,6 +134,9 @@ docs/PatchUpdateAccountCompanyNumberRequest.md
|
|
|
133
134
|
docs/PatchUpdateAccountContactPasswordRequest.md
|
|
134
135
|
docs/PatchUpdateAccountPhoneRequest.md
|
|
135
136
|
docs/PatchUpdateAccountVatNumberRequest.md
|
|
137
|
+
docs/PatchUpdateCreditLimitRequest.md
|
|
138
|
+
docs/PatchUpdatePriceListRequest.md
|
|
139
|
+
docs/PatchUpdateSipChannelCostRequest.md
|
|
136
140
|
docs/PortalAccountModel.md
|
|
137
141
|
docs/PortalLoginModel.md
|
|
138
142
|
docs/PostAddOrderNoteRequest.md
|
package/README.md
CHANGED
|
@@ -52,7 +52,9 @@ All URIs are relative to *https://localhost*
|
|
|
52
52
|
Class | Method | HTTP request | Description
|
|
53
53
|
------------ | ------------- | ------------- | -------------
|
|
54
54
|
*AccountsApi* | [**deleteAdminUpdateAccountContact**](docs/AccountsApi.md#deleteadminupdateaccountcontact) | **DELETE** /admin/accounts/{id}/contacts/{contact_id} |
|
|
55
|
+
*AccountsApi* | [**deleteArchiveAccount**](docs/AccountsApi.md#deletearchiveaccount) | **DELETE** /admin/accounts/{id}/archive |
|
|
55
56
|
*AccountsApi* | [**deleteDeleteClientCredentials**](docs/AccountsApi.md#deletedeleteclientcredentials) | **DELETE** /accounts/me/contacts/credentials/{id} | Delete client credentials
|
|
57
|
+
*AccountsApi* | [**deleteGetFinanceSettings**](docs/AccountsApi.md#deletegetfinancesettings) | **DELETE** /admin/accounts/{id}/finance |
|
|
56
58
|
*AccountsApi* | [**deleteUpdateAccountContact**](docs/AccountsApi.md#deleteupdateaccountcontact) | **DELETE** /accounts/me/contacts/{email} | Delete Account Contact
|
|
57
59
|
*AccountsApi* | [**getAdminCreateAccountContact**](docs/AccountsApi.md#getadmincreateaccountcontact) | **GET** /admin/accounts/{id}/contacts |
|
|
58
60
|
*AccountsApi* | [**getGetAccount**](docs/AccountsApi.md#getgetaccount) | **GET** /accounts/me | Get Account
|
|
@@ -71,6 +73,9 @@ Class | Method | HTTP request | Description
|
|
|
71
73
|
*AccountsApi* | [**patchUpdateAccountContactPassword**](docs/AccountsApi.md#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password
|
|
72
74
|
*AccountsApi* | [**patchUpdateAccountPhone**](docs/AccountsApi.md#patchupdateaccountphone) | **PATCH** /admin/accounts/{id}/phone |
|
|
73
75
|
*AccountsApi* | [**patchUpdateAccountVatNumber**](docs/AccountsApi.md#patchupdateaccountvatnumber) | **PATCH** /admin/accounts/{id}/vatNumber |
|
|
76
|
+
*AccountsApi* | [**patchUpdateCreditLimit**](docs/AccountsApi.md#patchupdatecreditlimit) | **PATCH** /admin/accounts/{id}/creditLimit |
|
|
77
|
+
*AccountsApi* | [**patchUpdatePriceList**](docs/AccountsApi.md#patchupdatepricelist) | **PATCH** /admin/accounts/{id}/priceList |
|
|
78
|
+
*AccountsApi* | [**patchUpdateSipChannelCost**](docs/AccountsApi.md#patchupdatesipchannelcost) | **PATCH** /admin/accounts/{id}/channelCost |
|
|
74
79
|
*AccountsApi* | [**postAdminCreateAccountContact**](docs/AccountsApi.md#postadmincreateaccountcontact) | **POST** /admin/accounts/{id}/contacts |
|
|
75
80
|
*AccountsApi* | [**postGetAccountContacts**](docs/AccountsApi.md#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact
|
|
76
81
|
*AccountsApi* | [**postGetAccounts**](docs/AccountsApi.md#postgetaccounts) | **POST** /accounts | Create a new customer account
|
|
@@ -303,6 +308,7 @@ Class | Method | HTTP request | Description
|
|
|
303
308
|
- [AccountContactModel](docs/AccountContactModel.md)
|
|
304
309
|
- [AccountContactRequestModel](docs/AccountContactRequestModel.md)
|
|
305
310
|
- [AccountDetailedSummaryDTO](docs/AccountDetailedSummaryDTO.md)
|
|
311
|
+
- [AccountFinanceDTO](docs/AccountFinanceDTO.md)
|
|
306
312
|
- [AccountPageDetailsDTO](docs/AccountPageDetailsDTO.md)
|
|
307
313
|
- [AccountRequestModel](docs/AccountRequestModel.md)
|
|
308
314
|
- [AccountSummaryDTO](docs/AccountSummaryDTO.md)
|
|
@@ -415,6 +421,9 @@ Class | Method | HTTP request | Description
|
|
|
415
421
|
- [PatchUpdateAccountContactPasswordRequest](docs/PatchUpdateAccountContactPasswordRequest.md)
|
|
416
422
|
- [PatchUpdateAccountPhoneRequest](docs/PatchUpdateAccountPhoneRequest.md)
|
|
417
423
|
- [PatchUpdateAccountVatNumberRequest](docs/PatchUpdateAccountVatNumberRequest.md)
|
|
424
|
+
- [PatchUpdateCreditLimitRequest](docs/PatchUpdateCreditLimitRequest.md)
|
|
425
|
+
- [PatchUpdatePriceListRequest](docs/PatchUpdatePriceListRequest.md)
|
|
426
|
+
- [PatchUpdateSipChannelCostRequest](docs/PatchUpdateSipChannelCostRequest.md)
|
|
418
427
|
- [PortalAccountModel](docs/PortalAccountModel.md)
|
|
419
428
|
- [PortalLoginModel](docs/PortalLoginModel.md)
|
|
420
429
|
- [PostAddOrderNoteRequest](docs/PostAddOrderNoteRequest.md)
|
package/api.ts
CHANGED
|
@@ -247,6 +247,42 @@ export interface AccountDetailedSummaryDTO {
|
|
|
247
247
|
*/
|
|
248
248
|
'balance'?: number | null;
|
|
249
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* Account Finance DTO
|
|
252
|
+
*/
|
|
253
|
+
export interface AccountFinanceDTO {
|
|
254
|
+
/**
|
|
255
|
+
* Account ID
|
|
256
|
+
*/
|
|
257
|
+
'id'?: number;
|
|
258
|
+
/**
|
|
259
|
+
* Account Xero ID
|
|
260
|
+
*/
|
|
261
|
+
'xeroId'?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Credit Limit
|
|
264
|
+
*/
|
|
265
|
+
'creditLimit'?: number;
|
|
266
|
+
/**
|
|
267
|
+
* Balance Used
|
|
268
|
+
*/
|
|
269
|
+
'balance'?: number;
|
|
270
|
+
/**
|
|
271
|
+
* Overdue Amount
|
|
272
|
+
*/
|
|
273
|
+
'overdue'?: number;
|
|
274
|
+
'priceList'?: CustomerPriceListEnum;
|
|
275
|
+
/**
|
|
276
|
+
* SIP Trunk Channel Cost
|
|
277
|
+
*/
|
|
278
|
+
'sipChannelCost'?: number;
|
|
279
|
+
/**
|
|
280
|
+
* Xero Contact URL
|
|
281
|
+
*/
|
|
282
|
+
'xeroUrl'?: string;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
|
|
250
286
|
/**
|
|
251
287
|
* Account Page Details
|
|
252
288
|
*/
|
|
@@ -1848,6 +1884,10 @@ export interface CustomerItemRequestDTO {
|
|
|
1848
1884
|
* 3CX Hosting
|
|
1849
1885
|
*/
|
|
1850
1886
|
'hosting'?: boolean | null;
|
|
1887
|
+
/**
|
|
1888
|
+
* 3CX Renewal Years (Upgrade only)
|
|
1889
|
+
*/
|
|
1890
|
+
'renewalYears'?: number | null;
|
|
1851
1891
|
/**
|
|
1852
1892
|
* Date Time
|
|
1853
1893
|
*/
|
|
@@ -1981,6 +2021,10 @@ export interface DetailedItemRequestDTO {
|
|
|
1981
2021
|
* 3CX Hosting
|
|
1982
2022
|
*/
|
|
1983
2023
|
'hosting'?: boolean | null;
|
|
2024
|
+
/**
|
|
2025
|
+
* 3CX Renewal Years (Upgrade only)
|
|
2026
|
+
*/
|
|
2027
|
+
'renewalYears'?: number | null;
|
|
1984
2028
|
/**
|
|
1985
2029
|
* Date Time
|
|
1986
2030
|
*/
|
|
@@ -2931,6 +2975,10 @@ export interface ItemDTO {
|
|
|
2931
2975
|
* 3CX Hosting
|
|
2932
2976
|
*/
|
|
2933
2977
|
'hosting'?: boolean | null;
|
|
2978
|
+
/**
|
|
2979
|
+
* 3CX Renewal Years (Upgrade only)
|
|
2980
|
+
*/
|
|
2981
|
+
'renewalYears'?: number | null;
|
|
2934
2982
|
/**
|
|
2935
2983
|
* Promo Item
|
|
2936
2984
|
*/
|
|
@@ -3762,6 +3810,10 @@ export interface OrderItemDTO {
|
|
|
3762
3810
|
* 3CX Hosting
|
|
3763
3811
|
*/
|
|
3764
3812
|
'hosting'?: boolean | null;
|
|
3813
|
+
/**
|
|
3814
|
+
* 3CX Renewal Years (Upgrade only)
|
|
3815
|
+
*/
|
|
3816
|
+
'renewalYears'?: number | null;
|
|
3765
3817
|
/**
|
|
3766
3818
|
* Promo Item
|
|
3767
3819
|
*/
|
|
@@ -4173,6 +4225,37 @@ export interface PatchUpdateAccountVatNumberRequest {
|
|
|
4173
4225
|
*/
|
|
4174
4226
|
'vatNumber'?: string;
|
|
4175
4227
|
}
|
|
4228
|
+
export interface PatchUpdateCreditLimitRequest {
|
|
4229
|
+
/**
|
|
4230
|
+
* Credit Limit
|
|
4231
|
+
*/
|
|
4232
|
+
'creditLimit'?: number;
|
|
4233
|
+
}
|
|
4234
|
+
export interface PatchUpdatePriceListRequest {
|
|
4235
|
+
/**
|
|
4236
|
+
* Price List
|
|
4237
|
+
*/
|
|
4238
|
+
'priceList'?: PatchUpdatePriceListRequestPriceListEnum;
|
|
4239
|
+
}
|
|
4240
|
+
|
|
4241
|
+
export const PatchUpdatePriceListRequestPriceListEnum = {
|
|
4242
|
+
Rrp: 'RRP',
|
|
4243
|
+
Trade: 'Trade',
|
|
4244
|
+
Wholesale: 'Wholesale',
|
|
4245
|
+
Itsp: 'ITSP',
|
|
4246
|
+
SubDisti: 'Sub Disti',
|
|
4247
|
+
Distributor: 'Distributor',
|
|
4248
|
+
HotelDisti: 'Hotel Disti'
|
|
4249
|
+
} as const;
|
|
4250
|
+
|
|
4251
|
+
export type PatchUpdatePriceListRequestPriceListEnum = typeof PatchUpdatePriceListRequestPriceListEnum[keyof typeof PatchUpdatePriceListRequestPriceListEnum];
|
|
4252
|
+
|
|
4253
|
+
export interface PatchUpdateSipChannelCostRequest {
|
|
4254
|
+
/**
|
|
4255
|
+
* SIP Channel Cost
|
|
4256
|
+
*/
|
|
4257
|
+
'channelCost'?: number;
|
|
4258
|
+
}
|
|
4176
4259
|
/**
|
|
4177
4260
|
* Customer Account
|
|
4178
4261
|
*/
|
|
@@ -8242,6 +8325,38 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8242
8325
|
const localVarQueryParameter = {} as any;
|
|
8243
8326
|
|
|
8244
8327
|
|
|
8328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8331
|
+
|
|
8332
|
+
return {
|
|
8333
|
+
url: toPathString(localVarUrlObj),
|
|
8334
|
+
options: localVarRequestOptions,
|
|
8335
|
+
};
|
|
8336
|
+
},
|
|
8337
|
+
/**
|
|
8338
|
+
* Delete Account
|
|
8339
|
+
* @param {string} id Account Xero ID
|
|
8340
|
+
* @param {*} [options] Override http request option.
|
|
8341
|
+
* @throws {RequiredError}
|
|
8342
|
+
*/
|
|
8343
|
+
deleteArchiveAccount: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8344
|
+
// verify required parameter 'id' is not null or undefined
|
|
8345
|
+
assertParamExists('deleteArchiveAccount', 'id', id)
|
|
8346
|
+
const localVarPath = `/admin/accounts/{id}/archive`
|
|
8347
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8350
|
+
let baseOptions;
|
|
8351
|
+
if (configuration) {
|
|
8352
|
+
baseOptions = configuration.baseOptions;
|
|
8353
|
+
}
|
|
8354
|
+
|
|
8355
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
8356
|
+
const localVarHeaderParameter = {} as any;
|
|
8357
|
+
const localVarQueryParameter = {} as any;
|
|
8358
|
+
|
|
8359
|
+
|
|
8245
8360
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8246
8361
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8247
8362
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8275,6 +8390,39 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8275
8390
|
const localVarQueryParameter = {} as any;
|
|
8276
8391
|
|
|
8277
8392
|
|
|
8393
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8395
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8396
|
+
|
|
8397
|
+
return {
|
|
8398
|
+
url: toPathString(localVarUrlObj),
|
|
8399
|
+
options: localVarRequestOptions,
|
|
8400
|
+
};
|
|
8401
|
+
},
|
|
8402
|
+
/**
|
|
8403
|
+
* Get Account Finance
|
|
8404
|
+
* @param {string} id Account Xero ID
|
|
8405
|
+
* @param {*} [options] Override http request option.
|
|
8406
|
+
* @throws {RequiredError}
|
|
8407
|
+
*/
|
|
8408
|
+
deleteGetFinanceSettings: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8409
|
+
// verify required parameter 'id' is not null or undefined
|
|
8410
|
+
assertParamExists('deleteGetFinanceSettings', 'id', id)
|
|
8411
|
+
const localVarPath = `/admin/accounts/{id}/finance`
|
|
8412
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8413
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8414
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8415
|
+
let baseOptions;
|
|
8416
|
+
if (configuration) {
|
|
8417
|
+
baseOptions = configuration.baseOptions;
|
|
8418
|
+
}
|
|
8419
|
+
|
|
8420
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
8421
|
+
const localVarHeaderParameter = {} as any;
|
|
8422
|
+
const localVarQueryParameter = {} as any;
|
|
8423
|
+
|
|
8424
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
8425
|
+
|
|
8278
8426
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8279
8427
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8280
8428
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8910,6 +9058,114 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8910
9058
|
options: localVarRequestOptions,
|
|
8911
9059
|
};
|
|
8912
9060
|
},
|
|
9061
|
+
/**
|
|
9062
|
+
* Set Account Credit Limit
|
|
9063
|
+
* @param {string} id Xero ID
|
|
9064
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
9065
|
+
* @param {*} [options] Override http request option.
|
|
9066
|
+
* @throws {RequiredError}
|
|
9067
|
+
*/
|
|
9068
|
+
patchUpdateCreditLimit: async (id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9069
|
+
// verify required parameter 'id' is not null or undefined
|
|
9070
|
+
assertParamExists('patchUpdateCreditLimit', 'id', id)
|
|
9071
|
+
const localVarPath = `/admin/accounts/{id}/creditLimit`
|
|
9072
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9073
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9074
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9075
|
+
let baseOptions;
|
|
9076
|
+
if (configuration) {
|
|
9077
|
+
baseOptions = configuration.baseOptions;
|
|
9078
|
+
}
|
|
9079
|
+
|
|
9080
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9081
|
+
const localVarHeaderParameter = {} as any;
|
|
9082
|
+
const localVarQueryParameter = {} as any;
|
|
9083
|
+
|
|
9084
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9085
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9086
|
+
|
|
9087
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9088
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9089
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9090
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateCreditLimitRequest, localVarRequestOptions, configuration)
|
|
9091
|
+
|
|
9092
|
+
return {
|
|
9093
|
+
url: toPathString(localVarUrlObj),
|
|
9094
|
+
options: localVarRequestOptions,
|
|
9095
|
+
};
|
|
9096
|
+
},
|
|
9097
|
+
/**
|
|
9098
|
+
* Set Account Price List
|
|
9099
|
+
* @param {string} id Xero ID
|
|
9100
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
9101
|
+
* @param {*} [options] Override http request option.
|
|
9102
|
+
* @throws {RequiredError}
|
|
9103
|
+
*/
|
|
9104
|
+
patchUpdatePriceList: async (id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9105
|
+
// verify required parameter 'id' is not null or undefined
|
|
9106
|
+
assertParamExists('patchUpdatePriceList', 'id', id)
|
|
9107
|
+
const localVarPath = `/admin/accounts/{id}/priceList`
|
|
9108
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9111
|
+
let baseOptions;
|
|
9112
|
+
if (configuration) {
|
|
9113
|
+
baseOptions = configuration.baseOptions;
|
|
9114
|
+
}
|
|
9115
|
+
|
|
9116
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9117
|
+
const localVarHeaderParameter = {} as any;
|
|
9118
|
+
const localVarQueryParameter = {} as any;
|
|
9119
|
+
|
|
9120
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9121
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9122
|
+
|
|
9123
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9124
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9125
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9126
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchUpdatePriceListRequest, localVarRequestOptions, configuration)
|
|
9127
|
+
|
|
9128
|
+
return {
|
|
9129
|
+
url: toPathString(localVarUrlObj),
|
|
9130
|
+
options: localVarRequestOptions,
|
|
9131
|
+
};
|
|
9132
|
+
},
|
|
9133
|
+
/**
|
|
9134
|
+
* Set Account SIP Channel Cost
|
|
9135
|
+
* @param {string} id Xero ID
|
|
9136
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
9137
|
+
* @param {*} [options] Override http request option.
|
|
9138
|
+
* @throws {RequiredError}
|
|
9139
|
+
*/
|
|
9140
|
+
patchUpdateSipChannelCost: async (id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9141
|
+
// verify required parameter 'id' is not null or undefined
|
|
9142
|
+
assertParamExists('patchUpdateSipChannelCost', 'id', id)
|
|
9143
|
+
const localVarPath = `/admin/accounts/{id}/channelCost`
|
|
9144
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9146
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9147
|
+
let baseOptions;
|
|
9148
|
+
if (configuration) {
|
|
9149
|
+
baseOptions = configuration.baseOptions;
|
|
9150
|
+
}
|
|
9151
|
+
|
|
9152
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9153
|
+
const localVarHeaderParameter = {} as any;
|
|
9154
|
+
const localVarQueryParameter = {} as any;
|
|
9155
|
+
|
|
9156
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9157
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9158
|
+
|
|
9159
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9160
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9161
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9162
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateSipChannelCostRequest, localVarRequestOptions, configuration)
|
|
9163
|
+
|
|
9164
|
+
return {
|
|
9165
|
+
url: toPathString(localVarUrlObj),
|
|
9166
|
+
options: localVarRequestOptions,
|
|
9167
|
+
};
|
|
9168
|
+
},
|
|
8913
9169
|
/**
|
|
8914
9170
|
* Create Account Contact
|
|
8915
9171
|
* @param {string} id Account Xero ID
|
|
@@ -9388,6 +9644,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9388
9644
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9389
9645
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9390
9646
|
},
|
|
9647
|
+
/**
|
|
9648
|
+
* Delete Account
|
|
9649
|
+
* @param {string} id Account Xero ID
|
|
9650
|
+
* @param {*} [options] Override http request option.
|
|
9651
|
+
* @throws {RequiredError}
|
|
9652
|
+
*/
|
|
9653
|
+
async deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9654
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteArchiveAccount(id, options);
|
|
9655
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9656
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteArchiveAccount']?.[localVarOperationServerIndex]?.url;
|
|
9657
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9658
|
+
},
|
|
9391
9659
|
/**
|
|
9392
9660
|
* Delete client credentials
|
|
9393
9661
|
* @summary Delete client credentials
|
|
@@ -9401,6 +9669,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9401
9669
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteDeleteClientCredentials']?.[localVarOperationServerIndex]?.url;
|
|
9402
9670
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9403
9671
|
},
|
|
9672
|
+
/**
|
|
9673
|
+
* Get Account Finance
|
|
9674
|
+
* @param {string} id Account Xero ID
|
|
9675
|
+
* @param {*} [options] Override http request option.
|
|
9676
|
+
* @throws {RequiredError}
|
|
9677
|
+
*/
|
|
9678
|
+
async deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
9679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGetFinanceSettings(id, options);
|
|
9680
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9681
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteGetFinanceSettings']?.[localVarOperationServerIndex]?.url;
|
|
9682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9683
|
+
},
|
|
9404
9684
|
/**
|
|
9405
9685
|
* Delete Account Contacts
|
|
9406
9686
|
* @summary Delete Account Contact
|
|
@@ -9633,6 +9913,45 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9633
9913
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountVatNumber']?.[localVarOperationServerIndex]?.url;
|
|
9634
9914
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9635
9915
|
},
|
|
9916
|
+
/**
|
|
9917
|
+
* Set Account Credit Limit
|
|
9918
|
+
* @param {string} id Xero ID
|
|
9919
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
9920
|
+
* @param {*} [options] Override http request option.
|
|
9921
|
+
* @throws {RequiredError}
|
|
9922
|
+
*/
|
|
9923
|
+
async patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
9924
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options);
|
|
9925
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9926
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateCreditLimit']?.[localVarOperationServerIndex]?.url;
|
|
9927
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9928
|
+
},
|
|
9929
|
+
/**
|
|
9930
|
+
* Set Account Price List
|
|
9931
|
+
* @param {string} id Xero ID
|
|
9932
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
9933
|
+
* @param {*} [options] Override http request option.
|
|
9934
|
+
* @throws {RequiredError}
|
|
9935
|
+
*/
|
|
9936
|
+
async patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
9937
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdatePriceList(id, patchUpdatePriceListRequest, options);
|
|
9938
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9939
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdatePriceList']?.[localVarOperationServerIndex]?.url;
|
|
9940
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9941
|
+
},
|
|
9942
|
+
/**
|
|
9943
|
+
* Set Account SIP Channel Cost
|
|
9944
|
+
* @param {string} id Xero ID
|
|
9945
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
9946
|
+
* @param {*} [options] Override http request option.
|
|
9947
|
+
* @throws {RequiredError}
|
|
9948
|
+
*/
|
|
9949
|
+
async patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
9950
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options);
|
|
9951
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9952
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateSipChannelCost']?.[localVarOperationServerIndex]?.url;
|
|
9953
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9954
|
+
},
|
|
9636
9955
|
/**
|
|
9637
9956
|
* Create Account Contact
|
|
9638
9957
|
* @param {string} id Account Xero ID
|
|
@@ -9824,6 +10143,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9824
10143
|
deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9825
10144
|
return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(axios, basePath));
|
|
9826
10145
|
},
|
|
10146
|
+
/**
|
|
10147
|
+
* Delete Account
|
|
10148
|
+
* @param {string} id Account Xero ID
|
|
10149
|
+
* @param {*} [options] Override http request option.
|
|
10150
|
+
* @throws {RequiredError}
|
|
10151
|
+
*/
|
|
10152
|
+
deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10153
|
+
return localVarFp.deleteArchiveAccount(id, options).then((request) => request(axios, basePath));
|
|
10154
|
+
},
|
|
9827
10155
|
/**
|
|
9828
10156
|
* Delete client credentials
|
|
9829
10157
|
* @summary Delete client credentials
|
|
@@ -9834,6 +10162,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9834
10162
|
deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9835
10163
|
return localVarFp.deleteDeleteClientCredentials(id, options).then((request) => request(axios, basePath));
|
|
9836
10164
|
},
|
|
10165
|
+
/**
|
|
10166
|
+
* Get Account Finance
|
|
10167
|
+
* @param {string} id Account Xero ID
|
|
10168
|
+
* @param {*} [options] Override http request option.
|
|
10169
|
+
* @throws {RequiredError}
|
|
10170
|
+
*/
|
|
10171
|
+
deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10172
|
+
return localVarFp.deleteGetFinanceSettings(id, options).then((request) => request(axios, basePath));
|
|
10173
|
+
},
|
|
9837
10174
|
/**
|
|
9838
10175
|
* Delete Account Contacts
|
|
9839
10176
|
* @summary Delete Account Contact
|
|
@@ -10012,6 +10349,36 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10012
10349
|
patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10013
10350
|
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(axios, basePath));
|
|
10014
10351
|
},
|
|
10352
|
+
/**
|
|
10353
|
+
* Set Account Credit Limit
|
|
10354
|
+
* @param {string} id Xero ID
|
|
10355
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
10356
|
+
* @param {*} [options] Override http request option.
|
|
10357
|
+
* @throws {RequiredError}
|
|
10358
|
+
*/
|
|
10359
|
+
patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10360
|
+
return localVarFp.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then((request) => request(axios, basePath));
|
|
10361
|
+
},
|
|
10362
|
+
/**
|
|
10363
|
+
* Set Account Price List
|
|
10364
|
+
* @param {string} id Xero ID
|
|
10365
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
10366
|
+
* @param {*} [options] Override http request option.
|
|
10367
|
+
* @throws {RequiredError}
|
|
10368
|
+
*/
|
|
10369
|
+
patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10370
|
+
return localVarFp.patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then((request) => request(axios, basePath));
|
|
10371
|
+
},
|
|
10372
|
+
/**
|
|
10373
|
+
* Set Account SIP Channel Cost
|
|
10374
|
+
* @param {string} id Xero ID
|
|
10375
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
10376
|
+
* @param {*} [options] Override http request option.
|
|
10377
|
+
* @throws {RequiredError}
|
|
10378
|
+
*/
|
|
10379
|
+
patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10380
|
+
return localVarFp.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then((request) => request(axios, basePath));
|
|
10381
|
+
},
|
|
10015
10382
|
/**
|
|
10016
10383
|
* Create Account Contact
|
|
10017
10384
|
* @param {string} id Account Xero ID
|
|
@@ -10163,6 +10530,16 @@ export class AccountsApi extends BaseAPI {
|
|
|
10163
10530
|
return AccountsApiFp(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(this.axios, this.basePath));
|
|
10164
10531
|
}
|
|
10165
10532
|
|
|
10533
|
+
/**
|
|
10534
|
+
* Delete Account
|
|
10535
|
+
* @param {string} id Account Xero ID
|
|
10536
|
+
* @param {*} [options] Override http request option.
|
|
10537
|
+
* @throws {RequiredError}
|
|
10538
|
+
*/
|
|
10539
|
+
public deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig) {
|
|
10540
|
+
return AccountsApiFp(this.configuration).deleteArchiveAccount(id, options).then((request) => request(this.axios, this.basePath));
|
|
10541
|
+
}
|
|
10542
|
+
|
|
10166
10543
|
/**
|
|
10167
10544
|
* Delete client credentials
|
|
10168
10545
|
* @summary Delete client credentials
|
|
@@ -10174,6 +10551,16 @@ export class AccountsApi extends BaseAPI {
|
|
|
10174
10551
|
return AccountsApiFp(this.configuration).deleteDeleteClientCredentials(id, options).then((request) => request(this.axios, this.basePath));
|
|
10175
10552
|
}
|
|
10176
10553
|
|
|
10554
|
+
/**
|
|
10555
|
+
* Get Account Finance
|
|
10556
|
+
* @param {string} id Account Xero ID
|
|
10557
|
+
* @param {*} [options] Override http request option.
|
|
10558
|
+
* @throws {RequiredError}
|
|
10559
|
+
*/
|
|
10560
|
+
public deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig) {
|
|
10561
|
+
return AccountsApiFp(this.configuration).deleteGetFinanceSettings(id, options).then((request) => request(this.axios, this.basePath));
|
|
10562
|
+
}
|
|
10563
|
+
|
|
10177
10564
|
/**
|
|
10178
10565
|
* Delete Account Contacts
|
|
10179
10566
|
* @summary Delete Account Contact
|
|
@@ -10370,6 +10757,39 @@ export class AccountsApi extends BaseAPI {
|
|
|
10370
10757
|
return AccountsApiFp(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10371
10758
|
}
|
|
10372
10759
|
|
|
10760
|
+
/**
|
|
10761
|
+
* Set Account Credit Limit
|
|
10762
|
+
* @param {string} id Xero ID
|
|
10763
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
10764
|
+
* @param {*} [options] Override http request option.
|
|
10765
|
+
* @throws {RequiredError}
|
|
10766
|
+
*/
|
|
10767
|
+
public patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig) {
|
|
10768
|
+
return AccountsApiFp(this.configuration).patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10769
|
+
}
|
|
10770
|
+
|
|
10771
|
+
/**
|
|
10772
|
+
* Set Account Price List
|
|
10773
|
+
* @param {string} id Xero ID
|
|
10774
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
10775
|
+
* @param {*} [options] Override http request option.
|
|
10776
|
+
* @throws {RequiredError}
|
|
10777
|
+
*/
|
|
10778
|
+
public patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig) {
|
|
10779
|
+
return AccountsApiFp(this.configuration).patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10780
|
+
}
|
|
10781
|
+
|
|
10782
|
+
/**
|
|
10783
|
+
* Set Account SIP Channel Cost
|
|
10784
|
+
* @param {string} id Xero ID
|
|
10785
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
10786
|
+
* @param {*} [options] Override http request option.
|
|
10787
|
+
* @throws {RequiredError}
|
|
10788
|
+
*/
|
|
10789
|
+
public patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig) {
|
|
10790
|
+
return AccountsApiFp(this.configuration).patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10791
|
+
}
|
|
10792
|
+
|
|
10373
10793
|
/**
|
|
10374
10794
|
* Create Account Contact
|
|
10375
10795
|
* @param {string} id Account Xero ID
|