ultracart_api 3.10.160 → 3.10.161

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: b030241bd9251e1cbbf04675286624f2c471a9dc2b2e2f77f7c5cd2b0518bf80
4
- data.tar.gz: 97cf966347d315d15e257abf4fc8383e6a090422a9bc3615e9a3567a24bab2d6
3
+ metadata.gz: 91d06ded053441fa51cbc536473c18fa3272c7faef94b4659eada67106a6fb4d
4
+ data.tar.gz: 3c2fea2b478dc3d604337b36350fc0317416016feb1eddf57d1180d8efcd8ea1
5
5
  SHA512:
6
- metadata.gz: 4ed33851dec92aeb545a1cadc1e7a7c6e1f6f2ea91c0caaeea443b66f402a800681ebaf611d4e5aabbf9454ff14ac81f369c6a84b7ab5ac8e3f1c43f902d3532
7
- data.tar.gz: d0c593c87739d88de0b81979ab3aeff624e9fb5342afabe38fa8af1898032baaa0ae8295e280f2ba18a0c3335fbaf3b6e0fdb0f6ab557f471439022ba93d3b6c
6
+ metadata.gz: a2ee526b862b5cf858d7007649c623cabbdd538260a1989eb08dcceda37f29bbcf04f1ea427de37d4c8cc64276e6b80dbef25e87a41311a5b32b14d956784bd6
7
+ data.tar.gz: b35c18a4dd266b50f2570d787b12b14875f3751d5ad7c40f4c9cc78663ea52275cf2b64646a49ca2ebb8af0c926b03643c9a143c71e139a774ae45f56c4eb224
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.160
10
+ - Package version: 3.10.161
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.160.gem
27
+ gem install ./ultracart_api-3.10.161.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.160.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.161.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.160'
35
+ gem 'ultracart_api', '~> 3.10.161'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1154,6 +1154,7 @@ Class | Method | HTTP request | Description
1154
1154
  - [UltracartClient::ReportDataSetPage](docs/ReportDataSetPage.md)
1155
1155
  - [UltracartClient::ReportDataSetPageResponse](docs/ReportDataSetPageResponse.md)
1156
1156
  - [UltracartClient::ReportDataSetQuery](docs/ReportDataSetQuery.md)
1157
+ - [UltracartClient::ReportDataSetQueryOrderByColumn](docs/ReportDataSetQueryOrderByColumn.md)
1157
1158
  - [UltracartClient::ReportDataSetResponse](docs/ReportDataSetResponse.md)
1158
1159
  - [UltracartClient::ReportDataSetRow](docs/ReportDataSetRow.md)
1159
1160
  - [UltracartClient::ReportDataSetSchema](docs/ReportDataSetSchema.md)
@@ -1362,6 +1363,7 @@ Not every change is committed to every SDK.
1362
1363
 
1363
1364
  | Version | Date | Comments |
1364
1365
  | --: | :-: | --- |
1366
+ | 3.10.161 | 09/22/2023 | dwbi - new option to control order-by of result set |
1365
1367
  | 3.10.160 | 09/15/2023 | new item fields for additional barcodes |
1366
1368
  | 3.10.159 | 09/12/2023 | added oids to customer properties |
1367
1369
  | 3.10.158 | 09/06/2023 | esp condition for survey trigger |
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional]
12
12
  **for_object_type** | **String** | The type of object this data set is for | [optional]
13
13
  **metrics** | [**Array<ReportPageVisualizationMetric>**](ReportPageVisualizationMetric.md) | | [optional]
14
+ **order_by_columns** | [**Array<ReportDataSetQueryOrderByColumn>**](ReportDataSetQueryOrderByColumn.md) | The columns to order by in the final result. If not specified the dimensions will be used | [optional]
14
15
  **page_size** | **Integer** | Result set page size. The default value is 200 records. Max is 10000. | [optional]
15
16
  **selected_filters** | [**Array<ReportFilter>**](ReportFilter.md) | | [optional]
16
17
  **skip_cache** | **BOOLEAN** | True if the 15 minute cache should be skipped. | [optional]
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ReportDataSetQueryOrderByColumn
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **ascending** | **BOOLEAN** | | [optional]
7
+ **column_name** | **String** | | [optional]
8
+
9
+
@@ -34,6 +34,9 @@ module UltracartClient
34
34
 
35
35
  attr_accessor :metrics
36
36
 
37
+ # The columns to order by in the final result. If not specified the dimensions will be used
38
+ attr_accessor :order_by_columns
39
+
37
40
  # Result set page size. The default value is 200 records. Max is 10000.
38
41
  attr_accessor :page_size
39
42
 
@@ -78,6 +81,7 @@ module UltracartClient
78
81
  :'for_object_id' => :'for_object_id',
79
82
  :'for_object_type' => :'for_object_type',
80
83
  :'metrics' => :'metrics',
84
+ :'order_by_columns' => :'order_by_columns',
81
85
  :'page_size' => :'page_size',
82
86
  :'selected_filters' => :'selected_filters',
83
87
  :'skip_cache' => :'skip_cache',
@@ -96,6 +100,7 @@ module UltracartClient
96
100
  :'for_object_id' => :'String',
97
101
  :'for_object_type' => :'String',
98
102
  :'metrics' => :'Array<ReportPageVisualizationMetric>',
103
+ :'order_by_columns' => :'Array<ReportDataSetQueryOrderByColumn>',
99
104
  :'page_size' => :'Integer',
100
105
  :'selected_filters' => :'Array<ReportFilter>',
101
106
  :'skip_cache' => :'BOOLEAN',
@@ -147,6 +152,12 @@ module UltracartClient
147
152
  end
148
153
  end
149
154
 
155
+ if attributes.has_key?(:'order_by_columns')
156
+ if (value = attributes[:'order_by_columns']).is_a?(Array)
157
+ self.order_by_columns = value
158
+ end
159
+ end
160
+
150
161
  if attributes.has_key?(:'page_size')
151
162
  self.page_size = attributes[:'page_size']
152
163
  end
@@ -204,6 +215,7 @@ module UltracartClient
204
215
  for_object_id == o.for_object_id &&
205
216
  for_object_type == o.for_object_type &&
206
217
  metrics == o.metrics &&
218
+ order_by_columns == o.order_by_columns &&
207
219
  page_size == o.page_size &&
208
220
  selected_filters == o.selected_filters &&
209
221
  skip_cache == o.skip_cache &&
@@ -219,7 +231,7 @@ module UltracartClient
219
231
  # Calculates hash code according to all attributes.
220
232
  # @return [Fixnum] Hash code
221
233
  def hash
222
- [comparison_results, data_set_query_uuid, data_source, dimensions, filter, for_object_id, for_object_type, metrics, page_size, selected_filters, skip_cache, user_data].hash
234
+ [comparison_results, data_set_query_uuid, data_source, dimensions, filter, for_object_id, for_object_type, metrics, order_by_columns, page_size, selected_filters, skip_cache, user_data].hash
223
235
  end
224
236
 
225
237
  # Builds the object from hash
@@ -0,0 +1,193 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class ReportDataSetQueryOrderByColumn
17
+ attr_accessor :ascending
18
+
19
+ attr_accessor :column_name
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'ascending' => :'ascending',
25
+ :'column_name' => :'column_name'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.swagger_types
31
+ {
32
+ :'ascending' => :'BOOLEAN',
33
+ :'column_name' => :'String'
34
+ }
35
+ end
36
+
37
+ # Initializes the object
38
+ # @param [Hash] attributes Model attributes in the form of hash
39
+ def initialize(attributes = {})
40
+ return unless attributes.is_a?(Hash)
41
+
42
+ # convert string to symbol for hash key
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
44
+
45
+ if attributes.has_key?(:'ascending')
46
+ self.ascending = attributes[:'ascending']
47
+ end
48
+
49
+ if attributes.has_key?(:'column_name')
50
+ self.column_name = attributes[:'column_name']
51
+ end
52
+ end
53
+
54
+ # Show invalid properties with the reasons. Usually used together with valid?
55
+ # @return Array for valid properties with the reasons
56
+ def list_invalid_properties
57
+ invalid_properties = Array.new
58
+ invalid_properties
59
+ end
60
+
61
+ # Check to see if the all the properties in the model are valid
62
+ # @return true if the model is valid
63
+ def valid?
64
+ true
65
+ end
66
+
67
+ # Checks equality by comparing each attribute.
68
+ # @param [Object] Object to be compared
69
+ def ==(o)
70
+ return true if self.equal?(o)
71
+ self.class == o.class &&
72
+ ascending == o.ascending &&
73
+ column_name == o.column_name
74
+ end
75
+
76
+ # @see the `==` method
77
+ # @param [Object] Object to be compared
78
+ def eql?(o)
79
+ self == o
80
+ end
81
+
82
+ # Calculates hash code according to all attributes.
83
+ # @return [Fixnum] Hash code
84
+ def hash
85
+ [ascending, column_name].hash
86
+ end
87
+
88
+ # Builds the object from hash
89
+ # @param [Hash] attributes Model attributes in the form of hash
90
+ # @return [Object] Returns the model itself
91
+ def build_from_hash(attributes)
92
+ return nil unless attributes.is_a?(Hash)
93
+ self.class.swagger_types.each_pair do |key, type|
94
+ if type =~ /\AArray<(.*)>/i
95
+ # check to ensure the input is an array given that the attribute
96
+ # is documented as an array but the input is not
97
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
98
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
99
+ end
100
+ elsif !attributes[self.class.attribute_map[key]].nil?
101
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
102
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
103
+ end
104
+
105
+ self
106
+ end
107
+
108
+ # Deserializes the data based on type
109
+ # @param string type Data type
110
+ # @param string value Value to be deserialized
111
+ # @return [Object] Deserialized data
112
+ def _deserialize(type, value)
113
+ case type.to_sym
114
+ when :DateTime
115
+ DateTime.parse(value)
116
+ when :Date
117
+ Date.parse(value)
118
+ when :String
119
+ value.to_s
120
+ when :Integer
121
+ value.to_i
122
+ when :Float
123
+ value.to_f
124
+ when :BOOLEAN
125
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
126
+ true
127
+ else
128
+ false
129
+ end
130
+ when :Object
131
+ # generic object (usually a Hash), return directly
132
+ value
133
+ when /\AArray<(?<inner_type>.+)>\z/
134
+ inner_type = Regexp.last_match[:inner_type]
135
+ value.map { |v| _deserialize(inner_type, v) }
136
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
137
+ k_type = Regexp.last_match[:k_type]
138
+ v_type = Regexp.last_match[:v_type]
139
+ {}.tap do |hash|
140
+ value.each do |k, v|
141
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
142
+ end
143
+ end
144
+ else # model
145
+ temp_model = UltracartClient.const_get(type).new
146
+ temp_model.build_from_hash(value)
147
+ end
148
+ end
149
+
150
+ # Returns the string representation of the object
151
+ # @return [String] String presentation of the object
152
+ def to_s
153
+ to_hash.to_s
154
+ end
155
+
156
+ # to_body is an alias to to_hash (backward compatibility)
157
+ # @return [Hash] Returns the object in the form of hash
158
+ def to_body
159
+ to_hash
160
+ end
161
+
162
+ # Returns the object in the form of hash
163
+ # @return [Hash] Returns the object in the form of hash
164
+ def to_hash
165
+ hash = {}
166
+ self.class.attribute_map.each_pair do |attr, param|
167
+ value = self.send(attr)
168
+ next if value.nil?
169
+ hash[param] = _to_hash(value)
170
+ end
171
+ hash
172
+ end
173
+
174
+ # Outputs non-array value in the form of hash
175
+ # For object, use to_hash. Otherwise, just return the value
176
+ # @param [Object] value Any valid value
177
+ # @return [Hash] Returns the value in the form of hash
178
+ def _to_hash(value)
179
+ if value.is_a?(Array)
180
+ value.compact.map { |v| _to_hash(v) }
181
+ elsif value.is_a?(Hash)
182
+ {}.tap do |hash|
183
+ value.each { |k, v| hash[k] = _to_hash(v) }
184
+ end
185
+ elsif value.respond_to? :to_hash
186
+ value.to_hash
187
+ else
188
+ value
189
+ end
190
+ end
191
+
192
+ end
193
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.160'
14
+ VERSION = '3.10.161'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -660,6 +660,7 @@ require 'ultracart_api/models/report_data_set_column'
660
660
  require 'ultracart_api/models/report_data_set_page'
661
661
  require 'ultracart_api/models/report_data_set_page_response'
662
662
  require 'ultracart_api/models/report_data_set_query'
663
+ require 'ultracart_api/models/report_data_set_query_order_by_column'
663
664
  require 'ultracart_api/models/report_data_set_response'
664
665
  require 'ultracart_api/models/report_data_set_row'
665
666
  require 'ultracart_api/models/report_data_set_schema'
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.160
4
+ version: 3.10.161
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-15 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -879,6 +879,7 @@ files:
879
879
  - docs/ReportDataSetPage.md
880
880
  - docs/ReportDataSetPageResponse.md
881
881
  - docs/ReportDataSetQuery.md
882
+ - docs/ReportDataSetQueryOrderByColumn.md
882
883
  - docs/ReportDataSetResponse.md
883
884
  - docs/ReportDataSetRow.md
884
885
  - docs/ReportDataSetSchema.md
@@ -1690,6 +1691,7 @@ files:
1690
1691
  - lib/ultracart_api/models/report_data_set_page.rb
1691
1692
  - lib/ultracart_api/models/report_data_set_page_response.rb
1692
1693
  - lib/ultracart_api/models/report_data_set_query.rb
1694
+ - lib/ultracart_api/models/report_data_set_query_order_by_column.rb
1693
1695
  - lib/ultracart_api/models/report_data_set_response.rb
1694
1696
  - lib/ultracart_api/models/report_data_set_row.rb
1695
1697
  - lib/ultracart_api/models/report_data_set_schema.rb