lib/purecloud/models/callback_media_participant.rb in purecloud-0.50.1 vs lib/purecloud/models/callback_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 outbound preview associated with this callback.
attr_accessor :outbound_preview
# The list of phone number to use for this callback.
attr_accessor :callback_numbers
@@ -143,10 +152,16 @@
:'wrapup_timeout_ms' => :'wrapupTimeoutMs',
:'wrapup_skipped' => :'wrapupSkipped',
+ :'provider' => :'provider',
+
+ :'external_contact' => :'externalContact',
+
+ :'external_organization' => :'externalOrganization',
+
:'outbound_preview' => :'outboundPreview',
:'callback_numbers' => :'callbackNumbers',
:'callback_user_name' => :'callbackUserName',
@@ -182,10 +197,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',
:'outbound_preview' => :'DialerPreview',
:'callback_numbers' => :'Array<String>',
:'callback_user_name' => :'String',
:'skip_enabled' => :'BOOLEAN',
:'timeout_seconds' => :'Integer',
@@ -291,10 +309,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[:'outboundPreview']
self.outbound_preview = attributes[:'outboundPreview']
end
if attributes[:'callbackNumbers']
@@ -341,11 +371,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
@@ -373,10 +403,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 &&
outbound_preview == o.outbound_preview &&
callback_numbers == o.callback_numbers &&
callback_user_name == o.callback_user_name &&
skip_enabled == o.skip_enabled &&
timeout_seconds == o.timeout_seconds &&
@@ -388,10 +421,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, outbound_preview, callback_numbers, callback_user_name, skip_enabled, timeout_seconds, callback_scheduled_time].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, outbound_preview, callback_numbers, callback_user_name, skip_enabled, timeout_seconds, callback_scheduled_time].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)