lib/purecloudplatformclientv2/models/contact.rb in purecloudplatformclientv2-93.0.0 vs lib/purecloudplatformclientv2/models/contact.rb in purecloudplatformclientv2-94.0.0

- old
+ new

@@ -29,10 +29,12 @@ attr_accessor :type # Use internal extension instead of address. Mutually exclusive with the address field. attr_accessor :extension + attr_accessor :country_code + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'address' => :'address', @@ -41,12 +43,14 @@ :'media_type' => :'mediaType', :'type' => :'type', - :'extension' => :'extension' + :'extension' => :'extension', + :'country_code' => :'countryCode' + } end # Attribute type mapping. def self.swagger_types @@ -58,12 +62,14 @@ :'media_type' => :'String', :'type' => :'String', - :'extension' => :'String' + :'extension' => :'String', + :'country_code' => :'String' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -117,10 +123,19 @@ end + if attributes.has_key?(:'countryCode') + + + self.country_code = attributes[:'countryCode'] + + + 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 @@ -162,10 +177,14 @@ + + + + end @@ -208,20 +227,26 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && address == o.address && display == o.display && media_type == o.media_type && type == o.type && - extension == o.extension + extension == o.extension && + country_code == o.country_code end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -229,10 +254,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [address, display, media_type, type, extension].hash + [address, display, media_type, type, extension, country_code].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)