lib/purecloudplatformclientv2/models/callback.rb in purecloudplatformclientv2-84.0.0 vs lib/purecloudplatformclientv2/models/callback.rb in purecloudplatformclientv2-85.0.0
- old
+ new
@@ -52,10 +52,13 @@
attr_accessor :callback_user_name
# The UUID of the script to use.
attr_accessor :script_id
+ # True if the call for the callback uses external dialing.
+ attr_accessor :external_campaign
+
# True if the ability to skip a callback should be enabled.
attr_accessor :skip_enabled
# The number of seconds before the system automatically places a call for a callback. 0 means the automatic placement is disabled.
attr_accessor :timeout_seconds
@@ -107,10 +110,12 @@
:'callback_user_name' => :'callbackUserName',
:'script_id' => :'scriptId',
+ :'external_campaign' => :'externalCampaign',
+
:'skip_enabled' => :'skipEnabled',
:'timeout_seconds' => :'timeoutSeconds',
:'start_alerting_time' => :'startAlertingTime',
@@ -156,10 +161,12 @@
:'callback_user_name' => :'String',
:'script_id' => :'String',
+ :'external_campaign' => :'BOOLEAN',
+
:'skip_enabled' => :'BOOLEAN',
:'timeout_seconds' => :'Integer',
:'start_alerting_time' => :'DateTime',
@@ -298,10 +305,19 @@
end
+ if attributes.has_key?(:'externalCampaign')
+
+
+ self.external_campaign = attributes[:'externalCampaign']
+
+
+ end
+
+
if attributes.has_key?(:'skipEnabled')
self.skip_enabled = attributes[:'skipEnabled']
@@ -493,10 +509,14 @@
+
+
+
+
end
# Custom attribute writer method checking allowed values (enum).
@@ -628,10 +648,15 @@
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
@@ -645,10 +670,11 @@
dialer_preview == o.dialer_preview &&
voicemail == o.voicemail &&
callback_numbers == o.callback_numbers &&
callback_user_name == o.callback_user_name &&
script_id == o.script_id &&
+ external_campaign == o.external_campaign &&
skip_enabled == o.skip_enabled &&
timeout_seconds == o.timeout_seconds &&
start_alerting_time == o.start_alerting_time &&
connected_time == o.connected_time &&
disconnected_time == o.disconnected_time &&
@@ -665,10 +691,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [state, id, segments, direction, held, disconnect_type, start_hold_time, dialer_preview, voicemail, callback_numbers, callback_user_name, script_id, skip_enabled, timeout_seconds, start_alerting_time, connected_time, disconnected_time, callback_scheduled_time, automated_callback_config_id, provider, peer_id].hash
+ [state, id, segments, direction, held, disconnect_type, start_hold_time, dialer_preview, voicemail, callback_numbers, callback_user_name, script_id, external_campaign, skip_enabled, timeout_seconds, start_alerting_time, connected_time, disconnected_time, callback_scheduled_time, automated_callback_config_id, provider, peer_id].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)