yellowgrid-api-ts 3.2.60 → 3.2.62-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.
Files changed (69) hide show
  1. package/.openapi-generator/FILES +249 -229
  2. package/README.md +36 -1
  3. package/api.ts +2459 -215
  4. package/base.ts +2 -2
  5. package/common.ts +1 -1
  6. package/config.json +3 -3
  7. package/configuration.ts +1 -1
  8. package/dist/api.d.ts +1767 -106
  9. package/dist/api.js +1487 -107
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +2 -2
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/models/CourierEnum.d.ts +18 -0
  19. package/dist/models/CourierEnum.js +20 -0
  20. package/dist/models/PrinterEnum.d.ts +18 -0
  21. package/dist/models/PrinterEnum.js +20 -0
  22. package/docs/AccountsApi.md +1 -1
  23. package/docs/BatchDTO.md +59 -0
  24. package/docs/CRMApi.md +1 -1
  25. package/docs/Class3CXApi.md +1 -1
  26. package/docs/Class3CXInstallationWizardApi.md +1 -1
  27. package/docs/Class3CXInstallationsApi.md +1 -1
  28. package/docs/Class3CXIntegrationsApi.md +1 -1
  29. package/docs/Class3CXMultiTenantApi.md +1 -1
  30. package/docs/CreditNoteDTO.md +21 -0
  31. package/docs/CreditNoteEntity.md +29 -0
  32. package/docs/CreditNoteItemDTO.md +25 -0
  33. package/docs/CreditNoteItemEntity.md +29 -0
  34. package/docs/CreditNoteModel.md +29 -0
  35. package/docs/MyPBXToolsApi.md +1 -1
  36. package/docs/OAuth20Api.md +1 -1
  37. package/docs/OrderDetailsDTO.md +63 -0
  38. package/docs/OrderItemDTO.md +53 -0
  39. package/docs/OrderedItemModel.md +47 -0
  40. package/docs/OrdersApi.md +857 -23
  41. package/docs/PostAddOrderNoteRequest.md +20 -0
  42. package/docs/PostSplitOrderRequest.md +20 -0
  43. package/docs/PricingApi.md +1 -1
  44. package/docs/PrinterEntity.md +29 -0
  45. package/docs/ProductsApi.md +1 -1
  46. package/docs/ProvisioningApi.md +1 -1
  47. package/docs/PutAllocateItemsRequest.md +20 -0
  48. package/docs/PutAllocateItemsRequestItemsInner.md +22 -0
  49. package/docs/SIPTrunksApi.md +1 -1
  50. package/docs/SMSApi.md +1 -1
  51. package/docs/ServicesApi.md +1 -1
  52. package/docs/ShipmentDTO.md +31 -0
  53. package/docs/ShipmentItemDTO.md +23 -0
  54. package/docs/ShipmentItemModel.md +29 -0
  55. package/docs/ShipmentModel.md +43 -0
  56. package/docs/ShipmentRequestDTO.md +31 -0
  57. package/docs/ShippingApi.md +1 -1
  58. package/docs/ShippingRequestDTO.md +24 -0
  59. package/docs/StockManagementApi.md +1 -1
  60. package/docs/SupplierModel.md +37 -0
  61. package/docs/SystemApi.md +1 -1
  62. package/docs/TicketsApi.md +1 -1
  63. package/docs/WebhooksApi.md +1 -1
  64. package/getEnums.php +31 -31
  65. package/hs_err_pid58424.log +247 -0
  66. package/index.ts +1 -1
  67. package/models/CourierEnum.ts +19 -0
  68. package/models/PrinterEnum.ts +19 -0
  69. package/package.json +1 -1
package/docs/OrdersApi.md CHANGED
@@ -1,18 +1,149 @@
1
1
  # OrdersApi
2
2
 
3
- All URIs are relative to *https://bitbucket.org*
3
+ All URIs are relative to *https://api.yellowgrid.local*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**deleteCreateShipment**](#deletecreateshipment) | **DELETE** /admin/orders/{id}/batches/{batch_id}/shipments | Delete Shipment (Admin)|
8
+ |[**deleteDeleteBatch**](#deletedeletebatch) | **DELETE** /admin/orders/{id}/batches/{batch_id} | |
7
9
  |[**deleteUpdateOrder**](#deleteupdateorder) | **DELETE** /orders/{id} | Delete Orders (Beta)|
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)|
9
12
  |[**getGetEditableOrder**](#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)|
13
+ |[**getGetOrderPdf**](#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF|
10
14
  |[**getGetOrders**](#getgetorders) | **GET** /orders | Get Orders (Beta)|
15
+ |[**postAddOrderNote**](#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note|
11
16
  |[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
17
+ |[**postCreateConsignment**](#postcreateconsignment) | **POST** /admin/orders/{id}/shipments/{shipment_id}/consignment | Create Shipping Consignment|
18
+ |[**postCreateShipment**](#postcreateshipment) | **POST** /admin/orders/{id}/batches/{batch_id}/shipments | Create Shipment (Admin)|
12
19
  |[**postGetOrders**](#postgetorders) | **POST** /orders | Create An Order (Beta)|
20
+ |[**postIssueCredit**](#postissuecredit) | **POST** /admin/orders/{id}/credit | Issue Credit (Admin)|
21
+ |[**postPrintShippingLabel**](#postprintshippinglabel) | **POST** /admin/orders/{id}/shipments/{shipment_id}/label/print | Print Shipment Label|
22
+ |[**postSendOrderEmail**](#postsendorderemail) | **POST** /admin/orders/{id}/email/send | Send Order Email|
23
+ |[**postSendSupplierEmail**](#postsendsupplieremail) | **POST** /admin/orders/{id}/batches/{batch_id}/email/send | Send Supplier Email|
24
+ |[**postSplitOrder**](#postsplitorder) | **POST** /admin/orders/{id}/split | Split Order|
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)|
13
27
  |[**putUpdateAdminOrder**](#putupdateadminorder) | **PUT** /admin/orders/{id} | Update An Order (Admin)|
14
28
  |[**putUpdateOrder**](#putupdateorder) | **PUT** /orders/{id} | Update An Order (Beta)|
15
29
 
30
+ # **deleteCreateShipment**
31
+ > deleteCreateShipment()
32
+
33
+ Delete Shipment (Admin)
34
+
35
+ ### Example
36
+
37
+ ```typescript
38
+ import {
39
+ OrdersApi,
40
+ Configuration
41
+ } from 'yellowgrid-api-ts';
42
+
43
+ const configuration = new Configuration();
44
+ const apiInstance = new OrdersApi(configuration);
45
+
46
+ let id: number; //Order ID (default to undefined)
47
+ let batchId: number; //Batch ID (default to undefined)
48
+ let shipmentId: number; //Shipment ID (default to undefined)
49
+
50
+ const { status, data } = await apiInstance.deleteCreateShipment(
51
+ id,
52
+ batchId,
53
+ shipmentId
54
+ );
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ |Name | Type | Description | Notes|
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **id** | [**number**] | Order ID | defaults to undefined|
62
+ | **batchId** | [**number**] | Batch ID | defaults to undefined|
63
+ | **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
64
+
65
+
66
+ ### Return type
67
+
68
+ void (empty response body)
69
+
70
+ ### Authorization
71
+
72
+ No authorization required
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: Not defined
78
+
79
+
80
+ ### HTTP response details
81
+ | Status code | Description | Response headers |
82
+ |-------------|-------------|------------------|
83
+ |**200** | No Response | - |
84
+ |**400** | Bad Request | - |
85
+ |**401** | Unauthorised | - |
86
+ |**403** | Access Denied | - |
87
+
88
+ [[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)
89
+
90
+ # **deleteDeleteBatch**
91
+ > deleteDeleteBatch()
92
+
93
+ Delete Batch (Admin)
94
+
95
+ ### Example
96
+
97
+ ```typescript
98
+ import {
99
+ OrdersApi,
100
+ Configuration
101
+ } from 'yellowgrid-api-ts';
102
+
103
+ const configuration = new Configuration();
104
+ const apiInstance = new OrdersApi(configuration);
105
+
106
+ let id: number; //Order ID (default to undefined)
107
+ let batchId: number; //Batch ID (default to undefined)
108
+
109
+ const { status, data } = await apiInstance.deleteDeleteBatch(
110
+ id,
111
+ batchId
112
+ );
113
+ ```
114
+
115
+ ### Parameters
116
+
117
+ |Name | Type | Description | Notes|
118
+ |------------- | ------------- | ------------- | -------------|
119
+ | **id** | [**number**] | Order ID | defaults to undefined|
120
+ | **batchId** | [**number**] | Batch ID | defaults to undefined|
121
+
122
+
123
+ ### Return type
124
+
125
+ void (empty response body)
126
+
127
+ ### Authorization
128
+
129
+ No authorization required
130
+
131
+ ### HTTP request headers
132
+
133
+ - **Content-Type**: Not defined
134
+ - **Accept**: Not defined
135
+
136
+
137
+ ### HTTP response details
138
+ | Status code | Description | Response headers |
139
+ |-------------|-------------|------------------|
140
+ |**200** | No Response | - |
141
+ |**400** | Bad Request | - |
142
+ |**401** | Unauthorised | - |
143
+ |**403** | Access Denied | - |
144
+
145
+ [[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
+
16
147
  # **deleteUpdateOrder**
17
148
  > deleteUpdateOrder()
18
149
 
@@ -121,6 +252,60 @@ No authorization required
121
252
 
122
253
  [[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
254
 
255
+ # **getGetAdminOrderDetails**
256
+ > OrderDetailsDTO getGetAdminOrderDetails()
257
+
258
+ Get Order Details (Admin)
259
+
260
+ ### Example
261
+
262
+ ```typescript
263
+ import {
264
+ OrdersApi,
265
+ Configuration
266
+ } from 'yellowgrid-api-ts';
267
+
268
+ const configuration = new Configuration();
269
+ const apiInstance = new OrdersApi(configuration);
270
+
271
+ let id: number; //Order ID (default to undefined)
272
+
273
+ const { status, data } = await apiInstance.getGetAdminOrderDetails(
274
+ id
275
+ );
276
+ ```
277
+
278
+ ### Parameters
279
+
280
+ |Name | Type | Description | Notes|
281
+ |------------- | ------------- | ------------- | -------------|
282
+ | **id** | [**number**] | Order ID | defaults to undefined|
283
+
284
+
285
+ ### Return type
286
+
287
+ **OrderDetailsDTO**
288
+
289
+ ### Authorization
290
+
291
+ No authorization required
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: Not defined
296
+ - **Accept**: application/json
297
+
298
+
299
+ ### HTTP response details
300
+ | Status code | Description | Response headers |
301
+ |-------------|-------------|------------------|
302
+ |**200** | Order Details | - |
303
+ |**400** | Bad Request | - |
304
+ |**401** | Unauthorised | - |
305
+ |**403** | Access Denied | - |
306
+
307
+ [[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)
308
+
124
309
  # **getGetEditableOrder**
125
310
  > DetailedOrderRequestDTO getGetEditableOrder()
126
311
 
@@ -175,6 +360,60 @@ No authorization required
175
360
 
176
361
  [[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
362
 
363
+ # **getGetOrderPdf**
364
+ > File getGetOrderPdf()
365
+
366
+ Download Order PDF
367
+
368
+ ### Example
369
+
370
+ ```typescript
371
+ import {
372
+ OrdersApi,
373
+ Configuration
374
+ } from 'yellowgrid-api-ts';
375
+
376
+ const configuration = new Configuration();
377
+ const apiInstance = new OrdersApi(configuration);
378
+
379
+ let id: number; //Order ID (default to undefined)
380
+
381
+ const { status, data } = await apiInstance.getGetOrderPdf(
382
+ id
383
+ );
384
+ ```
385
+
386
+ ### Parameters
387
+
388
+ |Name | Type | Description | Notes|
389
+ |------------- | ------------- | ------------- | -------------|
390
+ | **id** | [**number**] | Order ID | defaults to undefined|
391
+
392
+
393
+ ### Return type
394
+
395
+ **File**
396
+
397
+ ### Authorization
398
+
399
+ No authorization required
400
+
401
+ ### HTTP request headers
402
+
403
+ - **Content-Type**: Not defined
404
+ - **Accept**: application/pdf
405
+
406
+
407
+ ### HTTP response details
408
+ | Status code | Description | Response headers |
409
+ |-------------|-------------|------------------|
410
+ |**200** | Order PDF | - |
411
+ |**400** | Bad Request | - |
412
+ |**401** | Unauthorised | - |
413
+ |**403** | Access Denied | - |
414
+
415
+ [[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)
416
+
178
417
  # **getGetOrders**
179
418
  > OrderSummariesModel getGetOrders()
180
419
 
@@ -247,10 +486,10 @@ No authorization required
247
486
 
248
487
  [[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
488
 
250
- # **postCreateAdminOrder**
251
- > Array<OrderSummaryDTO> postCreateAdminOrder()
489
+ # **postAddOrderNote**
490
+ > postAddOrderNote()
252
491
 
253
- Create An Order (Admin)
492
+ Add Order Note
254
493
 
255
494
  ### Example
256
495
 
@@ -258,18 +497,18 @@ Create An Order (Admin)
258
497
  import {
259
498
  OrdersApi,
260
499
  Configuration,
261
- AdminOrderRequestDTO
500
+ PostAddOrderNoteRequest
262
501
  } from 'yellowgrid-api-ts';
263
502
 
264
503
  const configuration = new Configuration();
265
504
  const apiInstance = new OrdersApi(configuration);
266
505
 
267
- let readonly: boolean; //Readonly Order (optional) (default to undefined)
268
- let adminOrderRequestDTO: AdminOrderRequestDTO; //Admin Order Request (optional)
506
+ let id: number; //Order ID (default to undefined)
507
+ let postAddOrderNoteRequest: PostAddOrderNoteRequest; // (optional)
269
508
 
270
- const { status, data } = await apiInstance.postCreateAdminOrder(
271
- readonly,
272
- adminOrderRequestDTO
509
+ const { status, data } = await apiInstance.postAddOrderNote(
510
+ id,
511
+ postAddOrderNoteRequest
273
512
  );
274
513
  ```
275
514
 
@@ -277,13 +516,13 @@ const { status, data } = await apiInstance.postCreateAdminOrder(
277
516
 
278
517
  |Name | Type | Description | Notes|
279
518
  |------------- | ------------- | ------------- | -------------|
280
- | **adminOrderRequestDTO** | **AdminOrderRequestDTO**| Admin Order Request | |
281
- | **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
519
+ | **postAddOrderNoteRequest** | **PostAddOrderNoteRequest**| | |
520
+ | **id** | [**number**] | Order ID | defaults to undefined|
282
521
 
283
522
 
284
523
  ### Return type
285
524
 
286
- **Array<OrderSummaryDTO>**
525
+ void (empty response body)
287
526
 
288
527
  ### Authorization
289
528
 
@@ -292,23 +531,23 @@ No authorization required
292
531
  ### HTTP request headers
293
532
 
294
533
  - **Content-Type**: application/json
295
- - **Accept**: application/json
534
+ - **Accept**: Not defined
296
535
 
297
536
 
298
537
  ### HTTP response details
299
538
  | Status code | Description | Response headers |
300
539
  |-------------|-------------|------------------|
301
- |**200** | Order Summaries | - |
540
+ |**200** | No Response | - |
302
541
  |**400** | Bad Request | - |
303
542
  |**401** | Unauthorised | - |
304
543
  |**403** | Access Denied | - |
305
544
 
306
545
  [[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
546
 
308
- # **postGetOrders**
309
- > Array<OrderSummaryDTO> postGetOrders()
547
+ # **postCreateAdminOrder**
548
+ > Array<OrderSummaryDTO> postCreateAdminOrder()
310
549
 
311
- Create An Order (Beta)
550
+ Create An Order (Admin)
312
551
 
313
552
  ### Example
314
553
 
@@ -316,18 +555,18 @@ Create An Order (Beta)
316
555
  import {
317
556
  OrdersApi,
318
557
  Configuration,
319
- CustomerOrderRequestDTO
558
+ AdminOrderRequestDTO
320
559
  } from 'yellowgrid-api-ts';
321
560
 
322
561
  const configuration = new Configuration();
323
562
  const apiInstance = new OrdersApi(configuration);
324
563
 
325
564
  let readonly: boolean; //Readonly Order (optional) (default to undefined)
326
- let customerOrderRequestDTO: CustomerOrderRequestDTO; //Order Request (optional)
565
+ let adminOrderRequestDTO: AdminOrderRequestDTO; //Admin Order Request (optional)
327
566
 
328
- const { status, data } = await apiInstance.postGetOrders(
567
+ const { status, data } = await apiInstance.postCreateAdminOrder(
329
568
  readonly,
330
- customerOrderRequestDTO
569
+ adminOrderRequestDTO
331
570
  );
332
571
  ```
333
572
 
@@ -335,7 +574,7 @@ const { status, data } = await apiInstance.postGetOrders(
335
574
 
336
575
  |Name | Type | Description | Notes|
337
576
  |------------- | ------------- | ------------- | -------------|
338
- | **customerOrderRequestDTO** | **CustomerOrderRequestDTO**| Order Request | |
577
+ | **adminOrderRequestDTO** | **AdminOrderRequestDTO**| Admin Order Request | |
339
578
  | **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
340
579
 
341
580
 
@@ -363,6 +602,601 @@ No authorization required
363
602
 
364
603
  [[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)
365
604
 
605
+ # **postCreateConsignment**
606
+ > ShipmentModel postCreateConsignment()
607
+
608
+ Create Shipping Consignment
609
+
610
+ ### Example
611
+
612
+ ```typescript
613
+ import {
614
+ OrdersApi,
615
+ Configuration,
616
+ ShippingRequestDTO
617
+ } from 'yellowgrid-api-ts';
618
+
619
+ const configuration = new Configuration();
620
+ const apiInstance = new OrdersApi(configuration);
621
+
622
+ let id: number; //Order ID (default to undefined)
623
+ let shipmentId: number; //Shipment ID (default to undefined)
624
+ let shippingRequestDTO: ShippingRequestDTO; //Shipping Request (optional)
625
+
626
+ const { status, data } = await apiInstance.postCreateConsignment(
627
+ id,
628
+ shipmentId,
629
+ shippingRequestDTO
630
+ );
631
+ ```
632
+
633
+ ### Parameters
634
+
635
+ |Name | Type | Description | Notes|
636
+ |------------- | ------------- | ------------- | -------------|
637
+ | **shippingRequestDTO** | **ShippingRequestDTO**| Shipping Request | |
638
+ | **id** | [**number**] | Order ID | defaults to undefined|
639
+ | **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
640
+
641
+
642
+ ### Return type
643
+
644
+ **ShipmentModel**
645
+
646
+ ### Authorization
647
+
648
+ No authorization required
649
+
650
+ ### HTTP request headers
651
+
652
+ - **Content-Type**: application/json
653
+ - **Accept**: application/json
654
+
655
+
656
+ ### HTTP response details
657
+ | Status code | Description | Response headers |
658
+ |-------------|-------------|------------------|
659
+ |**200** | Shipping Information | - |
660
+ |**400** | Bad Request | - |
661
+ |**401** | Unauthorised | - |
662
+ |**403** | Access Denied | - |
663
+
664
+ [[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)
665
+
666
+ # **postCreateShipment**
667
+ > ShipmentModel postCreateShipment()
668
+
669
+ Create Shipment (Admin)
670
+
671
+ ### Example
672
+
673
+ ```typescript
674
+ import {
675
+ OrdersApi,
676
+ Configuration,
677
+ ShipmentRequestDTO
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
+ let batchId: number; //Batch ID (default to undefined)
685
+ let shipmentRequestDTO: ShipmentRequestDTO; //Shipment Request (optional)
686
+
687
+ const { status, data } = await apiInstance.postCreateShipment(
688
+ id,
689
+ batchId,
690
+ shipmentRequestDTO
691
+ );
692
+ ```
693
+
694
+ ### Parameters
695
+
696
+ |Name | Type | Description | Notes|
697
+ |------------- | ------------- | ------------- | -------------|
698
+ | **shipmentRequestDTO** | **ShipmentRequestDTO**| Shipment Request | |
699
+ | **id** | [**number**] | Order ID | defaults to undefined|
700
+ | **batchId** | [**number**] | Batch ID | defaults to undefined|
701
+
702
+
703
+ ### Return type
704
+
705
+ **ShipmentModel**
706
+
707
+ ### Authorization
708
+
709
+ No authorization required
710
+
711
+ ### HTTP request headers
712
+
713
+ - **Content-Type**: application/json
714
+ - **Accept**: application/json
715
+
716
+
717
+ ### HTTP response details
718
+ | Status code | Description | Response headers |
719
+ |-------------|-------------|------------------|
720
+ |**200** | Shipment | - |
721
+ |**400** | Bad Request | - |
722
+ |**401** | Unauthorised | - |
723
+ |**403** | Access Denied | - |
724
+
725
+ [[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)
726
+
727
+ # **postGetOrders**
728
+ > Array<OrderSummaryDTO> postGetOrders()
729
+
730
+ Create An Order (Beta)
731
+
732
+ ### Example
733
+
734
+ ```typescript
735
+ import {
736
+ OrdersApi,
737
+ Configuration,
738
+ CustomerOrderRequestDTO
739
+ } from 'yellowgrid-api-ts';
740
+
741
+ const configuration = new Configuration();
742
+ const apiInstance = new OrdersApi(configuration);
743
+
744
+ let readonly: boolean; //Readonly Order (optional) (default to undefined)
745
+ let customerOrderRequestDTO: CustomerOrderRequestDTO; //Order Request (optional)
746
+
747
+ const { status, data } = await apiInstance.postGetOrders(
748
+ readonly,
749
+ customerOrderRequestDTO
750
+ );
751
+ ```
752
+
753
+ ### Parameters
754
+
755
+ |Name | Type | Description | Notes|
756
+ |------------- | ------------- | ------------- | -------------|
757
+ | **customerOrderRequestDTO** | **CustomerOrderRequestDTO**| Order Request | |
758
+ | **readonly** | [**boolean**] | Readonly Order | (optional) defaults to undefined|
759
+
760
+
761
+ ### Return type
762
+
763
+ **Array<OrderSummaryDTO>**
764
+
765
+ ### Authorization
766
+
767
+ No authorization required
768
+
769
+ ### HTTP request headers
770
+
771
+ - **Content-Type**: application/json
772
+ - **Accept**: application/json
773
+
774
+
775
+ ### HTTP response details
776
+ | Status code | Description | Response headers |
777
+ |-------------|-------------|------------------|
778
+ |**200** | Order Summaries | - |
779
+ |**400** | Bad Request | - |
780
+ |**401** | Unauthorised | - |
781
+ |**403** | Access Denied | - |
782
+
783
+ [[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)
784
+
785
+ # **postIssueCredit**
786
+ > CreditNoteModel postIssueCredit()
787
+
788
+ Issue Credit (Admin)
789
+
790
+ ### Example
791
+
792
+ ```typescript
793
+ import {
794
+ OrdersApi,
795
+ Configuration,
796
+ CreditNoteDTO
797
+ } from 'yellowgrid-api-ts';
798
+
799
+ const configuration = new Configuration();
800
+ const apiInstance = new OrdersApi(configuration);
801
+
802
+ let id: number; //Order ID (default to undefined)
803
+ let creditNoteDTO: CreditNoteDTO; //Credit Request (optional)
804
+
805
+ const { status, data } = await apiInstance.postIssueCredit(
806
+ id,
807
+ creditNoteDTO
808
+ );
809
+ ```
810
+
811
+ ### Parameters
812
+
813
+ |Name | Type | Description | Notes|
814
+ |------------- | ------------- | ------------- | -------------|
815
+ | **creditNoteDTO** | **CreditNoteDTO**| Credit Request | |
816
+ | **id** | [**number**] | Order ID | defaults to undefined|
817
+
818
+
819
+ ### Return type
820
+
821
+ **CreditNoteModel**
822
+
823
+ ### Authorization
824
+
825
+ No authorization required
826
+
827
+ ### HTTP request headers
828
+
829
+ - **Content-Type**: application/json
830
+ - **Accept**: application/json
831
+
832
+
833
+ ### HTTP response details
834
+ | Status code | Description | Response headers |
835
+ |-------------|-------------|------------------|
836
+ |**200** | Credit Note | - |
837
+ |**400** | Bad Request | - |
838
+ |**401** | Unauthorised | - |
839
+ |**403** | Access Denied | - |
840
+
841
+ [[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)
842
+
843
+ # **postPrintShippingLabel**
844
+ > File postPrintShippingLabel()
845
+
846
+ Print Shipment Label
847
+
848
+ ### Example
849
+
850
+ ```typescript
851
+ import {
852
+ OrdersApi,
853
+ Configuration
854
+ } from 'yellowgrid-api-ts';
855
+
856
+ const configuration = new Configuration();
857
+ const apiInstance = new OrdersApi(configuration);
858
+
859
+ let id: number; //Order ID (default to undefined)
860
+ let shipmentId: number; //Shipment ID (default to undefined)
861
+ let printer: 1 | 2 | 3; //Printer (default to undefined)
862
+
863
+ const { status, data } = await apiInstance.postPrintShippingLabel(
864
+ id,
865
+ shipmentId,
866
+ printer
867
+ );
868
+ ```
869
+
870
+ ### Parameters
871
+
872
+ |Name | Type | Description | Notes|
873
+ |------------- | ------------- | ------------- | -------------|
874
+ | **id** | [**number**] | Order ID | defaults to undefined|
875
+ | **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
876
+ | **printer** | [**1 | 2 | 3**]**Array<1 &#124; 2 &#124; 3>** | Printer | defaults to undefined|
877
+
878
+
879
+ ### Return type
880
+
881
+ **File**
882
+
883
+ ### Authorization
884
+
885
+ No authorization required
886
+
887
+ ### HTTP request headers
888
+
889
+ - **Content-Type**: Not defined
890
+ - **Accept**: text/html, application/json
891
+
892
+
893
+ ### HTTP response details
894
+ | Status code | Description | Response headers |
895
+ |-------------|-------------|------------------|
896
+ |**200** | Shipping Label | - |
897
+ |**400** | Bad Request | - |
898
+ |**401** | Unauthorised | - |
899
+ |**403** | Access Denied | - |
900
+
901
+ [[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)
902
+
903
+ # **postSendOrderEmail**
904
+ > postSendOrderEmail()
905
+
906
+ Send Order Email
907
+
908
+ ### Example
909
+
910
+ ```typescript
911
+ import {
912
+ OrdersApi,
913
+ Configuration
914
+ } from 'yellowgrid-api-ts';
915
+
916
+ const configuration = new Configuration();
917
+ const apiInstance = new OrdersApi(configuration);
918
+
919
+ let id: number; //Order ID (default to undefined)
920
+ let email: string; //Email Address (default to undefined)
921
+
922
+ const { status, data } = await apiInstance.postSendOrderEmail(
923
+ id,
924
+ email
925
+ );
926
+ ```
927
+
928
+ ### Parameters
929
+
930
+ |Name | Type | Description | Notes|
931
+ |------------- | ------------- | ------------- | -------------|
932
+ | **id** | [**number**] | Order ID | defaults to undefined|
933
+ | **email** | [**string**] | Email Address | defaults to undefined|
934
+
935
+
936
+ ### Return type
937
+
938
+ void (empty response body)
939
+
940
+ ### Authorization
941
+
942
+ No authorization required
943
+
944
+ ### HTTP request headers
945
+
946
+ - **Content-Type**: Not defined
947
+ - **Accept**: Not defined
948
+
949
+
950
+ ### HTTP response details
951
+ | Status code | Description | Response headers |
952
+ |-------------|-------------|------------------|
953
+ |**200** | No Response | - |
954
+ |**400** | Bad Request | - |
955
+ |**401** | Unauthorised | - |
956
+ |**403** | Access Denied | - |
957
+
958
+ [[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)
959
+
960
+ # **postSendSupplierEmail**
961
+ > postSendSupplierEmail()
962
+
963
+ Send Supplier Email
964
+
965
+ ### Example
966
+
967
+ ```typescript
968
+ import {
969
+ OrdersApi,
970
+ Configuration
971
+ } from 'yellowgrid-api-ts';
972
+
973
+ const configuration = new Configuration();
974
+ const apiInstance = new OrdersApi(configuration);
975
+
976
+ let id: number; //Order ID (default to undefined)
977
+ let batchId: number; //Batch ID (default to undefined)
978
+
979
+ const { status, data } = await apiInstance.postSendSupplierEmail(
980
+ id,
981
+ batchId
982
+ );
983
+ ```
984
+
985
+ ### Parameters
986
+
987
+ |Name | Type | Description | Notes|
988
+ |------------- | ------------- | ------------- | -------------|
989
+ | **id** | [**number**] | Order ID | defaults to undefined|
990
+ | **batchId** | [**number**] | Batch ID | defaults to undefined|
991
+
992
+
993
+ ### Return type
994
+
995
+ void (empty response body)
996
+
997
+ ### Authorization
998
+
999
+ No authorization required
1000
+
1001
+ ### HTTP request headers
1002
+
1003
+ - **Content-Type**: Not defined
1004
+ - **Accept**: Not defined
1005
+
1006
+
1007
+ ### HTTP response details
1008
+ | Status code | Description | Response headers |
1009
+ |-------------|-------------|------------------|
1010
+ |**200** | No Response | - |
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
+ # **postSplitOrder**
1018
+ > Array<OrderSummaryDTO> postSplitOrder()
1019
+
1020
+ Split Order
1021
+
1022
+ ### Example
1023
+
1024
+ ```typescript
1025
+ import {
1026
+ OrdersApi,
1027
+ Configuration,
1028
+ PostSplitOrderRequest
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 postSplitOrderRequest: PostSplitOrderRequest; // (optional)
1036
+
1037
+ const { status, data } = await apiInstance.postSplitOrder(
1038
+ id,
1039
+ postSplitOrderRequest
1040
+ );
1041
+ ```
1042
+
1043
+ ### Parameters
1044
+
1045
+ |Name | Type | Description | Notes|
1046
+ |------------- | ------------- | ------------- | -------------|
1047
+ | **postSplitOrderRequest** | **PostSplitOrderRequest**| | |
1048
+ | **id** | [**number**] | Order ID | defaults to undefined|
1049
+
1050
+
1051
+ ### Return type
1052
+
1053
+ **Array<OrderSummaryDTO>**
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** | Order Summaries | - |
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
+ # **putAllocateItems**
1076
+ > putAllocateItems()
1077
+
1078
+ Allocate Items To Supplier
1079
+
1080
+ ### Example
1081
+
1082
+ ```typescript
1083
+ import {
1084
+ OrdersApi,
1085
+ Configuration,
1086
+ PutAllocateItemsRequest
1087
+ } from 'yellowgrid-api-ts';
1088
+
1089
+ const configuration = new Configuration();
1090
+ const apiInstance = new OrdersApi(configuration);
1091
+
1092
+ let id: number; //Order ID (default to undefined)
1093
+ let supplierId: number; //Supplier ID (default to undefined)
1094
+ let putAllocateItemsRequest: PutAllocateItemsRequest; // (optional)
1095
+
1096
+ const { status, data } = await apiInstance.putAllocateItems(
1097
+ id,
1098
+ supplierId,
1099
+ putAllocateItemsRequest
1100
+ );
1101
+ ```
1102
+
1103
+ ### Parameters
1104
+
1105
+ |Name | Type | Description | Notes|
1106
+ |------------- | ------------- | ------------- | -------------|
1107
+ | **putAllocateItemsRequest** | **PutAllocateItemsRequest**| | |
1108
+ | **id** | [**number**] | Order ID | defaults to undefined|
1109
+ | **supplierId** | [**number**] | Supplier ID | defaults to undefined|
1110
+
1111
+
1112
+ ### Return type
1113
+
1114
+ void (empty response body)
1115
+
1116
+ ### Authorization
1117
+
1118
+ No authorization required
1119
+
1120
+ ### HTTP request headers
1121
+
1122
+ - **Content-Type**: application/json
1123
+ - **Accept**: Not defined
1124
+
1125
+
1126
+ ### HTTP response details
1127
+ | Status code | Description | Response headers |
1128
+ |-------------|-------------|------------------|
1129
+ |**200** | No Response | - |
1130
+ |**400** | Bad Request | - |
1131
+ |**401** | Unauthorised | - |
1132
+ |**403** | Access Denied | - |
1133
+
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
+
1136
+ # **putCreateShipment**
1137
+ > ShipmentModel putCreateShipment()
1138
+
1139
+ Update Shipment (Admin)
1140
+
1141
+ ### Example
1142
+
1143
+ ```typescript
1144
+ import {
1145
+ OrdersApi,
1146
+ Configuration,
1147
+ ShipmentRequestDTO
1148
+ } from 'yellowgrid-api-ts';
1149
+
1150
+ const configuration = new Configuration();
1151
+ const apiInstance = new OrdersApi(configuration);
1152
+
1153
+ let id: number; //Order ID (default to undefined)
1154
+ let batchId: number; //Batch ID (default to undefined)
1155
+ let shipmentId: number; //Shipment ID (default to undefined)
1156
+ let shipmentRequestDTO: ShipmentRequestDTO; //Shipment Request (optional)
1157
+
1158
+ const { status, data } = await apiInstance.putCreateShipment(
1159
+ id,
1160
+ batchId,
1161
+ shipmentId,
1162
+ shipmentRequestDTO
1163
+ );
1164
+ ```
1165
+
1166
+ ### Parameters
1167
+
1168
+ |Name | Type | Description | Notes|
1169
+ |------------- | ------------- | ------------- | -------------|
1170
+ | **shipmentRequestDTO** | **ShipmentRequestDTO**| Shipment Request | |
1171
+ | **id** | [**number**] | Order ID | defaults to undefined|
1172
+ | **batchId** | [**number**] | Batch ID | defaults to undefined|
1173
+ | **shipmentId** | [**number**] | Shipment ID | defaults to undefined|
1174
+
1175
+
1176
+ ### Return type
1177
+
1178
+ **ShipmentModel**
1179
+
1180
+ ### Authorization
1181
+
1182
+ No authorization required
1183
+
1184
+ ### HTTP request headers
1185
+
1186
+ - **Content-Type**: application/json
1187
+ - **Accept**: application/json
1188
+
1189
+
1190
+ ### HTTP response details
1191
+ | Status code | Description | Response headers |
1192
+ |-------------|-------------|------------------|
1193
+ |**200** | Shipment | - |
1194
+ |**400** | Bad Request | - |
1195
+ |**401** | Unauthorised | - |
1196
+ |**403** | Access Denied | - |
1197
+
1198
+ [[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
+
366
1200
  # **putUpdateAdminOrder**
367
1201
  > Array<OrderSummaryDTO> putUpdateAdminOrder()
368
1202