lib/purecloudplatformclientv2/models/evaluation.rb in purecloudplatformclientv2-77.0.0 vs lib/purecloudplatformclientv2/models/evaluation.rb in purecloudplatformclientv2-78.0.0
- old
+ new
@@ -58,10 +58,13 @@
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
+ # End date of conversation if it had completed before evaluation creation. Null if created before the conversation ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :conversation_end_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
@@ -113,10 +116,12 @@
:'rescore' => :'rescore',
:'conversation_date' => :'conversationDate',
+ :'conversation_end_date' => :'conversationEndDate',
+
:'never_release' => :'neverRelease',
:'resource_id' => :'resourceId',
:'resource_type' => :'resourceType',
@@ -166,10 +171,12 @@
:'rescore' => :'BOOLEAN',
:'conversation_date' => :'DateTime',
+ :'conversation_end_date' => :'DateTime',
+
:'never_release' => :'BOOLEAN',
:'resource_id' => :'String',
:'resource_type' => :'String',
@@ -345,10 +352,19 @@
end
+ if attributes.has_key?(:'conversationEndDate')
+
+
+ self.conversation_end_date = attributes[:'conversationEndDate']
+
+
+ end
+
+
if attributes.has_key?(:'neverRelease')
self.never_release = attributes[:'neverRelease']
@@ -497,10 +513,14 @@
+
+
+
+
allowed_values = ["EMAIL"]
if @resource_type && !allowed_values.include?(@resource_type)
return false
end
@@ -624,10 +644,15 @@
+
+
+
+
+
# 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)
@@ -674,10 +699,11 @@
changed_date == o.changed_date &&
queue == o.queue &&
media_type == o.media_type &&
rescore == o.rescore &&
conversation_date == o.conversation_date &&
+ conversation_end_date == o.conversation_end_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 &&
@@ -691,10 +717,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, media_type, rescore, conversation_date, 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, conversation_end_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)