@teemill/inserts 0.3.0 → 0.4.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 +5 -4
- package/api.ts +117 -53
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +115 -52
- package/dist/api.js +7 -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 +115 -52
- package/dist/esm/api.js +7 -4
- 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/CreateInsertRequestConfigCoupon.md +7 -1
- package/docs/InlineObject.md +22 -0
- package/docs/InlineObject1.md +22 -0
- package/docs/InsertConfigCoupon.md +7 -1
- package/docs/InsertsApi.md +2 -2
- package/docs/InsertsTypesApi.md +2 -2
- package/docs/UpdateInsertRequestConfigCoupon.md +7 -1
- package/docs/Value.md +19 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -95,17 +95,35 @@ export interface CreateInsertRequestConfigCoupon {
|
|
|
95
95
|
*/
|
|
96
96
|
'type': CreateInsertRequestConfigCouponTypeEnum;
|
|
97
97
|
/**
|
|
98
|
-
* The
|
|
98
|
+
* The number of hours after creation which the coupon will expire
|
|
99
99
|
* @type {number}
|
|
100
100
|
* @memberof CreateInsertRequestConfigCoupon
|
|
101
101
|
*/
|
|
102
|
-
'
|
|
102
|
+
'expiryHours': number;
|
|
103
|
+
/**
|
|
104
|
+
* The number of times the coupon can be used
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
107
|
+
*/
|
|
108
|
+
'numberOfUses': number;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Value}
|
|
112
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
113
|
+
*/
|
|
114
|
+
'value': Value;
|
|
103
115
|
/**
|
|
104
116
|
* The minimum order value to apply the coupon to
|
|
105
117
|
* @type {number}
|
|
106
118
|
* @memberof CreateInsertRequestConfigCoupon
|
|
107
119
|
*/
|
|
108
120
|
'minimumOrderValue': number;
|
|
121
|
+
/**
|
|
122
|
+
* A list of delivery methods that will be used for the discount. **Note:** Adding delivery methods requires the delivery integration to be installed on your project.
|
|
123
|
+
* @type {Array<string>}
|
|
124
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
125
|
+
*/
|
|
126
|
+
'freeDeliveryMethods'?: Array<string>;
|
|
109
127
|
/**
|
|
110
128
|
* The description of the coupon to apply to the insert
|
|
111
129
|
* @type {string}
|
|
@@ -116,8 +134,47 @@ export interface CreateInsertRequestConfigCoupon {
|
|
|
116
134
|
export declare const CreateInsertRequestConfigCouponTypeEnum: {
|
|
117
135
|
readonly Percentage: "percentage";
|
|
118
136
|
readonly Fixed: "fixed";
|
|
137
|
+
readonly Item: "item";
|
|
119
138
|
};
|
|
120
139
|
export type CreateInsertRequestConfigCouponTypeEnum = typeof CreateInsertRequestConfigCouponTypeEnum[keyof typeof CreateInsertRequestConfigCouponTypeEnum];
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @export
|
|
143
|
+
* @interface InlineObject
|
|
144
|
+
*/
|
|
145
|
+
export interface InlineObject {
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {Array<InsertType>}
|
|
149
|
+
* @memberof InlineObject
|
|
150
|
+
*/
|
|
151
|
+
'insertTypes': Array<InsertType>;
|
|
152
|
+
/**
|
|
153
|
+
* The token referencing the next page number
|
|
154
|
+
* @type {number}
|
|
155
|
+
* @memberof InlineObject
|
|
156
|
+
*/
|
|
157
|
+
'nextPageToken': number | null;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @export
|
|
162
|
+
* @interface InlineObject1
|
|
163
|
+
*/
|
|
164
|
+
export interface InlineObject1 {
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {Array<Insert>}
|
|
168
|
+
* @memberof InlineObject1
|
|
169
|
+
*/
|
|
170
|
+
'inserts': Array<Insert>;
|
|
171
|
+
/**
|
|
172
|
+
* The token referencing the next page number
|
|
173
|
+
* @type {number}
|
|
174
|
+
* @memberof InlineObject1
|
|
175
|
+
*/
|
|
176
|
+
'nextPageToken': number | null;
|
|
177
|
+
}
|
|
121
178
|
/**
|
|
122
179
|
*
|
|
123
180
|
* @export
|
|
@@ -199,11 +256,29 @@ export interface InsertConfigCoupon {
|
|
|
199
256
|
*/
|
|
200
257
|
'type': InsertConfigCouponTypeEnum;
|
|
201
258
|
/**
|
|
202
|
-
* The
|
|
259
|
+
* The number of hours after creation which the coupon will expire
|
|
260
|
+
* @type {number}
|
|
261
|
+
* @memberof InsertConfigCoupon
|
|
262
|
+
*/
|
|
263
|
+
'expiryHours': number;
|
|
264
|
+
/**
|
|
265
|
+
* The number of times the coupon can be used
|
|
203
266
|
* @type {number}
|
|
204
267
|
* @memberof InsertConfigCoupon
|
|
205
268
|
*/
|
|
206
|
-
'
|
|
269
|
+
'numberOfUses': number;
|
|
270
|
+
/**
|
|
271
|
+
* A list of delivery methods for the discount.
|
|
272
|
+
* @type {Array<string>}
|
|
273
|
+
* @memberof InsertConfigCoupon
|
|
274
|
+
*/
|
|
275
|
+
'freeDeliveryMethods'?: Array<string> | null;
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @type {Value}
|
|
279
|
+
* @memberof InsertConfigCoupon
|
|
280
|
+
*/
|
|
281
|
+
'value': Value;
|
|
207
282
|
/**
|
|
208
283
|
* The minimum order value to apply the coupon to
|
|
209
284
|
* @type {number}
|
|
@@ -220,6 +295,7 @@ export interface InsertConfigCoupon {
|
|
|
220
295
|
export declare const InsertConfigCouponTypeEnum: {
|
|
221
296
|
readonly Percentage: "percentage";
|
|
222
297
|
readonly Fixed: "fixed";
|
|
298
|
+
readonly Item: "item";
|
|
223
299
|
};
|
|
224
300
|
export type InsertConfigCouponTypeEnum = typeof InsertConfigCouponTypeEnum[keyof typeof InsertConfigCouponTypeEnum];
|
|
225
301
|
/**
|
|
@@ -253,44 +329,6 @@ export interface InsertType {
|
|
|
253
329
|
*/
|
|
254
330
|
'description': string;
|
|
255
331
|
}
|
|
256
|
-
/**
|
|
257
|
-
*
|
|
258
|
-
* @export
|
|
259
|
-
* @interface ListInsertTypes200Response
|
|
260
|
-
*/
|
|
261
|
-
export interface ListInsertTypes200Response {
|
|
262
|
-
/**
|
|
263
|
-
*
|
|
264
|
-
* @type {Array<InsertType>}
|
|
265
|
-
* @memberof ListInsertTypes200Response
|
|
266
|
-
*/
|
|
267
|
-
'insertTypes': Array<InsertType>;
|
|
268
|
-
/**
|
|
269
|
-
* The token referencing the next page number
|
|
270
|
-
* @type {number}
|
|
271
|
-
* @memberof ListInsertTypes200Response
|
|
272
|
-
*/
|
|
273
|
-
'nextPageToken': number | null;
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
*
|
|
277
|
-
* @export
|
|
278
|
-
* @interface ListInserts200Response
|
|
279
|
-
*/
|
|
280
|
-
export interface ListInserts200Response {
|
|
281
|
-
/**
|
|
282
|
-
*
|
|
283
|
-
* @type {Array<Insert>}
|
|
284
|
-
* @memberof ListInserts200Response
|
|
285
|
-
*/
|
|
286
|
-
'inserts': Array<Insert>;
|
|
287
|
-
/**
|
|
288
|
-
* The token referencing the next page number
|
|
289
|
-
* @type {number}
|
|
290
|
-
* @memberof ListInserts200Response
|
|
291
|
-
*/
|
|
292
|
-
'nextPageToken': number | null;
|
|
293
|
-
}
|
|
294
332
|
/**
|
|
295
333
|
*
|
|
296
334
|
* @export
|
|
@@ -347,6 +385,18 @@ export interface UpdateInsertRequestConfigCoupon {
|
|
|
347
385
|
* @memberof UpdateInsertRequestConfigCoupon
|
|
348
386
|
*/
|
|
349
387
|
'prefix': string;
|
|
388
|
+
/**
|
|
389
|
+
* The number of times the coupon can be used
|
|
390
|
+
* @type {number}
|
|
391
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
392
|
+
*/
|
|
393
|
+
'numberOfUses': number;
|
|
394
|
+
/**
|
|
395
|
+
* The number of hours after creation which the coupon will expire
|
|
396
|
+
* @type {number}
|
|
397
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
398
|
+
*/
|
|
399
|
+
'expiryHours': number;
|
|
350
400
|
/**
|
|
351
401
|
* The type of coupon to apply to the insert
|
|
352
402
|
* @type {string}
|
|
@@ -354,17 +404,23 @@ export interface UpdateInsertRequestConfigCoupon {
|
|
|
354
404
|
*/
|
|
355
405
|
'type': UpdateInsertRequestConfigCouponTypeEnum;
|
|
356
406
|
/**
|
|
357
|
-
*
|
|
358
|
-
* @type {
|
|
407
|
+
*
|
|
408
|
+
* @type {Value}
|
|
359
409
|
* @memberof UpdateInsertRequestConfigCoupon
|
|
360
410
|
*/
|
|
361
|
-
'value':
|
|
411
|
+
'value': Value;
|
|
362
412
|
/**
|
|
363
413
|
* The minimum order value to apply the coupon to
|
|
364
414
|
* @type {number}
|
|
365
415
|
* @memberof UpdateInsertRequestConfigCoupon
|
|
366
416
|
*/
|
|
367
417
|
'minimumOrderValue': number;
|
|
418
|
+
/**
|
|
419
|
+
* A list of delivery methods that will be used for the discount. **Note:** Adding delivery methods requires the delivery integration to be installed on your project.
|
|
420
|
+
* @type {Array<string>}
|
|
421
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
422
|
+
*/
|
|
423
|
+
'freeDeliveryMethods'?: Array<string> | null;
|
|
368
424
|
/**
|
|
369
425
|
* The description of the coupon to apply to the insert
|
|
370
426
|
* @type {string}
|
|
@@ -375,8 +431,15 @@ export interface UpdateInsertRequestConfigCoupon {
|
|
|
375
431
|
export declare const UpdateInsertRequestConfigCouponTypeEnum: {
|
|
376
432
|
readonly Percentage: "percentage";
|
|
377
433
|
readonly Fixed: "fixed";
|
|
434
|
+
readonly Item: "item";
|
|
378
435
|
};
|
|
379
436
|
export type UpdateInsertRequestConfigCouponTypeEnum = typeof UpdateInsertRequestConfigCouponTypeEnum[keyof typeof UpdateInsertRequestConfigCouponTypeEnum];
|
|
437
|
+
/**
|
|
438
|
+
* @type Value
|
|
439
|
+
* The value of the discount. For percentage discounts, this is the percentage (0-100). For fixed discounts, this is the fixed amount. For item discounts, this is the product reference.
|
|
440
|
+
* @export
|
|
441
|
+
*/
|
|
442
|
+
export type Value = number | string;
|
|
380
443
|
/**
|
|
381
444
|
* InsertsApi - axios parameter creator
|
|
382
445
|
* @export
|
|
@@ -455,7 +518,7 @@ export declare const InsertsApiFp: (configuration?: Configuration) => {
|
|
|
455
518
|
* @param {*} [options] Override http request option.
|
|
456
519
|
* @throws {RequiredError}
|
|
457
520
|
*/
|
|
458
|
-
listInserts(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
521
|
+
listInserts(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>>;
|
|
459
522
|
/**
|
|
460
523
|
* Update an insert for a project
|
|
461
524
|
* @summary Update an insert
|
|
@@ -495,7 +558,7 @@ export declare const InsertsApiFactory: (configuration?: Configuration, basePath
|
|
|
495
558
|
* @param {*} [options] Override http request option.
|
|
496
559
|
* @throws {RequiredError}
|
|
497
560
|
*/
|
|
498
|
-
listInserts(requestParameters: InsertsApiListInsertsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
561
|
+
listInserts(requestParameters: InsertsApiListInsertsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1>;
|
|
499
562
|
/**
|
|
500
563
|
* Update an insert for a project
|
|
501
564
|
* @summary Update an insert
|
|
@@ -632,7 +695,7 @@ export declare class InsertsApi extends BaseAPI {
|
|
|
632
695
|
* @throws {RequiredError}
|
|
633
696
|
* @memberof InsertsApi
|
|
634
697
|
*/
|
|
635
|
-
listInserts(requestParameters: InsertsApiListInsertsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
698
|
+
listInserts(requestParameters: InsertsApiListInsertsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject1, any>>;
|
|
636
699
|
/**
|
|
637
700
|
* Update an insert for a project
|
|
638
701
|
* @summary Update an insert
|
|
@@ -693,7 +756,7 @@ export declare const InsertsTypesApiFp: (configuration?: Configuration) => {
|
|
|
693
756
|
* @param {*} [options] Override http request option.
|
|
694
757
|
* @throws {RequiredError}
|
|
695
758
|
*/
|
|
696
|
-
listInsertTypes(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
759
|
+
listInsertTypes(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
|
|
697
760
|
};
|
|
698
761
|
/**
|
|
699
762
|
* InsertsTypesApi - factory interface
|
|
@@ -715,7 +778,7 @@ export declare const InsertsTypesApiFactory: (configuration?: Configuration, bas
|
|
|
715
778
|
* @param {*} [options] Override http request option.
|
|
716
779
|
* @throws {RequiredError}
|
|
717
780
|
*/
|
|
718
|
-
listInsertTypes(requestParameters: InsertsTypesApiListInsertTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
781
|
+
listInsertTypes(requestParameters: InsertsTypesApiListInsertTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
|
|
719
782
|
};
|
|
720
783
|
/**
|
|
721
784
|
* Request parameters for getInsertType operation in InsertsTypesApi.
|
|
@@ -791,5 +854,5 @@ export declare class InsertsTypesApi extends BaseAPI {
|
|
|
791
854
|
* @throws {RequiredError}
|
|
792
855
|
* @memberof InsertsTypesApi
|
|
793
856
|
*/
|
|
794
|
-
listInsertTypes(requestParameters: InsertsTypesApiListInsertTypesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
857
|
+
listInsertTypes(requestParameters: InsertsTypesApiListInsertTypesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
|
|
795
858
|
}
|
package/dist/esm/api.js
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.4.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,15 +28,18 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject,
|
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
29
|
export const CreateInsertRequestConfigCouponTypeEnum = {
|
|
30
30
|
Percentage: 'percentage',
|
|
31
|
-
Fixed: 'fixed'
|
|
31
|
+
Fixed: 'fixed',
|
|
32
|
+
Item: 'item'
|
|
32
33
|
};
|
|
33
34
|
export const InsertConfigCouponTypeEnum = {
|
|
34
35
|
Percentage: 'percentage',
|
|
35
|
-
Fixed: 'fixed'
|
|
36
|
+
Fixed: 'fixed',
|
|
37
|
+
Item: 'item'
|
|
36
38
|
};
|
|
37
39
|
export const UpdateInsertRequestConfigCouponTypeEnum = {
|
|
38
40
|
Percentage: 'percentage',
|
|
39
|
-
Fixed: 'fixed'
|
|
41
|
+
Fixed: 'fixed',
|
|
42
|
+
Item: 'item'
|
|
40
43
|
};
|
|
41
44
|
/**
|
|
42
45
|
* InsertsApi - axios parameter creator
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
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.4.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
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.4.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.4.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
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.4.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -7,8 +7,11 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**prefix** | **string** | The prefix of the coupon code to apply to the insert | [default to undefined]
|
|
9
9
|
**type** | **string** | The type of coupon to apply to the insert | [default to undefined]
|
|
10
|
-
**
|
|
10
|
+
**expiryHours** | **number** | The number of hours after creation which the coupon will expire | [default to undefined]
|
|
11
|
+
**numberOfUses** | **number** | The number of times the coupon can be used | [default to undefined]
|
|
12
|
+
**value** | [**Value**](Value.md) | | [default to undefined]
|
|
11
13
|
**minimumOrderValue** | **number** | The minimum order value to apply the coupon to | [default to undefined]
|
|
14
|
+
**freeDeliveryMethods** | **Array<string>** | A list of delivery methods that will be used for the discount. **Note:** Adding delivery methods requires the delivery integration to be installed on your project. | [optional] [default to undefined]
|
|
12
15
|
**description** | **string** | The description of the coupon to apply to the insert | [default to undefined]
|
|
13
16
|
|
|
14
17
|
## Example
|
|
@@ -19,8 +22,11 @@ import { CreateInsertRequestConfigCoupon } from '@teemill/inserts';
|
|
|
19
22
|
const instance: CreateInsertRequestConfigCoupon = {
|
|
20
23
|
prefix,
|
|
21
24
|
type,
|
|
25
|
+
expiryHours,
|
|
26
|
+
numberOfUses,
|
|
22
27
|
value,
|
|
23
28
|
minimumOrderValue,
|
|
29
|
+
freeDeliveryMethods,
|
|
24
30
|
description,
|
|
25
31
|
};
|
|
26
32
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# InlineObject
|
|
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 { InlineObject } from '@teemill/inserts';
|
|
15
|
+
|
|
16
|
+
const instance: InlineObject = {
|
|
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
|
+
# InlineObject1
|
|
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 { InlineObject1 } from '@teemill/inserts';
|
|
15
|
+
|
|
16
|
+
const instance: InlineObject1 = {
|
|
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)
|
|
@@ -7,7 +7,10 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**prefix** | **string** | The prefix of the coupon code to apply to the insert | [default to undefined]
|
|
9
9
|
**type** | **string** | The type of coupon to apply to the insert | [default to undefined]
|
|
10
|
-
**
|
|
10
|
+
**expiryHours** | **number** | The number of hours after creation which the coupon will expire | [default to undefined]
|
|
11
|
+
**numberOfUses** | **number** | The number of times the coupon can be used | [default to undefined]
|
|
12
|
+
**freeDeliveryMethods** | **Array<string>** | A list of delivery methods for the discount. | [optional] [default to undefined]
|
|
13
|
+
**value** | [**Value**](Value.md) | | [default to undefined]
|
|
11
14
|
**minimumOrderValue** | **number** | The minimum order value to apply the coupon to | [default to undefined]
|
|
12
15
|
**description** | **string** | | [default to undefined]
|
|
13
16
|
|
|
@@ -19,6 +22,9 @@ import { InsertConfigCoupon } from '@teemill/inserts';
|
|
|
19
22
|
const instance: InsertConfigCoupon = {
|
|
20
23
|
prefix,
|
|
21
24
|
type,
|
|
25
|
+
expiryHours,
|
|
26
|
+
numberOfUses,
|
|
27
|
+
freeDeliveryMethods,
|
|
22
28
|
value,
|
|
23
29
|
minimumOrderValue,
|
|
24
30
|
description,
|
package/docs/InsertsApi.md
CHANGED
|
@@ -128,7 +128,7 @@ const { status, data } = await apiInstance.getInsert(
|
|
|
128
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
129
|
|
|
130
130
|
# **listInserts**
|
|
131
|
-
>
|
|
131
|
+
> InlineObject1 listInserts()
|
|
132
132
|
|
|
133
133
|
List your project inserts
|
|
134
134
|
|
|
@@ -168,7 +168,7 @@ const { status, data } = await apiInstance.listInserts(
|
|
|
168
168
|
|
|
169
169
|
### Return type
|
|
170
170
|
|
|
171
|
-
**
|
|
171
|
+
**InlineObject1**
|
|
172
172
|
|
|
173
173
|
### Authorization
|
|
174
174
|
|
package/docs/InsertsTypesApi.md
CHANGED
|
@@ -67,7 +67,7 @@ const { status, data } = await apiInstance.getInsertType(
|
|
|
67
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
68
|
|
|
69
69
|
# **listInsertTypes**
|
|
70
|
-
>
|
|
70
|
+
> InlineObject listInsertTypes()
|
|
71
71
|
|
|
72
72
|
List all insert types
|
|
73
73
|
|
|
@@ -107,7 +107,7 @@ const { status, data } = await apiInstance.listInsertTypes(
|
|
|
107
107
|
|
|
108
108
|
### Return type
|
|
109
109
|
|
|
110
|
-
**
|
|
110
|
+
**InlineObject**
|
|
111
111
|
|
|
112
112
|
### Authorization
|
|
113
113
|
|
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**prefix** | **string** | The prefix of the coupon code to apply to the insert | [default to undefined]
|
|
9
|
+
**numberOfUses** | **number** | The number of times the coupon can be used | [default to undefined]
|
|
10
|
+
**expiryHours** | **number** | The number of hours after creation which the coupon will expire | [default to undefined]
|
|
9
11
|
**type** | **string** | The type of coupon to apply to the insert | [default to undefined]
|
|
10
|
-
**value** | **
|
|
12
|
+
**value** | [**Value**](Value.md) | | [default to undefined]
|
|
11
13
|
**minimumOrderValue** | **number** | The minimum order value to apply the coupon to | [default to undefined]
|
|
14
|
+
**freeDeliveryMethods** | **Array<string>** | A list of delivery methods that will be used for the discount. **Note:** Adding delivery methods requires the delivery integration to be installed on your project. | [optional] [default to undefined]
|
|
12
15
|
**description** | **string** | The description of the coupon to apply to the insert | [default to undefined]
|
|
13
16
|
|
|
14
17
|
## Example
|
|
@@ -18,9 +21,12 @@ import { UpdateInsertRequestConfigCoupon } from '@teemill/inserts';
|
|
|
18
21
|
|
|
19
22
|
const instance: UpdateInsertRequestConfigCoupon = {
|
|
20
23
|
prefix,
|
|
24
|
+
numberOfUses,
|
|
25
|
+
expiryHours,
|
|
21
26
|
type,
|
|
22
27
|
value,
|
|
23
28
|
minimumOrderValue,
|
|
29
|
+
freeDeliveryMethods,
|
|
24
30
|
description,
|
|
25
31
|
};
|
|
26
32
|
```
|
package/docs/Value.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Value
|
|
2
|
+
|
|
3
|
+
The value of the discount. For percentage discounts, this is the percentage (0-100). For fixed discounts, this is the fixed amount. For item discounts, this is the product reference.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { Value } from '@teemill/inserts';
|
|
14
|
+
|
|
15
|
+
const instance: Value = {
|
|
16
|
+
};
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
[[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.4.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|