@teemill/platform 0.29.2 → 0.30.1
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 +7 -2
- package/api.ts +328 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +203 -1
- package/dist/api.js +184 -2
- 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 +203 -1
- package/dist/esm/api.js +183 -1
- 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/AmendOrderRequest.md +20 -0
- package/docs/AmendOrderRequestAmendmentsInner.md +26 -0
- package/docs/OrdersApi.md +132 -0
- package/docs/ReturnOrderRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AmendOrderRequestAmendmentsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Unique order item identifier | [default to undefined]
|
|
9
|
+
**action** | **string** | | [default to undefined]
|
|
10
|
+
**quantity** | **number** | The quantity of the item to refund or exchange. This must be less than or equal to the quantity of the item in the order. | [default to undefined]
|
|
11
|
+
**newVariantRef** | **string** | A reference to the variant being ordered | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AmendOrderRequestAmendmentsInner } from '@teemill/platform';
|
|
17
|
+
|
|
18
|
+
const instance: AmendOrderRequestAmendmentsInner = {
|
|
19
|
+
id,
|
|
20
|
+
action,
|
|
21
|
+
quantity,
|
|
22
|
+
newVariantRef,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[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/OrdersApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**amendOrder**](#amendorder) | **PATCH** /v1/platform/{platformId}/orders/{orderId}/amend | Amend the contents of an order|
|
|
7
8
|
|[**confirmOrder**](#confirmorder) | **POST** /v1/platform/{platformId}/orders/{orderId}/confirm | Confirm order|
|
|
8
9
|
|[**createOrder**](#createorder) | **POST** /v1/platform/{platformId}/orders | Create order|
|
|
9
10
|
|[**exportOrders**](#exportorders) | **GET** /v1/platform/{platformId}/orders/export | Export orders|
|
|
@@ -13,9 +14,75 @@ All URIs are relative to *https://localhost:8080*
|
|
|
13
14
|
|[**listAvailableFulfillers**](#listavailablefulfillers) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers | List available fulfillers|
|
|
14
15
|
|[**listOrders**](#listorders) | **GET** /v1/platform/{platformId}/orders | List orders|
|
|
15
16
|
|[**retryPlatformPayment**](#retryplatformpayment) | **POST** /v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment | Retry|
|
|
17
|
+
|[**returnOrder**](#returnorder) | **PATCH** /v1/platform/{platformId}/orders/{orderId}/return | Return the contents of an order for a refund or exchange|
|
|
16
18
|
|[**sendOrderReceipt**](#sendorderreceipt) | **POST** /v1/platform/{platformId}/orders/{orderId}/receipt/send | Send order receipt|
|
|
17
19
|
|[**updateFulfillment**](#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment|
|
|
18
20
|
|
|
21
|
+
# **amendOrder**
|
|
22
|
+
> Order amendOrder(amendOrderRequest)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import {
|
|
29
|
+
OrdersApi,
|
|
30
|
+
Configuration,
|
|
31
|
+
AmendOrderRequest
|
|
32
|
+
} from '@teemill/platform';
|
|
33
|
+
|
|
34
|
+
const configuration = new Configuration();
|
|
35
|
+
const apiInstance = new OrdersApi(configuration);
|
|
36
|
+
|
|
37
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
38
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
39
|
+
let orderId: string; //The order identifier (default to undefined)
|
|
40
|
+
let amendOrderRequest: AmendOrderRequest; //AmendOrder schema
|
|
41
|
+
|
|
42
|
+
const { status, data } = await apiInstance.amendOrder(
|
|
43
|
+
project,
|
|
44
|
+
platformId,
|
|
45
|
+
orderId,
|
|
46
|
+
amendOrderRequest
|
|
47
|
+
);
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
|Name | Type | Description | Notes|
|
|
53
|
+
|------------- | ------------- | ------------- | -------------|
|
|
54
|
+
| **amendOrderRequest** | **AmendOrderRequest**| AmendOrder schema | |
|
|
55
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
56
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
57
|
+
| **orderId** | [**string**] | The order identifier | defaults to undefined|
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
**Order**
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: application/json
|
|
71
|
+
- **Accept**: application/json
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### HTTP response details
|
|
75
|
+
| Status code | Description | Response headers |
|
|
76
|
+
|-------------|-------------|------------------|
|
|
77
|
+
|**200** | Order schema | - |
|
|
78
|
+
|**400** | Failed validation | - |
|
|
79
|
+
|**401** | Not authorised to access this resource | - |
|
|
80
|
+
|**403** | Refuse to authorize | - |
|
|
81
|
+
|**404** | Resource not found | - |
|
|
82
|
+
|**500** | Unknown server error | - |
|
|
83
|
+
|
|
84
|
+
[[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)
|
|
85
|
+
|
|
19
86
|
# **confirmOrder**
|
|
20
87
|
> Order confirmOrder(confirmOrderRequest)
|
|
21
88
|
|
|
@@ -591,6 +658,71 @@ const { status, data } = await apiInstance.retryPlatformPayment(
|
|
|
591
658
|
- **Accept**: application/json
|
|
592
659
|
|
|
593
660
|
|
|
661
|
+
### HTTP response details
|
|
662
|
+
| Status code | Description | Response headers |
|
|
663
|
+
|-------------|-------------|------------------|
|
|
664
|
+
|**200** | Order schema | - |
|
|
665
|
+
|**400** | Failed validation | - |
|
|
666
|
+
|**401** | Not authorised to access this resource | - |
|
|
667
|
+
|**403** | Refuse to authorize | - |
|
|
668
|
+
|**404** | Resource not found | - |
|
|
669
|
+
|**500** | Unknown server error | - |
|
|
670
|
+
|
|
671
|
+
[[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)
|
|
672
|
+
|
|
673
|
+
# **returnOrder**
|
|
674
|
+
> Order returnOrder(returnOrderRequest)
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
### Example
|
|
678
|
+
|
|
679
|
+
```typescript
|
|
680
|
+
import {
|
|
681
|
+
OrdersApi,
|
|
682
|
+
Configuration,
|
|
683
|
+
ReturnOrderRequest
|
|
684
|
+
} from '@teemill/platform';
|
|
685
|
+
|
|
686
|
+
const configuration = new Configuration();
|
|
687
|
+
const apiInstance = new OrdersApi(configuration);
|
|
688
|
+
|
|
689
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
690
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
691
|
+
let orderId: string; //The order identifier (default to undefined)
|
|
692
|
+
let returnOrderRequest: ReturnOrderRequest; //ReturnOrder schema
|
|
693
|
+
|
|
694
|
+
const { status, data } = await apiInstance.returnOrder(
|
|
695
|
+
project,
|
|
696
|
+
platformId,
|
|
697
|
+
orderId,
|
|
698
|
+
returnOrderRequest
|
|
699
|
+
);
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
### Parameters
|
|
703
|
+
|
|
704
|
+
|Name | Type | Description | Notes|
|
|
705
|
+
|------------- | ------------- | ------------- | -------------|
|
|
706
|
+
| **returnOrderRequest** | **ReturnOrderRequest**| ReturnOrder schema | |
|
|
707
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
708
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
709
|
+
| **orderId** | [**string**] | The order identifier | defaults to undefined|
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
### Return type
|
|
713
|
+
|
|
714
|
+
**Order**
|
|
715
|
+
|
|
716
|
+
### Authorization
|
|
717
|
+
|
|
718
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
719
|
+
|
|
720
|
+
### HTTP request headers
|
|
721
|
+
|
|
722
|
+
- **Content-Type**: application/json
|
|
723
|
+
- **Accept**: application/json
|
|
724
|
+
|
|
725
|
+
|
|
594
726
|
### HTTP response details
|
|
595
727
|
| Status code | Description | Response headers |
|
|
596
728
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ReturnOrderRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**returns** | [**Array<AmendOrderRequestAmendmentsInner>**](AmendOrderRequestAmendmentsInner.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ReturnOrderRequest } from '@teemill/platform';
|
|
14
|
+
|
|
15
|
+
const instance: ReturnOrderRequest = {
|
|
16
|
+
returns,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED