ultracart_api 3.10.174 → 3.10.175

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: ee4fb95b0f7ef6de5a2a0bde71581014cbadd5c0ea03dce3929ffef813b4beb3
4
- data.tar.gz: 0b45d8520221bca1f65a9b5b75e932ac4547eb305d6031df0a3b9558bd6a700c
3
+ metadata.gz: 384f2abf4964cff46e802b7dae7d6b07a0290ce8b2113c1f4e3e7a2c10108e56
4
+ data.tar.gz: 80b75b74c97d498f027804114c37789950a305ba6c55af59155113cdaef30010
5
5
  SHA512:
6
- metadata.gz: a9090406a8e0cc7bb322c7f97e73b546f23d3bd0f44a759944de52570ab1ce9454e35bae575c82ab4e301cb7f5c47716ffc32f61492ed6a673feaf843b56868e
7
- data.tar.gz: c350baa0a41d19fb39739703c88b42cc7ef6c8f038cec2f7303f320ab5b6471e4e11b7129d1308869f20cfa6653bcf1037f2ae1573ef7f3fef1c3ff07b4253a3
6
+ metadata.gz: 86f4daf782b854684ff2cda62675da345d903dee9a89de60a40aa956cb29c06814f1d0fe924bd2a087f1dc0f50627c807dee75b772f7a16dc8e2a0a5abc93f49
7
+ data.tar.gz: 8fda788f6a937e6b4210e24d11bf8fb3fc25afcc8d05d2e328ec9093ade66efed8b9cfede17970f3c670aecdf5932e9500f3a23fe0d3f1e09361491479bf24d4
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.174
10
+ - Package version: 3.10.175
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.174.gem
27
+ gem install ./ultracart_api-3.10.175.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.174.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.175.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.174'
35
+ gem 'ultracart_api', '~> 3.10.175'
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.175 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
1399
1400
  | 3.10.174 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
1400
1401
  | 3.10.173 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
1401
1402
  | 3.10.172 | 11/13/2023 | coupon - editor values for item tags |
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **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]
6
7
  **items** | **Array<String>** | The items being discounted by this coupon. | [optional]
7
8
  **limit** | **Float** | The maximum number of discounted items. | [optional]
8
9
  **tiers** | [**Array<CouponTierQuantityAmount>**](CouponTierQuantityAmount.md) | A list of discount tiers. | [optional]
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **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]
6
7
  **items** | **Array<String>** | A list of items of which at least one must be purchased for coupon to be valid. | [optional]
7
8
  **limit** | **Float** | The (optional) maximum quantity of discounted items. | [optional]
8
9
  **tiers** | [**Array<CouponTierQuantityPercent>**](CouponTierQuantityPercent.md) | A list of discount tiers. | [optional]
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class CouponTieredAmountOffItems
17
+ # An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
18
+ attr_accessor :item_tags
19
+
17
20
  # The items being discounted by this coupon.
18
21
  attr_accessor :items
19
22
 
@@ -26,6 +29,7 @@ module UltracartClient
26
29
  # Attribute mapping from ruby-style variable name to JSON key.
27
30
  def self.attribute_map
28
31
  {
32
+ :'item_tags' => :'item_tags',
29
33
  :'items' => :'items',
30
34
  :'limit' => :'limit',
31
35
  :'tiers' => :'tiers'
@@ -35,6 +39,7 @@ module UltracartClient
35
39
  # Attribute type mapping.
36
40
  def self.swagger_types
37
41
  {
42
+ :'item_tags' => :'Array<String>',
38
43
  :'items' => :'Array<String>',
39
44
  :'limit' => :'Float',
40
45
  :'tiers' => :'Array<CouponTierQuantityAmount>'
@@ -49,6 +54,12 @@ module UltracartClient
49
54
  # convert string to symbol for hash key
50
55
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
56
 
57
+ if attributes.has_key?(:'item_tags')
58
+ if (value = attributes[:'item_tags']).is_a?(Array)
59
+ self.item_tags = value
60
+ end
61
+ end
62
+
52
63
  if attributes.has_key?(:'items')
53
64
  if (value = attributes[:'items']).is_a?(Array)
54
65
  self.items = value
@@ -84,6 +95,7 @@ module UltracartClient
84
95
  def ==(o)
85
96
  return true if self.equal?(o)
86
97
  self.class == o.class &&
98
+ item_tags == o.item_tags &&
87
99
  items == o.items &&
88
100
  limit == o.limit &&
89
101
  tiers == o.tiers
@@ -98,7 +110,7 @@ module UltracartClient
98
110
  # Calculates hash code according to all attributes.
99
111
  # @return [Fixnum] Hash code
100
112
  def hash
101
- [items, limit, tiers].hash
113
+ [item_tags, items, limit, tiers].hash
102
114
  end
103
115
 
104
116
  # Builds the object from hash
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class CouponTieredPercentOffItems
17
+ # An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
18
+ attr_accessor :item_tags
19
+
17
20
  # A list of items of which at least one must be purchased for coupon to be valid.
18
21
  attr_accessor :items
19
22
 
@@ -26,6 +29,7 @@ module UltracartClient
26
29
  # Attribute mapping from ruby-style variable name to JSON key.
27
30
  def self.attribute_map
28
31
  {
32
+ :'item_tags' => :'item_tags',
29
33
  :'items' => :'items',
30
34
  :'limit' => :'limit',
31
35
  :'tiers' => :'tiers'
@@ -35,6 +39,7 @@ module UltracartClient
35
39
  # Attribute type mapping.
36
40
  def self.swagger_types
37
41
  {
42
+ :'item_tags' => :'Array<String>',
38
43
  :'items' => :'Array<String>',
39
44
  :'limit' => :'Float',
40
45
  :'tiers' => :'Array<CouponTierQuantityPercent>'
@@ -49,6 +54,12 @@ module UltracartClient
49
54
  # convert string to symbol for hash key
50
55
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
56
 
57
+ if attributes.has_key?(:'item_tags')
58
+ if (value = attributes[:'item_tags']).is_a?(Array)
59
+ self.item_tags = value
60
+ end
61
+ end
62
+
52
63
  if attributes.has_key?(:'items')
53
64
  if (value = attributes[:'items']).is_a?(Array)
54
65
  self.items = value
@@ -84,6 +95,7 @@ module UltracartClient
84
95
  def ==(o)
85
96
  return true if self.equal?(o)
86
97
  self.class == o.class &&
98
+ item_tags == o.item_tags &&
87
99
  items == o.items &&
88
100
  limit == o.limit &&
89
101
  tiers == o.tiers
@@ -98,7 +110,7 @@ module UltracartClient
98
110
  # Calculates hash code according to all attributes.
99
111
  # @return [Fixnum] Hash code
100
112
  def hash
101
- [items, limit, tiers].hash
113
+ [item_tags, items, limit, tiers].hash
102
114
  end
103
115
 
104
116
  # 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.174'
14
+ VERSION = '3.10.175'
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.174
4
+ version: 3.10.175
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-20 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus