lib/ultracart_api/models/activity.rb in ultracart_api-4.0.34.rc vs lib/ultracart_api/models/activity.rb in ultracart_api-4.0.35.rc

- old
+ new

@@ -15,12 +15,16 @@ module UltracartClient class Activity attr_accessor :action + attr_accessor :channel + attr_accessor :metric + attr_accessor :storefront_oid + attr_accessor :subject attr_accessor :ts attr_accessor :type @@ -29,11 +33,13 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'action' => :'action', + :'channel' => :'channel', :'metric' => :'metric', + :'storefront_oid' => :'storefront_oid', :'subject' => :'subject', :'ts' => :'ts', :'type' => :'type', :'uuid' => :'uuid' } @@ -46,11 +52,13 @@ # Attribute type mapping. def self.openapi_types { :'action' => :'String', + :'channel' => :'String', :'metric' => :'String', + :'storefront_oid' => :'Integer', :'subject' => :'String', :'ts' => :'Integer', :'type' => :'String', :'uuid' => :'String' } @@ -79,14 +87,22 @@ if attributes.key?(:'action') self.action = attributes[:'action'] end + if attributes.key?(:'channel') + self.channel = attributes[:'channel'] + end + if attributes.key?(:'metric') self.metric = attributes[:'metric'] end + if attributes.key?(:'storefront_oid') + self.storefront_oid = attributes[:'storefront_oid'] + end + if attributes.key?(:'subject') self.subject = attributes[:'subject'] end if attributes.key?(:'ts') @@ -119,11 +135,13 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && action == o.action && + channel == o.channel && metric == o.metric && + storefront_oid == o.storefront_oid && subject == o.subject && ts == o.ts && type == o.type && uuid == o.uuid end @@ -135,10 +153,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [action, metric, subject, ts, type, uuid].hash + [action, channel, metric, storefront_oid, subject, ts, type, uuid].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself