ultracart_api 3.10.131 → 3.10.132

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: 32c150fcfc971194e86d7e040997c40c08c2c13af68d652986556a76c9619ea3
4
- data.tar.gz: 8b9a71dc09831290d85dab5b67f6db535e2b598fab2a94c702d2df76f2958579
3
+ metadata.gz: f24a4f3857f9c7623b1a5f70444e2905a63a79ed8723db08e2d9e74d60786330
4
+ data.tar.gz: 40b2db60683dff3f22dedb8c654e1f0685d46016b22bfccd05bca301e9467f50
5
5
  SHA512:
6
- metadata.gz: 7db15c81d18189cd8f48f95f9154a30f40c69577fcfdf651f19bb20b8bd17ddd4082573e668636b81aecea171ec6e5c68373d824dc804833d733a4919b5a95ed
7
- data.tar.gz: aad2d3eeb98f6fee89088face79bcedb7119d49d8b3d559cb6564aae6dcad756896b38ac522e545841dedc67b3cf8346de4eb374f9d1aecef72e98f65949ce77
6
+ metadata.gz: 3af3c0399aa3bc358f54c9e4243310401704905856eb4b0892291ca7ee18a976253207e00c76e0c40c08850b72e25d277cebf333f1ceb5bdc6cbcf5a5fc1cfdd
7
+ data.tar.gz: fa4962c098ad02f90a37e7176f6914179eaae38e4dd31e953d0422b432d5a764fb0c431a045a3934196f2a70daf2a3c4868199e47b8b2d69f2389c41391ea09a
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.131
10
+ - Package version: 3.10.132
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.131.gem
27
+ gem install ./ultracart_api-3.10.132.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.131.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.132.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.131'
35
+ gem 'ultracart_api', '~> 3.10.132'
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,7 @@ Not every change is committed to every SDK.
1344
1345
 
1345
1346
  | Version | Date | Comments |
1346
1347
  | --: | :-: | --- |
1348
+ | 3.10.132 | 04/19/2023 | internal development - data warehouse |
1347
1349
  | 3.10.131 | 04/19/2023 | internal dev - data warehouse |
1348
1350
  | 3.10.130 | 04/17/2023 | OrderPaymentTransaction - expose the transaction id |
1349
1351
  | 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/ReportPage.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **filters** | [**Array<ReportFilter>**](ReportFilter.md) | | [optional]
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
@@ -41,7 +41,7 @@ module UltracartClient
41
41
  # Attribute type mapping.
42
42
  def self.swagger_types
43
43
  {
44
- :'filters' => :'Array<ReportFilter>',
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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.131'
14
+ VERSION = '3.10.132'
15
15
  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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.131
4
+ version: 3.10.132
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
@@ -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