lib/smooch-api/models/message.rb in smooch-api-5.12.0 vs lib/smooch-api/models/message.rb in smooch-api-5.13.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: 5.12
+OpenAPI spec version: 5.13
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -64,11 +64,26 @@
attr_accessor :payload
# Settings to adjust the carousel layout. See [Display Settings](https://docs.smooch.io/rest/#display-settings).
attr_accessor :displaySettings
+ # Indicates if the Web SDK chat input should be blocked. Defaults to false. Only for form messages.
+ attr_accessor :blockChatInput
+ # The fields in the form. Required for form and formResponse messages.
+ attr_accessor :fields
+
+ # Indicates if the form was submitted. Generated automatically.
+ attr_accessor :submitted
+
+ # The form message a formResponse message responds to. Required for formResponse messages.
+ attr_accessor :quotedMessage
+
+ # The text fallback displayed in channels that do not support form messages. Only for formResponse messages. Generated automatically.
+ attr_accessor :textFallback
+
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'_id',
:'authorId' => :'authorId',
@@ -84,11 +99,16 @@
:'mediaType' => :'mediaType',
:'metadata' => :'metadata',
:'items' => :'items',
:'actions' => :'actions',
:'payload' => :'payload',
- :'displaySettings' => :'displaySettings'
+ :'displaySettings' => :'displaySettings',
+ :'blockChatInput' => :'blockChatInput',
+ :'fields' => :'fields',
+ :'submitted' => :'submitted',
+ :'quotedMessage' => :'quotedMessage',
+ :'textFallback' => :'textFallback'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -107,11 +127,16 @@
:'mediaType' => :'String',
:'metadata' => :'Object',
:'items' => :'Array<MessageItem>',
:'actions' => :'Array<Action>',
:'payload' => :'String',
- :'displaySettings' => :'DisplaySettings'
+ :'displaySettings' => :'DisplaySettings',
+ :'blockChatInput' => :'BOOLEAN',
+ :'fields' => :'Array<Field>',
+ :'submitted' => :'BOOLEAN',
+ :'quotedMessage' => :'QuotedMessage',
+ :'textFallback' => :'String'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -191,10 +216,32 @@
if attributes.has_key?(:'displaySettings')
self.displaySettings = attributes[:'displaySettings']
end
+ if attributes.has_key?(:'blockChatInput')
+ self.blockChatInput = attributes[:'blockChatInput']
+ end
+
+ if attributes.has_key?(:'fields')
+ if (value = attributes[:'fields']).is_a?(Array)
+ self.fields = value
+ end
+ end
+
+ if attributes.has_key?(:'submitted')
+ self.submitted = attributes[:'submitted']
+ end
+
+ if attributes.has_key?(:'quotedMessage')
+ self.quotedMessage = attributes[:'quotedMessage']
+ end
+
+ if attributes.has_key?(:'textFallback')
+ self.textFallback = attributes[:'textFallback']
+ end
+
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properies with the reasons
def list_invalid_properties
@@ -267,11 +314,16 @@
mediaType == o.mediaType &&
metadata == o.metadata &&
items == o.items &&
actions == o.actions &&
payload == o.payload &&
- displaySettings == o.displaySettings
+ displaySettings == o.displaySettings &&
+ blockChatInput == o.blockChatInput &&
+ fields == o.fields &&
+ submitted == o.submitted &&
+ quotedMessage == o.quotedMessage &&
+ textFallback == o.textFallback
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -279,10 +331,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, authorId, role, type, source, name, text, email, avatarUrl, received, mediaUrl, mediaType, metadata, items, actions, payload, displaySettings].hash
+ [id, authorId, role, type, source, name, text, email, avatarUrl, received, mediaUrl, mediaType, metadata, items, actions, payload, displaySettings, blockChatInput, fields, submitted, quotedMessage, textFallback].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself