ultracart_api 3.10.126 → 3.10.128
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -5
- data/docs/AccountsReceivableRetryConfig.md +1 -0
- data/docs/AccountsReceivableRetryTransactionReject.md +9 -0
- data/docs/DatawarehouseApi.md +51 -0
- data/docs/Experiment.md +5 -0
- data/docs/ReportDryRunQueriesRequest.md +13 -0
- data/docs/ReportDryRunQueriesResponse.md +8 -0
- data/docs/ReportDryRunQueryResult.md +9 -0
- data/docs/ReportWebsocketEvent.md +1 -1
- data/lib/ultracart_api/api/datawarehouse_api.rb +55 -0
- data/lib/ultracart_api/models/accounts_receivable_retry_config.rb +13 -1
- data/lib/ultracart_api/models/accounts_receivable_retry_transaction_reject.rb +195 -0
- data/lib/ultracart_api/models/experiment.rb +63 -1
- data/lib/ultracart_api/models/report_dry_run_queries_request.rb +231 -0
- data/lib/ultracart_api/models/report_dry_run_queries_response.rb +186 -0
- data/lib/ultracart_api/models/{report_data_set_summary.rb → report_dry_run_query_result.rb} +8 -96
- data/lib/ultracart_api/models/report_websocket_event.rb +1 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -1
- metadata +10 -4
- data/docs/ReportDataSetSummary.md +0 -14
@@ -0,0 +1,231 @@
|
|
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 ReportDryRunQueriesRequest
|
17
|
+
attr_accessor :connection_id
|
18
|
+
|
19
|
+
attr_accessor :default_dataset_id
|
20
|
+
|
21
|
+
attr_accessor :default_project_id
|
22
|
+
|
23
|
+
attr_accessor :merchant_id
|
24
|
+
|
25
|
+
attr_accessor :queries
|
26
|
+
|
27
|
+
attr_accessor :security_level
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'connection_id' => :'connection_id',
|
33
|
+
:'default_dataset_id' => :'default_dataset_id',
|
34
|
+
:'default_project_id' => :'default_project_id',
|
35
|
+
:'merchant_id' => :'merchant_id',
|
36
|
+
:'queries' => :'queries',
|
37
|
+
:'security_level' => :'security_level'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.swagger_types
|
43
|
+
{
|
44
|
+
:'connection_id' => :'String',
|
45
|
+
:'default_dataset_id' => :'String',
|
46
|
+
:'default_project_id' => :'String',
|
47
|
+
:'merchant_id' => :'String',
|
48
|
+
:'queries' => :'Array<ReportDataSetQuery>',
|
49
|
+
:'security_level' => :'String'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
return unless attributes.is_a?(Hash)
|
57
|
+
|
58
|
+
# convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
60
|
+
|
61
|
+
if attributes.has_key?(:'connection_id')
|
62
|
+
self.connection_id = attributes[:'connection_id']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'default_dataset_id')
|
66
|
+
self.default_dataset_id = attributes[:'default_dataset_id']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'default_project_id')
|
70
|
+
self.default_project_id = attributes[:'default_project_id']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'merchant_id')
|
74
|
+
self.merchant_id = attributes[:'merchant_id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'queries')
|
78
|
+
if (value = attributes[:'queries']).is_a?(Array)
|
79
|
+
self.queries = value
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'security_level')
|
84
|
+
self.security_level = attributes[:'security_level']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
+
# @return Array for valid properties with the reasons
|
90
|
+
def list_invalid_properties
|
91
|
+
invalid_properties = Array.new
|
92
|
+
invalid_properties
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
def valid?
|
98
|
+
true
|
99
|
+
end
|
100
|
+
|
101
|
+
# Checks equality by comparing each attribute.
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def ==(o)
|
104
|
+
return true if self.equal?(o)
|
105
|
+
self.class == o.class &&
|
106
|
+
connection_id == o.connection_id &&
|
107
|
+
default_dataset_id == o.default_dataset_id &&
|
108
|
+
default_project_id == o.default_project_id &&
|
109
|
+
merchant_id == o.merchant_id &&
|
110
|
+
queries == o.queries &&
|
111
|
+
security_level == o.security_level
|
112
|
+
end
|
113
|
+
|
114
|
+
# @see the `==` method
|
115
|
+
# @param [Object] Object to be compared
|
116
|
+
def eql?(o)
|
117
|
+
self == o
|
118
|
+
end
|
119
|
+
|
120
|
+
# Calculates hash code according to all attributes.
|
121
|
+
# @return [Fixnum] Hash code
|
122
|
+
def hash
|
123
|
+
[connection_id, default_dataset_id, default_project_id, merchant_id, queries, security_level].hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Builds the object from hash
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
128
|
+
# @return [Object] Returns the model itself
|
129
|
+
def build_from_hash(attributes)
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
131
|
+
self.class.swagger_types.each_pair do |key, type|
|
132
|
+
if type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the attribute
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
137
|
+
end
|
138
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
139
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
140
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
141
|
+
end
|
142
|
+
|
143
|
+
self
|
144
|
+
end
|
145
|
+
|
146
|
+
# Deserializes the data based on type
|
147
|
+
# @param string type Data type
|
148
|
+
# @param string value Value to be deserialized
|
149
|
+
# @return [Object] Deserialized data
|
150
|
+
def _deserialize(type, value)
|
151
|
+
case type.to_sym
|
152
|
+
when :DateTime
|
153
|
+
DateTime.parse(value)
|
154
|
+
when :Date
|
155
|
+
Date.parse(value)
|
156
|
+
when :String
|
157
|
+
value.to_s
|
158
|
+
when :Integer
|
159
|
+
value.to_i
|
160
|
+
when :Float
|
161
|
+
value.to_f
|
162
|
+
when :BOOLEAN
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
164
|
+
true
|
165
|
+
else
|
166
|
+
false
|
167
|
+
end
|
168
|
+
when :Object
|
169
|
+
# generic object (usually a Hash), return directly
|
170
|
+
value
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each do |k, v|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
else # model
|
183
|
+
temp_model = UltracartClient.const_get(type).new
|
184
|
+
temp_model.build_from_hash(value)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# Returns the string representation of the object
|
189
|
+
# @return [String] String presentation of the object
|
190
|
+
def to_s
|
191
|
+
to_hash.to_s
|
192
|
+
end
|
193
|
+
|
194
|
+
# to_body is an alias to to_hash (backward compatibility)
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
196
|
+
def to_body
|
197
|
+
to_hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Returns the object in the form of hash
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
202
|
+
def to_hash
|
203
|
+
hash = {}
|
204
|
+
self.class.attribute_map.each_pair do |attr, param|
|
205
|
+
value = self.send(attr)
|
206
|
+
next if value.nil?
|
207
|
+
hash[param] = _to_hash(value)
|
208
|
+
end
|
209
|
+
hash
|
210
|
+
end
|
211
|
+
|
212
|
+
# Outputs non-array value in the form of hash
|
213
|
+
# For object, use to_hash. Otherwise, just return the value
|
214
|
+
# @param [Object] value Any valid value
|
215
|
+
# @return [Hash] Returns the value in the form of hash
|
216
|
+
def _to_hash(value)
|
217
|
+
if value.is_a?(Array)
|
218
|
+
value.compact.map { |v| _to_hash(v) }
|
219
|
+
elsif value.is_a?(Hash)
|
220
|
+
{}.tap do |hash|
|
221
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
222
|
+
end
|
223
|
+
elsif value.respond_to? :to_hash
|
224
|
+
value.to_hash
|
225
|
+
else
|
226
|
+
value
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
end
|
231
|
+
end
|
@@ -0,0 +1,186 @@
|
|
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 ReportDryRunQueriesResponse
|
17
|
+
attr_accessor :dry_run_query_results
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'dry_run_query_results' => :'dry_run_query_results'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.swagger_types
|
28
|
+
{
|
29
|
+
:'dry_run_query_results' => :'Array<ReportDryRunQueryResult>'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return unless attributes.is_a?(Hash)
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
|
+
|
41
|
+
if attributes.has_key?(:'dry_run_query_results')
|
42
|
+
if (value = attributes[:'dry_run_query_results']).is_a?(Array)
|
43
|
+
self.dry_run_query_results = value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
49
|
+
# @return Array for valid properties with the reasons
|
50
|
+
def list_invalid_properties
|
51
|
+
invalid_properties = Array.new
|
52
|
+
invalid_properties
|
53
|
+
end
|
54
|
+
|
55
|
+
# Check to see if the all the properties in the model are valid
|
56
|
+
# @return true if the model is valid
|
57
|
+
def valid?
|
58
|
+
true
|
59
|
+
end
|
60
|
+
|
61
|
+
# Checks equality by comparing each attribute.
|
62
|
+
# @param [Object] Object to be compared
|
63
|
+
def ==(o)
|
64
|
+
return true if self.equal?(o)
|
65
|
+
self.class == o.class &&
|
66
|
+
dry_run_query_results == o.dry_run_query_results
|
67
|
+
end
|
68
|
+
|
69
|
+
# @see the `==` method
|
70
|
+
# @param [Object] Object to be compared
|
71
|
+
def eql?(o)
|
72
|
+
self == o
|
73
|
+
end
|
74
|
+
|
75
|
+
# Calculates hash code according to all attributes.
|
76
|
+
# @return [Fixnum] Hash code
|
77
|
+
def hash
|
78
|
+
[dry_run_query_results].hash
|
79
|
+
end
|
80
|
+
|
81
|
+
# Builds the object from hash
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
83
|
+
# @return [Object] Returns the model itself
|
84
|
+
def build_from_hash(attributes)
|
85
|
+
return nil unless attributes.is_a?(Hash)
|
86
|
+
self.class.swagger_types.each_pair do |key, type|
|
87
|
+
if type =~ /\AArray<(.*)>/i
|
88
|
+
# check to ensure the input is an array given that the attribute
|
89
|
+
# is documented as an array but the input is not
|
90
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
92
|
+
end
|
93
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
94
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
95
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
96
|
+
end
|
97
|
+
|
98
|
+
self
|
99
|
+
end
|
100
|
+
|
101
|
+
# Deserializes the data based on type
|
102
|
+
# @param string type Data type
|
103
|
+
# @param string value Value to be deserialized
|
104
|
+
# @return [Object] Deserialized data
|
105
|
+
def _deserialize(type, value)
|
106
|
+
case type.to_sym
|
107
|
+
when :DateTime
|
108
|
+
DateTime.parse(value)
|
109
|
+
when :Date
|
110
|
+
Date.parse(value)
|
111
|
+
when :String
|
112
|
+
value.to_s
|
113
|
+
when :Integer
|
114
|
+
value.to_i
|
115
|
+
when :Float
|
116
|
+
value.to_f
|
117
|
+
when :BOOLEAN
|
118
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
119
|
+
true
|
120
|
+
else
|
121
|
+
false
|
122
|
+
end
|
123
|
+
when :Object
|
124
|
+
# generic object (usually a Hash), return directly
|
125
|
+
value
|
126
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
127
|
+
inner_type = Regexp.last_match[:inner_type]
|
128
|
+
value.map { |v| _deserialize(inner_type, v) }
|
129
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
130
|
+
k_type = Regexp.last_match[:k_type]
|
131
|
+
v_type = Regexp.last_match[:v_type]
|
132
|
+
{}.tap do |hash|
|
133
|
+
value.each do |k, v|
|
134
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
else # model
|
138
|
+
temp_model = UltracartClient.const_get(type).new
|
139
|
+
temp_model.build_from_hash(value)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# Returns the string representation of the object
|
144
|
+
# @return [String] String presentation of the object
|
145
|
+
def to_s
|
146
|
+
to_hash.to_s
|
147
|
+
end
|
148
|
+
|
149
|
+
# to_body is an alias to to_hash (backward compatibility)
|
150
|
+
# @return [Hash] Returns the object in the form of hash
|
151
|
+
def to_body
|
152
|
+
to_hash
|
153
|
+
end
|
154
|
+
|
155
|
+
# Returns the object in the form of hash
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
157
|
+
def to_hash
|
158
|
+
hash = {}
|
159
|
+
self.class.attribute_map.each_pair do |attr, param|
|
160
|
+
value = self.send(attr)
|
161
|
+
next if value.nil?
|
162
|
+
hash[param] = _to_hash(value)
|
163
|
+
end
|
164
|
+
hash
|
165
|
+
end
|
166
|
+
|
167
|
+
# Outputs non-array value in the form of hash
|
168
|
+
# For object, use to_hash. Otherwise, just return the value
|
169
|
+
# @param [Object] value Any valid value
|
170
|
+
# @return [Hash] Returns the value in the form of hash
|
171
|
+
def _to_hash(value)
|
172
|
+
if value.is_a?(Array)
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
174
|
+
elsif value.is_a?(Hash)
|
175
|
+
{}.tap do |hash|
|
176
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
177
|
+
end
|
178
|
+
elsif value.respond_to? :to_hash
|
179
|
+
value.to_hash
|
180
|
+
else
|
181
|
+
value
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
end
|
186
|
+
end
|
@@ -13,73 +13,24 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module UltracartClient
|
16
|
-
class
|
17
|
-
# A unique identifier assigned to the data set that is returned.
|
18
|
-
attr_accessor :data_set_uuid
|
19
|
-
|
20
|
-
# Error message if the query failed.
|
16
|
+
class ReportDryRunQueryResult
|
21
17
|
attr_accessor :error_message
|
22
18
|
|
23
|
-
|
24
|
-
attr_accessor :for_object_id
|
25
|
-
|
26
|
-
# The type of object this data set is for
|
27
|
-
attr_accessor :for_object_type
|
28
|
-
|
29
|
-
# The total number of results
|
30
|
-
attr_accessor :max_results
|
31
|
-
|
32
|
-
# The schema associated with the data set.
|
33
|
-
attr_accessor :schema
|
34
|
-
|
35
|
-
# Any other data that needs to be returned with the response to help the UI
|
36
|
-
attr_accessor :user_data
|
37
|
-
|
38
|
-
class EnumAttributeValidator
|
39
|
-
attr_reader :datatype
|
40
|
-
attr_reader :allowable_values
|
41
|
-
|
42
|
-
def initialize(datatype, allowable_values)
|
43
|
-
@allowable_values = allowable_values.map do |value|
|
44
|
-
case datatype.to_s
|
45
|
-
when /Integer/i
|
46
|
-
value.to_i
|
47
|
-
when /Float/i
|
48
|
-
value.to_f
|
49
|
-
else
|
50
|
-
value
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
def valid?(value)
|
56
|
-
!value || allowable_values.include?(value)
|
57
|
-
end
|
58
|
-
end
|
19
|
+
attr_accessor :total_bytes_processed
|
59
20
|
|
60
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
22
|
def self.attribute_map
|
62
23
|
{
|
63
|
-
:'data_set_uuid' => :'data_set_uuid',
|
64
24
|
:'error_message' => :'error_message',
|
65
|
-
:'
|
66
|
-
:'for_object_type' => :'for_object_type',
|
67
|
-
:'max_results' => :'max_results',
|
68
|
-
:'schema' => :'schema',
|
69
|
-
:'user_data' => :'user_data'
|
25
|
+
:'total_bytes_processed' => :'total_bytes_processed'
|
70
26
|
}
|
71
27
|
end
|
72
28
|
|
73
29
|
# Attribute type mapping.
|
74
30
|
def self.swagger_types
|
75
31
|
{
|
76
|
-
:'data_set_uuid' => :'String',
|
77
32
|
:'error_message' => :'String',
|
78
|
-
:'
|
79
|
-
:'for_object_type' => :'String',
|
80
|
-
:'max_results' => :'Integer',
|
81
|
-
:'schema' => :'Array<ReportDataSetSchema>',
|
82
|
-
:'user_data' => :'String'
|
33
|
+
:'total_bytes_processed' => :'Integer'
|
83
34
|
}
|
84
35
|
end
|
85
36
|
|
@@ -91,34 +42,12 @@ module UltracartClient
|
|
91
42
|
# convert string to symbol for hash key
|
92
43
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
93
44
|
|
94
|
-
if attributes.has_key?(:'data_set_uuid')
|
95
|
-
self.data_set_uuid = attributes[:'data_set_uuid']
|
96
|
-
end
|
97
|
-
|
98
45
|
if attributes.has_key?(:'error_message')
|
99
46
|
self.error_message = attributes[:'error_message']
|
100
47
|
end
|
101
48
|
|
102
|
-
if attributes.has_key?(:'
|
103
|
-
self.
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes.has_key?(:'for_object_type')
|
107
|
-
self.for_object_type = attributes[:'for_object_type']
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes.has_key?(:'max_results')
|
111
|
-
self.max_results = attributes[:'max_results']
|
112
|
-
end
|
113
|
-
|
114
|
-
if attributes.has_key?(:'schema')
|
115
|
-
if (value = attributes[:'schema']).is_a?(Array)
|
116
|
-
self.schema = value
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.has_key?(:'user_data')
|
121
|
-
self.user_data = attributes[:'user_data']
|
49
|
+
if attributes.has_key?(:'total_bytes_processed')
|
50
|
+
self.total_bytes_processed = attributes[:'total_bytes_processed']
|
122
51
|
end
|
123
52
|
end
|
124
53
|
|
@@ -132,33 +61,16 @@ module UltracartClient
|
|
132
61
|
# Check to see if the all the properties in the model are valid
|
133
62
|
# @return true if the model is valid
|
134
63
|
def valid?
|
135
|
-
for_object_type_validator = EnumAttributeValidator.new('String', ['schema', 'filter', 'visualization'])
|
136
|
-
return false unless for_object_type_validator.valid?(@for_object_type)
|
137
64
|
true
|
138
65
|
end
|
139
66
|
|
140
|
-
# Custom attribute writer method checking allowed values (enum).
|
141
|
-
# @param [Object] for_object_type Object to be assigned
|
142
|
-
def for_object_type=(for_object_type)
|
143
|
-
validator = EnumAttributeValidator.new('String', ['schema', 'filter', 'visualization'])
|
144
|
-
unless validator.valid?(for_object_type)
|
145
|
-
fail ArgumentError, 'invalid value for "for_object_type", must be one of #{validator.allowable_values}.'
|
146
|
-
end
|
147
|
-
@for_object_type = for_object_type
|
148
|
-
end
|
149
|
-
|
150
67
|
# Checks equality by comparing each attribute.
|
151
68
|
# @param [Object] Object to be compared
|
152
69
|
def ==(o)
|
153
70
|
return true if self.equal?(o)
|
154
71
|
self.class == o.class &&
|
155
|
-
data_set_uuid == o.data_set_uuid &&
|
156
72
|
error_message == o.error_message &&
|
157
|
-
|
158
|
-
for_object_type == o.for_object_type &&
|
159
|
-
max_results == o.max_results &&
|
160
|
-
schema == o.schema &&
|
161
|
-
user_data == o.user_data
|
73
|
+
total_bytes_processed == o.total_bytes_processed
|
162
74
|
end
|
163
75
|
|
164
76
|
# @see the `==` method
|
@@ -170,7 +82,7 @@ module UltracartClient
|
|
170
82
|
# Calculates hash code according to all attributes.
|
171
83
|
# @return [Fixnum] Hash code
|
172
84
|
def hash
|
173
|
-
[
|
85
|
+
[error_message, total_bytes_processed].hash
|
174
86
|
end
|
175
87
|
|
176
88
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -24,6 +24,7 @@ require 'ultracart_api/models/accounts_receivable_retry_stat_account'
|
|
24
24
|
require 'ultracart_api/models/accounts_receivable_retry_stat_metrics'
|
25
25
|
require 'ultracart_api/models/accounts_receivable_retry_stat_revenue'
|
26
26
|
require 'ultracart_api/models/accounts_receivable_retry_stats_response'
|
27
|
+
require 'ultracart_api/models/accounts_receivable_retry_transaction_reject'
|
27
28
|
require 'ultracart_api/models/activity'
|
28
29
|
require 'ultracart_api/models/add_library_item_request'
|
29
30
|
require 'ultracart_api/models/adjust_internal_certificate_request'
|
@@ -652,9 +653,11 @@ require 'ultracart_api/models/report_data_set_query'
|
|
652
653
|
require 'ultracart_api/models/report_data_set_response'
|
653
654
|
require 'ultracart_api/models/report_data_set_row'
|
654
655
|
require 'ultracart_api/models/report_data_set_schema'
|
655
|
-
require 'ultracart_api/models/report_data_set_summary'
|
656
656
|
require 'ultracart_api/models/report_data_source'
|
657
657
|
require 'ultracart_api/models/report_data_source_schema'
|
658
|
+
require 'ultracart_api/models/report_dry_run_queries_request'
|
659
|
+
require 'ultracart_api/models/report_dry_run_queries_response'
|
660
|
+
require 'ultracart_api/models/report_dry_run_query_result'
|
658
661
|
require 'ultracart_api/models/report_execute_queries_request'
|
659
662
|
require 'ultracart_api/models/report_filter'
|
660
663
|
require 'ultracart_api/models/report_filter_connection'
|
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.128
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- docs/AccountsReceivableRetryStatMetrics.md
|
229
229
|
- docs/AccountsReceivableRetryStatRevenue.md
|
230
230
|
- docs/AccountsReceivableRetryStatsResponse.md
|
231
|
+
- docs/AccountsReceivableRetryTransactionReject.md
|
231
232
|
- docs/Activity.md
|
232
233
|
- docs/AddLibraryItemRequest.md
|
233
234
|
- docs/AdjustInternalCertificateRequest.md
|
@@ -871,9 +872,11 @@ files:
|
|
871
872
|
- docs/ReportDataSetResponse.md
|
872
873
|
- docs/ReportDataSetRow.md
|
873
874
|
- docs/ReportDataSetSchema.md
|
874
|
-
- docs/ReportDataSetSummary.md
|
875
875
|
- docs/ReportDataSource.md
|
876
876
|
- docs/ReportDataSourceSchema.md
|
877
|
+
- docs/ReportDryRunQueriesRequest.md
|
878
|
+
- docs/ReportDryRunQueriesResponse.md
|
879
|
+
- docs/ReportDryRunQueryResult.md
|
877
880
|
- docs/ReportExecuteQueriesRequest.md
|
878
881
|
- docs/ReportFilter.md
|
879
882
|
- docs/ReportFilterConnection.md
|
@@ -1040,6 +1043,7 @@ files:
|
|
1040
1043
|
- lib/ultracart_api/models/accounts_receivable_retry_stat_metrics.rb
|
1041
1044
|
- lib/ultracart_api/models/accounts_receivable_retry_stat_revenue.rb
|
1042
1045
|
- lib/ultracart_api/models/accounts_receivable_retry_stats_response.rb
|
1046
|
+
- lib/ultracart_api/models/accounts_receivable_retry_transaction_reject.rb
|
1043
1047
|
- lib/ultracart_api/models/activity.rb
|
1044
1048
|
- lib/ultracart_api/models/add_library_item_request.rb
|
1045
1049
|
- lib/ultracart_api/models/adjust_internal_certificate_request.rb
|
@@ -1668,9 +1672,11 @@ files:
|
|
1668
1672
|
- lib/ultracart_api/models/report_data_set_response.rb
|
1669
1673
|
- lib/ultracart_api/models/report_data_set_row.rb
|
1670
1674
|
- lib/ultracart_api/models/report_data_set_schema.rb
|
1671
|
-
- lib/ultracart_api/models/report_data_set_summary.rb
|
1672
1675
|
- lib/ultracart_api/models/report_data_source.rb
|
1673
1676
|
- lib/ultracart_api/models/report_data_source_schema.rb
|
1677
|
+
- lib/ultracart_api/models/report_dry_run_queries_request.rb
|
1678
|
+
- lib/ultracart_api/models/report_dry_run_queries_response.rb
|
1679
|
+
- lib/ultracart_api/models/report_dry_run_query_result.rb
|
1674
1680
|
- lib/ultracart_api/models/report_execute_queries_request.rb
|
1675
1681
|
- lib/ultracart_api/models/report_filter.rb
|
1676
1682
|
- lib/ultracart_api/models/report_filter_connection.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# UltracartClient::ReportDataSetSummary
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**data_set_uuid** | **String** | A unique identifier assigned to the data set that is returned. | [optional]
|
7
|
-
**error_message** | **String** | Error message if the query failed. | [optional]
|
8
|
-
**for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional]
|
9
|
-
**for_object_type** | **String** | The type of object this data set is for | [optional]
|
10
|
-
**max_results** | **Integer** | The total number of results | [optional]
|
11
|
-
**schema** | [**Array<ReportDataSetSchema>**](ReportDataSetSchema.md) | The schema associated with the data set. | [optional]
|
12
|
-
**user_data** | **String** | Any other data that needs to be returned with the response to help the UI | [optional]
|
13
|
-
|
14
|
-
|