lib/purecloudplatformclientv2/models/external_contact.rb in purecloudplatformclientv2-36.1.0 vs lib/purecloudplatformclientv2/models/external_contact.rb in purecloudplatformclientv2-37.0.0

- old
+ new

@@ -49,21 +49,25 @@ attr_accessor :address attr_accessor :twitter_id + attr_accessor :line_id + + attr_accessor :facebook_id + # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :modify_date # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :create_date attr_accessor :external_organization attr_accessor :survey_opt_out - # A string that identifies an external system-of-record resource that may have more detailed information on the organization. It should be a valid URL (including the HTTP protocol, port, and path [if any]). The value is automatically trimmed of any leading and trailing whitespace. + # A string that identifies an external system-of-record resource that may have more detailed information on the contact. It should be a valid URL (including the http/https protocol, port, and path [if any]). The value is automatically trimmed of any leading and trailing whitespace. attr_accessor :external_system_url # Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record. Read-only, and only populated when requested via expand param. attr_accessor :external_data_sources @@ -102,10 +106,14 @@ :'address' => :'address', :'twitter_id' => :'twitterId', + :'line_id' => :'lineId', + + :'facebook_id' => :'facebookId', + :'modify_date' => :'modifyDate', :'create_date' => :'createDate', :'external_organization' => :'externalOrganization', @@ -153,10 +161,14 @@ :'address' => :'ContactAddress', :'twitter_id' => :'TwitterId', + :'line_id' => :'LineId', + + :'facebook_id' => :'FacebookId', + :'modify_date' => :'DateTime', :'create_date' => :'DateTime', :'external_organization' => :'ExternalOrganization', @@ -314,10 +326,28 @@ end + if attributes.has_key?(:'lineId') + + + self.line_id = attributes[:'lineId'] + + + end + + + if attributes.has_key?(:'facebookId') + + + self.facebook_id = attributes[:'facebookId'] + + + end + + if attributes.has_key?(:'modifyDate') self.modify_date = attributes[:'modifyDate'] @@ -492,10 +522,18 @@ + + + + + + + + end @@ -605,10 +643,20 @@ + + + + + + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -625,10 +673,12 @@ work_email == o.work_email && personal_email == o.personal_email && other_email == o.other_email && address == o.address && twitter_id == o.twitter_id && + line_id == o.line_id && + facebook_id == o.facebook_id && modify_date == o.modify_date && create_date == o.create_date && external_organization == o.external_organization && survey_opt_out == o.survey_opt_out && external_system_url == o.external_system_url && @@ -643,10 +693,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, first_name, middle_name, last_name, salutation, title, work_phone, cell_phone, home_phone, other_phone, work_email, personal_email, other_email, address, twitter_id, modify_date, create_date, external_organization, survey_opt_out, external_system_url, external_data_sources, self_uri].hash + [id, first_name, middle_name, last_name, salutation, title, work_phone, cell_phone, home_phone, other_phone, work_email, personal_email, other_email, address, twitter_id, line_id, facebook_id, modify_date, create_date, external_organization, survey_opt_out, external_system_url, external_data_sources, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)