lib/purecloud/models/conversation_chat.rb in purecloud-0.58.1 vs lib/purecloud/models/conversation_chat.rb in purecloud-0.59.1
- old
+ new
@@ -165,28 +165,28 @@
end
# Custom attribute writer method checking allowed values (enum).
def state=(state)
- allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "NONE"]
+ allowed_values = ["alerting", "dialing", "contacting", "offering", "connected", "disconnected", "terminated", "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 disconnect_type=(disconnect_type)
- allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "ERROR", "PEER", "OTHER"]
+ allowed_values = ["endpoint", "client", "system", "transfer", "transfer.conference", "transfer.consult", "transfer.forward", "error", "peer", "other"]
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