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

- old
+ new

@@ -90,10 +90,13 @@ attr_accessor :_self # Address and name data for a call endpoint. attr_accessor :other + # 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', @@ -142,12 +145,14 @@ :'uui_data' => :'uuiData', :'_self' => :'self', - :'other' => :'other' + :'other' => :'other', + :'wrapup' => :'wrapup' + } end # Attribute type mapping. def self.swagger_types @@ -199,12 +204,14 @@ :'uui_data' => :'String', :'_self' => :'Address', - :'other' => :'Address' + :'other' => :'Address', + :'wrapup' => :'Wrapup' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -442,10 +449,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 @@ -577,10 +593,14 @@ + + + + end # Custom attribute writer method checking allowed values (enum). @@ -741,10 +761,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 && @@ -770,11 +795,12 @@ provider == o.provider && script_id == o.script_id && peer_id == o.peer_id && uui_data == o.uui_data && _self == o._self && - other == o.other + other == o.other && + wrapup == o.wrapup end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -782,10 +808,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, start_alerting_time, connected_time, disconnected_time, disconnect_reasons, fax_status, provider, script_id, peer_id, uui_data, _self, other].hash + [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, start_alerting_time, connected_time, disconnected_time, disconnect_reasons, fax_status, provider, script_id, peer_id, uui_data, _self, other, wrapup].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)