lib/purecloud/models/conversation_notification_callbacks.rb in purecloud-0.68.1 vs lib/purecloud/models/conversation_notification_callbacks.rb in purecloud-0.69.1

- old
+ new

@@ -18,108 +18,108 @@ module PureCloud class ConversationNotificationCallbacks attr_accessor :disconnected_time + attr_accessor :callback_scheduled_time + attr_accessor :held - attr_accessor :connected_time + attr_accessor :callback_numbers - attr_accessor :direction + attr_accessor :skip_enabled - attr_accessor :state + attr_accessor :script_id + attr_accessor :automated_callback_config_id + attr_accessor :provider - attr_accessor :skip_enabled + attr_accessor :callback_user_name - attr_accessor :callback_numbers - - attr_accessor :id - attr_accessor :disconnect_type attr_accessor :timeout_seconds - attr_accessor :additional_properties + attr_accessor :connected_time - attr_accessor :start_hold_time + attr_accessor :state - attr_accessor :dialer_preview + attr_accessor :id - attr_accessor :script_id + attr_accessor :start_hold_time - attr_accessor :callback_scheduled_time + attr_accessor :additional_properties - attr_accessor :automated_callback_config_id + attr_accessor :dialer_preview - attr_accessor :callback_user_name + attr_accessor :direction # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'disconnected_time' => :'disconnectedTime', + :'callback_scheduled_time' => :'callbackScheduledTime', + :'held' => :'held', - :'connected_time' => :'connectedTime', + :'callback_numbers' => :'callbackNumbers', - :'direction' => :'direction', + :'skip_enabled' => :'skipEnabled', - :'state' => :'state', + :'script_id' => :'scriptId', + :'automated_callback_config_id' => :'automatedCallbackConfigId', + :'provider' => :'provider', - :'skip_enabled' => :'skipEnabled', + :'callback_user_name' => :'callbackUserName', - :'callback_numbers' => :'callbackNumbers', - - :'id' => :'id', - :'disconnect_type' => :'disconnectType', :'timeout_seconds' => :'timeoutSeconds', - :'additional_properties' => :'additionalProperties', + :'connected_time' => :'connectedTime', - :'start_hold_time' => :'startHoldTime', + :'state' => :'state', - :'dialer_preview' => :'dialerPreview', + :'id' => :'id', - :'script_id' => :'scriptId', + :'start_hold_time' => :'startHoldTime', - :'callback_scheduled_time' => :'callbackScheduledTime', + :'additional_properties' => :'additionalProperties', - :'automated_callback_config_id' => :'automatedCallbackConfigId', + :'dialer_preview' => :'dialerPreview', - :'callback_user_name' => :'callbackUserName' + :'direction' => :'direction' } end # Attribute type mapping. def self.swagger_types { :'disconnected_time' => :'DateTime', + :'callback_scheduled_time' => :'DateTime', :'held' => :'BOOLEAN', - :'connected_time' => :'DateTime', - :'direction' => :'String', - :'state' => :'String', - :'provider' => :'String', - :'skip_enabled' => :'BOOLEAN', :'callback_numbers' => :'Array<String>', - :'id' => :'String', + :'skip_enabled' => :'BOOLEAN', + :'script_id' => :'String', + :'automated_callback_config_id' => :'String', + :'provider' => :'String', + :'callback_user_name' => :'String', :'disconnect_type' => :'String', :'timeout_seconds' => :'Integer', - :'additional_properties' => :'Object', + :'connected_time' => :'DateTime', + :'state' => :'String', + :'id' => :'String', :'start_hold_time' => :'DateTime', + :'additional_properties' => :'Object', :'dialer_preview' => :'ConversationNotificationDialerPreview', - :'script_id' => :'String', - :'callback_scheduled_time' => :'DateTime', - :'automated_callback_config_id' => :'String', - :'callback_user_name' => :'String' + :'direction' => :'String' } end def initialize(attributes = {}) @@ -131,89 +131,89 @@ if attributes[:'disconnectedTime'] self.disconnected_time = attributes[:'disconnectedTime'] end + if attributes[:'callbackScheduledTime'] + self.callback_scheduled_time = attributes[:'callbackScheduledTime'] + end + if attributes[:'held'] self.held = attributes[:'held'] end - if attributes[:'connectedTime'] - self.connected_time = attributes[:'connectedTime'] + if attributes[:'callbackNumbers'] + if (value = attributes[:'callbackNumbers']).is_a?(Array) + self.callback_numbers = value + end end - if attributes[:'direction'] - self.direction = attributes[:'direction'] + if attributes[:'skipEnabled'] + self.skip_enabled = attributes[:'skipEnabled'] end - if attributes[:'state'] - self.state = attributes[:'state'] + if attributes[:'scriptId'] + self.script_id = attributes[:'scriptId'] end + if attributes[:'automatedCallbackConfigId'] + self.automated_callback_config_id = attributes[:'automatedCallbackConfigId'] + end + if attributes[:'provider'] self.provider = attributes[:'provider'] end - if attributes[:'skipEnabled'] - self.skip_enabled = attributes[:'skipEnabled'] + if attributes[:'callbackUserName'] + self.callback_user_name = attributes[:'callbackUserName'] end - if attributes[:'callbackNumbers'] - if (value = attributes[:'callbackNumbers']).is_a?(Array) - self.callback_numbers = value - end - end - - if attributes[:'id'] - self.id = attributes[:'id'] - end - if attributes[:'disconnectType'] self.disconnect_type = attributes[:'disconnectType'] end if attributes[:'timeoutSeconds'] self.timeout_seconds = attributes[:'timeoutSeconds'] end - if attributes[:'additionalProperties'] - self.additional_properties = attributes[:'additionalProperties'] + if attributes[:'connectedTime'] + self.connected_time = attributes[:'connectedTime'] end - if attributes[:'startHoldTime'] - self.start_hold_time = attributes[:'startHoldTime'] + if attributes[:'state'] + self.state = attributes[:'state'] end - if attributes[:'dialerPreview'] - self.dialer_preview = attributes[:'dialerPreview'] + if attributes[:'id'] + self.id = attributes[:'id'] end - if attributes[:'scriptId'] - self.script_id = attributes[:'scriptId'] + if attributes[:'startHoldTime'] + self.start_hold_time = attributes[:'startHoldTime'] end - if attributes[:'callbackScheduledTime'] - self.callback_scheduled_time = attributes[:'callbackScheduledTime'] + if attributes[:'additionalProperties'] + self.additional_properties = attributes[:'additionalProperties'] end - if attributes[:'automatedCallbackConfigId'] - self.automated_callback_config_id = attributes[:'automatedCallbackConfigId'] + if attributes[:'dialerPreview'] + self.dialer_preview = attributes[:'dialerPreview'] end - if attributes[:'callbackUserName'] - self.callback_user_name = attributes[:'callbackUserName'] + if attributes[:'direction'] + self.direction = attributes[:'direction'] end end # Custom attribute writer method checking allowed values (enum). - def direction=(direction) - allowed_values = ["INBOUND", "OUTBOUND"] - if direction && !allowed_values.include?(direction) - fail "invalid value for 'direction', must be one of #{allowed_values}" + 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", "UNCALLABLE"] + if disconnect_type && !allowed_values.include?(disconnect_type) + fail "invalid value for 'disconnect_type', must be one of #{allowed_values}" end - @direction = direction + @disconnect_type = disconnect_type end # Custom attribute writer method checking allowed values (enum). def state=(state) allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "NONE"] @@ -222,49 +222,49 @@ end @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", "UNCALLABLE"] - if disconnect_type && !allowed_values.include?(disconnect_type) - fail "invalid value for 'disconnect_type', must be one of #{allowed_values}" + def direction=(direction) + allowed_values = ["INBOUND", "OUTBOUND"] + if direction && !allowed_values.include?(direction) + fail "invalid value for 'direction', must be one of #{allowed_values}" end - @disconnect_type = disconnect_type + @direction = direction end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && disconnected_time == o.disconnected_time && + callback_scheduled_time == o.callback_scheduled_time && held == o.held && - connected_time == o.connected_time && - direction == o.direction && - state == o.state && - provider == o.provider && - skip_enabled == o.skip_enabled && callback_numbers == o.callback_numbers && - id == o.id && + skip_enabled == o.skip_enabled && + script_id == o.script_id && + automated_callback_config_id == o.automated_callback_config_id && + provider == o.provider && + callback_user_name == o.callback_user_name && disconnect_type == o.disconnect_type && timeout_seconds == o.timeout_seconds && - additional_properties == o.additional_properties && + connected_time == o.connected_time && + state == o.state && + id == o.id && start_hold_time == o.start_hold_time && + additional_properties == o.additional_properties && 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 + direction == o.direction 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, automated_callback_config_id, callback_user_name].hash + [disconnected_time, callback_scheduled_time, held, callback_numbers, skip_enabled, script_id, automated_callback_config_id, provider, callback_user_name, disconnect_type, timeout_seconds, connected_time, state, id, start_hold_time, additional_properties, dialer_preview, direction].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)