lib/ultracart_api/models/report.rb in ultracart_api-3.10.131 vs lib/ultracart_api/models/report.rb in ultracart_api-3.10.132

- old
+ new

@@ -20,10 +20,12 @@ attr_accessor :default_dataset_id attr_accessor :default_project_id + attr_accessor :filters + attr_accessor :merchant_id attr_accessor :name attr_accessor :pages @@ -61,10 +63,11 @@ { :'active' => :'active', :'data_sources' => :'data_sources', :'default_dataset_id' => :'default_dataset_id', :'default_project_id' => :'default_project_id', + :'filters' => :'filters', :'merchant_id' => :'merchant_id', :'name' => :'name', :'pages' => :'pages', :'report_oid' => :'report_oid', :'security_level' => :'security_level' @@ -76,10 +79,11 @@ { :'active' => :'BOOLEAN', :'data_sources' => :'Array<ReportDataSource>', :'default_dataset_id' => :'String', :'default_project_id' => :'String', + :'filters' => :'Array<ReportFilter>', :'merchant_id' => :'String', :'name' => :'String', :'pages' => :'Array<ReportPage>', :'report_oid' => :'Integer', :'security_level' => :'String' @@ -110,10 +114,16 @@ if attributes.has_key?(:'default_project_id') self.default_project_id = attributes[:'default_project_id'] end + if attributes.has_key?(:'filters') + if (value = attributes[:'filters']).is_a?(Array) + self.filters = value + end + end + if attributes.has_key?(:'merchant_id') self.merchant_id = attributes[:'merchant_id'] end if attributes.has_key?(:'name') @@ -167,10 +177,11 @@ self.class == o.class && active == o.active && data_sources == o.data_sources && default_dataset_id == o.default_dataset_id && default_project_id == o.default_project_id && + filters == o.filters && merchant_id == o.merchant_id && name == o.name && pages == o.pages && report_oid == o.report_oid && security_level == o.security_level @@ -183,10 +194,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [active, data_sources, default_dataset_id, default_project_id, 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].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself