yellowgrid-api-ts 3.2.71-dev.0 → 3.2.74-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 +2 -1
- package/README.md +5 -3
- package/api.ts +351 -221
- package/dist/api.d.ts +258 -169
- package/dist/api.js +236 -149
- package/docs/AdminNumberPortDTO.md +57 -0
- package/docs/NumberPortNoteDTO.md +29 -0
- package/docs/NumberPortingApi.md +63 -6
- package/docs/OrdersApi.md +55 -55
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# AdminNumberPortDTO
|
|
2
|
+
|
|
3
|
+
Admin Number Port Response
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**companyName** | **string** | Company Name | [optional] [default to undefined]
|
|
10
|
+
**addressLine1** | **string** | Address Line 1 | [optional] [default to undefined]
|
|
11
|
+
**addressLine2** | **string** | Address Line 2 | [optional] [default to undefined]
|
|
12
|
+
**city** | **string** | City | [optional] [default to undefined]
|
|
13
|
+
**postCode** | **string** | Post Code | [optional] [default to undefined]
|
|
14
|
+
**trunkId** | **number** | Trunk ID | [optional] [default to undefined]
|
|
15
|
+
**tenantId** | **string** | Starter Bundle ID | [optional] [default to undefined]
|
|
16
|
+
**requestedPortDate** | **string** | Requested Port Date | [optional] [default to undefined]
|
|
17
|
+
**asap** | **boolean** | Port Date ASAP | [optional] [default to undefined]
|
|
18
|
+
**comment** | **string** | Comment | [optional] [default to undefined]
|
|
19
|
+
**id** | **number** | Number Port ID | [optional] [default to undefined]
|
|
20
|
+
**customerId** | **number** | Reseller ID | [optional] [default to undefined]
|
|
21
|
+
**customerName** | **string** | Customer Name | [optional] [default to undefined]
|
|
22
|
+
**portDate** | **string** | Porting Date | [optional] [default to undefined]
|
|
23
|
+
**numberRanges** | [**Array<NumberPortRangeDTO>**](NumberPortRangeDTO.md) | Number Ranges | [optional] [default to undefined]
|
|
24
|
+
**status** | **number** | Status | [optional] [default to undefined]
|
|
25
|
+
**statusText** | **string** | Status Text | [optional] [default to undefined]
|
|
26
|
+
**ticketId** | **number** | Ticket ID | [optional] [default to undefined]
|
|
27
|
+
**notes** | [**Array<NumberPortNoteDTO>**](NumberPortNoteDTO.md) | Notes | [optional] [default to undefined]
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { AdminNumberPortDTO } from 'yellowgrid-api-ts';
|
|
33
|
+
|
|
34
|
+
const instance: AdminNumberPortDTO = {
|
|
35
|
+
companyName,
|
|
36
|
+
addressLine1,
|
|
37
|
+
addressLine2,
|
|
38
|
+
city,
|
|
39
|
+
postCode,
|
|
40
|
+
trunkId,
|
|
41
|
+
tenantId,
|
|
42
|
+
requestedPortDate,
|
|
43
|
+
asap,
|
|
44
|
+
comment,
|
|
45
|
+
id,
|
|
46
|
+
customerId,
|
|
47
|
+
customerName,
|
|
48
|
+
portDate,
|
|
49
|
+
numberRanges,
|
|
50
|
+
status,
|
|
51
|
+
statusText,
|
|
52
|
+
ticketId,
|
|
53
|
+
notes,
|
|
54
|
+
};
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
[[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,29 @@
|
|
|
1
|
+
# NumberPortNoteDTO
|
|
2
|
+
|
|
3
|
+
Number Port Note DTO
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**portId** | **number** | portId | [optional] [default to undefined]
|
|
11
|
+
**note** | **string** | note | [optional] [default to undefined]
|
|
12
|
+
**user** | **string** | user | [optional] [default to undefined]
|
|
13
|
+
**timestamp** | **string** | timestamp | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { NumberPortNoteDTO } from 'yellowgrid-api-ts';
|
|
19
|
+
|
|
20
|
+
const instance: NumberPortNoteDTO = {
|
|
21
|
+
id,
|
|
22
|
+
portId,
|
|
23
|
+
note,
|
|
24
|
+
user,
|
|
25
|
+
timestamp,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/NumberPortingApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *https://api.yellowgrid.local*
|
|
|
10
10
|
|[**getGetAdminNumberPorts**](#getgetadminnumberports) | **GET** /admin/sip/numbers/ports | |
|
|
11
11
|
|[**getUpdateNumberPort**](#getupdatenumberport) | **GET** /sip/numbers/ports/{id} | |
|
|
12
12
|
|[**patchCloseAdminNumberPort**](#patchcloseadminnumberport) | **PATCH** /admin/sip/numbers/ports/{id}/close | |
|
|
13
|
+
|[**postAddAdminNote**](#postaddadminnote) | **POST** /admin/sip/numbers/ports/{id}/notes | |
|
|
13
14
|
|[**postCreateNumberPort**](#postcreatenumberport) | **POST** /sip/numbers/ports | |
|
|
14
15
|
|[**postSubmitNumberPort**](#postsubmitnumberport) | **POST** /sip/numbers/ports/{id}/submit | |
|
|
15
16
|
|[**postUpdateNumberPort**](#postupdatenumberport) | **POST** /sip/numbers/ports/{id} | |
|
|
@@ -128,7 +129,7 @@ No authorization required
|
|
|
128
129
|
[[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)
|
|
129
130
|
|
|
130
131
|
# **getGetAdminNumberPort**
|
|
131
|
-
>
|
|
132
|
+
> AdminNumberPortDTO getGetAdminNumberPort()
|
|
132
133
|
|
|
133
134
|
|
|
134
135
|
### Example
|
|
@@ -158,7 +159,7 @@ const { status, data } = await apiInstance.getGetAdminNumberPort(
|
|
|
158
159
|
|
|
159
160
|
### Return type
|
|
160
161
|
|
|
161
|
-
**
|
|
162
|
+
**AdminNumberPortDTO**
|
|
162
163
|
|
|
163
164
|
### Authorization
|
|
164
165
|
|
|
@@ -293,7 +294,7 @@ No authorization required
|
|
|
293
294
|
[[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)
|
|
294
295
|
|
|
295
296
|
# **patchCloseAdminNumberPort**
|
|
296
|
-
>
|
|
297
|
+
> AdminNumberPortDTO patchCloseAdminNumberPort()
|
|
297
298
|
|
|
298
299
|
|
|
299
300
|
### Example
|
|
@@ -323,7 +324,7 @@ const { status, data } = await apiInstance.patchCloseAdminNumberPort(
|
|
|
323
324
|
|
|
324
325
|
### Return type
|
|
325
326
|
|
|
326
|
-
**
|
|
327
|
+
**AdminNumberPortDTO**
|
|
327
328
|
|
|
328
329
|
### Authorization
|
|
329
330
|
|
|
@@ -345,6 +346,62 @@ No authorization required
|
|
|
345
346
|
|
|
346
347
|
[[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)
|
|
347
348
|
|
|
349
|
+
# **postAddAdminNote**
|
|
350
|
+
> AdminNumberPortDTO postAddAdminNote(body)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
### Example
|
|
354
|
+
|
|
355
|
+
```typescript
|
|
356
|
+
import {
|
|
357
|
+
NumberPortingApi,
|
|
358
|
+
Configuration
|
|
359
|
+
} from 'yellowgrid-api-ts';
|
|
360
|
+
|
|
361
|
+
const configuration = new Configuration();
|
|
362
|
+
const apiInstance = new NumberPortingApi(configuration);
|
|
363
|
+
|
|
364
|
+
let id: number; //Number Port ID (default to undefined)
|
|
365
|
+
let body: string; //
|
|
366
|
+
|
|
367
|
+
const { status, data } = await apiInstance.postAddAdminNote(
|
|
368
|
+
id,
|
|
369
|
+
body
|
|
370
|
+
);
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Parameters
|
|
374
|
+
|
|
375
|
+
|Name | Type | Description | Notes|
|
|
376
|
+
|------------- | ------------- | ------------- | -------------|
|
|
377
|
+
| **body** | **string**| | |
|
|
378
|
+
| **id** | [**number**] | Number Port ID | defaults to undefined|
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
### Return type
|
|
382
|
+
|
|
383
|
+
**AdminNumberPortDTO**
|
|
384
|
+
|
|
385
|
+
### Authorization
|
|
386
|
+
|
|
387
|
+
No authorization required
|
|
388
|
+
|
|
389
|
+
### HTTP request headers
|
|
390
|
+
|
|
391
|
+
- **Content-Type**: application/json
|
|
392
|
+
- **Accept**: application/json
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
### HTTP response details
|
|
396
|
+
| Status code | Description | Response headers |
|
|
397
|
+
|-------------|-------------|------------------|
|
|
398
|
+
|**200** | Admin Number Port | - |
|
|
399
|
+
|**400** | Bad Request | - |
|
|
400
|
+
|**401** | Unauthorised | - |
|
|
401
|
+
|**403** | Access Denied | - |
|
|
402
|
+
|
|
403
|
+
[[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)
|
|
404
|
+
|
|
348
405
|
# **postCreateNumberPort**
|
|
349
406
|
> NumberPortDTO postCreateNumberPort()
|
|
350
407
|
|
|
@@ -610,7 +667,7 @@ No authorization required
|
|
|
610
667
|
[[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)
|
|
611
668
|
|
|
612
669
|
# **putGetAdminNumberPort**
|
|
613
|
-
>
|
|
670
|
+
> AdminNumberPortDTO putGetAdminNumberPort(numberPortDTO)
|
|
614
671
|
|
|
615
672
|
|
|
616
673
|
### Example
|
|
@@ -644,7 +701,7 @@ const { status, data } = await apiInstance.putGetAdminNumberPort(
|
|
|
644
701
|
|
|
645
702
|
### Return type
|
|
646
703
|
|
|
647
|
-
**
|
|
704
|
+
**AdminNumberPortDTO**
|
|
648
705
|
|
|
649
706
|
### Authorization
|
|
650
707
|
|
package/docs/OrdersApi.md
CHANGED
|
@@ -5,8 +5,8 @@ All URIs are relative to *https://api.yellowgrid.local*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**deleteDeleteBatch**](#deletedeletebatch) | **DELETE** /admin/orders/{id}/batches/{batch_id} | |
|
|
8
|
-
|[**deleteDeleteShipment**](#deletedeleteshipment) | **DELETE** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Delete Shipment (Admin)|
|
|
9
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)|
|
|
10
10
|
|[**getGetAdminEditableOrder**](#getgetadmineditableorder) | **GET** /admin/orders/{id}/views/editable | Get Editable Order (Admin)|
|
|
11
11
|
|[**getGetAdminOrderDetails**](#getgetadminorderdetails) | **GET** /admin/orders/{id}/details | Get Order Details (Admin)|
|
|
12
12
|
|[**getGetEditableOrder**](#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)|
|
|
@@ -23,9 +23,9 @@ All URIs are relative to *https://api.yellowgrid.local*
|
|
|
23
23
|
|[**postSendSupplierEmail**](#postsendsupplieremail) | **POST** /admin/orders/{id}/batches/{batch_id}/email/send | Send Supplier Email|
|
|
24
24
|
|[**postSplitOrder**](#postsplitorder) | **POST** /admin/orders/{id}/split | Split Order|
|
|
25
25
|
|[**putAllocateItems**](#putallocateitems) | **PUT** /admin/orders/{id}/items/allocate | Allocate Items To Supplier|
|
|
26
|
-
|[**putCreateShipment**](#putcreateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments | Update Shipment (Admin)|
|
|
27
26
|
|[**putUpdateAdminOrder**](#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)|
|
|
28
27
|
|[**putUpdateOrder**](#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)|
|
|
28
|
+
|[**putUpdateShipment**](#putupdateshipment) | **PUT** /admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id} | Update Shipment (Admin)|
|
|
29
29
|
|
|
30
30
|
# **deleteDeleteBatch**
|
|
31
31
|
> deleteDeleteBatch()
|
|
@@ -84,10 +84,10 @@ No authorization required
|
|
|
84
84
|
|
|
85
85
|
[[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)
|
|
86
86
|
|
|
87
|
-
# **
|
|
88
|
-
>
|
|
87
|
+
# **deleteUpdateOrder**
|
|
88
|
+
> deleteUpdateOrder()
|
|
89
89
|
|
|
90
|
-
Delete
|
|
90
|
+
Delete Orders (Beta)
|
|
91
91
|
|
|
92
92
|
### Example
|
|
93
93
|
|
|
@@ -101,13 +101,9 @@ const configuration = new Configuration();
|
|
|
101
101
|
const apiInstance = new OrdersApi(configuration);
|
|
102
102
|
|
|
103
103
|
let id: number; //Order ID (default to undefined)
|
|
104
|
-
let batchId: number; //Batch ID (default to undefined)
|
|
105
|
-
let shipmentId: number; //Shipment ID (default to undefined)
|
|
106
104
|
|
|
107
|
-
const { status, data } = await apiInstance.
|
|
108
|
-
id
|
|
109
|
-
batchId,
|
|
110
|
-
shipmentId
|
|
105
|
+
const { status, data } = await apiInstance.deleteUpdateOrder(
|
|
106
|
+
id
|
|
111
107
|
);
|
|
112
108
|
```
|
|
113
109
|
|
|
@@ -116,8 +112,6 @@ const { status, data } = await apiInstance.deleteDeleteShipment(
|
|
|
116
112
|
|Name | Type | Description | Notes|
|
|
117
113
|
|------------- | ------------- | ------------- | -------------|
|
|
118
114
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
119
|
-
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
120
|
-
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
121
115
|
|
|
122
116
|
|
|
123
117
|
### Return type
|
|
@@ -144,10 +138,10 @@ No authorization required
|
|
|
144
138
|
|
|
145
139
|
[[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)
|
|
146
140
|
|
|
147
|
-
# **
|
|
148
|
-
>
|
|
141
|
+
# **deleteUpdateShipment**
|
|
142
|
+
> deleteUpdateShipment()
|
|
149
143
|
|
|
150
|
-
Delete
|
|
144
|
+
Delete Shipment (Admin)
|
|
151
145
|
|
|
152
146
|
### Example
|
|
153
147
|
|
|
@@ -161,9 +155,13 @@ const configuration = new Configuration();
|
|
|
161
155
|
const apiInstance = new OrdersApi(configuration);
|
|
162
156
|
|
|
163
157
|
let id: number; //Order ID (default to undefined)
|
|
158
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
159
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
164
160
|
|
|
165
|
-
const { status, data } = await apiInstance.
|
|
166
|
-
id
|
|
161
|
+
const { status, data } = await apiInstance.deleteUpdateShipment(
|
|
162
|
+
id,
|
|
163
|
+
batchId,
|
|
164
|
+
shipmentId
|
|
167
165
|
);
|
|
168
166
|
```
|
|
169
167
|
|
|
@@ -172,6 +170,8 @@ const { status, data } = await apiInstance.deleteUpdateOrder(
|
|
|
172
170
|
|Name | Type | Description | Notes|
|
|
173
171
|
|------------- | ------------- | ------------- | -------------|
|
|
174
172
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
173
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
174
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
### Return type
|
|
@@ -1133,10 +1133,10 @@ No authorization required
|
|
|
1133
1133
|
|
|
1134
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)
|
|
1135
1135
|
|
|
1136
|
-
# **
|
|
1137
|
-
>
|
|
1136
|
+
# **putUpdateAdminOrder**
|
|
1137
|
+
> Array<OrderSummaryDTO> putUpdateAdminOrder()
|
|
1138
1138
|
|
|
1139
|
-
Update
|
|
1139
|
+
Update An Order (Admin)
|
|
1140
1140
|
|
|
1141
1141
|
### Example
|
|
1142
1142
|
|
|
@@ -1144,22 +1144,20 @@ Update Shipment (Admin)
|
|
|
1144
1144
|
import {
|
|
1145
1145
|
OrdersApi,
|
|
1146
1146
|
Configuration,
|
|
1147
|
-
|
|
1147
|
+
AdminOrderRequestDTO
|
|
1148
1148
|
} from 'yellowgrid-api-ts';
|
|
1149
1149
|
|
|
1150
1150
|
const configuration = new Configuration();
|
|
1151
1151
|
const apiInstance = new OrdersApi(configuration);
|
|
1152
1152
|
|
|
1153
1153
|
let id: number; //Order ID (default to undefined)
|
|
1154
|
-
let
|
|
1155
|
-
let
|
|
1156
|
-
let shipmentRequestDTO: ShipmentRequestDTO; //Shipment Request (optional)
|
|
1154
|
+
let readonly: boolean; //Readonly Order (optional) (default to undefined)
|
|
1155
|
+
let adminOrderRequestDTO: AdminOrderRequestDTO; //Order Request (optional)
|
|
1157
1156
|
|
|
1158
|
-
const { status, data } = await apiInstance.
|
|
1157
|
+
const { status, data } = await apiInstance.putUpdateAdminOrder(
|
|
1159
1158
|
id,
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
shipmentRequestDTO
|
|
1159
|
+
readonly,
|
|
1160
|
+
adminOrderRequestDTO
|
|
1163
1161
|
);
|
|
1164
1162
|
```
|
|
1165
1163
|
|
|
@@ -1167,15 +1165,14 @@ const { status, data } = await apiInstance.putCreateShipment(
|
|
|
1167
1165
|
|
|
1168
1166
|
|Name | Type | Description | Notes|
|
|
1169
1167
|
|------------- | ------------- | ------------- | -------------|
|
|
1170
|
-
| **
|
|
1168
|
+
| **adminOrderRequestDTO** | **AdminOrderRequestDTO**| Order Request | |
|
|
1171
1169
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1172
|
-
| **
|
|
1173
|
-
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
1170
|
+
| **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
|
|
1174
1171
|
|
|
1175
1172
|
|
|
1176
1173
|
### Return type
|
|
1177
1174
|
|
|
1178
|
-
**
|
|
1175
|
+
**Array<OrderSummaryDTO>**
|
|
1179
1176
|
|
|
1180
1177
|
### Authorization
|
|
1181
1178
|
|
|
@@ -1190,17 +1187,17 @@ No authorization required
|
|
|
1190
1187
|
### HTTP response details
|
|
1191
1188
|
| Status code | Description | Response headers |
|
|
1192
1189
|
|-------------|-------------|------------------|
|
|
1193
|
-
|**200** |
|
|
1190
|
+
|**200** | Order Summaries | - |
|
|
1194
1191
|
|**400** | Bad Request | - |
|
|
1195
1192
|
|**401** | Unauthorised | - |
|
|
1196
1193
|
|**403** | Access Denied | - |
|
|
1197
1194
|
|
|
1198
1195
|
[[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)
|
|
1199
1196
|
|
|
1200
|
-
# **
|
|
1201
|
-
> Array<OrderSummaryDTO>
|
|
1197
|
+
# **putUpdateOrder**
|
|
1198
|
+
> Array<OrderSummaryDTO> putUpdateOrder()
|
|
1202
1199
|
|
|
1203
|
-
Update An Order (
|
|
1200
|
+
Update An Order (Beta)
|
|
1204
1201
|
|
|
1205
1202
|
### Example
|
|
1206
1203
|
|
|
@@ -1208,7 +1205,7 @@ Update An Order (Admin)
|
|
|
1208
1205
|
import {
|
|
1209
1206
|
OrdersApi,
|
|
1210
1207
|
Configuration,
|
|
1211
|
-
|
|
1208
|
+
CustomerOrderRequestDTO
|
|
1212
1209
|
} from 'yellowgrid-api-ts';
|
|
1213
1210
|
|
|
1214
1211
|
const configuration = new Configuration();
|
|
@@ -1216,12 +1213,12 @@ const apiInstance = new OrdersApi(configuration);
|
|
|
1216
1213
|
|
|
1217
1214
|
let id: number; //Order ID (default to undefined)
|
|
1218
1215
|
let readonly: boolean; //Readonly Order (optional) (default to undefined)
|
|
1219
|
-
let
|
|
1216
|
+
let customerOrderRequestDTO: CustomerOrderRequestDTO; //Order Request (optional)
|
|
1220
1217
|
|
|
1221
|
-
const { status, data } = await apiInstance.
|
|
1218
|
+
const { status, data } = await apiInstance.putUpdateOrder(
|
|
1222
1219
|
id,
|
|
1223
1220
|
readonly,
|
|
1224
|
-
|
|
1221
|
+
customerOrderRequestDTO
|
|
1225
1222
|
);
|
|
1226
1223
|
```
|
|
1227
1224
|
|
|
@@ -1229,7 +1226,7 @@ const { status, data } = await apiInstance.putUpdateAdminOrder(
|
|
|
1229
1226
|
|
|
1230
1227
|
|Name | Type | Description | Notes|
|
|
1231
1228
|
|------------- | ------------- | ------------- | -------------|
|
|
1232
|
-
| **
|
|
1229
|
+
| **customerOrderRequestDTO** | **CustomerOrderRequestDTO**| Order Request | |
|
|
1233
1230
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1234
1231
|
| **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
|
|
1235
1232
|
|
|
@@ -1258,10 +1255,10 @@ No authorization required
|
|
|
1258
1255
|
|
|
1259
1256
|
[[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)
|
|
1260
1257
|
|
|
1261
|
-
# **
|
|
1262
|
-
>
|
|
1258
|
+
# **putUpdateShipment**
|
|
1259
|
+
> ShipmentModel putUpdateShipment()
|
|
1263
1260
|
|
|
1264
|
-
Update
|
|
1261
|
+
Update Shipment (Admin)
|
|
1265
1262
|
|
|
1266
1263
|
### Example
|
|
1267
1264
|
|
|
@@ -1269,20 +1266,22 @@ Update An Order (Beta)
|
|
|
1269
1266
|
import {
|
|
1270
1267
|
OrdersApi,
|
|
1271
1268
|
Configuration,
|
|
1272
|
-
|
|
1269
|
+
ShipmentRequestDTO
|
|
1273
1270
|
} from 'yellowgrid-api-ts';
|
|
1274
1271
|
|
|
1275
1272
|
const configuration = new Configuration();
|
|
1276
1273
|
const apiInstance = new OrdersApi(configuration);
|
|
1277
1274
|
|
|
1278
1275
|
let id: number; //Order ID (default to undefined)
|
|
1279
|
-
let
|
|
1280
|
-
let
|
|
1276
|
+
let batchId: number; //Batch ID (default to undefined)
|
|
1277
|
+
let shipmentId: number; //Shipment ID (default to undefined)
|
|
1278
|
+
let shipmentRequestDTO: ShipmentRequestDTO; //Shipment Request (optional)
|
|
1281
1279
|
|
|
1282
|
-
const { status, data } = await apiInstance.
|
|
1280
|
+
const { status, data } = await apiInstance.putUpdateShipment(
|
|
1283
1281
|
id,
|
|
1284
|
-
|
|
1285
|
-
|
|
1282
|
+
batchId,
|
|
1283
|
+
shipmentId,
|
|
1284
|
+
shipmentRequestDTO
|
|
1286
1285
|
);
|
|
1287
1286
|
```
|
|
1288
1287
|
|
|
@@ -1290,14 +1289,15 @@ const { status, data } = await apiInstance.putUpdateOrder(
|
|
|
1290
1289
|
|
|
1291
1290
|
|Name | Type | Description | Notes|
|
|
1292
1291
|
|------------- | ------------- | ------------- | -------------|
|
|
1293
|
-
| **
|
|
1292
|
+
| **shipmentRequestDTO** | **ShipmentRequestDTO**| Shipment Request | |
|
|
1294
1293
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1295
|
-
| **
|
|
1294
|
+
| **batchId** | [**number**] | Batch ID | defaults to undefined|
|
|
1295
|
+
| **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
|
|
1296
1296
|
|
|
1297
1297
|
|
|
1298
1298
|
### Return type
|
|
1299
1299
|
|
|
1300
|
-
**
|
|
1300
|
+
**ShipmentModel**
|
|
1301
1301
|
|
|
1302
1302
|
### Authorization
|
|
1303
1303
|
|
|
@@ -1312,7 +1312,7 @@ No authorization required
|
|
|
1312
1312
|
### HTTP response details
|
|
1313
1313
|
| Status code | Description | Response headers |
|
|
1314
1314
|
|-------------|-------------|------------------|
|
|
1315
|
-
|**200** |
|
|
1315
|
+
|**200** | Shipment | - |
|
|
1316
1316
|
|**400** | Bad Request | - |
|
|
1317
1317
|
|**401** | Unauthorised | - |
|
|
1318
1318
|
|**403** | Access Denied | - |
|