lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-27.1.0 vs lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-28.0.0

- old
+ new

@@ -69,10 +69,13 @@ attr_accessor :peer_id # A globally unique identifier for the stored content of this communication. attr_accessor :message_id + # A list of uploaded attachments on the email draft. + attr_accessor :draft_attachments + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -107,12 +110,14 @@ :'script_id' => :'scriptId', :'peer_id' => :'peerId', - :'message_id' => :'messageId' + :'message_id' => :'messageId', + :'draft_attachments' => :'draftAttachments' + } end # Attribute type mapping. def self.swagger_types @@ -150,12 +155,14 @@ :'script_id' => :'String', :'peer_id' => :'String', - :'message_id' => :'String' + :'message_id' => :'String', + :'draft_attachments' => :'Array<Attachment>' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -328,10 +335,21 @@ end + if attributes.has_key?(:'draftAttachments') + + if (value = attributes[:'draftAttachments']).is_a?(Array) + self.draft_attachments = value + end + + + + 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 @@ -430,10 +448,14 @@ + + + + end # Custom attribute writer method checking allowed values (enum). @@ -550,10 +572,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 && @@ -572,11 +599,12 @@ disconnected_time == o.disconnected_time && auto_generated == o.auto_generated && provider == o.provider && script_id == o.script_id && peer_id == o.peer_id && - message_id == o.message_id + message_id == o.message_id && + draft_attachments == o.draft_attachments end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -584,10 +612,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, script_id, peer_id, message_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, draft_attachments].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)