@teemill/orders 1.15.1 → 1.16.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 (59) hide show
  1. package/README.md +73 -2
  2. package/api.ts +176 -1
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +118 -1
  7. package/dist/api.js +84 -1
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +1 -1
  14. package/dist/esm/api.d.ts +118 -1
  15. package/dist/esm/api.js +84 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +1 -1
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/Address.md +35 -0
  27. package/docs/ApiError.md +22 -0
  28. package/docs/ConfirmOrderFulfillment.md +24 -0
  29. package/docs/ConfirmOrderFulfillmentShipment.md +21 -0
  30. package/docs/ConfirmOrderRequest.md +20 -0
  31. package/docs/ConfirmOrderValidationError.md +22 -0
  32. package/docs/ContactInformation.md +23 -0
  33. package/docs/CreateOrder.md +29 -0
  34. package/docs/CreateOrderContactInformation.md +23 -0
  35. package/docs/CustomsInformation.md +27 -0
  36. package/docs/CustomsInformation1.md +26 -0
  37. package/docs/DeliveryEstimates.md +24 -0
  38. package/docs/ExportOrders202Response.md +20 -0
  39. package/docs/Fulfillment.md +34 -0
  40. package/docs/FulfillmentFulfiller.md +23 -0
  41. package/docs/FulfillmentFulfillerLocation.md +22 -0
  42. package/docs/FulfillmentItem.md +24 -0
  43. package/docs/Image.md +27 -0
  44. package/docs/Option.md +22 -0
  45. package/docs/Order.md +58 -0
  46. package/docs/OrderItem.md +40 -0
  47. package/docs/OrderItem1.md +24 -0
  48. package/docs/OrderItem1RecipientCost.md +22 -0
  49. package/docs/OrderTracking.md +24 -0
  50. package/docs/OrdersApi.md +475 -0
  51. package/docs/OrdersResponse.md +22 -0
  52. package/docs/Origin.md +22 -0
  53. package/docs/PaymentAttempt.md +32 -0
  54. package/docs/Price.md +23 -0
  55. package/docs/ShippingMethod.md +34 -0
  56. package/docs/Status.md +18 -0
  57. package/docs/StatusHistoryItem.md +22 -0
  58. package/index.ts +1 -1
  59. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ # CustomsInformation
2
+
3
+ Customs information for the order. **Note:** Adding customs information to an order is only compatible with Shipmate at this time
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **preRegistrationType** | **string** | Pre-registration type | [optional] [default to undefined]
10
+ **preRegistrationNumber** | **string** | Pre-registration number | [optional] [default to undefined]
11
+ **vatNumber** | **string** | VAT number | [optional] [default to undefined]
12
+ **eoriNumber** | **string** | EORI number | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { CustomsInformation } from '@teemill/orders';
18
+
19
+ const instance: CustomsInformation = {
20
+ preRegistrationType,
21
+ preRegistrationNumber,
22
+ vatNumber,
23
+ eoriNumber,
24
+ };
25
+ ```
26
+
27
+ [[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,26 @@
1
+ # CustomsInformation1
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **preRegistrationType** | **string** | | [optional] [default to undefined]
9
+ **preRegistrationNumber** | **string** | | [optional] [default to undefined]
10
+ **vatNumber** | **string** | | [optional] [default to undefined]
11
+ **eoriNumber** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { CustomsInformation1 } from '@teemill/orders';
17
+
18
+ const instance: CustomsInformation1 = {
19
+ preRegistrationType,
20
+ preRegistrationNumber,
21
+ vatNumber,
22
+ eoriNumber,
23
+ };
24
+ ```
25
+
26
+ [[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,24 @@
1
+ # DeliveryEstimates
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **isPriority** | **boolean** | Whether this is a priority shipping method. Fulfillments with priority methods aim for same day dispatch when ordered before 1pm, and typically offer faster delivery times. | [optional] [default to undefined]
9
+ **min** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
10
+ **max** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DeliveryEstimates } from '@teemill/orders';
16
+
17
+ const instance: DeliveryEstimates = {
18
+ isPriority,
19
+ min,
20
+ max,
21
+ };
22
+ ```
23
+
24
+ [[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,20 @@
1
+ # ExportOrders202Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | A message describing the export status | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ExportOrders202Response } from '@teemill/orders';
14
+
15
+ const instance: ExportOrders202Response = {
16
+ message,
17
+ };
18
+ ```
19
+
20
+ [[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,34 @@
1
+ # Fulfillment
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Unique fulfillment id | [optional] [default to undefined]
9
+ **status** | [**Status**](Status.md) | | [optional] [default to undefined]
10
+ **fulfiller** | [**FulfillmentFulfiller**](FulfillmentFulfiller.md) | | [optional] [default to undefined]
11
+ **items** | [**Array<FulfillmentItem>**](FulfillmentItem.md) | | [optional] [default to undefined]
12
+ **tracking** | [**OrderTracking**](OrderTracking.md) | | [optional] [default to undefined]
13
+ **shippingMethod** | [**ShippingMethod**](ShippingMethod.md) | Shipping method currently set | [optional] [default to undefined]
14
+ **availableShippingMethods** | [**Array<ShippingMethod>**](ShippingMethod.md) | Shipping methods available for this fulfillment. One of these should be used to confirm the fulfillment. | [optional] [default to undefined]
15
+ **packageWeight** | **number** | Weight of the package being shipped in grams | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { Fulfillment } from '@teemill/orders';
21
+
22
+ const instance: Fulfillment = {
23
+ id,
24
+ status,
25
+ fulfiller,
26
+ items,
27
+ tracking,
28
+ shippingMethod,
29
+ availableShippingMethods,
30
+ packageWeight,
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,23 @@
1
+ # FulfillmentFulfiller
2
+
3
+ The fulfiller that will be processing this order.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique object identifier | [optional] [default to undefined]
10
+ **location** | [**FulfillmentFulfillerLocation**](FulfillmentFulfillerLocation.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { FulfillmentFulfiller } from '@teemill/orders';
16
+
17
+ const instance: FulfillmentFulfiller = {
18
+ id,
19
+ location,
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)
@@ -0,0 +1,22 @@
1
+ # FulfillmentFulfillerLocation
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **city** | **string** | | [optional] [default to undefined]
9
+ **country** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { FulfillmentFulfillerLocation } from '@teemill/orders';
15
+
16
+ const instance: FulfillmentFulfillerLocation = {
17
+ city,
18
+ country,
19
+ };
20
+ ```
21
+
22
+ [[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,24 @@
1
+ # FulfillmentItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Unique fulfillment item id | [optional] [default to undefined]
9
+ **itemId** | **string** | Id of the order item being fulfilled | [optional] [default to undefined]
10
+ **quantity** | **number** | Number of this item being fulfilled | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { FulfillmentItem } from '@teemill/orders';
16
+
17
+ const instance: FulfillmentItem = {
18
+ id,
19
+ itemId,
20
+ quantity,
21
+ };
22
+ ```
23
+
24
+ [[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/Image.md ADDED
@@ -0,0 +1,27 @@
1
+ # Image
2
+
3
+ Image description
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique object identifier | [optional] [default to undefined]
10
+ **src** | **string** | | [optional] [default to undefined]
11
+ **alt** | **string** | | [optional] [default to undefined]
12
+ **sortOrder** | **number** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { Image } from '@teemill/orders';
18
+
19
+ const instance: Image = {
20
+ id,
21
+ src,
22
+ alt,
23
+ sortOrder,
24
+ };
25
+ ```
26
+
27
+ [[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/Option.md ADDED
@@ -0,0 +1,22 @@
1
+ # Option
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Option name | [default to undefined]
9
+ **value** | **string** | Option value | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { Option } from '@teemill/orders';
15
+
16
+ const instance: Option = {
17
+ name,
18
+ value,
19
+ };
20
+ ```
21
+
22
+ [[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/Order.md ADDED
@@ -0,0 +1,58 @@
1
+ # Order
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Unique object identifier | [optional] [default to undefined]
9
+ **ref** | **string** | A reference to the resource location | [optional] [default to undefined]
10
+ **status** | [**Status**](Status.md) | | [optional] [default to undefined]
11
+ **contactInformation** | [**ContactInformation**](ContactInformation.md) | | [default to undefined]
12
+ **shippingAddress** | [**Address**](Address.md) | | [default to undefined]
13
+ **customsInformation** | [**CustomsInformation1**](CustomsInformation1.md) | | [optional] [default to undefined]
14
+ **createdAt** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
15
+ **updatedAt** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
16
+ **statusChangedAt** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
17
+ **merchantReference** | **string** | A custom reference to the merchant\'s order. | [optional] [default to undefined]
18
+ **fulfillments** | [**Array<Fulfillment>**](Fulfillment.md) | | [optional] [readonly] [default to undefined]
19
+ **items** | [**Array<OrderItem>**](OrderItem.md) | | [default to undefined]
20
+ **totalPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
21
+ **taxPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
22
+ **subtotalPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
23
+ **discountPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
24
+ **shippingPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
25
+ **origin** | [**Origin**](Origin.md) | | [optional] [default to undefined]
26
+ **statusHistory** | [**Array<StatusHistoryItem>**](StatusHistoryItem.md) | | [optional] [default to undefined]
27
+ **paymentAttempts** | [**Array<PaymentAttempt>**](PaymentAttempt.md) | | [optional] [default to undefined]
28
+
29
+ ## Example
30
+
31
+ ```typescript
32
+ import { Order } from '@teemill/orders';
33
+
34
+ const instance: Order = {
35
+ id,
36
+ ref,
37
+ status,
38
+ contactInformation,
39
+ shippingAddress,
40
+ customsInformation,
41
+ createdAt,
42
+ updatedAt,
43
+ statusChangedAt,
44
+ merchantReference,
45
+ fulfillments,
46
+ items,
47
+ totalPrice,
48
+ taxPrice,
49
+ subtotalPrice,
50
+ discountPrice,
51
+ shippingPrice,
52
+ origin,
53
+ statusHistory,
54
+ paymentAttempts,
55
+ };
56
+ ```
57
+
58
+ [[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,40 @@
1
+ # OrderItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Unique object identifier | [optional] [readonly] [default to undefined]
9
+ **variantRef** | **string** | Reference URL to the order item variant | [default to undefined]
10
+ **_options** | [**Array<Option>**](Option.md) | Options associated to an order item\'s variant, such as color and size. | [optional] [default to undefined]
11
+ **quantity** | **number** | | [default to undefined]
12
+ **name** | **string** | The name of the product | [optional] [default to undefined]
13
+ **images** | [**Array<Image>**](Image.md) | Images | [optional] [default to undefined]
14
+ **totalPrice** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
15
+ **taxPrice** | [**Price**](Price.md) | This is an estimate until the order has been confirmed | [optional] [readonly] [default to undefined]
16
+ **subtotalPrice** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
17
+ **discountPrice** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
18
+ **recipientCost** | [**Price**](Price.md) | The price you charged the recipient for each item. It\'s highly recommended if you have international orders as it aids customs issues. | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { OrderItem } from '@teemill/orders';
24
+
25
+ const instance: OrderItem = {
26
+ id,
27
+ variantRef,
28
+ _options,
29
+ quantity,
30
+ name,
31
+ images,
32
+ totalPrice,
33
+ taxPrice,
34
+ subtotalPrice,
35
+ discountPrice,
36
+ recipientCost,
37
+ };
38
+ ```
39
+
40
+ [[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,24 @@
1
+ # OrderItem1
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **variantRef** | **string** | A reference to the resource location | [default to undefined]
9
+ **quantity** | **number** | | [default to undefined]
10
+ **recipientCost** | [**OrderItem1RecipientCost**](OrderItem1RecipientCost.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OrderItem1 } from '@teemill/orders';
16
+
17
+ const instance: OrderItem1 = {
18
+ variantRef,
19
+ quantity,
20
+ recipientCost,
21
+ };
22
+ ```
23
+
24
+ [[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,22 @@
1
+ # OrderItem1RecipientCost
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **amount** | **string** | | [default to undefined]
9
+ **currencyCode** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { OrderItem1RecipientCost } from '@teemill/orders';
15
+
16
+ const instance: OrderItem1RecipientCost = {
17
+ amount,
18
+ currencyCode,
19
+ };
20
+ ```
21
+
22
+ [[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,24 @@
1
+ # OrderTracking
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **courier** | **string** | | [optional] [default to undefined]
9
+ **code** | **string** | | [optional] [default to undefined]
10
+ **url** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OrderTracking } from '@teemill/orders';
16
+
17
+ const instance: OrderTracking = {
18
+ courier,
19
+ code,
20
+ url,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)