lib/purecloudplatformclientv2/models/trust_user.rb in purecloudplatformclientv2-36.1.0 vs lib/purecloudplatformclientv2/models/trust_user.rb in purecloudplatformclientv2-37.0.0
- old
+ new
@@ -21,10 +21,13 @@
# The globally unique identifier for the object.
attr_accessor :id
attr_accessor :name
+ # The division to which this entity belongs.
+ attr_accessor :division
+
attr_accessor :chat
attr_accessor :department
attr_accessor :email
@@ -90,10 +93,12 @@
:'id' => :'id',
:'name' => :'name',
+ :'division' => :'division',
+
:'chat' => :'chat',
:'department' => :'department',
:'email' => :'email',
@@ -147,10 +152,12 @@
:'id' => :'String',
:'name' => :'String',
+ :'division' => :'Division',
+
:'chat' => :'Chat',
:'department' => :'String',
:'email' => :'String',
@@ -223,10 +230,19 @@
end
+ if attributes.has_key?(:'division')
+
+
+ self.division = attributes[:'division']
+
+
+ end
+
+
if attributes.has_key?(:'chat')
self.chat = attributes[:'chat']
@@ -487,10 +503,14 @@
+
+
+
+
allowed_values = ["active", "inactive", "deleted"]
if @state && !allowed_values.include?(@state)
return false
end
@@ -606,10 +626,15 @@
+
+
+
+
+
# Custom attribute writer method checking allowed values (enum).
# @param [Object] state Object to be assigned
def state=(state)
allowed_values = ["active", "inactive", "deleted"]
if state && !allowed_values.include?(state)
@@ -711,10 +736,11 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
name == o.name &&
+ division == o.division &&
chat == o.chat &&
department == o.department &&
email == o.email &&
primary_contact_info == o.primary_contact_info &&
addresses == o.addresses &&
@@ -745,10 +771,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, chat, department, email, primary_contact_info, addresses, state, title, username, manager, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, locations, groups, acd_auto_answer, trust_user_details].hash
+ [id, name, division, chat, department, email, primary_contact_info, addresses, state, title, username, manager, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, locations, groups, acd_auto_answer, trust_user_details].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)