lib/purecloud/models/external_organization.rb in purecloud-0.38.1 vs lib/purecloud/models/external_organization.rb in purecloud-0.39.1
- old
+ new
@@ -49,10 +49,13 @@
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
+ # 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
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -86,10 +89,12 @@
:'modify_date' => :'modifyDate',
:'create_date' => :'createDate',
+ :'external_data_sources' => :'externalDataSources',
+
:'self_uri' => :'selfUri'
}
end
@@ -109,10 +114,11 @@
:'tags' => :'Array<String>',
:'websites' => :'Array<String>',
:'tickers' => :'Array<Ticker>',
:'modify_date' => :'DateTime',
:'create_date' => :'DateTime',
+ :'external_data_sources' => :'Array<ExternalDataSource>',
:'self_uri' => :'String'
}
end
@@ -187,10 +193,16 @@
if attributes[:'createDate']
self.create_date = attributes[:'createDate']
end
+ if attributes[:'externalDataSources']
+ if (value = attributes[:'externalDataSources']).is_a?(Array)
+ self.external_data_sources = value
+ end
+ end
+
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
@@ -212,20 +224,21 @@
tags == o.tags &&
websites == o.websites &&
tickers == o.tickers &&
modify_date == o.modify_date &&
create_date == o.create_date &&
+ external_data_sources == o.external_data_sources &&
self_uri == o.self_uri
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, company_type, industry, primary_contact_id, address, phone_number, fax_number, employee_count, revenue, tags, websites, tickers, modify_date, create_date, self_uri].hash
+ [id, name, company_type, industry, primary_contact_id, address, phone_number, fax_number, employee_count, revenue, tags, websites, tickers, modify_date, create_date, external_data_sources, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)