lib/purecloud/models/conversation_notification_callbacks.rb in purecloud-0.65.1 vs lib/purecloud/models/conversation_notification_callbacks.rb in purecloud-0.66.1
- old
+ new
@@ -48,10 +48,12 @@
attr_accessor :script_id
attr_accessor :callback_scheduled_time
+ attr_accessor :automated_callback_config_id
+
attr_accessor :callback_user_name
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
@@ -86,10 +88,12 @@
:'script_id' => :'scriptId',
:'callback_scheduled_time' => :'callbackScheduledTime',
+ :'automated_callback_config_id' => :'automatedCallbackConfigId',
+
:'callback_user_name' => :'callbackUserName'
}
end
@@ -110,10 +114,11 @@
:'additional_properties' => :'Object',
:'start_hold_time' => :'DateTime',
:'dialer_preview' => :'ConversationNotificationDialerPreview',
:'script_id' => :'String',
:'callback_scheduled_time' => :'DateTime',
+ :'automated_callback_config_id' => :'String',
:'callback_user_name' => :'String'
}
end
@@ -188,10 +193,14 @@
if attributes[:'callbackScheduledTime']
self.callback_scheduled_time = attributes[:'callbackScheduledTime']
end
+ if attributes[:'automatedCallbackConfigId']
+ self.automated_callback_config_id = attributes[:'automatedCallbackConfigId']
+ end
+
if attributes[:'callbackUserName']
self.callback_user_name = attributes[:'callbackUserName']
end
end
@@ -214,11 +223,11 @@
@state = 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_NOANSWER", "TRANSFER_NOTAVAILABLE", "TRANSFER_FORWARD", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM"]
+ allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_NOANSWER", "TRANSFER_NOTAVAILABLE", "TRANSFER_FORWARD", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM", "UNCALLABLE"]
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
@@ -241,20 +250,21 @@
additional_properties == o.additional_properties &&
start_hold_time == o.start_hold_time &&
dialer_preview == o.dialer_preview &&
script_id == o.script_id &&
callback_scheduled_time == o.callback_scheduled_time &&
+ automated_callback_config_id == o.automated_callback_config_id &&
callback_user_name == o.callback_user_name
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [disconnected_time, held, connected_time, direction, state, provider, skip_enabled, callback_numbers, id, disconnect_type, timeout_seconds, additional_properties, start_hold_time, dialer_preview, script_id, callback_scheduled_time, callback_user_name].hash
+ [disconnected_time, held, connected_time, direction, state, provider, skip_enabled, callback_numbers, id, disconnect_type, timeout_seconds, additional_properties, start_hold_time, dialer_preview, script_id, callback_scheduled_time, automated_callback_config_id, callback_user_name].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)