@teemill/platform 0.15.0 → 0.17.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 +95 -2
- package/api.ts +879 -4
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +596 -4
- package/dist/api.js +429 -4
- 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 +596 -4
- package/dist/esm/api.js +424 -3
- 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 +56 -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/PaymentAttempt.md +29 -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
|
@@ -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)
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# PaymentApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**authorizeStripe**](#authorizestripe) | **GET** /v1/platform/payment/stripe/authorize | Authorize Stripe|
|
|
8
|
+
|[**deauthorizeStripe**](#deauthorizestripe) | **DELETE** /v1/platform/payment/stripe/deauthorize | Deauthorize Stripe|
|
|
9
|
+
|[**getStripePaymentAccount**](#getstripepaymentaccount) | **GET** /v1/platform/payment/stripe | Get Stripe Payment Account|
|
|
10
|
+
|
|
11
|
+
# **authorizeStripe**
|
|
12
|
+
> AuthorizeStripe200Response authorizeStripe()
|
|
13
|
+
|
|
14
|
+
Authorize a Stripe payment account
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
PaymentApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@teemill/platform';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new PaymentApi(configuration);
|
|
26
|
+
|
|
27
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.authorizeStripe(
|
|
30
|
+
project
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**AuthorizeStripe200Response**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: Not defined
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | Redirect to authorize Stripe | - |
|
|
59
|
+
|**400** | Failed validation | - |
|
|
60
|
+
|**401** | Not authorised to access this resource | - |
|
|
61
|
+
|**403** | Refuse to authorize | - |
|
|
62
|
+
|**404** | Resource not found | - |
|
|
63
|
+
|**500** | Unknown server error | - |
|
|
64
|
+
|
|
65
|
+
[[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)
|
|
66
|
+
|
|
67
|
+
# **deauthorizeStripe**
|
|
68
|
+
> deauthorizeStripe()
|
|
69
|
+
|
|
70
|
+
Deauthorize a Stripe payment account
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
PaymentApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@teemill/platform';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new PaymentApi(configuration);
|
|
82
|
+
|
|
83
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.deauthorizeStripe(
|
|
86
|
+
project
|
|
87
|
+
);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameters
|
|
91
|
+
|
|
92
|
+
|Name | Type | Description | Notes|
|
|
93
|
+
|------------- | ------------- | ------------- | -------------|
|
|
94
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
void (empty response body)
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: Not defined
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**204** | Successfully deauthorized Stripe payment account | - |
|
|
115
|
+
|**400** | Failed validation | - |
|
|
116
|
+
|**401** | Not authorised to access this resource | - |
|
|
117
|
+
|**403** | Refuse to authorize | - |
|
|
118
|
+
|**404** | Resource not found | - |
|
|
119
|
+
|**500** | Unknown server error | - |
|
|
120
|
+
|
|
121
|
+
[[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)
|
|
122
|
+
|
|
123
|
+
# **getStripePaymentAccount**
|
|
124
|
+
> PaymentAccount getStripePaymentAccount()
|
|
125
|
+
|
|
126
|
+
Get the Stripe payment account for the project
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
PaymentApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from '@teemill/platform';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new PaymentApi(configuration);
|
|
138
|
+
|
|
139
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
140
|
+
|
|
141
|
+
const { status, data } = await apiInstance.getStripePaymentAccount(
|
|
142
|
+
project
|
|
143
|
+
);
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
|Name | Type | Description | Notes|
|
|
149
|
+
|------------- | ------------- | ------------- | -------------|
|
|
150
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
**PaymentAccount**
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
|**200** | Successfully connected Stripe payment account | - |
|
|
171
|
+
|**400** | Failed validation | - |
|
|
172
|
+
|**401** | Not authorised to access this resource | - |
|
|
173
|
+
|**403** | Refuse to authorize | - |
|
|
174
|
+
|**404** | Resource not found | - |
|
|
175
|
+
|**500** | Unknown server error | - |
|
|
176
|
+
|
|
177
|
+
[[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)
|
|
178
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# PaymentAttempt
|
|
2
|
+
|
|
3
|
+
List of payment attempts for this order
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**paymentProvider** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**transactionId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**createdAt** | **string** | ISO 8601 Timestamp | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PaymentAttempt } from '@teemill/platform';
|
|
19
|
+
|
|
20
|
+
const instance: PaymentAttempt = {
|
|
21
|
+
paymentProvider,
|
|
22
|
+
status,
|
|
23
|
+
transactionId,
|
|
24
|
+
message,
|
|
25
|
+
createdAt,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|