ultracart_api 3.10.172 → 3.10.174

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: 58398f0bb89879e970d8613571834685ba7146410e73baf59e432063e9bd37da
4
- data.tar.gz: 9b5bf6f5c96d9667f9f7d132ce13df481fdd8b8ae0e9d75fea208b15b192635a
3
+ metadata.gz: ee4fb95b0f7ef6de5a2a0bde71581014cbadd5c0ea03dce3929ffef813b4beb3
4
+ data.tar.gz: 0b45d8520221bca1f65a9b5b75e932ac4547eb305d6031df0a3b9558bd6a700c
5
5
  SHA512:
6
- metadata.gz: d12a5379d71e67eb7eb24e5cd5f66c3f49af705a3115474e9eaefb5b9905380e64a2c54baaceea58ce6a16cf7fcdcbddf91af8d19be0517506e914d2d41f9a5d
7
- data.tar.gz: b62ff60577a05cad2d4b483f73a47d25b07f776636e7f02a7ea04514e5d10bbac7542ff6e91a626f05d8f180772d022f115972b5fa0c5153a04b74cd2388df85
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.172
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.172.gem
27
+ gem install ./ultracart_api-3.10.174.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.172.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.172'
35
+ gem 'ultracart_api', '~> 3.10.174'
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.174 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
1400
+ | 3.10.173 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
1399
1401
  | 3.10.172 | 11/13/2023 | coupon - editor values for item tags |
1400
1402
  | 3.10.171 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
1401
1403
  | 3.10.170 | 11/09/2023 | item - new auto order step type: pause until |
@@ -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
 
data/docs/WorkflowApi.md CHANGED
@@ -221,7 +221,7 @@ Name | Type | Description | Notes
221
221
 
222
222
 
223
223
  # **get_workflow_task_by_object_type**
224
- > WorkflowTaskResponse get_workflow_task_by_object_type(object_type, object_id)
224
+ > WorkflowTasksResponse get_workflow_task_by_object_type(object_type, object_id)
225
225
 
226
226
  Retrieve a workflow task by object type and id
227
227
 
@@ -260,7 +260,7 @@ Name | Type | Description | Notes
260
260
 
261
261
  ### Return type
262
262
 
263
- [**WorkflowTaskResponse**](WorkflowTaskResponse.md)
263
+ [**WorkflowTasksResponse**](WorkflowTasksResponse.md)
264
264
 
265
265
  ### Authorization
266
266
 
@@ -257,7 +257,7 @@ module UltracartClient
257
257
  # @param object_type
258
258
  # @param object_id
259
259
  # @param [Hash] opts the optional parameters
260
- # @return [WorkflowTaskResponse]
260
+ # @return [WorkflowTasksResponse]
261
261
  def get_workflow_task_by_object_type(object_type, object_id, opts = {})
262
262
  data, _status_code, _headers = get_workflow_task_by_object_type_with_http_info(object_type, object_id, opts)
263
263
  data
@@ -268,7 +268,7 @@ module UltracartClient
268
268
  # @param object_type
269
269
  # @param object_id
270
270
  # @param [Hash] opts the optional parameters
271
- # @return [Array<(WorkflowTaskResponse, Fixnum, Hash)>] WorkflowTaskResponse data, response status code and response headers
271
+ # @return [Array<(WorkflowTasksResponse, Fixnum, Hash)>] WorkflowTasksResponse data, response status code and response headers
272
272
  def get_workflow_task_by_object_type_with_http_info(object_type, object_id, opts = {})
273
273
  if @api_client.config.debugging
274
274
  @api_client.config.logger.debug 'Calling API: WorkflowApi.get_workflow_task_by_object_type ...'
@@ -307,7 +307,7 @@ module UltracartClient
307
307
  :form_params => form_params,
308
308
  :body => post_body,
309
309
  :auth_names => auth_names,
310
- :return_type => 'WorkflowTaskResponse')
310
+ :return_type => 'WorkflowTasksResponse')
311
311
  if @api_client.config.debugging
312
312
  @api_client.config.logger.debug "API called: WorkflowApi#get_workflow_task_by_object_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
313
313
  end
@@ -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
@@ -518,8 +518,8 @@ module UltracartClient
518
518
  invalid_properties.push('invalid value for "category_description", the character length must be smaller than or equal to 1000.')
519
519
  end
520
520
 
521
- if !@color.nil? && @color.to_s.length > 20
522
- invalid_properties.push('invalid value for "color", the character length must be smaller than or equal to 20.')
521
+ if !@color.nil? && @color.to_s.length > 100
522
+ invalid_properties.push('invalid value for "color", the character length must be smaller than or equal to 100.')
523
523
  end
524
524
 
525
525
  if !@condition.nil? && @condition.to_s.length > 15
@@ -648,7 +648,7 @@ module UltracartClient
648
648
  return false if !@book_isbn.nil? && @book_isbn.to_s.length > 20
649
649
  return false if !@book_publisher.nil? && @book_publisher.to_s.length > 50
650
650
  return false if !@category_description.nil? && @category_description.to_s.length > 1000
651
- return false if !@color.nil? && @color.to_s.length > 20
651
+ return false if !@color.nil? && @color.to_s.length > 100
652
652
  return false if !@condition.nil? && @condition.to_s.length > 15
653
653
  return false if !@custom_label0.nil? && @custom_label0.to_s.length > 50
654
654
  return false if !@custom_label1.nil? && @custom_label1.to_s.length > 50
@@ -802,8 +802,8 @@ module UltracartClient
802
802
  # Custom attribute writer method with validation
803
803
  # @param [Object] color Value to be assigned
804
804
  def color=(color)
805
- if !color.nil? && color.to_s.length > 20
806
- fail ArgumentError, 'invalid value for "color", the character length must be smaller than or equal to 20.'
805
+ if !color.nil? && color.to_s.length > 100
806
+ fail ArgumentError, 'invalid value for "color", the character length must be smaller than or equal to 100.'
807
807
  end
808
808
 
809
809
  @color = color
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.172'
14
+ VERSION = '3.10.174'
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.172
4
+ version: 3.10.174
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-13 00:00:00.000000000 Z
11
+ date: 2023-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus