lib/smooch-api/models/message.rb in smooch-api-1.8.0 vs lib/smooch-api/models/message.rb in smooch-api-1.9.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.8 +OpenAPI spec version: 1.9 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -40,14 +40,14 @@ attr_accessor :avatar_url # The unix timestamp of the moment the message was received. attr_accessor :received - # The mediaUrl for the image. Required for image messages. + # The mediaUrl for the message. Required for image/file messages. attr_accessor :media_url - # The mediaType for the image. Required for image messages. + # The mediaType for the message. Required for image/file messages. attr_accessor :media_type # Flat JSON object containing any custom properties associated with the message. attr_accessor :metadata @@ -251,11 +251,11 @@ def valid? return false if @_id.nil? return false if @author_id.nil? return false if @role.nil? return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["text", "image", "carousel", "list"]) + type_validator = EnumAttributeValidator.new('String', ["text", "image", "carousel", "list", "file"]) return false unless type_validator.valid?(@type) return false if @name.nil? return false if @text.nil? return false if @avatar_url.nil? return false if @received.nil? @@ -263,10 +263,10 @@ end # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["text", "image", "carousel", "list"]) + validator = EnumAttributeValidator.new('String', ["text", "image", "carousel", "list", "file"]) unless validator.valid?(type) fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end