lib/purecloudplatformclientv2/models/callback.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/callback.rb in purecloudplatformclientv2-7.0.0

- old
+ new

@@ -40,10 +40,13 @@ attr_accessor :start_hold_time # The preview data to be used when this callback is a Preview. attr_accessor :dialer_preview + # The voicemail data to be used when this callback is an ACD voicemail. + attr_accessor :voicemail + # The phone number(s) to use to place the callback. attr_accessor :callback_numbers # The name of the user requesting a callback. attr_accessor :callback_user_name @@ -70,10 +73,13 @@ attr_accessor :automated_callback_config_id # The source provider for the callback. attr_accessor :provider + # The id of the peer communication corresponding to a matching leg for this communication. + attr_accessor :peer_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', :'id' => :'id', @@ -81,20 +87,22 @@ :'direction' => :'direction', :'held' => :'held', :'disconnect_type' => :'disconnectType', :'start_hold_time' => :'startHoldTime', :'dialer_preview' => :'dialerPreview', + :'voicemail' => :'voicemail', :'callback_numbers' => :'callbackNumbers', :'callback_user_name' => :'callbackUserName', :'script_id' => :'scriptId', :'skip_enabled' => :'skipEnabled', :'timeout_seconds' => :'timeoutSeconds', :'connected_time' => :'connectedTime', :'disconnected_time' => :'disconnectedTime', :'callback_scheduled_time' => :'callbackScheduledTime', :'automated_callback_config_id' => :'automatedCallbackConfigId', - :'provider' => :'provider' + :'provider' => :'provider', + :'peer_id' => :'peerId' } end # Attribute type mapping. def self.swagger_types @@ -105,20 +113,22 @@ :'direction' => :'String', :'held' => :'BOOLEAN', :'disconnect_type' => :'String', :'start_hold_time' => :'DateTime', :'dialer_preview' => :'DialerPreview', + :'voicemail' => :'Voicemail', :'callback_numbers' => :'Array<String>', :'callback_user_name' => :'String', :'script_id' => :'String', :'skip_enabled' => :'BOOLEAN', :'timeout_seconds' => :'Integer', :'connected_time' => :'DateTime', :'disconnected_time' => :'DateTime', :'callback_scheduled_time' => :'DateTime', :'automated_callback_config_id' => :'String', - :'provider' => :'String' + :'provider' => :'String', + :'peer_id' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -160,10 +170,14 @@ if attributes.has_key?(:'dialerPreview') self.dialer_preview = attributes[:'dialerPreview'] end + if attributes.has_key?(:'voicemail') + self.voicemail = attributes[:'voicemail'] + end + if attributes.has_key?(:'callbackNumbers') if (value = attributes[:'callbackNumbers']).is_a?(Array) self.callback_numbers = value end end @@ -202,10 +216,14 @@ if attributes.has_key?(:'provider') self.provider = attributes[:'provider'] end + if attributes.has_key?(:'peerId') + self.peer_id = attributes[:'peerId'] + end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -271,20 +289,22 @@ direction == o.direction && held == o.held && disconnect_type == o.disconnect_type && start_hold_time == o.start_hold_time && 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 && skip_enabled == o.skip_enabled && timeout_seconds == o.timeout_seconds && connected_time == o.connected_time && disconnected_time == o.disconnected_time && callback_scheduled_time == o.callback_scheduled_time && automated_callback_config_id == o.automated_callback_config_id && - provider == o.provider + provider == o.provider && + peer_id == o.peer_id end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -292,10 +312,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, callback_numbers, callback_user_name, script_id, skip_enabled, timeout_seconds, connected_time, disconnected_time, callback_scheduled_time, automated_callback_config_id, provider].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, 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)