ultracart_api 3.10.131 → 3.10.133
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/Report.md +1 -0
- data/docs/ReportDataSetColumn.md +6 -1
- data/docs/ReportDataSetRow.md +1 -1
- data/docs/ReportFilter.md +0 -2
- data/docs/ReportPage.md +1 -1
- data/docs/ReportPageFilter.md +11 -0
- data/lib/ultracart_api/models/report.rb +12 -1
- data/lib/ultracart_api/models/report_data_set_column.rb +52 -7
- data/lib/ultracart_api/models/report_data_set_row.rb +8 -8
- data/lib/ultracart_api/models/report_filter.rb +1 -21
- data/lib/ultracart_api/models/report_page.rb +1 -1
- data/lib/ultracart_api/models/report_page_filter.rb +214 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d39201fc7f2913fe9721722f07e3d762fe14209418f986d4e743dc6b59649f9d
|
4
|
+
data.tar.gz: 3b209dcfde855408c9a338e6c06794e70f4f1aa693efcf8e7ef00a7b28592639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64b81a9a1a3f1e29b5570ab06e156a92a0cc88e115108d97ce8a43e7763db194f5620183f584b93520220a74f100a0c8926a8b04805937251cfd185bf71a2f21
|
7
|
+
data.tar.gz: b6102f5cdcfca1e32f10a9eef7b91b49a841855ffa40d6df792a565009c305cf25727387cee1d5ce00a81b01add7a93d896c8b81698e497dc9ea7c9583882170
|
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.
|
10
|
+
- Package version: 3.10.133
|
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.
|
27
|
+
gem install ./ultracart_api-3.10.133.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.133.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.
|
35
|
+
gem 'ultracart_api', '~> 3.10.133'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1149,6 +1149,7 @@ Class | Method | HTTP request | Description
|
|
1149
1149
|
- [UltracartClient::ReportFilter](docs/ReportFilter.md)
|
1150
1150
|
- [UltracartClient::ReportFilterConnection](docs/ReportFilterConnection.md)
|
1151
1151
|
- [UltracartClient::ReportPage](docs/ReportPage.md)
|
1152
|
+
- [UltracartClient::ReportPageFilter](docs/ReportPageFilter.md)
|
1152
1153
|
- [UltracartClient::ReportPageVisualization](docs/ReportPageVisualization.md)
|
1153
1154
|
- [UltracartClient::ReportPageVisualizationDimension](docs/ReportPageVisualizationDimension.md)
|
1154
1155
|
- [UltracartClient::ReportPageVisualizationMetric](docs/ReportPageVisualizationMetric.md)
|
@@ -1344,6 +1345,8 @@ Not every change is committed to every SDK.
|
|
1344
1345
|
|
1345
1346
|
| Version | Date | Comments |
|
1346
1347
|
| --: | :-: | --- |
|
1348
|
+
| 3.10.133 | 04/21/2023 | internal development - data warehouse |
|
1349
|
+
| 3.10.132 | 04/19/2023 | internal development - data warehouse |
|
1347
1350
|
| 3.10.131 | 04/19/2023 | internal dev - data warehouse |
|
1348
1351
|
| 3.10.130 | 04/17/2023 | OrderPaymentTransaction - expose the transaction id |
|
1349
1352
|
| 3.10.129 | 04/11/2023 | missing sezzle payment constant |
|
data/docs/Report.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**data_sources** | [**Array<ReportDataSource>**](ReportDataSource.md) | | [optional]
|
8
8
|
**default_dataset_id** | **String** | | [optional]
|
9
9
|
**default_project_id** | **String** | | [optional]
|
10
|
+
**filters** | [**Array<ReportFilter>**](ReportFilter.md) | | [optional]
|
10
11
|
**merchant_id** | **String** | | [optional]
|
11
12
|
**name** | **String** | | [optional]
|
12
13
|
**pages** | [**Array<ReportPage>**](ReportPage.md) | | [optional]
|
data/docs/ReportDataSetColumn.md
CHANGED
@@ -3,6 +3,11 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
6
|
+
**_in** | **BOOLEAN** | | [optional]
|
7
|
+
**n** | **String** | | [optional]
|
8
|
+
**vd** | **String** | | [optional]
|
9
|
+
**vdt** | **String** | | [optional]
|
10
|
+
**vn** | **Float** | | [optional]
|
11
|
+
**vs** | **String** | | [optional]
|
7
12
|
|
8
13
|
|
data/docs/ReportDataSetRow.md
CHANGED
@@ -3,6 +3,6 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
6
|
+
**c** | [**Array<ReportDataSetColumn>**](ReportDataSetColumn.md) | | [optional]
|
7
7
|
|
8
8
|
|
data/docs/ReportFilter.md
CHANGED
@@ -3,10 +3,8 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**config** | **String** | A JSON representation of the configuration for this visualization | [optional]
|
7
6
|
**connections** | [**Array<ReportFilterConnection>**](ReportFilterConnection.md) | How this filter connects to the data sources and columns | [optional]
|
8
7
|
**name** | **String** | | [optional]
|
9
|
-
**styles** | **String** | A JSON representation of the style configuration for this visualization | [optional]
|
10
8
|
**timezone** | **String** | The timezone that the date range is querying on. | [optional]
|
11
9
|
**type** | **String** | Type of filter | [optional]
|
12
10
|
**uuid** | **String** | Unique UUID assigned to the filter. Assists when returning values that the filter can use. | [optional]
|
data/docs/ReportPage.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**filters** | [**Array<
|
6
|
+
**filters** | [**Array<ReportPageFilter>**](ReportPageFilter.md) | | [optional]
|
7
7
|
**height** | **Float** | Height of the report page in inches | [optional]
|
8
8
|
**title** | **String** | | [optional]
|
9
9
|
**visualizations** | [**Array<ReportPageVisualization>**](ReportPageVisualization.md) | Visualizations on the report page. | [optional]
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# UltracartClient::ReportPageFilter
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**config** | **String** | A JSON representation of the configuration for this visualization | [optional]
|
7
|
+
**name** | **String** | | [optional]
|
8
|
+
**styles** | **String** | A JSON representation of the style configuration for this visualization | [optional]
|
9
|
+
**uuid** | **String** | Unique UUID assigned to the filter. Assists when returning values that the filter can use. | [optional]
|
10
|
+
|
11
|
+
|
@@ -22,6 +22,8 @@ module UltracartClient
|
|
22
22
|
|
23
23
|
attr_accessor :default_project_id
|
24
24
|
|
25
|
+
attr_accessor :filters
|
26
|
+
|
25
27
|
attr_accessor :merchant_id
|
26
28
|
|
27
29
|
attr_accessor :name
|
@@ -63,6 +65,7 @@ module UltracartClient
|
|
63
65
|
:'data_sources' => :'data_sources',
|
64
66
|
:'default_dataset_id' => :'default_dataset_id',
|
65
67
|
:'default_project_id' => :'default_project_id',
|
68
|
+
:'filters' => :'filters',
|
66
69
|
:'merchant_id' => :'merchant_id',
|
67
70
|
:'name' => :'name',
|
68
71
|
:'pages' => :'pages',
|
@@ -78,6 +81,7 @@ module UltracartClient
|
|
78
81
|
:'data_sources' => :'Array<ReportDataSource>',
|
79
82
|
:'default_dataset_id' => :'String',
|
80
83
|
:'default_project_id' => :'String',
|
84
|
+
:'filters' => :'Array<ReportFilter>',
|
81
85
|
:'merchant_id' => :'String',
|
82
86
|
:'name' => :'String',
|
83
87
|
:'pages' => :'Array<ReportPage>',
|
@@ -112,6 +116,12 @@ module UltracartClient
|
|
112
116
|
self.default_project_id = attributes[:'default_project_id']
|
113
117
|
end
|
114
118
|
|
119
|
+
if attributes.has_key?(:'filters')
|
120
|
+
if (value = attributes[:'filters']).is_a?(Array)
|
121
|
+
self.filters = value
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
115
125
|
if attributes.has_key?(:'merchant_id')
|
116
126
|
self.merchant_id = attributes[:'merchant_id']
|
117
127
|
end
|
@@ -169,6 +179,7 @@ module UltracartClient
|
|
169
179
|
data_sources == o.data_sources &&
|
170
180
|
default_dataset_id == o.default_dataset_id &&
|
171
181
|
default_project_id == o.default_project_id &&
|
182
|
+
filters == o.filters &&
|
172
183
|
merchant_id == o.merchant_id &&
|
173
184
|
name == o.name &&
|
174
185
|
pages == o.pages &&
|
@@ -185,7 +196,7 @@ module UltracartClient
|
|
185
196
|
# Calculates hash code according to all attributes.
|
186
197
|
# @return [Fixnum] Hash code
|
187
198
|
def hash
|
188
|
-
[active, data_sources, default_dataset_id, default_project_id, merchant_id, name, pages, report_oid, security_level].hash
|
199
|
+
[active, data_sources, default_dataset_id, default_project_id, filters, merchant_id, name, pages, report_oid, security_level].hash
|
189
200
|
end
|
190
201
|
|
191
202
|
# Builds the object from hash
|
@@ -14,19 +14,39 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ReportDataSetColumn
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :_in
|
18
|
+
|
19
|
+
attr_accessor :n
|
20
|
+
|
21
|
+
attr_accessor :vd
|
22
|
+
|
23
|
+
attr_accessor :vdt
|
24
|
+
|
25
|
+
attr_accessor :vn
|
26
|
+
|
27
|
+
attr_accessor :vs
|
18
28
|
|
19
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
30
|
def self.attribute_map
|
21
31
|
{
|
22
|
-
:'
|
32
|
+
:'_in' => :'in',
|
33
|
+
:'n' => :'n',
|
34
|
+
:'vd' => :'vd',
|
35
|
+
:'vdt' => :'vdt',
|
36
|
+
:'vn' => :'vn',
|
37
|
+
:'vs' => :'vs'
|
23
38
|
}
|
24
39
|
end
|
25
40
|
|
26
41
|
# Attribute type mapping.
|
27
42
|
def self.swagger_types
|
28
43
|
{
|
29
|
-
:'
|
44
|
+
:'_in' => :'BOOLEAN',
|
45
|
+
:'n' => :'String',
|
46
|
+
:'vd' => :'String',
|
47
|
+
:'vdt' => :'String',
|
48
|
+
:'vn' => :'Float',
|
49
|
+
:'vs' => :'String'
|
30
50
|
}
|
31
51
|
end
|
32
52
|
|
@@ -38,8 +58,28 @@ module UltracartClient
|
|
38
58
|
# convert string to symbol for hash key
|
39
59
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
60
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
self.
|
61
|
+
if attributes.has_key?(:'in')
|
62
|
+
self._in = attributes[:'in']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'n')
|
66
|
+
self.n = attributes[:'n']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'vd')
|
70
|
+
self.vd = attributes[:'vd']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'vdt')
|
74
|
+
self.vdt = attributes[:'vdt']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'vn')
|
78
|
+
self.vn = attributes[:'vn']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'vs')
|
82
|
+
self.vs = attributes[:'vs']
|
43
83
|
end
|
44
84
|
end
|
45
85
|
|
@@ -61,7 +101,12 @@ module UltracartClient
|
|
61
101
|
def ==(o)
|
62
102
|
return true if self.equal?(o)
|
63
103
|
self.class == o.class &&
|
64
|
-
|
104
|
+
_in == o._in &&
|
105
|
+
n == o.n &&
|
106
|
+
vd == o.vd &&
|
107
|
+
vdt == o.vdt &&
|
108
|
+
vn == o.vn &&
|
109
|
+
vs == o.vs
|
65
110
|
end
|
66
111
|
|
67
112
|
# @see the `==` method
|
@@ -73,7 +118,7 @@ module UltracartClient
|
|
73
118
|
# Calculates hash code according to all attributes.
|
74
119
|
# @return [Fixnum] Hash code
|
75
120
|
def hash
|
76
|
-
[
|
121
|
+
[_in, n, vd, vdt, vn, vs].hash
|
77
122
|
end
|
78
123
|
|
79
124
|
# Builds the object from hash
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ReportDataSetRow
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :c
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
:'
|
22
|
+
:'c' => :'c'
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.swagger_types
|
28
28
|
{
|
29
|
-
:'
|
29
|
+
:'c' => :'Array<ReportDataSetColumn>'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,9 +38,9 @@ module UltracartClient
|
|
38
38
|
# convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
40
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
if (value = attributes[:'
|
43
|
-
self.
|
41
|
+
if attributes.has_key?(:'c')
|
42
|
+
if (value = attributes[:'c']).is_a?(Array)
|
43
|
+
self.c = value
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -63,7 +63,7 @@ module UltracartClient
|
|
63
63
|
def ==(o)
|
64
64
|
return true if self.equal?(o)
|
65
65
|
self.class == o.class &&
|
66
|
-
|
66
|
+
c == o.c
|
67
67
|
end
|
68
68
|
|
69
69
|
# @see the `==` method
|
@@ -75,7 +75,7 @@ module UltracartClient
|
|
75
75
|
# Calculates hash code according to all attributes.
|
76
76
|
# @return [Fixnum] Hash code
|
77
77
|
def hash
|
78
|
-
[
|
78
|
+
[c].hash
|
79
79
|
end
|
80
80
|
|
81
81
|
# Builds the object from hash
|
@@ -14,17 +14,11 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class ReportFilter
|
17
|
-
# A JSON representation of the configuration for this visualization
|
18
|
-
attr_accessor :config
|
19
|
-
|
20
17
|
# How this filter connects to the data sources and columns
|
21
18
|
attr_accessor :connections
|
22
19
|
|
23
20
|
attr_accessor :name
|
24
21
|
|
25
|
-
# A JSON representation of the style configuration for this visualization
|
26
|
-
attr_accessor :styles
|
27
|
-
|
28
22
|
# The timezone that the date range is querying on.
|
29
23
|
attr_accessor :timezone
|
30
24
|
|
@@ -62,10 +56,8 @@ module UltracartClient
|
|
62
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
57
|
def self.attribute_map
|
64
58
|
{
|
65
|
-
:'config' => :'config',
|
66
59
|
:'connections' => :'connections',
|
67
60
|
:'name' => :'name',
|
68
|
-
:'styles' => :'styles',
|
69
61
|
:'timezone' => :'timezone',
|
70
62
|
:'type' => :'type',
|
71
63
|
:'uuid' => :'uuid',
|
@@ -76,10 +68,8 @@ module UltracartClient
|
|
76
68
|
# Attribute type mapping.
|
77
69
|
def self.swagger_types
|
78
70
|
{
|
79
|
-
:'config' => :'String',
|
80
71
|
:'connections' => :'Array<ReportFilterConnection>',
|
81
72
|
:'name' => :'String',
|
82
|
-
:'styles' => :'String',
|
83
73
|
:'timezone' => :'String',
|
84
74
|
:'type' => :'String',
|
85
75
|
:'uuid' => :'String',
|
@@ -95,10 +85,6 @@ module UltracartClient
|
|
95
85
|
# convert string to symbol for hash key
|
96
86
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
97
87
|
|
98
|
-
if attributes.has_key?(:'config')
|
99
|
-
self.config = attributes[:'config']
|
100
|
-
end
|
101
|
-
|
102
88
|
if attributes.has_key?(:'connections')
|
103
89
|
if (value = attributes[:'connections']).is_a?(Array)
|
104
90
|
self.connections = value
|
@@ -109,10 +95,6 @@ module UltracartClient
|
|
109
95
|
self.name = attributes[:'name']
|
110
96
|
end
|
111
97
|
|
112
|
-
if attributes.has_key?(:'styles')
|
113
|
-
self.styles = attributes[:'styles']
|
114
|
-
end
|
115
|
-
|
116
98
|
if attributes.has_key?(:'timezone')
|
117
99
|
self.timezone = attributes[:'timezone']
|
118
100
|
end
|
@@ -162,10 +144,8 @@ module UltracartClient
|
|
162
144
|
def ==(o)
|
163
145
|
return true if self.equal?(o)
|
164
146
|
self.class == o.class &&
|
165
|
-
config == o.config &&
|
166
147
|
connections == o.connections &&
|
167
148
|
name == o.name &&
|
168
|
-
styles == o.styles &&
|
169
149
|
timezone == o.timezone &&
|
170
150
|
type == o.type &&
|
171
151
|
uuid == o.uuid &&
|
@@ -181,7 +161,7 @@ module UltracartClient
|
|
181
161
|
# Calculates hash code according to all attributes.
|
182
162
|
# @return [Fixnum] Hash code
|
183
163
|
def hash
|
184
|
-
[
|
164
|
+
[connections, name, timezone, type, uuid, values].hash
|
185
165
|
end
|
186
166
|
|
187
167
|
# Builds the object from hash
|
@@ -41,7 +41,7 @@ module UltracartClient
|
|
41
41
|
# Attribute type mapping.
|
42
42
|
def self.swagger_types
|
43
43
|
{
|
44
|
-
:'filters' => :'Array<
|
44
|
+
:'filters' => :'Array<ReportPageFilter>',
|
45
45
|
:'height' => :'Float',
|
46
46
|
:'title' => :'String',
|
47
47
|
:'visualizations' => :'Array<ReportPageVisualization>',
|
@@ -0,0 +1,214 @@
|
|
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 ReportPageFilter
|
17
|
+
# A JSON representation of the configuration for this visualization
|
18
|
+
attr_accessor :config
|
19
|
+
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# A JSON representation of the style configuration for this visualization
|
23
|
+
attr_accessor :styles
|
24
|
+
|
25
|
+
# Unique UUID assigned to the filter. Assists when returning values that the filter can use.
|
26
|
+
attr_accessor :uuid
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'config' => :'config',
|
32
|
+
:'name' => :'name',
|
33
|
+
:'styles' => :'styles',
|
34
|
+
:'uuid' => :'uuid'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
{
|
41
|
+
:'config' => :'String',
|
42
|
+
:'name' => :'String',
|
43
|
+
:'styles' => :'String',
|
44
|
+
:'uuid' => :'String'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
50
|
+
def initialize(attributes = {})
|
51
|
+
return unless attributes.is_a?(Hash)
|
52
|
+
|
53
|
+
# convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
55
|
+
|
56
|
+
if attributes.has_key?(:'config')
|
57
|
+
self.config = attributes[:'config']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'name')
|
61
|
+
self.name = attributes[:'name']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.has_key?(:'styles')
|
65
|
+
self.styles = attributes[:'styles']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'uuid')
|
69
|
+
self.uuid = attributes[:'uuid']
|
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
|
+
config == o.config &&
|
92
|
+
name == o.name &&
|
93
|
+
styles == o.styles &&
|
94
|
+
uuid == o.uuid
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Fixnum] Hash code
|
105
|
+
def hash
|
106
|
+
[config, name, styles, uuid].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
self.class.swagger_types.each_pair do |key, type|
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
temp_model = UltracartClient.const_get(type).new
|
167
|
+
temp_model.build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
next if value.nil?
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map { |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
end
|
214
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
@@ -662,6 +662,7 @@ require 'ultracart_api/models/report_execute_queries_request'
|
|
662
662
|
require 'ultracart_api/models/report_filter'
|
663
663
|
require 'ultracart_api/models/report_filter_connection'
|
664
664
|
require 'ultracart_api/models/report_page'
|
665
|
+
require 'ultracart_api/models/report_page_filter'
|
665
666
|
require 'ultracart_api/models/report_page_visualization'
|
666
667
|
require 'ultracart_api/models/report_page_visualization_dimension'
|
667
668
|
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: 3.10.
|
4
|
+
version: 3.10.133
|
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-
|
11
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -881,6 +881,7 @@ files:
|
|
881
881
|
- docs/ReportFilter.md
|
882
882
|
- docs/ReportFilterConnection.md
|
883
883
|
- docs/ReportPage.md
|
884
|
+
- docs/ReportPageFilter.md
|
884
885
|
- docs/ReportPageVisualization.md
|
885
886
|
- docs/ReportPageVisualizationDimension.md
|
886
887
|
- docs/ReportPageVisualizationMetric.md
|
@@ -1681,6 +1682,7 @@ files:
|
|
1681
1682
|
- lib/ultracart_api/models/report_filter.rb
|
1682
1683
|
- lib/ultracart_api/models/report_filter_connection.rb
|
1683
1684
|
- lib/ultracart_api/models/report_page.rb
|
1685
|
+
- lib/ultracart_api/models/report_page_filter.rb
|
1684
1686
|
- lib/ultracart_api/models/report_page_visualization.rb
|
1685
1687
|
- lib/ultracart_api/models/report_page_visualization_dimension.rb
|
1686
1688
|
- lib/ultracart_api/models/report_page_visualization_metric.rb
|