lib/ultracart_api/models/order.rb in ultracart_api-4.0.133 vs lib/ultracart_api/models/order.rb in ultracart_api-4.0.134

- old
+ new

@@ -97,10 +97,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) @@ -156,11 +159,12 @@ :'reject_dts' => :'reject_dts', :'salesforce' => :'salesforce', :'shipping' => :'shipping', :'summary' => :'summary', :'tags' => :'Tags', - :'taxes' => :'taxes' + :'taxes' => :'taxes', + :'utms' => :'utms' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -202,11 +206,12 @@ :'reject_dts' => :'String', :'salesforce' => :'OrderSalesforce', :'shipping' => :'OrderShipping', :'summary' => :'OrderSummary', :'tags' => :'Array<OrderTag>', - :'taxes' => :'OrderTaxes' + :'taxes' => :'OrderTaxes', + :'utms' => :'Array<OrderUtm>' } end # List of attributes with nullable: true def self.openapi_nullable @@ -376,10 +381,16 @@ end if attributes.key?(:'taxes') self.taxes = attributes[:'taxes'] end + + if attributes.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 @@ -472,11 +483,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) @@ -484,10 +496,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] 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