yellowgrid-api-ts 3.0.84-dev.0 → 3.0.84
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 +190 -208
- package/README.md +7 -34
- package/api.ts +253 -1798
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/config.json +3 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +163 -1316
- package/dist/api.js +201 -1079
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AccountsApi.md +0 -103
- package/docs/Class3CXApi.md +55 -0
- package/docs/ClientDetailsModel.md +2 -0
- package/docs/{ShippingServicesModel.md → GetGetPasswordHash200Response.md} +5 -5
- package/docs/ItemDTO.md +4 -10
- package/docs/OrderSummaryDTO.md +0 -8
- package/docs/OrderTotalModel.md +0 -2
- package/docs/OrdersApi.md +4 -301
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryDTO.md → ProductSummaryModel.md} +3 -5
- package/docs/ProductsApi.md +35 -166
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningModel.md → ProvisioningEntity.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/StockManagementApi.md +2 -2
- package/docs/TcxBackupModel.md +2 -0
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AbstractOrderRequestDTO.md +0 -33
- package/docs/AccountDetailedSummaryDTO.md +0 -35
- package/docs/AdminItemRequestDTO.md +0 -37
- package/docs/AdminOrderRequestDTO.md +0 -41
- package/docs/AdminUserModel.md +0 -31
- package/docs/BasicItemDTO.md +0 -23
- package/docs/BasicProductDTO.md +0 -23
- package/docs/CourierPriceEntity.md +0 -39
- package/docs/CustomerItemRequestDTO.md +0 -33
- package/docs/CustomerOrderRequestDTO.md +0 -33
- package/docs/LinkedOrderEntity.md +0 -23
- package/docs/NavigationItemModel.md +0 -27
- package/docs/ShippingApi.md +0 -63
- package/docs/ShippingConsignmentModel.md +0 -26
- package/docs/ShippingInformationDTO.md +0 -25
- package/docs/ShippingServiceDTO.md +0 -23
- package/docs/ShippingServiceModel.md +0 -31
- package/docs/SubNavigationItemModel.md +0 -25
- package/docs/TcxSbcDTO.md +0 -31
package/docs/OrdersApi.md
CHANGED
|
@@ -4,16 +4,11 @@ All URIs are relative to *http://api.yellowgrid.local*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**getGetEditableOrder**](#getgeteditableorder) | **GET** /orders/{id}/views/editable | |
|
|
7
|
+
|[**deleteDeleteOrder**](#deletedeleteorder) | **DELETE** /orders/{id} | |
|
|
9
8
|
|[**getGetOrders**](#getgetorders) | **GET** /orders | Get Orders|
|
|
10
|
-
|[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
|
|
11
|
-
|[**postGetOrders**](#postgetorders) | **POST** /orders | Create An Order|
|
|
12
|
-
|[**putUpdateAdminOrder**](#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)|
|
|
13
|
-
|[**putUpdateOrder**](#putupdateorder) | **PUT** /orders/{id} | Update An Order|
|
|
14
9
|
|
|
15
|
-
# **
|
|
16
|
-
>
|
|
10
|
+
# **deleteDeleteOrder**
|
|
11
|
+
> deleteDeleteOrder()
|
|
17
12
|
|
|
18
13
|
Delete Orders
|
|
19
14
|
|
|
@@ -30,7 +25,7 @@ const apiInstance = new OrdersApi(configuration);
|
|
|
30
25
|
|
|
31
26
|
let id: number; //Order ID (default to undefined)
|
|
32
27
|
|
|
33
|
-
const { status, data } = await apiInstance.
|
|
28
|
+
const { status, data } = await apiInstance.deleteDeleteOrder(
|
|
34
29
|
id
|
|
35
30
|
);
|
|
36
31
|
```
|
|
@@ -66,60 +61,6 @@ No authorization required
|
|
|
66
61
|
|
|
67
62
|
[[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)
|
|
68
63
|
|
|
69
|
-
# **getGetEditableOrder**
|
|
70
|
-
> OrderSummaryDTO getGetEditableOrder()
|
|
71
|
-
|
|
72
|
-
Get Editable Order
|
|
73
|
-
|
|
74
|
-
### Example
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
import {
|
|
78
|
-
OrdersApi,
|
|
79
|
-
Configuration
|
|
80
|
-
} from 'yellowgrid-api-ts';
|
|
81
|
-
|
|
82
|
-
const configuration = new Configuration();
|
|
83
|
-
const apiInstance = new OrdersApi(configuration);
|
|
84
|
-
|
|
85
|
-
let id: number; //Order ID (default to undefined)
|
|
86
|
-
|
|
87
|
-
const { status, data } = await apiInstance.getGetEditableOrder(
|
|
88
|
-
id
|
|
89
|
-
);
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Parameters
|
|
93
|
-
|
|
94
|
-
|Name | Type | Description | Notes|
|
|
95
|
-
|------------- | ------------- | ------------- | -------------|
|
|
96
|
-
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
### Return type
|
|
100
|
-
|
|
101
|
-
**OrderSummaryDTO**
|
|
102
|
-
|
|
103
|
-
### Authorization
|
|
104
|
-
|
|
105
|
-
No authorization required
|
|
106
|
-
|
|
107
|
-
### HTTP request headers
|
|
108
|
-
|
|
109
|
-
- **Content-Type**: Not defined
|
|
110
|
-
- **Accept**: application/json
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
### HTTP response details
|
|
114
|
-
| Status code | Description | Response headers |
|
|
115
|
-
|-------------|-------------|------------------|
|
|
116
|
-
|**200** | Order Summary | - |
|
|
117
|
-
|**400** | Bad Request | - |
|
|
118
|
-
|**401** | Unauthorised | - |
|
|
119
|
-
|**403** | Access Denied | - |
|
|
120
|
-
|
|
121
|
-
[[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)
|
|
122
|
-
|
|
123
64
|
# **getGetOrders**
|
|
124
65
|
> OrderSummariesModel getGetOrders()
|
|
125
66
|
|
|
@@ -192,241 +133,3 @@ No authorization required
|
|
|
192
133
|
|
|
193
134
|
[[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)
|
|
194
135
|
|
|
195
|
-
# **postCreateAdminOrder**
|
|
196
|
-
> Array<OrderSummaryDTO> postCreateAdminOrder()
|
|
197
|
-
|
|
198
|
-
Create An Order (Admin)
|
|
199
|
-
|
|
200
|
-
### Example
|
|
201
|
-
|
|
202
|
-
```typescript
|
|
203
|
-
import {
|
|
204
|
-
OrdersApi,
|
|
205
|
-
Configuration,
|
|
206
|
-
AdminOrderRequestDTO
|
|
207
|
-
} from 'yellowgrid-api-ts';
|
|
208
|
-
|
|
209
|
-
const configuration = new Configuration();
|
|
210
|
-
const apiInstance = new OrdersApi(configuration);
|
|
211
|
-
|
|
212
|
-
let readonly: boolean; //Readonly Order (optional) (default to undefined)
|
|
213
|
-
let adminOrderRequestDTO: AdminOrderRequestDTO; //Admin Order Request (optional)
|
|
214
|
-
|
|
215
|
-
const { status, data } = await apiInstance.postCreateAdminOrder(
|
|
216
|
-
readonly,
|
|
217
|
-
adminOrderRequestDTO
|
|
218
|
-
);
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
### Parameters
|
|
222
|
-
|
|
223
|
-
|Name | Type | Description | Notes|
|
|
224
|
-
|------------- | ------------- | ------------- | -------------|
|
|
225
|
-
| **adminOrderRequestDTO** | **AdminOrderRequestDTO**| Admin Order Request | |
|
|
226
|
-
| **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
### Return type
|
|
230
|
-
|
|
231
|
-
**Array<OrderSummaryDTO>**
|
|
232
|
-
|
|
233
|
-
### Authorization
|
|
234
|
-
|
|
235
|
-
No authorization required
|
|
236
|
-
|
|
237
|
-
### HTTP request headers
|
|
238
|
-
|
|
239
|
-
- **Content-Type**: application/json
|
|
240
|
-
- **Accept**: application/json
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
### HTTP response details
|
|
244
|
-
| Status code | Description | Response headers |
|
|
245
|
-
|-------------|-------------|------------------|
|
|
246
|
-
|**200** | Order Summaries | - |
|
|
247
|
-
|**400** | Bad Request | - |
|
|
248
|
-
|**401** | Unauthorised | - |
|
|
249
|
-
|**403** | Access Denied | - |
|
|
250
|
-
|
|
251
|
-
[[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)
|
|
252
|
-
|
|
253
|
-
# **postGetOrders**
|
|
254
|
-
> Array<OrderSummaryDTO> postGetOrders()
|
|
255
|
-
|
|
256
|
-
Create An Order
|
|
257
|
-
|
|
258
|
-
### Example
|
|
259
|
-
|
|
260
|
-
```typescript
|
|
261
|
-
import {
|
|
262
|
-
OrdersApi,
|
|
263
|
-
Configuration,
|
|
264
|
-
CustomerOrderRequestDTO
|
|
265
|
-
} from 'yellowgrid-api-ts';
|
|
266
|
-
|
|
267
|
-
const configuration = new Configuration();
|
|
268
|
-
const apiInstance = new OrdersApi(configuration);
|
|
269
|
-
|
|
270
|
-
let readonly: boolean; //Readonly Order (optional) (default to undefined)
|
|
271
|
-
let customerOrderRequestDTO: CustomerOrderRequestDTO; //Order Request (optional)
|
|
272
|
-
|
|
273
|
-
const { status, data } = await apiInstance.postGetOrders(
|
|
274
|
-
readonly,
|
|
275
|
-
customerOrderRequestDTO
|
|
276
|
-
);
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
### Parameters
|
|
280
|
-
|
|
281
|
-
|Name | Type | Description | Notes|
|
|
282
|
-
|------------- | ------------- | ------------- | -------------|
|
|
283
|
-
| **customerOrderRequestDTO** | **CustomerOrderRequestDTO**| Order Request | |
|
|
284
|
-
| **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Return type
|
|
288
|
-
|
|
289
|
-
**Array<OrderSummaryDTO>**
|
|
290
|
-
|
|
291
|
-
### Authorization
|
|
292
|
-
|
|
293
|
-
No authorization required
|
|
294
|
-
|
|
295
|
-
### HTTP request headers
|
|
296
|
-
|
|
297
|
-
- **Content-Type**: application/json
|
|
298
|
-
- **Accept**: application/json
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
### HTTP response details
|
|
302
|
-
| Status code | Description | Response headers |
|
|
303
|
-
|-------------|-------------|------------------|
|
|
304
|
-
|**200** | Order Summaries | - |
|
|
305
|
-
|**400** | Bad Request | - |
|
|
306
|
-
|**401** | Unauthorised | - |
|
|
307
|
-
|**403** | Access Denied | - |
|
|
308
|
-
|
|
309
|
-
[[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)
|
|
310
|
-
|
|
311
|
-
# **putUpdateAdminOrder**
|
|
312
|
-
> Array<OrderSummaryDTO> putUpdateAdminOrder()
|
|
313
|
-
|
|
314
|
-
Update An Order (Admin)
|
|
315
|
-
|
|
316
|
-
### Example
|
|
317
|
-
|
|
318
|
-
```typescript
|
|
319
|
-
import {
|
|
320
|
-
OrdersApi,
|
|
321
|
-
Configuration,
|
|
322
|
-
AdminOrderRequestDTO
|
|
323
|
-
} from 'yellowgrid-api-ts';
|
|
324
|
-
|
|
325
|
-
const configuration = new Configuration();
|
|
326
|
-
const apiInstance = new OrdersApi(configuration);
|
|
327
|
-
|
|
328
|
-
let id: number; //Order ID (default to undefined)
|
|
329
|
-
let readonly: boolean; //Readonly Order (optional) (default to undefined)
|
|
330
|
-
let adminOrderRequestDTO: AdminOrderRequestDTO; //Order Request (optional)
|
|
331
|
-
|
|
332
|
-
const { status, data } = await apiInstance.putUpdateAdminOrder(
|
|
333
|
-
id,
|
|
334
|
-
readonly,
|
|
335
|
-
adminOrderRequestDTO
|
|
336
|
-
);
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
### Parameters
|
|
340
|
-
|
|
341
|
-
|Name | Type | Description | Notes|
|
|
342
|
-
|------------- | ------------- | ------------- | -------------|
|
|
343
|
-
| **adminOrderRequestDTO** | **AdminOrderRequestDTO**| Order Request | |
|
|
344
|
-
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
345
|
-
| **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
### Return type
|
|
349
|
-
|
|
350
|
-
**Array<OrderSummaryDTO>**
|
|
351
|
-
|
|
352
|
-
### Authorization
|
|
353
|
-
|
|
354
|
-
No authorization required
|
|
355
|
-
|
|
356
|
-
### HTTP request headers
|
|
357
|
-
|
|
358
|
-
- **Content-Type**: application/json
|
|
359
|
-
- **Accept**: application/json
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
### HTTP response details
|
|
363
|
-
| Status code | Description | Response headers |
|
|
364
|
-
|-------------|-------------|------------------|
|
|
365
|
-
|**200** | Order Summaries | - |
|
|
366
|
-
|**400** | Bad Request | - |
|
|
367
|
-
|**401** | Unauthorised | - |
|
|
368
|
-
|**403** | Access Denied | - |
|
|
369
|
-
|
|
370
|
-
[[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)
|
|
371
|
-
|
|
372
|
-
# **putUpdateOrder**
|
|
373
|
-
> Array<OrderSummaryDTO> putUpdateOrder()
|
|
374
|
-
|
|
375
|
-
Update An Order
|
|
376
|
-
|
|
377
|
-
### Example
|
|
378
|
-
|
|
379
|
-
```typescript
|
|
380
|
-
import {
|
|
381
|
-
OrdersApi,
|
|
382
|
-
Configuration,
|
|
383
|
-
CustomerOrderRequestDTO
|
|
384
|
-
} from 'yellowgrid-api-ts';
|
|
385
|
-
|
|
386
|
-
const configuration = new Configuration();
|
|
387
|
-
const apiInstance = new OrdersApi(configuration);
|
|
388
|
-
|
|
389
|
-
let id: number; //Order ID (default to undefined)
|
|
390
|
-
let readonly: boolean; //Readonly Order (optional) (default to undefined)
|
|
391
|
-
let customerOrderRequestDTO: CustomerOrderRequestDTO; //Order Request (optional)
|
|
392
|
-
|
|
393
|
-
const { status, data } = await apiInstance.putUpdateOrder(
|
|
394
|
-
id,
|
|
395
|
-
readonly,
|
|
396
|
-
customerOrderRequestDTO
|
|
397
|
-
);
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
### Parameters
|
|
401
|
-
|
|
402
|
-
|Name | Type | Description | Notes|
|
|
403
|
-
|------------- | ------------- | ------------- | -------------|
|
|
404
|
-
| **customerOrderRequestDTO** | **CustomerOrderRequestDTO**| Order Request | |
|
|
405
|
-
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
406
|
-
| **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
### Return type
|
|
410
|
-
|
|
411
|
-
**Array<OrderSummaryDTO>**
|
|
412
|
-
|
|
413
|
-
### Authorization
|
|
414
|
-
|
|
415
|
-
No authorization required
|
|
416
|
-
|
|
417
|
-
### HTTP request headers
|
|
418
|
-
|
|
419
|
-
- **Content-Type**: application/json
|
|
420
|
-
- **Accept**: application/json
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
### HTTP response details
|
|
424
|
-
| Status code | Description | Response headers |
|
|
425
|
-
|-------------|-------------|------------------|
|
|
426
|
-
|**200** | Order Summaries | - |
|
|
427
|
-
|**400** | Bad Request | - |
|
|
428
|
-
|**401** | Unauthorised | - |
|
|
429
|
-
|**403** | Access Denied | - |
|
|
430
|
-
|
|
431
|
-
[[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)
|
|
432
|
-
|
|
@@ -6,7 +6,7 @@ Product Search Results
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**results** | [**Array<
|
|
9
|
+
**results** | [**Array<ProductSummaryModel>**](ProductSummaryModel.md) | Results | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ProductSummaryModel
|
|
2
2
|
|
|
3
3
|
Product Summary
|
|
4
4
|
|
|
@@ -12,21 +12,19 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**stockProduct** | **boolean** | Stock Product | [optional] [default to undefined]
|
|
13
13
|
**price** | **number** | Price | [optional] [default to undefined]
|
|
14
14
|
**cartonSize** | **number** | Carton Size | [optional] [default to undefined]
|
|
15
|
-
**rrp** | **number** | RRP Price | [optional] [default to undefined]
|
|
16
15
|
|
|
17
16
|
## Example
|
|
18
17
|
|
|
19
18
|
```typescript
|
|
20
|
-
import {
|
|
19
|
+
import { ProductSummaryModel } from 'yellowgrid-api-ts';
|
|
21
20
|
|
|
22
|
-
const instance:
|
|
21
|
+
const instance: ProductSummaryModel = {
|
|
23
22
|
sku,
|
|
24
23
|
title,
|
|
25
24
|
quantity,
|
|
26
25
|
stockProduct,
|
|
27
26
|
price,
|
|
28
27
|
cartonSize,
|
|
29
|
-
rrp,
|
|
30
28
|
};
|
|
31
29
|
```
|
|
32
30
|
|
package/docs/ProductsApi.md
CHANGED
|
@@ -5,13 +5,11 @@ All URIs are relative to *http://api.yellowgrid.local*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getGetAttributeSets**](#getgetattributesets) | **GET** /products/attributes | Get Attribute Sets|
|
|
8
|
+
|[**getGetCustomerPriceLists**](#getgetcustomerpricelists) | **GET** /products/prices/lists | Get Customer Price Lists|
|
|
8
9
|
|[**getGetLegacyStockList**](#getgetlegacystocklist) | **GET** /products/stock/legacy | Get Current Stock & Pricing|
|
|
9
|
-
|[**
|
|
10
|
-
|[**getGetProductForCustomer**](#getgetproductforcustomer) | **GET** /admin/products/{sku} | Get Product For Customer|
|
|
11
|
-
|[**getGetProducts**](#getgetproducts) | **GET** /products | Get Products|
|
|
10
|
+
|[**getGetProducts**](#getgetproducts) | **GET** /products/search | Get Products|
|
|
12
11
|
|[**getGetStockList**](#getgetstocklist) | **GET** /products/stock | Get Current Stock & Pricing|
|
|
13
12
|
|[**getGetTcxTemplates**](#getgettcxtemplates) | **GET** /products/attributes/tcx/templates | Get 3CX Templates|
|
|
14
|
-
|[**getSearchProducts**](#getsearchproducts) | **GET** /products/search | Search Products|
|
|
15
13
|
|
|
16
14
|
# **getGetAttributeSets**
|
|
17
15
|
> Array<AttributeSetEnum> getGetAttributeSets()
|
|
@@ -60,10 +58,10 @@ No authorization required
|
|
|
60
58
|
|
|
61
59
|
[[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)
|
|
62
60
|
|
|
63
|
-
# **
|
|
64
|
-
>
|
|
61
|
+
# **getGetCustomerPriceLists**
|
|
62
|
+
> Array<CustomerPriceListEnum> getGetCustomerPriceLists()
|
|
65
63
|
|
|
66
|
-
Get
|
|
64
|
+
Get Customer Price Lists
|
|
67
65
|
|
|
68
66
|
### Example
|
|
69
67
|
|
|
@@ -76,23 +74,16 @@ import {
|
|
|
76
74
|
const configuration = new Configuration();
|
|
77
75
|
const apiInstance = new ProductsApi(configuration);
|
|
78
76
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const { status, data } = await apiInstance.getGetLegacyStockList(
|
|
82
|
-
format
|
|
83
|
-
);
|
|
77
|
+
const { status, data } = await apiInstance.getGetCustomerPriceLists();
|
|
84
78
|
```
|
|
85
79
|
|
|
86
80
|
### Parameters
|
|
87
|
-
|
|
88
|
-
|Name | Type | Description | Notes|
|
|
89
|
-
|------------- | ------------- | ------------- | -------------|
|
|
90
|
-
| **format** | [**'XML' | 'CSV'**]**Array<'XML' | 'CSV'>** | File Format | defaults to undefined|
|
|
81
|
+
This endpoint does not have any parameters.
|
|
91
82
|
|
|
92
83
|
|
|
93
84
|
### Return type
|
|
94
85
|
|
|
95
|
-
**
|
|
86
|
+
**Array<CustomerPriceListEnum>**
|
|
96
87
|
|
|
97
88
|
### Authorization
|
|
98
89
|
|
|
@@ -101,23 +92,23 @@ No authorization required
|
|
|
101
92
|
### HTTP request headers
|
|
102
93
|
|
|
103
94
|
- **Content-Type**: Not defined
|
|
104
|
-
- **Accept**:
|
|
95
|
+
- **Accept**: application/json
|
|
105
96
|
|
|
106
97
|
|
|
107
98
|
### HTTP response details
|
|
108
99
|
| Status code | Description | Response headers |
|
|
109
100
|
|-------------|-------------|------------------|
|
|
110
|
-
|**200** |
|
|
101
|
+
|**200** | Price Lists | - |
|
|
111
102
|
|**400** | Bad Request | - |
|
|
112
103
|
|**401** | Unauthorised | - |
|
|
113
104
|
|**403** | Access Denied | - |
|
|
114
105
|
|
|
115
106
|
[[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)
|
|
116
107
|
|
|
117
|
-
# **
|
|
118
|
-
>
|
|
108
|
+
# **getGetLegacyStockList**
|
|
109
|
+
> string getGetLegacyStockList()
|
|
119
110
|
|
|
120
|
-
Get
|
|
111
|
+
Get Current Stock & Pricing
|
|
121
112
|
|
|
122
113
|
### Example
|
|
123
114
|
|
|
@@ -130,16 +121,10 @@ import {
|
|
|
130
121
|
const configuration = new Configuration();
|
|
131
122
|
const apiInstance = new ProductsApi(configuration);
|
|
132
123
|
|
|
133
|
-
let
|
|
134
|
-
let quantity: number; //Quantity (optional) (default to undefined)
|
|
135
|
-
let licenceKey: string; //3CX Licence Key (optional) (default to undefined)
|
|
136
|
-
let hosting: boolean; //3CX Hosting (optional) (default to undefined)
|
|
124
|
+
let format: 'XML' | 'CSV'; //File Format (default to undefined)
|
|
137
125
|
|
|
138
|
-
const { status, data } = await apiInstance.
|
|
139
|
-
|
|
140
|
-
quantity,
|
|
141
|
-
licenceKey,
|
|
142
|
-
hosting
|
|
126
|
+
const { status, data } = await apiInstance.getGetLegacyStockList(
|
|
127
|
+
format
|
|
143
128
|
);
|
|
144
129
|
```
|
|
145
130
|
|
|
@@ -147,15 +132,12 @@ const { status, data } = await apiInstance.getGetProduct(
|
|
|
147
132
|
|
|
148
133
|
|Name | Type | Description | Notes|
|
|
149
134
|
|------------- | ------------- | ------------- | -------------|
|
|
150
|
-
| **
|
|
151
|
-
| **quantity** | [**number**] | Quantity | (optional) defaults to undefined|
|
|
152
|
-
| **licenceKey** | [**string**] | 3CX Licence Key | (optional) defaults to undefined|
|
|
153
|
-
| **hosting** | [**boolean**] | 3CX Hosting | (optional) defaults to undefined|
|
|
135
|
+
| **format** | [**'XML' | 'CSV'**]**Array<'XML' | 'CSV'>** | File Format | defaults to undefined|
|
|
154
136
|
|
|
155
137
|
|
|
156
138
|
### Return type
|
|
157
139
|
|
|
158
|
-
**
|
|
140
|
+
**string**
|
|
159
141
|
|
|
160
142
|
### Authorization
|
|
161
143
|
|
|
@@ -164,23 +146,23 @@ No authorization required
|
|
|
164
146
|
### HTTP request headers
|
|
165
147
|
|
|
166
148
|
- **Content-Type**: Not defined
|
|
167
|
-
- **Accept**: application/
|
|
149
|
+
- **Accept**: text/csv, application/xml
|
|
168
150
|
|
|
169
151
|
|
|
170
152
|
### HTTP response details
|
|
171
153
|
| Status code | Description | Response headers |
|
|
172
154
|
|-------------|-------------|------------------|
|
|
173
|
-
|**200** |
|
|
155
|
+
|**200** | Products | - |
|
|
174
156
|
|**400** | Bad Request | - |
|
|
175
157
|
|**401** | Unauthorised | - |
|
|
176
158
|
|**403** | Access Denied | - |
|
|
177
159
|
|
|
178
160
|
[[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)
|
|
179
161
|
|
|
180
|
-
# **
|
|
181
|
-
>
|
|
162
|
+
# **getGetProducts**
|
|
163
|
+
> ProductSearchResultsModel getGetProducts()
|
|
182
164
|
|
|
183
|
-
Get
|
|
165
|
+
Get Products
|
|
184
166
|
|
|
185
167
|
### Example
|
|
186
168
|
|
|
@@ -193,18 +175,14 @@ import {
|
|
|
193
175
|
const configuration = new Configuration();
|
|
194
176
|
const apiInstance = new ProductsApi(configuration);
|
|
195
177
|
|
|
196
|
-
let
|
|
197
|
-
let
|
|
198
|
-
let
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
sku,
|
|
205
|
-
quantity,
|
|
206
|
-
licenceKey,
|
|
207
|
-
hosting
|
|
178
|
+
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
179
|
+
let page: number; //Page Number (optional) (default to 1)
|
|
180
|
+
let search: string; //Search (optional) (default to undefined)
|
|
181
|
+
|
|
182
|
+
const { status, data } = await apiInstance.getGetProducts(
|
|
183
|
+
pageSize,
|
|
184
|
+
page,
|
|
185
|
+
search
|
|
208
186
|
);
|
|
209
187
|
```
|
|
210
188
|
|
|
@@ -212,63 +190,14 @@ const { status, data } = await apiInstance.getGetProductForCustomer(
|
|
|
212
190
|
|
|
213
191
|
|Name | Type | Description | Notes|
|
|
214
192
|
|------------- | ------------- | ------------- | -------------|
|
|
215
|
-
| **
|
|
216
|
-
| **
|
|
217
|
-
| **
|
|
218
|
-
| **licenceKey** | [**string**] | 3CX Licence Key | (optional) defaults to undefined|
|
|
219
|
-
| **hosting** | [**boolean**] | 3CX Hosting | (optional) defaults to undefined|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
### Return type
|
|
223
|
-
|
|
224
|
-
**ProductSummaryDTO**
|
|
225
|
-
|
|
226
|
-
### Authorization
|
|
227
|
-
|
|
228
|
-
No authorization required
|
|
229
|
-
|
|
230
|
-
### HTTP request headers
|
|
231
|
-
|
|
232
|
-
- **Content-Type**: Not defined
|
|
233
|
-
- **Accept**: application/json
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
### HTTP response details
|
|
237
|
-
| Status code | Description | Response headers |
|
|
238
|
-
|-------------|-------------|------------------|
|
|
239
|
-
|**200** | Product | - |
|
|
240
|
-
|**400** | Bad Request | - |
|
|
241
|
-
|**401** | Unauthorised | - |
|
|
242
|
-
|**403** | Access Denied | - |
|
|
243
|
-
|
|
244
|
-
[[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)
|
|
245
|
-
|
|
246
|
-
# **getGetProducts**
|
|
247
|
-
> Array<BasicProductDTO> getGetProducts()
|
|
248
|
-
|
|
249
|
-
Get Products
|
|
250
|
-
|
|
251
|
-
### Example
|
|
252
|
-
|
|
253
|
-
```typescript
|
|
254
|
-
import {
|
|
255
|
-
ProductsApi,
|
|
256
|
-
Configuration
|
|
257
|
-
} from 'yellowgrid-api-ts';
|
|
258
|
-
|
|
259
|
-
const configuration = new Configuration();
|
|
260
|
-
const apiInstance = new ProductsApi(configuration);
|
|
261
|
-
|
|
262
|
-
const { status, data } = await apiInstance.getGetProducts();
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
### Parameters
|
|
266
|
-
This endpoint does not have any parameters.
|
|
193
|
+
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
194
|
+
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
195
|
+
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
267
196
|
|
|
268
197
|
|
|
269
198
|
### Return type
|
|
270
199
|
|
|
271
|
-
**
|
|
200
|
+
**ProductSearchResultsModel**
|
|
272
201
|
|
|
273
202
|
### Authorization
|
|
274
203
|
|
|
@@ -384,63 +313,3 @@ No authorization required
|
|
|
384
313
|
|
|
385
314
|
[[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)
|
|
386
315
|
|
|
387
|
-
# **getSearchProducts**
|
|
388
|
-
> ProductSearchResultsModel getSearchProducts()
|
|
389
|
-
|
|
390
|
-
Search Products
|
|
391
|
-
|
|
392
|
-
### Example
|
|
393
|
-
|
|
394
|
-
```typescript
|
|
395
|
-
import {
|
|
396
|
-
ProductsApi,
|
|
397
|
-
Configuration
|
|
398
|
-
} from 'yellowgrid-api-ts';
|
|
399
|
-
|
|
400
|
-
const configuration = new Configuration();
|
|
401
|
-
const apiInstance = new ProductsApi(configuration);
|
|
402
|
-
|
|
403
|
-
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
404
|
-
let page: number; //Page Number (optional) (default to 1)
|
|
405
|
-
let search: string; //Search (optional) (default to undefined)
|
|
406
|
-
|
|
407
|
-
const { status, data } = await apiInstance.getSearchProducts(
|
|
408
|
-
pageSize,
|
|
409
|
-
page,
|
|
410
|
-
search
|
|
411
|
-
);
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
### Parameters
|
|
415
|
-
|
|
416
|
-
|Name | Type | Description | Notes|
|
|
417
|
-
|------------- | ------------- | ------------- | -------------|
|
|
418
|
-
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
419
|
-
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
420
|
-
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
### Return type
|
|
424
|
-
|
|
425
|
-
**ProductSearchResultsModel**
|
|
426
|
-
|
|
427
|
-
### Authorization
|
|
428
|
-
|
|
429
|
-
No authorization required
|
|
430
|
-
|
|
431
|
-
### HTTP request headers
|
|
432
|
-
|
|
433
|
-
- **Content-Type**: Not defined
|
|
434
|
-
- **Accept**: application/json
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
### HTTP response details
|
|
438
|
-
| Status code | Description | Response headers |
|
|
439
|
-
|-------------|-------------|------------------|
|
|
440
|
-
|**200** | Products | - |
|
|
441
|
-
|**400** | Bad Request | - |
|
|
442
|
-
|**401** | Unauthorised | - |
|
|
443
|
-
|**403** | Access Denied | - |
|
|
444
|
-
|
|
445
|
-
[[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)
|
|
446
|
-
|