lib/ultracart_api/models/report.rb in ultracart_api-4.0.168 vs lib/ultracart_api/models/report.rb in ultracart_api-4.0.169
- old
+ new
@@ -35,10 +35,13 @@
attr_accessor :report_oid
# Security level to execute report under
attr_accessor :security_level
+ # A JSON representation of the settings for this report
+ attr_accessor :settings
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -69,11 +72,12 @@
:'filters' => :'filters',
:'merchant_id' => :'merchant_id',
:'name' => :'name',
:'pages' => :'pages',
:'report_oid' => :'report_oid',
- :'security_level' => :'security_level'
+ :'security_level' => :'security_level',
+ :'settings' => :'settings'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -90,11 +94,12 @@
:'filters' => :'Array<ReportFilter>',
:'merchant_id' => :'String',
:'name' => :'String',
:'pages' => :'Array<ReportPage>',
:'report_oid' => :'Integer',
- :'security_level' => :'String'
+ :'security_level' => :'String',
+ :'settings' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -160,10 +165,14 @@
end
if attributes.key?(:'security_level')
self.security_level = attributes[:'security_level']
end
+
+ if attributes.key?(:'settings')
+ self.settings = attributes[:'settings']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -201,11 +210,12 @@
filters == o.filters &&
merchant_id == o.merchant_id &&
name == o.name &&
pages == o.pages &&
report_oid == o.report_oid &&
- security_level == o.security_level
+ security_level == o.security_level &&
+ settings == o.settings
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -213,10 +223,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [active, data_sources, default_dataset_id, default_project_id, filters, merchant_id, name, pages, report_oid, security_level].hash
+ [active, data_sources, default_dataset_id, default_project_id, filters, merchant_id, name, pages, report_oid, security_level, settings].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself