ultracart_api 4.0.147 → 4.0.149

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: 4d1b6f4418ab6f3a3f6a5487e3b8af88708af05ff0f539d8c73d415a3d94d202
4
- data.tar.gz: 1cbaaf2055b95cfb5efc58d7cb411eb3bea1c4244e31d7ae90533cc9499c1bab
3
+ metadata.gz: bc5e38856439cb96e1ee12791f82400e36e0854564f37afbe9e567a5e8eeb71c
4
+ data.tar.gz: 844946940c6e58818beaeae31fced578ded7afc773492b2af4bcf8628ff3d6a1
5
5
  SHA512:
6
- metadata.gz: '03127408f5fde40e1d3ca7a01b44a3f797ee4fe91fa4748a85cc3750a28d651b2374d775bb5bb99d2c9eb2920c7e91631403fa617c94fa34c52b1bf6e81a1380'
7
- data.tar.gz: e6b020d7b16ad3a22f4a406901baefca593382ec580c75d77426db11686f2c73c480183d12ba85b4d336810c622ad502c41a3fe0c5c255cffe41d5fe54f50cb0
6
+ metadata.gz: 7626503586ff1a6d6dd7d869879af94683639674a5b7ea6fb8ee88b915e8aac8e8764db7ae6775213154900864dffbef271d77179f098c890f5be06f9473472f
7
+ data.tar.gz: 07cfab73e6aff1a39a5912d55764eec82be41d07b4e3d66164303fd7474733a76339840ba2e35d9f556e4f660fd9e0f94fad446c6092150f1de5f156f14d0358
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.147
10
+ - Package version: 4.0.149
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.147.gem
27
+ gem install ./ultracart_api-4.0.149.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.147.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.149.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.147'
36
+ gem 'ultracart_api', '~> 4.0.149'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1154,6 +1154,7 @@ Class | Method | HTTP request | Description
1154
1154
  - [UltracartClient::ReportFilter](docs/ReportFilter.md)
1155
1155
  - [UltracartClient::ReportFilterConnection](docs/ReportFilterConnection.md)
1156
1156
  - [UltracartClient::ReportPage](docs/ReportPage.md)
1157
+ - [UltracartClient::ReportPageFilter](docs/ReportPageFilter.md)
1157
1158
  - [UltracartClient::ReportPageVisualization](docs/ReportPageVisualization.md)
1158
1159
  - [UltracartClient::ReportPageVisualizationDimension](docs/ReportPageVisualizationDimension.md)
1159
1160
  - [UltracartClient::ReportPageVisualizationMetric](docs/ReportPageVisualizationMetric.md)
@@ -1352,6 +1353,8 @@ Not every change is committed to every SDK.
1352
1353
 
1353
1354
  | Version | Date | Comments |
1354
1355
  | --: | :-: | --- |
1356
+ | 4.0.149 | 04/19/2023 | internal development - data warehouse |
1357
+ | 4.0.148 | 04/19/2023 | internal dev - data warehouse |
1355
1358
  | 4.0.147 | 04/17/2023 | OrderPaymentTransaction - expose the transaction id |
1356
1359
  | 4.0.146 | 04/11/2023 | missing sezzle payment constant |
1357
1360
  | 4.0.145 | 04/10/2023 | data warehouse internal dev |
data/docs/ReportFilter.md CHANGED
@@ -4,8 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **config** | **String** | A JSON representation of the configuration for this visualization | [optional] |
7
8
  | **connections** | [**Array<ReportFilterConnection>**](ReportFilterConnection.md) | How this filter connects to the data sources and columns | [optional] |
8
9
  | **name** | **String** | | [optional] |
10
+ | **styles** | **String** | A JSON representation of the style configuration for this visualization | [optional] |
9
11
  | **timezone** | **String** | The timezone that the date range is querying on. | [optional] |
10
12
  | **type** | **String** | Type of filter | [optional] |
11
13
  | **uuid** | **String** | Unique UUID assigned to the filter. Assists when returning values that the filter can use. | [optional] |
@@ -17,8 +19,10 @@
17
19
  require 'ultracart_api'
18
20
 
19
21
  instance = UltracartClient::ReportFilter.new(
22
+ config: null,
20
23
  connections: null,
21
24
  name: null,
25
+ styles: null,
22
26
  timezone: null,
23
27
  type: null,
24
28
  uuid: null,
data/docs/ReportPage.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **filters** | [**Array<ReportPageFilter>**](ReportPageFilter.md) | | [optional] |
7
8
  | **height** | **Float** | Height of the report page in inches | [optional] |
8
9
  | **title** | **String** | | [optional] |
9
10
  | **visualizations** | [**Array<ReportPageVisualization>**](ReportPageVisualization.md) | Visualizations on the report page. | [optional] |
@@ -15,6 +16,7 @@
15
16
  require 'ultracart_api'
16
17
 
17
18
  instance = UltracartClient::ReportPage.new(
19
+ filters: null,
18
20
  height: null,
19
21
  title: null,
20
22
  visualizations: null,
@@ -0,0 +1,24 @@
1
+ # UltracartClient::ReportPageFilter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **config** | **String** | A JSON representation of the configuration for this visualization | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **styles** | **String** | A JSON representation of the style configuration for this visualization | [optional] |
10
+ | **uuid** | **String** | Unique UUID assigned to the filter. Assists when returning values that the filter can use. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ultracart_api'
16
+
17
+ instance = UltracartClient::ReportPageFilter.new(
18
+ config: null,
19
+ name: null,
20
+ styles: null,
21
+ uuid: null
22
+ )
23
+ ```
24
+
@@ -15,11 +15,17 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class ReportFilter
18
+ # A JSON representation of the configuration for this visualization
19
+ attr_accessor :config
20
+
18
21
  # How this filter connects to the data sources and columns
19
22
  attr_accessor :connections
20
23
 
21
24
  attr_accessor :name
22
25
 
26
+ # A JSON representation of the style configuration for this visualization
27
+ attr_accessor :styles
28
+
23
29
  # The timezone that the date range is querying on.
24
30
  attr_accessor :timezone
25
31
 
@@ -57,8 +63,10 @@ module UltracartClient
57
63
  # Attribute mapping from ruby-style variable name to JSON key.
58
64
  def self.attribute_map
59
65
  {
66
+ :'config' => :'config',
60
67
  :'connections' => :'connections',
61
68
  :'name' => :'name',
69
+ :'styles' => :'styles',
62
70
  :'timezone' => :'timezone',
63
71
  :'type' => :'type',
64
72
  :'uuid' => :'uuid',
@@ -74,8 +82,10 @@ module UltracartClient
74
82
  # Attribute type mapping.
75
83
  def self.openapi_types
76
84
  {
85
+ :'config' => :'String',
77
86
  :'connections' => :'Array<ReportFilterConnection>',
78
87
  :'name' => :'String',
88
+ :'styles' => :'String',
79
89
  :'timezone' => :'String',
80
90
  :'type' => :'String',
81
91
  :'uuid' => :'String',
@@ -104,6 +114,10 @@ module UltracartClient
104
114
  h[k.to_sym] = v
105
115
  }
106
116
 
117
+ if attributes.key?(:'config')
118
+ self.config = attributes[:'config']
119
+ end
120
+
107
121
  if attributes.key?(:'connections')
108
122
  if (value = attributes[:'connections']).is_a?(Array)
109
123
  self.connections = value
@@ -114,6 +128,10 @@ module UltracartClient
114
128
  self.name = attributes[:'name']
115
129
  end
116
130
 
131
+ if attributes.key?(:'styles')
132
+ self.styles = attributes[:'styles']
133
+ end
134
+
117
135
  if attributes.key?(:'timezone')
118
136
  self.timezone = attributes[:'timezone']
119
137
  end
@@ -163,8 +181,10 @@ module UltracartClient
163
181
  def ==(o)
164
182
  return true if self.equal?(o)
165
183
  self.class == o.class &&
184
+ config == o.config &&
166
185
  connections == o.connections &&
167
186
  name == o.name &&
187
+ styles == o.styles &&
168
188
  timezone == o.timezone &&
169
189
  type == o.type &&
170
190
  uuid == o.uuid &&
@@ -180,7 +200,7 @@ module UltracartClient
180
200
  # Calculates hash code according to all attributes.
181
201
  # @return [Integer] Hash code
182
202
  def hash
183
- [connections, name, timezone, type, uuid, values].hash
203
+ [config, connections, name, styles, timezone, type, uuid, values].hash
184
204
  end
185
205
 
186
206
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class ReportPage
18
+ attr_accessor :filters
19
+
18
20
  # Height of the report page in inches
19
21
  attr_accessor :height
20
22
 
@@ -29,6 +31,7 @@ module UltracartClient
29
31
  # Attribute mapping from ruby-style variable name to JSON key.
30
32
  def self.attribute_map
31
33
  {
34
+ :'filters' => :'filters',
32
35
  :'height' => :'height',
33
36
  :'title' => :'title',
34
37
  :'visualizations' => :'visualizations',
@@ -44,6 +47,7 @@ module UltracartClient
44
47
  # Attribute type mapping.
45
48
  def self.openapi_types
46
49
  {
50
+ :'filters' => :'Array<ReportPageFilter>',
47
51
  :'height' => :'Float',
48
52
  :'title' => :'String',
49
53
  :'visualizations' => :'Array<ReportPageVisualization>',
@@ -72,6 +76,12 @@ module UltracartClient
72
76
  h[k.to_sym] = v
73
77
  }
74
78
 
79
+ if attributes.key?(:'filters')
80
+ if (value = attributes[:'filters']).is_a?(Array)
81
+ self.filters = value
82
+ end
83
+ end
84
+
75
85
  if attributes.key?(:'height')
76
86
  self.height = attributes[:'height']
77
87
  end
@@ -109,6 +119,7 @@ module UltracartClient
109
119
  def ==(o)
110
120
  return true if self.equal?(o)
111
121
  self.class == o.class &&
122
+ filters == o.filters &&
112
123
  height == o.height &&
113
124
  title == o.title &&
114
125
  visualizations == o.visualizations &&
@@ -124,7 +135,7 @@ module UltracartClient
124
135
  # Calculates hash code according to all attributes.
125
136
  # @return [Integer] Hash code
126
137
  def hash
127
- [height, title, visualizations, width].hash
138
+ [filters, height, title, visualizations, width].hash
128
139
  end
129
140
 
130
141
  # Builds the object from hash
@@ -0,0 +1,249 @@
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 ReportPageFilter
18
+ # A JSON representation of the configuration for this visualization
19
+ attr_accessor :config
20
+
21
+ attr_accessor :name
22
+
23
+ # A JSON representation of the style configuration for this visualization
24
+ attr_accessor :styles
25
+
26
+ # Unique UUID assigned to the filter. Assists when returning values that the filter can use.
27
+ attr_accessor :uuid
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'config' => :'config',
33
+ :'name' => :'name',
34
+ :'styles' => :'styles',
35
+ :'uuid' => :'uuid'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'config' => :'String',
48
+ :'name' => :'String',
49
+ :'styles' => :'String',
50
+ :'uuid' => :'String'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ReportPageFilter` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!self.class.attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ReportPageFilter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'config')
76
+ self.config = attributes[:'config']
77
+ end
78
+
79
+ if attributes.key?(:'name')
80
+ self.name = attributes[:'name']
81
+ end
82
+
83
+ if attributes.key?(:'styles')
84
+ self.styles = attributes[:'styles']
85
+ end
86
+
87
+ if attributes.key?(:'uuid')
88
+ self.uuid = attributes[:'uuid']
89
+ end
90
+ end
91
+
92
+ # Show invalid properties with the reasons. Usually used together with valid?
93
+ # @return Array for valid properties with the reasons
94
+ def list_invalid_properties
95
+ invalid_properties = Array.new
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ config == o.config &&
111
+ name == o.name &&
112
+ styles == o.styles &&
113
+ uuid == o.uuid
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Integer] Hash code
124
+ def hash
125
+ [config, name, styles, uuid].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def self.build_from_hash(attributes)
132
+ new.build_from_hash(attributes)
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ attributes = attributes.transform_keys(&:to_sym)
141
+ self.class.openapi_types.each_pair do |key, type|
142
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
143
+ self.send("#{key}=", nil)
144
+ elsif type =~ /\AArray<(.*)>/i
145
+ # check to ensure the input is an array given that the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
148
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
149
+ end
150
+ elsif !attributes[self.class.attribute_map[key]].nil?
151
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
152
+ end
153
+ end
154
+
155
+ self
156
+ end
157
+
158
+ # Deserializes the data based on type
159
+ # @param string type Data type
160
+ # @param string value Value to be deserialized
161
+ # @return [Object] Deserialized data
162
+ def _deserialize(type, value)
163
+ case type.to_sym
164
+ when :Time
165
+ Time.parse(value)
166
+ when :Date
167
+ Date.parse(value)
168
+ when :String
169
+ value.to_s
170
+ when :Integer
171
+ value.to_i
172
+ when :Float
173
+ value.to_f
174
+ when :Boolean
175
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
176
+ true
177
+ else
178
+ false
179
+ end
180
+ when :Object
181
+ # generic object (usually a Hash), return directly
182
+ value
183
+ when /\AArray<(?<inner_type>.+)>\z/
184
+ inner_type = Regexp.last_match[:inner_type]
185
+ value.map { |v| _deserialize(inner_type, v) }
186
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
187
+ k_type = Regexp.last_match[:k_type]
188
+ v_type = Regexp.last_match[:v_type]
189
+ {}.tap do |hash|
190
+ value.each do |k, v|
191
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
192
+ end
193
+ end
194
+ else # model
195
+ # models (e.g. Pet) or oneOf
196
+ klass = UltracartClient.const_get(type)
197
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
198
+ end
199
+ end
200
+
201
+ # Returns the string representation of the object
202
+ # @return [String] String presentation of the object
203
+ def to_s
204
+ to_hash.to_s
205
+ end
206
+
207
+ # to_body is an alias to to_hash (backward compatibility)
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_body
210
+ to_hash
211
+ end
212
+
213
+ # Returns the object in the form of hash
214
+ # @return [Hash] Returns the object in the form of hash
215
+ def to_hash
216
+ hash = {}
217
+ self.class.attribute_map.each_pair do |attr, param|
218
+ value = self.send(attr)
219
+ if value.nil?
220
+ is_nullable = self.class.openapi_nullable.include?(attr)
221
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
222
+ end
223
+
224
+ hash[param] = _to_hash(value)
225
+ end
226
+ hash
227
+ end
228
+
229
+ # Outputs non-array value in the form of hash
230
+ # For object, use to_hash. Otherwise, just return the value
231
+ # @param [Object] value Any valid value
232
+ # @return [Hash] Returns the value in the form of hash
233
+ def _to_hash(value)
234
+ if value.is_a?(Array)
235
+ value.compact.map { |v| _to_hash(v) }
236
+ elsif value.is_a?(Hash)
237
+ {}.tap do |hash|
238
+ value.each { |k, v| hash[k] = _to_hash(v) }
239
+ end
240
+ elsif value.respond_to? :to_hash
241
+ value.to_hash
242
+ else
243
+ value
244
+ end
245
+ end
246
+
247
+ end
248
+
249
+ 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.147'
14
+ VERSION = '4.0.149'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -661,6 +661,7 @@ require 'ultracart_api/models/report_execute_queries_request'
661
661
  require 'ultracart_api/models/report_filter'
662
662
  require 'ultracart_api/models/report_filter_connection'
663
663
  require 'ultracart_api/models/report_page'
664
+ require 'ultracart_api/models/report_page_filter'
664
665
  require 'ultracart_api/models/report_page_visualization'
665
666
  require 'ultracart_api/models/report_page_visualization_dimension'
666
667
  require 'ultracart_api/models/report_page_visualization_metric'
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.147
4
+ version: 4.0.149
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-17 00:00:00.000000000 Z
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -720,6 +720,7 @@ files:
720
720
  - docs/ReportFilter.md
721
721
  - docs/ReportFilterConnection.md
722
722
  - docs/ReportPage.md
723
+ - docs/ReportPageFilter.md
723
724
  - docs/ReportPageVisualization.md
724
725
  - docs/ReportPageVisualizationDimension.md
725
726
  - docs/ReportPageVisualizationMetric.md
@@ -1519,6 +1520,7 @@ files:
1519
1520
  - lib/ultracart_api/models/report_filter.rb
1520
1521
  - lib/ultracart_api/models/report_filter_connection.rb
1521
1522
  - lib/ultracart_api/models/report_page.rb
1523
+ - lib/ultracart_api/models/report_page_filter.rb
1522
1524
  - lib/ultracart_api/models/report_page_visualization.rb
1523
1525
  - lib/ultracart_api/models/report_page_visualization_dimension.rb
1524
1526
  - lib/ultracart_api/models/report_page_visualization_metric.rb