lib/phrase/models/translation_order.rb in phrase-2.0.0 vs lib/phrase/models/translation_order.rb in phrase-2.1.0

- old
+ new

@@ -2,10 +2,12 @@ module Phrase class TranslationOrder attr_accessor :id + attr_accessor :name + attr_accessor :lsp attr_accessor :amount_in_cents attr_accessor :currency @@ -38,10 +40,11 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', + :'name' => :'name', :'lsp' => :'lsp', :'amount_in_cents' => :'amount_in_cents', :'currency' => :'currency', :'message' => :'message', :'state' => :'state', @@ -61,10 +64,11 @@ # Attribute type mapping. def self.openapi_types { :'id' => :'String', + :'name' => :'String', :'lsp' => :'String', :'amount_in_cents' => :'Integer', :'currency' => :'String', :'message' => :'String', :'state' => :'String', @@ -105,10 +109,14 @@ if attributes.key?(:'id') self.id = attributes[:'id'] end + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + if attributes.key?(:'lsp') self.lsp = attributes[:'lsp'] end if attributes.key?(:'amount_in_cents') @@ -191,10 +199,11 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && + name == o.name && lsp == o.lsp && amount_in_cents == o.amount_in_cents && currency == o.currency && message == o.message && state == o.state && @@ -218,10 +227,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, lsp, amount_in_cents, currency, message, state, translation_type, progress_percent, source_locale, target_locales, tag, styleguide, unverify_translations_upon_delivery, quality, priority, created_at, updated_at].hash + [id, name, lsp, amount_in_cents, currency, message, state, translation_type, progress_percent, source_locale, target_locales, tag, styleguide, unverify_translations_upon_delivery, quality, priority, created_at, updated_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself