lib/ultracart_api/models/order.rb in ultracart_api-4.0.103.rc vs lib/ultracart_api/models/order.rb in ultracart_api-4.0.104.rc

- old
+ new

@@ -73,10 +73,12 @@ # Order ID attr_accessor :order_id attr_accessor :payment + attr_accessor :point_of_sale + # Properties, available only through update, not through insert due to the nature of how properties are handled internally attr_accessor :properties attr_accessor :quote @@ -145,10 +147,11 @@ :'linked_shipment' => :'linked_shipment', :'marketing' => :'marketing', :'merchant_id' => :'merchant_id', :'order_id' => :'order_id', :'payment' => :'payment', + :'point_of_sale' => :'point_of_sale', :'properties' => :'properties', :'quote' => :'quote', :'refund_dts' => :'refund_dts', :'reject_dts' => :'reject_dts', :'salesforce' => :'salesforce', @@ -190,10 +193,11 @@ :'linked_shipment' => :'OrderLinkedShipment', :'marketing' => :'OrderMarketing', :'merchant_id' => :'String', :'order_id' => :'String', :'payment' => :'OrderPayment', + :'point_of_sale' => :'OrderPointOfSale', :'properties' => :'Array<OrderProperty>', :'quote' => :'OrderQuote', :'refund_dts' => :'String', :'reject_dts' => :'String', :'salesforce' => :'OrderSalesforce', @@ -329,10 +333,14 @@ if attributes.key?(:'payment') self.payment = attributes[:'payment'] end + if attributes.key?(:'point_of_sale') + self.point_of_sale = attributes[:'point_of_sale'] + end + if attributes.key?(:'properties') if (value = attributes[:'properties']).is_a?(Array) self.properties = value end end @@ -455,10 +463,11 @@ linked_shipment == o.linked_shipment && marketing == o.marketing && merchant_id == o.merchant_id && order_id == o.order_id && payment == o.payment && + point_of_sale == o.point_of_sale && properties == o.properties && quote == o.quote && refund_dts == o.refund_dts && reject_dts == o.reject_dts && salesforce == o.salesforce && @@ -475,10 +484,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, 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].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself