@teemill/platform 0.27.0 → 0.28.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/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.27.0
7
+ * The version of the OpenAPI document: 0.28.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.27.0
5
+ * The version of the OpenAPI document: 0.28.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.27.0
8
+ * The version of the OpenAPI document: 0.28.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,24 @@
1
+ # ConfirmOrderFulfillment
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **fulfillmentId** | **string** | Unique object identifier | [default to undefined]
9
+ **shippingMethodId** | **string** | Unique object identifier | [optional] [default to undefined]
10
+ **shipment** | [**ConfirmOrderFulfillmentShipment**](ConfirmOrderFulfillmentShipment.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ConfirmOrderFulfillment } from '@teemill/platform';
16
+
17
+ const instance: ConfirmOrderFulfillment = {
18
+ fulfillmentId,
19
+ shippingMethodId,
20
+ shipment,
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,21 @@
1
+ # ConfirmOrderFulfillmentShipment
2
+
3
+ This field is only required if you are using your own shipping label.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **image** | **string** | Only required if you are generating shipping labels outside of PodOS | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ConfirmOrderFulfillmentShipment } from '@teemill/platform';
15
+
16
+ const instance: ConfirmOrderFulfillmentShipment = {
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)
@@ -0,0 +1,20 @@
1
+ # ConfirmOrderRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **fulfillments** | [**Array<ConfirmOrderFulfillment>**](ConfirmOrderFulfillment.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ConfirmOrderRequest } from '@teemill/platform';
14
+
15
+ const instance: ConfirmOrderRequest = {
16
+ fulfillments,
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,33 @@
1
+ # CreateOrder
2
+
3
+ Create an order
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **merchantReference** | **string** | A custom reference to the merchant\'s order. | [optional] [default to undefined]
10
+ **contactInformation** | [**CreateOrderContactInformation**](CreateOrderContactInformation.md) | | [default to undefined]
11
+ **shippingAddress** | [**Address**](Address.md) | | [default to undefined]
12
+ **customsInformation** | [**CustomsInformation**](CustomsInformation.md) | | [optional] [default to undefined]
13
+ **items** | [**Array<OrderItem1>**](OrderItem1.md) | Items to be ordered | [default to undefined]
14
+ **preferredFulfillers** | **Array<string>** | | [optional] [default to undefined]
15
+ **originalOrderRef** | **string** | A reference to the resource location | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { CreateOrder } from '@teemill/platform';
21
+
22
+ const instance: CreateOrder = {
23
+ merchantReference,
24
+ contactInformation,
25
+ shippingAddress,
26
+ customsInformation,
27
+ items,
28
+ preferredFulfillers,
29
+ originalOrderRef,
30
+ };
31
+ ```
32
+
33
+ [[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
+ # CreateOrderContactInformation
2
+
3
+ Contact information for the order
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **email** | **string** | | [default to undefined]
10
+ **phone** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { CreateOrderContactInformation } from '@teemill/platform';
16
+
17
+ const instance: CreateOrderContactInformation = {
18
+ email,
19
+ phone,
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,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/platform';
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,24 @@
1
+ # OrderItem1
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **variantRef** | **string** | A reference to the variant being ordered | [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/platform';
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/platform';
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)
package/docs/OrdersApi.md CHANGED
@@ -4,6 +4,8 @@ All URIs are relative to *https://localhost:8080*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**confirmOrder**](#confirmorder) | **POST** /v1/platform/{platformId}/orders/{orderId}/confirm | Confirm order|
8
+ |[**createOrder**](#createorder) | **POST** /v1/platform/{platformId}/orders | Create order|
7
9
  |[**exportOrders**](#exportorders) | **GET** /v1/platform/{platformId}/orders/export | Export orders|
8
10
  |[**getFulfillment**](#getfulfillment) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Get fulfillment|
9
11
  |[**getOrder**](#getorder) | **GET** /v1/platform/{platformId}/orders/{orderId} | Get order|
@@ -14,6 +16,132 @@ All URIs are relative to *https://localhost:8080*
14
16
  |[**sendOrderReceipt**](#sendorderreceipt) | **POST** /v1/platform/{platformId}/orders/{orderId}/receipt/send | Send order receipt|
15
17
  |[**updateFulfillment**](#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment|
16
18
 
19
+ # **confirmOrder**
20
+ > Order confirmOrder(confirmOrderRequest)
21
+
22
+
23
+ ### Example
24
+
25
+ ```typescript
26
+ import {
27
+ OrdersApi,
28
+ Configuration,
29
+ ConfirmOrderRequest
30
+ } from '@teemill/platform';
31
+
32
+ const configuration = new Configuration();
33
+ const apiInstance = new OrdersApi(configuration);
34
+
35
+ let project: string; //Project unique identifier (default to undefined)
36
+ let platformId: string; //The platform identifier (default to undefined)
37
+ let orderId: string; //The order identifier (default to undefined)
38
+ let confirmOrderRequest: ConfirmOrderRequest; //ConfirmFulfillment schema
39
+
40
+ const { status, data } = await apiInstance.confirmOrder(
41
+ project,
42
+ platformId,
43
+ orderId,
44
+ confirmOrderRequest
45
+ );
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+ |Name | Type | Description | Notes|
51
+ |------------- | ------------- | ------------- | -------------|
52
+ | **confirmOrderRequest** | **ConfirmOrderRequest**| ConfirmFulfillment schema | |
53
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
54
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
55
+ | **orderId** | [**string**] | The order identifier | defaults to undefined|
56
+
57
+
58
+ ### Return type
59
+
60
+ **Order**
61
+
62
+ ### Authorization
63
+
64
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: application/json
69
+ - **Accept**: application/json
70
+
71
+
72
+ ### HTTP response details
73
+ | Status code | Description | Response headers |
74
+ |-------------|-------------|------------------|
75
+ |**200** | Order schema | - |
76
+ |**400** | Failed validation | - |
77
+ |**401** | Not authorised to access this resource | - |
78
+ |**403** | Refuse to authorize | - |
79
+ |**404** | Resource not found | - |
80
+ |**500** | Unknown server error | - |
81
+
82
+ [[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)
83
+
84
+ # **createOrder**
85
+ > Order createOrder(createOrder)
86
+
87
+
88
+ ### Example
89
+
90
+ ```typescript
91
+ import {
92
+ OrdersApi,
93
+ Configuration,
94
+ CreateOrder
95
+ } from '@teemill/platform';
96
+
97
+ const configuration = new Configuration();
98
+ const apiInstance = new OrdersApi(configuration);
99
+
100
+ let project: string; //Project unique identifier (default to undefined)
101
+ let platformId: string; //The platform identifier (default to undefined)
102
+ let createOrder: CreateOrder; //Create Order schema
103
+
104
+ const { status, data } = await apiInstance.createOrder(
105
+ project,
106
+ platformId,
107
+ createOrder
108
+ );
109
+ ```
110
+
111
+ ### Parameters
112
+
113
+ |Name | Type | Description | Notes|
114
+ |------------- | ------------- | ------------- | -------------|
115
+ | **createOrder** | **CreateOrder**| Create Order schema | |
116
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
117
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
118
+
119
+
120
+ ### Return type
121
+
122
+ **Order**
123
+
124
+ ### Authorization
125
+
126
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
127
+
128
+ ### HTTP request headers
129
+
130
+ - **Content-Type**: application/json
131
+ - **Accept**: application/json
132
+
133
+
134
+ ### HTTP response details
135
+ | Status code | Description | Response headers |
136
+ |-------------|-------------|------------------|
137
+ |**201** | Order schema | - |
138
+ |**400** | Failed validation | - |
139
+ |**401** | Not authorised to access this resource | - |
140
+ |**403** | Refuse to authorize | - |
141
+ |**500** | Unknown server error | - |
142
+
143
+ [[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)
144
+
17
145
  # **exportOrders**
18
146
  > File exportOrders()
19
147
 
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.27.0
7
+ * The version of the OpenAPI document: 0.28.0
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/platform",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "OpenAPI client for @teemill/platform",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {