lib/purecloudplatformclientv2/models/recipient.rb in purecloudplatformclientv2-43.1.0 vs lib/purecloudplatformclientv2/models/recipient.rb in purecloudplatformclientv2-44.0.0
- old
+ new
@@ -36,10 +36,13 @@
attr_accessor :created_by
# User that modified this recipient
attr_accessor :modified_by
+ # The messenger type for this recipient
+ attr_accessor :messenger_type
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -57,10 +60,12 @@
:'created_by' => :'createdBy',
:'modified_by' => :'modifiedBy',
+ :'messenger_type' => :'messengerType',
+
:'self_uri' => :'selfUri'
}
end
@@ -80,10 +85,12 @@
:'created_by' => :'User',
:'modified_by' => :'User',
+ :'messenger_type' => :'String',
+
:'self_uri' => :'String'
}
end
@@ -157,10 +164,19 @@
end
+ if attributes.has_key?(:'messengerType')
+
+
+ self.messenger_type = attributes[:'messengerType']
+
+
+ end
+
+
if attributes.has_key?(:'selfUri')
self.self_uri = attributes[:'selfUri']
@@ -211,12 +227,21 @@
+ allowed_values = ["sms", "facebook", "twitter", "line", "whatsapp", "telegram", "kakao"]
+ if @messenger_type && !allowed_values.include?(@messenger_type)
+ return false
+ end
+
+
+
+
+
end
@@ -252,14 +277,28 @@
+ # Custom attribute writer method checking allowed values (enum).
+ # @param [Object] messenger_type Object to be assigned
+ def messenger_type=(messenger_type)
+ allowed_values = ["sms", "facebook", "twitter", "line", "whatsapp", "telegram", "kakao"]
+ if messenger_type && !allowed_values.include?(messenger_type)
+ fail ArgumentError, "invalid value for 'messenger_type', must be one of #{allowed_values}."
+ end
+ @messenger_type = messenger_type
+ end
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
@@ -268,10 +307,11 @@
flow == o.flow &&
date_created == o.date_created &&
date_modified == o.date_modified &&
created_by == o.created_by &&
modified_by == o.modified_by &&
+ messenger_type == o.messenger_type &&
self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -280,10 +320,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, flow, date_created, date_modified, created_by, modified_by, self_uri].hash
+ [id, name, flow, date_created, date_modified, created_by, modified_by, messenger_type, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)