lib/purecloud/models/call.rb in purecloud-0.52.1 vs lib/purecloud/models/call.rb in purecloud-0.53.1
- old
+ new
@@ -69,10 +69,13 @@
attr_accessor :disconnect_reasons
# Extra information on fax transmission.
attr_accessor :fax_status
+ # The source provider for the call.
+ attr_accessor :provider
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -107,12 +110,14 @@
:'disconnected_time' => :'disconnectedTime',
:'disconnect_reasons' => :'disconnectReasons',
- :'fax_status' => :'faxStatus'
+ :'fax_status' => :'faxStatus',
+ :'provider' => :'provider'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -132,11 +137,12 @@
:'start_hold_time' => :'DateTime',
:'document_id' => :'String',
:'connected_time' => :'DateTime',
:'disconnected_time' => :'DateTime',
:'disconnect_reasons' => :'Array<DisconnectReason>',
- :'fax_status' => :'FaxStatus'
+ :'fax_status' => :'FaxStatus',
+ :'provider' => :'String'
}
end
def initialize(attributes = {})
@@ -228,10 +234,14 @@
if attributes[:'faxStatus']
self.fax_status = attributes[:'faxStatus']
end
+ if attributes[:'provider']
+ self.provider = attributes[:'provider']
+ 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"]
@@ -287,20 +297,21 @@
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 &&
- fax_status == o.fax_status
+ fax_status == o.fax_status &&
+ provider == o.provider
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, fax_status].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].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)