lib/ultracart_api/models/error.rb in ultracart_api-3.1.45 vs lib/ultracart_api/models/error.rb in ultracart_api-3.1.46

- old
+ new

@@ -21,29 +21,34 @@ attr_accessor :error_code # Additional information often a link to additional documentation attr_accessor :more_info + # Object id that the error is associated with + attr_accessor :object_id + # An end-user friendly message suitable for display to the customer attr_accessor :user_message # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'developer_message' => :'developer_message', :'error_code' => :'error_code', :'more_info' => :'more_info', + :'object_id' => :'object_id', :'user_message' => :'user_message' } end # Attribute type mapping. def self.swagger_types { :'developer_message' => :'String', :'error_code' => :'String', :'more_info' => :'String', + :'object_id' => :'String', :'user_message' => :'String' } end # Initializes the object @@ -64,10 +69,14 @@ if attributes.has_key?(:'more_info') self.more_info = attributes[:'more_info'] end + if attributes.has_key?(:'object_id') + self.object_id = attributes[:'object_id'] + end + if attributes.has_key?(:'user_message') self.user_message = attributes[:'user_message'] end end @@ -90,10 +99,11 @@ return true if self.equal?(o) self.class == o.class && developer_message == o.developer_message && error_code == o.error_code && more_info == o.more_info && + object_id == o.object_id && user_message == o.user_message end # @see the `==` method # @param [Object] Object to be compared @@ -102,10 +112,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [developer_message, error_code, more_info, user_message].hash + [developer_message, error_code, more_info, object_id, user_message].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself