lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-93.0.0 vs lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-94.0.0
- old
+ new
@@ -93,10 +93,13 @@
attr_accessor :other
# Call wrap up or disposition data.
attr_accessor :wrapup
+ # After-call work for the communication.
+ attr_accessor :after_call_work
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -147,12 +150,14 @@
:'_self' => :'self',
:'other' => :'other',
- :'wrapup' => :'wrapup'
+ :'wrapup' => :'wrapup',
+ :'after_call_work' => :'afterCallWork'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -206,12 +211,14 @@
:'_self' => :'Address',
:'other' => :'Address',
- :'wrapup' => :'Wrapup'
+ :'wrapup' => :'Wrapup',
+ :'after_call_work' => :'AfterCallWork'
+
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -458,10 +465,19 @@
end
+ if attributes.has_key?(:'afterCallWork')
+
+
+ self.after_call_work = attributes[:'afterCallWork']
+
+
+ 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
@@ -597,10 +613,14 @@
+
+
+
+
end
# Custom attribute writer method checking allowed values (enum).
@@ -766,10 +786,15 @@
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
@@ -796,11 +821,12 @@
script_id == o.script_id &&
peer_id == o.peer_id &&
uui_data == o.uui_data &&
_self == o._self &&
other == o.other &&
- wrapup == o.wrapup
+ wrapup == o.wrapup &&
+ after_call_work == o.after_call_work
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -808,10 +834,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, start_alerting_time, connected_time, disconnected_time, disconnect_reasons, fax_status, provider, script_id, peer_id, uui_data, _self, other, wrapup].hash
+ [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, start_alerting_time, connected_time, disconnected_time, disconnect_reasons, fax_status, provider, script_id, peer_id, uui_data, _self, other, wrapup, after_call_work].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)