lib/smooch-api/models/integration.rb in smooch-api-2.9.0 vs lib/smooch-api/models/integration.rb in smooch-api-2.11.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: 2.9
+OpenAPI spec version: 2.11
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -133,20 +133,29 @@
attr_accessor :display_style
# With the button style Web Messenger, you have the option of selecting your own button icon. (Optional) Used for *Web Messenger* integrations.
attr_accessor :button_icon_url
+ # With the button style Web Messenger, you have the option of specifying its width. (Optional) Used for *Web Messenger* integrations.
+ attr_accessor :button_width
+
+ # With the button style Web Messenger, you have the option of specifying its height. (Optional) Used for *Web Messenger* integrations.
+ attr_accessor :button_height
+
# A custom business name for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
attr_accessor :integration_order
# A custom business name for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
attr_accessor :business_name
# A custom business icon url for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
attr_accessor :business_icon_url
+ # A custom background url for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
+ attr_accessor :background_image_url
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'_id' => :'_id',
:'type' => :'type',
@@ -186,13 +195,16 @@
:'brand_color' => :'brandColor',
:'conversation_color' => :'conversationColor',
:'action_color' => :'actionColor',
:'display_style' => :'displayStyle',
:'button_icon_url' => :'buttonIconUrl',
+ :'button_width' => :'buttonWidth',
+ :'button_height' => :'buttonHeight',
:'integration_order' => :'integrationOrder',
:'business_name' => :'businessName',
- :'business_icon_url' => :'businessIconUrl'
+ :'business_icon_url' => :'businessIconUrl',
+ :'background_image_url' => :'backgroundImageUrl'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -235,13 +247,16 @@
:'brand_color' => :'String',
:'conversation_color' => :'String',
:'action_color' => :'String',
:'display_style' => :'String',
:'button_icon_url' => :'String',
+ :'button_width' => :'String',
+ :'button_height' => :'String',
:'integration_order' => :'Array<String>',
:'business_name' => :'String',
- :'business_icon_url' => :'String'
+ :'business_icon_url' => :'String',
+ :'background_image_url' => :'String'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -409,10 +424,18 @@
if attributes.has_key?(:'buttonIconUrl')
self.button_icon_url = attributes[:'buttonIconUrl']
end
+ if attributes.has_key?(:'buttonWidth')
+ self.button_width = attributes[:'buttonWidth']
+ end
+
+ if attributes.has_key?(:'buttonHeight')
+ self.button_height = attributes[:'buttonHeight']
+ end
+
if attributes.has_key?(:'integrationOrder')
if (value = attributes[:'integrationOrder']).is_a?(Array)
self.integration_order = value
end
end
@@ -423,10 +446,14 @@
if attributes.has_key?(:'businessIconUrl')
self.business_icon_url = attributes[:'businessIconUrl']
end
+ if attributes.has_key?(:'backgroundImageUrl')
+ self.background_image_url = attributes[:'backgroundImageUrl']
+ 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
@@ -493,13 +520,16 @@
brand_color == o.brand_color &&
conversation_color == o.conversation_color &&
action_color == o.action_color &&
display_style == o.display_style &&
button_icon_url == o.button_icon_url &&
+ button_width == o.button_width &&
+ button_height == o.button_height &&
integration_order == o.integration_order &&
business_name == o.business_name &&
- business_icon_url == o.business_icon_url
+ business_icon_url == o.business_icon_url &&
+ background_image_url == o.background_image_url
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -507,10 +537,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [_id, type, page_access_token, app_id, app_secret, webhook_secret, page_id, account_sid, auth_token, phone_number_sid, phone_number, name, token, uri, channel_access_token, bot_name, encoding_aes_key, from_address, certificate, password, auto_update_badge, production, server_key, sender_id, consumer_key, consumer_secret, access_token_key, access_token_secret, user_id, username, api_key, domain, incoming_address, access_key, originator, brand_color, conversation_color, action_color, display_style, button_icon_url, integration_order, business_name, business_icon_url].hash
+ [_id, type, page_access_token, app_id, app_secret, webhook_secret, page_id, account_sid, auth_token, phone_number_sid, phone_number, name, token, uri, channel_access_token, bot_name, encoding_aes_key, from_address, certificate, password, auto_update_badge, production, server_key, sender_id, consumer_key, consumer_secret, access_token_key, access_token_secret, user_id, username, api_key, domain, incoming_address, access_key, originator, brand_color, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself