yellowgrid-api-ts 3.2.138-dev.0 → 3.2.140-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 +10 -2
- package/api.ts +366 -10
- package/dist/api.d.ts +206 -4
- package/dist/api.js +352 -14
- package/docs/AccountFinanceDTO.md +35 -0
- package/docs/AccountsApi.md +237 -5
- 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,9 +52,10 @@ 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
|
|
56
57
|
*AccountsApi* | [**deleteUpdateAccountContact**](docs/AccountsApi.md#deleteupdateaccountcontact) | **DELETE** /accounts/me/contacts/{email} | Delete Account Contact
|
|
57
|
-
*AccountsApi* | [**
|
|
58
|
+
*AccountsApi* | [**getAdminCreateAccountContact**](docs/AccountsApi.md#getadmincreateaccountcontact) | **GET** /admin/accounts/{id}/contacts |
|
|
58
59
|
*AccountsApi* | [**getGetAccount**](docs/AccountsApi.md#getgetaccount) | **GET** /accounts/me | Get Account
|
|
59
60
|
*AccountsApi* | [**getGetAccountContacts**](docs/AccountsApi.md#getgetaccountcontacts) | **GET** /accounts/me/contacts | Get Account Contacts
|
|
60
61
|
*AccountsApi* | [**getGetAccountDetailedSummary**](docs/AccountsApi.md#getgetaccountdetailedsummary) | **GET** /accounts/{id}/summary | Get Account Detailed Summary
|
|
@@ -71,7 +72,10 @@ Class | Method | HTTP request | Description
|
|
|
71
72
|
*AccountsApi* | [**patchUpdateAccountContactPassword**](docs/AccountsApi.md#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password
|
|
72
73
|
*AccountsApi* | [**patchUpdateAccountPhone**](docs/AccountsApi.md#patchupdateaccountphone) | **PATCH** /admin/accounts/{id}/phone |
|
|
73
74
|
*AccountsApi* | [**patchUpdateAccountVatNumber**](docs/AccountsApi.md#patchupdateaccountvatnumber) | **PATCH** /admin/accounts/{id}/vatNumber |
|
|
74
|
-
*AccountsApi* | [**
|
|
75
|
+
*AccountsApi* | [**patchUpdateCreditLimit**](docs/AccountsApi.md#patchupdatecreditlimit) | **PATCH** /admin/accounts/{id}/creditLimit |
|
|
76
|
+
*AccountsApi* | [**patchUpdatePriceList**](docs/AccountsApi.md#patchupdatepricelist) | **PATCH** /admin/accounts/{id}/priceList |
|
|
77
|
+
*AccountsApi* | [**patchUpdateSipChannelCost**](docs/AccountsApi.md#patchupdatesipchannelcost) | **PATCH** /admin/accounts/{id}/channelCost |
|
|
78
|
+
*AccountsApi* | [**postAdminCreateAccountContact**](docs/AccountsApi.md#postadmincreateaccountcontact) | **POST** /admin/accounts/{id}/contacts |
|
|
75
79
|
*AccountsApi* | [**postGetAccountContacts**](docs/AccountsApi.md#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact
|
|
76
80
|
*AccountsApi* | [**postGetAccounts**](docs/AccountsApi.md#postgetaccounts) | **POST** /accounts | Create a new customer account
|
|
77
81
|
*AccountsApi* | [**postGetAdminAccount**](docs/AccountsApi.md#postgetadminaccount) | **POST** /admin/me | Get Admin Account
|
|
@@ -303,6 +307,7 @@ Class | Method | HTTP request | Description
|
|
|
303
307
|
- [AccountContactModel](docs/AccountContactModel.md)
|
|
304
308
|
- [AccountContactRequestModel](docs/AccountContactRequestModel.md)
|
|
305
309
|
- [AccountDetailedSummaryDTO](docs/AccountDetailedSummaryDTO.md)
|
|
310
|
+
- [AccountFinanceDTO](docs/AccountFinanceDTO.md)
|
|
306
311
|
- [AccountPageDetailsDTO](docs/AccountPageDetailsDTO.md)
|
|
307
312
|
- [AccountRequestModel](docs/AccountRequestModel.md)
|
|
308
313
|
- [AccountSummaryDTO](docs/AccountSummaryDTO.md)
|
|
@@ -415,6 +420,9 @@ Class | Method | HTTP request | Description
|
|
|
415
420
|
- [PatchUpdateAccountContactPasswordRequest](docs/PatchUpdateAccountContactPasswordRequest.md)
|
|
416
421
|
- [PatchUpdateAccountPhoneRequest](docs/PatchUpdateAccountPhoneRequest.md)
|
|
417
422
|
- [PatchUpdateAccountVatNumberRequest](docs/PatchUpdateAccountVatNumberRequest.md)
|
|
423
|
+
- [PatchUpdateCreditLimitRequest](docs/PatchUpdateCreditLimitRequest.md)
|
|
424
|
+
- [PatchUpdatePriceListRequest](docs/PatchUpdatePriceListRequest.md)
|
|
425
|
+
- [PatchUpdateSipChannelCostRequest](docs/PatchUpdateSipChannelCostRequest.md)
|
|
418
426
|
- [PortalAccountModel](docs/PortalAccountModel.md)
|
|
419
427
|
- [PortalLoginModel](docs/PortalLoginModel.md)
|
|
420
428
|
- [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};
|
|
@@ -8323,9 +8438,9 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8323
8438
|
* @param {*} [options] Override http request option.
|
|
8324
8439
|
* @throws {RequiredError}
|
|
8325
8440
|
*/
|
|
8326
|
-
|
|
8441
|
+
getAdminCreateAccountContact: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8327
8442
|
// verify required parameter 'id' is not null or undefined
|
|
8328
|
-
assertParamExists('
|
|
8443
|
+
assertParamExists('getAdminCreateAccountContact', 'id', id)
|
|
8329
8444
|
const localVarPath = `/admin/accounts/{id}/contacts`
|
|
8330
8445
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8331
8446
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -8910,6 +9025,114 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8910
9025
|
options: localVarRequestOptions,
|
|
8911
9026
|
};
|
|
8912
9027
|
},
|
|
9028
|
+
/**
|
|
9029
|
+
* Set Account Credit Limit
|
|
9030
|
+
* @param {string} id Xero ID
|
|
9031
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
9032
|
+
* @param {*} [options] Override http request option.
|
|
9033
|
+
* @throws {RequiredError}
|
|
9034
|
+
*/
|
|
9035
|
+
patchUpdateCreditLimit: async (id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9036
|
+
// verify required parameter 'id' is not null or undefined
|
|
9037
|
+
assertParamExists('patchUpdateCreditLimit', 'id', id)
|
|
9038
|
+
const localVarPath = `/admin/accounts/{id}/creditLimit`
|
|
9039
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9040
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9041
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9042
|
+
let baseOptions;
|
|
9043
|
+
if (configuration) {
|
|
9044
|
+
baseOptions = configuration.baseOptions;
|
|
9045
|
+
}
|
|
9046
|
+
|
|
9047
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9048
|
+
const localVarHeaderParameter = {} as any;
|
|
9049
|
+
const localVarQueryParameter = {} as any;
|
|
9050
|
+
|
|
9051
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9052
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9053
|
+
|
|
9054
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9055
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9056
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9057
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateCreditLimitRequest, localVarRequestOptions, configuration)
|
|
9058
|
+
|
|
9059
|
+
return {
|
|
9060
|
+
url: toPathString(localVarUrlObj),
|
|
9061
|
+
options: localVarRequestOptions,
|
|
9062
|
+
};
|
|
9063
|
+
},
|
|
9064
|
+
/**
|
|
9065
|
+
* Set Account Price List
|
|
9066
|
+
* @param {string} id Xero ID
|
|
9067
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
9068
|
+
* @param {*} [options] Override http request option.
|
|
9069
|
+
* @throws {RequiredError}
|
|
9070
|
+
*/
|
|
9071
|
+
patchUpdatePriceList: async (id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9072
|
+
// verify required parameter 'id' is not null or undefined
|
|
9073
|
+
assertParamExists('patchUpdatePriceList', 'id', id)
|
|
9074
|
+
const localVarPath = `/admin/accounts/{id}/priceList`
|
|
9075
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9076
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9077
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9078
|
+
let baseOptions;
|
|
9079
|
+
if (configuration) {
|
|
9080
|
+
baseOptions = configuration.baseOptions;
|
|
9081
|
+
}
|
|
9082
|
+
|
|
9083
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9084
|
+
const localVarHeaderParameter = {} as any;
|
|
9085
|
+
const localVarQueryParameter = {} as any;
|
|
9086
|
+
|
|
9087
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9088
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9089
|
+
|
|
9090
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9092
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9093
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchUpdatePriceListRequest, localVarRequestOptions, configuration)
|
|
9094
|
+
|
|
9095
|
+
return {
|
|
9096
|
+
url: toPathString(localVarUrlObj),
|
|
9097
|
+
options: localVarRequestOptions,
|
|
9098
|
+
};
|
|
9099
|
+
},
|
|
9100
|
+
/**
|
|
9101
|
+
* Set Account SIP Channel Cost
|
|
9102
|
+
* @param {string} id Xero ID
|
|
9103
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
9104
|
+
* @param {*} [options] Override http request option.
|
|
9105
|
+
* @throws {RequiredError}
|
|
9106
|
+
*/
|
|
9107
|
+
patchUpdateSipChannelCost: async (id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9108
|
+
// verify required parameter 'id' is not null or undefined
|
|
9109
|
+
assertParamExists('patchUpdateSipChannelCost', 'id', id)
|
|
9110
|
+
const localVarPath = `/admin/accounts/{id}/channelCost`
|
|
9111
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9113
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9114
|
+
let baseOptions;
|
|
9115
|
+
if (configuration) {
|
|
9116
|
+
baseOptions = configuration.baseOptions;
|
|
9117
|
+
}
|
|
9118
|
+
|
|
9119
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9120
|
+
const localVarHeaderParameter = {} as any;
|
|
9121
|
+
const localVarQueryParameter = {} as any;
|
|
9122
|
+
|
|
9123
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9124
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9125
|
+
|
|
9126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9129
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateSipChannelCostRequest, localVarRequestOptions, configuration)
|
|
9130
|
+
|
|
9131
|
+
return {
|
|
9132
|
+
url: toPathString(localVarUrlObj),
|
|
9133
|
+
options: localVarRequestOptions,
|
|
9134
|
+
};
|
|
9135
|
+
},
|
|
8913
9136
|
/**
|
|
8914
9137
|
* Create Account Contact
|
|
8915
9138
|
* @param {string} id Account Xero ID
|
|
@@ -8920,7 +9143,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8920
9143
|
postAdminCreateAccountContact: async (id: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8921
9144
|
// verify required parameter 'id' is not null or undefined
|
|
8922
9145
|
assertParamExists('postAdminCreateAccountContact', 'id', id)
|
|
8923
|
-
const localVarPath = `/admin/accounts/{id}/contacts
|
|
9146
|
+
const localVarPath = `/admin/accounts/{id}/contacts`
|
|
8924
9147
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8925
9148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8926
9149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -9388,6 +9611,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9388
9611
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9389
9612
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9390
9613
|
},
|
|
9614
|
+
/**
|
|
9615
|
+
* Delete Account
|
|
9616
|
+
* @param {string} id Account Xero ID
|
|
9617
|
+
* @param {*} [options] Override http request option.
|
|
9618
|
+
* @throws {RequiredError}
|
|
9619
|
+
*/
|
|
9620
|
+
async deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9621
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteArchiveAccount(id, options);
|
|
9622
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9623
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteArchiveAccount']?.[localVarOperationServerIndex]?.url;
|
|
9624
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9625
|
+
},
|
|
9391
9626
|
/**
|
|
9392
9627
|
* Delete client credentials
|
|
9393
9628
|
* @summary Delete client credentials
|
|
@@ -9420,10 +9655,10 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9420
9655
|
* @param {*} [options] Override http request option.
|
|
9421
9656
|
* @throws {RequiredError}
|
|
9422
9657
|
*/
|
|
9423
|
-
async
|
|
9424
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
9658
|
+
async getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountContactModel>>> {
|
|
9659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAdminCreateAccountContact(id, options);
|
|
9425
9660
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9426
|
-
const localVarOperationServerBasePath = operationServerMap['AccountsApi.
|
|
9661
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
|
|
9427
9662
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9428
9663
|
},
|
|
9429
9664
|
/**
|
|
@@ -9633,6 +9868,45 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9633
9868
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountVatNumber']?.[localVarOperationServerIndex]?.url;
|
|
9634
9869
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9635
9870
|
},
|
|
9871
|
+
/**
|
|
9872
|
+
* Set Account Credit Limit
|
|
9873
|
+
* @param {string} id Xero ID
|
|
9874
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
9875
|
+
* @param {*} [options] Override http request option.
|
|
9876
|
+
* @throws {RequiredError}
|
|
9877
|
+
*/
|
|
9878
|
+
async patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
9879
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options);
|
|
9880
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9881
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateCreditLimit']?.[localVarOperationServerIndex]?.url;
|
|
9882
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9883
|
+
},
|
|
9884
|
+
/**
|
|
9885
|
+
* Set Account Price List
|
|
9886
|
+
* @param {string} id Xero ID
|
|
9887
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
9888
|
+
* @param {*} [options] Override http request option.
|
|
9889
|
+
* @throws {RequiredError}
|
|
9890
|
+
*/
|
|
9891
|
+
async patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
9892
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdatePriceList(id, patchUpdatePriceListRequest, options);
|
|
9893
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9894
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdatePriceList']?.[localVarOperationServerIndex]?.url;
|
|
9895
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9896
|
+
},
|
|
9897
|
+
/**
|
|
9898
|
+
* Set Account SIP Channel Cost
|
|
9899
|
+
* @param {string} id Xero ID
|
|
9900
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
9901
|
+
* @param {*} [options] Override http request option.
|
|
9902
|
+
* @throws {RequiredError}
|
|
9903
|
+
*/
|
|
9904
|
+
async patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
9905
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options);
|
|
9906
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9907
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateSipChannelCost']?.[localVarOperationServerIndex]?.url;
|
|
9908
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9909
|
+
},
|
|
9636
9910
|
/**
|
|
9637
9911
|
* Create Account Contact
|
|
9638
9912
|
* @param {string} id Account Xero ID
|
|
@@ -9824,6 +10098,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9824
10098
|
deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9825
10099
|
return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(axios, basePath));
|
|
9826
10100
|
},
|
|
10101
|
+
/**
|
|
10102
|
+
* Delete Account
|
|
10103
|
+
* @param {string} id Account Xero ID
|
|
10104
|
+
* @param {*} [options] Override http request option.
|
|
10105
|
+
* @throws {RequiredError}
|
|
10106
|
+
*/
|
|
10107
|
+
deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10108
|
+
return localVarFp.deleteArchiveAccount(id, options).then((request) => request(axios, basePath));
|
|
10109
|
+
},
|
|
9827
10110
|
/**
|
|
9828
10111
|
* Delete client credentials
|
|
9829
10112
|
* @summary Delete client credentials
|
|
@@ -9850,8 +10133,8 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9850
10133
|
* @param {*} [options] Override http request option.
|
|
9851
10134
|
* @throws {RequiredError}
|
|
9852
10135
|
*/
|
|
9853
|
-
|
|
9854
|
-
return localVarFp.
|
|
10136
|
+
getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
10137
|
+
return localVarFp.getAdminCreateAccountContact(id, options).then((request) => request(axios, basePath));
|
|
9855
10138
|
},
|
|
9856
10139
|
/**
|
|
9857
10140
|
* Get Account
|
|
@@ -10012,6 +10295,36 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10012
10295
|
patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10013
10296
|
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(axios, basePath));
|
|
10014
10297
|
},
|
|
10298
|
+
/**
|
|
10299
|
+
* Set Account Credit Limit
|
|
10300
|
+
* @param {string} id Xero ID
|
|
10301
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
10302
|
+
* @param {*} [options] Override http request option.
|
|
10303
|
+
* @throws {RequiredError}
|
|
10304
|
+
*/
|
|
10305
|
+
patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10306
|
+
return localVarFp.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then((request) => request(axios, basePath));
|
|
10307
|
+
},
|
|
10308
|
+
/**
|
|
10309
|
+
* Set Account Price List
|
|
10310
|
+
* @param {string} id Xero ID
|
|
10311
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
10312
|
+
* @param {*} [options] Override http request option.
|
|
10313
|
+
* @throws {RequiredError}
|
|
10314
|
+
*/
|
|
10315
|
+
patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10316
|
+
return localVarFp.patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then((request) => request(axios, basePath));
|
|
10317
|
+
},
|
|
10318
|
+
/**
|
|
10319
|
+
* Set Account SIP Channel Cost
|
|
10320
|
+
* @param {string} id Xero ID
|
|
10321
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
10322
|
+
* @param {*} [options] Override http request option.
|
|
10323
|
+
* @throws {RequiredError}
|
|
10324
|
+
*/
|
|
10325
|
+
patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10326
|
+
return localVarFp.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then((request) => request(axios, basePath));
|
|
10327
|
+
},
|
|
10015
10328
|
/**
|
|
10016
10329
|
* Create Account Contact
|
|
10017
10330
|
* @param {string} id Account Xero ID
|
|
@@ -10163,6 +10476,16 @@ export class AccountsApi extends BaseAPI {
|
|
|
10163
10476
|
return AccountsApiFp(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(this.axios, this.basePath));
|
|
10164
10477
|
}
|
|
10165
10478
|
|
|
10479
|
+
/**
|
|
10480
|
+
* Delete Account
|
|
10481
|
+
* @param {string} id Account Xero ID
|
|
10482
|
+
* @param {*} [options] Override http request option.
|
|
10483
|
+
* @throws {RequiredError}
|
|
10484
|
+
*/
|
|
10485
|
+
public deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig) {
|
|
10486
|
+
return AccountsApiFp(this.configuration).deleteArchiveAccount(id, options).then((request) => request(this.axios, this.basePath));
|
|
10487
|
+
}
|
|
10488
|
+
|
|
10166
10489
|
/**
|
|
10167
10490
|
* Delete client credentials
|
|
10168
10491
|
* @summary Delete client credentials
|
|
@@ -10191,8 +10514,8 @@ export class AccountsApi extends BaseAPI {
|
|
|
10191
10514
|
* @param {*} [options] Override http request option.
|
|
10192
10515
|
* @throws {RequiredError}
|
|
10193
10516
|
*/
|
|
10194
|
-
public
|
|
10195
|
-
return AccountsApiFp(this.configuration).
|
|
10517
|
+
public getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig) {
|
|
10518
|
+
return AccountsApiFp(this.configuration).getAdminCreateAccountContact(id, options).then((request) => request(this.axios, this.basePath));
|
|
10196
10519
|
}
|
|
10197
10520
|
|
|
10198
10521
|
/**
|
|
@@ -10370,6 +10693,39 @@ export class AccountsApi extends BaseAPI {
|
|
|
10370
10693
|
return AccountsApiFp(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10371
10694
|
}
|
|
10372
10695
|
|
|
10696
|
+
/**
|
|
10697
|
+
* Set Account Credit Limit
|
|
10698
|
+
* @param {string} id Xero ID
|
|
10699
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
10700
|
+
* @param {*} [options] Override http request option.
|
|
10701
|
+
* @throws {RequiredError}
|
|
10702
|
+
*/
|
|
10703
|
+
public patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig) {
|
|
10704
|
+
return AccountsApiFp(this.configuration).patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10705
|
+
}
|
|
10706
|
+
|
|
10707
|
+
/**
|
|
10708
|
+
* Set Account Price List
|
|
10709
|
+
* @param {string} id Xero ID
|
|
10710
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
10711
|
+
* @param {*} [options] Override http request option.
|
|
10712
|
+
* @throws {RequiredError}
|
|
10713
|
+
*/
|
|
10714
|
+
public patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig) {
|
|
10715
|
+
return AccountsApiFp(this.configuration).patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10716
|
+
}
|
|
10717
|
+
|
|
10718
|
+
/**
|
|
10719
|
+
* Set Account SIP Channel Cost
|
|
10720
|
+
* @param {string} id Xero ID
|
|
10721
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
10722
|
+
* @param {*} [options] Override http request option.
|
|
10723
|
+
* @throws {RequiredError}
|
|
10724
|
+
*/
|
|
10725
|
+
public patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig) {
|
|
10726
|
+
return AccountsApiFp(this.configuration).patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10727
|
+
}
|
|
10728
|
+
|
|
10373
10729
|
/**
|
|
10374
10730
|
* Create Account Contact
|
|
10375
10731
|
* @param {string} id Account Xero ID
|