lib/purecloud/models/call_media_participant.rb in purecloud-0.48.1 vs lib/purecloud/models/call_media_participant.rb in purecloud-0.49.1
- old
+ new
@@ -103,10 +103,13 @@
attr_accessor :dnis
# The ID of the Content Management document if the call is a fax.
attr_accessor :document_id
+ # Extra fax information if the call is a fax.
+ attr_accessor :fax_status
+
# The ID of the participant being monitored when performing a call monitor.
attr_accessor :monitored_participant_id
# The ID of the consult transfer target participant when performing a consult transfer.
attr_accessor :consult_participant_id
@@ -171,10 +174,12 @@
:'dnis' => :'dnis',
:'document_id' => :'documentId',
+ :'fax_status' => :'faxStatus',
+
:'monitored_participant_id' => :'monitoredParticipantId',
:'consult_participant_id' => :'consultParticipantId'
}
@@ -210,10 +215,11 @@
:'recording_state' => :'String',
:'group' => :'UriReference',
:'ani' => :'String',
:'dnis' => :'String',
:'document_id' => :'String',
+ :'fax_status' => :'FaxStatus',
:'monitored_participant_id' => :'String',
:'consult_participant_id' => :'String'
}
end
@@ -353,10 +359,14 @@
if attributes[:'documentId']
self.document_id = attributes[:'documentId']
end
+ if attributes[:'faxStatus']
+ self.fax_status = attributes[:'faxStatus']
+ end
+
if attributes[:'monitoredParticipantId']
self.monitored_participant_id = attributes[:'monitoredParticipantId']
end
if attributes[:'consultParticipantId']
@@ -383,11 +393,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", "ERROR", "PEER", "OTHER"]
+ allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "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
@@ -432,10 +442,11 @@
recording_state == o.recording_state &&
group == o.group &&
ani == o.ani &&
dnis == o.dnis &&
document_id == o.document_id &&
+ fax_status == o.fax_status &&
monitored_participant_id == o.monitored_participant_id &&
consult_participant_id == o.consult_participant_id
end
# @see the `==` method
@@ -443,10 +454,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, muted, confined, recording, recording_state, group, ani, dnis, document_id, monitored_participant_id, consult_participant_id].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, muted, confined, recording, recording_state, group, ani, dnis, document_id, fax_status, monitored_participant_id, consult_participant_id].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)