@teemill/platform 0.14.4 → 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.
- package/README.md +94 -2
- package/api.ts +571 -893
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +460 -903
- package/dist/api.js +296 -164
- 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 +460 -903
- package/dist/esm/api.js +291 -155
- 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 +35 -0
- package/docs/ApiError.md +22 -0
- package/docs/AuthorizeStripe200Response.md +20 -0
- package/docs/ContactInformation.md +23 -0
- package/docs/Customer.md +33 -0
- package/docs/CustomersApi.md +229 -0
- package/docs/CustomersResponse.md +22 -0
- package/docs/DeliveryEstimates.md +22 -0
- package/docs/ExportOrders202Response.md +20 -0
- package/docs/Fulfiller.md +23 -0
- package/docs/FulfillerLocation.md +22 -0
- package/docs/FulfillersResponse.md +22 -0
- package/docs/Fulfillment.md +34 -0
- package/docs/FulfillmentItem.md +24 -0
- package/docs/Image.md +27 -0
- package/docs/ModerateReviewRequest.md +20 -0
- package/docs/Option.md +22 -0
- package/docs/Order.md +54 -0
- package/docs/OrderItem.md +42 -0
- package/docs/OrderStatus.md +16 -0
- package/docs/OrderTracking.md +24 -0
- package/docs/OrdersApi.md +410 -0
- package/docs/OrdersResponse.md +22 -0
- package/docs/Origin.md +22 -0
- package/docs/PaymentAccount.md +24 -0
- package/docs/PaymentApi.md +178 -0
- package/docs/Platform.md +38 -0
- package/docs/PlatformApi.md +122 -0
- package/docs/PlatformLogo.md +22 -0
- package/docs/Price.md +23 -0
- package/docs/Project.md +22 -0
- package/docs/Review.md +40 -0
- package/docs/ReviewAuthor.md +22 -0
- package/docs/ReviewImagesInner.md +22 -0
- package/docs/ReviewProduct.md +23 -0
- package/docs/ReviewReply.md +26 -0
- package/docs/ReviewReplyAuthor.md +20 -0
- package/docs/ReviewsApi.md +278 -0
- package/docs/ReviewsResponse.md +22 -0
- package/docs/ShippingMethod.md +34 -0
- package/docs/Statistics.md +24 -0
- package/docs/StatusHistoryItem.md +22 -0
- package/docs/UpdateFulfillmentRequest.md +20 -0
- package/docs/UpdatePlatformRequest.md +32 -0
- package/docs/ValidationError.md +20 -0
- package/docs/Variant.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/Address.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Address
|
|
2
|
+
|
|
3
|
+
A person\'s address.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**contactName** | **string** | | [default to undefined]
|
|
10
|
+
**company** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**line1** | **string** | First line of the address. | [default to undefined]
|
|
12
|
+
**line2** | **string** | Second line of the address. | [optional] [default to undefined]
|
|
13
|
+
**city** | **string** | City of the address. | [default to undefined]
|
|
14
|
+
**postalCode** | **string** | Postal code of the address. | [optional] [default to undefined]
|
|
15
|
+
**country** | **string** | Country of the address (ISO 3166-1 alpha-2). | [default to undefined]
|
|
16
|
+
**state** | **string** | State of the address. | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { Address } from '@teemill/platform';
|
|
22
|
+
|
|
23
|
+
const instance: Address = {
|
|
24
|
+
contactName,
|
|
25
|
+
company,
|
|
26
|
+
line1,
|
|
27
|
+
line2,
|
|
28
|
+
city,
|
|
29
|
+
postalCode,
|
|
30
|
+
country,
|
|
31
|
+
state,
|
|
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/docs/ApiError.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ApiError
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ApiError } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: ApiError = {
|
|
17
|
+
code,
|
|
18
|
+
message,
|
|
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
|
+
# AuthorizeStripe200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**redirect_url** | **string** | The URL to redirect to | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AuthorizeStripe200Response } from '@teemill/platform';
|
|
14
|
+
|
|
15
|
+
const instance: AuthorizeStripe200Response = {
|
|
16
|
+
redirect_url,
|
|
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
|
+
# ContactInformation
|
|
2
|
+
|
|
3
|
+
Order recipient contact information, used only for courier tracking/updates.
|
|
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 { ContactInformation } from '@teemill/platform';
|
|
16
|
+
|
|
17
|
+
const instance: ContactInformation = {
|
|
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)
|
package/docs/Customer.md
ADDED
|
@@ -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<'+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) 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<'+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) 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<Customer>**](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<Fulfiller>**](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<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/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)
|