lib/ultracart_api/models/order.rb in ultracart_api-4.0.135 vs lib/ultracart_api/models/order.rb in ultracart_api-4.0.136
- old
+ new
@@ -83,13 +83,19 @@
attr_accessor :quote
# If the order was refunded, the date/time that the last refund occurred
attr_accessor :refund_dts
+ # Refund reason code. This can only be written during a refund operation otherwise this field is read only.
+ attr_accessor :refund_reason
+
# If the order was rejected, the date/time that the rejection occurred
attr_accessor :reject_dts
+ # Reject reason code. This can only be written during a reject operation otherwise this field is read only.
+ attr_accessor :reject_reason
+
attr_accessor :salesforce
attr_accessor :shipping
attr_accessor :summary
@@ -154,11 +160,13 @@
:'payment' => :'payment',
:'point_of_sale' => :'point_of_sale',
:'properties' => :'properties',
:'quote' => :'quote',
:'refund_dts' => :'refund_dts',
+ :'refund_reason' => :'refund_reason',
:'reject_dts' => :'reject_dts',
+ :'reject_reason' => :'reject_reason',
:'salesforce' => :'salesforce',
:'shipping' => :'shipping',
:'summary' => :'summary',
:'tags' => :'Tags',
:'taxes' => :'taxes',
@@ -201,11 +209,13 @@
:'payment' => :'OrderPayment',
:'point_of_sale' => :'OrderPointOfSale',
:'properties' => :'Array<OrderProperty>',
:'quote' => :'OrderQuote',
:'refund_dts' => :'String',
+ :'refund_reason' => :'String',
:'reject_dts' => :'String',
+ :'reject_reason' => :'String',
:'salesforce' => :'OrderSalesforce',
:'shipping' => :'OrderShipping',
:'summary' => :'OrderSummary',
:'tags' => :'Array<OrderTag>',
:'taxes' => :'OrderTaxes',
@@ -356,14 +366,22 @@
if attributes.key?(:'refund_dts')
self.refund_dts = attributes[:'refund_dts']
end
+ if attributes.key?(:'refund_reason')
+ self.refund_reason = attributes[:'refund_reason']
+ end
+
if attributes.key?(:'reject_dts')
self.reject_dts = attributes[:'reject_dts']
end
+ if attributes.key?(:'reject_reason')
+ self.reject_reason = attributes[:'reject_reason']
+ end
+
if attributes.key?(:'salesforce')
self.salesforce = attributes[:'salesforce']
end
if attributes.key?(:'shipping')
@@ -478,11 +496,13 @@
payment == o.payment &&
point_of_sale == o.point_of_sale &&
properties == o.properties &&
quote == o.quote &&
refund_dts == o.refund_dts &&
+ refund_reason == o.refund_reason &&
reject_dts == o.reject_dts &&
+ reject_reason == o.reject_reason &&
salesforce == o.salesforce &&
shipping == o.shipping &&
summary == o.summary &&
tags == o.tags &&
taxes == o.taxes &&
@@ -496,10 +516,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, utms].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, refund_reason, reject_dts, reject_reason, 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