lib/openactive/models/schema/ticket.rb in openactive-0.1.2 vs lib/openactive/models/schema/ticket.rb in openactive-0.2.0

- old
+ new

@@ -6,54 +6,58 @@ # @return [String] def type "schema:Ticket" end - # @return [Date,DateTime,nil] - define_property :date_issued, as: "dateIssued", types: [ - "Date", - "DateTime", - "null", - ] - - # @return [OpenActive::Models::Schema::Seat] - define_property :ticketed_seat, as: "ticketedSeat", types: [ - "OpenActive::Models::Schema::Seat", - ] - - # @return [URI,String] - define_property :ticket_token, as: "ticketToken", types: [ + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :under_name, as: "underName", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", - "string", ] - # @return [OpenActive::Models::Schema::Organization] - define_property :issued_by, as: "issuedBy", types: [ - "OpenActive::Models::Schema::Organization", - ] - # @return [String] - define_property :ticket_number, as: "ticketNumber", types: [ + define_property :price_currency, as: "priceCurrency", types: [ "string", ] # @return [String] - define_property :price_currency, as: "priceCurrency", types: [ + define_property :ticket_number, as: "ticketNumber", types: [ "string", ] - # @return [String,BigDecimal,OpenActive::Models::Schema::PriceSpecification,nil] + # @return [BigDecimal,String,OpenActive::Models::Schema::PriceSpecification,URI,nil] define_property :total_price, as: "totalPrice", types: [ - "string", "Number", + "string", "OpenActive::Models::Schema::PriceSpecification", + "URI", "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person] - define_property :under_name, as: "underName", types: [ + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :issued_by, as: "issuedBy", types: [ "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + "URI", + ] + + # @return [String,URI] + define_property :ticket_token, as: "ticketToken", types: [ + "string", + "URI", + ] + + # @return [OpenActive::Models::Schema::Seat,URI] + define_property :ticketed_seat, as: "ticketedSeat", types: [ + "OpenActive::Models::Schema::Seat", + "URI", + ] + + # @return [Date,DateTime,nil] + define_property :date_issued, as: "dateIssued", types: [ + "Date", + "DateTime", + "null", ] end end end end