@teemill/platform 0.22.3 → 0.24.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 +6 -2
- package/api.ts +383 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +218 -7
- package/dist/api.js +254 -5
- 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 +218 -7
- package/dist/esm/api.js +254 -5
- 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/CreateChatChannel200Response.md +20 -0
- package/docs/EnquiriesApi.md +67 -4
- package/docs/Enquiry.md +2 -0
- package/docs/Order.md +2 -0
- package/docs/OrdersApi.md +126 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/OrdersApi.md
CHANGED
|
@@ -7,9 +7,11 @@ All URIs are relative to *https://localhost:8080*
|
|
|
7
7
|
|[**exportOrders**](#exportorders) | **GET** /v1/platform/{platformId}/orders/export | Export orders|
|
|
8
8
|
|[**getFulfillment**](#getfulfillment) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Get fulfillment|
|
|
9
9
|
|[**getOrder**](#getorder) | **GET** /v1/platform/{platformId}/orders/{orderId} | Get order|
|
|
10
|
+
|[**getOrderReceipt**](#getorderreceipt) | **GET** /v1/platform/{platformId}/orders/{orderId}/receipt | Get order receipt|
|
|
10
11
|
|[**listAvailableFulfillers**](#listavailablefulfillers) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers | List available fulfillers|
|
|
11
12
|
|[**listOrders**](#listorders) | **GET** /v1/platform/{platformId}/orders | List orders|
|
|
12
13
|
|[**retryPlatformPayment**](#retryplatformpayment) | **POST** /v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment | Retry|
|
|
14
|
+
|[**sendOrderReceipt**](#sendorderreceipt) | **POST** /v1/platform/{platformId}/orders/{orderId}/receipt/send | Send order receipt|
|
|
13
15
|
|[**updateFulfillment**](#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment|
|
|
14
16
|
|
|
15
17
|
# **exportOrders**
|
|
@@ -204,6 +206,68 @@ const { status, data } = await apiInstance.getOrder(
|
|
|
204
206
|
|
|
205
207
|
[[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)
|
|
206
208
|
|
|
209
|
+
# **getOrderReceipt**
|
|
210
|
+
> string getOrderReceipt()
|
|
211
|
+
|
|
212
|
+
Get an order receipt for a platform by a given order ID.
|
|
213
|
+
|
|
214
|
+
### Example
|
|
215
|
+
|
|
216
|
+
```typescript
|
|
217
|
+
import {
|
|
218
|
+
OrdersApi,
|
|
219
|
+
Configuration
|
|
220
|
+
} from '@teemill/platform';
|
|
221
|
+
|
|
222
|
+
const configuration = new Configuration();
|
|
223
|
+
const apiInstance = new OrdersApi(configuration);
|
|
224
|
+
|
|
225
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
226
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
227
|
+
let orderId: string; //The order identifier (default to undefined)
|
|
228
|
+
|
|
229
|
+
const { status, data } = await apiInstance.getOrderReceipt(
|
|
230
|
+
project,
|
|
231
|
+
platformId,
|
|
232
|
+
orderId
|
|
233
|
+
);
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Parameters
|
|
237
|
+
|
|
238
|
+
|Name | Type | Description | Notes|
|
|
239
|
+
|------------- | ------------- | ------------- | -------------|
|
|
240
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
241
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
242
|
+
| **orderId** | [**string**] | The order identifier | defaults to undefined|
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### Return type
|
|
246
|
+
|
|
247
|
+
**string**
|
|
248
|
+
|
|
249
|
+
### Authorization
|
|
250
|
+
|
|
251
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
252
|
+
|
|
253
|
+
### HTTP request headers
|
|
254
|
+
|
|
255
|
+
- **Content-Type**: Not defined
|
|
256
|
+
- **Accept**: text/html, application/json
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### HTTP response details
|
|
260
|
+
| Status code | Description | Response headers |
|
|
261
|
+
|-------------|-------------|------------------|
|
|
262
|
+
|**200** | Returns the order receipt as an HTML page | - |
|
|
263
|
+
|**400** | Failed validation | - |
|
|
264
|
+
|**401** | Not authorised to access this resource | - |
|
|
265
|
+
|**403** | Refuse to authorize | - |
|
|
266
|
+
|**404** | Resource not found | - |
|
|
267
|
+
|**500** | Unknown server error | - |
|
|
268
|
+
|
|
269
|
+
[[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)
|
|
270
|
+
|
|
207
271
|
# **listAvailableFulfillers**
|
|
208
272
|
> FulfillersResponse listAvailableFulfillers()
|
|
209
273
|
|
|
@@ -405,6 +469,68 @@ const { status, data } = await apiInstance.retryPlatformPayment(
|
|
|
405
469
|
|
|
406
470
|
[[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)
|
|
407
471
|
|
|
472
|
+
# **sendOrderReceipt**
|
|
473
|
+
> sendOrderReceipt()
|
|
474
|
+
|
|
475
|
+
Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
476
|
+
|
|
477
|
+
### Example
|
|
478
|
+
|
|
479
|
+
```typescript
|
|
480
|
+
import {
|
|
481
|
+
OrdersApi,
|
|
482
|
+
Configuration
|
|
483
|
+
} from '@teemill/platform';
|
|
484
|
+
|
|
485
|
+
const configuration = new Configuration();
|
|
486
|
+
const apiInstance = new OrdersApi(configuration);
|
|
487
|
+
|
|
488
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
489
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
490
|
+
let orderId: string; //The order identifier (default to undefined)
|
|
491
|
+
|
|
492
|
+
const { status, data } = await apiInstance.sendOrderReceipt(
|
|
493
|
+
project,
|
|
494
|
+
platformId,
|
|
495
|
+
orderId
|
|
496
|
+
);
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
### Parameters
|
|
500
|
+
|
|
501
|
+
|Name | Type | Description | Notes|
|
|
502
|
+
|------------- | ------------- | ------------- | -------------|
|
|
503
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
504
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
505
|
+
| **orderId** | [**string**] | The order identifier | defaults to undefined|
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
### Return type
|
|
509
|
+
|
|
510
|
+
void (empty response body)
|
|
511
|
+
|
|
512
|
+
### Authorization
|
|
513
|
+
|
|
514
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
515
|
+
|
|
516
|
+
### HTTP request headers
|
|
517
|
+
|
|
518
|
+
- **Content-Type**: Not defined
|
|
519
|
+
- **Accept**: application/json
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
### HTTP response details
|
|
523
|
+
| Status code | Description | Response headers |
|
|
524
|
+
|-------------|-------------|------------------|
|
|
525
|
+
|**204** | Successfully sent order receipt to customer | - |
|
|
526
|
+
|**400** | Failed validation | - |
|
|
527
|
+
|**401** | Not authorised to access this resource | - |
|
|
528
|
+
|**403** | Refuse to authorize | - |
|
|
529
|
+
|**404** | Resource not found | - |
|
|
530
|
+
|**500** | Unknown server error | - |
|
|
531
|
+
|
|
532
|
+
[[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)
|
|
533
|
+
|
|
408
534
|
# **updateFulfillment**
|
|
409
535
|
> Fulfillment updateFulfillment(updateFulfillmentRequest)
|
|
410
536
|
|
package/index.ts
CHANGED