lib/openactive/models/schema/flight.rb in openactive-0.2.2 vs lib/openactive/models/schema/flight.rb in openactive-0.3.0

- old
+ new

@@ -6,37 +6,40 @@ # @return [String] def type "schema:Flight" end + # @return [OpenActive::Models::Schema::Distance,String,URI] + define_property :flight_distance, as: "flightDistance", types: [ + "OpenActive::Models::Schema::Distance", + "string", + "URI", + ] + # @return [DateTime,nil] define_property :web_checkin_time, as: "webCheckinTime", types: [ "DateTime", "null", ] - # @return [String] - define_property :departure_gate, as: "departureGate", types: [ + # @return [OpenActive::Models::Schema::Vehicle,String,URI] + define_property :aircraft, as: "aircraft", types: [ + "OpenActive::Models::Schema::Vehicle", "string", + "URI", ] # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] define_property :seller, as: "seller", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [String] - define_property :meal_service, as: "mealService", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::Vehicle,String,URI] - define_property :aircraft, as: "aircraft", types: [ - "OpenActive::Models::Schema::Vehicle", - "string", + # @return [OpenActive::Models::Schema::Airport,URI] + define_property :arrival_airport, as: "arrivalAirport", types: [ + "OpenActive::Models::Schema::Airport", "URI", ] # @return [String] define_property :arrival_terminal, as: "arrivalTerminal", types: [ @@ -57,44 +60,41 @@ # @return [String] define_property :departure_terminal, as: "departureTerminal", types: [ "string", ] - # @return [OpenActive::Models::Schema::Airport,URI] - define_property :arrival_airport, as: "arrivalAirport", types: [ - "OpenActive::Models::Schema::Airport", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :carrier, as: "carrier", types: [ + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Enums::Schema::BoardingPolicyType,nil] - define_property :boarding_policy, as: "boardingPolicy", types: [ - "OpenActive::Enums::Schema::BoardingPolicyType", + # @return [String,ActiveSupport::Duration,URI,nil] + define_property :estimated_flight_duration, as: "estimatedFlightDuration", types: [ + "string", + "DateInterval", + "URI", "null", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :carrier, as: "carrier", types: [ - "OpenActive::Models::Schema::Organization", - "URI", + # @return [String] + define_property :departure_gate, as: "departureGate", types: [ + "string", ] # @return [String] define_property :flight_number, as: "flightNumber", types: [ "string", ] - # @return [OpenActive::Models::Schema::Distance,String,URI] - define_property :flight_distance, as: "flightDistance", types: [ - "OpenActive::Models::Schema::Distance", + # @return [String] + define_property :meal_service, as: "mealService", types: [ "string", - "URI", ] - # @return [ActiveSupport::Duration,String,URI,nil] - define_property :estimated_flight_duration, as: "estimatedFlightDuration", types: [ - "DateInterval", - "string", - "URI", + # @return [OpenActive::Enums::Schema::BoardingPolicyType,nil] + define_property :boarding_policy, as: "boardingPolicy", types: [ + "OpenActive::Enums::Schema::BoardingPolicyType", "null", ] end end end