lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb in hubspot-api-client-11.2.0 vs lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb in hubspot-api-client-12.0.0

- old
+ new

@@ -18,10 +18,12 @@ class SimplePublicObject attr_accessor :id attr_accessor :properties + attr_accessor :properties_with_history + attr_accessor :created_at attr_accessor :updated_at attr_accessor :archived @@ -31,10 +33,11 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'properties' => :'properties', + :'properties_with_history' => :'propertiesWithHistory', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', :'archived' => :'archived', :'archived_at' => :'archivedAt' } @@ -43,10 +46,11 @@ # Attribute type mapping. def self.openapi_types { :'id' => :'String', :'properties' => :'Hash<String, String>', + :'properties_with_history' => :'Hash<String, Array<ValueWithTimestamp>>', :'created_at' => :'DateTime', :'updated_at' => :'DateTime', :'archived' => :'Boolean', :'archived_at' => :'DateTime' } @@ -81,10 +85,16 @@ if (value = attributes[:'properties']).is_a?(Hash) self.properties = value end end + if attributes.key?(:'properties_with_history') + if (value = attributes[:'properties_with_history']).is_a?(Hash) + self.properties_with_history = value + end + end + if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'updated_at') @@ -138,10 +148,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && properties == o.properties && + properties_with_history == o.properties_with_history && created_at == o.created_at && updated_at == o.updated_at && archived == o.archived && archived_at == o.archived_at end @@ -153,10 +164,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, properties, created_at, updated_at, archived, archived_at].hash + [id, properties, properties_with_history, created_at, updated_at, archived, archived_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself