ultracart_api 3.10.173 → 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: 18f876d4736b449a876e2a0af5d7263144a416681c230429b44d42a673283e47
4
- data.tar.gz: 19e995fde5ed0841b2503bf83fa7e1a64f28a482bbcf8e0f7f1c70bafca525bc
3
+ metadata.gz: 384f2abf4964cff46e802b7dae7d6b07a0290ce8b2113c1f4e3e7a2c10108e56
4
+ data.tar.gz: 80b75b74c97d498f027804114c37789950a305ba6c55af59155113cdaef30010
5
5
  SHA512:
6
- metadata.gz: 1843bfca4a0f860222856e23d62ef95e7e3b2bbaa227455c9ed1aedd20fe83f93a40bb5acb8360a9146ab3335ad2adbbbd23abf0c969a36544f8a5c56426828c
7
- data.tar.gz: bfde9c66f5bbc83b0449bdbf53b31ff2a786d7c55045718c6c0689f47f0398a86298f32743a166994b1085b2ee03e29f1c3fb48b07527a153669716583f73f82
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.173
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.173.gem
27
+ gem install ./ultracart_api-3.10.175.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.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.173'
35
+ gem 'ultracart_api', '~> 3.10.175'
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.175 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
1400
+ | 3.10.174 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
1399
1401
  | 3.10.173 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
1400
1402
  | 3.10.172 | 11/13/2023 | coupon - editor values for item tags |
1401
1403
  | 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
 
@@ -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]
@@ -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
@@ -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.173'
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.173
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