@teemill/orders 1.29.0 → 1.29.3

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/docs/OrdersApi.md CHANGED
@@ -15,7 +15,7 @@ All URIs are relative to *https://api.localhost:8080*
15
15
  |[**importOrders**](#importorders) | **POST** /v1/orders/imports | Import orders|
16
16
  |[**listOrderImportGroups**](#listorderimportgroups) | **GET** /v1/orders/imports/{importId}/groups | List order import groups|
17
17
  |[**listOrderImports**](#listorderimports) | **GET** /v1/orders/imports | List order imports|
18
- |[**retryPlatformPayment**](#retryplatformpayment) | **POST** /v1/orders/{orderId}/retryPlatformPayment | Retry|
18
+ |[**retryPlatformPayment**](#retryplatformpayment) | **POST** /v1/orders/{orderId}/retryPlatformPayment | Retry platform payment|
19
19
 
20
20
  # **cancelOrder**
21
21
  > cancelOrder()
@@ -73,7 +73,7 @@ void (empty response body)
73
73
  |**204** | Order has been cancelled | - |
74
74
  |**400** | Failed validation | - |
75
75
  |**401** | Not authorised to access this resource | - |
76
- |**403** | Refuse to authorize | - |
76
+ |**403** | Forbidden — you do not have permission to perform this action | - |
77
77
  |**404** | Resource not found | - |
78
78
  |**500** | Unknown server error | - |
79
79
 
@@ -139,7 +139,7 @@ const { status, data } = await apiInstance.confirmOrder(
139
139
  |**200** | Order schema | - |
140
140
  |**400** | Failed validation for the confirm request. When the error relates to item fulfillment issues (e.g. stock or availability problems), the response includes an `errors` array with details on each affected item. | - |
141
141
  |**401** | Not authorised to access this resource | - |
142
- |**403** | Refuse to authorize | - |
142
+ |**403** | Forbidden — you do not have permission to perform this action | - |
143
143
  |**404** | Resource not found | - |
144
144
  |**500** | Unknown server error | - |
145
145
 
@@ -202,7 +202,7 @@ const { status, data } = await apiInstance.createOrder(
202
202
  |**201** | Order schema | - |
203
203
  |**400** | Failed validation | - |
204
204
  |**401** | Not authorised to access this resource | - |
205
- |**403** | Refuse to authorize | - |
205
+ |**403** | Forbidden — you do not have permission to perform this action | - |
206
206
  |**500** | Unknown server error | - |
207
207
 
208
208
  [[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)
@@ -260,7 +260,7 @@ const { status, data } = await apiInstance.downloadInvoice(
260
260
  |**200** | The invoice PDF | - |
261
261
  |**400** | Failed validation | - |
262
262
  |**401** | Not authorised to access this resource | - |
263
- |**403** | Refuse to authorize | - |
263
+ |**403** | Forbidden — you do not have permission to perform this action | - |
264
264
  |**404** | Resource not found | - |
265
265
  |**500** | Unknown server error | - |
266
266
 
@@ -329,7 +329,7 @@ const { status, data } = await apiInstance.exportOrders(
329
329
  |**202** | Export started. When complete, the export will be available for download from a notification within PodOS Dashboard. | - |
330
330
  |**400** | Failed validation | - |
331
331
  |**401** | Not authorised to access this resource | - |
332
- |**403** | Refuse to authorize | - |
332
+ |**403** | Forbidden — you do not have permission to perform this action | - |
333
333
  |**409** | Conflict | - |
334
334
  |**500** | Unknown server error | - |
335
335
 
@@ -391,7 +391,7 @@ const { status, data } = await apiInstance.getOrder(
391
391
  |**200** | Order schema | - |
392
392
  |**400** | Failed validation | - |
393
393
  |**401** | Not authorised to access this resource | - |
394
- |**403** | Refuse to authorize | - |
394
+ |**403** | Forbidden — you do not have permission to perform this action | - |
395
395
  |**404** | Resource not found | - |
396
396
  |**500** | Unknown server error | - |
397
397
 
@@ -450,7 +450,7 @@ const { status, data } = await apiInstance.getOrderImport(
450
450
  |**200** | Summary status for a single order import. | - |
451
451
  |**400** | Failed validation | - |
452
452
  |**401** | Not authorised to access this resource | - |
453
- |**403** | Refuse to authorize | - |
453
+ |**403** | Forbidden — you do not have permission to perform this action | - |
454
454
  |**404** | Resource not found | - |
455
455
  |**500** | Unknown server error | - |
456
456
 
@@ -533,7 +533,7 @@ const { status, data } = await apiInstance.getOrders(
533
533
  |**200** | List of orders and pagination metadata | - |
534
534
  |**400** | Failed validation | - |
535
535
  |**401** | Not authorised to access this resource | - |
536
- |**403** | Refuse to authorize | - |
536
+ |**403** | Forbidden — you do not have permission to perform this action | - |
537
537
  |**500** | Unknown server error | - |
538
538
 
539
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)
@@ -591,7 +591,7 @@ const { status, data } = await apiInstance.importOrders(
591
591
  |**202** | CSV file was accepted; orders will be imported asynchronously. | - |
592
592
  |**400** | Failed validation | - |
593
593
  |**401** | Not authorised to access this resource | - |
594
- |**403** | Refuse to authorize | - |
594
+ |**403** | Forbidden — you do not have permission to perform this action | - |
595
595
  |**404** | Resource not found | - |
596
596
  |**500** | Unknown server error | - |
597
597
 
@@ -656,7 +656,7 @@ const { status, data } = await apiInstance.listOrderImportGroups(
656
656
  |**200** | Paginated group-level outcomes for an order import. | - |
657
657
  |**400** | Failed validation | - |
658
658
  |**401** | Not authorised to access this resource | - |
659
- |**403** | Refuse to authorize | - |
659
+ |**403** | Forbidden — you do not have permission to perform this action | - |
660
660
  |**404** | Resource not found | - |
661
661
  |**500** | Unknown server error | - |
662
662
 
@@ -718,7 +718,7 @@ const { status, data } = await apiInstance.listOrderImports(
718
718
  |**200** | Paginated list of order imports and their status summaries. | - |
719
719
  |**400** | Failed validation | - |
720
720
  |**401** | Not authorised to access this resource | - |
721
- |**403** | Refuse to authorize | - |
721
+ |**403** | Forbidden — you do not have permission to perform this action | - |
722
722
  |**500** | Unknown server error | - |
723
723
 
724
724
  [[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)
@@ -779,7 +779,7 @@ const { status, data } = await apiInstance.retryPlatformPayment(
779
779
  |**200** | Order schema | - |
780
780
  |**400** | Failed validation | - |
781
781
  |**401** | Not authorised to access this resource | - |
782
- |**403** | Refuse to authorize | - |
782
+ |**403** | Forbidden — you do not have permission to perform this action | - |
783
783
  |**404** | Resource not found | - |
784
784
  |**500** | Unknown server error | - |
785
785
 
@@ -6,11 +6,11 @@ The item cannot be fulfilled at all — either it is out of stock entirely, or t
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **code** | **string** | | [default to undefined]
9
+ **code** | **string** | The error code identifying this as a product unavailable error. | [default to undefined]
10
10
  **message** | **string** | Human-readable description including the product name. | [default to undefined]
11
11
  **productTitle** | **string** | Display name of the product. | [default to undefined]
12
- **variantId** | **string** | Unique object identifier | [default to undefined]
13
- **variantRef** | **string** | A reference to the variant being ordered | [default to undefined]
12
+ **variantId** | **string** | The unique identifier of the unavailable variant. | [default to undefined]
13
+ **variantRef** | **string** | A URI reference to the unavailable variant. | [default to undefined]
14
14
  **requestedQuantity** | **number** | The quantity that was requested in the order. | [default to undefined]
15
15
  **availableQuantity** | **number** | Always 0 for this error type. | [default to undefined]
16
16
  **shortage** | **number** | The full requested quantity, representing the total unfulfillable amount. | [default to undefined]
@@ -1,15 +1,16 @@
1
1
  # StockConflictError
2
2
 
3
+ An error indicating that one or more items in the order cannot be fulfilled due to stock or product availability issues. Use the \'code\' field to determine the specific error type.
3
4
 
4
5
  ## Properties
5
6
 
6
7
  Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
- **code** | **string** | | [default to undefined]
9
+ **code** | **string** | The error code identifying this as a product unavailable error. | [default to undefined]
9
10
  **message** | **string** | Human-readable description including the product name. | [default to undefined]
10
11
  **productTitle** | **string** | Display name of the product. | [default to undefined]
11
- **variantId** | **string** | Unique object identifier | [default to undefined]
12
- **variantRef** | **string** | A reference to the variant being ordered | [default to undefined]
12
+ **variantId** | **string** | The unique identifier of the unavailable variant. | [default to undefined]
13
+ **variantRef** | **string** | A URI reference to the unavailable variant. | [default to undefined]
13
14
  **requestedQuantity** | **number** | The quantity that was requested in the order. | [default to undefined]
14
15
  **availableQuantity** | **number** | Always 0 for this error type. | [default to undefined]
15
16
  **shortage** | **number** | The full requested quantity, representing the total unfulfillable amount. | [default to undefined]
@@ -6,11 +6,11 @@ The requested quantity exceeds available stock. The item can still be ordered in
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **code** | **string** | | [default to undefined]
9
+ **code** | **string** | The error code identifying this as a stock unavailable error. | [default to undefined]
10
10
  **message** | **string** | Human-readable description including the product name and available quantity. | [default to undefined]
11
11
  **productTitle** | **string** | Display name of the product. | [default to undefined]
12
- **variantId** | **string** | Unique object identifier | [default to undefined]
13
- **variantRef** | **string** | A reference to the variant being ordered | [default to undefined]
12
+ **variantId** | **string** | The unique identifier of the variant with insufficient stock. | [default to undefined]
13
+ **variantRef** | **string** | A URI reference to the variant with insufficient stock. | [default to undefined]
14
14
  **requestedQuantity** | **number** | The quantity that was requested in the order. | [default to undefined]
15
15
  **availableQuantity** | **number** | The quantity currently available for fulfillment. | [default to undefined]
16
16
  **shortage** | **number** | The difference between requested and available quantity (positive value indicating the deficit). | [default to undefined]
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.29.0
7
+ * The version of the OpenAPI document: 1.29.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/orders",
3
- "version": "1.29.0",
3
+ "version": "1.29.3",
4
4
  "description": "OpenAPI client for @teemill/orders",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "prepare": "npm run build"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "1.13.5"
27
+ "axios": "1.15.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "12.11.5 - 12.20.42",