lib/patch_ruby/models/order.rb in patch_ruby-1.24.0 vs lib/patch_ruby/models/order.rb in patch_ruby-1.24.1
- old
+ new
@@ -64,10 +64,11 @@
attr_accessor :metadata
# An array containing the inventory allocated for this order. Inventory is grouped by project, vintage year, and price.
attr_accessor :inventory
+ # An object containing the name & email of the party the inventory will be issued to.
attr_accessor :issued_to
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
@@ -137,11 +138,11 @@
:'patch_fee_cents_usd' => :'Integer',
:'allocations' => :'Array<Allocation>',
:'registry_url' => :'String',
:'metadata' => :'Object',
:'inventory' => :'Array<OrderInventory>',
- :'issued_to' => :'IssuedTo'
+ :'issued_to' => :'OrderIssuedTo'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -249,9 +250,12 @@
self.inventory = value
end
end
if attributes.key?(:'issued_to')
+ if (value = attributes[:'issued_to']).is_a?(Hash)
+ self.issued_to = value
+ end
self.issued_to = attributes[:'issued_to']
end
end
# Show invalid properties with the reasons. Usually used together with valid?