lib/purecloud/models/conversation_notification_wrapup.rb in purecloud-0.68.1 vs lib/purecloud/models/conversation_notification_wrapup.rb in purecloud-0.69.1

- old
+ new

@@ -16,50 +16,50 @@ require 'date' module PureCloud class ConversationNotificationWrapup - attr_accessor :tags + attr_accessor :code + attr_accessor :notes + attr_accessor :duration_seconds - attr_accessor :additional_properties - - attr_accessor :code - attr_accessor :end_time - attr_accessor :notes + attr_accessor :additional_properties + attr_accessor :tags + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'tags' => :'tags', + :'code' => :'code', + :'notes' => :'notes', + :'duration_seconds' => :'durationSeconds', - :'additional_properties' => :'additionalProperties', - - :'code' => :'code', - :'end_time' => :'endTime', - :'notes' => :'notes' + :'additional_properties' => :'additionalProperties', + :'tags' => :'tags' + } end # Attribute type mapping. def self.swagger_types { - :'tags' => :'Array<String>', - :'duration_seconds' => :'Integer', - :'additional_properties' => :'Object', :'code' => :'String', + :'notes' => :'String', + :'duration_seconds' => :'Integer', :'end_time' => :'DateTime', - :'notes' => :'String' + :'additional_properties' => :'Object', + :'tags' => :'Array<String>' } end def initialize(attributes = {}) @@ -67,57 +67,57 @@ # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} - if attributes[:'tags'] - if (value = attributes[:'tags']).is_a?(Array) - self.tags = value - end + if attributes[:'code'] + self.code = attributes[:'code'] end + if attributes[:'notes'] + self.notes = attributes[:'notes'] + end + if attributes[:'durationSeconds'] self.duration_seconds = attributes[:'durationSeconds'] end - if attributes[:'additionalProperties'] - self.additional_properties = attributes[:'additionalProperties'] - end - - if attributes[:'code'] - self.code = attributes[:'code'] - end - if attributes[:'endTime'] self.end_time = attributes[:'endTime'] end - if attributes[:'notes'] - self.notes = attributes[:'notes'] + if attributes[:'additionalProperties'] + self.additional_properties = attributes[:'additionalProperties'] end + if attributes[:'tags'] + if (value = attributes[:'tags']).is_a?(Array) + self.tags = value + end + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && - tags == o.tags && - duration_seconds == o.duration_seconds && - additional_properties == o.additional_properties && code == o.code && + notes == o.notes && + duration_seconds == o.duration_seconds && end_time == o.end_time && - notes == o.notes + additional_properties == o.additional_properties && + tags == o.tags end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [tags, duration_seconds, additional_properties, code, end_time, notes].hash + [code, notes, duration_seconds, end_time, additional_properties, tags].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)