@teemill/platform 0.18.0 → 0.20.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 +14 -2
- package/api.ts +861 -65
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +535 -1
- package/dist/api.js +401 -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 +535 -1
- package/dist/esm/api.js +396 -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/Client.md +24 -0
- package/docs/EnquiriesApi.md +204 -0
- package/docs/Enquiry.md +42 -0
- package/docs/EnquiryExtraInputsInner.md +24 -0
- package/docs/EnquiryExtraInputsInnerValue.md +18 -0
- package/docs/ListCustomerEnquiries200Response.md +22 -0
- package/docs/ListCustomerEnquiryLogs200Response.md +20 -0
- package/docs/ListCustomerEnquiryLogs200ResponseLogsInner.md +22 -0
- package/docs/ListCustomerEnquiryLogs200ResponseLogsInnerCustomer.md +28 -0
- package/docs/OrdersApi.md +63 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# EnquiriesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getCustomerEnquiry**](#getcustomerenquiry) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId} | Get customer enquiry|
|
|
8
|
+
|[**listCustomerEnquiries**](#listcustomerenquiries) | **GET** /v1/platform/{platformId}/customers/enquiries | List customer enquiries|
|
|
9
|
+
|[**listCustomerEnquiryLogs**](#listcustomerenquirylogs) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs | List customer enquiry Logs|
|
|
10
|
+
|
|
11
|
+
# **getCustomerEnquiry**
|
|
12
|
+
> Enquiry getCustomerEnquiry()
|
|
13
|
+
|
|
14
|
+
Get a customer enquiry
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
EnquiriesApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@teemill/platform';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new EnquiriesApi(configuration);
|
|
26
|
+
|
|
27
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
28
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
29
|
+
let enquiryId: string; // (default to undefined)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.getCustomerEnquiry(
|
|
32
|
+
project,
|
|
33
|
+
platformId,
|
|
34
|
+
enquiryId
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
43
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
44
|
+
| **enquiryId** | [**string**] | | defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**Enquiry**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: Not defined
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | A customer enquiry | - |
|
|
65
|
+
|**401** | Not authorised to access this resource | - |
|
|
66
|
+
|**403** | Refuse to authorize | - |
|
|
67
|
+
|**404** | Resource not found | - |
|
|
68
|
+
|**500** | Unknown server error | - |
|
|
69
|
+
|
|
70
|
+
[[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)
|
|
71
|
+
|
|
72
|
+
# **listCustomerEnquiries**
|
|
73
|
+
> ListCustomerEnquiries200Response listCustomerEnquiries()
|
|
74
|
+
|
|
75
|
+
List customer enquiries
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
EnquiriesApi,
|
|
82
|
+
Configuration
|
|
83
|
+
} from '@teemill/platform';
|
|
84
|
+
|
|
85
|
+
const configuration = new Configuration();
|
|
86
|
+
const apiInstance = new EnquiriesApi(configuration);
|
|
87
|
+
|
|
88
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
89
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
90
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
91
|
+
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)
|
|
92
|
+
let search: string; //Search term to filter based on enquiry title, content, customer name and customer email. (optional) (default to undefined)
|
|
93
|
+
let start: string; //Start of date range to filter by (optional) (default to undefined)
|
|
94
|
+
let end: string; //End of date range to filter by (optional) (default to undefined)
|
|
95
|
+
|
|
96
|
+
const { status, data } = await apiInstance.listCustomerEnquiries(
|
|
97
|
+
project,
|
|
98
|
+
platformId,
|
|
99
|
+
pageToken,
|
|
100
|
+
pageSize,
|
|
101
|
+
search,
|
|
102
|
+
start,
|
|
103
|
+
end
|
|
104
|
+
);
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Parameters
|
|
108
|
+
|
|
109
|
+
|Name | Type | Description | Notes|
|
|
110
|
+
|------------- | ------------- | ------------- | -------------|
|
|
111
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
112
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
113
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
114
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
115
|
+
| **search** | [**string**] | Search term to filter based on enquiry title, content, customer name and customer email. | (optional) defaults to undefined|
|
|
116
|
+
| **start** | [**string**] | Start of date range to filter by | (optional) defaults to undefined|
|
|
117
|
+
| **end** | [**string**] | End of date range to filter by | (optional) defaults to undefined|
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Return type
|
|
121
|
+
|
|
122
|
+
**ListCustomerEnquiries200Response**
|
|
123
|
+
|
|
124
|
+
### Authorization
|
|
125
|
+
|
|
126
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
127
|
+
|
|
128
|
+
### HTTP request headers
|
|
129
|
+
|
|
130
|
+
- **Content-Type**: Not defined
|
|
131
|
+
- **Accept**: application/json
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### HTTP response details
|
|
135
|
+
| Status code | Description | Response headers |
|
|
136
|
+
|-------------|-------------|------------------|
|
|
137
|
+
|**200** | A list of customer enquiries | - |
|
|
138
|
+
|**400** | Failed validation | - |
|
|
139
|
+
|**401** | Not authorised to access this resource | - |
|
|
140
|
+
|**403** | Refuse to authorize | - |
|
|
141
|
+
|**500** | Unknown server error | - |
|
|
142
|
+
|
|
143
|
+
[[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)
|
|
144
|
+
|
|
145
|
+
# **listCustomerEnquiryLogs**
|
|
146
|
+
> ListCustomerEnquiryLogs200Response listCustomerEnquiryLogs()
|
|
147
|
+
|
|
148
|
+
Lists all customer enquiry Logs
|
|
149
|
+
|
|
150
|
+
### Example
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
import {
|
|
154
|
+
EnquiriesApi,
|
|
155
|
+
Configuration
|
|
156
|
+
} from '@teemill/platform';
|
|
157
|
+
|
|
158
|
+
const configuration = new Configuration();
|
|
159
|
+
const apiInstance = new EnquiriesApi(configuration);
|
|
160
|
+
|
|
161
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
162
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
163
|
+
let enquiryId: string; // (default to undefined)
|
|
164
|
+
|
|
165
|
+
const { status, data } = await apiInstance.listCustomerEnquiryLogs(
|
|
166
|
+
project,
|
|
167
|
+
platformId,
|
|
168
|
+
enquiryId
|
|
169
|
+
);
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Parameters
|
|
173
|
+
|
|
174
|
+
|Name | Type | Description | Notes|
|
|
175
|
+
|------------- | ------------- | ------------- | -------------|
|
|
176
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
177
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
178
|
+
| **enquiryId** | [**string**] | | defaults to undefined|
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### Return type
|
|
182
|
+
|
|
183
|
+
**ListCustomerEnquiryLogs200Response**
|
|
184
|
+
|
|
185
|
+
### Authorization
|
|
186
|
+
|
|
187
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
188
|
+
|
|
189
|
+
### HTTP request headers
|
|
190
|
+
|
|
191
|
+
- **Content-Type**: Not defined
|
|
192
|
+
- **Accept**: application/json
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### HTTP response details
|
|
196
|
+
| Status code | Description | Response headers |
|
|
197
|
+
|-------------|-------------|------------------|
|
|
198
|
+
|**200** | A list of customer enquiry logs belonging to the enquiry | - |
|
|
199
|
+
|**401** | Not authorised to access this resource | - |
|
|
200
|
+
|**403** | Refuse to authorize | - |
|
|
201
|
+
|**500** | Unknown server error | - |
|
|
202
|
+
|
|
203
|
+
[[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)
|
|
204
|
+
|
package/docs/Enquiry.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Enquiry
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**ref** | **string** | API reference for the enquiry | [default to undefined]
|
|
10
|
+
**customer** | [**ListCustomerEnquiryLogs200ResponseLogsInnerCustomer**](ListCustomerEnquiryLogs200ResponseLogsInnerCustomer.md) | | [default to undefined]
|
|
11
|
+
**client** | [**Client**](Client.md) | | [default to undefined]
|
|
12
|
+
**subject** | **string** | | [default to undefined]
|
|
13
|
+
**body** | **string** | | [default to undefined]
|
|
14
|
+
**createdAt** | **string** | | [default to undefined]
|
|
15
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
16
|
+
**tags** | **Array<string>** | | [default to undefined]
|
|
17
|
+
**status** | **string** | | [default to undefined]
|
|
18
|
+
**read** | **boolean** | | [default to undefined]
|
|
19
|
+
**extraInputs** | [**Array<EnquiryExtraInputsInner>**](EnquiryExtraInputsInner.md) | | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { Enquiry } from '@teemill/platform';
|
|
25
|
+
|
|
26
|
+
const instance: Enquiry = {
|
|
27
|
+
id,
|
|
28
|
+
ref,
|
|
29
|
+
customer,
|
|
30
|
+
client,
|
|
31
|
+
subject,
|
|
32
|
+
body,
|
|
33
|
+
createdAt,
|
|
34
|
+
updatedAt,
|
|
35
|
+
tags,
|
|
36
|
+
status,
|
|
37
|
+
read,
|
|
38
|
+
extraInputs,
|
|
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,24 @@
|
|
|
1
|
+
# EnquiryExtraInputsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**type** | **string** | | [default to undefined]
|
|
10
|
+
**value** | [**EnquiryExtraInputsInnerValue**](EnquiryExtraInputsInnerValue.md) | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { EnquiryExtraInputsInner } from '@teemill/platform';
|
|
16
|
+
|
|
17
|
+
const instance: EnquiryExtraInputsInner = {
|
|
18
|
+
name,
|
|
19
|
+
type,
|
|
20
|
+
value,
|
|
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,18 @@
|
|
|
1
|
+
# EnquiryExtraInputsInnerValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { EnquiryExtraInputsInnerValue } from '@teemill/platform';
|
|
13
|
+
|
|
14
|
+
const instance: EnquiryExtraInputsInnerValue = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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
|
+
# ListCustomerEnquiries200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enquiries** | [**Array<Enquiry>**](Enquiry.md) | | [optional] [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ListCustomerEnquiries200Response } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: ListCustomerEnquiries200Response = {
|
|
17
|
+
enquiries,
|
|
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,20 @@
|
|
|
1
|
+
# ListCustomerEnquiryLogs200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**logs** | [**Array<ListCustomerEnquiryLogs200ResponseLogsInner>**](ListCustomerEnquiryLogs200ResponseLogsInner.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ListCustomerEnquiryLogs200Response } from '@teemill/platform';
|
|
14
|
+
|
|
15
|
+
const instance: ListCustomerEnquiryLogs200Response = {
|
|
16
|
+
logs,
|
|
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,22 @@
|
|
|
1
|
+
# ListCustomerEnquiryLogs200ResponseLogsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**customer** | [**ListCustomerEnquiryLogs200ResponseLogsInnerCustomer**](ListCustomerEnquiryLogs200ResponseLogsInnerCustomer.md) | | [default to undefined]
|
|
9
|
+
**createdAt** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ListCustomerEnquiryLogs200ResponseLogsInner } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: ListCustomerEnquiryLogs200ResponseLogsInner = {
|
|
17
|
+
customer,
|
|
18
|
+
createdAt,
|
|
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,28 @@
|
|
|
1
|
+
# ListCustomerEnquiryLogs200ResponseLogsInnerCustomer
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**ref** | **string** | API reference for the customer | [optional] [default to undefined]
|
|
10
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ListCustomerEnquiryLogs200ResponseLogsInnerCustomer } from '@teemill/platform';
|
|
18
|
+
|
|
19
|
+
const instance: ListCustomerEnquiryLogs200ResponseLogsInnerCustomer = {
|
|
20
|
+
id,
|
|
21
|
+
ref,
|
|
22
|
+
firstName,
|
|
23
|
+
lastName,
|
|
24
|
+
email,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
9
9
|
|[**getOrder**](#getorder) | **GET** /v1/platform/{platformId}/orders/{orderId} | Get order|
|
|
10
10
|
|[**listAvailableFulfillers**](#listavailablefulfillers) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers | List available fulfillers|
|
|
11
11
|
|[**listOrders**](#listorders) | **GET** /v1/platform/{platformId}/orders | List orders|
|
|
12
|
+
|[**retryPlatformPayment**](#retryplatformpayment) | **POST** /v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment | Retry|
|
|
12
13
|
|[**updateFulfillment**](#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment|
|
|
13
14
|
|
|
14
15
|
# **exportOrders**
|
|
@@ -342,6 +343,68 @@ const { status, data } = await apiInstance.listOrders(
|
|
|
342
343
|
|
|
343
344
|
[[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
|
|
|
346
|
+
# **retryPlatformPayment**
|
|
347
|
+
> Order retryPlatformPayment()
|
|
348
|
+
|
|
349
|
+
Retries failed platform payment, so fulfillment can proceed.
|
|
350
|
+
|
|
351
|
+
### Example
|
|
352
|
+
|
|
353
|
+
```typescript
|
|
354
|
+
import {
|
|
355
|
+
OrdersApi,
|
|
356
|
+
Configuration
|
|
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 orderId: string; //The order identifier (default to undefined)
|
|
365
|
+
|
|
366
|
+
const { status, data } = await apiInstance.retryPlatformPayment(
|
|
367
|
+
project,
|
|
368
|
+
platformId,
|
|
369
|
+
orderId
|
|
370
|
+
);
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Parameters
|
|
374
|
+
|
|
375
|
+
|Name | Type | Description | Notes|
|
|
376
|
+
|------------- | ------------- | ------------- | -------------|
|
|
377
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
378
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
379
|
+
| **orderId** | [**string**] | The order identifier | defaults to undefined|
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
### Return type
|
|
383
|
+
|
|
384
|
+
**Order**
|
|
385
|
+
|
|
386
|
+
### Authorization
|
|
387
|
+
|
|
388
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
389
|
+
|
|
390
|
+
### HTTP request headers
|
|
391
|
+
|
|
392
|
+
- **Content-Type**: Not defined
|
|
393
|
+
- **Accept**: application/json
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
### HTTP response details
|
|
397
|
+
| Status code | Description | Response headers |
|
|
398
|
+
|-------------|-------------|------------------|
|
|
399
|
+
|**200** | Order schema | - |
|
|
400
|
+
|**400** | Failed validation | - |
|
|
401
|
+
|**401** | Not authorised to access this resource | - |
|
|
402
|
+
|**403** | Refuse to authorize | - |
|
|
403
|
+
|**404** | Resource not found | - |
|
|
404
|
+
|**500** | Unknown server error | - |
|
|
405
|
+
|
|
406
|
+
[[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
|
+
|
|
345
408
|
# **updateFulfillment**
|
|
346
409
|
> Fulfillment updateFulfillment(updateFulfillmentRequest)
|
|
347
410
|
|
package/index.ts
CHANGED