lib/smooch-api/models/integration_create.rb in smooch-api-1.3.0 vs lib/smooch-api/models/integration_create.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
@@ -61,11 +61,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
{
:'type' => :'type',
:'page_access_token' => :'pageAccessToken',
@@ -80,11 +92,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
@@ -102,11 +118,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
@@ -178,10 +198,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
@@ -218,11 +254,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)
@@ -230,10 +270,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].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
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself