lib/ultracart_api/models/activity.rb in ultracart_api-3.10.19 vs lib/ultracart_api/models/activity.rb in ultracart_api-3.10.20
- old
+ new
@@ -14,12 +14,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
@@ -28,11 +32,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'
}
@@ -40,11 +46,13 @@
# Attribute type mapping.
def self.swagger_types
{
:'action' => :'String',
+ :'channel' => :'String',
:'metric' => :'String',
+ :'storefront_oid' => :'Integer',
:'subject' => :'String',
:'ts' => :'Integer',
:'type' => :'String',
:'uuid' => :'String'
}
@@ -60,14 +68,22 @@
if attributes.has_key?(:'action')
self.action = attributes[:'action']
end
+ if attributes.has_key?(:'channel')
+ self.channel = attributes[:'channel']
+ end
+
if attributes.has_key?(:'metric')
self.metric = attributes[:'metric']
end
+ if attributes.has_key?(:'storefront_oid')
+ self.storefront_oid = attributes[:'storefront_oid']
+ end
+
if attributes.has_key?(:'subject')
self.subject = attributes[:'subject']
end
if attributes.has_key?(:'ts')
@@ -100,11 +116,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
@@ -116,10 +134,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] 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