lib/purecloud/models/campaign_schedule_notification.rb in purecloud-0.67.1 vs lib/purecloud/models/campaign_schedule_notification.rb in purecloud-0.68.1

- old
+ new

@@ -26,18 +26,18 @@ attr_accessor :date_modified attr_accessor :version - attr_accessor :additional_properties - attr_accessor :intervals attr_accessor :time_zone attr_accessor :campaign + attr_accessor :additional_properties + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', @@ -48,18 +48,18 @@ :'date_modified' => :'dateModified', :'version' => :'version', - :'additional_properties' => :'additionalProperties', - :'intervals' => :'intervals', :'time_zone' => :'timeZone', - :'campaign' => :'campaign' + :'campaign' => :'campaign', + :'additional_properties' => :'additionalProperties' + } end # Attribute type mapping. def self.swagger_types @@ -67,14 +67,14 @@ :'id' => :'String', :'name' => :'String', :'date_created' => :'DateTime', :'date_modified' => :'DateTime', :'version' => :'Integer', - :'additional_properties' => :'Object', :'intervals' => :'Array<CampaignScheduleNotificationIntervals>', :'time_zone' => :'String', - :'campaign' => :'DocumentDataNotificationCreatedBy' + :'campaign' => :'DocumentDataV2NotificationCreatedBy', + :'additional_properties' => :'Object' } end def initialize(attributes = {}) @@ -102,14 +102,10 @@ if attributes[:'version'] self.version = attributes[:'version'] end - if attributes[:'additionalProperties'] - self.additional_properties = attributes[:'additionalProperties'] - end - if attributes[:'intervals'] if (value = attributes[:'intervals']).is_a?(Array) self.intervals = value end end @@ -120,10 +116,14 @@ if attributes[:'campaign'] self.campaign = attributes[:'campaign'] end + if attributes[:'additionalProperties'] + self.additional_properties = attributes[:'additionalProperties'] + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) @@ -131,23 +131,23 @@ id == o.id && name == o.name && date_created == o.date_created && date_modified == o.date_modified && version == o.version && - additional_properties == o.additional_properties && intervals == o.intervals && time_zone == o.time_zone && - campaign == o.campaign + campaign == o.campaign && + additional_properties == o.additional_properties end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [id, name, date_created, date_modified, version, additional_properties, intervals, time_zone, campaign].hash + [id, name, date_created, date_modified, version, intervals, time_zone, campaign, additional_properties].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)