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

- old
+ new

@@ -6,71 +6,80 @@ # @return [String] def type "schema:Action" end - # @return [Time,DateTime,nil] - define_property :end_time, as: "endTime", types: [ - "Time", + # @return [DateTime,Time,nil] + define_property :start_time, as: "startTime", types: [ "DateTime", + "Time", "null", ] - # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::PostalAddress] - define_property :location, as: "location", types: [ - "OpenActive::Models::Schema::Place", - "string", - "OpenActive::Models::Schema::PostalAddress", - ] - - # @return [OpenActive::Models::Schema::Thing] - define_property :result, as: "result", types: [ + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :instrument, as: "instrument", types: [ "OpenActive::Models::Schema::Thing", + "URI", ] - # @return [OpenActive::Models::Schema::Thing] - define_property :error, as: "error", types: [ - "OpenActive::Models::Schema::Thing", + # @return [OpenActive::Models::Schema::ActionStatusType,URI] + define_property :action_status, as: "actionStatus", types: [ + "OpenActive::Models::Schema::ActionStatusType", + "URI", ] - # @return [OpenActive::Models::Schema::Thing] - define_property :object, as: "object", types: [ - "OpenActive::Models::Schema::Thing", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :agent, as: "agent", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [OpenActive::Models::Schema::Thing] - define_property :instrument, as: "instrument", types: [ - "OpenActive::Models::Schema::Thing", - ] - - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :participant, as: "participant", types: [ - "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [Time,DateTime,nil] - define_property :start_time, as: "startTime", types: [ - "Time", + # @return [OpenActive::Models::Schema::EntryPoint,URI] + define_property :target, as: "target", types: [ + "OpenActive::Models::Schema::EntryPoint", + "URI", + ] + + # @return [DateTime,Time,nil] + define_property :end_time, as: "endTime", types: [ "DateTime", + "Time", "null", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization] - define_property :agent, as: "agent", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :error, as: "error", types: [ + "OpenActive::Models::Schema::Thing", + "URI", ] - # @return [OpenActive::Models::Schema::EntryPoint] - define_property :target, as: "target", types: [ - "OpenActive::Models::Schema::EntryPoint", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :result, as: "result", types: [ + "OpenActive::Models::Schema::Thing", + "URI", ] - # @return [OpenActive::Enums::Schema::ActionStatusType,nil] - define_property :action_status, as: "actionStatus", types: [ - "OpenActive::Enums::Schema::ActionStatusType", - "null", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :object, as: "object", types: [ + "OpenActive::Models::Schema::Thing", + "URI", + ] + + # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::VirtualLocation,OpenActive::Models::Schema::PostalAddress,URI] + define_property :location, as: "location", types: [ + "OpenActive::Models::Schema::Place", + "string", + "OpenActive::Models::Schema::VirtualLocation", + "OpenActive::Models::Schema::PostalAddress", + "URI", ] end end end end