lib/smooch-api/models/integration.rb in smooch-api-3.17.0 vs lib/smooch-api/models/integration.rb in smooch-api-3.19.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: 3.17
+OpenAPI spec version: 3.19
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -79,11 +79,17 @@
attr_accessor :from_address
# The binary of your APN certificate base64 encoded. Required for *apn* integrations.
attr_accessor :certificate
- # The password for your APN certificate. (Optional) Used for *apn* integrations.
+ # Your WhatsApp API client's URL. Required for *WhatsApp* integrations.
+ attr_accessor :base_url
+
+ # Specification of a fallback language. (Optional) Used for *WhatsApp* integrations.
+ attr_accessor :hsm_fallback_language
+
+ # The password for your APN certificate or WhatsApp API client. Required for *WhatsApp* integrations. (Optional) Used for *apn* integrations.
attr_accessor :password
# Use the unread count of the conversation as the application badge. (Optional) Used for *apn* integrations.
attr_accessor :auto_update_badge
@@ -115,11 +121,11 @@
attr_accessor :access_token_secret
# The twitter userId. Returned on successful *twitter* integrations.
attr_accessor :user_id
- # The username for the account. Returned on successful *twitter* and *telegram* integrations.
+ # The username for the account. Required for *WhatsApp* integrations. Returned on successful *twitter* and *telegram* integrations.
attr_accessor :username
# The public API key of your Mailgun account. Required for *mailgun* integrations.
attr_accessor :api_key
@@ -204,10 +210,12 @@
:'channel_access_token' => :'channelAccessToken',
:'bot_name' => :'botName',
:'encoding_aes_key' => :'encodingAesKey',
:'from_address' => :'fromAddress',
:'certificate' => :'certificate',
+ :'base_url' => :'baseUrl',
+ :'hsm_fallback_language' => :'hsmFallbackLanguage',
:'password' => :'password',
:'auto_update_badge' => :'autoUpdateBadge',
:'production' => :'production',
:'server_key' => :'serverKey',
:'sender_id' => :'senderId',
@@ -265,10 +273,12 @@
:'channel_access_token' => :'String',
:'bot_name' => :'String',
:'encoding_aes_key' => :'String',
:'from_address' => :'String',
:'certificate' => :'String',
+ :'base_url' => :'String',
+ :'hsm_fallback_language' => :'String',
:'password' => :'String',
:'auto_update_badge' => :'BOOLEAN',
:'production' => :'BOOLEAN',
:'server_key' => :'String',
:'sender_id' => :'String',
@@ -397,10 +407,18 @@
if attributes.has_key?(:'certificate')
self.certificate = attributes[:'certificate']
end
+ if attributes.has_key?(:'baseUrl')
+ self.base_url = attributes[:'baseUrl']
+ end
+
+ if attributes.has_key?(:'hsmFallbackLanguage')
+ self.hsm_fallback_language = attributes[:'hsmFallbackLanguage']
+ end
+
if attributes.has_key?(:'password')
self.password = attributes[:'password']
end
if attributes.has_key?(:'autoUpdateBadge')
@@ -585,10 +603,12 @@
channel_access_token == o.channel_access_token &&
bot_name == o.bot_name &&
encoding_aes_key == o.encoding_aes_key &&
from_address == o.from_address &&
certificate == o.certificate &&
+ base_url == o.base_url &&
+ hsm_fallback_language == o.hsm_fallback_language &&
password == o.password &&
auto_update_badge == o.auto_update_badge &&
production == o.production &&
server_key == o.server_key &&
sender_id == o.sender_id &&
@@ -629,10 +649,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [_id, type, page_access_token, app_id, app_secret, access_token_url, webhook_secret, page_id, account_sid, auth_token, phone_number_sid, phone_number, name, token, uri, channel_id, channel_secret, channel_access_token, bot_name, encoding_aes_key, from_address, certificate, password, auto_update_badge, production, server_key, sender_id, tier, env_name, consumer_key, consumer_secret, access_token_key, access_token_secret, user_id, username, api_key, domain, incoming_address, access_key, originator, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist, status, error].hash
+ [_id, type, page_access_token, app_id, app_secret, access_token_url, webhook_secret, page_id, account_sid, auth_token, phone_number_sid, phone_number, name, token, uri, channel_id, channel_secret, channel_access_token, bot_name, encoding_aes_key, from_address, certificate, base_url, hsm_fallback_language, password, auto_update_badge, production, server_key, sender_id, tier, env_name, consumer_key, consumer_secret, access_token_key, access_token_secret, user_id, username, api_key, domain, incoming_address, access_key, originator, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist, status, error].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself