ultracart_rest_api_v2_typescript 4.0.190 → 4.0.191

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
- ## ultracart_rest_api_v2_typescript@4.0.190
1
+ ## ultracart_rest_api_v2_typescript@4.0.191
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). 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 ultracart_rest_api_v2_typescript@4.0.190 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.191 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.191 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
57
58
  | 4.0.190 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
58
59
  | 4.0.189 | 11/13/2023 | coupon - editor values for item tags |
59
60
  | 4.0.188 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
@@ -21,12 +21,24 @@ export interface CouponPercentOffItemsAndFreeShipping {
21
21
  * @memberof CouponPercentOffItemsAndFreeShipping
22
22
  */
23
23
  discount_percent?: number;
24
+ /**
25
+ * A list of item tags which cannot be discounted.
26
+ * @type {Array<string>}
27
+ * @memberof CouponPercentOffItemsAndFreeShipping
28
+ */
29
+ excluded_item_tags?: Array<string>;
24
30
  /**
25
31
  * A list of items which cannot be discounted.
26
32
  * @type {Array<string>}
27
33
  * @memberof CouponPercentOffItemsAndFreeShipping
28
34
  */
29
35
  excluded_items?: Array<string>;
36
+ /**
37
+ * An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
38
+ * @type {Array<string>}
39
+ * @memberof CouponPercentOffItemsAndFreeShipping
40
+ */
41
+ item_tags?: Array<string>;
30
42
  /**
31
43
  * An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
32
44
  * @type {Array<string>}
@@ -25,7 +25,9 @@ function CouponPercentOffItemsAndFreeShippingFromJSONTyped(json, ignoreDiscrimin
25
25
  }
26
26
  return {
27
27
  'discount_percent': !(0, runtime_1.exists)(json, 'discount_percent') ? undefined : json['discount_percent'],
28
+ 'excluded_item_tags': !(0, runtime_1.exists)(json, 'excluded_item_tags') ? undefined : json['excluded_item_tags'],
28
29
  'excluded_items': !(0, runtime_1.exists)(json, 'excluded_items') ? undefined : json['excluded_items'],
30
+ 'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
29
31
  'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
30
32
  };
31
33
  }
@@ -39,7 +41,9 @@ function CouponPercentOffItemsAndFreeShippingToJSON(value) {
39
41
  }
40
42
  return {
41
43
  'discount_percent': value.discount_percent,
44
+ 'excluded_item_tags': value.excluded_item_tags,
42
45
  'excluded_items': value.excluded_items,
46
+ 'item_tags': value.item_tags,
43
47
  'items': value.items,
44
48
  };
45
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.190",
3
+ "version": "4.0.191",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -25,12 +25,24 @@ export interface CouponPercentOffItemsAndFreeShipping {
25
25
  * @memberof CouponPercentOffItemsAndFreeShipping
26
26
  */
27
27
  discount_percent?: number;
28
+ /**
29
+ * A list of item tags which cannot be discounted.
30
+ * @type {Array<string>}
31
+ * @memberof CouponPercentOffItemsAndFreeShipping
32
+ */
33
+ excluded_item_tags?: Array<string>;
28
34
  /**
29
35
  * A list of items which cannot be discounted.
30
36
  * @type {Array<string>}
31
37
  * @memberof CouponPercentOffItemsAndFreeShipping
32
38
  */
33
39
  excluded_items?: Array<string>;
40
+ /**
41
+ * An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
42
+ * @type {Array<string>}
43
+ * @memberof CouponPercentOffItemsAndFreeShipping
44
+ */
45
+ item_tags?: Array<string>;
34
46
  /**
35
47
  * An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
36
48
  * @type {Array<string>}
@@ -50,7 +62,9 @@ export function CouponPercentOffItemsAndFreeShippingFromJSONTyped(json: any, ign
50
62
  return {
51
63
 
52
64
  'discount_percent': !exists(json, 'discount_percent') ? undefined : json['discount_percent'],
65
+ 'excluded_item_tags': !exists(json, 'excluded_item_tags') ? undefined : json['excluded_item_tags'],
53
66
  'excluded_items': !exists(json, 'excluded_items') ? undefined : json['excluded_items'],
67
+ 'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
54
68
  'items': !exists(json, 'items') ? undefined : json['items'],
55
69
  };
56
70
  }
@@ -65,7 +79,9 @@ export function CouponPercentOffItemsAndFreeShippingToJSON(value?: CouponPercent
65
79
  return {
66
80
 
67
81
  'discount_percent': value.discount_percent,
82
+ 'excluded_item_tags': value.excluded_item_tags,
68
83
  'excluded_items': value.excluded_items,
84
+ 'item_tags': value.item_tags,
69
85
  'items': value.items,
70
86
  };
71
87
  }