lib/ultracart_api/models/report.rb in ultracart_api-3.10.151 vs lib/ultracart_api/models/report.rb in ultracart_api-3.10.152
- old
+ new
@@ -34,10 +34,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)
@@ -68,11 +71,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
# Attribute type mapping.
def self.swagger_types
@@ -84,11 +88,12 @@
:'filters' => :'Array<ReportFilter>',
:'merchant_id' => :'String',
:'name' => :'String',
:'pages' => :'Array<ReportPage>',
:'report_oid' => :'Integer',
- :'security_level' => :'String'
+ :'security_level' => :'String',
+ :'settings' => :'String'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -141,10 +146,14 @@
end
if attributes.has_key?(:'security_level')
self.security_level = attributes[:'security_level']
end
+
+ if attributes.has_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
@@ -182,11 +191,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)
@@ -194,10 +204,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] 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