lib/purecloud/models/email_media_participant.rb in purecloud-0.50.1 vs lib/purecloud/models/email_media_participant.rb in purecloud-0.51.1
- old
+ new
@@ -25,17 +25,17 @@
attr_accessor :name
# The participant address.
attr_accessor :address
- # The time when this participant joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ # The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :start_time
- # The time when this participant went connected on the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ # The time when this participant went connected for this media (eg: video connected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :connected_time
- # The time when this participant when disconnected on the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ # The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :end_time
# The time when this participant's hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :start_hold_time
@@ -79,10 +79,19 @@
attr_accessor :wrapup_timeout_ms
# Value is true when the participant has skipped wrap-up.
attr_accessor :wrapup_skipped
+ # The source provider for the communication.
+ attr_accessor :provider
+
+ # If this participant represents an external contact, then this will be the reference for the external contact.
+ attr_accessor :external_contact
+
+ # If this participant represents an external org, then this will be the reference for the external org.
+ attr_accessor :external_organization
+
# The subject of the email.
attr_accessor :subject
# The number of messages that have been sent in this email conversation.
attr_accessor :messages_sent
@@ -131,10 +140,16 @@
:'wrapup_timeout_ms' => :'wrapupTimeoutMs',
:'wrapup_skipped' => :'wrapupSkipped',
+ :'provider' => :'provider',
+
+ :'external_contact' => :'externalContact',
+
+ :'external_organization' => :'externalOrganization',
+
:'subject' => :'subject',
:'messages_sent' => :'messagesSent'
}
@@ -162,10 +177,13 @@
:'attributes' => :'Hash<String, String>',
:'error_info' => :'ErrorBody',
:'script' => :'UriReference',
:'wrapup_timeout_ms' => :'Integer',
:'wrapup_skipped' => :'BOOLEAN',
+ :'provider' => :'String',
+ :'external_contact' => :'UriReference',
+ :'external_organization' => :'UriReference',
:'subject' => :'String',
:'messages_sent' => :'Integer'
}
end
@@ -267,10 +285,22 @@
self.wrapup_skipped = attributes[:'wrapupSkipped']
else
self.wrapup_skipped = false
end
+ if attributes[:'provider']
+ self.provider = attributes[:'provider']
+ end
+
+ if attributes[:'externalContact']
+ self.external_contact = attributes[:'externalContact']
+ end
+
+ if attributes[:'externalOrganization']
+ self.external_organization = attributes[:'externalOrganization']
+ end
+
if attributes[:'subject']
self.subject = attributes[:'subject']
end
if attributes[:'messagesSent']
@@ -297,11 +327,11 @@
@direction = direction
end
# Custom attribute writer method checking allowed values (enum).
def disconnect_type=(disconnect_type)
- allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM"]
+ allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "TRANSFER_NO_ANSWER", "TRANSFER_NOT_AVAILABLE", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM"]
if disconnect_type && !allowed_values.include?(disconnect_type)
fail "invalid value for 'disconnect_type', must be one of #{allowed_values}"
end
@disconnect_type = disconnect_type
end
@@ -329,10 +359,13 @@
attributes == o.attributes &&
error_info == o.error_info &&
script == o.script &&
wrapup_timeout_ms == o.wrapup_timeout_ms &&
wrapup_skipped == o.wrapup_skipped &&
+ provider == o.provider &&
+ external_contact == o.external_contact &&
+ external_organization == o.external_organization &&
subject == o.subject &&
messages_sent == o.messages_sent
end
# @see the `==` method
@@ -340,10 +373,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, subject, messages_sent].hash
+ [id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, subject, messages_sent].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)