lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-55.0.0 vs lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-56.0.0

- old
+ new

@@ -75,10 +75,13 @@ attr_accessor :message_id # A list of uploaded attachments on the email draft. attr_accessor :draft_attachments + # Indicates if the inbound email was marked as spam. + attr_accessor :spam + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -117,12 +120,14 @@ :'peer_id' => :'peerId', :'message_id' => :'messageId', - :'draft_attachments' => :'draftAttachments' + :'draft_attachments' => :'draftAttachments', + :'spam' => :'spam' + } end # Attribute type mapping. def self.swagger_types @@ -164,12 +169,14 @@ :'peer_id' => :'String', :'message_id' => :'String', - :'draft_attachments' => :'Array<Attachment>' + :'draft_attachments' => :'Array<Attachment>', + :'spam' => :'BOOLEAN' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -362,10 +369,19 @@ end + if attributes.has_key?(:'spam') + + + self.spam = attributes[:'spam'] + + + 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 @@ -472,10 +488,14 @@ + + + + end # Custom attribute writer method checking allowed values (enum). @@ -602,10 +622,15 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -626,11 +651,12 @@ auto_generated == o.auto_generated && provider == o.provider && script_id == o.script_id && peer_id == o.peer_id && message_id == o.message_id && - draft_attachments == o.draft_attachments + draft_attachments == o.draft_attachments && + spam == o.spam end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -638,10 +664,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, start_alerting_time, connected_time, disconnected_time, auto_generated, provider, script_id, peer_id, message_id, draft_attachments].hash + [state, id, held, subject, messages_sent, segments, direction, recording_id, error_info, disconnect_type, start_hold_time, start_alerting_time, connected_time, disconnected_time, auto_generated, provider, script_id, peer_id, message_id, draft_attachments, spam].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)