lib/openactive/models/event.rb in openactive-0.1.2 vs lib/openactive/models/event.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 Event < ::OpenActive::Models::Schema::Event # @!attribute type # @return [String] def type "Event" @@ -40,15 +40,25 @@ # @return [Array<OpenActive::Models::Concept>] define_property :activity, as: "activity", types: [ "OpenActive::Models::Concept[]", ] + # @return [Array<String>] + define_property :additional_admission_restriction, as: "additionalAdmissionRestriction", types: [ + "string[]", + ] + # @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,13 +77,14 @@ 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", @@ -123,10 +134,16 @@ define_property :maximum_attendee_capacity, as: "maximumAttendeeCapacity", 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", ] @@ -139,15 +156,10 @@ 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", ] @@ -189,72 +201,123 @@ # @return [URI] define_property :url, as: "url", types: [ "URI", ] + # @return [String] + define_property :formatted_description, as: "beta:formattedDescription", types: [ + "string", + ] + # @return [OpenActive::Models::QuantitativeValue] define_property :distance, as: "beta:distance", types: [ "OpenActive::Models::QuantitativeValue", ] - # @return [OpenActive::Models::QuantitativeValue] - define_property :estimated_duration, as: "beta:estimatedDuration", types: [ - "OpenActive::Models::QuantitativeValue", + # @return [int,nil] + define_property :attendee_count, as: "beta:attendeeCount", types: [ + "int", + "null", ] + # @return [int,nil] + define_property :registration_count, as: "beta:registrationCount", types: [ + "int", + "null", + ] + # @return [Boolean,nil] - define_property :is_virtually_coached, as: "beta:isVirtuallyCoached", types: [ + define_property :is_wheelchair_accessible, as: "beta:isWheelchairAccessible", types: [ "bool", "null", ] - # @return [String] - define_property :formatted_description, as: "beta:formattedDescription", types: [ - "string", + # @return [OpenActive::Models::QuantitativeValue] + define_property :estimated_duration, as: "beta:estimatedDuration", types: [ + "OpenActive::Models::QuantitativeValue", ] + # @return [Array<OpenActive::Models::VideoObject>] + define_property :video, as: "beta:video", types: [ + "OpenActive::Models::VideoObject[]", + ] + + # @return [Array<OpenActive::Models::Schema::SportsActivityLocation>] + define_property :sports_activity_location, as: "beta:sportsActivityLocation", types: [ + "OpenActive::Models::Schema::SportsActivityLocation[]", + ] + + # @return [ActiveSupport::Duration,nil] + define_property :offer_validity_period, as: "beta:offerValidityPeriod", types: [ + "DateInterval", + "null", + ] + # @return [OpenActive::Enums::FacilitySettingType,nil] define_property :facility_setting, as: "beta:facilitySetting", types: [ "OpenActive::Enums::FacilitySettingType", "null", ] - # @return [ActiveSupport::Duration,nil] - define_property :offer_validity_period, as: "beta:offerValidityPeriod", types: [ - "DateInterval", + # @return [Boolean,nil] + define_property :is_virtually_coached, as: "beta:isVirtuallyCoached", types: [ + "bool", "null", ] - # @return [Array<OpenActive::Models::SportsActivityLocation>] - define_property :sports_activity_location, as: "beta:sportsActivityLocation", types: [ - "OpenActive::Models::SportsActivityLocation[]", + # @return [OpenActive::Models::VirtualLocation] + define_property :virtual_location, as: "beta:virtualLocation", types: [ + "OpenActive::Models::VirtualLocation", ] - # @return [Array<OpenActive::Models::Schema::VideoObject>] - define_property :video, as: "beta:video", types: [ - "OpenActive::Models::Schema::VideoObject[]", + # @return [OpenActive::Models::Place] + define_property :affiliated_location, as: "beta:affiliatedLocation", types: [ + "OpenActive::Models::Place", ] - # @return [String] - define_property :availability, as: "beta:availability", types: [ - "string", + # @return [Boolean,nil] + define_property :is_interactivity_preferred, as: "beta:isInteractivityPreferred", types: [ + "bool", + "null", ] + # @return [OpenActive::Enums::RequiredStatusType,nil] + define_property :participant_supplied_equipment, as: "beta:participantSuppliedEquipment", types: [ + "OpenActive::Enums::RequiredStatusType", + "null", + ] + + # @return [URI] + define_property :donation_payment_url, as: "beta:donationPaymentUrl", types: [ + "URI", + ] + # @return [Boolean,nil] - define_property :is_wheelchair_accessible, as: "beta:isWheelchairAccessible", types: [ + define_property :is_first_session_accessible_for_free, as: "beta:isFirstSessionAccessibleForFree", types: [ "bool", "null", ] - # @return [int,nil] - define_property :registration_count, as: "beta:registrationCount", types: [ - "int", + # @return [OpenActive::Models::Schema::ContactPoint] + define_property :contact_point, as: "beta:contactPoint", types: [ + "OpenActive::Models::Schema::ContactPoint", + ] + + # @return [Array<OpenActive::Enums::BookingChannelType>,nil] + define_property :booking_channel, as: "beta:bookingChannel", types: [ + "OpenActive::Enums::BookingChannelType[]", "null", ] - # @return [int,nil] - define_property :attendee_count, as: "beta:attendeeCount", types: [ - "int", + # @return [OpenActive::Enums::TestOpenBookingFlowEnumeration,nil] + define_property :test_open_booking_flow, as: "test:testOpenBookingFlow", types: [ + "OpenActive::Enums::TestOpenBookingFlowEnumeration", + "null", + ] + + # @return [OpenActive::Enums::TestOpportunityCriteriaEnumeration,nil] + define_property :test_opportunity_criteria, as: "test:testOpportunityCriteria", types: [ + "OpenActive::Enums::TestOpportunityCriteriaEnumeration", "null", ] end end end