lib/purecloudplatformclientv2/models/callback.rb in purecloudplatformclientv2-85.0.1 vs lib/purecloudplatformclientv2/models/callback.rb in purecloudplatformclientv2-86.0.0

- old
+ new

@@ -82,10 +82,13 @@ attr_accessor :provider # The id of the peer communication corresponding to a matching leg for this communication. attr_accessor :peer_id + # Call wrap up or disposition data. + attr_accessor :wrapup + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -128,12 +131,14 @@ :'automated_callback_config_id' => :'automatedCallbackConfigId', :'provider' => :'provider', - :'peer_id' => :'peerId' + :'peer_id' => :'peerId', + :'wrapup' => :'wrapup' + } end # Attribute type mapping. def self.swagger_types @@ -179,12 +184,14 @@ :'automated_callback_config_id' => :'String', :'provider' => :'String', - :'peer_id' => :'String' + :'peer_id' => :'String', + :'wrapup' => :'Wrapup' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -395,10 +402,19 @@ end + if attributes.has_key?(:'wrapup') + + + self.wrapup = attributes[:'wrapup'] + + + 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 @@ -513,10 +529,14 @@ + + + + end # Custom attribute writer method checking allowed values (enum). @@ -653,10 +673,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 && @@ -679,11 +704,12 @@ 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 && - peer_id == o.peer_id + peer_id == o.peer_id && + wrapup == o.wrapup end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -691,10 +717,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, external_campaign, 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, wrapup].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)