lib/purecloud/models/create_callback_command.rb in purecloud-0.43.1 vs lib/purecloud/models/create_callback_command.rb in purecloud-0.44.1

- old
+ new

@@ -16,36 +16,28 @@ require 'date' module PureCloud class CreateCallbackCommand - # The identifier of the script to be used for the callback attr_accessor :script_id - # The identifier of the queue to be used for the callback. Either queueId or routingData is required. attr_accessor :queue_id - # The routing data to be used for the callback. Either queueId or routingData is required. attr_accessor :routing_data - # The name of the party to be called back. attr_accessor :callback_user_name - # A list of phone numbers for the callback. attr_accessor :callback_numbers - # The scheduled date-time for the callback as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :callback_scheduled_time - # The country code to be associated with the callback numbers. attr_accessor :country_code - # Indicates if the agent is allowed to skip the callback. attr_accessor :skip_enabled - # A map of key-value pairs containing additional data that can be associated to the callback. These could be set up for instance to be used in a customized script shown during the call. Example: { \"notes\": \"ready to close the deal!\", \"customerPreferredName\": \"Doc\" } - attr_accessor :data + attr_accessor :additional_info # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -63,11 +55,11 @@ :'country_code' => :'countryCode', :'skip_enabled' => :'skipEnabled', - :'data' => :'data' + :'additional_info' => :'additionalInfo' } end # Attribute type mapping. @@ -79,11 +71,11 @@ :'callback_user_name' => :'String', :'callback_numbers' => :'Array<String>', :'callback_scheduled_time' => :'DateTime', :'country_code' => :'String', :'skip_enabled' => :'BOOLEAN', - :'data' => :'Hash<String, String>' + :'additional_info' => :'AdditionalInfo' } end def initialize(attributes = {}) @@ -127,14 +119,12 @@ self.skip_enabled = attributes[:'skipEnabled'] else self.skip_enabled = false end - if attributes[:'data'] - if (value = attributes[:'data']).is_a?(Array) - self.data = value - end + if attributes[:'additionalInfo'] + self.additional_info = attributes[:'additionalInfo'] end end # Check equality by comparing each attribute. @@ -147,20 +137,20 @@ callback_user_name == o.callback_user_name && callback_numbers == o.callback_numbers && callback_scheduled_time == o.callback_scheduled_time && country_code == o.country_code && skip_enabled == o.skip_enabled && - data == o.data + additional_info == o.additional_info end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [script_id, queue_id, routing_data, callback_user_name, callback_numbers, callback_scheduled_time, country_code, skip_enabled, data].hash + [script_id, queue_id, routing_data, callback_user_name, callback_numbers, callback_scheduled_time, country_code, skip_enabled, additional_info].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)