ultracart_api 4.0.177 → 4.0.178

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: 8ffc40d5315a915831fcd60e2c4e5fcb62b6f5748d12860b371760ab988efabd
4
- data.tar.gz: 1f9729c540d9c670086514b86f0678ac40e3dee333e8676898c596816ebb7699
3
+ metadata.gz: 7f08dbaed916a79d9f3d50cd1dae8ae1ed32fb2b6bc1ae14dc2d0e358a9fe75f
4
+ data.tar.gz: d209c2c2a7d7da973e67be58867eb9cf7332be7a770bb32f697486cceeea1519
5
5
  SHA512:
6
- metadata.gz: 7b66f64c44772f5b0162454fadfb4220ba53d9bb05c10c2bc605f94769ed4a2c16842db5122ca3cf7c42a6824bc3be3e217f00234e778db6627c3df4064b3a86
7
- data.tar.gz: 4311d664f619f70f2c017c70d249302e633d78979fd656c825f9091d2ba77e50fbde5d21a506280803afbcf150000e8517ac368d3b3effca9e6f7366214c99a9
6
+ metadata.gz: 7584893c53896afdd240a8b48330c99e59f2a85d1ac681a5fbdc2877ad3f00f0eb3b9cebe33163e1f62d7920fd185de8d210f8e50e3720b3f50fd350c8c7ae05
7
+ data.tar.gz: bbe29dae890bb926b858a721f919e0830c221da3bd82ebdeea4fd664698502d43450129fa140a2e4f877820ae841cd2d81224e49f87c1b7b21a2c03cc65e52ff
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.177
10
+ - Package version: 4.0.178
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.177.gem
27
+ gem install ./ultracart_api-4.0.178.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.177.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.178.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.177'
36
+ gem 'ultracart_api', '~> 4.0.178'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1159,6 +1159,7 @@ Class | Method | HTTP request | Description
1159
1159
  - [UltracartClient::ReportDataSetPage](docs/ReportDataSetPage.md)
1160
1160
  - [UltracartClient::ReportDataSetPageResponse](docs/ReportDataSetPageResponse.md)
1161
1161
  - [UltracartClient::ReportDataSetQuery](docs/ReportDataSetQuery.md)
1162
+ - [UltracartClient::ReportDataSetQueryOrderByColumn](docs/ReportDataSetQueryOrderByColumn.md)
1162
1163
  - [UltracartClient::ReportDataSetResponse](docs/ReportDataSetResponse.md)
1163
1164
  - [UltracartClient::ReportDataSetRow](docs/ReportDataSetRow.md)
1164
1165
  - [UltracartClient::ReportDataSetSchema](docs/ReportDataSetSchema.md)
@@ -1370,6 +1371,7 @@ Not every change is committed to every SDK.
1370
1371
 
1371
1372
  | Version | Date | Comments |
1372
1373
  | --: | :-: | --- |
1374
+ | 4.0.178 | 09/22/2023 | dwbi - new option to control order-by of result set |
1373
1375
  | 4.0.177 | 09/15/2023 | new item fields for additional barcodes |
1374
1376
  | 4.0.176 | 09/12/2023 | added oids to customer properties |
1375
1377
  | 4.0.175 | 09/06/2023 | esp condition for survey trigger |
@@ -12,6 +12,7 @@
12
12
  | **for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional] |
13
13
  | **for_object_type** | **String** | The type of object this data set is for | [optional] |
14
14
  | **metrics** | [**Array<ReportPageVisualizationMetric>**](ReportPageVisualizationMetric.md) | | [optional] |
15
+ | **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] |
15
16
  | **page_size** | **Integer** | Result set page size. The default value is 200 records. Max is 10000. | [optional] |
16
17
  | **selected_filters** | [**Array<ReportFilter>**](ReportFilter.md) | | [optional] |
17
18
  | **skip_cache** | **Boolean** | True if the 15 minute cache should be skipped. | [optional] |
@@ -31,6 +32,7 @@ instance = UltracartClient::ReportDataSetQuery.new(
31
32
  for_object_id: null,
32
33
  for_object_type: null,
33
34
  metrics: null,
35
+ order_by_columns: null,
34
36
  page_size: null,
35
37
  selected_filters: null,
36
38
  skip_cache: null,
@@ -0,0 +1,20 @@
1
+ # UltracartClient::ReportDataSetQueryOrderByColumn
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ascending** | **Boolean** | | [optional] |
8
+ | **column_name** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::ReportDataSetQueryOrderByColumn.new(
16
+ ascending: null,
17
+ column_name: null
18
+ )
19
+ ```
20
+
@@ -35,6 +35,9 @@ module UltracartClient
35
35
 
36
36
  attr_accessor :metrics
37
37
 
38
+ # The columns to order by in the final result. If not specified the dimensions will be used
39
+ attr_accessor :order_by_columns
40
+
38
41
  # Result set page size. The default value is 200 records. Max is 10000.
39
42
  attr_accessor :page_size
40
43
 
@@ -79,6 +82,7 @@ module UltracartClient
79
82
  :'for_object_id' => :'for_object_id',
80
83
  :'for_object_type' => :'for_object_type',
81
84
  :'metrics' => :'metrics',
85
+ :'order_by_columns' => :'order_by_columns',
82
86
  :'page_size' => :'page_size',
83
87
  :'selected_filters' => :'selected_filters',
84
88
  :'skip_cache' => :'skip_cache',
@@ -102,6 +106,7 @@ module UltracartClient
102
106
  :'for_object_id' => :'String',
103
107
  :'for_object_type' => :'String',
104
108
  :'metrics' => :'Array<ReportPageVisualizationMetric>',
109
+ :'order_by_columns' => :'Array<ReportDataSetQueryOrderByColumn>',
105
110
  :'page_size' => :'Integer',
106
111
  :'selected_filters' => :'Array<ReportFilter>',
107
112
  :'skip_cache' => :'Boolean',
@@ -166,6 +171,12 @@ module UltracartClient
166
171
  end
167
172
  end
168
173
 
174
+ if attributes.key?(:'order_by_columns')
175
+ if (value = attributes[:'order_by_columns']).is_a?(Array)
176
+ self.order_by_columns = value
177
+ end
178
+ end
179
+
169
180
  if attributes.key?(:'page_size')
170
181
  self.page_size = attributes[:'page_size']
171
182
  end
@@ -223,6 +234,7 @@ module UltracartClient
223
234
  for_object_id == o.for_object_id &&
224
235
  for_object_type == o.for_object_type &&
225
236
  metrics == o.metrics &&
237
+ order_by_columns == o.order_by_columns &&
226
238
  page_size == o.page_size &&
227
239
  selected_filters == o.selected_filters &&
228
240
  skip_cache == o.skip_cache &&
@@ -238,7 +250,7 @@ module UltracartClient
238
250
  # Calculates hash code according to all attributes.
239
251
  # @return [Integer] Hash code
240
252
  def hash
241
- [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
253
+ [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
242
254
  end
243
255
 
244
256
  # Builds the object from hash
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class ReportDataSetQueryOrderByColumn
18
+ attr_accessor :ascending
19
+
20
+ attr_accessor :column_name
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'ascending' => :'ascending',
26
+ :'column_name' => :'column_name'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'ascending' => :'Boolean',
39
+ :'column_name' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ReportDataSetQueryOrderByColumn` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ReportDataSetQueryOrderByColumn`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'ascending')
65
+ self.ascending = attributes[:'ascending']
66
+ end
67
+
68
+ if attributes.key?(:'column_name')
69
+ self.column_name = attributes[:'column_name']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ ascending == o.ascending &&
92
+ column_name == o.column_name
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [ascending, column_name].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ attributes = attributes.transform_keys(&:to_sym)
120
+ self.class.openapi_types.each_pair do |key, type|
121
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
+ self.send("#{key}=", nil)
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :Time
144
+ Time.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :Boolean
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ # models (e.g. Pet) or oneOf
175
+ klass = UltracartClient.const_get(type)
176
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+
226
+ end
227
+
228
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.177'
14
+ VERSION = '4.0.178'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -659,6 +659,7 @@ require 'ultracart_api/models/report_data_set_column'
659
659
  require 'ultracart_api/models/report_data_set_page'
660
660
  require 'ultracart_api/models/report_data_set_page_response'
661
661
  require 'ultracart_api/models/report_data_set_query'
662
+ require 'ultracart_api/models/report_data_set_query_order_by_column'
662
663
  require 'ultracart_api/models/report_data_set_response'
663
664
  require 'ultracart_api/models/report_data_set_row'
664
665
  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: 4.0.177
4
+ version: 4.0.178
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
@@ -718,6 +718,7 @@ files:
718
718
  - docs/ReportDataSetPage.md
719
719
  - docs/ReportDataSetPageResponse.md
720
720
  - docs/ReportDataSetQuery.md
721
+ - docs/ReportDataSetQueryOrderByColumn.md
721
722
  - docs/ReportDataSetResponse.md
722
723
  - docs/ReportDataSetRow.md
723
724
  - docs/ReportDataSetSchema.md
@@ -1528,6 +1529,7 @@ files:
1528
1529
  - lib/ultracart_api/models/report_data_set_page.rb
1529
1530
  - lib/ultracart_api/models/report_data_set_page_response.rb
1530
1531
  - lib/ultracart_api/models/report_data_set_query.rb
1532
+ - lib/ultracart_api/models/report_data_set_query_order_by_column.rb
1531
1533
  - lib/ultracart_api/models/report_data_set_response.rb
1532
1534
  - lib/ultracart_api/models/report_data_set_row.rb
1533
1535
  - lib/ultracart_api/models/report_data_set_schema.rb