lib/phrase/models/invitation.rb in phrase-1.0.10 vs lib/phrase/models/invitation.rb in phrase-1.0.11

- old
+ new

@@ -12,31 +12,37 @@ attr_accessor :projects attr_accessor :locales + attr_accessor :default_locale_codes + attr_accessor :permissions attr_accessor :created_at attr_accessor :updated_at attr_accessor :accepted_at + attr_accessor :spaces + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'email' => :'email', :'role' => :'role', :'state' => :'state', :'projects' => :'projects', :'locales' => :'locales', + :'default_locale_codes' => :'default_locale_codes', :'permissions' => :'permissions', :'created_at' => :'created_at', :'updated_at' => :'updated_at', - :'accepted_at' => :'accepted_at' + :'accepted_at' => :'accepted_at', + :'spaces' => :'spaces' } end # Attribute type mapping. def self.openapi_types @@ -45,14 +51,16 @@ :'email' => :'String', :'role' => :'String', :'state' => :'String', :'projects' => :'Array<ProjectShort>', :'locales' => :'Array<LocalePreview>', + :'default_locale_codes' => :'Array<String>', :'permissions' => :'Object', :'created_at' => :'DateTime', :'updated_at' => :'DateTime', - :'accepted_at' => :'DateTime' + :'accepted_at' => :'DateTime', + :'spaces' => :'Array<MemberSpaces>' } end # List of attributes with nullable: true def self.openapi_nullable @@ -101,10 +109,16 @@ if (value = attributes[:'locales']).is_a?(Array) self.locales = value end end + if attributes.key?(:'default_locale_codes') + if (value = attributes[:'default_locale_codes']).is_a?(Array) + self.default_locale_codes = value + end + end + if attributes.key?(:'permissions') self.permissions = attributes[:'permissions'] end if attributes.key?(:'created_at') @@ -116,10 +130,16 @@ end if attributes.key?(:'accepted_at') self.accepted_at = attributes[:'accepted_at'] end + + if attributes.key?(:'spaces') + if (value = attributes[:'spaces']).is_a?(Array) + self.spaces = value + end + 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 @@ -142,14 +162,16 @@ email == o.email && role == o.role && state == o.state && projects == o.projects && locales == o.locales && + default_locale_codes == o.default_locale_codes && permissions == o.permissions && created_at == o.created_at && updated_at == o.updated_at && - accepted_at == o.accepted_at + accepted_at == o.accepted_at && + spaces == o.spaces end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -157,10 +179,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, email, role, state, projects, locales, permissions, created_at, updated_at, accepted_at].hash + [id, email, role, state, projects, locales, default_locale_codes, permissions, created_at, updated_at, accepted_at, spaces].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself