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

- old
+ new

@@ -26,10 +26,13 @@ attr_accessor :start_hold_time # 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 + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -52,12 +55,14 @@ :'disconnect_type' => :'disconnectType', :'start_hold_time' => :'startHoldTime', - :'connected_time' => :'connectedTime' + :'connected_time' => :'connectedTime', + :'disconnected_time' => :'disconnectedTime' + } end # Attribute type mapping. def self.swagger_types @@ -71,11 +76,12 @@ :'direction' => :'String', :'recording_id' => :'String', :'error_info' => :'ErrorBody', :'disconnect_type' => :'String', :'start_hold_time' => :'DateTime', - :'connected_time' => :'DateTime' + :'connected_time' => :'DateTime', + :'disconnected_time' => :'DateTime' } end def initialize(attributes = {}) @@ -135,10 +141,14 @@ if attributes[:'connectedTime'] self.connected_time = attributes[:'connectedTime'] end + if attributes[:'disconnectedTime'] + self.disconnected_time = attributes[:'disconnectedTime'] + end + end # Custom attribute writer method checking allowed values (enum). def state=(state) allowed_values = ["ALERTING", "CONNECTED", "DISCONNECTED", "NONE"] @@ -157,11 +167,11 @@ @direction = direction 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", "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 @@ -179,20 +189,21 @@ direction == o.direction && recording_id == o.recording_id && error_info == o.error_info && disconnect_type == o.disconnect_type && start_hold_time == o.start_hold_time && - connected_time == o.connected_time + connected_time == o.connected_time && + disconnected_time == o.disconnected_time end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [state, id, held, subject, messages_sent, segments, direction, recording_id, error_info, disconnect_type, start_hold_time, connected_time].hash + [state, id, held, subject, messages_sent, segments, direction, recording_id, error_info, disconnect_type, start_hold_time, connected_time, disconnected_time].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)