yellowgrid-api-ts 3.0.83-dev.0 → 3.0.83
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 +251 -1780
- 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 -1308
- package/dist/api.js +201 -1065
- 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 +34 -159
- 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,14 +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)
|
|
124
|
+
let format: 'XML' | 'CSV'; //File Format (default to undefined)
|
|
136
125
|
|
|
137
|
-
const { status, data } = await apiInstance.
|
|
138
|
-
|
|
139
|
-
quantity,
|
|
140
|
-
licenceKey
|
|
126
|
+
const { status, data } = await apiInstance.getGetLegacyStockList(
|
|
127
|
+
format
|
|
141
128
|
);
|
|
142
129
|
```
|
|
143
130
|
|
|
@@ -145,14 +132,12 @@ const { status, data } = await apiInstance.getGetProduct(
|
|
|
145
132
|
|
|
146
133
|
|Name | Type | Description | Notes|
|
|
147
134
|
|------------- | ------------- | ------------- | -------------|
|
|
148
|
-
| **
|
|
149
|
-
| **quantity** | [**number**] | Quantity | (optional) defaults to undefined|
|
|
150
|
-
| **licenceKey** | [**string**] | 3CX Licence Key | (optional) defaults to undefined|
|
|
135
|
+
| **format** | [**'XML' | 'CSV'**]**Array<'XML' | 'CSV'>** | File Format | defaults to undefined|
|
|
151
136
|
|
|
152
137
|
|
|
153
138
|
### Return type
|
|
154
139
|
|
|
155
|
-
**
|
|
140
|
+
**string**
|
|
156
141
|
|
|
157
142
|
### Authorization
|
|
158
143
|
|
|
@@ -161,23 +146,23 @@ No authorization required
|
|
|
161
146
|
### HTTP request headers
|
|
162
147
|
|
|
163
148
|
- **Content-Type**: Not defined
|
|
164
|
-
- **Accept**: application/
|
|
149
|
+
- **Accept**: text/csv, application/xml
|
|
165
150
|
|
|
166
151
|
|
|
167
152
|
### HTTP response details
|
|
168
153
|
| Status code | Description | Response headers |
|
|
169
154
|
|-------------|-------------|------------------|
|
|
170
|
-
|**200** |
|
|
155
|
+
|**200** | Products | - |
|
|
171
156
|
|**400** | Bad Request | - |
|
|
172
157
|
|**401** | Unauthorised | - |
|
|
173
158
|
|**403** | Access Denied | - |
|
|
174
159
|
|
|
175
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)
|
|
176
161
|
|
|
177
|
-
# **
|
|
178
|
-
>
|
|
162
|
+
# **getGetProducts**
|
|
163
|
+
> ProductSearchResultsModel getGetProducts()
|
|
179
164
|
|
|
180
|
-
Get
|
|
165
|
+
Get Products
|
|
181
166
|
|
|
182
167
|
### Example
|
|
183
168
|
|
|
@@ -190,16 +175,14 @@ import {
|
|
|
190
175
|
const configuration = new Configuration();
|
|
191
176
|
const apiInstance = new ProductsApi(configuration);
|
|
192
177
|
|
|
193
|
-
let
|
|
194
|
-
let
|
|
195
|
-
let
|
|
196
|
-
let licenceKey: string; //3CX Licence Key (optional) (default to undefined)
|
|
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)
|
|
197
181
|
|
|
198
|
-
const { status, data } = await apiInstance.
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
licenceKey
|
|
182
|
+
const { status, data } = await apiInstance.getGetProducts(
|
|
183
|
+
pageSize,
|
|
184
|
+
page,
|
|
185
|
+
search
|
|
203
186
|
);
|
|
204
187
|
```
|
|
205
188
|
|
|
@@ -207,62 +190,14 @@ const { status, data } = await apiInstance.getGetProductForCustomer(
|
|
|
207
190
|
|
|
208
191
|
|Name | Type | Description | Notes|
|
|
209
192
|
|------------- | ------------- | ------------- | -------------|
|
|
210
|
-
| **
|
|
211
|
-
| **
|
|
212
|
-
| **
|
|
213
|
-
| **licenceKey** | [**string**] | 3CX Licence Key | (optional) defaults to undefined|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
### Return type
|
|
217
|
-
|
|
218
|
-
**ProductSummaryDTO**
|
|
219
|
-
|
|
220
|
-
### Authorization
|
|
221
|
-
|
|
222
|
-
No authorization required
|
|
223
|
-
|
|
224
|
-
### HTTP request headers
|
|
225
|
-
|
|
226
|
-
- **Content-Type**: Not defined
|
|
227
|
-
- **Accept**: application/json
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
### HTTP response details
|
|
231
|
-
| Status code | Description | Response headers |
|
|
232
|
-
|-------------|-------------|------------------|
|
|
233
|
-
|**200** | Product | - |
|
|
234
|
-
|**400** | Bad Request | - |
|
|
235
|
-
|**401** | Unauthorised | - |
|
|
236
|
-
|**403** | Access Denied | - |
|
|
237
|
-
|
|
238
|
-
[[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)
|
|
239
|
-
|
|
240
|
-
# **getGetProducts**
|
|
241
|
-
> Array<BasicProductDTO> getGetProducts()
|
|
242
|
-
|
|
243
|
-
Get Products
|
|
244
|
-
|
|
245
|
-
### Example
|
|
246
|
-
|
|
247
|
-
```typescript
|
|
248
|
-
import {
|
|
249
|
-
ProductsApi,
|
|
250
|
-
Configuration
|
|
251
|
-
} from 'yellowgrid-api-ts';
|
|
252
|
-
|
|
253
|
-
const configuration = new Configuration();
|
|
254
|
-
const apiInstance = new ProductsApi(configuration);
|
|
255
|
-
|
|
256
|
-
const { status, data } = await apiInstance.getGetProducts();
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
### Parameters
|
|
260
|
-
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|
|
|
261
196
|
|
|
262
197
|
|
|
263
198
|
### Return type
|
|
264
199
|
|
|
265
|
-
**
|
|
200
|
+
**ProductSearchResultsModel**
|
|
266
201
|
|
|
267
202
|
### Authorization
|
|
268
203
|
|
|
@@ -378,63 +313,3 @@ No authorization required
|
|
|
378
313
|
|
|
379
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)
|
|
380
315
|
|
|
381
|
-
# **getSearchProducts**
|
|
382
|
-
> ProductSearchResultsModel getSearchProducts()
|
|
383
|
-
|
|
384
|
-
Search Products
|
|
385
|
-
|
|
386
|
-
### Example
|
|
387
|
-
|
|
388
|
-
```typescript
|
|
389
|
-
import {
|
|
390
|
-
ProductsApi,
|
|
391
|
-
Configuration
|
|
392
|
-
} from 'yellowgrid-api-ts';
|
|
393
|
-
|
|
394
|
-
const configuration = new Configuration();
|
|
395
|
-
const apiInstance = new ProductsApi(configuration);
|
|
396
|
-
|
|
397
|
-
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
398
|
-
let page: number; //Page Number (optional) (default to 1)
|
|
399
|
-
let search: string; //Search (optional) (default to undefined)
|
|
400
|
-
|
|
401
|
-
const { status, data } = await apiInstance.getSearchProducts(
|
|
402
|
-
pageSize,
|
|
403
|
-
page,
|
|
404
|
-
search
|
|
405
|
-
);
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
### Parameters
|
|
409
|
-
|
|
410
|
-
|Name | Type | Description | Notes|
|
|
411
|
-
|------------- | ------------- | ------------- | -------------|
|
|
412
|
-
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
413
|
-
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
414
|
-
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
### Return type
|
|
418
|
-
|
|
419
|
-
**ProductSearchResultsModel**
|
|
420
|
-
|
|
421
|
-
### Authorization
|
|
422
|
-
|
|
423
|
-
No authorization required
|
|
424
|
-
|
|
425
|
-
### HTTP request headers
|
|
426
|
-
|
|
427
|
-
- **Content-Type**: Not defined
|
|
428
|
-
- **Accept**: application/json
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
### HTTP response details
|
|
432
|
-
| Status code | Description | Response headers |
|
|
433
|
-
|-------------|-------------|------------------|
|
|
434
|
-
|**200** | Products | - |
|
|
435
|
-
|**400** | Bad Request | - |
|
|
436
|
-
|**401** | Unauthorised | - |
|
|
437
|
-
|**403** | Access Denied | - |
|
|
438
|
-
|
|
439
|
-
[[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)
|
|
440
|
-
|