ultracart_rest_api_v2_typescript 4.0.187 → 4.0.188

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.187
1
+ ## ultracart_rest_api_v2_typescript@4.0.188
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.187 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.188 --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.188 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
57
58
  | 4.0.187 | 11/09/2023 | item - new auto order step type: pause until |
58
59
  | 4.0.186 | 11/06/2023 | customer api - added wishlist methods |
59
60
  | 4.0.185 | 11/01/2023 | customer - do_no_send_mail flag added |
@@ -21,12 +21,24 @@ export interface CouponPercentOffItems {
21
21
  * @memberof CouponPercentOffItems
22
22
  */
23
23
  discount_percent?: number;
24
+ /**
25
+ * A list of item tags which cannot be discounted.
26
+ * @type {Array<string>}
27
+ * @memberof CouponPercentOffItems
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 CouponPercentOffItems
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 CouponPercentOffItems
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 CouponPercentOffItemsFromJSONTyped(json, ignoreDiscriminator) {
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
  'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
31
33
  };
@@ -40,7 +42,9 @@ function CouponPercentOffItemsToJSON(value) {
40
42
  }
41
43
  return {
42
44
  'discount_percent': value.discount_percent,
45
+ 'excluded_item_tags': value.excluded_item_tags,
43
46
  'excluded_items': value.excluded_items,
47
+ 'item_tags': value.item_tags,
44
48
  'items': value.items,
45
49
  'limit': value.limit,
46
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.187",
3
+ "version": "4.0.188",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -25,12 +25,24 @@ export interface CouponPercentOffItems {
25
25
  * @memberof CouponPercentOffItems
26
26
  */
27
27
  discount_percent?: number;
28
+ /**
29
+ * A list of item tags which cannot be discounted.
30
+ * @type {Array<string>}
31
+ * @memberof CouponPercentOffItems
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 CouponPercentOffItems
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 CouponPercentOffItems
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>}
@@ -56,7 +68,9 @@ export function CouponPercentOffItemsFromJSONTyped(json: any, ignoreDiscriminato
56
68
  return {
57
69
 
58
70
  'discount_percent': !exists(json, 'discount_percent') ? undefined : json['discount_percent'],
71
+ 'excluded_item_tags': !exists(json, 'excluded_item_tags') ? undefined : json['excluded_item_tags'],
59
72
  'excluded_items': !exists(json, 'excluded_items') ? undefined : json['excluded_items'],
73
+ 'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
60
74
  'items': !exists(json, 'items') ? undefined : json['items'],
61
75
  'limit': !exists(json, 'limit') ? undefined : json['limit'],
62
76
  };
@@ -72,7 +86,9 @@ export function CouponPercentOffItemsToJSON(value?: CouponPercentOffItems | null
72
86
  return {
73
87
 
74
88
  'discount_percent': value.discount_percent,
89
+ 'excluded_item_tags': value.excluded_item_tags,
75
90
  'excluded_items': value.excluded_items,
91
+ 'item_tags': value.item_tags,
76
92
  'items': value.items,
77
93
  'limit': value.limit,
78
94
  };