lib/purecloudplatformclientv2/models/external_contact.rb in purecloudplatformclientv2-20.0.0 vs lib/purecloudplatformclientv2/models/external_contact.rb in purecloudplatformclientv2-21.0.0

- old
+ new

@@ -57,10 +57,12 @@ # 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 + # 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 # The URI for this object attr_accessor :self_uri @@ -103,10 +105,12 @@ :'create_date' => :'createDate', :'external_organization' => :'externalOrganization', + :'survey_opt_out' => :'surveyOptOut', + :'external_data_sources' => :'externalDataSources', :'self_uri' => :'selfUri' } @@ -150,10 +154,12 @@ :'create_date' => :'DateTime', :'external_organization' => :'ExternalOrganization', + :'survey_opt_out' => :'BOOLEAN', + :'external_data_sources' => :'Array<ExternalDataSource>', :'self_uri' => :'String' } @@ -328,10 +334,19 @@ end + if attributes.has_key?(:'surveyOptOut') + + + self.survey_opt_out = attributes[:'surveyOptOut'] + + + end + + if attributes.has_key?(:'externalDataSources') if (value = attributes[:'externalDataSources']).is_a?(Array) self.external_data_sources = value end @@ -453,10 +468,14 @@ + + + + end @@ -556,10 +575,15 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -579,10 +603,11 @@ address == o.address && twitter_id == o.twitter_id && modify_date == o.modify_date && create_date == o.create_date && external_organization == o.external_organization && + survey_opt_out == o.survey_opt_out && external_data_sources == o.external_data_sources && self_uri == o.self_uri end # @see the `==` method @@ -592,10 +617,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, 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, modify_date, create_date, external_organization, survey_opt_out, external_data_sources, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)