lib/phrase/models/account_details.rb in phrase-2.0.0 vs lib/phrase/models/account_details.rb in phrase-2.1.0

- old
+ new

@@ -12,19 +12,25 @@ attr_accessor :created_at attr_accessor :updated_at + attr_accessor :company_logo_url + + attr_accessor :subscription + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'name' => :'name', :'slug' => :'slug', :'company' => :'company', :'created_at' => :'created_at', - :'updated_at' => :'updated_at' + :'updated_at' => :'updated_at', + :'company_logo_url' => :'company_logo_url', + :'subscription' => :'subscription' } end # Attribute type mapping. def self.openapi_types @@ -32,11 +38,13 @@ :'id' => :'String', :'name' => :'String', :'slug' => :'String', :'company' => :'String', :'created_at' => :'DateTime', - :'updated_at' => :'DateTime' + :'updated_at' => :'DateTime', + :'company_logo_url' => :'String', + :'subscription' => :'Subscription' } end # List of attributes with nullable: true def self.openapi_nullable @@ -88,10 +96,18 @@ end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] end + + if attributes.key?(:'company_logo_url') + self.company_logo_url = attributes[:'company_logo_url'] + end + + if attributes.key?(:'subscription') + self.subscription = attributes[:'subscription'] + 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 @@ -113,11 +129,13 @@ id == o.id && name == o.name && slug == o.slug && company == o.company && created_at == o.created_at && - updated_at == o.updated_at + updated_at == o.updated_at && + company_logo_url == o.company_logo_url && + subscription == o.subscription end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -125,10 +143,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, slug, company, created_at, updated_at].hash + [id, name, slug, company, created_at, updated_at, company_logo_url, subscription].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself