lib/purecloud/models/call.rb in purecloud-0.58.1 vs lib/purecloud/models/call.rb in purecloud-0.59.1
- old
+ new
@@ -242,37 +242,37 @@
end
# Custom attribute writer method checking allowed values (enum).
def state=(state)
- allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "CONVERTING", "UPLOADING", "TRANSMITTING", "NONE"]
+ allowed_values = ["alerting", "dialing", "contacting", "offering", "connected", "disconnected", "terminated", "converting", "uploading", "transmitting", "none"]
if state && !allowed_values.include?(state)
fail "invalid value for 'state', must be one of #{allowed_values}"
end
@state = state
end
# Custom attribute writer method checking allowed values (enum).
def direction=(direction)
- allowed_values = ["INBOUND", "OUTBOUND"]
+ allowed_values = ["inbound", "outbound"]
if direction && !allowed_values.include?(direction)
fail "invalid value for 'direction', must be one of #{allowed_values}"
end
@direction = direction
end
# Custom attribute writer method checking allowed values (enum).
def recording_state=(recording_state)
- allowed_values = ["NONE", "ACTIVE", "PAUSED"]
+ allowed_values = ["none", "active", "paused"]
if recording_state && !allowed_values.include?(recording_state)
fail "invalid value for 'recording_state', must be one of #{allowed_values}"
end
@recording_state = recording_state
end
# Custom attribute writer method checking allowed values (enum).
def disconnect_type=(disconnect_type)
- allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "TRANSFER_NOANSWER", "TRANSFER_NOTAVAILABLE", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM"]
+ allowed_values = ["endpoint", "client", "system", "timeout", "transfer", "transfer.conference", "transfer.consult", "transfer.forward", "transfer.noanswer", "transfer.notavailable", "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