ultracart_rest_api_v2_typescript 4.0.191 → 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 +3 -2
- package/dist/models/CouponTieredAmountOffItems.d.ts +6 -0
- package/dist/models/CouponTieredAmountOffItems.js +2 -0
- package/dist/models/CouponTieredPercentOffItems.d.ts +6 -0
- package/dist/models/CouponTieredPercentOffItems.js +2 -0
- package/package.json +1 -1
- package/src/models/CouponTieredAmountOffItems.ts +8 -0
- package/src/models/CouponTieredPercentOffItems.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
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.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.192 --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.192 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
|
|
57
58
|
| 4.0.191 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
|
|
58
59
|
| 4.0.190 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
|
|
59
60
|
| 4.0.189 | 11/13/2023 | coupon - editor values for item tags |
|
|
@@ -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
|
@@ -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)),
|