lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-96.0.0 vs lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-98.0.0

- old
+ new

@@ -96,10 +96,16 @@ attr_accessor :wrapup # After-call work for the communication. attr_accessor :after_call_work + # Indicates if after-call work is required for a communication. Only used when the ACW Setting is Agent Requested. + attr_accessor :after_call_work_required + + # UUID of virtual agent assistant that provide suggestions to the agent participant during the conversation. + attr_accessor :agent_assistant_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -152,12 +158,16 @@ :'other' => :'other', :'wrapup' => :'wrapup', - :'after_call_work' => :'afterCallWork' + :'after_call_work' => :'afterCallWork', + :'after_call_work_required' => :'afterCallWorkRequired', + + :'agent_assistant_id' => :'agentAssistantId' + } end # Attribute type mapping. def self.swagger_types @@ -213,12 +223,16 @@ :'other' => :'Address', :'wrapup' => :'Wrapup', - :'after_call_work' => :'AfterCallWork' + :'after_call_work' => :'AfterCallWork', + :'after_call_work_required' => :'BOOLEAN', + + :'agent_assistant_id' => :'String' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -474,10 +488,28 @@ end + if attributes.has_key?(:'afterCallWorkRequired') + + + self.after_call_work_required = attributes[:'afterCallWorkRequired'] + + + end + + + if attributes.has_key?(:'agentAssistantId') + + + self.agent_assistant_id = attributes[:'agentAssistantId'] + + + 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 @@ -617,10 +649,18 @@ + + + + + + + + end # Custom attribute writer method checking allowed values (enum). @@ -791,10 +831,20 @@ + + + + + + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -822,11 +872,13 @@ peer_id == o.peer_id && uui_data == o.uui_data && _self == o._self && other == o.other && wrapup == o.wrapup && - after_call_work == o.after_call_work + after_call_work == o.after_call_work && + after_call_work_required == o.after_call_work_required && + agent_assistant_id == o.agent_assistant_id end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -834,10 +886,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, after_call_work].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, after_call_work_required, agent_assistant_id].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)