yellowgrid-api-ts 3.2.100-dev.0 → 3.2.102-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 +28 -1
- package/README.md +60 -1
- package/api.ts +3441 -182
- package/dist/api.d.ts +2218 -157
- package/dist/api.js +3028 -235
- package/docs/AccountPageDetailsDTO.md +35 -0
- package/docs/AccountsApi.md +352 -4
- package/docs/AdminNumberPortDTO.md +4 -0
- package/docs/BatchDTO.md +59 -0
- package/docs/CreditNoteDTO.md +21 -0
- package/docs/CreditNoteEntity.md +29 -0
- package/docs/CreditNoteItemDTO.md +25 -0
- package/docs/CreditNoteItemEntity.md +29 -0
- package/docs/CreditNoteItemModel.md +29 -0
- package/docs/CreditNoteModel.md +31 -0
- package/docs/NumberPortingApi.md +60 -5
- package/docs/OAuth20Api.md +3 -3
- package/docs/OrderDetailsDTO.md +65 -0
- package/docs/OrderItemDTO.md +55 -0
- package/docs/OrderedItemModel.md +47 -0
- package/docs/OrdersApi.md +1325 -74
- package/docs/PatchUpdateAccountCnameRequest.md +20 -0
- package/docs/PostAddAdminNoteRequest.md +20 -0
- package/docs/PostAddOrderNoteRequest.md +20 -0
- package/docs/PostSplitOrderRequest.md +20 -0
- package/docs/PrinterEntity.md +29 -0
- package/docs/ProductsApi.md +58 -0
- package/docs/PutAllocateItemsRequest.md +20 -0
- package/docs/PutAllocateItemsRequestItemsInner.md +22 -0
- package/docs/SMSApi.md +56 -0
- package/docs/ShipmentDTO.md +41 -0
- package/docs/ShipmentItemDTO.md +23 -0
- package/docs/ShipmentItemEntity.md +1 -1
- package/docs/ShipmentItemModel.md +29 -0
- package/docs/ShipmentModel.md +43 -0
- package/docs/ShipmentRequestDTO.md +31 -0
- package/docs/ShippingRequestDTO.md +28 -0
- package/docs/SmsAccountDTO.md +31 -0
- package/docs/SmsAccountRequestDTO.md +29 -0
- package/docs/SupplierItemModel.md +35 -0
- package/docs/SupplierModel.md +37 -0
- package/docs/TcxSbcDTO.md +2 -0
- package/package.json +1 -1
package/docs/OrdersApi.md
CHANGED
|
@@ -4,19 +4,1078 @@ All URIs are relative to *https://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteDeleteBatch**](#deletedeletebatch) | **DELETE** /admin/orders/{id}/batches/{batch_id} | |
|
|
7
8
|
|[**deleteUpdateOrder**](#deleteupdateorder) | **DELETE** /orders/{id} | Delete Orders (Beta)|
|
|
9
|
+
|[**deleteUpdateShipment**](#deleteupdateshipment) | **DELETE** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Delete Shipment (Admin)|
|
|
8
10
|
|[**getGetAdminEditableOrder**](#getgetadmineditableorder) | **GET** /admin/orders/{id}/views/editable | Get Editable Order (Admin)|
|
|
11
|
+
|[**getGetAdminOrderDetails**](#getgetadminorderdetails) | **GET** /admin/orders/{id}/details | Get Order Details (Admin)|
|
|
12
|
+
|[**getGetCommercialInvoice**](#getgetcommercialinvoice) | **GET** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf | Get Commercial Invoice PDF|
|
|
9
13
|
|[**getGetEditableOrder**](#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)|
|
|
14
|
+
|[**getGetItemSerialInfo**](#getgetitemserialinfo) | **GET** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)|
|
|
15
|
+
|[**getGetOrderPdf**](#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF|
|
|
16
|
+
|[**getGetOrderSummary**](#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)|
|
|
10
17
|
|[**getGetOrders**](#getgetorders) | **GET** /orders | Get Orders (Beta)|
|
|
18
|
+
|[**patchCompleteOrder**](#patchcompleteorder) | **PATCH** /admin/orders/{id}/complete | Mark Order As Complete (Admin)|
|
|
19
|
+
|[**postAddOrderNote**](#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note|
|
|
11
20
|
|[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
|
|
21
|
+
|[**postCreateConsignment**](#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment|
|
|
22
|
+
|[**postCreateShipment**](#postcreateshipment) | **POST** /admin/orders/{id}/batches/{batch_id}/shipments | Create Shipment (Admin)|
|
|
12
23
|
|[**postGetOrders**](#postgetorders) | **POST** /orders | Create An Order (Beta)|
|
|
24
|
+
|[**postIssueCredit**](#postissuecredit) | **POST** /admin/orders/{id}/credit | Issue Credit (Admin)|
|
|
25
|
+
|[**postPrintShippingLabel**](#postprintshippinglabel) | **POST** /admin/orders/{id}/shipments/{shipment_id}/label/print | Print Shipment Label|
|
|
26
|
+
|[**postSendOrderEmail**](#postsendorderemail) | **POST** /admin/orders/{id}/email/send | Send Order Email|
|
|
27
|
+
|[**postSendShipmentEmail**](#postsendshipmentemail) | **POST** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/send/email | Send Shipment Email (Admin)|
|
|
28
|
+
|[**postSendSupplierEmail**](#postsendsupplieremail) | **POST** /admin/orders/{id}/batches/{batch_id}/email/send | Send Supplier Email|
|
|
29
|
+
|[**postSplitOrder**](#postsplitorder) | **POST** /admin/orders/{id}/split | Split Order|
|
|
30
|
+
|[**putAllocateItems**](#putallocateitems) | **PUT** /admin/orders/{id}/items/allocate | Allocate Items To Supplier|
|
|
13
31
|
|[**putUpdateAdminOrder**](#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)|
|
|
32
|
+
|[**putUpdateBatchItem**](#putupdatebatchitem) | **PUT** /admin/orders/{id}/batches/{batch_id}/items/{item_id} | Update Batch Item (Admin)|
|
|
14
33
|
|[**putUpdateOrder**](#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)|
|
|
34
|
+
|[**putUpdatePaymentStatus**](#putupdatepaymentstatus) | **PUT** /admin/orders/{id}/paid | Change Payment Status (Admin)|
|
|
35
|
+
|[**putUpdateShipment**](#putupdateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Update Shipment (Admin)|
|
|
36
|
+
|
|
37
|
+
# **deleteDeleteBatch**
|
|
38
|
+
> deleteDeleteBatch()
|
|
39
|
+
|
|
40
|
+
Delete Batch (Admin)
|
|
41
|
+
|
|
42
|
+
### Example
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
import {
|
|
46
|
+
OrdersApi,
|
|
47
|
+
Configuration
|
|
48
|
+
} from 'yellowgrid-api-ts';
|
|
49
|
+
|
|
50
|
+
const configuration = new Configuration();
|
|
51
|
+
const apiInstance = new OrdersApi(configuration);
|
|
52
|
+
|
|
53
|
+
let id: number; //Order ID (default to undefined)
|
|
54
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
55
|
+
|
|
56
|
+
const { status, data } = await apiInstance.deleteDeleteBatch(
|
|
57
|
+
id,
|
|
58
|
+
batchId
|
|
59
|
+
);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
|Name | Type | Description | Notes|
|
|
65
|
+
|------------- | ------------- | ------------- | -------------|
|
|
66
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
67
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
void (empty response body)
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
No authorization required
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: Not defined
|
|
81
|
+
- **Accept**: Not defined
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### HTTP response details
|
|
85
|
+
| Status code | Description | Response headers |
|
|
86
|
+
|-------------|-------------|------------------|
|
|
87
|
+
|**200** | No Response | - |
|
|
88
|
+
|**400** | Bad Request | - |
|
|
89
|
+
|**401** | Unauthorised | - |
|
|
90
|
+
|**403** | Access Denied | - |
|
|
91
|
+
|
|
92
|
+
[[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)
|
|
15
93
|
|
|
16
94
|
# **deleteUpdateOrder**
|
|
17
95
|
> deleteUpdateOrder()
|
|
18
96
|
|
|
19
|
-
Delete Orders (Beta)
|
|
97
|
+
Delete Orders (Beta)
|
|
98
|
+
|
|
99
|
+
### Example
|
|
100
|
+
|
|
101
|
+
```typescript
|
|
102
|
+
import {
|
|
103
|
+
OrdersApi,
|
|
104
|
+
Configuration
|
|
105
|
+
} from 'yellowgrid-api-ts';
|
|
106
|
+
|
|
107
|
+
const configuration = new Configuration();
|
|
108
|
+
const apiInstance = new OrdersApi(configuration);
|
|
109
|
+
|
|
110
|
+
let id: number; //Order ID (default to undefined)
|
|
111
|
+
|
|
112
|
+
const { status, data } = await apiInstance.deleteUpdateOrder(
|
|
113
|
+
id
|
|
114
|
+
);
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Parameters
|
|
118
|
+
|
|
119
|
+
|Name | Type | Description | Notes|
|
|
120
|
+
|------------- | ------------- | ------------- | -------------|
|
|
121
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
void (empty response body)
|
|
127
|
+
|
|
128
|
+
### Authorization
|
|
129
|
+
|
|
130
|
+
No authorization required
|
|
131
|
+
|
|
132
|
+
### HTTP request headers
|
|
133
|
+
|
|
134
|
+
- **Content-Type**: Not defined
|
|
135
|
+
- **Accept**: Not defined
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### HTTP response details
|
|
139
|
+
| Status code | Description | Response headers |
|
|
140
|
+
|-------------|-------------|------------------|
|
|
141
|
+
|**200** | No Response | - |
|
|
142
|
+
|**400** | Bad Request | - |
|
|
143
|
+
|**401** | Unauthorised | - |
|
|
144
|
+
|**403** | Access Denied | - |
|
|
145
|
+
|
|
146
|
+
[[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)
|
|
147
|
+
|
|
148
|
+
# **deleteUpdateShipment**
|
|
149
|
+
> deleteUpdateShipment()
|
|
150
|
+
|
|
151
|
+
Delete Shipment (Admin)
|
|
152
|
+
|
|
153
|
+
### Example
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
import {
|
|
157
|
+
OrdersApi,
|
|
158
|
+
Configuration
|
|
159
|
+
} from 'yellowgrid-api-ts';
|
|
160
|
+
|
|
161
|
+
const configuration = new Configuration();
|
|
162
|
+
const apiInstance = new OrdersApi(configuration);
|
|
163
|
+
|
|
164
|
+
let id: number; //Order ID (default to undefined)
|
|
165
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
166
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
167
|
+
|
|
168
|
+
const { status, data } = await apiInstance.deleteUpdateShipment(
|
|
169
|
+
id,
|
|
170
|
+
batchId,
|
|
171
|
+
shipmentId
|
|
172
|
+
);
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Parameters
|
|
176
|
+
|
|
177
|
+
|Name | Type | Description | Notes|
|
|
178
|
+
|------------- | ------------- | ------------- | -------------|
|
|
179
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
180
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
181
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Return type
|
|
185
|
+
|
|
186
|
+
void (empty response body)
|
|
187
|
+
|
|
188
|
+
### Authorization
|
|
189
|
+
|
|
190
|
+
No authorization required
|
|
191
|
+
|
|
192
|
+
### HTTP request headers
|
|
193
|
+
|
|
194
|
+
- **Content-Type**: Not defined
|
|
195
|
+
- **Accept**: Not defined
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### HTTP response details
|
|
199
|
+
| Status code | Description | Response headers |
|
|
200
|
+
|-------------|-------------|------------------|
|
|
201
|
+
|**200** | No Response | - |
|
|
202
|
+
|**400** | Bad Request | - |
|
|
203
|
+
|**401** | Unauthorised | - |
|
|
204
|
+
|**403** | Access Denied | - |
|
|
205
|
+
|
|
206
|
+
[[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)
|
|
207
|
+
|
|
208
|
+
# **getGetAdminEditableOrder**
|
|
209
|
+
> AdminOrderRequestDTO getGetAdminEditableOrder()
|
|
210
|
+
|
|
211
|
+
Get Editable Order (Admin)
|
|
212
|
+
|
|
213
|
+
### Example
|
|
214
|
+
|
|
215
|
+
```typescript
|
|
216
|
+
import {
|
|
217
|
+
OrdersApi,
|
|
218
|
+
Configuration
|
|
219
|
+
} from 'yellowgrid-api-ts';
|
|
220
|
+
|
|
221
|
+
const configuration = new Configuration();
|
|
222
|
+
const apiInstance = new OrdersApi(configuration);
|
|
223
|
+
|
|
224
|
+
let id: number; //Order ID (default to undefined)
|
|
225
|
+
|
|
226
|
+
const { status, data } = await apiInstance.getGetAdminEditableOrder(
|
|
227
|
+
id
|
|
228
|
+
);
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Parameters
|
|
232
|
+
|
|
233
|
+
|Name | Type | Description | Notes|
|
|
234
|
+
|------------- | ------------- | ------------- | -------------|
|
|
235
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### Return type
|
|
239
|
+
|
|
240
|
+
**AdminOrderRequestDTO**
|
|
241
|
+
|
|
242
|
+
### Authorization
|
|
243
|
+
|
|
244
|
+
No authorization required
|
|
245
|
+
|
|
246
|
+
### HTTP request headers
|
|
247
|
+
|
|
248
|
+
- **Content-Type**: Not defined
|
|
249
|
+
- **Accept**: application/json
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
### HTTP response details
|
|
253
|
+
| Status code | Description | Response headers |
|
|
254
|
+
|-------------|-------------|------------------|
|
|
255
|
+
|**200** | Order Request | - |
|
|
256
|
+
|**400** | Bad Request | - |
|
|
257
|
+
|**401** | Unauthorised | - |
|
|
258
|
+
|**403** | Access Denied | - |
|
|
259
|
+
|
|
260
|
+
[[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)
|
|
261
|
+
|
|
262
|
+
# **getGetAdminOrderDetails**
|
|
263
|
+
> OrderDetailsDTO getGetAdminOrderDetails()
|
|
264
|
+
|
|
265
|
+
Get Order Details (Admin)
|
|
266
|
+
|
|
267
|
+
### Example
|
|
268
|
+
|
|
269
|
+
```typescript
|
|
270
|
+
import {
|
|
271
|
+
OrdersApi,
|
|
272
|
+
Configuration
|
|
273
|
+
} from 'yellowgrid-api-ts';
|
|
274
|
+
|
|
275
|
+
const configuration = new Configuration();
|
|
276
|
+
const apiInstance = new OrdersApi(configuration);
|
|
277
|
+
|
|
278
|
+
let id: number; //Order ID (default to undefined)
|
|
279
|
+
|
|
280
|
+
const { status, data } = await apiInstance.getGetAdminOrderDetails(
|
|
281
|
+
id
|
|
282
|
+
);
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Parameters
|
|
286
|
+
|
|
287
|
+
|Name | Type | Description | Notes|
|
|
288
|
+
|------------- | ------------- | ------------- | -------------|
|
|
289
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
### Return type
|
|
293
|
+
|
|
294
|
+
**OrderDetailsDTO**
|
|
295
|
+
|
|
296
|
+
### Authorization
|
|
297
|
+
|
|
298
|
+
No authorization required
|
|
299
|
+
|
|
300
|
+
### HTTP request headers
|
|
301
|
+
|
|
302
|
+
- **Content-Type**: Not defined
|
|
303
|
+
- **Accept**: application/json
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### HTTP response details
|
|
307
|
+
| Status code | Description | Response headers |
|
|
308
|
+
|-------------|-------------|------------------|
|
|
309
|
+
|**200** | Order Details | - |
|
|
310
|
+
|**400** | Bad Request | - |
|
|
311
|
+
|**401** | Unauthorised | - |
|
|
312
|
+
|**403** | Access Denied | - |
|
|
313
|
+
|
|
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)
|
|
315
|
+
|
|
316
|
+
# **getGetCommercialInvoice**
|
|
317
|
+
> File getGetCommercialInvoice()
|
|
318
|
+
|
|
319
|
+
Get Commercial Invoice PDF
|
|
320
|
+
|
|
321
|
+
### Example
|
|
322
|
+
|
|
323
|
+
```typescript
|
|
324
|
+
import {
|
|
325
|
+
OrdersApi,
|
|
326
|
+
Configuration
|
|
327
|
+
} from 'yellowgrid-api-ts';
|
|
328
|
+
|
|
329
|
+
const configuration = new Configuration();
|
|
330
|
+
const apiInstance = new OrdersApi(configuration);
|
|
331
|
+
|
|
332
|
+
let id: number; //Order ID (default to undefined)
|
|
333
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
334
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
335
|
+
|
|
336
|
+
const { status, data } = await apiInstance.getGetCommercialInvoice(
|
|
337
|
+
id,
|
|
338
|
+
batchId,
|
|
339
|
+
shipmentId
|
|
340
|
+
);
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Parameters
|
|
344
|
+
|
|
345
|
+
|Name | Type | Description | Notes|
|
|
346
|
+
|------------- | ------------- | ------------- | -------------|
|
|
347
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
348
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
349
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
### Return type
|
|
353
|
+
|
|
354
|
+
**File**
|
|
355
|
+
|
|
356
|
+
### Authorization
|
|
357
|
+
|
|
358
|
+
No authorization required
|
|
359
|
+
|
|
360
|
+
### HTTP request headers
|
|
361
|
+
|
|
362
|
+
- **Content-Type**: Not defined
|
|
363
|
+
- **Accept**: application/pdf
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
### HTTP response details
|
|
367
|
+
| Status code | Description | Response headers |
|
|
368
|
+
|-------------|-------------|------------------|
|
|
369
|
+
|**200** | Order PDF | - |
|
|
370
|
+
|**400** | Bad Request | - |
|
|
371
|
+
|**401** | Unauthorised | - |
|
|
372
|
+
|**403** | Access Denied | - |
|
|
373
|
+
|
|
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)
|
|
375
|
+
|
|
376
|
+
# **getGetEditableOrder**
|
|
377
|
+
> DetailedOrderRequestDTO getGetEditableOrder()
|
|
378
|
+
|
|
379
|
+
Get Editable Order (Beta)
|
|
380
|
+
|
|
381
|
+
### Example
|
|
382
|
+
|
|
383
|
+
```typescript
|
|
384
|
+
import {
|
|
385
|
+
OrdersApi,
|
|
386
|
+
Configuration
|
|
387
|
+
} from 'yellowgrid-api-ts';
|
|
388
|
+
|
|
389
|
+
const configuration = new Configuration();
|
|
390
|
+
const apiInstance = new OrdersApi(configuration);
|
|
391
|
+
|
|
392
|
+
let id: number; //Order ID (default to undefined)
|
|
393
|
+
|
|
394
|
+
const { status, data } = await apiInstance.getGetEditableOrder(
|
|
395
|
+
id
|
|
396
|
+
);
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
### Parameters
|
|
400
|
+
|
|
401
|
+
|Name | Type | Description | Notes|
|
|
402
|
+
|------------- | ------------- | ------------- | -------------|
|
|
403
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
### Return type
|
|
407
|
+
|
|
408
|
+
**DetailedOrderRequestDTO**
|
|
409
|
+
|
|
410
|
+
### Authorization
|
|
411
|
+
|
|
412
|
+
No authorization required
|
|
413
|
+
|
|
414
|
+
### HTTP request headers
|
|
415
|
+
|
|
416
|
+
- **Content-Type**: Not defined
|
|
417
|
+
- **Accept**: application/json
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
### HTTP response details
|
|
421
|
+
| Status code | Description | Response headers |
|
|
422
|
+
|-------------|-------------|------------------|
|
|
423
|
+
|**200** | Order Request | - |
|
|
424
|
+
|**400** | Bad Request | - |
|
|
425
|
+
|**401** | Unauthorised | - |
|
|
426
|
+
|**403** | Access Denied | - |
|
|
427
|
+
|
|
428
|
+
[[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)
|
|
429
|
+
|
|
430
|
+
# **getGetItemSerialInfo**
|
|
431
|
+
> ProductSerialInfoModel getGetItemSerialInfo()
|
|
432
|
+
|
|
433
|
+
Get Item Serial Info (Admin)
|
|
434
|
+
|
|
435
|
+
### Example
|
|
436
|
+
|
|
437
|
+
```typescript
|
|
438
|
+
import {
|
|
439
|
+
OrdersApi,
|
|
440
|
+
Configuration
|
|
441
|
+
} from 'yellowgrid-api-ts';
|
|
442
|
+
|
|
443
|
+
const configuration = new Configuration();
|
|
444
|
+
const apiInstance = new OrdersApi(configuration);
|
|
445
|
+
|
|
446
|
+
let id: number; //Order ID (default to undefined)
|
|
447
|
+
let itemId: number; //Shipment Item ID (default to undefined)
|
|
448
|
+
|
|
449
|
+
const { status, data } = await apiInstance.getGetItemSerialInfo(
|
|
450
|
+
id,
|
|
451
|
+
itemId
|
|
452
|
+
);
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
### Parameters
|
|
456
|
+
|
|
457
|
+
|Name | Type | Description | Notes|
|
|
458
|
+
|------------- | ------------- | ------------- | -------------|
|
|
459
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
460
|
+
| **itemId** | [**number**] | Shipment Item ID | defaults to undefined|
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
### Return type
|
|
464
|
+
|
|
465
|
+
**ProductSerialInfoModel**
|
|
466
|
+
|
|
467
|
+
### Authorization
|
|
468
|
+
|
|
469
|
+
No authorization required
|
|
470
|
+
|
|
471
|
+
### HTTP request headers
|
|
472
|
+
|
|
473
|
+
- **Content-Type**: Not defined
|
|
474
|
+
- **Accept**: application/json
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
### HTTP response details
|
|
478
|
+
| Status code | Description | Response headers |
|
|
479
|
+
|-------------|-------------|------------------|
|
|
480
|
+
|**200** | Serial Info | - |
|
|
481
|
+
|**400** | Bad Request | - |
|
|
482
|
+
|**401** | Unauthorised | - |
|
|
483
|
+
|**403** | Access Denied | - |
|
|
484
|
+
|
|
485
|
+
[[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)
|
|
486
|
+
|
|
487
|
+
# **getGetOrderPdf**
|
|
488
|
+
> File getGetOrderPdf()
|
|
489
|
+
|
|
490
|
+
Download Order PDF
|
|
491
|
+
|
|
492
|
+
### Example
|
|
493
|
+
|
|
494
|
+
```typescript
|
|
495
|
+
import {
|
|
496
|
+
OrdersApi,
|
|
497
|
+
Configuration
|
|
498
|
+
} from 'yellowgrid-api-ts';
|
|
499
|
+
|
|
500
|
+
const configuration = new Configuration();
|
|
501
|
+
const apiInstance = new OrdersApi(configuration);
|
|
502
|
+
|
|
503
|
+
let id: number; //Order ID (default to undefined)
|
|
504
|
+
|
|
505
|
+
const { status, data } = await apiInstance.getGetOrderPdf(
|
|
506
|
+
id
|
|
507
|
+
);
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
### Parameters
|
|
511
|
+
|
|
512
|
+
|Name | Type | Description | Notes|
|
|
513
|
+
|------------- | ------------- | ------------- | -------------|
|
|
514
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
### Return type
|
|
518
|
+
|
|
519
|
+
**File**
|
|
520
|
+
|
|
521
|
+
### Authorization
|
|
522
|
+
|
|
523
|
+
No authorization required
|
|
524
|
+
|
|
525
|
+
### HTTP request headers
|
|
526
|
+
|
|
527
|
+
- **Content-Type**: Not defined
|
|
528
|
+
- **Accept**: application/pdf
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
### HTTP response details
|
|
532
|
+
| Status code | Description | Response headers |
|
|
533
|
+
|-------------|-------------|------------------|
|
|
534
|
+
|**200** | Order PDF | - |
|
|
535
|
+
|**400** | Bad Request | - |
|
|
536
|
+
|**401** | Unauthorised | - |
|
|
537
|
+
|**403** | Access Denied | - |
|
|
538
|
+
|
|
539
|
+
[[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)
|
|
540
|
+
|
|
541
|
+
# **getGetOrderSummary**
|
|
542
|
+
> OrderSummaryDTO getGetOrderSummary()
|
|
543
|
+
|
|
544
|
+
Get Order Summary (Admin)
|
|
545
|
+
|
|
546
|
+
### Example
|
|
547
|
+
|
|
548
|
+
```typescript
|
|
549
|
+
import {
|
|
550
|
+
OrdersApi,
|
|
551
|
+
Configuration
|
|
552
|
+
} from 'yellowgrid-api-ts';
|
|
553
|
+
|
|
554
|
+
const configuration = new Configuration();
|
|
555
|
+
const apiInstance = new OrdersApi(configuration);
|
|
556
|
+
|
|
557
|
+
let id: number; //Order ID (default to undefined)
|
|
558
|
+
|
|
559
|
+
const { status, data } = await apiInstance.getGetOrderSummary(
|
|
560
|
+
id
|
|
561
|
+
);
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
### Parameters
|
|
565
|
+
|
|
566
|
+
|Name | Type | Description | Notes|
|
|
567
|
+
|------------- | ------------- | ------------- | -------------|
|
|
568
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
### Return type
|
|
572
|
+
|
|
573
|
+
**OrderSummaryDTO**
|
|
574
|
+
|
|
575
|
+
### Authorization
|
|
576
|
+
|
|
577
|
+
No authorization required
|
|
578
|
+
|
|
579
|
+
### HTTP request headers
|
|
580
|
+
|
|
581
|
+
- **Content-Type**: Not defined
|
|
582
|
+
- **Accept**: application/json
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
### HTTP response details
|
|
586
|
+
| Status code | Description | Response headers |
|
|
587
|
+
|-------------|-------------|------------------|
|
|
588
|
+
|**200** | Order Summary | - |
|
|
589
|
+
|**400** | Bad Request | - |
|
|
590
|
+
|**401** | Unauthorised | - |
|
|
591
|
+
|**403** | Access Denied | - |
|
|
592
|
+
|
|
593
|
+
[[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)
|
|
594
|
+
|
|
595
|
+
# **getGetOrders**
|
|
596
|
+
> OrderSummariesModel getGetOrders()
|
|
597
|
+
|
|
598
|
+
Get Orders (Beta)
|
|
599
|
+
|
|
600
|
+
### Example
|
|
601
|
+
|
|
602
|
+
```typescript
|
|
603
|
+
import {
|
|
604
|
+
OrdersApi,
|
|
605
|
+
Configuration
|
|
606
|
+
} from 'yellowgrid-api-ts';
|
|
607
|
+
|
|
608
|
+
const configuration = new Configuration();
|
|
609
|
+
const apiInstance = new OrdersApi(configuration);
|
|
610
|
+
|
|
611
|
+
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
612
|
+
let page: number; //Page Number (optional) (default to 1)
|
|
613
|
+
let search: string; //Search (optional) (default to undefined)
|
|
614
|
+
let fulfillable: boolean; //Fulfillable (optional) (default to undefined)
|
|
615
|
+
let status: 'PAID' | 'INVOICE_PAID' | 'UNPAID' | 'QUOTE'; //Status (optional) (default to undefined)
|
|
616
|
+
let filter: 'OUTSTANDING' | 'QUOTES' | 'ALL' | 'BACK_ORDERS'; //Filter (optional) (default to undefined)
|
|
617
|
+
let customerId: number; //Customer ID (optional) (default to undefined)
|
|
618
|
+
|
|
619
|
+
const { status, data } = await apiInstance.getGetOrders(
|
|
620
|
+
pageSize,
|
|
621
|
+
page,
|
|
622
|
+
search,
|
|
623
|
+
fulfillable,
|
|
624
|
+
status,
|
|
625
|
+
filter,
|
|
626
|
+
customerId
|
|
627
|
+
);
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
### Parameters
|
|
631
|
+
|
|
632
|
+
|Name | Type | Description | Notes|
|
|
633
|
+
|------------- | ------------- | ------------- | -------------|
|
|
634
|
+
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
635
|
+
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
636
|
+
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
637
|
+
| **fulfillable** | [**boolean**] | Fulfillable | (optional) defaults to undefined|
|
|
638
|
+
| **status** | [**'PAID' | 'INVOICE_PAID' | 'UNPAID' | 'QUOTE'**]**Array<'PAID' | 'INVOICE_PAID' | 'UNPAID' | 'QUOTE'>** | Status | (optional) defaults to undefined|
|
|
639
|
+
| **filter** | [**'OUTSTANDING' | 'QUOTES' | 'ALL' | 'BACK_ORDERS'**]**Array<'OUTSTANDING' | 'QUOTES' | 'ALL' | 'BACK_ORDERS'>** | Filter | (optional) defaults to undefined|
|
|
640
|
+
| **customerId** | [**number**] | Customer ID | (optional) defaults to undefined|
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
### Return type
|
|
644
|
+
|
|
645
|
+
**OrderSummariesModel**
|
|
646
|
+
|
|
647
|
+
### Authorization
|
|
648
|
+
|
|
649
|
+
No authorization required
|
|
650
|
+
|
|
651
|
+
### HTTP request headers
|
|
652
|
+
|
|
653
|
+
- **Content-Type**: Not defined
|
|
654
|
+
- **Accept**: application/json
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
### HTTP response details
|
|
658
|
+
| Status code | Description | Response headers |
|
|
659
|
+
|-------------|-------------|------------------|
|
|
660
|
+
|**200** | Order Summaries | - |
|
|
661
|
+
|**400** | Bad Request | - |
|
|
662
|
+
|**401** | Unauthorised | - |
|
|
663
|
+
|**403** | Access Denied | - |
|
|
664
|
+
|
|
665
|
+
[[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)
|
|
666
|
+
|
|
667
|
+
# **patchCompleteOrder**
|
|
668
|
+
> OrderDetailsDTO patchCompleteOrder()
|
|
669
|
+
|
|
670
|
+
Mark Order As Complete (Admin)
|
|
671
|
+
|
|
672
|
+
### Example
|
|
673
|
+
|
|
674
|
+
```typescript
|
|
675
|
+
import {
|
|
676
|
+
OrdersApi,
|
|
677
|
+
Configuration
|
|
678
|
+
} from 'yellowgrid-api-ts';
|
|
679
|
+
|
|
680
|
+
const configuration = new Configuration();
|
|
681
|
+
const apiInstance = new OrdersApi(configuration);
|
|
682
|
+
|
|
683
|
+
let id: number; //Order ID (default to undefined)
|
|
684
|
+
|
|
685
|
+
const { status, data } = await apiInstance.patchCompleteOrder(
|
|
686
|
+
id
|
|
687
|
+
);
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
### Parameters
|
|
691
|
+
|
|
692
|
+
|Name | Type | Description | Notes|
|
|
693
|
+
|------------- | ------------- | ------------- | -------------|
|
|
694
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
### Return type
|
|
698
|
+
|
|
699
|
+
**OrderDetailsDTO**
|
|
700
|
+
|
|
701
|
+
### Authorization
|
|
702
|
+
|
|
703
|
+
No authorization required
|
|
704
|
+
|
|
705
|
+
### HTTP request headers
|
|
706
|
+
|
|
707
|
+
- **Content-Type**: Not defined
|
|
708
|
+
- **Accept**: application/json
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
### HTTP response details
|
|
712
|
+
| Status code | Description | Response headers |
|
|
713
|
+
|-------------|-------------|------------------|
|
|
714
|
+
|**200** | Order Details | - |
|
|
715
|
+
|**400** | Bad Request | - |
|
|
716
|
+
|**401** | Unauthorised | - |
|
|
717
|
+
|**403** | Access Denied | - |
|
|
718
|
+
|
|
719
|
+
[[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)
|
|
720
|
+
|
|
721
|
+
# **postAddOrderNote**
|
|
722
|
+
> AuditLogEntity postAddOrderNote()
|
|
723
|
+
|
|
724
|
+
Add Order Note
|
|
725
|
+
|
|
726
|
+
### Example
|
|
727
|
+
|
|
728
|
+
```typescript
|
|
729
|
+
import {
|
|
730
|
+
OrdersApi,
|
|
731
|
+
Configuration,
|
|
732
|
+
PostAddOrderNoteRequest
|
|
733
|
+
} from 'yellowgrid-api-ts';
|
|
734
|
+
|
|
735
|
+
const configuration = new Configuration();
|
|
736
|
+
const apiInstance = new OrdersApi(configuration);
|
|
737
|
+
|
|
738
|
+
let id: number; //Order ID (default to undefined)
|
|
739
|
+
let postAddOrderNoteRequest: PostAddOrderNoteRequest; // (optional)
|
|
740
|
+
|
|
741
|
+
const { status, data } = await apiInstance.postAddOrderNote(
|
|
742
|
+
id,
|
|
743
|
+
postAddOrderNoteRequest
|
|
744
|
+
);
|
|
745
|
+
```
|
|
746
|
+
|
|
747
|
+
### Parameters
|
|
748
|
+
|
|
749
|
+
|Name | Type | Description | Notes|
|
|
750
|
+
|------------- | ------------- | ------------- | -------------|
|
|
751
|
+
| **postAddOrderNoteRequest** | **PostAddOrderNoteRequest**| | |
|
|
752
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
### Return type
|
|
756
|
+
|
|
757
|
+
**AuditLogEntity**
|
|
758
|
+
|
|
759
|
+
### Authorization
|
|
760
|
+
|
|
761
|
+
No authorization required
|
|
762
|
+
|
|
763
|
+
### HTTP request headers
|
|
764
|
+
|
|
765
|
+
- **Content-Type**: application/json
|
|
766
|
+
- **Accept**: application/json
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
### HTTP response details
|
|
770
|
+
| Status code | Description | Response headers |
|
|
771
|
+
|-------------|-------------|------------------|
|
|
772
|
+
|**200** | Audit Log Entry | - |
|
|
773
|
+
|**400** | Bad Request | - |
|
|
774
|
+
|**401** | Unauthorised | - |
|
|
775
|
+
|**403** | Access Denied | - |
|
|
776
|
+
|
|
777
|
+
[[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)
|
|
778
|
+
|
|
779
|
+
# **postCreateAdminOrder**
|
|
780
|
+
> Array<OrderSummaryDTO> postCreateAdminOrder()
|
|
781
|
+
|
|
782
|
+
Create An Order (Admin)
|
|
783
|
+
|
|
784
|
+
### Example
|
|
785
|
+
|
|
786
|
+
```typescript
|
|
787
|
+
import {
|
|
788
|
+
OrdersApi,
|
|
789
|
+
Configuration,
|
|
790
|
+
AdminOrderRequestDTO
|
|
791
|
+
} from 'yellowgrid-api-ts';
|
|
792
|
+
|
|
793
|
+
const configuration = new Configuration();
|
|
794
|
+
const apiInstance = new OrdersApi(configuration);
|
|
795
|
+
|
|
796
|
+
let readonly: boolean; //Readonly Order (optional) (default to undefined)
|
|
797
|
+
let adminOrderRequestDTO: AdminOrderRequestDTO; //Admin Order Request (optional)
|
|
798
|
+
|
|
799
|
+
const { status, data } = await apiInstance.postCreateAdminOrder(
|
|
800
|
+
readonly,
|
|
801
|
+
adminOrderRequestDTO
|
|
802
|
+
);
|
|
803
|
+
```
|
|
804
|
+
|
|
805
|
+
### Parameters
|
|
806
|
+
|
|
807
|
+
|Name | Type | Description | Notes|
|
|
808
|
+
|------------- | ------------- | ------------- | -------------|
|
|
809
|
+
| **adminOrderRequestDTO** | **AdminOrderRequestDTO**| Admin Order Request | |
|
|
810
|
+
| **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
### Return type
|
|
814
|
+
|
|
815
|
+
**Array<OrderSummaryDTO>**
|
|
816
|
+
|
|
817
|
+
### Authorization
|
|
818
|
+
|
|
819
|
+
No authorization required
|
|
820
|
+
|
|
821
|
+
### HTTP request headers
|
|
822
|
+
|
|
823
|
+
- **Content-Type**: application/json
|
|
824
|
+
- **Accept**: application/json
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
### HTTP response details
|
|
828
|
+
| Status code | Description | Response headers |
|
|
829
|
+
|-------------|-------------|------------------|
|
|
830
|
+
|**200** | Order Summaries | - |
|
|
831
|
+
|**400** | Bad Request | - |
|
|
832
|
+
|**401** | Unauthorised | - |
|
|
833
|
+
|**403** | Access Denied | - |
|
|
834
|
+
|
|
835
|
+
[[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)
|
|
836
|
+
|
|
837
|
+
# **postCreateConsignment**
|
|
838
|
+
> ShipmentDTO postCreateConsignment()
|
|
839
|
+
|
|
840
|
+
Create Shipping Consignment
|
|
841
|
+
|
|
842
|
+
### Example
|
|
843
|
+
|
|
844
|
+
```typescript
|
|
845
|
+
import {
|
|
846
|
+
OrdersApi,
|
|
847
|
+
Configuration,
|
|
848
|
+
ShippingRequestDTO
|
|
849
|
+
} from 'yellowgrid-api-ts';
|
|
850
|
+
|
|
851
|
+
const configuration = new Configuration();
|
|
852
|
+
const apiInstance = new OrdersApi(configuration);
|
|
853
|
+
|
|
854
|
+
let id: number; //Order ID (default to undefined)
|
|
855
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
856
|
+
let shippingRequestDTO: ShippingRequestDTO; //Shipping Request (optional)
|
|
857
|
+
|
|
858
|
+
const { status, data } = await apiInstance.postCreateConsignment(
|
|
859
|
+
id,
|
|
860
|
+
shipmentId,
|
|
861
|
+
shippingRequestDTO
|
|
862
|
+
);
|
|
863
|
+
```
|
|
864
|
+
|
|
865
|
+
### Parameters
|
|
866
|
+
|
|
867
|
+
|Name | Type | Description | Notes|
|
|
868
|
+
|------------- | ------------- | ------------- | -------------|
|
|
869
|
+
| **shippingRequestDTO** | **ShippingRequestDTO**| Shipping Request | |
|
|
870
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
871
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
### Return type
|
|
875
|
+
|
|
876
|
+
**ShipmentDTO**
|
|
877
|
+
|
|
878
|
+
### Authorization
|
|
879
|
+
|
|
880
|
+
No authorization required
|
|
881
|
+
|
|
882
|
+
### HTTP request headers
|
|
883
|
+
|
|
884
|
+
- **Content-Type**: application/json
|
|
885
|
+
- **Accept**: application/json
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
### HTTP response details
|
|
889
|
+
| Status code | Description | Response headers |
|
|
890
|
+
|-------------|-------------|------------------|
|
|
891
|
+
|**200** | Shipping Information | - |
|
|
892
|
+
|**400** | Bad Request | - |
|
|
893
|
+
|**401** | Unauthorised | - |
|
|
894
|
+
|**403** | Access Denied | - |
|
|
895
|
+
|
|
896
|
+
[[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)
|
|
897
|
+
|
|
898
|
+
# **postCreateShipment**
|
|
899
|
+
> ShipmentDTO postCreateShipment()
|
|
900
|
+
|
|
901
|
+
Create Shipment (Admin)
|
|
902
|
+
|
|
903
|
+
### Example
|
|
904
|
+
|
|
905
|
+
```typescript
|
|
906
|
+
import {
|
|
907
|
+
OrdersApi,
|
|
908
|
+
Configuration,
|
|
909
|
+
ShipmentRequestDTO
|
|
910
|
+
} from 'yellowgrid-api-ts';
|
|
911
|
+
|
|
912
|
+
const configuration = new Configuration();
|
|
913
|
+
const apiInstance = new OrdersApi(configuration);
|
|
914
|
+
|
|
915
|
+
let id: number; //Order ID (default to undefined)
|
|
916
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
917
|
+
let shipmentRequestDTO: ShipmentRequestDTO; //Shipment Request (optional)
|
|
918
|
+
|
|
919
|
+
const { status, data } = await apiInstance.postCreateShipment(
|
|
920
|
+
id,
|
|
921
|
+
batchId,
|
|
922
|
+
shipmentRequestDTO
|
|
923
|
+
);
|
|
924
|
+
```
|
|
925
|
+
|
|
926
|
+
### Parameters
|
|
927
|
+
|
|
928
|
+
|Name | Type | Description | Notes|
|
|
929
|
+
|------------- | ------------- | ------------- | -------------|
|
|
930
|
+
| **shipmentRequestDTO** | **ShipmentRequestDTO**| Shipment Request | |
|
|
931
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
932
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
### Return type
|
|
936
|
+
|
|
937
|
+
**ShipmentDTO**
|
|
938
|
+
|
|
939
|
+
### Authorization
|
|
940
|
+
|
|
941
|
+
No authorization required
|
|
942
|
+
|
|
943
|
+
### HTTP request headers
|
|
944
|
+
|
|
945
|
+
- **Content-Type**: application/json
|
|
946
|
+
- **Accept**: application/json
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
### HTTP response details
|
|
950
|
+
| Status code | Description | Response headers |
|
|
951
|
+
|-------------|-------------|------------------|
|
|
952
|
+
|**200** | Shipment | - |
|
|
953
|
+
|**400** | Bad Request | - |
|
|
954
|
+
|**401** | Unauthorised | - |
|
|
955
|
+
|**403** | Access Denied | - |
|
|
956
|
+
|
|
957
|
+
[[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)
|
|
958
|
+
|
|
959
|
+
# **postGetOrders**
|
|
960
|
+
> Array<OrderSummaryDTO> postGetOrders()
|
|
961
|
+
|
|
962
|
+
Create An Order (Beta)
|
|
963
|
+
|
|
964
|
+
### Example
|
|
965
|
+
|
|
966
|
+
```typescript
|
|
967
|
+
import {
|
|
968
|
+
OrdersApi,
|
|
969
|
+
Configuration,
|
|
970
|
+
CustomerOrderRequestDTO
|
|
971
|
+
} from 'yellowgrid-api-ts';
|
|
972
|
+
|
|
973
|
+
const configuration = new Configuration();
|
|
974
|
+
const apiInstance = new OrdersApi(configuration);
|
|
975
|
+
|
|
976
|
+
let readonly: boolean; //Readonly Order (optional) (default to undefined)
|
|
977
|
+
let customerOrderRequestDTO: CustomerOrderRequestDTO; //Order Request (optional)
|
|
978
|
+
|
|
979
|
+
const { status, data } = await apiInstance.postGetOrders(
|
|
980
|
+
readonly,
|
|
981
|
+
customerOrderRequestDTO
|
|
982
|
+
);
|
|
983
|
+
```
|
|
984
|
+
|
|
985
|
+
### Parameters
|
|
986
|
+
|
|
987
|
+
|Name | Type | Description | Notes|
|
|
988
|
+
|------------- | ------------- | ------------- | -------------|
|
|
989
|
+
| **customerOrderRequestDTO** | **CustomerOrderRequestDTO**| Order Request | |
|
|
990
|
+
| **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
### Return type
|
|
994
|
+
|
|
995
|
+
**Array<OrderSummaryDTO>**
|
|
996
|
+
|
|
997
|
+
### Authorization
|
|
998
|
+
|
|
999
|
+
No authorization required
|
|
1000
|
+
|
|
1001
|
+
### HTTP request headers
|
|
1002
|
+
|
|
1003
|
+
- **Content-Type**: application/json
|
|
1004
|
+
- **Accept**: application/json
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
### HTTP response details
|
|
1008
|
+
| Status code | Description | Response headers |
|
|
1009
|
+
|-------------|-------------|------------------|
|
|
1010
|
+
|**200** | Order Summaries | - |
|
|
1011
|
+
|**400** | Bad Request | - |
|
|
1012
|
+
|**401** | Unauthorised | - |
|
|
1013
|
+
|**403** | Access Denied | - |
|
|
1014
|
+
|
|
1015
|
+
[[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)
|
|
1016
|
+
|
|
1017
|
+
# **postIssueCredit**
|
|
1018
|
+
> CreditNoteModel postIssueCredit()
|
|
1019
|
+
|
|
1020
|
+
Issue Credit (Admin)
|
|
1021
|
+
|
|
1022
|
+
### Example
|
|
1023
|
+
|
|
1024
|
+
```typescript
|
|
1025
|
+
import {
|
|
1026
|
+
OrdersApi,
|
|
1027
|
+
Configuration,
|
|
1028
|
+
CreditNoteDTO
|
|
1029
|
+
} from 'yellowgrid-api-ts';
|
|
1030
|
+
|
|
1031
|
+
const configuration = new Configuration();
|
|
1032
|
+
const apiInstance = new OrdersApi(configuration);
|
|
1033
|
+
|
|
1034
|
+
let id: number; //Order ID (default to undefined)
|
|
1035
|
+
let creditNoteDTO: CreditNoteDTO; //Credit Request (optional)
|
|
1036
|
+
|
|
1037
|
+
const { status, data } = await apiInstance.postIssueCredit(
|
|
1038
|
+
id,
|
|
1039
|
+
creditNoteDTO
|
|
1040
|
+
);
|
|
1041
|
+
```
|
|
1042
|
+
|
|
1043
|
+
### Parameters
|
|
1044
|
+
|
|
1045
|
+
|Name | Type | Description | Notes|
|
|
1046
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1047
|
+
| **creditNoteDTO** | **CreditNoteDTO**| Credit Request | |
|
|
1048
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
### Return type
|
|
1052
|
+
|
|
1053
|
+
**CreditNoteModel**
|
|
1054
|
+
|
|
1055
|
+
### Authorization
|
|
1056
|
+
|
|
1057
|
+
No authorization required
|
|
1058
|
+
|
|
1059
|
+
### HTTP request headers
|
|
1060
|
+
|
|
1061
|
+
- **Content-Type**: application/json
|
|
1062
|
+
- **Accept**: application/json
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
### HTTP response details
|
|
1066
|
+
| Status code | Description | Response headers |
|
|
1067
|
+
|-------------|-------------|------------------|
|
|
1068
|
+
|**200** | Credit Note | - |
|
|
1069
|
+
|**400** | Bad Request | - |
|
|
1070
|
+
|**401** | Unauthorised | - |
|
|
1071
|
+
|**403** | Access Denied | - |
|
|
1072
|
+
|
|
1073
|
+
[[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)
|
|
1074
|
+
|
|
1075
|
+
# **postPrintShippingLabel**
|
|
1076
|
+
> File postPrintShippingLabel()
|
|
1077
|
+
|
|
1078
|
+
Print Shipment Label
|
|
20
1079
|
|
|
21
1080
|
### Example
|
|
22
1081
|
|
|
@@ -30,9 +1089,13 @@ const configuration = new Configuration();
|
|
|
30
1089
|
const apiInstance = new OrdersApi(configuration);
|
|
31
1090
|
|
|
32
1091
|
let id: number; //Order ID (default to undefined)
|
|
1092
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
1093
|
+
let printer: 1 | 2 | 3; //Printer (default to undefined)
|
|
33
1094
|
|
|
34
|
-
const { status, data } = await apiInstance.
|
|
35
|
-
id
|
|
1095
|
+
const { status, data } = await apiInstance.postPrintShippingLabel(
|
|
1096
|
+
id,
|
|
1097
|
+
shipmentId,
|
|
1098
|
+
printer
|
|
36
1099
|
);
|
|
37
1100
|
```
|
|
38
1101
|
|
|
@@ -41,11 +1104,13 @@ const { status, data } = await apiInstance.deleteUpdateOrder(
|
|
|
41
1104
|
|Name | Type | Description | Notes|
|
|
42
1105
|
|------------- | ------------- | ------------- | -------------|
|
|
43
1106
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1107
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
1108
|
+
| **printer** | [**1 | 2 | 3**]**Array<1 | 2 | 3>** | Printer | defaults to undefined|
|
|
44
1109
|
|
|
45
1110
|
|
|
46
1111
|
### Return type
|
|
47
1112
|
|
|
48
|
-
|
|
1113
|
+
**File**
|
|
49
1114
|
|
|
50
1115
|
### Authorization
|
|
51
1116
|
|
|
@@ -54,23 +1119,24 @@ No authorization required
|
|
|
54
1119
|
### HTTP request headers
|
|
55
1120
|
|
|
56
1121
|
- **Content-Type**: Not defined
|
|
57
|
-
- **Accept**:
|
|
1122
|
+
- **Accept**: text/html
|
|
58
1123
|
|
|
59
1124
|
|
|
60
1125
|
### HTTP response details
|
|
61
1126
|
| Status code | Description | Response headers |
|
|
62
1127
|
|-------------|-------------|------------------|
|
|
63
|
-
|**200** |
|
|
1128
|
+
|**200** | Shipping Label | - |
|
|
1129
|
+
|**204** | No Response | - |
|
|
64
1130
|
|**400** | Bad Request | - |
|
|
65
1131
|
|**401** | Unauthorised | - |
|
|
66
1132
|
|**403** | Access Denied | - |
|
|
67
1133
|
|
|
68
1134
|
[[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)
|
|
69
1135
|
|
|
70
|
-
# **
|
|
71
|
-
>
|
|
1136
|
+
# **postSendOrderEmail**
|
|
1137
|
+
> postSendOrderEmail()
|
|
72
1138
|
|
|
73
|
-
|
|
1139
|
+
Send Order Email
|
|
74
1140
|
|
|
75
1141
|
### Example
|
|
76
1142
|
|
|
@@ -84,9 +1150,11 @@ const configuration = new Configuration();
|
|
|
84
1150
|
const apiInstance = new OrdersApi(configuration);
|
|
85
1151
|
|
|
86
1152
|
let id: number; //Order ID (default to undefined)
|
|
1153
|
+
let email: string; //Email Address (default to undefined)
|
|
87
1154
|
|
|
88
|
-
const { status, data } = await apiInstance.
|
|
89
|
-
id
|
|
1155
|
+
const { status, data } = await apiInstance.postSendOrderEmail(
|
|
1156
|
+
id,
|
|
1157
|
+
email
|
|
90
1158
|
);
|
|
91
1159
|
```
|
|
92
1160
|
|
|
@@ -95,11 +1163,12 @@ const { status, data } = await apiInstance.getGetAdminEditableOrder(
|
|
|
95
1163
|
|Name | Type | Description | Notes|
|
|
96
1164
|
|------------- | ------------- | ------------- | -------------|
|
|
97
1165
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1166
|
+
| **email** | [**string**] | Email Address | defaults to undefined|
|
|
98
1167
|
|
|
99
1168
|
|
|
100
1169
|
### Return type
|
|
101
1170
|
|
|
102
|
-
|
|
1171
|
+
void (empty response body)
|
|
103
1172
|
|
|
104
1173
|
### Authorization
|
|
105
1174
|
|
|
@@ -108,23 +1177,23 @@ No authorization required
|
|
|
108
1177
|
### HTTP request headers
|
|
109
1178
|
|
|
110
1179
|
- **Content-Type**: Not defined
|
|
111
|
-
- **Accept**:
|
|
1180
|
+
- **Accept**: Not defined
|
|
112
1181
|
|
|
113
1182
|
|
|
114
1183
|
### HTTP response details
|
|
115
1184
|
| Status code | Description | Response headers |
|
|
116
1185
|
|-------------|-------------|------------------|
|
|
117
|
-
|**200** |
|
|
1186
|
+
|**200** | No Response | - |
|
|
118
1187
|
|**400** | Bad Request | - |
|
|
119
1188
|
|**401** | Unauthorised | - |
|
|
120
1189
|
|**403** | Access Denied | - |
|
|
121
1190
|
|
|
122
1191
|
[[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)
|
|
123
1192
|
|
|
124
|
-
# **
|
|
125
|
-
>
|
|
1193
|
+
# **postSendShipmentEmail**
|
|
1194
|
+
> postSendShipmentEmail()
|
|
126
1195
|
|
|
127
|
-
|
|
1196
|
+
Send Shipment Email (Admin)
|
|
128
1197
|
|
|
129
1198
|
### Example
|
|
130
1199
|
|
|
@@ -138,9 +1207,15 @@ const configuration = new Configuration();
|
|
|
138
1207
|
const apiInstance = new OrdersApi(configuration);
|
|
139
1208
|
|
|
140
1209
|
let id: number; //Order ID (default to undefined)
|
|
1210
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
1211
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
1212
|
+
let email: string; //Email Address (default to undefined)
|
|
141
1213
|
|
|
142
|
-
const { status, data } = await apiInstance.
|
|
143
|
-
id
|
|
1214
|
+
const { status, data } = await apiInstance.postSendShipmentEmail(
|
|
1215
|
+
id,
|
|
1216
|
+
batchId,
|
|
1217
|
+
shipmentId,
|
|
1218
|
+
email
|
|
144
1219
|
);
|
|
145
1220
|
```
|
|
146
1221
|
|
|
@@ -149,11 +1224,14 @@ const { status, data } = await apiInstance.getGetEditableOrder(
|
|
|
149
1224
|
|Name | Type | Description | Notes|
|
|
150
1225
|
|------------- | ------------- | ------------- | -------------|
|
|
151
1226
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1227
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
1228
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
1229
|
+
| **email** | [**string**] | Email Address | defaults to undefined|
|
|
152
1230
|
|
|
153
1231
|
|
|
154
1232
|
### Return type
|
|
155
1233
|
|
|
156
|
-
|
|
1234
|
+
void (empty response body)
|
|
157
1235
|
|
|
158
1236
|
### Authorization
|
|
159
1237
|
|
|
@@ -162,23 +1240,23 @@ No authorization required
|
|
|
162
1240
|
### HTTP request headers
|
|
163
1241
|
|
|
164
1242
|
- **Content-Type**: Not defined
|
|
165
|
-
- **Accept**:
|
|
1243
|
+
- **Accept**: Not defined
|
|
166
1244
|
|
|
167
1245
|
|
|
168
1246
|
### HTTP response details
|
|
169
1247
|
| Status code | Description | Response headers |
|
|
170
1248
|
|-------------|-------------|------------------|
|
|
171
|
-
|**200** |
|
|
1249
|
+
|**200** | No Response | - |
|
|
172
1250
|
|**400** | Bad Request | - |
|
|
173
1251
|
|**401** | Unauthorised | - |
|
|
174
1252
|
|**403** | Access Denied | - |
|
|
175
1253
|
|
|
176
1254
|
[[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)
|
|
177
1255
|
|
|
178
|
-
# **
|
|
179
|
-
>
|
|
1256
|
+
# **postSendSupplierEmail**
|
|
1257
|
+
> postSendSupplierEmail()
|
|
180
1258
|
|
|
181
|
-
|
|
1259
|
+
Send Supplier Email
|
|
182
1260
|
|
|
183
1261
|
### Example
|
|
184
1262
|
|
|
@@ -191,22 +1269,12 @@ import {
|
|
|
191
1269
|
const configuration = new Configuration();
|
|
192
1270
|
const apiInstance = new OrdersApi(configuration);
|
|
193
1271
|
|
|
194
|
-
let
|
|
195
|
-
let
|
|
196
|
-
let search: string; //Search (optional) (default to undefined)
|
|
197
|
-
let fulfillable: boolean; //Fulfillable (optional) (default to undefined)
|
|
198
|
-
let status: 'PAID' | 'INVOICE_PAID' | 'UNPAID' | 'QUOTE'; //Status (optional) (default to undefined)
|
|
199
|
-
let filter: 'OUTSTANDING' | 'QUOTES' | 'ALL' | 'BACK_ORDERS'; //Filter (optional) (default to undefined)
|
|
200
|
-
let customerId: number; //Customer ID (optional) (default to undefined)
|
|
1272
|
+
let id: number; //Order ID (default to undefined)
|
|
1273
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
201
1274
|
|
|
202
|
-
const { status, data } = await apiInstance.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
search,
|
|
206
|
-
fulfillable,
|
|
207
|
-
status,
|
|
208
|
-
filter,
|
|
209
|
-
customerId
|
|
1275
|
+
const { status, data } = await apiInstance.postSendSupplierEmail(
|
|
1276
|
+
id,
|
|
1277
|
+
batchId
|
|
210
1278
|
);
|
|
211
1279
|
```
|
|
212
1280
|
|
|
@@ -214,18 +1282,13 @@ const { status, data } = await apiInstance.getGetOrders(
|
|
|
214
1282
|
|
|
215
1283
|
|Name | Type | Description | Notes|
|
|
216
1284
|
|------------- | ------------- | ------------- | -------------|
|
|
217
|
-
| **
|
|
218
|
-
| **
|
|
219
|
-
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
220
|
-
| **fulfillable** | [**boolean**] | Fulfillable | (optional) defaults to undefined|
|
|
221
|
-
| **status** | [**'PAID' | 'INVOICE_PAID' | 'UNPAID' | 'QUOTE'**]**Array<'PAID' | 'INVOICE_PAID' | 'UNPAID' | 'QUOTE'>** | Status | (optional) defaults to undefined|
|
|
222
|
-
| **filter** | [**'OUTSTANDING' | 'QUOTES' | 'ALL' | 'BACK_ORDERS'**]**Array<'OUTSTANDING' | 'QUOTES' | 'ALL' | 'BACK_ORDERS'>** | Filter | (optional) defaults to undefined|
|
|
223
|
-
| **customerId** | [**number**] | Customer ID | (optional) defaults to undefined|
|
|
1285
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1286
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
224
1287
|
|
|
225
1288
|
|
|
226
1289
|
### Return type
|
|
227
1290
|
|
|
228
|
-
|
|
1291
|
+
void (empty response body)
|
|
229
1292
|
|
|
230
1293
|
### Authorization
|
|
231
1294
|
|
|
@@ -234,23 +1297,23 @@ No authorization required
|
|
|
234
1297
|
### HTTP request headers
|
|
235
1298
|
|
|
236
1299
|
- **Content-Type**: Not defined
|
|
237
|
-
- **Accept**:
|
|
1300
|
+
- **Accept**: Not defined
|
|
238
1301
|
|
|
239
1302
|
|
|
240
1303
|
### HTTP response details
|
|
241
1304
|
| Status code | Description | Response headers |
|
|
242
1305
|
|-------------|-------------|------------------|
|
|
243
|
-
|**200** |
|
|
1306
|
+
|**200** | No Response | - |
|
|
244
1307
|
|**400** | Bad Request | - |
|
|
245
1308
|
|**401** | Unauthorised | - |
|
|
246
1309
|
|**403** | Access Denied | - |
|
|
247
1310
|
|
|
248
1311
|
[[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)
|
|
249
1312
|
|
|
250
|
-
# **
|
|
251
|
-
> Array<OrderSummaryDTO>
|
|
1313
|
+
# **postSplitOrder**
|
|
1314
|
+
> Array<OrderSummaryDTO> postSplitOrder()
|
|
252
1315
|
|
|
253
|
-
|
|
1316
|
+
Split Order
|
|
254
1317
|
|
|
255
1318
|
### Example
|
|
256
1319
|
|
|
@@ -258,18 +1321,18 @@ Create An Order (Admin)
|
|
|
258
1321
|
import {
|
|
259
1322
|
OrdersApi,
|
|
260
1323
|
Configuration,
|
|
261
|
-
|
|
1324
|
+
PostSplitOrderRequest
|
|
262
1325
|
} from 'yellowgrid-api-ts';
|
|
263
1326
|
|
|
264
1327
|
const configuration = new Configuration();
|
|
265
1328
|
const apiInstance = new OrdersApi(configuration);
|
|
266
1329
|
|
|
267
|
-
let
|
|
268
|
-
let
|
|
1330
|
+
let id: number; //Order ID (default to undefined)
|
|
1331
|
+
let postSplitOrderRequest: PostSplitOrderRequest; // (optional)
|
|
269
1332
|
|
|
270
|
-
const { status, data } = await apiInstance.
|
|
271
|
-
|
|
272
|
-
|
|
1333
|
+
const { status, data } = await apiInstance.postSplitOrder(
|
|
1334
|
+
id,
|
|
1335
|
+
postSplitOrderRequest
|
|
273
1336
|
);
|
|
274
1337
|
```
|
|
275
1338
|
|
|
@@ -277,8 +1340,8 @@ const { status, data } = await apiInstance.postCreateAdminOrder(
|
|
|
277
1340
|
|
|
278
1341
|
|Name | Type | Description | Notes|
|
|
279
1342
|
|------------- | ------------- | ------------- | -------------|
|
|
280
|
-
| **
|
|
281
|
-
| **
|
|
1343
|
+
| **postSplitOrderRequest** | **PostSplitOrderRequest**| | |
|
|
1344
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
282
1345
|
|
|
283
1346
|
|
|
284
1347
|
### Return type
|
|
@@ -305,10 +1368,10 @@ No authorization required
|
|
|
305
1368
|
|
|
306
1369
|
[[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)
|
|
307
1370
|
|
|
308
|
-
# **
|
|
309
|
-
> Array<
|
|
1371
|
+
# **putAllocateItems**
|
|
1372
|
+
> Array<BatchDTO> putAllocateItems()
|
|
310
1373
|
|
|
311
|
-
|
|
1374
|
+
Allocate Items To Supplier
|
|
312
1375
|
|
|
313
1376
|
### Example
|
|
314
1377
|
|
|
@@ -316,18 +1379,20 @@ Create An Order (Beta)
|
|
|
316
1379
|
import {
|
|
317
1380
|
OrdersApi,
|
|
318
1381
|
Configuration,
|
|
319
|
-
|
|
1382
|
+
PutAllocateItemsRequest
|
|
320
1383
|
} from 'yellowgrid-api-ts';
|
|
321
1384
|
|
|
322
1385
|
const configuration = new Configuration();
|
|
323
1386
|
const apiInstance = new OrdersApi(configuration);
|
|
324
1387
|
|
|
325
|
-
let
|
|
326
|
-
let
|
|
1388
|
+
let id: number; //Order ID (default to undefined)
|
|
1389
|
+
let supplierId: number; //Supplier ID (default to undefined)
|
|
1390
|
+
let putAllocateItemsRequest: PutAllocateItemsRequest; // (optional)
|
|
327
1391
|
|
|
328
|
-
const { status, data } = await apiInstance.
|
|
329
|
-
|
|
330
|
-
|
|
1392
|
+
const { status, data } = await apiInstance.putAllocateItems(
|
|
1393
|
+
id,
|
|
1394
|
+
supplierId,
|
|
1395
|
+
putAllocateItemsRequest
|
|
331
1396
|
);
|
|
332
1397
|
```
|
|
333
1398
|
|
|
@@ -335,13 +1400,14 @@ const { status, data } = await apiInstance.postGetOrders(
|
|
|
335
1400
|
|
|
336
1401
|
|Name | Type | Description | Notes|
|
|
337
1402
|
|------------- | ------------- | ------------- | -------------|
|
|
338
|
-
| **
|
|
339
|
-
| **
|
|
1403
|
+
| **putAllocateItemsRequest** | **PutAllocateItemsRequest**| | |
|
|
1404
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1405
|
+
| **supplierId** | [**number**] | Supplier ID | defaults to undefined|
|
|
340
1406
|
|
|
341
1407
|
|
|
342
1408
|
### Return type
|
|
343
1409
|
|
|
344
|
-
**Array<
|
|
1410
|
+
**Array<BatchDTO>**
|
|
345
1411
|
|
|
346
1412
|
### Authorization
|
|
347
1413
|
|
|
@@ -356,7 +1422,7 @@ No authorization required
|
|
|
356
1422
|
### HTTP response details
|
|
357
1423
|
| Status code | Description | Response headers |
|
|
358
1424
|
|-------------|-------------|------------------|
|
|
359
|
-
|**200** | Order
|
|
1425
|
+
|**200** | Order Batches | - |
|
|
360
1426
|
|**400** | Bad Request | - |
|
|
361
1427
|
|**401** | Unauthorised | - |
|
|
362
1428
|
|**403** | Access Denied | - |
|
|
@@ -424,6 +1490,70 @@ No authorization required
|
|
|
424
1490
|
|
|
425
1491
|
[[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)
|
|
426
1492
|
|
|
1493
|
+
# **putUpdateBatchItem**
|
|
1494
|
+
> OrderedItemModel putUpdateBatchItem()
|
|
1495
|
+
|
|
1496
|
+
Update Batch Item (Admin)
|
|
1497
|
+
|
|
1498
|
+
### Example
|
|
1499
|
+
|
|
1500
|
+
```typescript
|
|
1501
|
+
import {
|
|
1502
|
+
OrdersApi,
|
|
1503
|
+
Configuration,
|
|
1504
|
+
OrderedItemModel
|
|
1505
|
+
} from 'yellowgrid-api-ts';
|
|
1506
|
+
|
|
1507
|
+
const configuration = new Configuration();
|
|
1508
|
+
const apiInstance = new OrdersApi(configuration);
|
|
1509
|
+
|
|
1510
|
+
let id: number; //Order ID (default to undefined)
|
|
1511
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
1512
|
+
let itemId: number; //Ordered Item ID (default to undefined)
|
|
1513
|
+
let orderedItemModel: OrderedItemModel; //Batch Item (optional)
|
|
1514
|
+
|
|
1515
|
+
const { status, data } = await apiInstance.putUpdateBatchItem(
|
|
1516
|
+
id,
|
|
1517
|
+
batchId,
|
|
1518
|
+
itemId,
|
|
1519
|
+
orderedItemModel
|
|
1520
|
+
);
|
|
1521
|
+
```
|
|
1522
|
+
|
|
1523
|
+
### Parameters
|
|
1524
|
+
|
|
1525
|
+
|Name | Type | Description | Notes|
|
|
1526
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1527
|
+
| **orderedItemModel** | **OrderedItemModel**| Batch Item | |
|
|
1528
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1529
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
1530
|
+
| **itemId** | [**number**] | Ordered Item ID | defaults to undefined|
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
### Return type
|
|
1534
|
+
|
|
1535
|
+
**OrderedItemModel**
|
|
1536
|
+
|
|
1537
|
+
### Authorization
|
|
1538
|
+
|
|
1539
|
+
No authorization required
|
|
1540
|
+
|
|
1541
|
+
### HTTP request headers
|
|
1542
|
+
|
|
1543
|
+
- **Content-Type**: application/json
|
|
1544
|
+
- **Accept**: application/json
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
### HTTP response details
|
|
1548
|
+
| Status code | Description | Response headers |
|
|
1549
|
+
|-------------|-------------|------------------|
|
|
1550
|
+
|**200** | Ordered Item | - |
|
|
1551
|
+
|**400** | Bad Request | - |
|
|
1552
|
+
|**401** | Unauthorised | - |
|
|
1553
|
+
|**403** | Access Denied | - |
|
|
1554
|
+
|
|
1555
|
+
[[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)
|
|
1556
|
+
|
|
427
1557
|
# **putUpdateOrder**
|
|
428
1558
|
> Array<OrderSummaryDTO> putUpdateOrder()
|
|
429
1559
|
|
|
@@ -485,3 +1615,124 @@ No authorization required
|
|
|
485
1615
|
|
|
486
1616
|
[[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)
|
|
487
1617
|
|
|
1618
|
+
# **putUpdatePaymentStatus**
|
|
1619
|
+
> OrderDetailsDTO putUpdatePaymentStatus()
|
|
1620
|
+
|
|
1621
|
+
Change Payment Status (Admin)
|
|
1622
|
+
|
|
1623
|
+
### Example
|
|
1624
|
+
|
|
1625
|
+
```typescript
|
|
1626
|
+
import {
|
|
1627
|
+
OrdersApi,
|
|
1628
|
+
Configuration
|
|
1629
|
+
} from 'yellowgrid-api-ts';
|
|
1630
|
+
|
|
1631
|
+
const configuration = new Configuration();
|
|
1632
|
+
const apiInstance = new OrdersApi(configuration);
|
|
1633
|
+
|
|
1634
|
+
let id: number; //Order ID (default to undefined)
|
|
1635
|
+
let paid: boolean; //Paid (default to undefined)
|
|
1636
|
+
|
|
1637
|
+
const { status, data } = await apiInstance.putUpdatePaymentStatus(
|
|
1638
|
+
id,
|
|
1639
|
+
paid
|
|
1640
|
+
);
|
|
1641
|
+
```
|
|
1642
|
+
|
|
1643
|
+
### Parameters
|
|
1644
|
+
|
|
1645
|
+
|Name | Type | Description | Notes|
|
|
1646
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1647
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1648
|
+
| **paid** | [**boolean**] | Paid | defaults to undefined|
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
### Return type
|
|
1652
|
+
|
|
1653
|
+
**OrderDetailsDTO**
|
|
1654
|
+
|
|
1655
|
+
### Authorization
|
|
1656
|
+
|
|
1657
|
+
No authorization required
|
|
1658
|
+
|
|
1659
|
+
### HTTP request headers
|
|
1660
|
+
|
|
1661
|
+
- **Content-Type**: Not defined
|
|
1662
|
+
- **Accept**: application/json
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
### HTTP response details
|
|
1666
|
+
| Status code | Description | Response headers |
|
|
1667
|
+
|-------------|-------------|------------------|
|
|
1668
|
+
|**200** | Order Details | - |
|
|
1669
|
+
|**400** | Bad Request | - |
|
|
1670
|
+
|**401** | Unauthorised | - |
|
|
1671
|
+
|**403** | Access Denied | - |
|
|
1672
|
+
|
|
1673
|
+
[[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)
|
|
1674
|
+
|
|
1675
|
+
# **putUpdateShipment**
|
|
1676
|
+
> ShipmentDTO putUpdateShipment()
|
|
1677
|
+
|
|
1678
|
+
Update Shipment (Admin)
|
|
1679
|
+
|
|
1680
|
+
### Example
|
|
1681
|
+
|
|
1682
|
+
```typescript
|
|
1683
|
+
import {
|
|
1684
|
+
OrdersApi,
|
|
1685
|
+
Configuration,
|
|
1686
|
+
ShipmentRequestDTO
|
|
1687
|
+
} from 'yellowgrid-api-ts';
|
|
1688
|
+
|
|
1689
|
+
const configuration = new Configuration();
|
|
1690
|
+
const apiInstance = new OrdersApi(configuration);
|
|
1691
|
+
|
|
1692
|
+
let id: number; //Order ID (default to undefined)
|
|
1693
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
1694
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
1695
|
+
let shipmentRequestDTO: ShipmentRequestDTO; //Shipment Request (optional)
|
|
1696
|
+
|
|
1697
|
+
const { status, data } = await apiInstance.putUpdateShipment(
|
|
1698
|
+
id,
|
|
1699
|
+
batchId,
|
|
1700
|
+
shipmentId,
|
|
1701
|
+
shipmentRequestDTO
|
|
1702
|
+
);
|
|
1703
|
+
```
|
|
1704
|
+
|
|
1705
|
+
### Parameters
|
|
1706
|
+
|
|
1707
|
+
|Name | Type | Description | Notes|
|
|
1708
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1709
|
+
| **shipmentRequestDTO** | **ShipmentRequestDTO**| Shipment Request | |
|
|
1710
|
+
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1711
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
1712
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
### Return type
|
|
1716
|
+
|
|
1717
|
+
**ShipmentDTO**
|
|
1718
|
+
|
|
1719
|
+
### Authorization
|
|
1720
|
+
|
|
1721
|
+
No authorization required
|
|
1722
|
+
|
|
1723
|
+
### HTTP request headers
|
|
1724
|
+
|
|
1725
|
+
- **Content-Type**: application/json
|
|
1726
|
+
- **Accept**: application/json
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
### HTTP response details
|
|
1730
|
+
| Status code | Description | Response headers |
|
|
1731
|
+
|-------------|-------------|------------------|
|
|
1732
|
+
|**200** | Shipment | - |
|
|
1733
|
+
|**400** | Bad Request | - |
|
|
1734
|
+
|**401** | Unauthorised | - |
|
|
1735
|
+
|**403** | Access Denied | - |
|
|
1736
|
+
|
|
1737
|
+
[[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)
|
|
1738
|
+
|