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

- old
+ new

@@ -6,50 +6,92 @@ # @return [String] def type "schema:Schedule" end - # @return [String,ActiveSupport::Duration,nil] + # @return [DateTime,Time,nil] + define_property :start_time, as: "startTime", types: [ + "DateTime", + "Time", + "null", + ] + + # @return [DateTime,Date,nil] + define_property :start_date, as: "startDate", types: [ + "DateTime", + "Date", + "null", + ] + + # @return [DateTime,Time,nil] + define_property :end_time, as: "endTime", types: [ + "DateTime", + "Time", + "null", + ] + + # @return [ActiveSupport::Duration,String,URI,nil] define_property :repeat_frequency, as: "repeatFrequency", types: [ - "string", "DateInterval", + "string", + "URI", "null", ] - # @return [Date,DateTime,nil] + # @return [DateTime,Date,nil] define_property :except_date, as: "exceptDate", types: [ - "Date", "DateTime", + "Date", "null", ] # @return [int,nil] - define_property :by_month_day, as: "byMonthDay", types: [ + define_property :by_month, as: "byMonth", types: [ "int", "null", ] + # @return [Date,DateTime,nil] + define_property :end_date, as: "endDate", types: [ + "Date", + "DateTime", + "null", + ] + # @return [int,nil] - define_property :by_month, as: "byMonth", types: [ + define_property :by_month_day, as: "byMonthDay", types: [ "int", "null", ] + # @return [OpenActive::Enums::Schema::DayOfWeek,String,nil] + define_property :by_day, as: "byDay", types: [ + "OpenActive::Enums::Schema::DayOfWeek", + "string", + "null", + ] + + # @return [String] + define_property :schedule_timezone, as: "scheduleTimezone", types: [ + "string", + ] + # @return [int,nil] define_property :repeat_count, as: "repeatCount", types: [ "int", "null", ] - # @return [ActiveSupport::Duration,nil] - define_property :event_schedule, as: "eventSchedule", types: [ + # @return [ActiveSupport::Duration,URI,nil] + define_property :duration, as: "duration", types: [ "DateInterval", + "URI", "null", ] - # @return [OpenActive::Enums::Schema::DayOfWeek,nil] - define_property :by_day, as: "byDay", types: [ - "OpenActive::Enums::Schema::DayOfWeek", + # @return [int,nil] + define_property :by_month_week, as: "byMonthWeek", types: [ + "int", "null", ] end end end