lib/purecloudplatformclientv2/models/analytics_participant.rb in purecloudplatformclientv2-62.0.0 vs lib/purecloudplatformclientv2/models/analytics_participant.rb in purecloudplatformclientv2-63.0.0
- old
+ new
@@ -22,10 +22,13 @@
attr_accessor :participant_id
# A human readable name identifying the participant
attr_accessor :participant_name
+ # List of attributes associated to this participant
+ attr_accessor :attributes
+
# If a user, then this will be the unique identifier for the user
attr_accessor :user_id
# The participant's purpose
attr_accessor :purpose
@@ -48,10 +51,12 @@
:'participant_id' => :'participantId',
:'participant_name' => :'participantName',
+ :'attributes' => :'attributes',
+
:'user_id' => :'userId',
:'purpose' => :'purpose',
:'external_contact_id' => :'externalContactId',
@@ -71,10 +76,12 @@
:'participant_id' => :'String',
:'participant_name' => :'String',
+ :'attributes' => :'Hash<String, String>',
+
:'user_id' => :'String',
:'purpose' => :'String',
:'external_contact_id' => :'String',
@@ -113,10 +120,21 @@
end
+ if attributes.has_key?(:'attributes')
+
+ if (value = attributes[:'attributes']).is_a?(Array)
+ self.attributes = value
+ end
+
+
+
+ end
+
+
if attributes.has_key?(:'userId')
self.user_id = attributes[:'userId']
@@ -198,11 +216,15 @@
- allowed_values = ["manual", "dialer", "inbound", "acd", "ivr", "voicemail", "outbound", "agent", "user", "station", "group", "customer", "external", "fax", "workflow", "campaign"]
+
+
+
+
+ allowed_values = ["manual", "dialer", "inbound", "acd", "ivr", "voicemail", "outbound", "agent", "user", "station", "group", "customer", "external", "fax", "workflow", "campaign", "api"]
if @purpose && !allowed_values.include?(@purpose)
return false
end
@@ -245,14 +267,19 @@
+
+
+
+
+
# Custom attribute writer method checking allowed values (enum).
# @param [Object] purpose Object to be assigned
def purpose=(purpose)
- allowed_values = ["manual", "dialer", "inbound", "acd", "ivr", "voicemail", "outbound", "agent", "user", "station", "group", "customer", "external", "fax", "workflow", "campaign"]
+ allowed_values = ["manual", "dialer", "inbound", "acd", "ivr", "voicemail", "outbound", "agent", "user", "station", "group", "customer", "external", "fax", "workflow", "campaign", "api"]
if purpose && !allowed_values.include?(purpose)
fail ArgumentError, "invalid value for 'purpose', must be one of #{allowed_values}."
end
@purpose = purpose
end
@@ -294,10 +321,11 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
participant_id == o.participant_id &&
participant_name == o.participant_name &&
+ attributes == o.attributes &&
user_id == o.user_id &&
purpose == o.purpose &&
external_contact_id == o.external_contact_id &&
external_organization_id == o.external_organization_id &&
flagged_reason == o.flagged_reason &&
@@ -311,10 +339,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [participant_id, participant_name, user_id, purpose, external_contact_id, external_organization_id, flagged_reason, sessions].hash
+ [participant_id, participant_name, attributes, user_id, purpose, external_contact_id, external_organization_id, flagged_reason, sessions].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)