ultracart_api 4.1.16 → 4.1.17
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 +4 -4
- data/README.md +20 -2
- data/docs/CustomDashboard.md +24 -0
- data/docs/CustomDashboardPage.md +22 -0
- data/docs/CustomDashboardPageReport.md +26 -0
- data/docs/CustomDashboardResponse.md +26 -0
- data/docs/CustomDashboardsResponse.md +26 -0
- data/docs/CustomReportExecutionResponse.md +32 -0
- data/docs/CustomReportsExecutionReportData.md +22 -0
- data/docs/CustomReportsExecutionRequest.md +20 -0
- data/docs/CustomReportsExecutionResponse.md +28 -0
- data/docs/DatawarehouseApi.md +327 -4
- data/docs/EmailEditorValuesResponse.md +26 -0
- data/docs/StorefrontApi.md +52 -0
- data/lib/ultracart_api/api/datawarehouse_api.rb +402 -3
- data/lib/ultracart_api/api/storefront_api.rb +62 -0
- data/lib/ultracart_api/models/custom_dashboard.rb +248 -0
- data/lib/ultracart_api/models/custom_dashboard_page.rb +239 -0
- data/lib/ultracart_api/models/custom_dashboard_page_report.rb +255 -0
- data/lib/ultracart_api/models/custom_dashboard_response.rb +256 -0
- data/lib/ultracart_api/models/custom_dashboards_response.rb +259 -0
- data/lib/ultracart_api/models/custom_report_execution_response.rb +285 -0
- data/lib/ultracart_api/models/custom_reports_execution_report_data.rb +237 -0
- data/lib/ultracart_api/models/custom_reports_execution_request.rb +232 -0
- data/lib/ultracart_api/models/custom_reports_execution_response.rb +269 -0
- data/lib/ultracart_api/models/email_editor_values_response.rb +258 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +10 -0
- metadata +22 -2
@@ -0,0 +1,269 @@
|
|
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 CustomReportsExecutionResponse
|
18
|
+
attr_accessor :error
|
19
|
+
|
20
|
+
attr_accessor :metadata
|
21
|
+
|
22
|
+
attr_accessor :parameters
|
23
|
+
|
24
|
+
attr_accessor :reports
|
25
|
+
|
26
|
+
# Indicates if API call was successful
|
27
|
+
attr_accessor :success
|
28
|
+
|
29
|
+
attr_accessor :warning
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'error' => :'error',
|
35
|
+
:'metadata' => :'metadata',
|
36
|
+
:'parameters' => :'parameters',
|
37
|
+
:'reports' => :'reports',
|
38
|
+
:'success' => :'success',
|
39
|
+
:'warning' => :'warning'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Returns all the JSON keys this model knows about
|
44
|
+
def self.acceptable_attributes
|
45
|
+
attribute_map.values
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute type mapping.
|
49
|
+
def self.openapi_types
|
50
|
+
{
|
51
|
+
:'error' => :'Error',
|
52
|
+
:'metadata' => :'ResponseMetadata',
|
53
|
+
:'parameters' => :'Array<CustomReportExecutionParameter>',
|
54
|
+
:'reports' => :'Array<CustomReportsExecutionReportData>',
|
55
|
+
:'success' => :'Boolean',
|
56
|
+
:'warning' => :'Warning'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# List of attributes with nullable: true
|
61
|
+
def self.openapi_nullable
|
62
|
+
Set.new([
|
63
|
+
])
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::CustomReportsExecutionResponse` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::CustomReportsExecutionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
|
+
end
|
78
|
+
h[k.to_sym] = v
|
79
|
+
}
|
80
|
+
|
81
|
+
if attributes.key?(:'error')
|
82
|
+
self.error = attributes[:'error']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'metadata')
|
86
|
+
self.metadata = attributes[:'metadata']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'parameters')
|
90
|
+
if (value = attributes[:'parameters']).is_a?(Array)
|
91
|
+
self.parameters = value
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'reports')
|
96
|
+
if (value = attributes[:'reports']).is_a?(Array)
|
97
|
+
self.reports = value
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'success')
|
102
|
+
self.success = attributes[:'success']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'warning')
|
106
|
+
self.warning = attributes[:'warning']
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
111
|
+
# @return Array for valid properties with the reasons
|
112
|
+
def list_invalid_properties
|
113
|
+
invalid_properties = Array.new
|
114
|
+
invalid_properties
|
115
|
+
end
|
116
|
+
|
117
|
+
# Check to see if the all the properties in the model are valid
|
118
|
+
# @return true if the model is valid
|
119
|
+
def valid?
|
120
|
+
true
|
121
|
+
end
|
122
|
+
|
123
|
+
# Checks equality by comparing each attribute.
|
124
|
+
# @param [Object] Object to be compared
|
125
|
+
def ==(o)
|
126
|
+
return true if self.equal?(o)
|
127
|
+
self.class == o.class &&
|
128
|
+
error == o.error &&
|
129
|
+
metadata == o.metadata &&
|
130
|
+
parameters == o.parameters &&
|
131
|
+
reports == o.reports &&
|
132
|
+
success == o.success &&
|
133
|
+
warning == o.warning
|
134
|
+
end
|
135
|
+
|
136
|
+
# @see the `==` method
|
137
|
+
# @param [Object] Object to be compared
|
138
|
+
def eql?(o)
|
139
|
+
self == o
|
140
|
+
end
|
141
|
+
|
142
|
+
# Calculates hash code according to all attributes.
|
143
|
+
# @return [Integer] Hash code
|
144
|
+
def hash
|
145
|
+
[error, metadata, parameters, reports, success, warning].hash
|
146
|
+
end
|
147
|
+
|
148
|
+
# Builds the object from hash
|
149
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
150
|
+
# @return [Object] Returns the model itself
|
151
|
+
def self.build_from_hash(attributes)
|
152
|
+
new.build_from_hash(attributes)
|
153
|
+
end
|
154
|
+
|
155
|
+
# Builds the object from hash
|
156
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
157
|
+
# @return [Object] Returns the model itself
|
158
|
+
def build_from_hash(attributes)
|
159
|
+
return nil unless attributes.is_a?(Hash)
|
160
|
+
attributes = attributes.transform_keys(&:to_sym)
|
161
|
+
self.class.openapi_types.each_pair do |key, type|
|
162
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
163
|
+
self.send("#{key}=", nil)
|
164
|
+
elsif type =~ /\AArray<(.*)>/i
|
165
|
+
# check to ensure the input is an array given that the attribute
|
166
|
+
# is documented as an array but the input is not
|
167
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
168
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
169
|
+
end
|
170
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
171
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
self
|
176
|
+
end
|
177
|
+
|
178
|
+
# Deserializes the data based on type
|
179
|
+
# @param string type Data type
|
180
|
+
# @param string value Value to be deserialized
|
181
|
+
# @return [Object] Deserialized data
|
182
|
+
def _deserialize(type, value)
|
183
|
+
case type.to_sym
|
184
|
+
when :Time
|
185
|
+
Time.parse(value)
|
186
|
+
when :Date
|
187
|
+
Date.parse(value)
|
188
|
+
when :String
|
189
|
+
value.to_s
|
190
|
+
when :Integer
|
191
|
+
value.to_i
|
192
|
+
when :Float
|
193
|
+
value.to_f
|
194
|
+
when :Boolean
|
195
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
196
|
+
true
|
197
|
+
else
|
198
|
+
false
|
199
|
+
end
|
200
|
+
when :Object
|
201
|
+
# generic object (usually a Hash), return directly
|
202
|
+
value
|
203
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
204
|
+
inner_type = Regexp.last_match[:inner_type]
|
205
|
+
value.map { |v| _deserialize(inner_type, v) }
|
206
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
207
|
+
k_type = Regexp.last_match[:k_type]
|
208
|
+
v_type = Regexp.last_match[:v_type]
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each do |k, v|
|
211
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
else # model
|
215
|
+
# models (e.g. Pet) or oneOf
|
216
|
+
klass = UltracartClient.const_get(type)
|
217
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Returns the string representation of the object
|
222
|
+
# @return [String] String presentation of the object
|
223
|
+
def to_s
|
224
|
+
to_hash.to_s
|
225
|
+
end
|
226
|
+
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
229
|
+
def to_body
|
230
|
+
to_hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the object in the form of hash
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
235
|
+
def to_hash
|
236
|
+
hash = {}
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
238
|
+
value = self.send(attr)
|
239
|
+
if value.nil?
|
240
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
|
+
end
|
243
|
+
|
244
|
+
hash[param] = _to_hash(value)
|
245
|
+
end
|
246
|
+
hash
|
247
|
+
end
|
248
|
+
|
249
|
+
# Outputs non-array value in the form of hash
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
251
|
+
# @param [Object] value Any valid value
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
253
|
+
def _to_hash(value)
|
254
|
+
if value.is_a?(Array)
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
256
|
+
elsif value.is_a?(Hash)
|
257
|
+
{}.tap do |hash|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
259
|
+
end
|
260
|
+
elsif value.respond_to? :to_hash
|
261
|
+
value.to_hash
|
262
|
+
else
|
263
|
+
value
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
end
|
268
|
+
|
269
|
+
end
|
@@ -0,0 +1,258 @@
|
|
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 EmailEditorValuesResponse
|
18
|
+
attr_accessor :error
|
19
|
+
|
20
|
+
attr_accessor :loyalty_tiers
|
21
|
+
|
22
|
+
attr_accessor :metadata
|
23
|
+
|
24
|
+
# Indicates if API call was successful
|
25
|
+
attr_accessor :success
|
26
|
+
|
27
|
+
attr_accessor :warning
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'error' => :'error',
|
33
|
+
:'loyalty_tiers' => :'loyalty_tiers',
|
34
|
+
:'metadata' => :'metadata',
|
35
|
+
:'success' => :'success',
|
36
|
+
:'warning' => :'warning'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.openapi_types
|
47
|
+
{
|
48
|
+
:'error' => :'Error',
|
49
|
+
:'loyalty_tiers' => :'Array<String>',
|
50
|
+
:'metadata' => :'ResponseMetadata',
|
51
|
+
:'success' => :'Boolean',
|
52
|
+
:'warning' => :'Warning'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::EmailEditorValuesResponse` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::EmailEditorValuesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'error')
|
78
|
+
self.error = attributes[:'error']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'loyalty_tiers')
|
82
|
+
if (value = attributes[:'loyalty_tiers']).is_a?(Array)
|
83
|
+
self.loyalty_tiers = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'metadata')
|
88
|
+
self.metadata = attributes[:'metadata']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'success')
|
92
|
+
self.success = attributes[:'success']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'warning')
|
96
|
+
self.warning = attributes[:'warning']
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
101
|
+
# @return Array for valid properties with the reasons
|
102
|
+
def list_invalid_properties
|
103
|
+
invalid_properties = Array.new
|
104
|
+
invalid_properties
|
105
|
+
end
|
106
|
+
|
107
|
+
# Check to see if the all the properties in the model are valid
|
108
|
+
# @return true if the model is valid
|
109
|
+
def valid?
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
error == o.error &&
|
119
|
+
loyalty_tiers == o.loyalty_tiers &&
|
120
|
+
metadata == o.metadata &&
|
121
|
+
success == o.success &&
|
122
|
+
warning == o.warning
|
123
|
+
end
|
124
|
+
|
125
|
+
# @see the `==` method
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def eql?(o)
|
128
|
+
self == o
|
129
|
+
end
|
130
|
+
|
131
|
+
# Calculates hash code according to all attributes.
|
132
|
+
# @return [Integer] Hash code
|
133
|
+
def hash
|
134
|
+
[error, loyalty_tiers, metadata, success, warning].hash
|
135
|
+
end
|
136
|
+
|
137
|
+
# Builds the object from hash
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
139
|
+
# @return [Object] Returns the model itself
|
140
|
+
def self.build_from_hash(attributes)
|
141
|
+
new.build_from_hash(attributes)
|
142
|
+
end
|
143
|
+
|
144
|
+
# Builds the object from hash
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
146
|
+
# @return [Object] Returns the model itself
|
147
|
+
def build_from_hash(attributes)
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
149
|
+
attributes = attributes.transform_keys(&:to_sym)
|
150
|
+
self.class.openapi_types.each_pair do |key, type|
|
151
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
152
|
+
self.send("#{key}=", nil)
|
153
|
+
elsif type =~ /\AArray<(.*)>/i
|
154
|
+
# check to ensure the input is an array given that the attribute
|
155
|
+
# is documented as an array but the input is not
|
156
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
157
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
158
|
+
end
|
159
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
160
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
self
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deserializes the data based on type
|
168
|
+
# @param string type Data type
|
169
|
+
# @param string value Value to be deserialized
|
170
|
+
# @return [Object] Deserialized data
|
171
|
+
def _deserialize(type, value)
|
172
|
+
case type.to_sym
|
173
|
+
when :Time
|
174
|
+
Time.parse(value)
|
175
|
+
when :Date
|
176
|
+
Date.parse(value)
|
177
|
+
when :String
|
178
|
+
value.to_s
|
179
|
+
when :Integer
|
180
|
+
value.to_i
|
181
|
+
when :Float
|
182
|
+
value.to_f
|
183
|
+
when :Boolean
|
184
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
185
|
+
true
|
186
|
+
else
|
187
|
+
false
|
188
|
+
end
|
189
|
+
when :Object
|
190
|
+
# generic object (usually a Hash), return directly
|
191
|
+
value
|
192
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
193
|
+
inner_type = Regexp.last_match[:inner_type]
|
194
|
+
value.map { |v| _deserialize(inner_type, v) }
|
195
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
196
|
+
k_type = Regexp.last_match[:k_type]
|
197
|
+
v_type = Regexp.last_match[:v_type]
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each do |k, v|
|
200
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
else # model
|
204
|
+
# models (e.g. Pet) or oneOf
|
205
|
+
klass = UltracartClient.const_get(type)
|
206
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the string representation of the object
|
211
|
+
# @return [String] String presentation of the object
|
212
|
+
def to_s
|
213
|
+
to_hash.to_s
|
214
|
+
end
|
215
|
+
|
216
|
+
# to_body is an alias to to_hash (backward compatibility)
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_body
|
219
|
+
to_hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the object in the form of hash
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_hash
|
225
|
+
hash = {}
|
226
|
+
self.class.attribute_map.each_pair do |attr, param|
|
227
|
+
value = self.send(attr)
|
228
|
+
if value.nil?
|
229
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
230
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
231
|
+
end
|
232
|
+
|
233
|
+
hash[param] = _to_hash(value)
|
234
|
+
end
|
235
|
+
hash
|
236
|
+
end
|
237
|
+
|
238
|
+
# Outputs non-array value in the form of hash
|
239
|
+
# For object, use to_hash. Otherwise, just return the value
|
240
|
+
# @param [Object] value Any valid value
|
241
|
+
# @return [Hash] Returns the value in the form of hash
|
242
|
+
def _to_hash(value)
|
243
|
+
if value.is_a?(Array)
|
244
|
+
value.compact.map { |v| _to_hash(v) }
|
245
|
+
elsif value.is_a?(Hash)
|
246
|
+
{}.tap do |hash|
|
247
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
248
|
+
end
|
249
|
+
elsif value.respond_to? :to_hash
|
250
|
+
value.to_hash
|
251
|
+
else
|
252
|
+
value
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
end
|
257
|
+
|
258
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
@@ -321,16 +321,25 @@ require 'ultracart_api/models/coupon_type'
|
|
321
321
|
require 'ultracart_api/models/coupons_request'
|
322
322
|
require 'ultracart_api/models/coupons_response'
|
323
323
|
require 'ultracart_api/models/currency'
|
324
|
+
require 'ultracart_api/models/custom_dashboard'
|
325
|
+
require 'ultracart_api/models/custom_dashboard_page'
|
326
|
+
require 'ultracart_api/models/custom_dashboard_page_report'
|
327
|
+
require 'ultracart_api/models/custom_dashboard_response'
|
328
|
+
require 'ultracart_api/models/custom_dashboards_response'
|
324
329
|
require 'ultracart_api/models/custom_report'
|
325
330
|
require 'ultracart_api/models/custom_report_account_config'
|
326
331
|
require 'ultracart_api/models/custom_report_account_config_response'
|
327
332
|
require 'ultracart_api/models/custom_report_execution_parameter'
|
328
333
|
require 'ultracart_api/models/custom_report_execution_request'
|
334
|
+
require 'ultracart_api/models/custom_report_execution_response'
|
329
335
|
require 'ultracart_api/models/custom_report_parameter'
|
330
336
|
require 'ultracart_api/models/custom_report_parameter_option'
|
331
337
|
require 'ultracart_api/models/custom_report_query'
|
332
338
|
require 'ultracart_api/models/custom_report_response'
|
333
339
|
require 'ultracart_api/models/custom_report_tooltip'
|
340
|
+
require 'ultracart_api/models/custom_reports_execution_report_data'
|
341
|
+
require 'ultracart_api/models/custom_reports_execution_request'
|
342
|
+
require 'ultracart_api/models/custom_reports_execution_response'
|
334
343
|
require 'ultracart_api/models/custom_reports_response'
|
335
344
|
require 'ultracart_api/models/customer'
|
336
345
|
require 'ultracart_api/models/customer_activity'
|
@@ -414,6 +423,7 @@ require 'ultracart_api/models/email_dashboard_activity_response'
|
|
414
423
|
require 'ultracart_api/models/email_dashboard_stats_response'
|
415
424
|
require 'ultracart_api/models/email_domain'
|
416
425
|
require 'ultracart_api/models/email_editor_token_response'
|
426
|
+
require 'ultracart_api/models/email_editor_values_response'
|
417
427
|
require 'ultracart_api/models/email_flow'
|
418
428
|
require 'ultracart_api/models/email_flow_back_populate_request'
|
419
429
|
require 'ultracart_api/models/email_flow_back_populate_response'
|
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.1.
|
4
|
+
version: 4.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -372,16 +372,25 @@ files:
|
|
372
372
|
- docs/CouponsRequest.md
|
373
373
|
- docs/CouponsResponse.md
|
374
374
|
- docs/Currency.md
|
375
|
+
- docs/CustomDashboard.md
|
376
|
+
- docs/CustomDashboardPage.md
|
377
|
+
- docs/CustomDashboardPageReport.md
|
378
|
+
- docs/CustomDashboardResponse.md
|
379
|
+
- docs/CustomDashboardsResponse.md
|
375
380
|
- docs/CustomReport.md
|
376
381
|
- docs/CustomReportAccountConfig.md
|
377
382
|
- docs/CustomReportAccountConfigResponse.md
|
378
383
|
- docs/CustomReportExecutionParameter.md
|
379
384
|
- docs/CustomReportExecutionRequest.md
|
385
|
+
- docs/CustomReportExecutionResponse.md
|
380
386
|
- docs/CustomReportParameter.md
|
381
387
|
- docs/CustomReportParameterOption.md
|
382
388
|
- docs/CustomReportQuery.md
|
383
389
|
- docs/CustomReportResponse.md
|
384
390
|
- docs/CustomReportTooltip.md
|
391
|
+
- docs/CustomReportsExecutionReportData.md
|
392
|
+
- docs/CustomReportsExecutionRequest.md
|
393
|
+
- docs/CustomReportsExecutionResponse.md
|
385
394
|
- docs/CustomReportsResponse.md
|
386
395
|
- docs/Customer.md
|
387
396
|
- docs/CustomerActivity.md
|
@@ -467,6 +476,7 @@ files:
|
|
467
476
|
- docs/EmailDashboardStatsResponse.md
|
468
477
|
- docs/EmailDomain.md
|
469
478
|
- docs/EmailEditorTokenResponse.md
|
479
|
+
- docs/EmailEditorValuesResponse.md
|
470
480
|
- docs/EmailFlow.md
|
471
481
|
- docs/EmailFlowBackPopulateRequest.md
|
472
482
|
- docs/EmailFlowBackPopulateResponse.md
|
@@ -1286,16 +1296,25 @@ files:
|
|
1286
1296
|
- lib/ultracart_api/models/coupons_request.rb
|
1287
1297
|
- lib/ultracart_api/models/coupons_response.rb
|
1288
1298
|
- lib/ultracart_api/models/currency.rb
|
1299
|
+
- lib/ultracart_api/models/custom_dashboard.rb
|
1300
|
+
- lib/ultracart_api/models/custom_dashboard_page.rb
|
1301
|
+
- lib/ultracart_api/models/custom_dashboard_page_report.rb
|
1302
|
+
- lib/ultracart_api/models/custom_dashboard_response.rb
|
1303
|
+
- lib/ultracart_api/models/custom_dashboards_response.rb
|
1289
1304
|
- lib/ultracart_api/models/custom_report.rb
|
1290
1305
|
- lib/ultracart_api/models/custom_report_account_config.rb
|
1291
1306
|
- lib/ultracart_api/models/custom_report_account_config_response.rb
|
1292
1307
|
- lib/ultracart_api/models/custom_report_execution_parameter.rb
|
1293
1308
|
- lib/ultracart_api/models/custom_report_execution_request.rb
|
1309
|
+
- lib/ultracart_api/models/custom_report_execution_response.rb
|
1294
1310
|
- lib/ultracart_api/models/custom_report_parameter.rb
|
1295
1311
|
- lib/ultracart_api/models/custom_report_parameter_option.rb
|
1296
1312
|
- lib/ultracart_api/models/custom_report_query.rb
|
1297
1313
|
- lib/ultracart_api/models/custom_report_response.rb
|
1298
1314
|
- lib/ultracart_api/models/custom_report_tooltip.rb
|
1315
|
+
- lib/ultracart_api/models/custom_reports_execution_report_data.rb
|
1316
|
+
- lib/ultracart_api/models/custom_reports_execution_request.rb
|
1317
|
+
- lib/ultracart_api/models/custom_reports_execution_response.rb
|
1299
1318
|
- lib/ultracart_api/models/custom_reports_response.rb
|
1300
1319
|
- lib/ultracart_api/models/customer.rb
|
1301
1320
|
- lib/ultracart_api/models/customer_activity.rb
|
@@ -1379,6 +1398,7 @@ files:
|
|
1379
1398
|
- lib/ultracart_api/models/email_dashboard_stats_response.rb
|
1380
1399
|
- lib/ultracart_api/models/email_domain.rb
|
1381
1400
|
- lib/ultracart_api/models/email_editor_token_response.rb
|
1401
|
+
- lib/ultracart_api/models/email_editor_values_response.rb
|
1382
1402
|
- lib/ultracart_api/models/email_flow.rb
|
1383
1403
|
- lib/ultracart_api/models/email_flow_back_populate_request.rb
|
1384
1404
|
- lib/ultracart_api/models/email_flow_back_populate_response.rb
|