lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-2.0.40 vs lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-3.0.0
- old
+ new
@@ -72,10 +72,13 @@
attr_accessor :fax_status
# The source provider for the call.
attr_accessor :provider
+ # The UUID of the script to use.
+ attr_accessor :script_id
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
:'id' => :'id',
@@ -93,11 +96,12 @@
:'document_id' => :'documentId',
:'connected_time' => :'connectedTime',
:'disconnected_time' => :'disconnectedTime',
:'disconnect_reasons' => :'disconnectReasons',
:'fax_status' => :'faxStatus',
- :'provider' => :'provider'
+ :'provider' => :'provider',
+ :'script_id' => :'scriptId'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -118,11 +122,12 @@
:'document_id' => :'String',
:'connected_time' => :'DateTime',
:'disconnected_time' => :'DateTime',
:'disconnect_reasons' => :'Array<DisconnectReason>',
:'fax_status' => :'FaxStatus',
- :'provider' => :'String'
+ :'provider' => :'String',
+ :'script_id' => :'String'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -210,10 +215,14 @@
if attributes.has_key?(:'provider')
self.provider = attributes[:'provider']
end
+ if attributes.has_key?(:'scriptId')
+ self.script_id = attributes[:'scriptId']
+ 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
@@ -303,11 +312,12 @@
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 &&
- provider == o.provider
+ provider == o.provider &&
+ script_id == o.script_id
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -315,10 +325,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].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
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)