lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/email.rb in purecloudplatformclientv2-7.0.0
- old
+ new
@@ -60,10 +60,13 @@
attr_accessor :auto_generated
# The source provider for the email.
attr_accessor :provider
+ # The id of the peer communication corresponding to a matching leg for this communication.
+ attr_accessor :peer_id
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
:'id' => :'id',
@@ -77,11 +80,12 @@
:'disconnect_type' => :'disconnectType',
:'start_hold_time' => :'startHoldTime',
:'connected_time' => :'connectedTime',
:'disconnected_time' => :'disconnectedTime',
:'auto_generated' => :'autoGenerated',
- :'provider' => :'provider'
+ :'provider' => :'provider',
+ :'peer_id' => :'peerId'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -98,11 +102,12 @@
:'disconnect_type' => :'String',
:'start_hold_time' => :'DateTime',
:'connected_time' => :'DateTime',
:'disconnected_time' => :'DateTime',
:'auto_generated' => :'BOOLEAN',
- :'provider' => :'String'
+ :'provider' => :'String',
+ :'peer_id' => :'String'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -172,10 +177,14 @@
if attributes.has_key?(:'provider')
self.provider = attributes[:'provider']
end
+ if attributes.has_key?(:'peerId')
+ self.peer_id = attributes[:'peerId']
+ 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
@@ -247,11 +256,12 @@
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
+ provider == o.provider &&
+ peer_id == o.peer_id
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -259,10 +269,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].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
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)