@teemill/orders 1.24.1 → 1.26.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/README.md +14 -9
- package/api.ts +560 -137
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +499 -137
- package/dist/api.js +127 -32
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +499 -137
- package/dist/esm/api.js +126 -31
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Address.md +9 -9
- package/docs/ApiError.md +3 -2
- package/docs/ConfirmOrderFulfillment.md +4 -3
- package/docs/ConfirmOrderFulfillmentWithShipment.md +3 -2
- package/docs/ConfirmOrderFulfillmentWithShippingMethod.md +3 -2
- package/docs/ConfirmOrderValidationError.md +2 -0
- package/docs/ContactInformation.md +2 -2
- package/docs/ContactInformation1.md +23 -0
- package/docs/CreateOrder.md +7 -7
- package/docs/CreateOrderItem.md +24 -0
- package/docs/CustomsInformation.md +4 -4
- package/docs/CustomsInformation1.md +5 -4
- package/docs/DeliveryEstimates.md +4 -3
- package/docs/Fulfiller.md +25 -0
- package/docs/FulfillerLocation.md +23 -0
- package/docs/Fulfillment.md +9 -8
- package/docs/FulfillmentItem.md +3 -3
- package/docs/Image.md +5 -5
- package/docs/ImportOrders202Response.md +20 -0
- package/docs/Order.md +18 -17
- package/docs/OrderItem.md +10 -9
- package/docs/OrderPaymentMethod.md +21 -0
- package/docs/OrderTracking.md +4 -3
- package/docs/OrdersApi.md +91 -31
- package/docs/Origin.md +3 -2
- package/docs/PaymentAttempt.md +4 -5
- package/docs/PaymentMethod.md +2 -1
- package/docs/Price.md +3 -3
- package/docs/ProductUnavailableError.md +35 -0
- package/docs/RecipientCost.md +23 -0
- package/docs/Shipment.md +21 -0
- package/docs/ShippingMethod.md +8 -7
- package/docs/Status.md +1 -0
- package/docs/StockConflictError.md +34 -0
- package/docs/StockUnavailableError.md +35 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/PaymentMethod.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# PaymentMethod
|
|
2
2
|
|
|
3
|
+
The payment method used for this order.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**type** | **string** |
|
|
9
|
+
**type** | **string** | The type of payment method used. | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
package/docs/Price.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Price
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A monetary value with its currency.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**amount** | **string** |
|
|
10
|
-
**currencyCode** | **string** |
|
|
9
|
+
**amount** | **string** | The monetary amount as a decimal string. | [optional] [default to undefined]
|
|
10
|
+
**currencyCode** | **string** | ISO 4217 currency code. | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ProductUnavailableError
|
|
2
|
+
|
|
3
|
+
The item cannot be fulfilled at all — either it is out of stock entirely, or the assigned fulfiller cannot produce it (e.g. missing machinery or variant not configured).
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | | [default to undefined]
|
|
10
|
+
**message** | **string** | Human-readable description including the product name. | [default to undefined]
|
|
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]
|
|
14
|
+
**requestedQuantity** | **number** | The quantity that was requested in the order. | [default to undefined]
|
|
15
|
+
**availableQuantity** | **number** | Always 0 for this error type. | [default to undefined]
|
|
16
|
+
**shortage** | **number** | The full requested quantity, representing the total unfulfillable amount. | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { ProductUnavailableError } from '@teemill/orders';
|
|
22
|
+
|
|
23
|
+
const instance: ProductUnavailableError = {
|
|
24
|
+
code,
|
|
25
|
+
message,
|
|
26
|
+
productTitle,
|
|
27
|
+
variantId,
|
|
28
|
+
variantRef,
|
|
29
|
+
requestedQuantity,
|
|
30
|
+
availableQuantity,
|
|
31
|
+
shortage,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# RecipientCost
|
|
2
|
+
|
|
3
|
+
The price you charged the end customer for this item. Highly recommended for international orders as it is used for customs declarations.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**amount** | **string** | The monetary amount as a decimal string. | [default to undefined]
|
|
10
|
+
**currencyCode** | **string** | ISO 4217 currency code. | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RecipientCost } from '@teemill/orders';
|
|
16
|
+
|
|
17
|
+
const instance: RecipientCost = {
|
|
18
|
+
amount,
|
|
19
|
+
currencyCode,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Shipment.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Shipment
|
|
2
|
+
|
|
3
|
+
Your own shipping label details.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**image** | **string** | A URL to the shipping label image or PDF. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Shipment } from '@teemill/orders';
|
|
15
|
+
|
|
16
|
+
const instance: Shipment = {
|
|
17
|
+
image,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[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/ShippingMethod.md
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
# ShippingMethod
|
|
2
2
|
|
|
3
|
+
A shipping option available for a fulfillment, including delivery estimates and pricing.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | Unique
|
|
9
|
-
**name** | **string** |
|
|
10
|
-
**description** | **string** |
|
|
9
|
+
**id** | **string** | Unique identifier for this shipping method. Use this when confirming a fulfillment. | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | The display name of the shipping method. | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | A brief description of the shipping method\'s service level. | [optional] [default to undefined]
|
|
11
12
|
**deliveryEstimates** | [**DeliveryEstimates**](DeliveryEstimates.md) | | [optional] [default to undefined]
|
|
12
|
-
**totalPrice** | [**Price**](Price.md) |
|
|
13
|
-
**taxPrice** | [**Price**](Price.md) |
|
|
14
|
-
**subtotalPrice** | [**Price**](Price.md) |
|
|
15
|
-
**discountPrice** | [**Price**](Price.md) |
|
|
13
|
+
**totalPrice** | [**Price**](Price.md) | The total shipping cost including tax. | [optional] [default to undefined]
|
|
14
|
+
**taxPrice** | [**Price**](Price.md) | The tax portion of the shipping cost. | [optional] [default to undefined]
|
|
15
|
+
**subtotalPrice** | [**Price**](Price.md) | The net shipping cost, excluding tax and before discounts. | [optional] [default to undefined]
|
|
16
|
+
**discountPrice** | [**Price**](Price.md) | Any discount applied to the shipping cost. | [optional] [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
package/docs/Status.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Status
|
|
2
2
|
|
|
3
|
+
The lifecycle status of an order or fulfillment: - `new` — Order has been created but not yet confirmed or paid - `paid` — Payment has been received, awaiting fulfillment - `processing` — Order is being produced or packed - `complete` — Order has been shipped - `refunded` — Order has been refunded - `quote` — Order is a draft quote, not yet submitted - `moderation` — Order is held for review
|
|
3
4
|
|
|
4
5
|
## Enum
|
|
5
6
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# StockConflictError
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [default to undefined]
|
|
9
|
+
**message** | **string** | Human-readable description including the product name. | [default to undefined]
|
|
10
|
+
**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]
|
|
13
|
+
**requestedQuantity** | **number** | The quantity that was requested in the order. | [default to undefined]
|
|
14
|
+
**availableQuantity** | **number** | Always 0 for this error type. | [default to undefined]
|
|
15
|
+
**shortage** | **number** | The full requested quantity, representing the total unfulfillable amount. | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { StockConflictError } from '@teemill/orders';
|
|
21
|
+
|
|
22
|
+
const instance: StockConflictError = {
|
|
23
|
+
code,
|
|
24
|
+
message,
|
|
25
|
+
productTitle,
|
|
26
|
+
variantId,
|
|
27
|
+
variantRef,
|
|
28
|
+
requestedQuantity,
|
|
29
|
+
availableQuantity,
|
|
30
|
+
shortage,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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,35 @@
|
|
|
1
|
+
# StockUnavailableError
|
|
2
|
+
|
|
3
|
+
The requested quantity exceeds available stock. The item can still be ordered in a smaller quantity.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | | [default to undefined]
|
|
10
|
+
**message** | **string** | Human-readable description including the product name and available quantity. | [default to undefined]
|
|
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]
|
|
14
|
+
**requestedQuantity** | **number** | The quantity that was requested in the order. | [default to undefined]
|
|
15
|
+
**availableQuantity** | **number** | The quantity currently available for fulfillment. | [default to undefined]
|
|
16
|
+
**shortage** | **number** | The difference between requested and available quantity (positive value indicating the deficit). | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { StockUnavailableError } from '@teemill/orders';
|
|
22
|
+
|
|
23
|
+
const instance: StockUnavailableError = {
|
|
24
|
+
code,
|
|
25
|
+
message,
|
|
26
|
+
productTitle,
|
|
27
|
+
variantId,
|
|
28
|
+
variantRef,
|
|
29
|
+
requestedQuantity,
|
|
30
|
+
availableQuantity,
|
|
31
|
+
shortage,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[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/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.26.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|