@teemill/inserts 0.3.0 → 0.4.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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/inserts@0.3.0
1
+ ## @teemill/inserts@0.4.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/inserts@0.3.0 --save
39
+ npm install @teemill/inserts@0.4.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -74,6 +74,7 @@ Class | Method | HTTP request | Description
74
74
  - [UpdateInsertRequest](docs/UpdateInsertRequest.md)
75
75
  - [UpdateInsertRequestConfig](docs/UpdateInsertRequestConfig.md)
76
76
  - [UpdateInsertRequestConfigCoupon](docs/UpdateInsertRequestConfigCoupon.md)
77
+ - [Value](docs/Value.md)
77
78
 
78
79
 
79
80
  <a id="documentation-for-authorization"></a>
package/api.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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -105,17 +105,35 @@ export interface CreateInsertRequestConfigCoupon {
105
105
  */
106
106
  'type': CreateInsertRequestConfigCouponTypeEnum;
107
107
  /**
108
- * The value of the coupon to apply to the insert
108
+ * The number of hours after creation which the coupon will expire
109
109
  * @type {number}
110
110
  * @memberof CreateInsertRequestConfigCoupon
111
111
  */
112
- 'value': number;
112
+ 'expiryHours': number;
113
+ /**
114
+ * The number of times the coupon can be used
115
+ * @type {number}
116
+ * @memberof CreateInsertRequestConfigCoupon
117
+ */
118
+ 'numberOfUses': number;
119
+ /**
120
+ *
121
+ * @type {Value}
122
+ * @memberof CreateInsertRequestConfigCoupon
123
+ */
124
+ 'value': Value;
113
125
  /**
114
126
  * The minimum order value to apply the coupon to
115
127
  * @type {number}
116
128
  * @memberof CreateInsertRequestConfigCoupon
117
129
  */
118
130
  'minimumOrderValue': number;
131
+ /**
132
+ * 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.
133
+ * @type {Array<string>}
134
+ * @memberof CreateInsertRequestConfigCoupon
135
+ */
136
+ 'freeDeliveryMethods'?: Array<string>;
119
137
  /**
120
138
  * The description of the coupon to apply to the insert
121
139
  * @type {string}
@@ -126,7 +144,8 @@ export interface CreateInsertRequestConfigCoupon {
126
144
 
127
145
  export const CreateInsertRequestConfigCouponTypeEnum = {
128
146
  Percentage: 'percentage',
129
- Fixed: 'fixed'
147
+ Fixed: 'fixed',
148
+ Item: 'item'
130
149
  } as const;
131
150
 
132
151
  export type CreateInsertRequestConfigCouponTypeEnum = typeof CreateInsertRequestConfigCouponTypeEnum[keyof typeof CreateInsertRequestConfigCouponTypeEnum];
@@ -212,11 +231,29 @@ export interface InsertConfigCoupon {
212
231
  */
213
232
  'type': InsertConfigCouponTypeEnum;
214
233
  /**
215
- * The value of the coupon to apply to the insert
234
+ * The number of hours after creation which the coupon will expire
235
+ * @type {number}
236
+ * @memberof InsertConfigCoupon
237
+ */
238
+ 'expiryHours': number;
239
+ /**
240
+ * The number of times the coupon can be used
216
241
  * @type {number}
217
242
  * @memberof InsertConfigCoupon
218
243
  */
219
- 'value': number;
244
+ 'numberOfUses': number;
245
+ /**
246
+ * A list of delivery methods for the discount.
247
+ * @type {Array<string>}
248
+ * @memberof InsertConfigCoupon
249
+ */
250
+ 'freeDeliveryMethods'?: Array<string> | null;
251
+ /**
252
+ *
253
+ * @type {Value}
254
+ * @memberof InsertConfigCoupon
255
+ */
256
+ 'value': Value;
220
257
  /**
221
258
  * The minimum order value to apply the coupon to
222
259
  * @type {number}
@@ -233,7 +270,8 @@ export interface InsertConfigCoupon {
233
270
 
234
271
  export const InsertConfigCouponTypeEnum = {
235
272
  Percentage: 'percentage',
236
- Fixed: 'fixed'
273
+ Fixed: 'fixed',
274
+ Item: 'item'
237
275
  } as const;
238
276
 
239
277
  export type InsertConfigCouponTypeEnum = typeof InsertConfigCouponTypeEnum[keyof typeof InsertConfigCouponTypeEnum];
@@ -363,6 +401,18 @@ export interface UpdateInsertRequestConfigCoupon {
363
401
  * @memberof UpdateInsertRequestConfigCoupon
364
402
  */
365
403
  'prefix': string;
404
+ /**
405
+ * The number of times the coupon can be used
406
+ * @type {number}
407
+ * @memberof UpdateInsertRequestConfigCoupon
408
+ */
409
+ 'numberOfUses': number;
410
+ /**
411
+ * The number of hours after creation which the coupon will expire
412
+ * @type {number}
413
+ * @memberof UpdateInsertRequestConfigCoupon
414
+ */
415
+ 'expiryHours': number;
366
416
  /**
367
417
  * The type of coupon to apply to the insert
368
418
  * @type {string}
@@ -370,17 +420,23 @@ export interface UpdateInsertRequestConfigCoupon {
370
420
  */
371
421
  'type': UpdateInsertRequestConfigCouponTypeEnum;
372
422
  /**
373
- * The value of the coupon to apply to the insert
374
- * @type {number}
423
+ *
424
+ * @type {Value}
375
425
  * @memberof UpdateInsertRequestConfigCoupon
376
426
  */
377
- 'value': number;
427
+ 'value': Value;
378
428
  /**
379
429
  * The minimum order value to apply the coupon to
380
430
  * @type {number}
381
431
  * @memberof UpdateInsertRequestConfigCoupon
382
432
  */
383
433
  'minimumOrderValue': number;
434
+ /**
435
+ * 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.
436
+ * @type {Array<string>}
437
+ * @memberof UpdateInsertRequestConfigCoupon
438
+ */
439
+ 'freeDeliveryMethods'?: Array<string> | null;
384
440
  /**
385
441
  * The description of the coupon to apply to the insert
386
442
  * @type {string}
@@ -391,11 +447,19 @@ export interface UpdateInsertRequestConfigCoupon {
391
447
 
392
448
  export const UpdateInsertRequestConfigCouponTypeEnum = {
393
449
  Percentage: 'percentage',
394
- Fixed: 'fixed'
450
+ Fixed: 'fixed',
451
+ Item: 'item'
395
452
  } as const;
396
453
 
397
454
  export type UpdateInsertRequestConfigCouponTypeEnum = typeof UpdateInsertRequestConfigCouponTypeEnum[keyof typeof UpdateInsertRequestConfigCouponTypeEnum];
398
455
 
456
+ /**
457
+ * @type Value
458
+ * 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.
459
+ * @export
460
+ */
461
+ export type Value = number | string;
462
+
399
463
 
400
464
  /**
401
465
  * InsertsApi - axios parameter creator
package/base.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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
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 value of the coupon to apply to the insert
98
+ * The number of hours after creation which the coupon will expire
99
99
  * @type {number}
100
100
  * @memberof CreateInsertRequestConfigCoupon
101
101
  */
102
- 'value': number;
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,6 +134,7 @@ 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];
121
140
  /**
@@ -199,11 +218,29 @@ export interface InsertConfigCoupon {
199
218
  */
200
219
  'type': InsertConfigCouponTypeEnum;
201
220
  /**
202
- * The value of the coupon to apply to the insert
221
+ * The number of hours after creation which the coupon will expire
222
+ * @type {number}
223
+ * @memberof InsertConfigCoupon
224
+ */
225
+ 'expiryHours': number;
226
+ /**
227
+ * The number of times the coupon can be used
203
228
  * @type {number}
204
229
  * @memberof InsertConfigCoupon
205
230
  */
206
- 'value': number;
231
+ 'numberOfUses': number;
232
+ /**
233
+ * A list of delivery methods for the discount.
234
+ * @type {Array<string>}
235
+ * @memberof InsertConfigCoupon
236
+ */
237
+ 'freeDeliveryMethods'?: Array<string> | null;
238
+ /**
239
+ *
240
+ * @type {Value}
241
+ * @memberof InsertConfigCoupon
242
+ */
243
+ 'value': Value;
207
244
  /**
208
245
  * The minimum order value to apply the coupon to
209
246
  * @type {number}
@@ -220,6 +257,7 @@ export interface InsertConfigCoupon {
220
257
  export declare const InsertConfigCouponTypeEnum: {
221
258
  readonly Percentage: "percentage";
222
259
  readonly Fixed: "fixed";
260
+ readonly Item: "item";
223
261
  };
224
262
  export type InsertConfigCouponTypeEnum = typeof InsertConfigCouponTypeEnum[keyof typeof InsertConfigCouponTypeEnum];
225
263
  /**
@@ -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
- * The value of the coupon to apply to the insert
358
- * @type {number}
407
+ *
408
+ * @type {Value}
359
409
  * @memberof UpdateInsertRequestConfigCoupon
360
410
  */
361
- 'value': number;
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
package/dist/api.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.3.0
8
+ * The version of the OpenAPI document: 0.4.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,15 +31,18 @@ const common_1 = require("./common");
31
31
  const base_1 = require("./base");
32
32
  exports.CreateInsertRequestConfigCouponTypeEnum = {
33
33
  Percentage: 'percentage',
34
- Fixed: 'fixed'
34
+ Fixed: 'fixed',
35
+ Item: 'item'
35
36
  };
36
37
  exports.InsertConfigCouponTypeEnum = {
37
38
  Percentage: 'percentage',
38
- Fixed: 'fixed'
39
+ Fixed: 'fixed',
40
+ Item: 'item'
39
41
  };
40
42
  exports.UpdateInsertRequestConfigCouponTypeEnum = {
41
43
  Percentage: 'percentage',
42
- Fixed: 'fixed'
44
+ Fixed: 'fixed',
45
+ Item: 'item'
43
46
  };
44
47
  /**
45
48
  * InsertsApi - axios parameter creator
package/dist/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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.3.0
8
+ * The version of the OpenAPI document: 0.4.0
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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
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.3.0
8
+ * The version of the OpenAPI document: 0.4.0
9
9
  *
10
10
  *
11
11
  * 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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3.0
8
+ * The version of the OpenAPI document: 0.4.0
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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
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 value of the coupon to apply to the insert
98
+ * The number of hours after creation which the coupon will expire
99
99
  * @type {number}
100
100
  * @memberof CreateInsertRequestConfigCoupon
101
101
  */
102
- 'value': number;
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,6 +134,7 @@ 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];
121
140
  /**
@@ -199,11 +218,29 @@ export interface InsertConfigCoupon {
199
218
  */
200
219
  'type': InsertConfigCouponTypeEnum;
201
220
  /**
202
- * The value of the coupon to apply to the insert
221
+ * The number of hours after creation which the coupon will expire
222
+ * @type {number}
223
+ * @memberof InsertConfigCoupon
224
+ */
225
+ 'expiryHours': number;
226
+ /**
227
+ * The number of times the coupon can be used
203
228
  * @type {number}
204
229
  * @memberof InsertConfigCoupon
205
230
  */
206
- 'value': number;
231
+ 'numberOfUses': number;
232
+ /**
233
+ * A list of delivery methods for the discount.
234
+ * @type {Array<string>}
235
+ * @memberof InsertConfigCoupon
236
+ */
237
+ 'freeDeliveryMethods'?: Array<string> | null;
238
+ /**
239
+ *
240
+ * @type {Value}
241
+ * @memberof InsertConfigCoupon
242
+ */
243
+ 'value': Value;
207
244
  /**
208
245
  * The minimum order value to apply the coupon to
209
246
  * @type {number}
@@ -220,6 +257,7 @@ export interface InsertConfigCoupon {
220
257
  export declare const InsertConfigCouponTypeEnum: {
221
258
  readonly Percentage: "percentage";
222
259
  readonly Fixed: "fixed";
260
+ readonly Item: "item";
223
261
  };
224
262
  export type InsertConfigCouponTypeEnum = typeof InsertConfigCouponTypeEnum[keyof typeof InsertConfigCouponTypeEnum];
225
263
  /**
@@ -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
- * The value of the coupon to apply to the insert
358
- * @type {number}
407
+ *
408
+ * @type {Value}
359
409
  * @memberof UpdateInsertRequestConfigCoupon
360
410
  */
361
- 'value': number;
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
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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
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
@@ -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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
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.3.0
5
+ * The version of the OpenAPI document: 0.4.0
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.3.0
8
+ * The version of the OpenAPI document: 0.4.0
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
- **value** | **number** | The value of the coupon to apply to the insert | [default to undefined]
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&lt;string&gt;** | 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
  ```
@@ -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
- **value** | **number** | The value of the coupon to apply to the insert | [default to undefined]
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&lt;string&gt;** | 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,
@@ -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** | **number** | The value of the coupon to apply to the insert | [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&lt;string&gt;** | 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.3.0
7
+ * The version of the OpenAPI document: 0.4.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/inserts",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "OpenAPI client for @teemill/inserts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {