lib/smooch-api/models/integration.rb in smooch-api-1.3.0 vs lib/smooch-api/models/integration.rb in smooch-api-1.4.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.3 +OpenAPI spec version: 1.4 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -64,11 +64,23 @@ attr_accessor :server_key # Your sender id from the fcm console. Required for *fcm* integrations. attr_accessor :sender_id + # The consumer key for your Twitter app. Required for *twitter* integrations. + attr_accessor :consumer_key + # The consumer secret for your Twitter app. Required for *twitter* integrations. + attr_accessor :consumer_secret + + # The access token key obtained from your user via oauth. Required for *twitter* integrations. + attr_accessor :access_token_key + + # The access token secret obtained from your user via oauth. Required for *twitter* integrations. + attr_accessor :access_token_secret + + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'_id' => :'_id', :'type' => :'type', @@ -84,11 +96,15 @@ :'from_address' => :'fromAddress', :'certificate' => :'certificate', :'password' => :'password', :'auto_update_badge' => :'autoUpdateBadge', :'server_key' => :'serverKey', - :'sender_id' => :'senderId' + :'sender_id' => :'senderId', + :'consumer_key' => :'consumerKey', + :'consumer_secret' => :'consumerSecret', + :'access_token_key' => :'accessTokenKey', + :'access_token_secret' => :'accessTokenSecret' } end # Attribute type mapping. def self.swagger_types @@ -107,11 +123,15 @@ :'from_address' => :'String', :'certificate' => :'String', :'password' => :'String', :'auto_update_badge' => :'BOOLEAN', :'server_key' => :'String', - :'sender_id' => :'String' + :'sender_id' => :'String', + :'consumer_key' => :'String', + :'consumer_secret' => :'String', + :'access_token_key' => :'String', + :'access_token_secret' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -187,10 +207,26 @@ if attributes.has_key?(:'senderId') self.sender_id = attributes[:'senderId'] end + if attributes.has_key?(:'consumerKey') + self.consumer_key = attributes[:'consumerKey'] + end + + if attributes.has_key?(:'consumerSecret') + self.consumer_secret = attributes[:'consumerSecret'] + end + + if attributes.has_key?(:'accessTokenKey') + self.access_token_key = attributes[:'accessTokenKey'] + end + + if attributes.has_key?(:'accessTokenSecret') + self.access_token_secret = attributes[:'accessTokenSecret'] + 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 @@ -233,11 +269,15 @@ from_address == o.from_address && certificate == o.certificate && password == o.password && auto_update_badge == o.auto_update_badge && server_key == o.server_key && - sender_id == o.sender_id + sender_id == o.sender_id && + consumer_key == o.consumer_key && + consumer_secret == o.consumer_secret && + access_token_key == o.access_token_key && + access_token_secret == o.access_token_secret end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -245,10 +285,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_id, type, page_access_token, app_id, app_secret, account_sid, auth_token, phone_number_sid, token, channel_access_token, encoding_aes_key, from_address, certificate, password, auto_update_badge, server_key, sender_id].hash + [_id, type, page_access_token, app_id, app_secret, account_sid, auth_token, phone_number_sid, token, channel_access_token, encoding_aes_key, from_address, certificate, password, auto_update_badge, server_key, sender_id, consumer_key, consumer_secret, access_token_key, access_token_secret].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself