lib/purecloud/models/forecast_creation_completion.rb in purecloud-0.56.1 vs lib/purecloud/models/forecast_creation_completion.rb in purecloud-0.57.1

- old
+ new

@@ -16,31 +16,37 @@ require 'date' module PureCloud class ForecastCreationCompletion + # The notification id of creation completion + attr_accessor :notification_id + # The id of the forecast - attr_accessor :forecast_id + attr_accessor :id # The status of the creation of the forecast attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'forecast_id' => :'forecastId', + :'notification_id' => :'notificationId', + :'id' => :'id', + :'status' => :'status' } end # Attribute type mapping. def self.swagger_types { - :'forecast_id' => :'String', + :'notification_id' => :'String', + :'id' => :'String', :'status' => :'String' } end @@ -49,14 +55,18 @@ # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} - if attributes[:'forecastId'] - self.forecast_id = attributes[:'forecastId'] + if attributes[:'notificationId'] + self.notification_id = attributes[:'notificationId'] end + if attributes[:'id'] + self.id = attributes[:'id'] + end + if attributes[:'status'] self.status = attributes[:'status'] end end @@ -72,21 +82,22 @@ # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && - forecast_id == o.forecast_id && + notification_id == o.notification_id && + id == o.id && status == o.status end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [forecast_id, status].hash + [notification_id, id, status].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)