lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-7.0.0

- old
+ new

@@ -75,10 +75,13 @@ 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 + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', :'id' => :'id', @@ -97,11 +100,12 @@ :'connected_time' => :'connectedTime', :'disconnected_time' => :'disconnectedTime', :'disconnect_reasons' => :'disconnectReasons', :'fax_status' => :'faxStatus', :'provider' => :'provider', - :'script_id' => :'scriptId' + :'script_id' => :'scriptId', + :'peer_id' => :'peerId' } end # Attribute type mapping. def self.swagger_types @@ -123,11 +127,12 @@ :'connected_time' => :'DateTime', :'disconnected_time' => :'DateTime', :'disconnect_reasons' => :'Array<DisconnectReason>', :'fax_status' => :'FaxStatus', :'provider' => :'String', - :'script_id' => :'String' + :'script_id' => :'String', + :'peer_id' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -219,10 +224,14 @@ if attributes.has_key?(:'scriptId') self.script_id = attributes[:'scriptId'] 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 @@ -313,11 +322,12 @@ connected_time == o.connected_time && disconnected_time == o.disconnected_time && disconnect_reasons == o.disconnect_reasons && fax_status == o.fax_status && provider == o.provider && - script_id == o.script_id + script_id == o.script_id && + peer_id == o.peer_id end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -325,10 +335,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, connected_time, disconnected_time, disconnect_reasons, fax_status, provider, script_id].hash + [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, connected_time, disconnected_time, disconnect_reasons, fax_status, provider, script_id, peer_id].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)