lib/smooch-api/models/integration_create.rb in smooch-api-2.5.0 vs lib/smooch-api/models/integration_create.rb in smooch-api-2.6.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.5 +OpenAPI spec version: 2.6 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -73,11 +73,17 @@ attr_accessor :access_token_key # The access token secret obtained from your user via oauth. Required for *twitter* integrations. attr_accessor :access_token_secret + # The public API key of your MessageBird account. Required for *messagebird* integrations. + attr_accessor :access_key + # Smooch will receive all messages sent to this phone number. Required for *messagebird* integrations. + attr_accessor :originator + + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', :'page_access_token' => :'pageAccessToken', @@ -96,11 +102,13 @@ :'server_key' => :'serverKey', :'sender_id' => :'senderId', :'consumer_key' => :'consumerKey', :'consumer_secret' => :'consumerSecret', :'access_token_key' => :'accessTokenKey', - :'access_token_secret' => :'accessTokenSecret' + :'access_token_secret' => :'accessTokenSecret', + :'access_key' => :'accessKey', + :'originator' => :'originator' } end # Attribute type mapping. def self.swagger_types @@ -122,11 +130,13 @@ :'server_key' => :'String', :'sender_id' => :'String', :'consumer_key' => :'String', :'consumer_secret' => :'String', :'access_token_key' => :'String', - :'access_token_secret' => :'String' + :'access_token_secret' => :'String', + :'access_key' => :'String', + :'originator' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -214,10 +224,18 @@ if attributes.has_key?(:'accessTokenSecret') self.access_token_secret = attributes[:'accessTokenSecret'] end + if attributes.has_key?(:'accessKey') + self.access_key = attributes[:'accessKey'] + end + + if attributes.has_key?(:'originator') + self.originator = attributes[:'originator'] + 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 @@ -258,11 +276,13 @@ server_key == o.server_key && 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 + access_token_secret == o.access_token_secret && + access_key == o.access_key && + originator == o.originator end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -270,10 +290,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [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, access_key, originator].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself