lib/smooch-api/models/message.rb in smooch-api-1.11.0 vs lib/smooch-api/models/message.rb in smooch-api-1.12.0
- old
+ new
@@ -1,11 +1,11 @@
=begin
#Smooch
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
-OpenAPI spec version: 1.11
+OpenAPI spec version: 1.12
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -25,10 +25,13 @@
attr_accessor :role
# The message type.
attr_accessor :type
+ # The source of the message.
+ attr_accessor :source
+
# The display name of the message author.
attr_accessor :name
# The message text. Required for text messages.
attr_accessor :text
@@ -90,10 +93,11 @@
{
:'_id' => :'_id',
:'author_id' => :'authorId',
:'role' => :'role',
:'type' => :'type',
+ :'source' => :'source',
:'name' => :'name',
:'text' => :'text',
:'email' => :'email',
:'avatar_url' => :'avatarUrl',
:'received' => :'received',
@@ -112,10 +116,11 @@
{
:'_id' => :'String',
:'author_id' => :'String',
:'role' => :'String',
:'type' => :'String',
+ :'source' => :'Source',
:'name' => :'String',
:'text' => :'String',
:'email' => :'String',
:'avatar_url' => :'String',
:'received' => :'Float',
@@ -151,10 +156,14 @@
if attributes.has_key?(:'type')
self.type = attributes[:'type']
end
+ if attributes.has_key?(:'source')
+ self.source = attributes[:'source']
+ end
+
if attributes.has_key?(:'name')
self.name = attributes[:'name']
end
if attributes.has_key?(:'text')
@@ -279,10 +288,11 @@
self.class == o.class &&
_id == o._id &&
author_id == o.author_id &&
role == o.role &&
type == o.type &&
+ source == o.source &&
name == o.name &&
text == o.text &&
email == o.email &&
avatar_url == o.avatar_url &&
received == o.received &&
@@ -302,10 +312,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [_id, author_id, role, type, name, text, email, avatar_url, received, media_url, media_type, metadata, items, actions, payload, display_settings].hash
+ [_id, author_id, role, type, source, name, text, email, avatar_url, received, media_url, media_type, metadata, items, actions, payload, display_settings].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself