ultracart_rest_api_v2_typescript 4.1.33 → 4.1.34

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,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.33
2
+ ## ultracart_rest_api_v2_typescript@4.1.34
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.33 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.34 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
88
89
  | 4.1.33 | 11/26/2025 | conversation - AI agent profile fields |
89
90
  | 4.1.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
90
91
  | 4.1.31 | 11/20/2025 | conversation - AI agent mcp server tools function |
@@ -39,6 +39,12 @@ export interface CouponFreeItemWithItemPurchaseAndFreeShipping {
39
39
  * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
40
40
  */
41
41
  required_purchase_items?: Array<string>;
42
+ /**
43
+ * One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
44
+ * @type {Array<string>}
45
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
46
+ */
47
+ shipping_methods?: Array<string>;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the CouponFreeItemWithItemPurchaseAndFreeShipping interface.
@@ -36,6 +36,7 @@ function CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped(json, ignore
36
36
  'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
37
37
  'match_required_purchase_item_to_free_item': !(0, runtime_1.exists)(json, 'match_required_purchase_item_to_free_item') ? undefined : json['match_required_purchase_item_to_free_item'],
38
38
  'required_purchase_items': !(0, runtime_1.exists)(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
39
+ 'shipping_methods': !(0, runtime_1.exists)(json, 'shipping_methods') ? undefined : json['shipping_methods'],
39
40
  };
40
41
  }
41
42
  exports.CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped = CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped;
@@ -51,6 +52,7 @@ function CouponFreeItemWithItemPurchaseAndFreeShippingToJSON(value) {
51
52
  'limit': value.limit,
52
53
  'match_required_purchase_item_to_free_item': value.match_required_purchase_item_to_free_item,
53
54
  'required_purchase_items': value.required_purchase_items,
55
+ 'shipping_methods': value.shipping_methods,
54
56
  };
55
57
  }
56
58
  exports.CouponFreeItemWithItemPurchaseAndFreeShippingToJSON = CouponFreeItemWithItemPurchaseAndFreeShippingToJSON;
@@ -45,6 +45,12 @@ export interface CouponPercentOffItemsAndFreeShipping {
45
45
  * @memberof CouponPercentOffItemsAndFreeShipping
46
46
  */
47
47
  items?: Array<string>;
48
+ /**
49
+ * One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
50
+ * @type {Array<string>}
51
+ * @memberof CouponPercentOffItemsAndFreeShipping
52
+ */
53
+ shipping_methods?: Array<string>;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the CouponPercentOffItemsAndFreeShipping interface.
@@ -37,6 +37,7 @@ function CouponPercentOffItemsAndFreeShippingFromJSONTyped(json, ignoreDiscrimin
37
37
  'excluded_items': !(0, runtime_1.exists)(json, 'excluded_items') ? undefined : json['excluded_items'],
38
38
  'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
39
39
  'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
40
+ 'shipping_methods': !(0, runtime_1.exists)(json, 'shipping_methods') ? undefined : json['shipping_methods'],
40
41
  };
41
42
  }
42
43
  exports.CouponPercentOffItemsAndFreeShippingFromJSONTyped = CouponPercentOffItemsAndFreeShippingFromJSONTyped;
@@ -53,6 +54,7 @@ function CouponPercentOffItemsAndFreeShippingToJSON(value) {
53
54
  'excluded_items': value.excluded_items,
54
55
  'item_tags': value.item_tags,
55
56
  'items': value.items,
57
+ 'shipping_methods': value.shipping_methods,
56
58
  };
57
59
  }
58
60
  exports.CouponPercentOffItemsAndFreeShippingToJSON = CouponPercentOffItemsAndFreeShippingToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.33",
3
+ "version": "4.1.34",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -43,6 +43,12 @@ export interface CouponFreeItemWithItemPurchaseAndFreeShipping {
43
43
  * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
44
44
  */
45
45
  required_purchase_items?: Array<string>;
46
+ /**
47
+ * One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
48
+ * @type {Array<string>}
49
+ * @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
50
+ */
51
+ shipping_methods?: Array<string>;
46
52
  }
47
53
 
48
54
 
@@ -70,6 +76,7 @@ export function CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped(json:
70
76
  'limit': !exists(json, 'limit') ? undefined : json['limit'],
71
77
  'match_required_purchase_item_to_free_item': !exists(json, 'match_required_purchase_item_to_free_item') ? undefined : json['match_required_purchase_item_to_free_item'],
72
78
  'required_purchase_items': !exists(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
79
+ 'shipping_methods': !exists(json, 'shipping_methods') ? undefined : json['shipping_methods'],
73
80
  };
74
81
  }
75
82
 
@@ -86,6 +93,7 @@ export function CouponFreeItemWithItemPurchaseAndFreeShippingToJSON(value?: Coup
86
93
  'limit': value.limit,
87
94
  'match_required_purchase_item_to_free_item': value.match_required_purchase_item_to_free_item,
88
95
  'required_purchase_items': value.required_purchase_items,
96
+ 'shipping_methods': value.shipping_methods,
89
97
  };
90
98
  }
91
99
 
@@ -49,6 +49,12 @@ export interface CouponPercentOffItemsAndFreeShipping {
49
49
  * @memberof CouponPercentOffItemsAndFreeShipping
50
50
  */
51
51
  items?: Array<string>;
52
+ /**
53
+ * One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
54
+ * @type {Array<string>}
55
+ * @memberof CouponPercentOffItemsAndFreeShipping
56
+ */
57
+ shipping_methods?: Array<string>;
52
58
  }
53
59
 
54
60
 
@@ -77,6 +83,7 @@ export function CouponPercentOffItemsAndFreeShippingFromJSONTyped(json: any, ign
77
83
  'excluded_items': !exists(json, 'excluded_items') ? undefined : json['excluded_items'],
78
84
  'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
79
85
  'items': !exists(json, 'items') ? undefined : json['items'],
86
+ 'shipping_methods': !exists(json, 'shipping_methods') ? undefined : json['shipping_methods'],
80
87
  };
81
88
  }
82
89
 
@@ -94,6 +101,7 @@ export function CouponPercentOffItemsAndFreeShippingToJSON(value?: CouponPercent
94
101
  'excluded_items': value.excluded_items,
95
102
  'item_tags': value.item_tags,
96
103
  'items': value.items,
104
+ 'shipping_methods': value.shipping_methods,
97
105
  };
98
106
  }
99
107