lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-13.1.0 vs lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-14.0.0

- old
+ new

@@ -60,13 +60,19 @@ attr_accessor :auto_generated # The source provider for the email. attr_accessor :provider + # The UUID of the script to use. + attr_accessor :script_id + # The id of the peer communication corresponding to a matching leg for this communication. attr_accessor :peer_id + # A globally unique identifier for the stored content of this communication. + attr_accessor :message_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -97,12 +103,16 @@ :'auto_generated' => :'autoGenerated', :'provider' => :'provider', - :'peer_id' => :'peerId' + :'script_id' => :'scriptId', + :'peer_id' => :'peerId', + + :'message_id' => :'messageId' + } end # Attribute type mapping. def self.swagger_types @@ -136,12 +146,16 @@ :'auto_generated' => :'BOOLEAN', :'provider' => :'String', - :'peer_id' => :'String' + :'script_id' => :'String', + :'peer_id' => :'String', + + :'message_id' => :'String' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -287,19 +301,37 @@ end + if attributes.has_key?(:'scriptId') + + + self.script_id = attributes[:'scriptId'] + + + end + + if attributes.has_key?(:'peerId') self.peer_id = attributes[:'peerId'] end + if attributes.has_key?(:'messageId') + + + self.message_id = attributes[:'messageId'] + + + end + + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -390,10 +422,18 @@ + + + + + + + + end # Custom attribute writer method checking allowed values (enum). @@ -500,10 +540,20 @@ + + + + + + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -520,11 +570,13 @@ start_hold_time == o.start_hold_time && connected_time == o.connected_time && disconnected_time == o.disconnected_time && auto_generated == o.auto_generated && provider == o.provider && - peer_id == o.peer_id + script_id == o.script_id && + peer_id == o.peer_id && + message_id == o.message_id end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -532,10 +584,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [state, id, held, subject, messages_sent, segments, direction, recording_id, error_info, disconnect_type, start_hold_time, connected_time, disconnected_time, auto_generated, provider, peer_id].hash + [state, id, held, subject, messages_sent, segments, direction, recording_id, error_info, disconnect_type, start_hold_time, connected_time, disconnected_time, auto_generated, provider, script_id, peer_id, message_id].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)