ultracart_api 4.0.190 → 4.0.192

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: 6bb4888ade7e617598e447e16bf9d3db18ba5f2572c55a739b2f81ea847d24bd
4
- data.tar.gz: 76c7a646b40ea087d26336dbc7dd52e0caed7a4f74099a5746944bfd056346a1
3
+ metadata.gz: f75a4023c4896f85b9fab94780bc01965ff7ded9785f45ed26f579f62830e944
4
+ data.tar.gz: 622da61ea02f6f4f500a44f408945f24333825b2f9049996b4c7ba47ec4e4a3f
5
5
  SHA512:
6
- metadata.gz: ed8d98a33c2118e48ee04bf8e2dd1560239efd9557e87331190abbe6c44ac50d8161e35f9258c742347e7dbe594ac43963a2c2b1edfd262bc747eb8a5ca6f93e
7
- data.tar.gz: 4c765530eeda3421eb05df0f8f6f1686e2a7791446e7ec8a7eb2e67c1c47f5825b167d452488e463b9650a6671f3862e0a9a9b9ca9f8974604ec2b4d7ecbdedd
6
+ metadata.gz: 4349dadeec282b50e2be29c393d1d7fb5c0e4ab76eba841a7efdfa8df064552672cb75f8a64c8838129ecfbd50adc12152888bf27255718a0073584fb97e4ee4
7
+ data.tar.gz: f2619af246d6b4c947f2c147d756b09b0092268f91aae768e805d75761e0a5b976c4c63fb0acf29afe54309206291ab23699ff73cbdc35d54de5082e90b9492a
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.190
10
+ - Package version: 4.0.192
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.190.gem
27
+ gem install ./ultracart_api-4.0.192.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.190.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.192.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.190'
36
+ gem 'ultracart_api', '~> 4.0.192'
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.192 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
1408
+ | 4.0.191 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
1407
1409
  | 4.0.190 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
1408
1410
  | 4.0.189 | 11/13/2023 | coupon - editor values for item tags |
1409
1411
  | 4.0.188 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
@@ -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
 
11
13
  ## Example
@@ -15,7 +17,9 @@ require 'ultracart_api'
15
17
 
16
18
  instance = UltracartClient::CouponPercentOffItemsAndFreeShipping.new(
17
19
  discount_percent: null,
20
+ excluded_item_tags: null,
18
21
  excluded_items: null,
22
+ item_tags: null,
19
23
  items: null
20
24
  )
21
25
  ```
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **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] |
7
8
  | **items** | **Array<String>** | The items being discounted by this coupon. | [optional] |
8
9
  | **limit** | **Float** | The maximum number of discounted items. | [optional] |
9
10
  | **tiers** | [**Array<CouponTierQuantityAmount>**](CouponTierQuantityAmount.md) | A list of discount tiers. | [optional] |
@@ -14,6 +15,7 @@
14
15
  require 'ultracart_api'
15
16
 
16
17
  instance = UltracartClient::CouponTieredAmountOffItems.new(
18
+ item_tags: null,
17
19
  items: null,
18
20
  limit: null,
19
21
  tiers: null
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **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] |
7
8
  | **items** | **Array<String>** | A list of items of which at least one must be purchased for coupon to be valid. | [optional] |
8
9
  | **limit** | **Float** | The (optional) maximum quantity of discounted items. | [optional] |
9
10
  | **tiers** | [**Array<CouponTierQuantityPercent>**](CouponTierQuantityPercent.md) | A list of discount tiers. | [optional] |
@@ -14,6 +15,7 @@
14
15
  require 'ultracart_api'
15
16
 
16
17
  instance = UltracartClient::CouponTieredPercentOffItems.new(
18
+ item_tags: null,
17
19
  items: null,
18
20
  limit: null,
19
21
  tiers: null
@@ -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
 
@@ -28,7 +34,9 @@ module UltracartClient
28
34
  def self.attribute_map
29
35
  {
30
36
  :'discount_percent' => :'discount_percent',
37
+ :'excluded_item_tags' => :'excluded_item_tags',
31
38
  :'excluded_items' => :'excluded_items',
39
+ :'item_tags' => :'item_tags',
32
40
  :'items' => :'items'
33
41
  }
34
42
  end
@@ -42,7 +50,9 @@ module UltracartClient
42
50
  def self.openapi_types
43
51
  {
44
52
  :'discount_percent' => :'Float',
53
+ :'excluded_item_tags' => :'Array<String>',
45
54
  :'excluded_items' => :'Array<String>',
55
+ :'item_tags' => :'Array<String>',
46
56
  :'items' => :'Array<String>'
47
57
  }
48
58
  end
@@ -72,12 +82,24 @@ module UltracartClient
72
82
  self.discount_percent = attributes[:'discount_percent']
73
83
  end
74
84
 
85
+ if attributes.key?(:'excluded_item_tags')
86
+ if (value = attributes[:'excluded_item_tags']).is_a?(Array)
87
+ self.excluded_item_tags = value
88
+ end
89
+ end
90
+
75
91
  if attributes.key?(:'excluded_items')
76
92
  if (value = attributes[:'excluded_items']).is_a?(Array)
77
93
  self.excluded_items = value
78
94
  end
79
95
  end
80
96
 
97
+ if attributes.key?(:'item_tags')
98
+ if (value = attributes[:'item_tags']).is_a?(Array)
99
+ self.item_tags = value
100
+ end
101
+ end
102
+
81
103
  if attributes.key?(:'items')
82
104
  if (value = attributes[:'items']).is_a?(Array)
83
105
  self.items = value
@@ -104,7 +126,9 @@ module UltracartClient
104
126
  return true if self.equal?(o)
105
127
  self.class == o.class &&
106
128
  discount_percent == o.discount_percent &&
129
+ excluded_item_tags == o.excluded_item_tags &&
107
130
  excluded_items == o.excluded_items &&
131
+ item_tags == o.item_tags &&
108
132
  items == o.items
109
133
  end
110
134
 
@@ -117,7 +141,7 @@ module UltracartClient
117
141
  # Calculates hash code according to all attributes.
118
142
  # @return [Integer] Hash code
119
143
  def hash
120
- [discount_percent, excluded_items, items].hash
144
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items].hash
121
145
  end
122
146
 
123
147
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class CouponTieredAmountOffItems
18
+ # An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
19
+ attr_accessor :item_tags
20
+
18
21
  # The items being discounted by this coupon.
19
22
  attr_accessor :items
20
23
 
@@ -27,6 +30,7 @@ module UltracartClient
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
28
31
  def self.attribute_map
29
32
  {
33
+ :'item_tags' => :'item_tags',
30
34
  :'items' => :'items',
31
35
  :'limit' => :'limit',
32
36
  :'tiers' => :'tiers'
@@ -41,6 +45,7 @@ module UltracartClient
41
45
  # Attribute type mapping.
42
46
  def self.openapi_types
43
47
  {
48
+ :'item_tags' => :'Array<String>',
44
49
  :'items' => :'Array<String>',
45
50
  :'limit' => :'Float',
46
51
  :'tiers' => :'Array<CouponTierQuantityAmount>'
@@ -68,6 +73,12 @@ module UltracartClient
68
73
  h[k.to_sym] = v
69
74
  }
70
75
 
76
+ if attributes.key?(:'item_tags')
77
+ if (value = attributes[:'item_tags']).is_a?(Array)
78
+ self.item_tags = value
79
+ end
80
+ end
81
+
71
82
  if attributes.key?(:'items')
72
83
  if (value = attributes[:'items']).is_a?(Array)
73
84
  self.items = value
@@ -103,6 +114,7 @@ module UltracartClient
103
114
  def ==(o)
104
115
  return true if self.equal?(o)
105
116
  self.class == o.class &&
117
+ item_tags == o.item_tags &&
106
118
  items == o.items &&
107
119
  limit == o.limit &&
108
120
  tiers == o.tiers
@@ -117,7 +129,7 @@ module UltracartClient
117
129
  # Calculates hash code according to all attributes.
118
130
  # @return [Integer] Hash code
119
131
  def hash
120
- [items, limit, tiers].hash
132
+ [item_tags, items, limit, tiers].hash
121
133
  end
122
134
 
123
135
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class CouponTieredPercentOffItems
18
+ # An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
19
+ attr_accessor :item_tags
20
+
18
21
  # A list of items of which at least one must be purchased for coupon to be valid.
19
22
  attr_accessor :items
20
23
 
@@ -27,6 +30,7 @@ module UltracartClient
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
28
31
  def self.attribute_map
29
32
  {
33
+ :'item_tags' => :'item_tags',
30
34
  :'items' => :'items',
31
35
  :'limit' => :'limit',
32
36
  :'tiers' => :'tiers'
@@ -41,6 +45,7 @@ module UltracartClient
41
45
  # Attribute type mapping.
42
46
  def self.openapi_types
43
47
  {
48
+ :'item_tags' => :'Array<String>',
44
49
  :'items' => :'Array<String>',
45
50
  :'limit' => :'Float',
46
51
  :'tiers' => :'Array<CouponTierQuantityPercent>'
@@ -68,6 +73,12 @@ module UltracartClient
68
73
  h[k.to_sym] = v
69
74
  }
70
75
 
76
+ if attributes.key?(:'item_tags')
77
+ if (value = attributes[:'item_tags']).is_a?(Array)
78
+ self.item_tags = value
79
+ end
80
+ end
81
+
71
82
  if attributes.key?(:'items')
72
83
  if (value = attributes[:'items']).is_a?(Array)
73
84
  self.items = value
@@ -103,6 +114,7 @@ module UltracartClient
103
114
  def ==(o)
104
115
  return true if self.equal?(o)
105
116
  self.class == o.class &&
117
+ item_tags == o.item_tags &&
106
118
  items == o.items &&
107
119
  limit == o.limit &&
108
120
  tiers == o.tiers
@@ -117,7 +129,7 @@ module UltracartClient
117
129
  # Calculates hash code according to all attributes.
118
130
  # @return [Integer] Hash code
119
131
  def hash
120
- [items, limit, tiers].hash
132
+ [item_tags, items, limit, tiers].hash
121
133
  end
122
134
 
123
135
  # 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.190'
14
+ VERSION = '4.0.192'
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.190
4
+ version: 4.0.192
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