ultracart_api 3.10.170 → 3.10.172

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e8eb13366a4b1600d80fe02461107ddd42e8025b8863888bcd031771930b3ff
4
- data.tar.gz: f4f99184b5c4b818996a5a94aafb7c9b685eb11162a2cd14a352331a696998a0
3
+ metadata.gz: 58398f0bb89879e970d8613571834685ba7146410e73baf59e432063e9bd37da
4
+ data.tar.gz: 9b5bf6f5c96d9667f9f7d132ce13df481fdd8b8ae0e9d75fea208b15b192635a
5
5
  SHA512:
6
- metadata.gz: 8c22d3f856347ef67c9cbbbc82fc8e86c19644534a532f38471df3305bd5447fa7050c43e290280d2fe7b80bb7d78bc230dfd379113cae319b3960bf52f9d2b9
7
- data.tar.gz: c42bdabf44d4f07f7860cb987c0387978136513f50da3b739ab56a1c579a3f99a9e829662b3441c2088d4aec9f3bea13c8655220b0fcf0f7bd8e370d2f8688ff
6
+ metadata.gz: d12a5379d71e67eb7eb24e5cd5f66c3f49af705a3115474e9eaefb5b9905380e64a2c54baaceea58ce6a16cf7fcdcbddf91af8d19be0517506e914d2d41f9a5d
7
+ data.tar.gz: b62ff60577a05cad2d4b483f73a47d25b07f776636e7f02a7ea04514e5d10bbac7542ff6e91a626f05d8f180772d022f115972b5fa0c5153a04b74cd2388df85
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.10.170
10
+ - Package version: 3.10.172
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-3.10.170.gem
27
+ gem install ./ultracart_api-3.10.172.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.170.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.172.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ultracart_api', '~> 3.10.170'
35
+ gem 'ultracart_api', '~> 3.10.172'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1396,6 +1396,8 @@ Not every change is committed to every SDK.
1396
1396
 
1397
1397
  | Version | Date | Comments |
1398
1398
  | --: | :-: | --- |
1399
+ | 3.10.172 | 11/13/2023 | coupon - editor values for item tags |
1400
+ | 3.10.171 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
1399
1401
  | 3.10.170 | 11/09/2023 | item - new auto order step type: pause until |
1400
1402
  | 3.10.169 | 11/06/2023 | customer api - added wishlist methods |
1401
1403
  | 3.10.168 | 11/01/2023 | customer - do_no_send_mail flag added |
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **coupon_types_for_display** | [**Array<CouponType>**](CouponType.md) | coupon_types_for_display | [optional]
9
9
  **currency_codes** | **Array<String>** | currency_codes | [optional]
10
10
  **deprecated_themes** | [**Array<SimpleValue>**](SimpleValue.md) | deprecated_themes | [optional]
11
+ **item_tags** | **Array<String>** | Item tags | [optional]
11
12
  **mix_and_match_names** | **Array<String>** | mix_and_match_names | [optional]
12
13
  **shipping_methods** | **Array<String>** | shipping_methods | [optional]
13
14
  **storefronts** | [**Array<SimpleValue>**](SimpleValue.md) | storefronts | [optional]
@@ -4,7 +4,9 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **discount_percent** | **Float** | The percentage of subtotal discount | [optional]
7
+ **excluded_item_tags** | **Array<String>** | A list of item tags which cannot be discounted. | [optional]
7
8
  **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional]
9
+ **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]
8
10
  **items** | **Array<String>** | An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items. | [optional]
9
11
  **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional]
10
12
 
@@ -29,6 +29,9 @@ module UltracartClient
29
29
  # deprecated_themes
30
30
  attr_accessor :deprecated_themes
31
31
 
32
+ # Item tags
33
+ attr_accessor :item_tags
34
+
32
35
  # mix_and_match_names
33
36
  attr_accessor :mix_and_match_names
34
37
 
@@ -52,6 +55,7 @@ module UltracartClient
52
55
  :'coupon_types_for_display' => :'coupon_types_for_display',
53
56
  :'currency_codes' => :'currency_codes',
54
57
  :'deprecated_themes' => :'deprecated_themes',
58
+ :'item_tags' => :'item_tags',
55
59
  :'mix_and_match_names' => :'mix_and_match_names',
56
60
  :'shipping_methods' => :'shipping_methods',
57
61
  :'storefronts' => :'storefronts',
@@ -68,6 +72,7 @@ module UltracartClient
68
72
  :'coupon_types_for_display' => :'Array<CouponType>',
69
73
  :'currency_codes' => :'Array<String>',
70
74
  :'deprecated_themes' => :'Array<SimpleValue>',
75
+ :'item_tags' => :'Array<String>',
71
76
  :'mix_and_match_names' => :'Array<String>',
72
77
  :'shipping_methods' => :'Array<String>',
73
78
  :'storefronts' => :'Array<SimpleValue>',
@@ -114,6 +119,12 @@ module UltracartClient
114
119
  end
115
120
  end
116
121
 
122
+ if attributes.has_key?(:'item_tags')
123
+ if (value = attributes[:'item_tags']).is_a?(Array)
124
+ self.item_tags = value
125
+ end
126
+ end
127
+
117
128
  if attributes.has_key?(:'mix_and_match_names')
118
129
  if (value = attributes[:'mix_and_match_names']).is_a?(Array)
119
130
  self.mix_and_match_names = value
@@ -168,6 +179,7 @@ module UltracartClient
168
179
  coupon_types_for_display == o.coupon_types_for_display &&
169
180
  currency_codes == o.currency_codes &&
170
181
  deprecated_themes == o.deprecated_themes &&
182
+ item_tags == o.item_tags &&
171
183
  mix_and_match_names == o.mix_and_match_names &&
172
184
  shipping_methods == o.shipping_methods &&
173
185
  storefronts == o.storefronts &&
@@ -184,7 +196,7 @@ module UltracartClient
184
196
  # Calculates hash code according to all attributes.
185
197
  # @return [Fixnum] Hash code
186
198
  def hash
187
- [affiliates, coupon_types, coupon_types_for_display, currency_codes, deprecated_themes, mix_and_match_names, shipping_methods, storefronts, usable_by, valid_with_other_coupons].hash
199
+ [affiliates, coupon_types, coupon_types_for_display, currency_codes, deprecated_themes, item_tags, mix_and_match_names, shipping_methods, storefronts, usable_by, valid_with_other_coupons].hash
188
200
  end
189
201
 
190
202
  # Builds the object from hash
@@ -17,9 +17,15 @@ module UltracartClient
17
17
  # The percentage of subtotal discount
18
18
  attr_accessor :discount_percent
19
19
 
20
+ # A list of item tags which cannot be discounted.
21
+ attr_accessor :excluded_item_tags
22
+
20
23
  # A list of items which cannot be discounted.
21
24
  attr_accessor :excluded_items
22
25
 
26
+ # An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
27
+ attr_accessor :item_tags
28
+
23
29
  # An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
24
30
  attr_accessor :items
25
31
 
@@ -30,7 +36,9 @@ module UltracartClient
30
36
  def self.attribute_map
31
37
  {
32
38
  :'discount_percent' => :'discount_percent',
39
+ :'excluded_item_tags' => :'excluded_item_tags',
33
40
  :'excluded_items' => :'excluded_items',
41
+ :'item_tags' => :'item_tags',
34
42
  :'items' => :'items',
35
43
  :'limit' => :'limit'
36
44
  }
@@ -40,7 +48,9 @@ module UltracartClient
40
48
  def self.swagger_types
41
49
  {
42
50
  :'discount_percent' => :'Float',
51
+ :'excluded_item_tags' => :'Array<String>',
43
52
  :'excluded_items' => :'Array<String>',
53
+ :'item_tags' => :'Array<String>',
44
54
  :'items' => :'Array<String>',
45
55
  :'limit' => :'Integer'
46
56
  }
@@ -58,12 +68,24 @@ module UltracartClient
58
68
  self.discount_percent = attributes[:'discount_percent']
59
69
  end
60
70
 
71
+ if attributes.has_key?(:'excluded_item_tags')
72
+ if (value = attributes[:'excluded_item_tags']).is_a?(Array)
73
+ self.excluded_item_tags = value
74
+ end
75
+ end
76
+
61
77
  if attributes.has_key?(:'excluded_items')
62
78
  if (value = attributes[:'excluded_items']).is_a?(Array)
63
79
  self.excluded_items = value
64
80
  end
65
81
  end
66
82
 
83
+ if attributes.has_key?(:'item_tags')
84
+ if (value = attributes[:'item_tags']).is_a?(Array)
85
+ self.item_tags = value
86
+ end
87
+ end
88
+
67
89
  if attributes.has_key?(:'items')
68
90
  if (value = attributes[:'items']).is_a?(Array)
69
91
  self.items = value
@@ -94,7 +116,9 @@ module UltracartClient
94
116
  return true if self.equal?(o)
95
117
  self.class == o.class &&
96
118
  discount_percent == o.discount_percent &&
119
+ excluded_item_tags == o.excluded_item_tags &&
97
120
  excluded_items == o.excluded_items &&
121
+ item_tags == o.item_tags &&
98
122
  items == o.items &&
99
123
  limit == o.limit
100
124
  end
@@ -108,7 +132,7 @@ module UltracartClient
108
132
  # Calculates hash code according to all attributes.
109
133
  # @return [Fixnum] Hash code
110
134
  def hash
111
- [discount_percent, excluded_items, items, limit].hash
135
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items, limit].hash
112
136
  end
113
137
 
114
138
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.170'
14
+ VERSION = '3.10.172'
15
15
  end
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: 3.10.170
4
+ version: 3.10.172
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-09 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus