ultracart_api 4.0.148 → 4.0.149
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/Report.md +2 -0
- data/docs/ReportPage.md +1 -1
- data/docs/ReportPageFilter.md +24 -0
- data/lib/ultracart_api/models/report.rb +12 -1
- data/lib/ultracart_api/models/report_page.rb +1 -1
- data/lib/ultracart_api/models/report_page_filter.rb +249 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc5e38856439cb96e1ee12791f82400e36e0854564f37afbe9e567a5e8eeb71c
|
4
|
+
data.tar.gz: 844946940c6e58818beaeae31fced578ded7afc773492b2af4bcf8628ff3d6a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
27
|
+
gem install ./ultracart_api-4.0.149.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
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.
|
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,7 @@ 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 |
|
1355
1357
|
| 4.0.148 | 04/19/2023 | internal dev - data warehouse |
|
1356
1358
|
| 4.0.147 | 04/17/2023 | OrderPaymentTransaction - expose the transaction id |
|
1357
1359
|
| 4.0.146 | 04/11/2023 | missing sezzle payment constant |
|
data/docs/Report.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **data_sources** | [**Array<ReportDataSource>**](ReportDataSource.md) | | [optional] |
|
9
9
|
| **default_dataset_id** | **String** | | [optional] |
|
10
10
|
| **default_project_id** | **String** | | [optional] |
|
11
|
+
| **filters** | [**Array<ReportFilter>**](ReportFilter.md) | | [optional] |
|
11
12
|
| **merchant_id** | **String** | | [optional] |
|
12
13
|
| **name** | **String** | | [optional] |
|
13
14
|
| **pages** | [**Array<ReportPage>**](ReportPage.md) | | [optional] |
|
@@ -24,6 +25,7 @@ instance = UltracartClient::Report.new(
|
|
24
25
|
data_sources: null,
|
25
26
|
default_dataset_id: null,
|
26
27
|
default_project_id: null,
|
28
|
+
filters: null,
|
27
29
|
merchant_id: null,
|
28
30
|
name: null,
|
29
31
|
pages: null,
|
data/docs/ReportPage.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **filters** | [**Array<
|
7
|
+
| **filters** | [**Array<ReportPageFilter>**](ReportPageFilter.md) | | [optional] |
|
8
8
|
| **height** | **Float** | Height of the report page in inches | [optional] |
|
9
9
|
| **title** | **String** | | [optional] |
|
10
10
|
| **visualizations** | [**Array<ReportPageVisualization>**](ReportPageVisualization.md) | Visualizations on the report page. | [optional] |
|
@@ -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
|
+
|
@@ -23,6 +23,8 @@ module UltracartClient
|
|
23
23
|
|
24
24
|
attr_accessor :default_project_id
|
25
25
|
|
26
|
+
attr_accessor :filters
|
27
|
+
|
26
28
|
attr_accessor :merchant_id
|
27
29
|
|
28
30
|
attr_accessor :name
|
@@ -64,6 +66,7 @@ module UltracartClient
|
|
64
66
|
:'data_sources' => :'data_sources',
|
65
67
|
:'default_dataset_id' => :'default_dataset_id',
|
66
68
|
:'default_project_id' => :'default_project_id',
|
69
|
+
:'filters' => :'filters',
|
67
70
|
:'merchant_id' => :'merchant_id',
|
68
71
|
:'name' => :'name',
|
69
72
|
:'pages' => :'pages',
|
@@ -84,6 +87,7 @@ module UltracartClient
|
|
84
87
|
:'data_sources' => :'Array<ReportDataSource>',
|
85
88
|
:'default_dataset_id' => :'String',
|
86
89
|
:'default_project_id' => :'String',
|
90
|
+
:'filters' => :'Array<ReportFilter>',
|
87
91
|
:'merchant_id' => :'String',
|
88
92
|
:'name' => :'String',
|
89
93
|
:'pages' => :'Array<ReportPage>',
|
@@ -131,6 +135,12 @@ module UltracartClient
|
|
131
135
|
self.default_project_id = attributes[:'default_project_id']
|
132
136
|
end
|
133
137
|
|
138
|
+
if attributes.key?(:'filters')
|
139
|
+
if (value = attributes[:'filters']).is_a?(Array)
|
140
|
+
self.filters = value
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
134
144
|
if attributes.key?(:'merchant_id')
|
135
145
|
self.merchant_id = attributes[:'merchant_id']
|
136
146
|
end
|
@@ -188,6 +198,7 @@ module UltracartClient
|
|
188
198
|
data_sources == o.data_sources &&
|
189
199
|
default_dataset_id == o.default_dataset_id &&
|
190
200
|
default_project_id == o.default_project_id &&
|
201
|
+
filters == o.filters &&
|
191
202
|
merchant_id == o.merchant_id &&
|
192
203
|
name == o.name &&
|
193
204
|
pages == o.pages &&
|
@@ -204,7 +215,7 @@ module UltracartClient
|
|
204
215
|
# Calculates hash code according to all attributes.
|
205
216
|
# @return [Integer] Hash code
|
206
217
|
def hash
|
207
|
-
[active, data_sources, default_dataset_id, default_project_id, merchant_id, name, pages, report_oid, security_level].hash
|
218
|
+
[active, data_sources, default_dataset_id, default_project_id, filters, merchant_id, name, pages, report_oid, security_level].hash
|
208
219
|
end
|
209
220
|
|
210
221
|
# Builds the object from hash
|
@@ -47,7 +47,7 @@ module UltracartClient
|
|
47
47
|
# Attribute type mapping.
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
|
-
:'filters' => :'Array<
|
50
|
+
:'filters' => :'Array<ReportPageFilter>',
|
51
51
|
:'height' => :'Float',
|
52
52
|
:'title' => :'String',
|
53
53
|
:'visualizations' => :'Array<ReportPageVisualization>',
|
@@ -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
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.149
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
@@ -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
|