lib/purecloudplatformclientv2/models/attempt_limits.rb in purecloudplatformclientv2-4.0.0 vs lib/purecloudplatformclientv2/models/attempt_limits.rb in purecloudplatformclientv2-5.0.0
- old
+ new
@@ -40,10 +40,13 @@
attr_accessor :time_zone_id
# After how long the number of attempts will be set back to 0
attr_accessor :reset_period
+ # Configuration for recall attempts
+ attr_accessor :recall_entries
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -55,10 +58,11 @@
:'version' => :'version',
:'max_attempts_per_contact' => :'maxAttemptsPerContact',
:'max_attempts_per_number' => :'maxAttemptsPerNumber',
:'time_zone_id' => :'timeZoneId',
:'reset_period' => :'resetPeriod',
+ :'recall_entries' => :'recallEntries',
:'self_uri' => :'selfUri'
}
end
# Attribute type mapping.
@@ -71,10 +75,11 @@
:'version' => :'Integer',
:'max_attempts_per_contact' => :'Integer',
:'max_attempts_per_number' => :'Integer',
:'time_zone_id' => :'String',
:'reset_period' => :'String',
+ :'recall_entries' => :'Hash<String, RecallEntry>',
:'self_uri' => :'String'
}
end
# Initializes the object
@@ -119,10 +124,16 @@
if attributes.has_key?(:'resetPeriod')
self.reset_period = attributes[:'resetPeriod']
end
+ if attributes.has_key?(:'recallEntries')
+ if (value = attributes[:'recallEntries']).is_a?(Array)
+ self.recall_entries = value
+ end
+ end
+
if attributes.has_key?(:'selfUri')
self.self_uri = attributes[:'selfUri']
end
end
@@ -165,10 +176,11 @@
version == o.version &&
max_attempts_per_contact == o.max_attempts_per_contact &&
max_attempts_per_number == o.max_attempts_per_number &&
time_zone_id == o.time_zone_id &&
reset_period == o.reset_period &&
+ recall_entries == o.recall_entries &&
self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -177,10 +189,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, date_created, date_modified, version, max_attempts_per_contact, max_attempts_per_number, time_zone_id, reset_period, self_uri].hash
+ [id, name, date_created, date_modified, version, max_attempts_per_contact, max_attempts_per_number, time_zone_id, reset_period, recall_entries, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)