lib/smooch-api/models/integration.rb in smooch-api-4.1.0 vs lib/smooch-api/models/integration.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 @@ -14,44 +14,44 @@ module SmoochApi class Integration # The integration ID, generated automatically. - attr_accessor :_id + attr_accessor :id # The integration type. attr_accessor :type # Facebook Page Access Token. Required for *messenger* integrations. - attr_accessor :page_access_token + attr_accessor :pageAccessToken # Facebook App ID OR WeChat App ID. Required for *messenger* and *wechat* integrations. - attr_accessor :app_id + attr_accessor :appId # Facebook Page App Secret OR WeChat App Secret. Required for *messenger* and *wechat* integrations. - attr_accessor :app_secret + attr_accessor :appSecret # Optional endpoint to generate access tokens for WeChat. Used to coordinate API access with third party systems. - attr_accessor :access_token_url + attr_accessor :accessTokenUrl # Secret to verify webhooks. Returned on successful *wechat* and *messagebird* integrations. - attr_accessor :webhook_secret + attr_accessor :webhookSecret # Facebook Page App ID. Returned on successful *messenger* integrations. - attr_accessor :page_id + attr_accessor :pageId # Twilio Account SID. Required for *twilio* integrations. - attr_accessor :account_sid + attr_accessor :accountSid # Twilio Auth Token. Required for *twilio* integrations. - attr_accessor :auth_token + attr_accessor :authToken # SID for specific phone number. Required for *twilio* integrations. - attr_accessor :phone_number_sid + attr_accessor :phoneNumberSid # Smooch will receive all messages sent to this phone number. Returned on successful *twilio* integrations. - attr_accessor :phone_number + attr_accessor :phoneNumber # Name on the account. Returned on successful *twilio* integrations. attr_accessor :name # Telegram Bot Token OR Viber Public Account token. Required for *twilio* and *viber* integrations. @@ -59,128 +59,128 @@ # The viber URI to find the account. Returned on successful *viber* integrations. attr_accessor :uri # LINE Channel ID. Required for *line* integrations. - attr_accessor :channel_id + attr_accessor :channelId # LINE Channel Secret. Required for *line* integrations. - attr_accessor :channel_secret + attr_accessor :channelSecret # LINE Channel Access Token. Required for *line* integrations. - attr_accessor :channel_access_token + attr_accessor :channelAccessToken # The bot's name. Returned on successful *line* integrations. - attr_accessor :bot_name + attr_accessor :botName # AES Encoding Key. (Optional) Used for *wechat* integrations. - attr_accessor :encoding_aes_key + attr_accessor :encodingAesKey # Email will display as coming from this address. (Optional) Used for *frontendEmail* integrations. - attr_accessor :from_address + attr_accessor :fromAddress # The binary of your APN certificate base64 encoded. Required for *apn* integrations. attr_accessor :certificate # Your WhatsApp API client's URL. Required for *WhatsApp* integrations. - attr_accessor :base_url + attr_accessor :baseUrl # Specification of a fallback language. (Optional) Used for *WhatsApp* integrations. - attr_accessor :hsm_fallback_language + attr_accessor :hsmFallbackLanguage # 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 + attr_accessor :autoUpdateBadge # Flag specifying whether the certificate is production. Returned on successful *apn* integrations. attr_accessor :production # Your server key from the fcm console. Required for *fcm* integrations. - attr_accessor :server_key + attr_accessor :serverKey # Your sender id from the fcm console. Required for *fcm* integrations. - attr_accessor :sender_id + attr_accessor :senderId # Your Twitter app’s tier. Accepted values are enterprise or premium. attr_accessor :tier # The Twitter environment name, e.g.: env-beta. Required for *twitter* integrations with *premium* tier. - attr_accessor :env_name + attr_accessor :envName # The consumer key for your Twitter app. Required for *twitter* integrations. - attr_accessor :consumer_key + attr_accessor :consumerKey # The consumer secret for your Twitter app. Required for *twitter* integrations. - attr_accessor :consumer_secret + attr_accessor :consumerSecret # The access token key obtained from your user via oauth. Required for *twitter* integrations. - attr_accessor :access_token_key + attr_accessor :accessTokenKey # The access token secret obtained from your user via oauth. Required for *twitter* integrations. - attr_accessor :access_token_secret + attr_accessor :accessTokenSecret # The twitter userId. Returned on successful *twitter* integrations. - attr_accessor :user_id + attr_accessor :userId # 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 + attr_accessor :apiKey # The domain used to relay email. Required for *mailgun* integrations. attr_accessor :domain # Smooch will receive all emails sent to this address. Required for *mailgun* integrations. - attr_accessor :incoming_address + attr_accessor :incomingAddress # The public API key of your MessageBird account. Required for *messagebird* integrations. - attr_accessor :access_key + attr_accessor :accessKey # Smooch will receive all messages sent to this phone number. Required for *messagebird* integrations. attr_accessor :originator # This color will be used in the messenger header and the button or tab in idle state. (Optional) Used for *Web Messenger* integrations. - attr_accessor :brand_color + attr_accessor :brandColor # When `true`, the introduction pane will be pinned at the top of the conversation instead of scrolling with it. The default value is `false`. (Optional) Used for *Web Messenger* integrations. - attr_accessor :fixed_intro_pane + attr_accessor :fixedIntroPane # This color will be used for customer messages, quick replies and actions in the footer. (Optional) Used for *Web Messenger* integrations. - attr_accessor :conversation_color + attr_accessor :conversationColor # This color will be used for call-to-actions inside your messages. (Optional) Used for *Web Messenger* integrations. - attr_accessor :action_color + attr_accessor :actionColor # Choose how the messenger will appear on your website. Must be either button or tab. (Optional) Used for *Web Messenger* integrations. - attr_accessor :display_style + attr_accessor :displayStyle # 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 + attr_accessor :buttonIconUrl # With the button style Web Messenger, you have the option of specifying its width. (Optional) Used for *Web Messenger* integrations. - attr_accessor :button_width + attr_accessor :buttonWidth # With the button style Web Messenger, you have the option of specifying its height. (Optional) Used for *Web Messenger* integrations. - attr_accessor :button_height + attr_accessor :buttonHeight # Array of integration IDs, order will be reflected in the Web Messenger. When set, only integrations from this list will be displayed in the Web Messenger. If unset, all integrations will be displayed (Optional) Used for *Web Messenger* integrations. - attr_accessor :integration_order + attr_accessor :integrationOrder # A custom business name for the Web Messenger. (Optional) Used for *Web Messenger* integrations. - attr_accessor :business_name + attr_accessor :businessName # A custom business icon url for the Web Messenger. (Optional) Used for *Web Messenger* integrations. - attr_accessor :business_icon_url + attr_accessor :businessIconUrl # A custom background url for the Web Messenger. (Optional) Used for *Web Messenger* integrations. - attr_accessor :background_image_url + attr_accessor :backgroundImageUrl # A list of origins to whitelist. When set, only the origins from this list will be able to initialize the Web Messenger. If unset, all origins are whitelisted. The elements in the list should follow the serialized-origin format from RFC 6454 `scheme \"://\" host [ \":\" port ]`, where scheme is `http` or `https`. (Optional) Used for *Web Messenger* integrations. - attr_accessor :origin_whitelist + attr_accessor :originWhitelist # The integration status. Possible values are active, inactive or error. [More info](https://docs.smooch.io/#integration-status). attr_accessor :status # The error causing the integration to fail. Will be present when `status` is 'error'. @@ -188,128 +188,128 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'_id' => :'_id', + :'id' => :'_id', :'type' => :'type', - :'page_access_token' => :'pageAccessToken', - :'app_id' => :'appId', - :'app_secret' => :'appSecret', - :'access_token_url' => :'accessTokenUrl', - :'webhook_secret' => :'webhookSecret', - :'page_id' => :'pageId', - :'account_sid' => :'accountSid', - :'auth_token' => :'authToken', - :'phone_number_sid' => :'phoneNumberSid', - :'phone_number' => :'phoneNumber', + :'pageAccessToken' => :'pageAccessToken', + :'appId' => :'appId', + :'appSecret' => :'appSecret', + :'accessTokenUrl' => :'accessTokenUrl', + :'webhookSecret' => :'webhookSecret', + :'pageId' => :'pageId', + :'accountSid' => :'accountSid', + :'authToken' => :'authToken', + :'phoneNumberSid' => :'phoneNumberSid', + :'phoneNumber' => :'phoneNumber', :'name' => :'name', :'token' => :'token', :'uri' => :'uri', - :'channel_id' => :'channelId', - :'channel_secret' => :'channelSecret', - :'channel_access_token' => :'channelAccessToken', - :'bot_name' => :'botName', - :'encoding_aes_key' => :'encodingAesKey', - :'from_address' => :'fromAddress', + :'channelId' => :'channelId', + :'channelSecret' => :'channelSecret', + :'channelAccessToken' => :'channelAccessToken', + :'botName' => :'botName', + :'encodingAesKey' => :'encodingAesKey', + :'fromAddress' => :'fromAddress', :'certificate' => :'certificate', - :'base_url' => :'baseUrl', - :'hsm_fallback_language' => :'hsmFallbackLanguage', + :'baseUrl' => :'baseUrl', + :'hsmFallbackLanguage' => :'hsmFallbackLanguage', :'password' => :'password', - :'auto_update_badge' => :'autoUpdateBadge', + :'autoUpdateBadge' => :'autoUpdateBadge', :'production' => :'production', - :'server_key' => :'serverKey', - :'sender_id' => :'senderId', + :'serverKey' => :'serverKey', + :'senderId' => :'senderId', :'tier' => :'tier', - :'env_name' => :'envName', - :'consumer_key' => :'consumerKey', - :'consumer_secret' => :'consumerSecret', - :'access_token_key' => :'accessTokenKey', - :'access_token_secret' => :'accessTokenSecret', - :'user_id' => :'userId', + :'envName' => :'envName', + :'consumerKey' => :'consumerKey', + :'consumerSecret' => :'consumerSecret', + :'accessTokenKey' => :'accessTokenKey', + :'accessTokenSecret' => :'accessTokenSecret', + :'userId' => :'userId', :'username' => :'username', - :'api_key' => :'apiKey', + :'apiKey' => :'apiKey', :'domain' => :'domain', - :'incoming_address' => :'incomingAddress', - :'access_key' => :'accessKey', + :'incomingAddress' => :'incomingAddress', + :'accessKey' => :'accessKey', :'originator' => :'originator', - :'brand_color' => :'brandColor', - :'fixed_intro_pane' => :'fixedIntroPane', - :'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', - :'background_image_url' => :'backgroundImageUrl', - :'origin_whitelist' => :'originWhitelist', + :'brandColor' => :'brandColor', + :'fixedIntroPane' => :'fixedIntroPane', + :'conversationColor' => :'conversationColor', + :'actionColor' => :'actionColor', + :'displayStyle' => :'displayStyle', + :'buttonIconUrl' => :'buttonIconUrl', + :'buttonWidth' => :'buttonWidth', + :'buttonHeight' => :'buttonHeight', + :'integrationOrder' => :'integrationOrder', + :'businessName' => :'businessName', + :'businessIconUrl' => :'businessIconUrl', + :'backgroundImageUrl' => :'backgroundImageUrl', + :'originWhitelist' => :'originWhitelist', :'status' => :'status', :'error' => :'error' } end # Attribute type mapping. def self.swagger_types { - :'_id' => :'String', + :'id' => :'String', :'type' => :'String', - :'page_access_token' => :'String', - :'app_id' => :'String', - :'app_secret' => :'String', - :'access_token_url' => :'String', - :'webhook_secret' => :'String', - :'page_id' => :'String', - :'account_sid' => :'String', - :'auth_token' => :'String', - :'phone_number_sid' => :'String', - :'phone_number' => :'String', + :'pageAccessToken' => :'String', + :'appId' => :'String', + :'appSecret' => :'String', + :'accessTokenUrl' => :'String', + :'webhookSecret' => :'String', + :'pageId' => :'String', + :'accountSid' => :'String', + :'authToken' => :'String', + :'phoneNumberSid' => :'String', + :'phoneNumber' => :'String', :'name' => :'String', :'token' => :'String', :'uri' => :'String', - :'channel_id' => :'String', - :'channel_secret' => :'String', - :'channel_access_token' => :'String', - :'bot_name' => :'String', - :'encoding_aes_key' => :'String', - :'from_address' => :'String', + :'channelId' => :'String', + :'channelSecret' => :'String', + :'channelAccessToken' => :'String', + :'botName' => :'String', + :'encodingAesKey' => :'String', + :'fromAddress' => :'String', :'certificate' => :'String', - :'base_url' => :'String', - :'hsm_fallback_language' => :'String', + :'baseUrl' => :'String', + :'hsmFallbackLanguage' => :'String', :'password' => :'String', - :'auto_update_badge' => :'BOOLEAN', + :'autoUpdateBadge' => :'BOOLEAN', :'production' => :'BOOLEAN', - :'server_key' => :'String', - :'sender_id' => :'String', + :'serverKey' => :'String', + :'senderId' => :'String', :'tier' => :'String', - :'env_name' => :'String', - :'consumer_key' => :'String', - :'consumer_secret' => :'String', - :'access_token_key' => :'String', - :'access_token_secret' => :'String', - :'user_id' => :'String', + :'envName' => :'String', + :'consumerKey' => :'String', + :'consumerSecret' => :'String', + :'accessTokenKey' => :'String', + :'accessTokenSecret' => :'String', + :'userId' => :'String', :'username' => :'String', - :'api_key' => :'String', + :'apiKey' => :'String', :'domain' => :'String', - :'incoming_address' => :'String', - :'access_key' => :'String', + :'incomingAddress' => :'String', + :'accessKey' => :'String', :'originator' => :'String', - :'brand_color' => :'String', - :'fixed_intro_pane' => :'BOOLEAN', - :'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', - :'background_image_url' => :'String', - :'origin_whitelist' => :'Array<String>', + :'brandColor' => :'String', + :'fixedIntroPane' => :'BOOLEAN', + :'conversationColor' => :'String', + :'actionColor' => :'String', + :'displayStyle' => :'String', + :'buttonIconUrl' => :'String', + :'buttonWidth' => :'String', + :'buttonHeight' => :'String', + :'integrationOrder' => :'Array<String>', + :'businessName' => :'String', + :'businessIconUrl' => :'String', + :'backgroundImageUrl' => :'String', + :'originWhitelist' => :'Array<String>', :'status' => :'String', :'error' => :'String' } end @@ -320,55 +320,55 @@ # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'_id') - self._id = attributes[:'_id'] + self.id = attributes[:'_id'] end if attributes.has_key?(:'type') self.type = attributes[:'type'] end if attributes.has_key?(:'pageAccessToken') - self.page_access_token = attributes[:'pageAccessToken'] + self.pageAccessToken = attributes[:'pageAccessToken'] end if attributes.has_key?(:'appId') - self.app_id = attributes[:'appId'] + self.appId = attributes[:'appId'] end if attributes.has_key?(:'appSecret') - self.app_secret = attributes[:'appSecret'] + self.appSecret = attributes[:'appSecret'] end if attributes.has_key?(:'accessTokenUrl') - self.access_token_url = attributes[:'accessTokenUrl'] + self.accessTokenUrl = attributes[:'accessTokenUrl'] end if attributes.has_key?(:'webhookSecret') - self.webhook_secret = attributes[:'webhookSecret'] + self.webhookSecret = attributes[:'webhookSecret'] end if attributes.has_key?(:'pageId') - self.page_id = attributes[:'pageId'] + self.pageId = attributes[:'pageId'] end if attributes.has_key?(:'accountSid') - self.account_sid = attributes[:'accountSid'] + self.accountSid = attributes[:'accountSid'] end if attributes.has_key?(:'authToken') - self.auth_token = attributes[:'authToken'] + self.authToken = attributes[:'authToken'] end if attributes.has_key?(:'phoneNumberSid') - self.phone_number_sid = attributes[:'phoneNumberSid'] + self.phoneNumberSid = attributes[:'phoneNumberSid'] end if attributes.has_key?(:'phoneNumber') - self.phone_number = attributes[:'phoneNumber'] + self.phoneNumber = attributes[:'phoneNumber'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end @@ -380,170 +380,170 @@ if attributes.has_key?(:'uri') self.uri = attributes[:'uri'] end if attributes.has_key?(:'channelId') - self.channel_id = attributes[:'channelId'] + self.channelId = attributes[:'channelId'] end if attributes.has_key?(:'channelSecret') - self.channel_secret = attributes[:'channelSecret'] + self.channelSecret = attributes[:'channelSecret'] end if attributes.has_key?(:'channelAccessToken') - self.channel_access_token = attributes[:'channelAccessToken'] + self.channelAccessToken = attributes[:'channelAccessToken'] end if attributes.has_key?(:'botName') - self.bot_name = attributes[:'botName'] + self.botName = attributes[:'botName'] end if attributes.has_key?(:'encodingAesKey') - self.encoding_aes_key = attributes[:'encodingAesKey'] + self.encodingAesKey = attributes[:'encodingAesKey'] end if attributes.has_key?(:'fromAddress') - self.from_address = attributes[:'fromAddress'] + self.fromAddress = attributes[:'fromAddress'] end if attributes.has_key?(:'certificate') self.certificate = attributes[:'certificate'] end if attributes.has_key?(:'baseUrl') - self.base_url = attributes[:'baseUrl'] + self.baseUrl = attributes[:'baseUrl'] end if attributes.has_key?(:'hsmFallbackLanguage') - self.hsm_fallback_language = attributes[:'hsmFallbackLanguage'] + self.hsmFallbackLanguage = attributes[:'hsmFallbackLanguage'] end if attributes.has_key?(:'password') self.password = attributes[:'password'] end if attributes.has_key?(:'autoUpdateBadge') - self.auto_update_badge = attributes[:'autoUpdateBadge'] + self.autoUpdateBadge = attributes[:'autoUpdateBadge'] end if attributes.has_key?(:'production') self.production = attributes[:'production'] end if attributes.has_key?(:'serverKey') - self.server_key = attributes[:'serverKey'] + self.serverKey = attributes[:'serverKey'] end if attributes.has_key?(:'senderId') - self.sender_id = attributes[:'senderId'] + self.senderId = attributes[:'senderId'] end if attributes.has_key?(:'tier') self.tier = attributes[:'tier'] end if attributes.has_key?(:'envName') - self.env_name = attributes[:'envName'] + self.envName = attributes[:'envName'] end if attributes.has_key?(:'consumerKey') - self.consumer_key = attributes[:'consumerKey'] + self.consumerKey = attributes[:'consumerKey'] end if attributes.has_key?(:'consumerSecret') - self.consumer_secret = attributes[:'consumerSecret'] + self.consumerSecret = attributes[:'consumerSecret'] end if attributes.has_key?(:'accessTokenKey') - self.access_token_key = attributes[:'accessTokenKey'] + self.accessTokenKey = attributes[:'accessTokenKey'] end if attributes.has_key?(:'accessTokenSecret') - self.access_token_secret = attributes[:'accessTokenSecret'] + self.accessTokenSecret = attributes[:'accessTokenSecret'] end if attributes.has_key?(:'userId') - self.user_id = attributes[:'userId'] + self.userId = attributes[:'userId'] end if attributes.has_key?(:'username') self.username = attributes[:'username'] end if attributes.has_key?(:'apiKey') - self.api_key = attributes[:'apiKey'] + self.apiKey = attributes[:'apiKey'] end if attributes.has_key?(:'domain') self.domain = attributes[:'domain'] end if attributes.has_key?(:'incomingAddress') - self.incoming_address = attributes[:'incomingAddress'] + self.incomingAddress = attributes[:'incomingAddress'] end if attributes.has_key?(:'accessKey') - self.access_key = attributes[:'accessKey'] + self.accessKey = attributes[:'accessKey'] end if attributes.has_key?(:'originator') self.originator = attributes[:'originator'] end if attributes.has_key?(:'brandColor') - self.brand_color = attributes[:'brandColor'] + self.brandColor = attributes[:'brandColor'] end if attributes.has_key?(:'fixedIntroPane') - self.fixed_intro_pane = attributes[:'fixedIntroPane'] + self.fixedIntroPane = attributes[:'fixedIntroPane'] end if attributes.has_key?(:'conversationColor') - self.conversation_color = attributes[:'conversationColor'] + self.conversationColor = attributes[:'conversationColor'] end if attributes.has_key?(:'actionColor') - self.action_color = attributes[:'actionColor'] + self.actionColor = attributes[:'actionColor'] end if attributes.has_key?(:'displayStyle') - self.display_style = attributes[:'displayStyle'] + self.displayStyle = attributes[:'displayStyle'] end if attributes.has_key?(:'buttonIconUrl') - self.button_icon_url = attributes[:'buttonIconUrl'] + self.buttonIconUrl = attributes[:'buttonIconUrl'] end if attributes.has_key?(:'buttonWidth') - self.button_width = attributes[:'buttonWidth'] + self.buttonWidth = attributes[:'buttonWidth'] end if attributes.has_key?(:'buttonHeight') - self.button_height = attributes[:'buttonHeight'] + self.buttonHeight = attributes[:'buttonHeight'] end if attributes.has_key?(:'integrationOrder') if (value = attributes[:'integrationOrder']).is_a?(Array) - self.integration_order = value + self.integrationOrder = value end end if attributes.has_key?(:'businessName') - self.business_name = attributes[:'businessName'] + self.businessName = attributes[:'businessName'] end if attributes.has_key?(:'businessIconUrl') - self.business_icon_url = attributes[:'businessIconUrl'] + self.businessIconUrl = attributes[:'businessIconUrl'] end if attributes.has_key?(:'backgroundImageUrl') - self.background_image_url = attributes[:'backgroundImageUrl'] + self.backgroundImageUrl = attributes[:'backgroundImageUrl'] end if attributes.has_key?(:'originWhitelist') if (value = attributes[:'originWhitelist']).is_a?(Array) - self.origin_whitelist = value + self.originWhitelist = value end end if attributes.has_key?(:'status') self.status = attributes[:'status'] @@ -557,12 +557,12 @@ # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties invalid_properties = Array.new - if @_id.nil? - invalid_properties.push("invalid value for '_id', _id cannot be nil.") + if @id.nil? + invalid_properties.push("invalid value for 'id', id cannot be nil.") end if @type.nil? invalid_properties.push("invalid value for 'type', type cannot be nil.") end @@ -571,75 +571,75 @@ end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @_id.nil? + return false if @id.nil? return false if @type.nil? return true end # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - _id == o._id && + id == o.id && type == o.type && - page_access_token == o.page_access_token && - app_id == o.app_id && - app_secret == o.app_secret && - access_token_url == o.access_token_url && - webhook_secret == o.webhook_secret && - page_id == o.page_id && - account_sid == o.account_sid && - auth_token == o.auth_token && - phone_number_sid == o.phone_number_sid && - phone_number == o.phone_number && + pageAccessToken == o.pageAccessToken && + appId == o.appId && + appSecret == o.appSecret && + accessTokenUrl == o.accessTokenUrl && + webhookSecret == o.webhookSecret && + pageId == o.pageId && + accountSid == o.accountSid && + authToken == o.authToken && + phoneNumberSid == o.phoneNumberSid && + phoneNumber == o.phoneNumber && name == o.name && token == o.token && uri == o.uri && - channel_id == o.channel_id && - channel_secret == o.channel_secret && - channel_access_token == o.channel_access_token && - bot_name == o.bot_name && - encoding_aes_key == o.encoding_aes_key && - from_address == o.from_address && + channelId == o.channelId && + channelSecret == o.channelSecret && + channelAccessToken == o.channelAccessToken && + botName == o.botName && + encodingAesKey == o.encodingAesKey && + fromAddress == o.fromAddress && certificate == o.certificate && - base_url == o.base_url && - hsm_fallback_language == o.hsm_fallback_language && + baseUrl == o.baseUrl && + hsmFallbackLanguage == o.hsmFallbackLanguage && password == o.password && - auto_update_badge == o.auto_update_badge && + autoUpdateBadge == o.autoUpdateBadge && production == o.production && - server_key == o.server_key && - sender_id == o.sender_id && + serverKey == o.serverKey && + senderId == o.senderId && tier == o.tier && - env_name == o.env_name && - consumer_key == o.consumer_key && - consumer_secret == o.consumer_secret && - access_token_key == o.access_token_key && - access_token_secret == o.access_token_secret && - user_id == o.user_id && + envName == o.envName && + consumerKey == o.consumerKey && + consumerSecret == o.consumerSecret && + accessTokenKey == o.accessTokenKey && + accessTokenSecret == o.accessTokenSecret && + userId == o.userId && username == o.username && - api_key == o.api_key && + apiKey == o.apiKey && domain == o.domain && - incoming_address == o.incoming_address && - access_key == o.access_key && + incomingAddress == o.incomingAddress && + accessKey == o.accessKey && originator == o.originator && - brand_color == o.brand_color && - fixed_intro_pane == o.fixed_intro_pane && - 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 && - background_image_url == o.background_image_url && - origin_whitelist == o.origin_whitelist && + brandColor == o.brandColor && + fixedIntroPane == o.fixedIntroPane && + conversationColor == o.conversationColor && + actionColor == o.actionColor && + displayStyle == o.displayStyle && + buttonIconUrl == o.buttonIconUrl && + buttonWidth == o.buttonWidth && + buttonHeight == o.buttonHeight && + integrationOrder == o.integrationOrder && + businessName == o.businessName && + businessIconUrl == o.businessIconUrl && + backgroundImageUrl == o.backgroundImageUrl && + originWhitelist == o.originWhitelist && status == o.status && error == o.error end # @see the `==` method @@ -649,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, 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 + [id, type, pageAccessToken, appId, appSecret, accessTokenUrl, webhookSecret, pageId, accountSid, authToken, phoneNumberSid, phoneNumber, name, token, uri, channelId, channelSecret, channelAccessToken, botName, encodingAesKey, fromAddress, certificate, baseUrl, hsmFallbackLanguage, password, autoUpdateBadge, production, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, userId, username, apiKey, domain, incomingAddress, accessKey, originator, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist, 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