lib/purecloudplatformclientv2/models/external_contact.rb in purecloudplatformclientv2-48.2.0 vs lib/purecloudplatformclientv2/models/external_contact.rb in purecloudplatformclientv2-49.0.0
- old
+ new
@@ -51,10 +51,12 @@
attr_accessor :twitter_id
attr_accessor :line_id
+ attr_accessor :whats_app_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
@@ -108,10 +110,12 @@
:'twitter_id' => :'twitterId',
:'line_id' => :'lineId',
+ :'whats_app_id' => :'whatsAppId',
+
:'facebook_id' => :'facebookId',
:'modify_date' => :'modifyDate',
:'create_date' => :'createDate',
@@ -163,10 +167,12 @@
:'twitter_id' => :'TwitterId',
:'line_id' => :'LineId',
+ :'whats_app_id' => :'WhatsAppId',
+
:'facebook_id' => :'FacebookId',
:'modify_date' => :'DateTime',
:'create_date' => :'DateTime',
@@ -335,10 +341,19 @@
end
+ if attributes.has_key?(:'whatsAppId')
+
+
+ self.whats_app_id = attributes[:'whatsAppId']
+
+
+ end
+
+
if attributes.has_key?(:'facebookId')
self.facebook_id = attributes[:'facebookId']
@@ -530,10 +545,14 @@
+
+
+
+
end
@@ -653,10 +672,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 &&
@@ -674,10 +698,11 @@
personal_email == o.personal_email &&
other_email == o.other_email &&
address == o.address &&
twitter_id == o.twitter_id &&
line_id == o.line_id &&
+ whats_app_id == o.whats_app_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 &&
@@ -693,10 +718,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, line_id, facebook_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, whats_app_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)