lib/docusign_esign/models/user.rb in docusign_esign-3.0.0 vs lib/docusign_esign/models/user.rb in docusign_esign-3.1.0.pre.rc1
- old
+ new
@@ -1,11 +1,11 @@
=begin
#DocuSign REST API
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
-OpenAPI spec version: v2
+OpenAPI spec version: v2.1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
=end
@@ -13,10 +13,13 @@
module DocuSign_eSign
class User
#
+ attr_accessor :cell_phone_number
+
+ #
attr_accessor :country_code
#
attr_accessor :credentials
@@ -24,28 +27,35 @@
attr_accessor :display_name
#
attr_accessor :email
+ #
+ attr_accessor :external_claims
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
+ :'cell_phone_number' => :'cellPhoneNumber',
:'country_code' => :'countryCode',
:'credentials' => :'credentials',
:'display_name' => :'displayName',
- :'email' => :'email'
+ :'email' => :'email',
+ :'external_claims' => :'externalClaims'
}
end
# Attribute type mapping.
def self.swagger_types
{
+ :'cell_phone_number' => :'String',
:'country_code' => :'String',
:'credentials' => :'Array<Credential>',
:'display_name' => :'String',
- :'email' => :'String'
+ :'email' => :'String',
+ :'external_claims' => :'Array<ExternalClaim>'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -53,10 +63,14 @@
return unless attributes.is_a?(Hash)
# convert string to symbol for hash key
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
+ if attributes.has_key?(:'cellPhoneNumber')
+ self.cell_phone_number = attributes[:'cellPhoneNumber']
+ end
+
if attributes.has_key?(:'countryCode')
self.country_code = attributes[:'countryCode']
end
if attributes.has_key?(:'credentials')
@@ -71,10 +85,16 @@
if attributes.has_key?(:'email')
self.email = attributes[:'email']
end
+ if attributes.has_key?(:'externalClaims')
+ if (value = attributes[:'externalClaims']).is_a?(Array)
+ self.external_claims = value
+ end
+ 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
@@ -91,14 +111,16 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
+ cell_phone_number == o.cell_phone_number &&
country_code == o.country_code &&
credentials == o.credentials &&
display_name == o.display_name &&
- email == o.email
+ email == o.email &&
+ external_claims == o.external_claims
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -106,10 +128,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [country_code, credentials, display_name, email].hash
+ [cell_phone_number, country_code, credentials, display_name, email, external_claims].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself