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

- old
+ new

@@ -20,10 +20,12 @@ class CreateCallbackCommand attr_accessor :script_id attr_accessor :queue_id + attr_accessor :routing_data + attr_accessor :callback_user_name attr_accessor :callback_numbers # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ @@ -31,41 +33,49 @@ attr_accessor :country_code attr_accessor :skip_enabled + attr_accessor :additional_info + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'script_id' => :'scriptId', :'queue_id' => :'queueId', + :'routing_data' => :'routingData', + :'callback_user_name' => :'callbackUserName', :'callback_numbers' => :'callbackNumbers', :'callback_scheduled_time' => :'callbackScheduledTime', :'country_code' => :'countryCode', - :'skip_enabled' => :'skipEnabled' + :'skip_enabled' => :'skipEnabled', + :'additional_info' => :'additionalInfo' + } end # Attribute type mapping. def self.swagger_types { :'script_id' => :'String', :'queue_id' => :'String', + :'routing_data' => :'RoutingData', :'callback_user_name' => :'String', :'callback_numbers' => :'Array<String>', :'callback_scheduled_time' => :'DateTime', :'country_code' => :'String', - :'skip_enabled' => :'BOOLEAN' + :'skip_enabled' => :'BOOLEAN', + :'additional_info' => :'AdditionalInfo' } end def initialize(attributes = {}) @@ -81,10 +91,14 @@ if attributes[:'queueId'] self.queue_id = attributes[:'queueId'] end + if attributes[:'routingData'] + self.routing_data = attributes[:'routingData'] + end + if attributes[:'callbackUserName'] self.callback_user_name = attributes[:'callbackUserName'] end if attributes[:'callbackNumbers'] @@ -105,32 +119,38 @@ self.skip_enabled = attributes[:'skipEnabled'] else self.skip_enabled = false end + if attributes[:'additionalInfo'] + self.additional_info = attributes[:'additionalInfo'] + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && script_id == o.script_id && queue_id == o.queue_id && + routing_data == o.routing_data && 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 + skip_enabled == o.skip_enabled && + 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, callback_user_name, callback_numbers, callback_scheduled_time, country_code, skip_enabled].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)