lib/smooch-api/models/message_item.rb in smooch-api-4.1.0 vs lib/smooch-api/models/message_item.rb in smooch-api-4.2.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: 4.1 +OpenAPI spec version: 4.2 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -20,42 +20,42 @@ # The text description, or subtitle. attr_accessor :description # The image URL to be shown in the carousel/list item. - attr_accessor :media_url + attr_accessor :mediaUrl # The size of the image to be shown in the carousel/list item. Only top item of Facebook Messenger carousel supported. Choose from *compact* and *large*. attr_accessor :size # If a *mediaUrl* was specified, the media type is defined here, for example *image/jpeg*. - attr_accessor :media_type + attr_accessor :mediaType # Array of [action buttons](https://docs.smooch.io/rest/#action-buttons). At least 1 is required, a maximum of 3 are allowed. attr_accessor :actions # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'title' => :'title', :'description' => :'description', - :'media_url' => :'mediaUrl', + :'mediaUrl' => :'mediaUrl', :'size' => :'size', - :'media_type' => :'mediaType', + :'mediaType' => :'mediaType', :'actions' => :'actions' } end # Attribute type mapping. def self.swagger_types { :'title' => :'String', :'description' => :'String', - :'media_url' => :'String', + :'mediaUrl' => :'String', :'size' => :'String', - :'media_type' => :'String', + :'mediaType' => :'String', :'actions' => :'Array<Action>' } end # Initializes the object @@ -73,19 +73,19 @@ if attributes.has_key?(:'description') self.description = attributes[:'description'] end if attributes.has_key?(:'mediaUrl') - self.media_url = attributes[:'mediaUrl'] + self.mediaUrl = attributes[:'mediaUrl'] end if attributes.has_key?(:'size') self.size = attributes[:'size'] end if attributes.has_key?(:'mediaType') - self.media_type = attributes[:'mediaType'] + self.mediaType = attributes[:'mediaType'] end if attributes.has_key?(:'actions') if (value = attributes[:'actions']).is_a?(Array) self.actions = value @@ -122,13 +122,13 @@ def ==(o) return true if self.equal?(o) self.class == o.class && title == o.title && description == o.description && - media_url == o.media_url && + mediaUrl == o.mediaUrl && size == o.size && - media_type == o.media_type && + mediaType == o.mediaType && actions == o.actions end # @see the `==` method # @param [Object] Object to be compared @@ -137,10 +137,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [title, description, media_url, size, media_type, actions].hash + [title, description, mediaUrl, size, mediaType, actions].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself