ultracart_rest_api_v2_typescript 4.0.190 → 4.0.192

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.192
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.192 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.192 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
58
+ | 4.0.191 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
57
59
  | 4.0.190 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
58
60
  | 4.0.189 | 11/13/2023 | coupon - editor values for item tags |
59
61
  | 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
  }
@@ -16,6 +16,12 @@ import { CouponTierQuantityAmount } from './CouponTierQuantityAmount';
16
16
  * @interface CouponTieredAmountOffItems
17
17
  */
18
18
  export interface CouponTieredAmountOffItems {
19
+ /**
20
+ * An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
21
+ * @type {Array<string>}
22
+ * @memberof CouponTieredAmountOffItems
23
+ */
24
+ item_tags?: Array<string>;
19
25
  /**
20
26
  * The items being discounted by this coupon.
21
27
  * @type {Array<string>}
@@ -25,6 +25,7 @@ function CouponTieredAmountOffItemsFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
+ 'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
28
29
  'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
29
30
  'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
30
31
  'tiers': !(0, runtime_1.exists)(json, 'tiers') ? undefined : (json['tiers'].map(CouponTierQuantityAmount_1.CouponTierQuantityAmountFromJSON)),
@@ -39,6 +40,7 @@ function CouponTieredAmountOffItemsToJSON(value) {
39
40
  return null;
40
41
  }
41
42
  return {
43
+ 'item_tags': value.item_tags,
42
44
  'items': value.items,
43
45
  'limit': value.limit,
44
46
  'tiers': value.tiers === undefined ? undefined : (value.tiers.map(CouponTierQuantityAmount_1.CouponTierQuantityAmountToJSON)),
@@ -16,6 +16,12 @@ import { CouponTierQuantityPercent } from './CouponTierQuantityPercent';
16
16
  * @interface CouponTieredPercentOffItems
17
17
  */
18
18
  export interface CouponTieredPercentOffItems {
19
+ /**
20
+ * An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
21
+ * @type {Array<string>}
22
+ * @memberof CouponTieredPercentOffItems
23
+ */
24
+ item_tags?: Array<string>;
19
25
  /**
20
26
  * A list of items of which at least one must be purchased for coupon to be valid.
21
27
  * @type {Array<string>}
@@ -25,6 +25,7 @@ function CouponTieredPercentOffItemsFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
+ 'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
28
29
  'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
29
30
  'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
30
31
  'tiers': !(0, runtime_1.exists)(json, 'tiers') ? undefined : (json['tiers'].map(CouponTierQuantityPercent_1.CouponTierQuantityPercentFromJSON)),
@@ -39,6 +40,7 @@ function CouponTieredPercentOffItemsToJSON(value) {
39
40
  return null;
40
41
  }
41
42
  return {
43
+ 'item_tags': value.item_tags,
42
44
  'items': value.items,
43
45
  'limit': value.limit,
44
46
  'tiers': value.tiers === undefined ? undefined : (value.tiers.map(CouponTierQuantityPercent_1.CouponTierQuantityPercentToJSON)),
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.192",
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
  }
@@ -26,6 +26,12 @@ import {
26
26
  * @interface CouponTieredAmountOffItems
27
27
  */
28
28
  export interface CouponTieredAmountOffItems {
29
+ /**
30
+ * An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
31
+ * @type {Array<string>}
32
+ * @memberof CouponTieredAmountOffItems
33
+ */
34
+ item_tags?: Array<string>;
29
35
  /**
30
36
  * The items being discounted by this coupon.
31
37
  * @type {Array<string>}
@@ -56,6 +62,7 @@ export function CouponTieredAmountOffItemsFromJSONTyped(json: any, ignoreDiscrim
56
62
  }
57
63
  return {
58
64
 
65
+ 'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
59
66
  'items': !exists(json, 'items') ? undefined : json['items'],
60
67
  'limit': !exists(json, 'limit') ? undefined : json['limit'],
61
68
  'tiers': !exists(json, 'tiers') ? undefined : ((json['tiers'] as Array<any>).map(CouponTierQuantityAmountFromJSON)),
@@ -71,6 +78,7 @@ export function CouponTieredAmountOffItemsToJSON(value?: CouponTieredAmountOffIt
71
78
  }
72
79
  return {
73
80
 
81
+ 'item_tags': value.item_tags,
74
82
  'items': value.items,
75
83
  'limit': value.limit,
76
84
  'tiers': value.tiers === undefined ? undefined : ((value.tiers as Array<any>).map(CouponTierQuantityAmountToJSON)),
@@ -26,6 +26,12 @@ import {
26
26
  * @interface CouponTieredPercentOffItems
27
27
  */
28
28
  export interface CouponTieredPercentOffItems {
29
+ /**
30
+ * An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
31
+ * @type {Array<string>}
32
+ * @memberof CouponTieredPercentOffItems
33
+ */
34
+ item_tags?: Array<string>;
29
35
  /**
30
36
  * A list of items of which at least one must be purchased for coupon to be valid.
31
37
  * @type {Array<string>}
@@ -56,6 +62,7 @@ export function CouponTieredPercentOffItemsFromJSONTyped(json: any, ignoreDiscri
56
62
  }
57
63
  return {
58
64
 
65
+ 'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
59
66
  'items': !exists(json, 'items') ? undefined : json['items'],
60
67
  'limit': !exists(json, 'limit') ? undefined : json['limit'],
61
68
  'tiers': !exists(json, 'tiers') ? undefined : ((json['tiers'] as Array<any>).map(CouponTierQuantityPercentFromJSON)),
@@ -71,6 +78,7 @@ export function CouponTieredPercentOffItemsToJSON(value?: CouponTieredPercentOff
71
78
  }
72
79
  return {
73
80
 
81
+ 'item_tags': value.item_tags,
74
82
  'items': value.items,
75
83
  'limit': value.limit,
76
84
  'tiers': value.tiers === undefined ? undefined : ((value.tiers as Array<any>).map(CouponTierQuantityPercentToJSON)),