lib/purecloud/models/create_callback_command.rb in purecloud-0.41.1 vs lib/purecloud/models/create_callback_command.rb in purecloud-0.42.1

- old
+ new

@@ -16,28 +16,36 @@ 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 - # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + # The scheduled date-time for the callback 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 - attr_accessor :additional_info + # 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 # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -55,11 +63,11 @@ :'country_code' => :'countryCode', :'skip_enabled' => :'skipEnabled', - :'additional_info' => :'additionalInfo' + :'data' => :'data' } end # Attribute type mapping. @@ -71,11 +79,11 @@ :'callback_user_name' => :'String', :'callback_numbers' => :'Array<String>', :'callback_scheduled_time' => :'DateTime', :'country_code' => :'String', :'skip_enabled' => :'BOOLEAN', - :'additional_info' => :'AdditionalInfo' + :'data' => :'Hash<String, String>' } end def initialize(attributes = {}) @@ -119,12 +127,14 @@ self.skip_enabled = attributes[:'skipEnabled'] else self.skip_enabled = false end - if attributes[:'additionalInfo'] - self.additional_info = attributes[:'additionalInfo'] + if attributes[:'data'] + if (value = attributes[:'data']).is_a?(Array) + self.data = value + end end end # Check equality by comparing each attribute. @@ -137,20 +147,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 && - additional_info == o.additional_info + data == o.data 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, additional_info].hash + [script_id, queue_id, routing_data, callback_user_name, callback_numbers, callback_scheduled_time, country_code, skip_enabled, data].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)