lib/ultracart_api/models/order.rb in ultracart_api-3.10.116 vs lib/ultracart_api/models/order.rb in ultracart_api-3.10.117
- old
+ new
@@ -96,10 +96,13 @@
# tags, available only through update, not through insert due to the nature of how tags are handled internally
attr_accessor :tags
attr_accessor :taxes
+ # UTM clicks. The zero index is the most recent (last) UTM click
+ attr_accessor :utms
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -155,11 +158,12 @@
:'reject_dts' => :'reject_dts',
:'salesforce' => :'salesforce',
:'shipping' => :'shipping',
:'summary' => :'summary',
:'tags' => :'Tags',
- :'taxes' => :'taxes'
+ :'taxes' => :'taxes',
+ :'utms' => :'utms'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -196,11 +200,12 @@
:'reject_dts' => :'String',
:'salesforce' => :'OrderSalesforce',
:'shipping' => :'OrderShipping',
:'summary' => :'OrderSummary',
:'tags' => :'Array<OrderTag>',
- :'taxes' => :'OrderTaxes'
+ :'taxes' => :'OrderTaxes',
+ :'utms' => :'Array<OrderUtm>'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -357,10 +362,16 @@
end
if attributes.has_key?(:'taxes')
self.taxes = attributes[:'taxes']
end
+
+ if attributes.has_key?(:'utms')
+ if (value = attributes[:'utms']).is_a?(Array)
+ self.utms = value
+ end
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -453,11 +464,12 @@
reject_dts == o.reject_dts &&
salesforce == o.salesforce &&
shipping == o.shipping &&
summary == o.summary &&
tags == o.tags &&
- taxes == o.taxes
+ taxes == o.taxes &&
+ utms == o.utms
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -465,10 +477,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [affiliates, auto_order, billing, buysafe, channel_partner, checkout, coupons, creation_dts, currency_code, current_stage, customer_profile, digital_order, edi, exchange_rate, fraud_score, gift, gift_certificate, internal, items, language_iso_code, linked_shipment, marketing, merchant_id, order_id, payment, point_of_sale, properties, quote, refund_dts, reject_dts, salesforce, shipping, summary, tags, taxes].hash
+ [affiliates, auto_order, billing, buysafe, channel_partner, checkout, coupons, creation_dts, currency_code, current_stage, customer_profile, digital_order, edi, exchange_rate, fraud_score, gift, gift_certificate, internal, items, language_iso_code, linked_shipment, marketing, merchant_id, order_id, payment, point_of_sale, properties, quote, refund_dts, reject_dts, salesforce, shipping, summary, tags, taxes, utms].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself