ultracart_rest_api_v2_typescript 4.0.235 → 4.0.236
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.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.236
|
|
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.236 --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.236 | 11/07/2024 | Coupon - PercentOffWithItemsQuantityPurchase - added support for tags |
|
|
57
58
|
| 4.0.235 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
|
|
58
59
|
| 4.0.234 | 10/24/2024 | storefront page attribute edit method |
|
|
59
60
|
| 4.0.233 | 09/18/2024 | order payment constant for PayPal Fastlane |
|
|
@@ -21,6 +21,12 @@ export interface CouponPercentOffItemWithItemsQuantityPurchase {
|
|
|
21
21
|
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
22
22
|
*/
|
|
23
23
|
discount_percent?: number;
|
|
24
|
+
/**
|
|
25
|
+
* An optional list of item tags which will receive a discount if one of the required purchased items is purchased.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
28
|
+
*/
|
|
29
|
+
item_tags?: Array<string>;
|
|
24
30
|
/**
|
|
25
31
|
* A list of items which will receive a discount if one of the required purchase items is purchased.
|
|
26
32
|
* @type {Array<string>}
|
|
@@ -39,6 +45,12 @@ export interface CouponPercentOffItemWithItemsQuantityPurchase {
|
|
|
39
45
|
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
40
46
|
*/
|
|
41
47
|
required_purchase_items?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Required item tags (at least one from the list) that must be purchase for coupon to be valid.
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
52
|
+
*/
|
|
53
|
+
required_purchase_items_tags?: Array<string>;
|
|
42
54
|
/**
|
|
43
55
|
* The quantity of items that must be purchased for the discount to be applied.
|
|
44
56
|
* @type {number}
|
|
@@ -25,9 +25,11 @@ function CouponPercentOffItemWithItemsQuantityPurchaseFromJSONTyped(json, ignore
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'discount_percent': !(0, runtime_1.exists)(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
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
|
'required_purchase_items': !(0, runtime_1.exists)(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
32
|
+
'required_purchase_items_tags': !(0, runtime_1.exists)(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
31
33
|
'required_purchase_quantity': !(0, runtime_1.exists)(json, 'required_purchase_quantity') ? undefined : json['required_purchase_quantity'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -41,9 +43,11 @@ function CouponPercentOffItemWithItemsQuantityPurchaseToJSON(value) {
|
|
|
41
43
|
}
|
|
42
44
|
return {
|
|
43
45
|
'discount_percent': value.discount_percent,
|
|
46
|
+
'item_tags': value.item_tags,
|
|
44
47
|
'items': value.items,
|
|
45
48
|
'limit': value.limit,
|
|
46
49
|
'required_purchase_items': value.required_purchase_items,
|
|
50
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
47
51
|
'required_purchase_quantity': value.required_purchase_quantity,
|
|
48
52
|
};
|
|
49
53
|
}
|
package/package.json
CHANGED
|
@@ -25,6 +25,12 @@ export interface CouponPercentOffItemWithItemsQuantityPurchase {
|
|
|
25
25
|
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
26
26
|
*/
|
|
27
27
|
discount_percent?: number;
|
|
28
|
+
/**
|
|
29
|
+
* An optional list of item tags which will receive a discount if one of the required purchased items is purchased.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
32
|
+
*/
|
|
33
|
+
item_tags?: Array<string>;
|
|
28
34
|
/**
|
|
29
35
|
* A list of items which will receive a discount if one of the required purchase items is purchased.
|
|
30
36
|
* @type {Array<string>}
|
|
@@ -43,6 +49,12 @@ export interface CouponPercentOffItemWithItemsQuantityPurchase {
|
|
|
43
49
|
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
44
50
|
*/
|
|
45
51
|
required_purchase_items?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Required item tags (at least one from the list) that must be purchase for coupon to be valid.
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof CouponPercentOffItemWithItemsQuantityPurchase
|
|
56
|
+
*/
|
|
57
|
+
required_purchase_items_tags?: Array<string>;
|
|
46
58
|
/**
|
|
47
59
|
* The quantity of items that must be purchased for the discount to be applied.
|
|
48
60
|
* @type {number}
|
|
@@ -62,9 +74,11 @@ export function CouponPercentOffItemWithItemsQuantityPurchaseFromJSONTyped(json:
|
|
|
62
74
|
return {
|
|
63
75
|
|
|
64
76
|
'discount_percent': !exists(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
77
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
65
78
|
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
66
79
|
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
67
80
|
'required_purchase_items': !exists(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
81
|
+
'required_purchase_items_tags': !exists(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
68
82
|
'required_purchase_quantity': !exists(json, 'required_purchase_quantity') ? undefined : json['required_purchase_quantity'],
|
|
69
83
|
};
|
|
70
84
|
}
|
|
@@ -79,9 +93,11 @@ export function CouponPercentOffItemWithItemsQuantityPurchaseToJSON(value?: Coup
|
|
|
79
93
|
return {
|
|
80
94
|
|
|
81
95
|
'discount_percent': value.discount_percent,
|
|
96
|
+
'item_tags': value.item_tags,
|
|
82
97
|
'items': value.items,
|
|
83
98
|
'limit': value.limit,
|
|
84
99
|
'required_purchase_items': value.required_purchase_items,
|
|
100
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
85
101
|
'required_purchase_quantity': value.required_purchase_quantity,
|
|
86
102
|
};
|
|
87
103
|
}
|