lib/purecloud/models/call.rb in purecloud-0.48.1 vs lib/purecloud/models/call.rb in purecloud-0.49.1
- old
+ new
@@ -53,10 +53,12 @@
# 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
+ attr_accessor :fax_status
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -89,12 +91,14 @@
:'connected_time' => :'connectedTime',
:'disconnected_time' => :'disconnectedTime',
- :'disconnect_reasons' => :'disconnectReasons'
+ :'disconnect_reasons' => :'disconnectReasons',
+ :'fax_status' => :'faxStatus'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -113,11 +117,12 @@
:'disconnect_type' => :'String',
:'start_hold_time' => :'DateTime',
:'document_id' => :'String',
:'connected_time' => :'DateTime',
:'disconnected_time' => :'DateTime',
- :'disconnect_reasons' => :'Array<DisconnectReason>'
+ :'disconnect_reasons' => :'Array<DisconnectReason>',
+ :'fax_status' => :'FaxStatus'
}
end
def initialize(attributes = {})
@@ -205,10 +210,14 @@
if (value = attributes[:'disconnectReasons']).is_a?(Array)
self.disconnect_reasons = value
end
end
+ if attributes[:'faxStatus']
+ self.fax_status = attributes[:'faxStatus']
+ end
+
end
# Custom attribute writer method checking allowed values (enum).
def state=(state)
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "CONVERTING", "UPLOADING", "TRANSMITTING", "NONE"]
@@ -236,11 +245,11 @@
@recording_state = recording_state
end
# Custom attribute writer method checking allowed values (enum).
def disconnect_type=(disconnect_type)
- allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "ERROR", "PEER", "OTHER"]
+ allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM"]
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
@@ -263,20 +272,21 @@
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
+ disconnect_reasons == o.disconnect_reasons &&
+ fax_status == o.fax_status
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, disconnected_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, fax_status].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)