ultracart_api 4.0.187 → 4.0.189

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63195f713a35f19a29255077b2823f382bb2f2dcf722366bf024810d840b6060
4
- data.tar.gz: 601a743d7cbcc0af6e58992aadda161dee4844c40d55341490fa38cba3c80c3c
3
+ metadata.gz: 254117376f30ad908f0060c4ec55be2f4efb4f67192b74e1453073804e83444d
4
+ data.tar.gz: b53f8f81a36916f3c04210b891f3e062d764755138bef8cd6e1cac8e6a448059
5
5
  SHA512:
6
- metadata.gz: 13ca6d549e8d384d98f252283a8f7fb63873d3c63e5da1d036dbf340344e42581fcc968390c1abe1373b6746af87b04d452d5ff24190290e6f81f400075f34a0
7
- data.tar.gz: 060edd8e5f2875ed37902234215737335fc587ce134bdc2ea8834644522828f6417e928dfb3b6c414d19efbbd65c65c1d2fea62c0cce865896713d8ed928c551
6
+ metadata.gz: 1631fbe4405551c9d5dd413c0ae1969a541381d70c8b179d05d102b8ec9abefec87a4ef440a2bb6c20c868a655ed9f6d2998ae70e3a6e75260f8c3688158e39b
7
+ data.tar.gz: 3fb48b0c2b79b183d00ccadfd64ae8dc4959f4d0864ed5066358df984257f9f50f5cc50de99f2716af177459077fec975d4cf022c88ec37dc11976a27d7cf4d7
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
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.0.187
10
+ - Package version: 4.0.189
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.187.gem
27
+ gem install ./ultracart_api-4.0.189.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.187.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.189.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.187'
36
+ gem 'ultracart_api', '~> 4.0.189'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1404,6 +1404,8 @@ Not every change is committed to every SDK.
1404
1404
 
1405
1405
  | Version | Date | Comments |
1406
1406
  | --: | :-: | --- |
1407
+ | 4.0.189 | 11/13/2023 | coupon - editor values for item tags |
1408
+ | 4.0.188 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
1407
1409
  | 4.0.187 | 11/09/2023 | item - new auto order step type: pause until |
1408
1410
  | 4.0.186 | 11/06/2023 | customer api - added wishlist methods |
1409
1411
  | 4.0.185 | 11/01/2023 | customer - do_no_send_mail flag added |
@@ -9,6 +9,7 @@
9
9
  | **coupon_types_for_display** | [**Array<CouponType>**](CouponType.md) | coupon_types_for_display | [optional] |
10
10
  | **currency_codes** | **Array<String>** | currency_codes | [optional] |
11
11
  | **deprecated_themes** | [**Array<SimpleValue>**](SimpleValue.md) | deprecated_themes | [optional] |
12
+ | **item_tags** | **Array<String>** | Item tags | [optional] |
12
13
  | **mix_and_match_names** | **Array<String>** | mix_and_match_names | [optional] |
13
14
  | **shipping_methods** | **Array<String>** | shipping_methods | [optional] |
14
15
  | **storefronts** | [**Array<SimpleValue>**](SimpleValue.md) | storefronts | [optional] |
@@ -26,6 +27,7 @@ instance = UltracartClient::CouponEditorValues.new(
26
27
  coupon_types_for_display: null,
27
28
  currency_codes: null,
28
29
  deprecated_themes: null,
30
+ item_tags: null,
29
31
  mix_and_match_names: null,
30
32
  shipping_methods: null,
31
33
  storefronts: null,
@@ -5,7 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **discount_percent** | **Float** | The percentage of subtotal discount | [optional] |
8
+ | **excluded_item_tags** | **Array<String>** | A list of item tags which cannot be discounted. | [optional] |
8
9
  | **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional] |
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] |
9
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] |
10
12
  | **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional] |
11
13
 
@@ -16,7 +18,9 @@ require 'ultracart_api'
16
18
 
17
19
  instance = UltracartClient::CouponPercentOffItems.new(
18
20
  discount_percent: null,
21
+ excluded_item_tags: null,
19
22
  excluded_items: null,
23
+ item_tags: null,
20
24
  items: null,
21
25
  limit: null
22
26
  )
@@ -30,6 +30,9 @@ module UltracartClient
30
30
  # deprecated_themes
31
31
  attr_accessor :deprecated_themes
32
32
 
33
+ # Item tags
34
+ attr_accessor :item_tags
35
+
33
36
  # mix_and_match_names
34
37
  attr_accessor :mix_and_match_names
35
38
 
@@ -53,6 +56,7 @@ module UltracartClient
53
56
  :'coupon_types_for_display' => :'coupon_types_for_display',
54
57
  :'currency_codes' => :'currency_codes',
55
58
  :'deprecated_themes' => :'deprecated_themes',
59
+ :'item_tags' => :'item_tags',
56
60
  :'mix_and_match_names' => :'mix_and_match_names',
57
61
  :'shipping_methods' => :'shipping_methods',
58
62
  :'storefronts' => :'storefronts',
@@ -74,6 +78,7 @@ module UltracartClient
74
78
  :'coupon_types_for_display' => :'Array<CouponType>',
75
79
  :'currency_codes' => :'Array<String>',
76
80
  :'deprecated_themes' => :'Array<SimpleValue>',
81
+ :'item_tags' => :'Array<String>',
77
82
  :'mix_and_match_names' => :'Array<String>',
78
83
  :'shipping_methods' => :'Array<String>',
79
84
  :'storefronts' => :'Array<SimpleValue>',
@@ -133,6 +138,12 @@ module UltracartClient
133
138
  end
134
139
  end
135
140
 
141
+ if attributes.key?(:'item_tags')
142
+ if (value = attributes[:'item_tags']).is_a?(Array)
143
+ self.item_tags = value
144
+ end
145
+ end
146
+
136
147
  if attributes.key?(:'mix_and_match_names')
137
148
  if (value = attributes[:'mix_and_match_names']).is_a?(Array)
138
149
  self.mix_and_match_names = value
@@ -187,6 +198,7 @@ module UltracartClient
187
198
  coupon_types_for_display == o.coupon_types_for_display &&
188
199
  currency_codes == o.currency_codes &&
189
200
  deprecated_themes == o.deprecated_themes &&
201
+ item_tags == o.item_tags &&
190
202
  mix_and_match_names == o.mix_and_match_names &&
191
203
  shipping_methods == o.shipping_methods &&
192
204
  storefronts == o.storefronts &&
@@ -203,7 +215,7 @@ module UltracartClient
203
215
  # Calculates hash code according to all attributes.
204
216
  # @return [Integer] Hash code
205
217
  def hash
206
- [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
218
+ [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
207
219
  end
208
220
 
209
221
  # Builds the object from hash
@@ -18,9 +18,15 @@ module UltracartClient
18
18
  # The percentage of subtotal discount
19
19
  attr_accessor :discount_percent
20
20
 
21
+ # A list of item tags which cannot be discounted.
22
+ attr_accessor :excluded_item_tags
23
+
21
24
  # A list of items which cannot be discounted.
22
25
  attr_accessor :excluded_items
23
26
 
27
+ # An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
28
+ attr_accessor :item_tags
29
+
24
30
  # An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
25
31
  attr_accessor :items
26
32
 
@@ -31,7 +37,9 @@ module UltracartClient
31
37
  def self.attribute_map
32
38
  {
33
39
  :'discount_percent' => :'discount_percent',
40
+ :'excluded_item_tags' => :'excluded_item_tags',
34
41
  :'excluded_items' => :'excluded_items',
42
+ :'item_tags' => :'item_tags',
35
43
  :'items' => :'items',
36
44
  :'limit' => :'limit'
37
45
  }
@@ -46,7 +54,9 @@ module UltracartClient
46
54
  def self.openapi_types
47
55
  {
48
56
  :'discount_percent' => :'Float',
57
+ :'excluded_item_tags' => :'Array<String>',
49
58
  :'excluded_items' => :'Array<String>',
59
+ :'item_tags' => :'Array<String>',
50
60
  :'items' => :'Array<String>',
51
61
  :'limit' => :'Integer'
52
62
  }
@@ -77,12 +87,24 @@ module UltracartClient
77
87
  self.discount_percent = attributes[:'discount_percent']
78
88
  end
79
89
 
90
+ if attributes.key?(:'excluded_item_tags')
91
+ if (value = attributes[:'excluded_item_tags']).is_a?(Array)
92
+ self.excluded_item_tags = value
93
+ end
94
+ end
95
+
80
96
  if attributes.key?(:'excluded_items')
81
97
  if (value = attributes[:'excluded_items']).is_a?(Array)
82
98
  self.excluded_items = value
83
99
  end
84
100
  end
85
101
 
102
+ if attributes.key?(:'item_tags')
103
+ if (value = attributes[:'item_tags']).is_a?(Array)
104
+ self.item_tags = value
105
+ end
106
+ end
107
+
86
108
  if attributes.key?(:'items')
87
109
  if (value = attributes[:'items']).is_a?(Array)
88
110
  self.items = value
@@ -113,7 +135,9 @@ module UltracartClient
113
135
  return true if self.equal?(o)
114
136
  self.class == o.class &&
115
137
  discount_percent == o.discount_percent &&
138
+ excluded_item_tags == o.excluded_item_tags &&
116
139
  excluded_items == o.excluded_items &&
140
+ item_tags == o.item_tags &&
117
141
  items == o.items &&
118
142
  limit == o.limit
119
143
  end
@@ -127,7 +151,7 @@ module UltracartClient
127
151
  # Calculates hash code according to all attributes.
128
152
  # @return [Integer] Hash code
129
153
  def hash
130
- [discount_percent, excluded_items, items, limit].hash
154
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items, limit].hash
131
155
  end
132
156
 
133
157
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.187'
14
+ VERSION = '4.0.189'
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: 4.0.187
4
+ version: 4.0.189
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