@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/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\'s order that will be displayed on the shipping label. | [optional] [default to undefined]
|
|
16
|
+
**fulfillments** | [**Array<Fulfillment>**](Fulfillment.md) | | [optional] [readonly] [default to undefined]
|
|
17
|
+
**items** | [**Array<OrderItem>**](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<StatusHistoryItem>**](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<Option>**](Option.md) | Options associated to an order item\'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<Image>**](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\'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)
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
# OrdersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**exportOrders**](#exportorders) | **GET** /v1/platform/{platformId}/orders/export | Export orders|
|
|
8
|
+
|[**getFulfillment**](#getfulfillment) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Get fulfillment|
|
|
9
|
+
|[**getOrder**](#getorder) | **GET** /v1/platform/{platformId}/orders/{orderId} | Get order|
|
|
10
|
+
|[**listAvailableFulfillers**](#listavailablefulfillers) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers | List available fulfillers|
|
|
11
|
+
|[**listOrders**](#listorders) | **GET** /v1/platform/{platformId}/orders | List orders|
|
|
12
|
+
|[**updateFulfillment**](#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment|
|
|
13
|
+
|
|
14
|
+
# **exportOrders**
|
|
15
|
+
> File exportOrders()
|
|
16
|
+
|
|
17
|
+
Export orders as a CSV file
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
OrdersApi,
|
|
24
|
+
Configuration
|
|
25
|
+
} from '@teemill/platform';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new OrdersApi(configuration);
|
|
29
|
+
|
|
30
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
31
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
32
|
+
let start: string; //Start of date range to filter by when orders were placed (default to undefined)
|
|
33
|
+
let end: string; //End of date range to filter when orders were placed (optional) (default to undefined)
|
|
34
|
+
let search: string; //Search term to filter based on order reference, customer name and email (optional) (default to undefined)
|
|
35
|
+
|
|
36
|
+
const { status, data } = await apiInstance.exportOrders(
|
|
37
|
+
project,
|
|
38
|
+
platformId,
|
|
39
|
+
start,
|
|
40
|
+
end,
|
|
41
|
+
search
|
|
42
|
+
);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
|Name | Type | Description | Notes|
|
|
48
|
+
|------------- | ------------- | ------------- | -------------|
|
|
49
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
50
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
51
|
+
| **start** | [**string**] | Start of date range to filter by when orders were placed | defaults to undefined|
|
|
52
|
+
| **end** | [**string**] | End of date range to filter when orders were placed | (optional) defaults to undefined|
|
|
53
|
+
| **search** | [**string**] | Search term to filter based on order reference, customer name and email | (optional) defaults to undefined|
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Return type
|
|
57
|
+
|
|
58
|
+
**File**
|
|
59
|
+
|
|
60
|
+
### Authorization
|
|
61
|
+
|
|
62
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
63
|
+
|
|
64
|
+
### HTTP request headers
|
|
65
|
+
|
|
66
|
+
- **Content-Type**: Not defined
|
|
67
|
+
- **Accept**: text/csv; charset=utf-8, application/json
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### HTTP response details
|
|
71
|
+
| Status code | Description | Response headers |
|
|
72
|
+
|-------------|-------------|------------------|
|
|
73
|
+
|**200** | Returns the CSV export | - |
|
|
74
|
+
|**202** | Export started. When complete, the export will be available for download from a notification within PodOS Dashboard. | - |
|
|
75
|
+
|**400** | Failed validation | - |
|
|
76
|
+
|**401** | Not authorised to access this resource | - |
|
|
77
|
+
|**403** | Refuse to authorize | - |
|
|
78
|
+
|**500** | Unknown server error | - |
|
|
79
|
+
|
|
80
|
+
[[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)
|
|
81
|
+
|
|
82
|
+
# **getFulfillment**
|
|
83
|
+
> Fulfillment getFulfillment()
|
|
84
|
+
|
|
85
|
+
Get a fulfillment for a platform by a given fulfillment ID.
|
|
86
|
+
|
|
87
|
+
### Example
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import {
|
|
91
|
+
OrdersApi,
|
|
92
|
+
Configuration
|
|
93
|
+
} from '@teemill/platform';
|
|
94
|
+
|
|
95
|
+
const configuration = new Configuration();
|
|
96
|
+
const apiInstance = new OrdersApi(configuration);
|
|
97
|
+
|
|
98
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
99
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
100
|
+
let fulfillmentId: string; //The fulfillment identifier (default to undefined)
|
|
101
|
+
|
|
102
|
+
const { status, data } = await apiInstance.getFulfillment(
|
|
103
|
+
project,
|
|
104
|
+
platformId,
|
|
105
|
+
fulfillmentId
|
|
106
|
+
);
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Parameters
|
|
110
|
+
|
|
111
|
+
|Name | Type | Description | Notes|
|
|
112
|
+
|------------- | ------------- | ------------- | -------------|
|
|
113
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
114
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
115
|
+
| **fulfillmentId** | [**string**] | The fulfillment identifier | defaults to undefined|
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Return type
|
|
119
|
+
|
|
120
|
+
**Fulfillment**
|
|
121
|
+
|
|
122
|
+
### Authorization
|
|
123
|
+
|
|
124
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
125
|
+
|
|
126
|
+
### HTTP request headers
|
|
127
|
+
|
|
128
|
+
- **Content-Type**: Not defined
|
|
129
|
+
- **Accept**: application/json
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### HTTP response details
|
|
133
|
+
| Status code | Description | Response headers |
|
|
134
|
+
|-------------|-------------|------------------|
|
|
135
|
+
|**200** | A fulfillment for an order | - |
|
|
136
|
+
|**400** | Failed validation | - |
|
|
137
|
+
|**401** | Not authorised to access this resource | - |
|
|
138
|
+
|**403** | Refuse to authorize | - |
|
|
139
|
+
|**404** | Resource not found | - |
|
|
140
|
+
|**500** | Unknown server error | - |
|
|
141
|
+
|
|
142
|
+
[[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)
|
|
143
|
+
|
|
144
|
+
# **getOrder**
|
|
145
|
+
> Order getOrder()
|
|
146
|
+
|
|
147
|
+
Get an order for a platform by a given order ID.
|
|
148
|
+
|
|
149
|
+
### Example
|
|
150
|
+
|
|
151
|
+
```typescript
|
|
152
|
+
import {
|
|
153
|
+
OrdersApi,
|
|
154
|
+
Configuration
|
|
155
|
+
} from '@teemill/platform';
|
|
156
|
+
|
|
157
|
+
const configuration = new Configuration();
|
|
158
|
+
const apiInstance = new OrdersApi(configuration);
|
|
159
|
+
|
|
160
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
161
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
162
|
+
let orderId: string; //The order identifier (default to undefined)
|
|
163
|
+
|
|
164
|
+
const { status, data } = await apiInstance.getOrder(
|
|
165
|
+
project,
|
|
166
|
+
platformId,
|
|
167
|
+
orderId
|
|
168
|
+
);
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Parameters
|
|
172
|
+
|
|
173
|
+
|Name | Type | Description | Notes|
|
|
174
|
+
|------------- | ------------- | ------------- | -------------|
|
|
175
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
176
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
177
|
+
| **orderId** | [**string**] | The order identifier | defaults to undefined|
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Return type
|
|
181
|
+
|
|
182
|
+
**Order**
|
|
183
|
+
|
|
184
|
+
### Authorization
|
|
185
|
+
|
|
186
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
187
|
+
|
|
188
|
+
### HTTP request headers
|
|
189
|
+
|
|
190
|
+
- **Content-Type**: Not defined
|
|
191
|
+
- **Accept**: application/json
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
### HTTP response details
|
|
195
|
+
| Status code | Description | Response headers |
|
|
196
|
+
|-------------|-------------|------------------|
|
|
197
|
+
|**200** | Order schema | - |
|
|
198
|
+
|**400** | Failed validation | - |
|
|
199
|
+
|**401** | Not authorised to access this resource | - |
|
|
200
|
+
|**403** | Refuse to authorize | - |
|
|
201
|
+
|**404** | Resource not found | - |
|
|
202
|
+
|**500** | Unknown server error | - |
|
|
203
|
+
|
|
204
|
+
[[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)
|
|
205
|
+
|
|
206
|
+
# **listAvailableFulfillers**
|
|
207
|
+
> FulfillersResponse listAvailableFulfillers()
|
|
208
|
+
|
|
209
|
+
List available fulfillers for a given fulfillment
|
|
210
|
+
|
|
211
|
+
### Example
|
|
212
|
+
|
|
213
|
+
```typescript
|
|
214
|
+
import {
|
|
215
|
+
OrdersApi,
|
|
216
|
+
Configuration
|
|
217
|
+
} from '@teemill/platform';
|
|
218
|
+
|
|
219
|
+
const configuration = new Configuration();
|
|
220
|
+
const apiInstance = new OrdersApi(configuration);
|
|
221
|
+
|
|
222
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
223
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
224
|
+
let fulfillmentId: string; //The fulfillment identifier (default to undefined)
|
|
225
|
+
|
|
226
|
+
const { status, data } = await apiInstance.listAvailableFulfillers(
|
|
227
|
+
project,
|
|
228
|
+
platformId,
|
|
229
|
+
fulfillmentId
|
|
230
|
+
);
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Parameters
|
|
234
|
+
|
|
235
|
+
|Name | Type | Description | Notes|
|
|
236
|
+
|------------- | ------------- | ------------- | -------------|
|
|
237
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
238
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
239
|
+
| **fulfillmentId** | [**string**] | The fulfillment identifier | defaults to undefined|
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
### Return type
|
|
243
|
+
|
|
244
|
+
**FulfillersResponse**
|
|
245
|
+
|
|
246
|
+
### Authorization
|
|
247
|
+
|
|
248
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
249
|
+
|
|
250
|
+
### HTTP request headers
|
|
251
|
+
|
|
252
|
+
- **Content-Type**: Not defined
|
|
253
|
+
- **Accept**: application/json
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### HTTP response details
|
|
257
|
+
| Status code | Description | Response headers |
|
|
258
|
+
|-------------|-------------|------------------|
|
|
259
|
+
|**200** | List of fulfillers for orders | - |
|
|
260
|
+
|**400** | Failed validation | - |
|
|
261
|
+
|**401** | Not authorised to access this resource | - |
|
|
262
|
+
|**403** | Refuse to authorize | - |
|
|
263
|
+
|**404** | Resource not found | - |
|
|
264
|
+
|**500** | Unknown server error | - |
|
|
265
|
+
|
|
266
|
+
[[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)
|
|
267
|
+
|
|
268
|
+
# **listOrders**
|
|
269
|
+
> OrdersResponse listOrders()
|
|
270
|
+
|
|
271
|
+
Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
272
|
+
|
|
273
|
+
### Example
|
|
274
|
+
|
|
275
|
+
```typescript
|
|
276
|
+
import {
|
|
277
|
+
OrdersApi,
|
|
278
|
+
Configuration
|
|
279
|
+
} from '@teemill/platform';
|
|
280
|
+
|
|
281
|
+
const configuration = new Configuration();
|
|
282
|
+
const apiInstance = new OrdersApi(configuration);
|
|
283
|
+
|
|
284
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
285
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
286
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
287
|
+
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)
|
|
288
|
+
let search: string; //Search term to filter based on order reference, customer name and email (optional) (default to undefined)
|
|
289
|
+
let start: string; //Start of date range to filter when orders were placed (optional) (default to undefined)
|
|
290
|
+
let end: string; //End of date range to filter when orders were placed (optional) (default to undefined)
|
|
291
|
+
let dateFilterType: 'createdAt' | 'updatedAt' | 'statusChangedAt'; //Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query. (optional) (default to 'createdAt')
|
|
292
|
+
|
|
293
|
+
const { status, data } = await apiInstance.listOrders(
|
|
294
|
+
project,
|
|
295
|
+
platformId,
|
|
296
|
+
pageToken,
|
|
297
|
+
pageSize,
|
|
298
|
+
search,
|
|
299
|
+
start,
|
|
300
|
+
end,
|
|
301
|
+
dateFilterType
|
|
302
|
+
);
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### Parameters
|
|
306
|
+
|
|
307
|
+
|Name | Type | Description | Notes|
|
|
308
|
+
|------------- | ------------- | ------------- | -------------|
|
|
309
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
310
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
311
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
312
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
313
|
+
| **search** | [**string**] | Search term to filter based on order reference, customer name and email | (optional) defaults to undefined|
|
|
314
|
+
| **start** | [**string**] | Start of date range to filter when orders were placed | (optional) defaults to undefined|
|
|
315
|
+
| **end** | [**string**] | End of date range to filter when orders were placed | (optional) defaults to undefined|
|
|
316
|
+
| **dateFilterType** | [**'createdAt' | 'updatedAt' | 'statusChangedAt'**]**Array<'createdAt' | 'updatedAt' | 'statusChangedAt'>** | Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query. | (optional) defaults to 'createdAt'|
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
### Return type
|
|
320
|
+
|
|
321
|
+
**OrdersResponse**
|
|
322
|
+
|
|
323
|
+
### Authorization
|
|
324
|
+
|
|
325
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
326
|
+
|
|
327
|
+
### HTTP request headers
|
|
328
|
+
|
|
329
|
+
- **Content-Type**: Not defined
|
|
330
|
+
- **Accept**: application/json
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
### HTTP response details
|
|
334
|
+
| Status code | Description | Response headers |
|
|
335
|
+
|-------------|-------------|------------------|
|
|
336
|
+
|**200** | List of orders and pagination metadata | - |
|
|
337
|
+
|**400** | Failed validation | - |
|
|
338
|
+
|**401** | Not authorised to access this resource | - |
|
|
339
|
+
|**403** | Refuse to authorize | - |
|
|
340
|
+
|**404** | Resource not found | - |
|
|
341
|
+
|**500** | Unknown server error | - |
|
|
342
|
+
|
|
343
|
+
[[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)
|
|
344
|
+
|
|
345
|
+
# **updateFulfillment**
|
|
346
|
+
> Fulfillment updateFulfillment(updateFulfillmentRequest)
|
|
347
|
+
|
|
348
|
+
Update a fulfillment that belongs to an order placed through the platform
|
|
349
|
+
|
|
350
|
+
### Example
|
|
351
|
+
|
|
352
|
+
```typescript
|
|
353
|
+
import {
|
|
354
|
+
OrdersApi,
|
|
355
|
+
Configuration,
|
|
356
|
+
UpdateFulfillmentRequest
|
|
357
|
+
} from '@teemill/platform';
|
|
358
|
+
|
|
359
|
+
const configuration = new Configuration();
|
|
360
|
+
const apiInstance = new OrdersApi(configuration);
|
|
361
|
+
|
|
362
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
363
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
364
|
+
let fulfillmentId: string; //The fulfillment identifier (default to undefined)
|
|
365
|
+
let updateFulfillmentRequest: UpdateFulfillmentRequest; //
|
|
366
|
+
|
|
367
|
+
const { status, data } = await apiInstance.updateFulfillment(
|
|
368
|
+
project,
|
|
369
|
+
platformId,
|
|
370
|
+
fulfillmentId,
|
|
371
|
+
updateFulfillmentRequest
|
|
372
|
+
);
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
### Parameters
|
|
376
|
+
|
|
377
|
+
|Name | Type | Description | Notes|
|
|
378
|
+
|------------- | ------------- | ------------- | -------------|
|
|
379
|
+
| **updateFulfillmentRequest** | **UpdateFulfillmentRequest**| | |
|
|
380
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
381
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
382
|
+
| **fulfillmentId** | [**string**] | The fulfillment identifier | defaults to undefined|
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
### Return type
|
|
386
|
+
|
|
387
|
+
**Fulfillment**
|
|
388
|
+
|
|
389
|
+
### Authorization
|
|
390
|
+
|
|
391
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
392
|
+
|
|
393
|
+
### HTTP request headers
|
|
394
|
+
|
|
395
|
+
- **Content-Type**: application/json
|
|
396
|
+
- **Accept**: application/json
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
### HTTP response details
|
|
400
|
+
| Status code | Description | Response headers |
|
|
401
|
+
|-------------|-------------|------------------|
|
|
402
|
+
|**200** | A fulfillment for an order | - |
|
|
403
|
+
|**400** | Failed validation | - |
|
|
404
|
+
|**401** | Not authorised to access this resource | - |
|
|
405
|
+
|**403** | Refuse to authorize | - |
|
|
406
|
+
|**404** | Resource not found | - |
|
|
407
|
+
|**500** | Unknown server error | - |
|
|
408
|
+
|
|
409
|
+
[[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)
|
|
410
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OrdersResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**orders** | [**Array<Order>**](Order.md) | | [optional] [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { OrdersResponse } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: OrdersResponse = {
|
|
17
|
+
orders,
|
|
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)
|
package/docs/Origin.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Origin
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**isPaid** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Origin } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: Origin = {
|
|
17
|
+
code,
|
|
18
|
+
isPaid,
|
|
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
|
+
# PaymentAccount
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | The name of the payment account | [default to undefined]
|
|
9
|
+
**method** | **string** | The payment method | [default to undefined]
|
|
10
|
+
**config** | **{ [key: string]: string; }** | The configuration for the payment account | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PaymentAccount } from '@teemill/platform';
|
|
16
|
+
|
|
17
|
+
const instance: PaymentAccount = {
|
|
18
|
+
name,
|
|
19
|
+
method,
|
|
20
|
+
config,
|
|
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)
|