lib/purecloudplatformclientv2/models/evaluation.rb in purecloudplatformclientv2-56.0.0 vs lib/purecloudplatformclientv2/models/evaluation.rb in purecloudplatformclientv2-57.0.0

- old
+ new

@@ -49,10 +49,19 @@ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :changed_date attr_accessor :queue + # List of different communication types used in conversation. + attr_accessor :media_type + + # Is only true when evaluation is re-scored. + attr_accessor :rescore + + # Date of conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + attr_accessor :conversation_date + # Signifies if the evaluation is never to be released. This cannot be set true if release date is also set. attr_accessor :never_release # Only used for email evaluations. Will be null for all other evaluations. attr_accessor :resource_id @@ -98,10 +107,16 @@ :'changed_date' => :'changedDate', :'queue' => :'queue', + :'media_type' => :'mediaType', + + :'rescore' => :'rescore', + + :'conversation_date' => :'conversationDate', + :'never_release' => :'neverRelease', :'resource_id' => :'resourceId', :'resource_type' => :'resourceType', @@ -145,10 +160,16 @@ :'changed_date' => :'DateTime', :'queue' => :'Queue', + :'media_type' => :'Array<String>', + + :'rescore' => :'BOOLEAN', + + :'conversation_date' => :'DateTime', + :'never_release' => :'BOOLEAN', :'resource_id' => :'String', :'resource_type' => :'String', @@ -295,10 +316,39 @@ end + if attributes.has_key?(:'mediaType') + + if (value = attributes[:'mediaType']).is_a?(Array) + self.media_type = value + end + + + + end + + + if attributes.has_key?(:'rescore') + + + self.rescore = attributes[:'rescore'] + + + end + + + if attributes.has_key?(:'conversationDate') + + + self.conversation_date = attributes[:'conversationDate'] + + + end + + if attributes.has_key?(:'neverRelease') self.never_release = attributes[:'neverRelease'] @@ -435,10 +485,22 @@ + + + + + + + + + + + + allowed_values = ["EMAIL"] if @resource_type && !allowed_values.include?(@resource_type) return false end @@ -547,10 +609,25 @@ + + + + + + + + + + + + + + + # Custom attribute writer method checking allowed values (enum). # @param [Object] resource_type Object to be assigned def resource_type=(resource_type) allowed_values = ["EMAIL"] if resource_type && !allowed_values.include?(resource_type) @@ -594,10 +671,13 @@ agent_has_read == o.agent_has_read && release_date == o.release_date && assigned_date == o.assigned_date && changed_date == o.changed_date && queue == o.queue && + media_type == o.media_type && + rescore == o.rescore && + conversation_date == o.conversation_date && never_release == o.never_release && resource_id == o.resource_id && resource_type == o.resource_type && redacted == o.redacted && is_scoring_index == o.is_scoring_index && @@ -611,10 +691,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, conversation, evaluation_form, evaluator, agent, calibration, status, answers, agent_has_read, release_date, assigned_date, changed_date, queue, never_release, resource_id, resource_type, redacted, is_scoring_index, self_uri].hash + [id, name, conversation, evaluation_form, evaluator, agent, calibration, status, answers, agent_has_read, release_date, assigned_date, changed_date, queue, media_type, rescore, conversation_date, never_release, resource_id, resource_type, redacted, is_scoring_index, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)