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

- old
+ new

@@ -88,10 +88,13 @@ 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 + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -138,12 +141,14 @@ :'peer_id' => :'peerId', :'wrapup' => :'wrapup', - :'after_call_work' => :'afterCallWork' + :'after_call_work' => :'afterCallWork', + :'after_call_work_required' => :'afterCallWorkRequired' + } end # Attribute type mapping. def self.swagger_types @@ -193,12 +198,14 @@ :'peer_id' => :'String', :'wrapup' => :'Wrapup', - :'after_call_work' => :'AfterCallWork' + :'after_call_work' => :'AfterCallWork', + :'after_call_work_required' => :'BOOLEAN' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -427,10 +434,19 @@ end + if attributes.has_key?(:'afterCallWorkRequired') + + + self.after_call_work_required = attributes[:'afterCallWorkRequired'] + + + 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 @@ -553,10 +569,14 @@ + + + + end # Custom attribute writer method checking allowed values (enum). @@ -703,10 +723,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 && @@ -731,11 +756,12 @@ callback_scheduled_time == o.callback_scheduled_time && automated_callback_config_id == o.automated_callback_config_id && provider == o.provider && peer_id == o.peer_id && 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 end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -743,10 +769,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [state, id, segments, direction, held, disconnect_type, start_hold_time, dialer_preview, voicemail, callback_numbers, callback_user_name, script_id, external_campaign, skip_enabled, timeout_seconds, start_alerting_time, connected_time, disconnected_time, callback_scheduled_time, automated_callback_config_id, provider, peer_id, wrapup, after_call_work].hash + [state, id, segments, direction, held, disconnect_type, start_hold_time, dialer_preview, voicemail, callback_numbers, callback_user_name, script_id, external_campaign, skip_enabled, timeout_seconds, start_alerting_time, connected_time, disconnected_time, callback_scheduled_time, automated_callback_config_id, provider, peer_id, wrapup, after_call_work, after_call_work_required].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)