ultracart_api 3.10.170 → 3.10.171

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e8eb13366a4b1600d80fe02461107ddd42e8025b8863888bcd031771930b3ff
4
- data.tar.gz: f4f99184b5c4b818996a5a94aafb7c9b685eb11162a2cd14a352331a696998a0
3
+ metadata.gz: 7fe76934447a9d7de4d84b1984c7044c2c861f24d649eca049c32d3dfa76903a
4
+ data.tar.gz: 1604def158e75d84c8561fa17cee340eb06f6a09e60ded4dc3485c8125619088
5
5
  SHA512:
6
- metadata.gz: 8c22d3f856347ef67c9cbbbc82fc8e86c19644534a532f38471df3305bd5447fa7050c43e290280d2fe7b80bb7d78bc230dfd379113cae319b3960bf52f9d2b9
7
- data.tar.gz: c42bdabf44d4f07f7860cb987c0387978136513f50da3b739ab56a1c579a3f99a9e829662b3441c2088d4aec9f3bea13c8655220b0fcf0f7bd8e370d2f8688ff
6
+ metadata.gz: 6ffd2d925c0feb240206d1161618b412b01e149b9bd5d19b67bf09039883c8b40f592abe131ce118a948bbc96a1ac164048591993dcbb27abed4976a04b2cc21
7
+ data.tar.gz: 482cc26a308a3533fa0cd552a7f7c6eebe8e057f8b032928c3e0c01f7a3e47ca40804ed951bd132a70ba5b706d2274da0ea2aaf84a399387b936c3a90fa26026
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.170
10
+ - Package version: 3.10.171
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.170.gem
27
+ gem install ./ultracart_api-3.10.171.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.170.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.171.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.170'
35
+ gem 'ultracart_api', '~> 3.10.171'
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.171 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
1399
1400
  | 3.10.170 | 11/09/2023 | item - new auto order step type: pause until |
1400
1401
  | 3.10.169 | 11/06/2023 | customer api - added wishlist methods |
1401
1402
  | 3.10.168 | 11/01/2023 | customer - do_no_send_mail flag added |
@@ -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
  **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional]
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
 
@@ -30,7 +36,9 @@ module UltracartClient
30
36
  def self.attribute_map
31
37
  {
32
38
  :'discount_percent' => :'discount_percent',
39
+ :'excluded_item_tags' => :'excluded_item_tags',
33
40
  :'excluded_items' => :'excluded_items',
41
+ :'item_tags' => :'item_tags',
34
42
  :'items' => :'items',
35
43
  :'limit' => :'limit'
36
44
  }
@@ -40,7 +48,9 @@ module UltracartClient
40
48
  def self.swagger_types
41
49
  {
42
50
  :'discount_percent' => :'Float',
51
+ :'excluded_item_tags' => :'Array<String>',
43
52
  :'excluded_items' => :'Array<String>',
53
+ :'item_tags' => :'Array<String>',
44
54
  :'items' => :'Array<String>',
45
55
  :'limit' => :'Integer'
46
56
  }
@@ -58,12 +68,24 @@ module UltracartClient
58
68
  self.discount_percent = attributes[:'discount_percent']
59
69
  end
60
70
 
71
+ if attributes.has_key?(:'excluded_item_tags')
72
+ if (value = attributes[:'excluded_item_tags']).is_a?(Array)
73
+ self.excluded_item_tags = value
74
+ end
75
+ end
76
+
61
77
  if attributes.has_key?(:'excluded_items')
62
78
  if (value = attributes[:'excluded_items']).is_a?(Array)
63
79
  self.excluded_items = value
64
80
  end
65
81
  end
66
82
 
83
+ if attributes.has_key?(:'item_tags')
84
+ if (value = attributes[:'item_tags']).is_a?(Array)
85
+ self.item_tags = value
86
+ end
87
+ end
88
+
67
89
  if attributes.has_key?(:'items')
68
90
  if (value = attributes[:'items']).is_a?(Array)
69
91
  self.items = value
@@ -94,7 +116,9 @@ module UltracartClient
94
116
  return true if self.equal?(o)
95
117
  self.class == o.class &&
96
118
  discount_percent == o.discount_percent &&
119
+ excluded_item_tags == o.excluded_item_tags &&
97
120
  excluded_items == o.excluded_items &&
121
+ item_tags == o.item_tags &&
98
122
  items == o.items &&
99
123
  limit == o.limit
100
124
  end
@@ -108,7 +132,7 @@ module UltracartClient
108
132
  # Calculates hash code according to all attributes.
109
133
  # @return [Fixnum] Hash code
110
134
  def hash
111
- [discount_percent, excluded_items, items, limit].hash
135
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items, limit].hash
112
136
  end
113
137
 
114
138
  # 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.170'
14
+ VERSION = '3.10.171'
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.170
4
+ version: 3.10.171
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