lib/openactive/models/event.rb in openactive-0.2.2 vs lib/openactive/models/event.rb in openactive-0.3.0
- old
+ new
@@ -71,10 +71,15 @@
# @return [Array<OpenActive::Models::Person>]
define_property :contributor, as: "contributor", types: [
"OpenActive::Models::Person[]",
]
+ # @return [Array<String>]
+ define_property :customer_account_booking_restriction, as: "customerAccountBookingRestriction", types: [
+ "string[]",
+ ]
+
# @return [ActiveSupport::Duration,nil]
define_property :duration, as: "duration", types: [
"DateInterval",
"null",
]
@@ -112,10 +117,16 @@
define_property :is_coached, as: "isCoached", types: [
"bool",
"null",
]
+ # @return [Boolean,nil]
+ define_property :is_open_booking_with_customer_account_allowed, as: "isOpenBookingWithCustomerAccountAllowed", types: [
+ "bool",
+ "null",
+ ]
+
# @return [Array<OpenActive::Models::Person>]
define_property :leader, as: "leader", types: [
"OpenActive::Models::Person[]",
]
@@ -123,13 +134,14 @@
define_property :level, as: "level", types: [
"string[]",
"OpenActive::Models::Concept[]",
]
- # @return [OpenActive::Models::Place]
+ # @return [OpenActive::Models::Place,URI]
define_property :location, as: "location", types: [
"OpenActive::Models::Place",
+ "URI",
]
# @return [int,nil]
define_property :maximum_attendee_capacity, as: "maximumAttendeeCapacity", types: [
"int",
@@ -239,13 +251,13 @@
# @return [Array<OpenActive::Models::VideoObject>]
define_property :video, as: "beta:video", types: [
"OpenActive::Models::VideoObject[]",
]
- # @return [Array<OpenActive::Models::Schema::SportsActivityLocation>]
+ # @return [Array<OpenActive::Models::SportsActivityLocation>]
define_property :sports_activity_location, as: "beta:sportsActivityLocation", types: [
- "OpenActive::Models::Schema::SportsActivityLocation[]",
+ "OpenActive::Models::SportsActivityLocation[]",
]
# @return [ActiveSupport::Duration,nil]
define_property :offer_validity_period, as: "beta:offerValidityPeriod", types: [
"DateInterval",
@@ -291,9 +303,15 @@
"URI",
]
# @return [Boolean,nil]
define_property :is_first_session_accessible_for_free, as: "beta:isFirstSessionAccessibleForFree", types: [
+ "bool",
+ "null",
+ ]
+
+ # @return [Boolean,nil]
+ define_property :is_scheduled_as_slots, as: "beta:isScheduledAsSlots", types: [
"bool",
"null",
]
# @return [OpenActive::Models::Schema::ContactPoint]