lib/patch_ruby/models/order.rb in patch_ruby-1.2.2 vs lib/patch_ruby/models/order.rb in patch_ruby-1.2.3
- old
+ new
@@ -24,10 +24,12 @@
attr_accessor :allocation_state
attr_accessor :price_cents_usd
+ attr_accessor :patch_fee_cents_usd
+
attr_accessor :allocations
attr_accessor :metadata
class EnumAttributeValidator
@@ -59,10 +61,11 @@
:'mass_g' => :'mass_g',
:'production' => :'production',
:'state' => :'state',
:'allocation_state' => :'allocation_state',
:'price_cents_usd' => :'price_cents_usd',
+ :'patch_fee_cents_usd' => :'patch_fee_cents_usd',
:'allocations' => :'allocations',
:'metadata' => :'metadata'
}
end
@@ -73,10 +76,11 @@
:'mass_g' => :'Integer',
:'production' => :'Boolean',
:'state' => :'String',
:'allocation_state' => :'String',
:'price_cents_usd' => :'String',
+ :'patch_fee_cents_usd' => :'String',
:'allocations' => :'Array<Allocation>',
:'metadata' => :'Object'
}
end
@@ -128,10 +132,14 @@
if attributes.key?(:'price_cents_usd')
self.price_cents_usd = attributes[:'price_cents_usd']
end
+ if attributes.key?(:'patch_fee_cents_usd')
+ self.patch_fee_cents_usd = attributes[:'patch_fee_cents_usd']
+ end
+
if attributes.key?(:'allocations')
if (value = attributes[:'allocations']).is_a?(Array)
self.allocations = value
end
end
@@ -250,10 +258,11 @@
mass_g == o.mass_g &&
production == o.production &&
state == o.state &&
allocation_state == o.allocation_state &&
price_cents_usd == o.price_cents_usd &&
+ patch_fee_cents_usd == o.patch_fee_cents_usd &&
allocations == o.allocations &&
metadata == o.metadata
end
# @see the `==` method
@@ -263,10 +272,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, mass_g, production, state, allocation_state, price_cents_usd, allocations, metadata].hash
+ [id, mass_g, production, state, allocation_state, price_cents_usd, patch_fee_cents_usd, allocations, metadata].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself