@teemill/platform 0.15.0 → 0.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 (73) hide show
  1. package/README.md +94 -2
  2. package/api.ts +819 -4
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +540 -4
  7. package/dist/api.js +418 -4
  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 +540 -4
  15. package/dist/esm/api.js +413 -3
  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/AuthorizeStripe200Response.md +20 -0
  29. package/docs/ContactInformation.md +23 -0
  30. package/docs/Customer.md +33 -0
  31. package/docs/CustomersApi.md +229 -0
  32. package/docs/CustomersResponse.md +22 -0
  33. package/docs/DeliveryEstimates.md +22 -0
  34. package/docs/ExportOrders202Response.md +20 -0
  35. package/docs/Fulfiller.md +23 -0
  36. package/docs/FulfillerLocation.md +22 -0
  37. package/docs/FulfillersResponse.md +22 -0
  38. package/docs/Fulfillment.md +34 -0
  39. package/docs/FulfillmentItem.md +24 -0
  40. package/docs/Image.md +27 -0
  41. package/docs/ModerateReviewRequest.md +20 -0
  42. package/docs/Option.md +22 -0
  43. package/docs/Order.md +54 -0
  44. package/docs/OrderItem.md +42 -0
  45. package/docs/OrderStatus.md +16 -0
  46. package/docs/OrderTracking.md +24 -0
  47. package/docs/OrdersApi.md +410 -0
  48. package/docs/OrdersResponse.md +22 -0
  49. package/docs/Origin.md +22 -0
  50. package/docs/PaymentAccount.md +24 -0
  51. package/docs/PaymentApi.md +178 -0
  52. package/docs/Platform.md +38 -0
  53. package/docs/PlatformApi.md +122 -0
  54. package/docs/PlatformLogo.md +22 -0
  55. package/docs/Price.md +23 -0
  56. package/docs/Project.md +22 -0
  57. package/docs/Review.md +40 -0
  58. package/docs/ReviewAuthor.md +22 -0
  59. package/docs/ReviewImagesInner.md +22 -0
  60. package/docs/ReviewProduct.md +23 -0
  61. package/docs/ReviewReply.md +26 -0
  62. package/docs/ReviewReplyAuthor.md +20 -0
  63. package/docs/ReviewsApi.md +278 -0
  64. package/docs/ReviewsResponse.md +22 -0
  65. package/docs/ShippingMethod.md +34 -0
  66. package/docs/Statistics.md +24 -0
  67. package/docs/StatusHistoryItem.md +22 -0
  68. package/docs/UpdateFulfillmentRequest.md +20 -0
  69. package/docs/UpdatePlatformRequest.md +32 -0
  70. package/docs/ValidationError.md +20 -0
  71. package/docs/Variant.md +24 -0
  72. package/index.ts +1 -1
  73. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ # Customer
2
+
3
+ The customer that has placed an order on your platform
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique object identifier | [default to undefined]
10
+ **email** | **string** | | [default to undefined]
11
+ **firstName** | **string** | | [default to undefined]
12
+ **lastName** | **string** | | [default to undefined]
13
+ **gender** | **string** | | [default to undefined]
14
+ **country** | **string** | | [default to undefined]
15
+ **statistics** | [**Statistics**](Statistics.md) | | [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { Customer } from '@teemill/platform';
21
+
22
+ const instance: Customer = {
23
+ id,
24
+ email,
25
+ firstName,
26
+ lastName,
27
+ gender,
28
+ country,
29
+ statistics,
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,229 @@
1
+ # CustomersApi
2
+
3
+ All URIs are relative to *https://localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**exportCustomers**](#exportcustomers) | **GET** /v1/platform/{platformId}/customers/export | Export customers|
8
+ |[**getCustomer**](#getcustomer) | **GET** /v1/platform/{platformId}/customers/{customerId} | Get customer|
9
+ |[**listCustomers**](#listcustomers) | **GET** /v1/platform/{platformId}/customers | List customers|
10
+
11
+ # **exportCustomers**
12
+ > File exportCustomers()
13
+
14
+ Export customers as a CSV file
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ CustomersApi,
21
+ Configuration
22
+ } from '@teemill/platform';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new CustomersApi(configuration);
26
+
27
+ let project: string; //Project unique identifier (default to undefined)
28
+ let platformId: string; //The platform identifier (default to undefined)
29
+ let totalOrderCount: number; //Filter customers by total order count equal to the value provided (optional) (default to undefined)
30
+ let lifetimeValue: number; //Filter customers by lifetime value less than or equal to the value provided (optional) (default to undefined)
31
+ let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
32
+ let lastPurchasedStart: string; //Start of date range to filter customers by last purchase date (optional) (default to undefined)
33
+ let lastPurchasedEnd: string; //End of date range to filter customers by last purchase date (optional) (default to undefined)
34
+
35
+ const { status, data } = await apiInstance.exportCustomers(
36
+ project,
37
+ platformId,
38
+ totalOrderCount,
39
+ lifetimeValue,
40
+ sortBy,
41
+ lastPurchasedStart,
42
+ lastPurchasedEnd
43
+ );
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ |Name | Type | Description | Notes|
49
+ |------------- | ------------- | ------------- | -------------|
50
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
51
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
52
+ | **totalOrderCount** | [**number**] | Filter customers by total order count equal to the value provided | (optional) defaults to undefined|
53
+ | **lifetimeValue** | [**number**] | Filter customers by lifetime value less than or equal to the value provided | (optional) defaults to undefined|
54
+ | **sortBy** | **Array<&#39;+lifetimeValue&#39; &#124; &#39;-lifetimeValue&#39; &#124; &#39;+totalOrderCount&#39; &#124; &#39;-totalOrderCount&#39; &#124; &#39;+lastPurchased&#39; &#124; &#39;-lastPurchased&#39;>** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
55
+ | **lastPurchasedStart** | [**string**] | Start of date range to filter customers by last purchase date | (optional) defaults to undefined|
56
+ | **lastPurchasedEnd** | [**string**] | End of date range to filter customers by last purchase date | (optional) defaults to undefined|
57
+
58
+
59
+ ### Return type
60
+
61
+ **File**
62
+
63
+ ### Authorization
64
+
65
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: Not defined
70
+ - **Accept**: text/csv; charset=utf-8, application/json
71
+
72
+
73
+ ### HTTP response details
74
+ | Status code | Description | Response headers |
75
+ |-------------|-------------|------------------|
76
+ |**200** | Returns the CSV export | - |
77
+ |**202** | Export started. When complete, the export will be available for download from a notification within PodOS Dashboard. | - |
78
+ |**400** | Failed validation | - |
79
+ |**401** | Not authorised to access this resource | - |
80
+ |**403** | Refuse to authorize | - |
81
+ |**500** | Unknown server error | - |
82
+
83
+ [[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)
84
+
85
+ # **getCustomer**
86
+ > Customer getCustomer()
87
+
88
+ Get a customer for a platform by a given customer ID.
89
+
90
+ ### Example
91
+
92
+ ```typescript
93
+ import {
94
+ CustomersApi,
95
+ Configuration
96
+ } from '@teemill/platform';
97
+
98
+ const configuration = new Configuration();
99
+ const apiInstance = new CustomersApi(configuration);
100
+
101
+ let project: string; //Project unique identifier (default to undefined)
102
+ let platformId: string; //The platform identifier (default to undefined)
103
+ let customerId: string; //The customer identifier (default to undefined)
104
+
105
+ const { status, data } = await apiInstance.getCustomer(
106
+ project,
107
+ platformId,
108
+ customerId
109
+ );
110
+ ```
111
+
112
+ ### Parameters
113
+
114
+ |Name | Type | Description | Notes|
115
+ |------------- | ------------- | ------------- | -------------|
116
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
117
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
118
+ | **customerId** | [**string**] | The customer identifier | defaults to undefined|
119
+
120
+
121
+ ### Return type
122
+
123
+ **Customer**
124
+
125
+ ### Authorization
126
+
127
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
128
+
129
+ ### HTTP request headers
130
+
131
+ - **Content-Type**: Not defined
132
+ - **Accept**: application/json
133
+
134
+
135
+ ### HTTP response details
136
+ | Status code | Description | Response headers |
137
+ |-------------|-------------|------------------|
138
+ |**200** | Customer response | - |
139
+ |**400** | Failed validation | - |
140
+ |**401** | Not authorised to access this resource | - |
141
+ |**403** | Refuse to authorize | - |
142
+ |**404** | Resource not found | - |
143
+ |**500** | Unknown server error | - |
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
+
147
+ # **listCustomers**
148
+ > CustomersResponse listCustomers()
149
+
150
+ List customers for a platform
151
+
152
+ ### Example
153
+
154
+ ```typescript
155
+ import {
156
+ CustomersApi,
157
+ Configuration
158
+ } from '@teemill/platform';
159
+
160
+ const configuration = new Configuration();
161
+ const apiInstance = new CustomersApi(configuration);
162
+
163
+ let project: string; //Project unique identifier (default to undefined)
164
+ let platformId: string; //The platform identifier (default to undefined)
165
+ let pageToken: number; //Page reference token (optional) (default to 1)
166
+ let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 100)
167
+ let search: string; //Search term to filter results (optional) (default to undefined)
168
+ let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
169
+ let totalOrderCount: number; //Filter customers by total order count equal to the value provided (optional) (default to undefined)
170
+ let lifetimeValue: number; //Filter customers by lifetime value less than or equal to the value provided (optional) (default to undefined)
171
+ let lastPurchasedStart: string; //Start of date range to filter customers by last purchase date (optional) (default to undefined)
172
+ let lastPurchasedEnd: string; //End of date range to filter customers by last purchase date (optional) (default to undefined)
173
+
174
+ const { status, data } = await apiInstance.listCustomers(
175
+ project,
176
+ platformId,
177
+ pageToken,
178
+ pageSize,
179
+ search,
180
+ sortBy,
181
+ totalOrderCount,
182
+ lifetimeValue,
183
+ lastPurchasedStart,
184
+ lastPurchasedEnd
185
+ );
186
+ ```
187
+
188
+ ### Parameters
189
+
190
+ |Name | Type | Description | Notes|
191
+ |------------- | ------------- | ------------- | -------------|
192
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
193
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
194
+ | **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
195
+ | **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
196
+ | **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
197
+ | **sortBy** | **Array<&#39;+lifetimeValue&#39; &#124; &#39;-lifetimeValue&#39; &#124; &#39;+totalOrderCount&#39; &#124; &#39;-totalOrderCount&#39; &#124; &#39;+lastPurchased&#39; &#124; &#39;-lastPurchased&#39;>** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
198
+ | **totalOrderCount** | [**number**] | Filter customers by total order count equal to the value provided | (optional) defaults to undefined|
199
+ | **lifetimeValue** | [**number**] | Filter customers by lifetime value less than or equal to the value provided | (optional) defaults to undefined|
200
+ | **lastPurchasedStart** | [**string**] | Start of date range to filter customers by last purchase date | (optional) defaults to undefined|
201
+ | **lastPurchasedEnd** | [**string**] | End of date range to filter customers by last purchase date | (optional) defaults to undefined|
202
+
203
+
204
+ ### Return type
205
+
206
+ **CustomersResponse**
207
+
208
+ ### Authorization
209
+
210
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
211
+
212
+ ### HTTP request headers
213
+
214
+ - **Content-Type**: Not defined
215
+ - **Accept**: application/json
216
+
217
+
218
+ ### HTTP response details
219
+ | Status code | Description | Response headers |
220
+ |-------------|-------------|------------------|
221
+ |**200** | Customers response | - |
222
+ |**400** | Failed validation | - |
223
+ |**401** | Not authorised to access this resource | - |
224
+ |**403** | Refuse to authorize | - |
225
+ |**404** | Resource not found | - |
226
+ |**500** | Unknown server error | - |
227
+
228
+ [[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)
229
+
@@ -0,0 +1,22 @@
1
+ # CustomersResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **customers** | [**Array&lt;Customer&gt;**](Customer.md) | | [default to undefined]
9
+ **nextPageToken** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CustomersResponse } from '@teemill/platform';
15
+
16
+ const instance: CustomersResponse = {
17
+ customers,
18
+ nextPageToken,
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,22 @@
1
+ # DeliveryEstimates
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **min** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
9
+ **max** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { DeliveryEstimates } from '@teemill/platform';
15
+
16
+ const instance: DeliveryEstimates = {
17
+ min,
18
+ max,
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,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/platform';
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,23 @@
1
+ # Fulfiller
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** | [**FulfillerLocation**](FulfillerLocation.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { Fulfiller } from '@teemill/platform';
16
+
17
+ const instance: Fulfiller = {
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
+ # FulfillerLocation
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 { FulfillerLocation } from '@teemill/platform';
15
+
16
+ const instance: FulfillerLocation = {
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,22 @@
1
+ # FulfillersResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **fulfillers** | [**Array&lt;Fulfiller&gt;**](Fulfiller.md) | | [optional] [default to undefined]
9
+ **nextPageToken** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { FulfillersResponse } from '@teemill/platform';
15
+
16
+ const instance: FulfillersResponse = {
17
+ fulfillers,
18
+ nextPageToken,
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,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** | [**OrderStatus**](OrderStatus.md) | | [optional] [default to undefined]
10
+ **fulfiller** | [**Fulfiller**](Fulfiller.md) | | [optional] [default to undefined]
11
+ **items** | [**Array&lt;FulfillmentItem&gt;**](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&lt;ShippingMethod&gt;**](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/platform';
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,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/platform';
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/platform';
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)
@@ -0,0 +1,20 @@
1
+ # ModerateReviewRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **enabled** | **boolean** | Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ModerateReviewRequest } from '@teemill/platform';
14
+
15
+ const instance: ModerateReviewRequest = {
16
+ enabled,
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)
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/platform';
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,54 @@
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** | [**OrderStatus**](OrderStatus.md) | | [optional] [default to undefined]
11
+ **contactInformation** | [**ContactInformation**](ContactInformation.md) | | [default to undefined]
12
+ **shippingAddress** | [**Address**](Address.md) | | [default to undefined]
13
+ **createdAt** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
14
+ **updatedAt** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
15
+ **merchantReference** | **string** | A custom reference to the merchant\&#39;s order that will be displayed on the shipping label. | [optional] [default to undefined]
16
+ **fulfillments** | [**Array&lt;Fulfillment&gt;**](Fulfillment.md) | | [optional] [readonly] [default to undefined]
17
+ **items** | [**Array&lt;OrderItem&gt;**](OrderItem.md) | | [default to undefined]
18
+ **totalPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
19
+ **taxPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
20
+ **subtotalPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
21
+ **discountPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
22
+ **shippingPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
23
+ **origin** | [**Origin**](Origin.md) | | [optional] [default to undefined]
24
+ **statusHistory** | [**Array&lt;StatusHistoryItem&gt;**](StatusHistoryItem.md) | | [optional] [default to undefined]
25
+ **project** | [**Project**](Project.md) | | [default to undefined]
26
+
27
+ ## Example
28
+
29
+ ```typescript
30
+ import { Order } from '@teemill/platform';
31
+
32
+ const instance: Order = {
33
+ id,
34
+ ref,
35
+ status,
36
+ contactInformation,
37
+ shippingAddress,
38
+ createdAt,
39
+ updatedAt,
40
+ merchantReference,
41
+ fulfillments,
42
+ items,
43
+ totalPrice,
44
+ taxPrice,
45
+ subtotalPrice,
46
+ discountPrice,
47
+ shippingPrice,
48
+ origin,
49
+ statusHistory,
50
+ project,
51
+ };
52
+ ```
53
+
54
+ [[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,42 @@
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
+ **variant** | [**Variant**](Variant.md) | | [default to undefined]
11
+ **_options** | [**Array&lt;Option&gt;**](Option.md) | Options associated to an order item\&#39;s variant, such as color and size. | [optional] [default to undefined]
12
+ **quantity** | **number** | | [default to undefined]
13
+ **name** | **string** | The name of the product | [optional] [default to undefined]
14
+ **images** | [**Array&lt;Image&gt;**](Image.md) | Images | [optional] [default to undefined]
15
+ **totalPrice** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
16
+ **taxPrice** | [**Price**](Price.md) | This is an estimate until the order has been confirmed | [optional] [readonly] [default to undefined]
17
+ **subtotalPrice** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
18
+ **discountPrice** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
19
+ **recipientCost** | [**Price**](Price.md) | The price you charged the recipient for each item. It\&#39;s highly recommended if you have international orders as it aids customs issues. | [optional] [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { OrderItem } from '@teemill/platform';
25
+
26
+ const instance: OrderItem = {
27
+ id,
28
+ variantRef,
29
+ variant,
30
+ _options,
31
+ quantity,
32
+ name,
33
+ images,
34
+ totalPrice,
35
+ taxPrice,
36
+ subtotalPrice,
37
+ discountPrice,
38
+ recipientCost,
39
+ };
40
+ ```
41
+
42
+ [[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,16 @@
1
+ # OrderStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `New` (value: `'new'`)
7
+
8
+ * `Paid` (value: `'paid'`)
9
+
10
+ * `Processing` (value: `'processing'`)
11
+
12
+ * `Complete` (value: `'complete'`)
13
+
14
+ * `Refunded` (value: `'refunded'`)
15
+
16
+ [[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/platform';
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)