lib/openactive/models/slot.rb in openactive-0.1.2 vs lib/openactive/models/slot.rb in openactive-0.2.0

- old
+ new

@@ -1,8 +1,8 @@ module OpenActive module Models - # This type is derived from [Event](https://schema.org/Event), which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available. + # This type is derived from https://schema.org/Event, which means that any of this type's properties within schema.org may also be used. class Slot < ::OpenActive::Models::Event # @!attribute type # @return [String] def type "Slot" @@ -45,10 +45,15 @@ # @return [OpenActive::Models::QuantitativeValue] define_property :age_range, as: "ageRange", types: [ "OpenActive::Models::QuantitativeValue", ] + # @return [OpenActive::Models::QuantitativeValue] + define_property :age_restriction, as: "ageRestriction", types: [ + "OpenActive::Models::QuantitativeValue", + ] + # @return [String] define_property :attendee_instructions, as: "attendeeInstructions", types: [ "string", ] @@ -67,26 +72,26 @@ define_property :duration, as: "duration", types: [ "DateInterval", "null", ] - # @return [Array<OpenActive::Models::Schedule>] - define_property :event_schedule, as: "eventSchedule", types: [ - "OpenActive::Models::Schedule[]", + # @return [OpenActive::Enums::Schema::EventAttendanceModeEnumeration,nil] + define_property :event_attendance_mode, as: "eventAttendanceMode", types: [ + "OpenActive::Enums::Schema::EventAttendanceModeEnumeration", + "null", ] # @return [OpenActive::Enums::Schema::EventStatusType,nil] define_property :event_status, as: "eventStatus", types: [ "OpenActive::Enums::Schema::EventStatusType", "null", ] - # @return [URI,OpenActive::Models::IndividualFacilityUse,OpenActive::Models::FacilityUse] + # @return [OpenActive::Models::FacilityUse,URI] define_property :facility_use, as: "facilityUse", types: [ - "URI", - "OpenActive::Models::IndividualFacilityUse", "OpenActive::Models::FacilityUse", + "URI", ] # @return [OpenActive::Enums::GenderRestrictionType,nil] define_property :gender_restriction, as: "genderRestriction", types: [ "OpenActive::Enums::GenderRestrictionType", @@ -136,31 +141,26 @@ define_property :maximum_uses, as: "maximumUses", types: [ "int", "null", ] + # @return [int,nil] + define_property :maximum_virtual_attendee_capacity, as: "maximumVirtualAttendeeCapacity", types: [ + "int", + "null", + ] + # @return [String] define_property :meeting_point, as: "meetingPoint", types: [ "string", ] # @return [Array<OpenActive::Models::Offer>] define_property :offers, as: "offers", types: [ "OpenActive::Models::Offer[]", ] - # @return [OpenActive::Models::Person,OpenActive::Models::Organization] - define_property :organizer, as: "organizer", types: [ - "OpenActive::Models::Person", - "OpenActive::Models::Organization", - ] - - # @return [Array<OpenActive::Models::Action>] - define_property :potential_action, as: "potentialAction", types: [ - "OpenActive::Models::Action[]", - ] - # @return [OpenActive::Models::Brand] define_property :programme, as: "programme", types: [ "OpenActive::Models::Brand", ] @@ -179,20 +179,18 @@ # @return [String] define_property :scheduling_note, as: "schedulingNote", types: [ "string", ] - # @return [Date,DateTime,nil] + # @return [DateTime,nil] define_property :start_date, as: "startDate", types: [ - "Date", "DateTime", "null", ] - # @return [Date,DateTime,nil] + # @return [DateTime,nil] define_property :end_date, as: "endDate", types: [ - "Date", "DateTime", "null", ] # @return [Array<OpenActive::Models::Event>] @@ -208,12 +206,12 @@ # @return [URI] define_property :url, as: "url", types: [ "URI", ] - # @return [Array<OpenActive::Models::SportsActivityLocation>] + # @return [Array<OpenActive::Models::Schema::SportsActivityLocation>] define_property :sports_activity_location, as: "beta:sportsActivityLocation", types: [ - "OpenActive::Models::SportsActivityLocation[]", + "OpenActive::Models::Schema::SportsActivityLocation[]", ] end end end