lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-5.1.1 vs lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-6.0.0

- old
+ new

@@ -2,11 +2,11 @@ PureCloud Platform API With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more. OpenAPI spec version: v2 -Contact: DeveloperEvangelists@inin.com +Contact: DeveloperEvangelists@genesys.com Generated by: https://github.com/swagger-api/swagger-codegen.git License: ININ http://www.inin.com @@ -54,10 +54,13 @@ attr_accessor :connected_time # The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :disconnected_time + # Indicates that the email was auto-generated like an Out of Office reply. + attr_accessor :auto_generated + # The source provider for the email. attr_accessor :provider # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -73,10 +76,11 @@ :'error_info' => :'errorInfo', :'disconnect_type' => :'disconnectType', :'start_hold_time' => :'startHoldTime', :'connected_time' => :'connectedTime', :'disconnected_time' => :'disconnectedTime', + :'auto_generated' => :'autoGenerated', :'provider' => :'provider' } end # Attribute type mapping. @@ -93,10 +97,11 @@ :'error_info' => :'ErrorBody', :'disconnect_type' => :'String', :'start_hold_time' => :'DateTime', :'connected_time' => :'DateTime', :'disconnected_time' => :'DateTime', + :'auto_generated' => :'BOOLEAN', :'provider' => :'String' } end # Initializes the object @@ -159,10 +164,14 @@ if attributes.has_key?(:'disconnectedTime') self.disconnected_time = attributes[:'disconnectedTime'] end + if attributes.has_key?(:'autoGenerated') + self.auto_generated = attributes[:'autoGenerated'] + end + if attributes.has_key?(:'provider') self.provider = attributes[:'provider'] end end @@ -237,10 +246,11 @@ error_info == o.error_info && disconnect_type == o.disconnect_type && 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 end # @see the `==` method # @param [Object] Object to be compared @@ -249,10 +259,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, provider].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].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)