ultracart_api 3.10.173 → 3.10.174

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: 18f876d4736b449a876e2a0af5d7263144a416681c230429b44d42a673283e47
4
- data.tar.gz: 19e995fde5ed0841b2503bf83fa7e1a64f28a482bbcf8e0f7f1c70bafca525bc
3
+ metadata.gz: ee4fb95b0f7ef6de5a2a0bde71581014cbadd5c0ea03dce3929ffef813b4beb3
4
+ data.tar.gz: 0b45d8520221bca1f65a9b5b75e932ac4547eb305d6031df0a3b9558bd6a700c
5
5
  SHA512:
6
- metadata.gz: 1843bfca4a0f860222856e23d62ef95e7e3b2bbaa227455c9ed1aedd20fe83f93a40bb5acb8360a9146ab3335ad2adbbbd23abf0c969a36544f8a5c56426828c
7
- data.tar.gz: bfde9c66f5bbc83b0449bdbf53b31ff2a786d7c55045718c6c0689f47f0398a86298f32743a166994b1085b2ee03e29f1c3fb48b07527a153669716583f73f82
6
+ metadata.gz: a9090406a8e0cc7bb322c7f97e73b546f23d3bd0f44a759944de52570ab1ce9454e35bae575c82ab4e301cb7f5c47716ffc32f61492ed6a673feaf843b56868e
7
+ data.tar.gz: c350baa0a41d19fb39739703c88b42cc7ef6c8f038cec2f7303f320ab5b6471e4e11b7129d1308869f20cfa6653bcf1037f2ae1573ef7f3fef1c3ff07b4253a3
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.173
10
+ - Package version: 3.10.174
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.173.gem
27
+ gem install ./ultracart_api-3.10.174.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.173.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.174.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.173'
35
+ gem 'ultracart_api', '~> 3.10.174'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1396,6 +1396,7 @@ Not every change is committed to every SDK.
1396
1396
 
1397
1397
  | Version | Date | Comments |
1398
1398
  | --: | :-: | --- |
1399
+ | 3.10.174 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
1399
1400
  | 3.10.173 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
1400
1401
  | 3.10.172 | 11/13/2023 | coupon - editor values for item tags |
1401
1402
  | 3.10.171 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
@@ -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
 
10
12
 
@@ -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
 
@@ -27,7 +33,9 @@ module UltracartClient
27
33
  def self.attribute_map
28
34
  {
29
35
  :'discount_percent' => :'discount_percent',
36
+ :'excluded_item_tags' => :'excluded_item_tags',
30
37
  :'excluded_items' => :'excluded_items',
38
+ :'item_tags' => :'item_tags',
31
39
  :'items' => :'items'
32
40
  }
33
41
  end
@@ -36,7 +44,9 @@ module UltracartClient
36
44
  def self.swagger_types
37
45
  {
38
46
  :'discount_percent' => :'Float',
47
+ :'excluded_item_tags' => :'Array<String>',
39
48
  :'excluded_items' => :'Array<String>',
49
+ :'item_tags' => :'Array<String>',
40
50
  :'items' => :'Array<String>'
41
51
  }
42
52
  end
@@ -53,12 +63,24 @@ module UltracartClient
53
63
  self.discount_percent = attributes[:'discount_percent']
54
64
  end
55
65
 
66
+ if attributes.has_key?(:'excluded_item_tags')
67
+ if (value = attributes[:'excluded_item_tags']).is_a?(Array)
68
+ self.excluded_item_tags = value
69
+ end
70
+ end
71
+
56
72
  if attributes.has_key?(:'excluded_items')
57
73
  if (value = attributes[:'excluded_items']).is_a?(Array)
58
74
  self.excluded_items = value
59
75
  end
60
76
  end
61
77
 
78
+ if attributes.has_key?(:'item_tags')
79
+ if (value = attributes[:'item_tags']).is_a?(Array)
80
+ self.item_tags = value
81
+ end
82
+ end
83
+
62
84
  if attributes.has_key?(:'items')
63
85
  if (value = attributes[:'items']).is_a?(Array)
64
86
  self.items = value
@@ -85,7 +107,9 @@ module UltracartClient
85
107
  return true if self.equal?(o)
86
108
  self.class == o.class &&
87
109
  discount_percent == o.discount_percent &&
110
+ excluded_item_tags == o.excluded_item_tags &&
88
111
  excluded_items == o.excluded_items &&
112
+ item_tags == o.item_tags &&
89
113
  items == o.items
90
114
  end
91
115
 
@@ -98,7 +122,7 @@ module UltracartClient
98
122
  # Calculates hash code according to all attributes.
99
123
  # @return [Fixnum] Hash code
100
124
  def hash
101
- [discount_percent, excluded_items, items].hash
125
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items].hash
102
126
  end
103
127
 
104
128
  # 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.173'
14
+ VERSION = '3.10.174'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.173
4
+ version: 3.10.174
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart