ultracart_api 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.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/docs/CouponFreeItemWithItemPurchaseAndFreeShipping.md +3 -1
- data/docs/CouponPercentOffItemsAndFreeShipping.md +3 -1
- data/lib/ultracart_api/models/coupon_free_item_with_item_purchase_and_free_shipping.rb +16 -4
- data/lib/ultracart_api/models/coupon_percent_off_items_and_free_shipping.rb +16 -4
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '08e4cf39d82bc3f1b8995a91ca73bfaeaeb118b0fbeac5b550be2bf71e0dcaa1'
|
|
4
|
+
data.tar.gz: 34b74e14c0e7c3a5fff9964e0621470e0060678b652bc527adee4e5316548930
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b44d6c9d7d94ccf480ba5d5f6de45f923344268343422e949fc7919d1042899edb7325b0ccfd4aa9bc69d72e9470d14557ff82ea9f16186344fb47558f2ebdb
|
|
7
|
+
data.tar.gz: 97271a58f51d6db11cf0c7421ed4db574867f2f6eb946008cdec1e81fa727bd73a1968d249a3700ccadf563db0aa0b7098a5a349cfd1daa5b731f6aeb5e2e5f8
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 4.1.
|
|
10
|
+
- Package version: 4.1.34
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
- For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
|
|
|
16
16
|
gemfile:
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
gem 'ultracart_api', '4.1.
|
|
19
|
+
gem 'ultracart_api', '4.1.34'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -1599,6 +1599,7 @@ Not every change is committed to every SDK.
|
|
|
1599
1599
|
|
|
1600
1600
|
| Version | Date | Comments |
|
|
1601
1601
|
| --: | :-: | --- |
|
|
1602
|
+
| 4.1.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
|
|
1602
1603
|
| 4.1.33 | 11/26/2025 | conversation - AI agent profile fields |
|
|
1603
1604
|
| 4.1.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
|
|
1604
1605
|
| 4.1.31 | 11/20/2025 | conversation - AI agent mcp server tools function |
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| **limit** | **Integer** | The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though. | [optional] |
|
|
9
9
|
| **match_required_purchase_item_to_free_item** | **Boolean** | If true then the free item is matched 1:1 with the free item in the list. | [optional] |
|
|
10
10
|
| **required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional] |
|
|
11
|
+
| **shipping_methods** | **Array<String>** | 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 | [optional] |
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,7 +19,8 @@ instance = UltracartClient::CouponFreeItemWithItemPurchaseAndFreeShipping.new(
|
|
|
18
19
|
items: null,
|
|
19
20
|
limit: null,
|
|
20
21
|
match_required_purchase_item_to_free_item: null,
|
|
21
|
-
required_purchase_items: null
|
|
22
|
+
required_purchase_items: null,
|
|
23
|
+
shipping_methods: null
|
|
22
24
|
)
|
|
23
25
|
```
|
|
24
26
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional] |
|
|
10
10
|
| **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items. | [optional] |
|
|
11
11
|
| **items** | **Array<String>** | An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items. | [optional] |
|
|
12
|
+
| **shipping_methods** | **Array<String>** | 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 | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,7 +21,8 @@ instance = UltracartClient::CouponPercentOffItemsAndFreeShipping.new(
|
|
|
20
21
|
excluded_item_tags: null,
|
|
21
22
|
excluded_items: null,
|
|
22
23
|
item_tags: null,
|
|
23
|
-
items: null
|
|
24
|
+
items: null,
|
|
25
|
+
shipping_methods: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
|
@@ -27,13 +27,17 @@ module UltracartClient
|
|
|
27
27
|
# Required items (at least one from the list) that must be purchased for coupon to be valid
|
|
28
28
|
attr_accessor :required_purchase_items
|
|
29
29
|
|
|
30
|
+
# 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
|
|
31
|
+
attr_accessor :shipping_methods
|
|
32
|
+
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
36
|
:'items' => :'items',
|
|
34
37
|
:'limit' => :'limit',
|
|
35
38
|
:'match_required_purchase_item_to_free_item' => :'match_required_purchase_item_to_free_item',
|
|
36
|
-
:'required_purchase_items' => :'required_purchase_items'
|
|
39
|
+
:'required_purchase_items' => :'required_purchase_items',
|
|
40
|
+
:'shipping_methods' => :'shipping_methods'
|
|
37
41
|
}
|
|
38
42
|
end
|
|
39
43
|
|
|
@@ -48,7 +52,8 @@ module UltracartClient
|
|
|
48
52
|
:'items' => :'Array<String>',
|
|
49
53
|
:'limit' => :'Integer',
|
|
50
54
|
:'match_required_purchase_item_to_free_item' => :'Boolean',
|
|
51
|
-
:'required_purchase_items' => :'Array<String>'
|
|
55
|
+
:'required_purchase_items' => :'Array<String>',
|
|
56
|
+
:'shipping_methods' => :'Array<String>'
|
|
52
57
|
}
|
|
53
58
|
end
|
|
54
59
|
|
|
@@ -92,6 +97,12 @@ module UltracartClient
|
|
|
92
97
|
self.required_purchase_items = value
|
|
93
98
|
end
|
|
94
99
|
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'shipping_methods')
|
|
102
|
+
if (value = attributes[:'shipping_methods']).is_a?(Array)
|
|
103
|
+
self.shipping_methods = value
|
|
104
|
+
end
|
|
105
|
+
end
|
|
95
106
|
end
|
|
96
107
|
|
|
97
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -115,7 +126,8 @@ module UltracartClient
|
|
|
115
126
|
items == o.items &&
|
|
116
127
|
limit == o.limit &&
|
|
117
128
|
match_required_purchase_item_to_free_item == o.match_required_purchase_item_to_free_item &&
|
|
118
|
-
required_purchase_items == o.required_purchase_items
|
|
129
|
+
required_purchase_items == o.required_purchase_items &&
|
|
130
|
+
shipping_methods == o.shipping_methods
|
|
119
131
|
end
|
|
120
132
|
|
|
121
133
|
# @see the `==` method
|
|
@@ -127,7 +139,7 @@ module UltracartClient
|
|
|
127
139
|
# Calculates hash code according to all attributes.
|
|
128
140
|
# @return [Integer] Hash code
|
|
129
141
|
def hash
|
|
130
|
-
[items, limit, match_required_purchase_item_to_free_item, required_purchase_items].hash
|
|
142
|
+
[items, limit, match_required_purchase_item_to_free_item, required_purchase_items, shipping_methods].hash
|
|
131
143
|
end
|
|
132
144
|
|
|
133
145
|
# Builds the object from hash
|
|
@@ -30,6 +30,9 @@ module UltracartClient
|
|
|
30
30
|
# An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
31
31
|
attr_accessor :items
|
|
32
32
|
|
|
33
|
+
# 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
|
|
34
|
+
attr_accessor :shipping_methods
|
|
35
|
+
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
@@ -37,7 +40,8 @@ module UltracartClient
|
|
|
37
40
|
:'excluded_item_tags' => :'excluded_item_tags',
|
|
38
41
|
:'excluded_items' => :'excluded_items',
|
|
39
42
|
:'item_tags' => :'item_tags',
|
|
40
|
-
:'items' => :'items'
|
|
43
|
+
:'items' => :'items',
|
|
44
|
+
:'shipping_methods' => :'shipping_methods'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
43
47
|
|
|
@@ -53,7 +57,8 @@ module UltracartClient
|
|
|
53
57
|
:'excluded_item_tags' => :'Array<String>',
|
|
54
58
|
:'excluded_items' => :'Array<String>',
|
|
55
59
|
:'item_tags' => :'Array<String>',
|
|
56
|
-
:'items' => :'Array<String>'
|
|
60
|
+
:'items' => :'Array<String>',
|
|
61
|
+
:'shipping_methods' => :'Array<String>'
|
|
57
62
|
}
|
|
58
63
|
end
|
|
59
64
|
|
|
@@ -105,6 +110,12 @@ module UltracartClient
|
|
|
105
110
|
self.items = value
|
|
106
111
|
end
|
|
107
112
|
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'shipping_methods')
|
|
115
|
+
if (value = attributes[:'shipping_methods']).is_a?(Array)
|
|
116
|
+
self.shipping_methods = value
|
|
117
|
+
end
|
|
118
|
+
end
|
|
108
119
|
end
|
|
109
120
|
|
|
110
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -129,7 +140,8 @@ module UltracartClient
|
|
|
129
140
|
excluded_item_tags == o.excluded_item_tags &&
|
|
130
141
|
excluded_items == o.excluded_items &&
|
|
131
142
|
item_tags == o.item_tags &&
|
|
132
|
-
items == o.items
|
|
143
|
+
items == o.items &&
|
|
144
|
+
shipping_methods == o.shipping_methods
|
|
133
145
|
end
|
|
134
146
|
|
|
135
147
|
# @see the `==` method
|
|
@@ -141,7 +153,7 @@ module UltracartClient
|
|
|
141
153
|
# Calculates hash code according to all attributes.
|
|
142
154
|
# @return [Integer] Hash code
|
|
143
155
|
def hash
|
|
144
|
-
[discount_percent, excluded_item_tags, excluded_items, item_tags, items].hash
|
|
156
|
+
[discount_percent, excluded_item_tags, excluded_items, item_tags, items, shipping_methods].hash
|
|
145
157
|
end
|
|
146
158
|
|
|
147
159
|
# Builds the object from hash
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.34
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|