lib/purecloud/models/call.rb in purecloud-0.32.1 vs lib/purecloud/models/call.rb in purecloud-0.33.1

- old
+ new

@@ -32,10 +32,13 @@ attr_accessor :document_id # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :connected_time + # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + attr_accessor :disconnected_time + attr_accessor :disconnect_reasons # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -68,10 +71,12 @@ :'document_id' => :'documentId', :'connected_time' => :'connectedTime', + :'disconnected_time' => :'disconnectedTime', + :'disconnect_reasons' => :'disconnectReasons' } end @@ -91,10 +96,11 @@ :'error_info' => :'ErrorBody', :'disconnect_type' => :'String', :'start_hold_time' => :'DateTime', :'document_id' => :'String', :'connected_time' => :'DateTime', + :'disconnected_time' => :'DateTime', :'disconnect_reasons' => :'Array<DisconnectReason>' } end @@ -173,10 +179,14 @@ if attributes[:'connectedTime'] self.connected_time = attributes[:'connectedTime'] end + if attributes[:'disconnectedTime'] + self.disconnected_time = attributes[:'disconnectedTime'] + end + if attributes[:'disconnectReasons'] if (value = attributes[:'disconnectReasons']).is_a?(Array) self.disconnect_reasons = value end end @@ -210,11 +220,11 @@ @recording_state = recording_state end # Custom attribute writer method checking allowed values (enum). def disconnect_type=(disconnect_type) - allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "ERROR", "PEER", "OTHER"] + allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "ERROR", "PEER", "OTHER"] if disconnect_type && !allowed_values.include?(disconnect_type) fail "invalid value for 'disconnect_type', must be one of #{allowed_values}" end @disconnect_type = disconnect_type end @@ -236,20 +246,21 @@ error_info == o.error_info && disconnect_type == o.disconnect_type && start_hold_time == o.start_hold_time && document_id == o.document_id && connected_time == o.connected_time && + disconnected_time == o.disconnected_time && disconnect_reasons == o.disconnect_reasons end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. 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, disconnect_reasons].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].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)