@teemill/inserts 0.2.1 → 0.3.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 +54 -2
- package/api.ts +193 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +184 -1
- package/dist/api.js +14 -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 +184 -1
- package/dist/esm/api.js +13 -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/ApiError.md +22 -0
- package/docs/CreateInsertRequest.md +26 -0
- package/docs/CreateInsertRequestConfig.md +20 -0
- package/docs/CreateInsertRequestConfigCoupon.md +28 -0
- package/docs/Insert.md +32 -0
- package/docs/InsertConfig.md +21 -0
- package/docs/InsertConfigCoupon.md +28 -0
- package/docs/InsertType.md +26 -0
- package/docs/InsertsApi.md +256 -0
- package/docs/InsertsTypesApi.md +132 -0
- package/docs/ListInsertTypes200Response.md +22 -0
- package/docs/ListInserts200Response.md +22 -0
- package/docs/UpdateInsertRequest.md +26 -0
- package/docs/UpdateInsertRequestConfig.md +20 -0
- package/docs/UpdateInsertRequestConfigCoupon.md +28 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
# InsertsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createInsert**](#createinsert) | **POST** /v1/inserts | Create an insert|
|
|
8
|
+
|[**getInsert**](#getinsert) | **GET** /v1/inserts/{insertId} | Retrieve an insert for a project|
|
|
9
|
+
|[**listInserts**](#listinserts) | **GET** /v1/inserts | List project inserts|
|
|
10
|
+
|[**updateInsert**](#updateinsert) | **PATCH** /v1/inserts/{insertId} | Update an insert|
|
|
11
|
+
|
|
12
|
+
# **createInsert**
|
|
13
|
+
> Insert createInsert(createInsertRequest)
|
|
14
|
+
|
|
15
|
+
Create an insert for a project
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
InsertsApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
CreateInsertRequest
|
|
24
|
+
} from '@teemill/inserts';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new InsertsApi(configuration);
|
|
28
|
+
|
|
29
|
+
let project: string; // (default to undefined)
|
|
30
|
+
let createInsertRequest: CreateInsertRequest; //Create an insert
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.createInsert(
|
|
33
|
+
project,
|
|
34
|
+
createInsertRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **createInsertRequest** | **CreateInsertRequest**| Create an insert | |
|
|
43
|
+
| **project** | [**string**] | | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**Insert**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**201** | Successfully retrieved an insert | - |
|
|
64
|
+
|**400** | Failed validation | - |
|
|
65
|
+
|**401** | Not authorised to access this resource | - |
|
|
66
|
+
|**403** | Refuse to authorise | - |
|
|
67
|
+
|**500** | Unknown server error | - |
|
|
68
|
+
|
|
69
|
+
[[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)
|
|
70
|
+
|
|
71
|
+
# **getInsert**
|
|
72
|
+
> Insert getInsert()
|
|
73
|
+
|
|
74
|
+
Retrieve details for a specific insert for a project
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
InsertsApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from '@teemill/inserts';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new InsertsApi(configuration);
|
|
86
|
+
|
|
87
|
+
let insertId: string; //Filter by insert ID (default to undefined)
|
|
88
|
+
let project: string; // (default to undefined)
|
|
89
|
+
|
|
90
|
+
const { status, data } = await apiInstance.getInsert(
|
|
91
|
+
insertId,
|
|
92
|
+
project
|
|
93
|
+
);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|Name | Type | Description | Notes|
|
|
99
|
+
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **insertId** | [**string**] | Filter by insert ID | defaults to undefined|
|
|
101
|
+
| **project** | [**string**] | | defaults to undefined|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
**Insert**
|
|
107
|
+
|
|
108
|
+
### Authorization
|
|
109
|
+
|
|
110
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
111
|
+
|
|
112
|
+
### HTTP request headers
|
|
113
|
+
|
|
114
|
+
- **Content-Type**: Not defined
|
|
115
|
+
- **Accept**: application/json
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**200** | Successfully retrieved an insert | - |
|
|
122
|
+
|**400** | Failed validation | - |
|
|
123
|
+
|**401** | Not authorised to access this resource | - |
|
|
124
|
+
|**403** | Refuse to authorise | - |
|
|
125
|
+
|**404** | Resource not found | - |
|
|
126
|
+
|**500** | Unknown server error | - |
|
|
127
|
+
|
|
128
|
+
[[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)
|
|
129
|
+
|
|
130
|
+
# **listInserts**
|
|
131
|
+
> ListInserts200Response listInserts()
|
|
132
|
+
|
|
133
|
+
List your project inserts
|
|
134
|
+
|
|
135
|
+
### Example
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
import {
|
|
139
|
+
InsertsApi,
|
|
140
|
+
Configuration
|
|
141
|
+
} from '@teemill/inserts';
|
|
142
|
+
|
|
143
|
+
const configuration = new Configuration();
|
|
144
|
+
const apiInstance = new InsertsApi(configuration);
|
|
145
|
+
|
|
146
|
+
let project: string; // (default to undefined)
|
|
147
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
148
|
+
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)
|
|
149
|
+
let search: string; //Search for inserts by id or name (optional) (default to undefined)
|
|
150
|
+
|
|
151
|
+
const { status, data } = await apiInstance.listInserts(
|
|
152
|
+
project,
|
|
153
|
+
pageToken,
|
|
154
|
+
pageSize,
|
|
155
|
+
search
|
|
156
|
+
);
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Parameters
|
|
160
|
+
|
|
161
|
+
|Name | Type | Description | Notes|
|
|
162
|
+
|------------- | ------------- | ------------- | -------------|
|
|
163
|
+
| **project** | [**string**] | | defaults to undefined|
|
|
164
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
165
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
166
|
+
| **search** | [**string**] | Search for inserts by id or name | (optional) defaults to undefined|
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Return type
|
|
170
|
+
|
|
171
|
+
**ListInserts200Response**
|
|
172
|
+
|
|
173
|
+
### Authorization
|
|
174
|
+
|
|
175
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
176
|
+
|
|
177
|
+
### HTTP request headers
|
|
178
|
+
|
|
179
|
+
- **Content-Type**: Not defined
|
|
180
|
+
- **Accept**: application/json
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### HTTP response details
|
|
184
|
+
| Status code | Description | Response headers |
|
|
185
|
+
|-------------|-------------|------------------|
|
|
186
|
+
|**200** | Successfully retrieved a list of inserts | - |
|
|
187
|
+
|**400** | Failed validation | - |
|
|
188
|
+
|**401** | Not authorised to access this resource | - |
|
|
189
|
+
|**403** | Refuse to authorise | - |
|
|
190
|
+
|**500** | Unknown server error | - |
|
|
191
|
+
|
|
192
|
+
[[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)
|
|
193
|
+
|
|
194
|
+
# **updateInsert**
|
|
195
|
+
> Insert updateInsert(updateInsertRequest)
|
|
196
|
+
|
|
197
|
+
Update an insert for a project
|
|
198
|
+
|
|
199
|
+
### Example
|
|
200
|
+
|
|
201
|
+
```typescript
|
|
202
|
+
import {
|
|
203
|
+
InsertsApi,
|
|
204
|
+
Configuration,
|
|
205
|
+
UpdateInsertRequest
|
|
206
|
+
} from '@teemill/inserts';
|
|
207
|
+
|
|
208
|
+
const configuration = new Configuration();
|
|
209
|
+
const apiInstance = new InsertsApi(configuration);
|
|
210
|
+
|
|
211
|
+
let insertId: string; //Filter by insert ID (default to undefined)
|
|
212
|
+
let project: string; // (default to undefined)
|
|
213
|
+
let updateInsertRequest: UpdateInsertRequest; //Update an insert
|
|
214
|
+
|
|
215
|
+
const { status, data } = await apiInstance.updateInsert(
|
|
216
|
+
insertId,
|
|
217
|
+
project,
|
|
218
|
+
updateInsertRequest
|
|
219
|
+
);
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Parameters
|
|
223
|
+
|
|
224
|
+
|Name | Type | Description | Notes|
|
|
225
|
+
|------------- | ------------- | ------------- | -------------|
|
|
226
|
+
| **updateInsertRequest** | **UpdateInsertRequest**| Update an insert | |
|
|
227
|
+
| **insertId** | [**string**] | Filter by insert ID | defaults to undefined|
|
|
228
|
+
| **project** | [**string**] | | defaults to undefined|
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Return type
|
|
232
|
+
|
|
233
|
+
**Insert**
|
|
234
|
+
|
|
235
|
+
### Authorization
|
|
236
|
+
|
|
237
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
238
|
+
|
|
239
|
+
### HTTP request headers
|
|
240
|
+
|
|
241
|
+
- **Content-Type**: application/json
|
|
242
|
+
- **Accept**: application/json
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### HTTP response details
|
|
246
|
+
| Status code | Description | Response headers |
|
|
247
|
+
|-------------|-------------|------------------|
|
|
248
|
+
|**200** | Successfully retrieved an insert | - |
|
|
249
|
+
|**400** | Failed validation | - |
|
|
250
|
+
|**401** | Not authorised to access this resource | - |
|
|
251
|
+
|**403** | Refuse to authorise | - |
|
|
252
|
+
|**404** | Resource not found | - |
|
|
253
|
+
|**500** | Unknown server error | - |
|
|
254
|
+
|
|
255
|
+
[[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)
|
|
256
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# InsertsTypesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getInsertType**](#getinserttype) | **GET** /v1/inserts/types/{insertTypeId} | Retrieve an insert type|
|
|
8
|
+
|[**listInsertTypes**](#listinserttypes) | **GET** /v1/inserts/types | List insert types|
|
|
9
|
+
|
|
10
|
+
# **getInsertType**
|
|
11
|
+
> InsertType getInsertType()
|
|
12
|
+
|
|
13
|
+
Retrieve details for a specific insert type
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
InsertsTypesApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@teemill/inserts';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new InsertsTypesApi(configuration);
|
|
25
|
+
|
|
26
|
+
let insertTypeId: string; //Filter by insert type ID (default to undefined)
|
|
27
|
+
let project: string; // (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.getInsertType(
|
|
30
|
+
insertTypeId,
|
|
31
|
+
project
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **insertTypeId** | [**string**] | Filter by insert type ID | defaults to undefined|
|
|
40
|
+
| **project** | [**string**] | | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**InsertType**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Successfully retrieved an insert type | - |
|
|
61
|
+
|**400** | Failed validation | - |
|
|
62
|
+
|**401** | Not authorised to access this resource | - |
|
|
63
|
+
|**403** | Refuse to authorise | - |
|
|
64
|
+
|**404** | Resource not found | - |
|
|
65
|
+
|**500** | Unknown server error | - |
|
|
66
|
+
|
|
67
|
+
[[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)
|
|
68
|
+
|
|
69
|
+
# **listInsertTypes**
|
|
70
|
+
> ListInsertTypes200Response listInsertTypes()
|
|
71
|
+
|
|
72
|
+
List all insert types
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
InsertsTypesApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@teemill/inserts';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new InsertsTypesApi(configuration);
|
|
84
|
+
|
|
85
|
+
let project: string; // (default to undefined)
|
|
86
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
87
|
+
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)
|
|
88
|
+
let search: string; //Search for inserts by id or name (optional) (default to undefined)
|
|
89
|
+
|
|
90
|
+
const { status, data } = await apiInstance.listInsertTypes(
|
|
91
|
+
project,
|
|
92
|
+
pageToken,
|
|
93
|
+
pageSize,
|
|
94
|
+
search
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|Name | Type | Description | Notes|
|
|
101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
102
|
+
| **project** | [**string**] | | defaults to undefined|
|
|
103
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
104
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
105
|
+
| **search** | [**string**] | Search for inserts by id or name | (optional) defaults to undefined|
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Return type
|
|
109
|
+
|
|
110
|
+
**ListInsertTypes200Response**
|
|
111
|
+
|
|
112
|
+
### Authorization
|
|
113
|
+
|
|
114
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
115
|
+
|
|
116
|
+
### HTTP request headers
|
|
117
|
+
|
|
118
|
+
- **Content-Type**: Not defined
|
|
119
|
+
- **Accept**: application/json
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### HTTP response details
|
|
123
|
+
| Status code | Description | Response headers |
|
|
124
|
+
|-------------|-------------|------------------|
|
|
125
|
+
|**200** | Successfully retrieved a list of insert types | - |
|
|
126
|
+
|**400** | Failed validation | - |
|
|
127
|
+
|**401** | Not authorised to access this resource | - |
|
|
128
|
+
|**403** | Refuse to authorise | - |
|
|
129
|
+
|**500** | Unknown server error | - |
|
|
130
|
+
|
|
131
|
+
[[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)
|
|
132
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ListInsertTypes200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**insertTypes** | [**Array<InsertType>**](InsertType.md) | | [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | The token referencing the next page number | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ListInsertTypes200Response } from '@teemill/inserts';
|
|
15
|
+
|
|
16
|
+
const instance: ListInsertTypes200Response = {
|
|
17
|
+
insertTypes,
|
|
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,22 @@
|
|
|
1
|
+
# ListInserts200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**inserts** | [**Array<Insert>**](Insert.md) | | [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | The token referencing the next page number | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ListInserts200Response } from '@teemill/inserts';
|
|
15
|
+
|
|
16
|
+
const instance: ListInserts200Response = {
|
|
17
|
+
inserts,
|
|
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,26 @@
|
|
|
1
|
+
# UpdateInsertRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | Whether the insert is enabled | [optional] [default to undefined]
|
|
9
|
+
**variantRef** | **string** | A reference to the variant that will be inserted into the order when this insert rule is triggered | [optional] [default to undefined]
|
|
10
|
+
**typeRef** | **string** | A reference to the insert type that will be inserted into the order when this insert rule is triggered | [optional] [default to undefined]
|
|
11
|
+
**config** | [**UpdateInsertRequestConfig**](UpdateInsertRequestConfig.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UpdateInsertRequest } from '@teemill/inserts';
|
|
17
|
+
|
|
18
|
+
const instance: UpdateInsertRequest = {
|
|
19
|
+
enabled,
|
|
20
|
+
variantRef,
|
|
21
|
+
typeRef,
|
|
22
|
+
config,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UpdateInsertRequestConfig
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**coupon** | [**UpdateInsertRequestConfigCoupon**](UpdateInsertRequestConfigCoupon.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateInsertRequestConfig } from '@teemill/inserts';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateInsertRequestConfig = {
|
|
16
|
+
coupon,
|
|
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,28 @@
|
|
|
1
|
+
# UpdateInsertRequestConfigCoupon
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**prefix** | **string** | The prefix of the coupon code to apply to the insert | [default to undefined]
|
|
9
|
+
**type** | **string** | The type of coupon to apply to the insert | [default to undefined]
|
|
10
|
+
**value** | **number** | The value of the coupon to apply to the insert | [default to undefined]
|
|
11
|
+
**minimumOrderValue** | **number** | The minimum order value to apply the coupon to | [default to undefined]
|
|
12
|
+
**description** | **string** | The description of the coupon to apply to the insert | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UpdateInsertRequestConfigCoupon } from '@teemill/inserts';
|
|
18
|
+
|
|
19
|
+
const instance: UpdateInsertRequestConfigCoupon = {
|
|
20
|
+
prefix,
|
|
21
|
+
type,
|
|
22
|
+
value,
|
|
23
|
+
minimumOrderValue,
|
|
24
|
+
description,
|
|
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/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Inserts API
|
|
5
5
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|