yellowgrid-api-ts 3.1.6 → 3.1.8-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 +214 -197
- package/README.md +34 -7
- package/api.ts +1899 -252
- 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 +1384 -155
- package/dist/api.js +1150 -196
- 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/AbstractOrderRequestDTO.md +33 -0
- package/docs/AccountDetailedSummaryDTO.md +39 -0
- package/docs/AccountsApi.md +103 -0
- package/docs/AddressModel.md +2 -0
- package/docs/AdminItemRequestDTO.md +41 -0
- package/docs/AdminOrderRequestDTO.md +45 -0
- package/docs/AdminUserModel.md +29 -0
- package/docs/BasicItemDTO.md +23 -0
- package/docs/BasicProductDTO.md +23 -0
- package/docs/Class3CXApi.md +0 -55
- package/docs/Class3CXInstallationsApi.md +4 -1
- package/docs/ClientDetailsModel.md +0 -2
- package/docs/CourierPriceEntity.md +39 -0
- package/docs/CrmContactDTO.md +4 -2
- package/docs/CustomerItemRequestDTO.md +37 -0
- package/docs/CustomerOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +12 -4
- package/docs/ItemEntity.md +2 -0
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +356 -4
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
- package/docs/ProductsApi.md +164 -43
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/ShippingApi.md +63 -0
- package/docs/ShippingConsignmentModel.md +26 -0
- package/docs/ShippingInformationDTO.md +25 -0
- package/docs/ShippingServiceDTO.md +23 -0
- package/docs/ShippingServiceModel.md +31 -0
- package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
- package/docs/StockManagementApi.md +2 -2
- package/docs/TcxSbcDTO.md +31 -0
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/ProductsApi.md
CHANGED
|
@@ -5,11 +5,13 @@ 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|
|
|
9
8
|
|[**getGetLegacyStockList**](#getgetlegacystocklist) | **GET** /products/stock/legacy | Get Current Stock & Pricing|
|
|
10
|
-
|[**getGetProducts**](#getgetproducts) | **GET** /products
|
|
9
|
+
|[**getGetProducts**](#getgetproducts) | **GET** /products | Get Products|
|
|
11
10
|
|[**getGetStockList**](#getgetstocklist) | **GET** /products/stock | Get Current Stock & Pricing|
|
|
12
11
|
|[**getGetTcxTemplates**](#getgettcxtemplates) | **GET** /products/attributes/tcx/templates | Get 3CX Templates|
|
|
12
|
+
|[**getSearchProducts**](#getsearchproducts) | **GET** /products/search | Search Products|
|
|
13
|
+
|[**postGetProduct**](#postgetproduct) | **POST** /products/{sku} | Get Product|
|
|
14
|
+
|[**postGetProductForCustomer**](#postgetproductforcustomer) | **POST** /admin/products/{sku} | Get Product For Customer|
|
|
13
15
|
|
|
14
16
|
# **getGetAttributeSets**
|
|
15
17
|
> Array<AttributeSetEnum> getGetAttributeSets()
|
|
@@ -58,10 +60,10 @@ No authorization required
|
|
|
58
60
|
|
|
59
61
|
[[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)
|
|
60
62
|
|
|
61
|
-
# **
|
|
62
|
-
>
|
|
63
|
+
# **getGetLegacyStockList**
|
|
64
|
+
> string getGetLegacyStockList()
|
|
63
65
|
|
|
64
|
-
Get
|
|
66
|
+
Get Current Stock & Pricing
|
|
65
67
|
|
|
66
68
|
### Example
|
|
67
69
|
|
|
@@ -74,7 +76,61 @@ import {
|
|
|
74
76
|
const configuration = new Configuration();
|
|
75
77
|
const apiInstance = new ProductsApi(configuration);
|
|
76
78
|
|
|
77
|
-
|
|
79
|
+
let format: 'XML' | 'CSV'; //File Format (default to undefined)
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.getGetLegacyStockList(
|
|
82
|
+
format
|
|
83
|
+
);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Parameters
|
|
87
|
+
|
|
88
|
+
|Name | Type | Description | Notes|
|
|
89
|
+
|------------- | ------------- | ------------- | -------------|
|
|
90
|
+
| **format** | [**'XML' | 'CSV'**]**Array<'XML' | 'CSV'>** | File Format | defaults to undefined|
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Return type
|
|
94
|
+
|
|
95
|
+
**string**
|
|
96
|
+
|
|
97
|
+
### Authorization
|
|
98
|
+
|
|
99
|
+
No authorization required
|
|
100
|
+
|
|
101
|
+
### HTTP request headers
|
|
102
|
+
|
|
103
|
+
- **Content-Type**: Not defined
|
|
104
|
+
- **Accept**: text/csv, application/xml
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### HTTP response details
|
|
108
|
+
| Status code | Description | Response headers |
|
|
109
|
+
|-------------|-------------|------------------|
|
|
110
|
+
|**200** | Products | - |
|
|
111
|
+
|**400** | Bad Request | - |
|
|
112
|
+
|**401** | Unauthorised | - |
|
|
113
|
+
|**403** | Access Denied | - |
|
|
114
|
+
|
|
115
|
+
[[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
|
+
|
|
117
|
+
# **getGetProducts**
|
|
118
|
+
> Array<BasicProductDTO> getGetProducts()
|
|
119
|
+
|
|
120
|
+
Get Products
|
|
121
|
+
|
|
122
|
+
### Example
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import {
|
|
126
|
+
ProductsApi,
|
|
127
|
+
Configuration
|
|
128
|
+
} from 'yellowgrid-api-ts';
|
|
129
|
+
|
|
130
|
+
const configuration = new Configuration();
|
|
131
|
+
const apiInstance = new ProductsApi(configuration);
|
|
132
|
+
|
|
133
|
+
const { status, data } = await apiInstance.getGetProducts();
|
|
78
134
|
```
|
|
79
135
|
|
|
80
136
|
### Parameters
|
|
@@ -83,7 +139,7 @@ This endpoint does not have any parameters.
|
|
|
83
139
|
|
|
84
140
|
### Return type
|
|
85
141
|
|
|
86
|
-
**Array<
|
|
142
|
+
**Array<BasicProductDTO>**
|
|
87
143
|
|
|
88
144
|
### Authorization
|
|
89
145
|
|
|
@@ -98,15 +154,15 @@ No authorization required
|
|
|
98
154
|
### HTTP response details
|
|
99
155
|
| Status code | Description | Response headers |
|
|
100
156
|
|-------------|-------------|------------------|
|
|
101
|
-
|**200** |
|
|
157
|
+
|**200** | Products | - |
|
|
102
158
|
|**400** | Bad Request | - |
|
|
103
159
|
|**401** | Unauthorised | - |
|
|
104
160
|
|**403** | Access Denied | - |
|
|
105
161
|
|
|
106
162
|
[[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)
|
|
107
163
|
|
|
108
|
-
# **
|
|
109
|
-
>
|
|
164
|
+
# **getGetStockList**
|
|
165
|
+
> Array<PriceListItemModel> getGetStockList()
|
|
110
166
|
|
|
111
167
|
Get Current Stock & Pricing
|
|
112
168
|
|
|
@@ -121,23 +177,16 @@ import {
|
|
|
121
177
|
const configuration = new Configuration();
|
|
122
178
|
const apiInstance = new ProductsApi(configuration);
|
|
123
179
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const { status, data } = await apiInstance.getGetLegacyStockList(
|
|
127
|
-
format
|
|
128
|
-
);
|
|
180
|
+
const { status, data } = await apiInstance.getGetStockList();
|
|
129
181
|
```
|
|
130
182
|
|
|
131
183
|
### Parameters
|
|
132
|
-
|
|
133
|
-
|Name | Type | Description | Notes|
|
|
134
|
-
|------------- | ------------- | ------------- | -------------|
|
|
135
|
-
| **format** | [**'XML' | 'CSV'**]**Array<'XML' | 'CSV'>** | File Format | defaults to undefined|
|
|
184
|
+
This endpoint does not have any parameters.
|
|
136
185
|
|
|
137
186
|
|
|
138
187
|
### Return type
|
|
139
188
|
|
|
140
|
-
**
|
|
189
|
+
**Array<PriceListItemModel>**
|
|
141
190
|
|
|
142
191
|
### Authorization
|
|
143
192
|
|
|
@@ -146,7 +195,7 @@ No authorization required
|
|
|
146
195
|
### HTTP request headers
|
|
147
196
|
|
|
148
197
|
- **Content-Type**: Not defined
|
|
149
|
-
- **Accept**:
|
|
198
|
+
- **Accept**: application/json
|
|
150
199
|
|
|
151
200
|
|
|
152
201
|
### HTTP response details
|
|
@@ -159,10 +208,57 @@ No authorization required
|
|
|
159
208
|
|
|
160
209
|
[[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)
|
|
161
210
|
|
|
162
|
-
# **
|
|
163
|
-
>
|
|
211
|
+
# **getGetTcxTemplates**
|
|
212
|
+
> Array<TcxTemplateXmlEnum> getGetTcxTemplates()
|
|
164
213
|
|
|
165
|
-
Get
|
|
214
|
+
Get 3CX Templates
|
|
215
|
+
|
|
216
|
+
### Example
|
|
217
|
+
|
|
218
|
+
```typescript
|
|
219
|
+
import {
|
|
220
|
+
ProductsApi,
|
|
221
|
+
Configuration
|
|
222
|
+
} from 'yellowgrid-api-ts';
|
|
223
|
+
|
|
224
|
+
const configuration = new Configuration();
|
|
225
|
+
const apiInstance = new ProductsApi(configuration);
|
|
226
|
+
|
|
227
|
+
const { status, data } = await apiInstance.getGetTcxTemplates();
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Parameters
|
|
231
|
+
This endpoint does not have any parameters.
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Return type
|
|
235
|
+
|
|
236
|
+
**Array<TcxTemplateXmlEnum>**
|
|
237
|
+
|
|
238
|
+
### Authorization
|
|
239
|
+
|
|
240
|
+
No authorization required
|
|
241
|
+
|
|
242
|
+
### HTTP request headers
|
|
243
|
+
|
|
244
|
+
- **Content-Type**: Not defined
|
|
245
|
+
- **Accept**: application/json
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
### HTTP response details
|
|
249
|
+
| Status code | Description | Response headers |
|
|
250
|
+
|-------------|-------------|------------------|
|
|
251
|
+
|**200** | 3CX Templates | - |
|
|
252
|
+
|**400** | Bad Request | - |
|
|
253
|
+
|**401** | Unauthorised | - |
|
|
254
|
+
|**403** | Access Denied | - |
|
|
255
|
+
|
|
256
|
+
[[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)
|
|
257
|
+
|
|
258
|
+
# **getSearchProducts**
|
|
259
|
+
> ProductSearchResultsModel getSearchProducts()
|
|
260
|
+
|
|
261
|
+
Search Products
|
|
166
262
|
|
|
167
263
|
### Example
|
|
168
264
|
|
|
@@ -179,7 +275,7 @@ let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
|
179
275
|
let page: number; //Page Number (optional) (default to 1)
|
|
180
276
|
let search: string; //Search (optional) (default to undefined)
|
|
181
277
|
|
|
182
|
-
const { status, data } = await apiInstance.
|
|
278
|
+
const { status, data } = await apiInstance.getSearchProducts(
|
|
183
279
|
pageSize,
|
|
184
280
|
page,
|
|
185
281
|
search
|
|
@@ -219,32 +315,43 @@ No authorization required
|
|
|
219
315
|
|
|
220
316
|
[[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)
|
|
221
317
|
|
|
222
|
-
# **
|
|
223
|
-
>
|
|
318
|
+
# **postGetProduct**
|
|
319
|
+
> ProductSummaryDTO postGetProduct(postGetProductForCustomerRequest)
|
|
224
320
|
|
|
225
|
-
Get
|
|
321
|
+
Get Product
|
|
226
322
|
|
|
227
323
|
### Example
|
|
228
324
|
|
|
229
325
|
```typescript
|
|
230
326
|
import {
|
|
231
327
|
ProductsApi,
|
|
232
|
-
Configuration
|
|
328
|
+
Configuration,
|
|
329
|
+
PostGetProductForCustomerRequest
|
|
233
330
|
} from 'yellowgrid-api-ts';
|
|
234
331
|
|
|
235
332
|
const configuration = new Configuration();
|
|
236
333
|
const apiInstance = new ProductsApi(configuration);
|
|
237
334
|
|
|
238
|
-
|
|
335
|
+
let sku: string; //Product SKU (default to undefined)
|
|
336
|
+
let postGetProductForCustomerRequest: PostGetProductForCustomerRequest; //Product search criteria
|
|
337
|
+
|
|
338
|
+
const { status, data } = await apiInstance.postGetProduct(
|
|
339
|
+
sku,
|
|
340
|
+
postGetProductForCustomerRequest
|
|
341
|
+
);
|
|
239
342
|
```
|
|
240
343
|
|
|
241
344
|
### Parameters
|
|
242
|
-
|
|
345
|
+
|
|
346
|
+
|Name | Type | Description | Notes|
|
|
347
|
+
|------------- | ------------- | ------------- | -------------|
|
|
348
|
+
| **postGetProductForCustomerRequest** | **PostGetProductForCustomerRequest**| Product search criteria | |
|
|
349
|
+
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
243
350
|
|
|
244
351
|
|
|
245
352
|
### Return type
|
|
246
353
|
|
|
247
|
-
**
|
|
354
|
+
**ProductSummaryDTO**
|
|
248
355
|
|
|
249
356
|
### Authorization
|
|
250
357
|
|
|
@@ -252,46 +359,60 @@ No authorization required
|
|
|
252
359
|
|
|
253
360
|
### HTTP request headers
|
|
254
361
|
|
|
255
|
-
- **Content-Type**:
|
|
362
|
+
- **Content-Type**: application/json
|
|
256
363
|
- **Accept**: application/json
|
|
257
364
|
|
|
258
365
|
|
|
259
366
|
### HTTP response details
|
|
260
367
|
| Status code | Description | Response headers |
|
|
261
368
|
|-------------|-------------|------------------|
|
|
262
|
-
|**200** |
|
|
369
|
+
|**200** | Product | - |
|
|
263
370
|
|**400** | Bad Request | - |
|
|
264
371
|
|**401** | Unauthorised | - |
|
|
265
372
|
|**403** | Access Denied | - |
|
|
266
373
|
|
|
267
374
|
[[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)
|
|
268
375
|
|
|
269
|
-
# **
|
|
270
|
-
>
|
|
376
|
+
# **postGetProductForCustomer**
|
|
377
|
+
> ProductSummaryDTO postGetProductForCustomer(postGetProductForCustomerRequest)
|
|
271
378
|
|
|
272
|
-
Get
|
|
379
|
+
Get Product For Customer
|
|
273
380
|
|
|
274
381
|
### Example
|
|
275
382
|
|
|
276
383
|
```typescript
|
|
277
384
|
import {
|
|
278
385
|
ProductsApi,
|
|
279
|
-
Configuration
|
|
386
|
+
Configuration,
|
|
387
|
+
PostGetProductForCustomerRequest
|
|
280
388
|
} from 'yellowgrid-api-ts';
|
|
281
389
|
|
|
282
390
|
const configuration = new Configuration();
|
|
283
391
|
const apiInstance = new ProductsApi(configuration);
|
|
284
392
|
|
|
285
|
-
|
|
393
|
+
let customerId: number; //Customer ID (default to undefined)
|
|
394
|
+
let sku: string; //Product SKU (default to undefined)
|
|
395
|
+
let postGetProductForCustomerRequest: PostGetProductForCustomerRequest; //Product search criteria
|
|
396
|
+
|
|
397
|
+
const { status, data } = await apiInstance.postGetProductForCustomer(
|
|
398
|
+
customerId,
|
|
399
|
+
sku,
|
|
400
|
+
postGetProductForCustomerRequest
|
|
401
|
+
);
|
|
286
402
|
```
|
|
287
403
|
|
|
288
404
|
### Parameters
|
|
289
|
-
|
|
405
|
+
|
|
406
|
+
|Name | Type | Description | Notes|
|
|
407
|
+
|------------- | ------------- | ------------- | -------------|
|
|
408
|
+
| **postGetProductForCustomerRequest** | **PostGetProductForCustomerRequest**| Product search criteria | |
|
|
409
|
+
| **customerId** | [**number**] | Customer ID | defaults to undefined|
|
|
410
|
+
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
290
411
|
|
|
291
412
|
|
|
292
413
|
### Return type
|
|
293
414
|
|
|
294
|
-
**
|
|
415
|
+
**ProductSummaryDTO**
|
|
295
416
|
|
|
296
417
|
### Authorization
|
|
297
418
|
|
|
@@ -299,14 +420,14 @@ No authorization required
|
|
|
299
420
|
|
|
300
421
|
### HTTP request headers
|
|
301
422
|
|
|
302
|
-
- **Content-Type**:
|
|
423
|
+
- **Content-Type**: application/json
|
|
303
424
|
- **Accept**: application/json
|
|
304
425
|
|
|
305
426
|
|
|
306
427
|
### HTTP response details
|
|
307
428
|
| Status code | Description | Response headers |
|
|
308
429
|
|-------------|-------------|------------------|
|
|
309
|
-
|**200** |
|
|
430
|
+
|**200** | Product | - |
|
|
310
431
|
|**400** | Bad Request | - |
|
|
311
432
|
|**401** | Unauthorised | - |
|
|
312
433
|
|**403** | Access Denied | - |
|
package/docs/ProvisioningApi.md
CHANGED
|
@@ -235,7 +235,7 @@ No authorization required
|
|
|
235
235
|
[[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)
|
|
236
236
|
|
|
237
237
|
# **getGetGroups**
|
|
238
|
-
> Array<
|
|
238
|
+
> Array<ProvisioningModel> getGetGroups()
|
|
239
239
|
|
|
240
240
|
Get provisioning groups
|
|
241
241
|
|
|
@@ -266,7 +266,7 @@ const { status, data } = await apiInstance.getGetGroups(
|
|
|
266
266
|
|
|
267
267
|
### Return type
|
|
268
268
|
|
|
269
|
-
**Array<
|
|
269
|
+
**Array<ProvisioningModel>**
|
|
270
270
|
|
|
271
271
|
### Authorization
|
|
272
272
|
|
|
@@ -289,7 +289,7 @@ No authorization required
|
|
|
289
289
|
[[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)
|
|
290
290
|
|
|
291
291
|
# **postAddFanvilGroup**
|
|
292
|
-
>
|
|
292
|
+
> ProvisioningModel postAddFanvilGroup()
|
|
293
293
|
|
|
294
294
|
Create a Fanvil provisioning group
|
|
295
295
|
|
|
@@ -321,7 +321,7 @@ const { status, data } = await apiInstance.postAddFanvilGroup(
|
|
|
321
321
|
|
|
322
322
|
### Return type
|
|
323
323
|
|
|
324
|
-
**
|
|
324
|
+
**ProvisioningModel**
|
|
325
325
|
|
|
326
326
|
### Authorization
|
|
327
327
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ProvisioningModel
|
|
2
2
|
|
|
3
3
|
Provisioning Group
|
|
4
4
|
|
|
@@ -15,9 +15,9 @@ Name | Type | Description | Notes
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import {
|
|
18
|
+
import { ProvisioningModel } from 'yellowgrid-api-ts';
|
|
19
19
|
|
|
20
|
-
const instance:
|
|
20
|
+
const instance: ProvisioningModel = {
|
|
21
21
|
groupName,
|
|
22
22
|
provisioningUrl,
|
|
23
23
|
auth,
|
package/docs/ShipmentEntity.md
CHANGED
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**courierTracking** | **string** | courierTracking | [optional] [default to undefined]
|
|
16
16
|
**courierBoxes** | **number** | courierBoxes | [optional] [default to undefined]
|
|
17
17
|
**scannedData** | **string** | mac | [optional] [default to undefined]
|
|
18
|
-
**
|
|
18
|
+
**dateShipped** | **string** | date | [optional] [default to undefined]
|
|
19
19
|
**requestDate** | **string** | requestDate | [optional] [default to undefined]
|
|
20
20
|
**provId** | **number** | provId | [optional] [default to undefined]
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ const instance: ShipmentEntity = {
|
|
|
34
34
|
courierTracking,
|
|
35
35
|
courierBoxes,
|
|
36
36
|
scannedData,
|
|
37
|
-
|
|
37
|
+
dateShipped,
|
|
38
38
|
requestDate,
|
|
39
39
|
provId,
|
|
40
40
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# ShippingApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://api.yellowgrid.local*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**postGetShippingServices**](#postgetshippingservices) | **POST** /shipping/services | Get Shipping Services|
|
|
8
|
+
|
|
9
|
+
# **postGetShippingServices**
|
|
10
|
+
> ShippingServicesModel postGetShippingServices()
|
|
11
|
+
|
|
12
|
+
Get Shipping Services
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
ShippingApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
ShippingInformationDTO
|
|
21
|
+
} from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new ShippingApi(configuration);
|
|
25
|
+
|
|
26
|
+
let shippingInformationDTO: ShippingInformationDTO; //Shipping Information (optional)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.postGetShippingServices(
|
|
29
|
+
shippingInformationDTO
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **shippingInformationDTO** | **ShippingInformationDTO**| Shipping Information | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**ShippingServicesModel**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
No authorization required
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Shipping Services | - |
|
|
58
|
+
|**400** | Bad Request | - |
|
|
59
|
+
|**401** | Unauthorised | - |
|
|
60
|
+
|**403** | Access Denied | - |
|
|
61
|
+
|
|
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)
|
|
63
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ShippingConsignmentModel
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**service** | [**ShippingServiceModel**](ShippingServiceModel.md) | | [optional] [default to undefined]
|
|
9
|
+
**id** | **string** | ID/Number | [optional] [default to undefined]
|
|
10
|
+
**trackingNumber** | **string** | Tracking Number | [optional] [default to undefined]
|
|
11
|
+
**parcelIds** | **Array<string>** | Parcels | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ShippingConsignmentModel } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: ShippingConsignmentModel = {
|
|
19
|
+
service,
|
|
20
|
+
id,
|
|
21
|
+
trackingNumber,
|
|
22
|
+
parcelIds,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ShippingInformationDTO
|
|
2
|
+
|
|
3
|
+
Shipping Information
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**items** | [**Array<BasicItemDTO>**](BasicItemDTO.md) | Items | [optional] [default to undefined]
|
|
10
|
+
**postalCode** | **string** | Destination Post Code | [optional] [default to undefined]
|
|
11
|
+
**iso** | **string** | Destination ISO | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ShippingInformationDTO } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: ShippingInformationDTO = {
|
|
19
|
+
items,
|
|
20
|
+
postalCode,
|
|
21
|
+
iso,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ShippingServiceDTO
|
|
2
|
+
|
|
3
|
+
Shipping Service
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**courier** | **string** | Courier | [optional] [default to undefined]
|
|
10
|
+
**serviceName** | **string** | Service Name | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ShippingServiceDTO } from 'yellowgrid-api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: ShippingServiceDTO = {
|
|
18
|
+
courier,
|
|
19
|
+
serviceName,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ShippingServiceModel
|
|
2
|
+
|
|
3
|
+
Shipping Service
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**courier** | **string** | Courier | [optional] [default to undefined]
|
|
10
|
+
**code** | **string** | Code | [optional] [default to undefined]
|
|
11
|
+
**name** | **string** | Name | [optional] [default to undefined]
|
|
12
|
+
**description** | **string** | Description | [optional] [default to undefined]
|
|
13
|
+
**label** | **string** | Label | [optional] [default to undefined]
|
|
14
|
+
**price** | **number** | Price | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ShippingServiceModel } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: ShippingServiceModel = {
|
|
22
|
+
courier,
|
|
23
|
+
code,
|
|
24
|
+
name,
|
|
25
|
+
description,
|
|
26
|
+
label,
|
|
27
|
+
price,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ShippingServicesModel
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**services** | [**Array<ShippingServiceModel>**](ShippingServiceModel.md) | Services | [optional] [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { ShippingServicesModel } from 'yellowgrid-api-ts';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: ShippingServicesModel = {
|
|
16
|
+
services,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -692,7 +692,7 @@ No authorization required
|
|
|
692
692
|
[[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)
|
|
693
693
|
|
|
694
694
|
# **getGetStockSupplierProducts**
|
|
695
|
-
> Array<
|
|
695
|
+
> Array<ProductSummaryDTO> getGetStockSupplierProducts()
|
|
696
696
|
|
|
697
697
|
Get Stock Supplier\'s Products
|
|
698
698
|
|
|
@@ -723,7 +723,7 @@ const { status, data } = await apiInstance.getGetStockSupplierProducts(
|
|
|
723
723
|
|
|
724
724
|
### Return type
|
|
725
725
|
|
|
726
|
-
**Array<
|
|
726
|
+
**Array<ProductSummaryDTO>**
|
|
727
727
|
|
|
728
728
|
### Authorization
|
|
729
729
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# TcxSbcDTO
|
|
2
|
+
|
|
3
|
+
SBC Data
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**ipAddress** | **string** | LAN IP Address | [optional] [default to undefined]
|
|
10
|
+
**defaultGateway** | **string** | LAN Default Gateway | [optional] [default to undefined]
|
|
11
|
+
**netmask** | **string** | LAN Subnet Mask | [optional] [default to undefined]
|
|
12
|
+
**dns** | **string** | DNS | [optional] [default to undefined]
|
|
13
|
+
**tcxUrl** | **string** | 3CX URL | [optional] [default to undefined]
|
|
14
|
+
**tcxKey** | **string** | 3CX SBC Key | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { TcxSbcDTO } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: TcxSbcDTO = {
|
|
22
|
+
ipAddress,
|
|
23
|
+
defaultGateway,
|
|
24
|
+
netmask,
|
|
25
|
+
dns,
|
|
26
|
+
tcxUrl,
|
|
27
|
+
tcxKey,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|