From ab979a2384b44f5991cbc8edafd735948a4e8177 Mon Sep 17 00:00:00 2001 From: OpenActive Bot <20357321+openactive-bot@users.noreply.github.com> Date: Mon, 17 Jun 2024 16:42:07 +0100 Subject: [PATCH] Update data models (#43) --- lib/openactive/enums/property_enumeration.rb | 18 +- .../schema/adult_oriented_enumeration.rb | 10 +- .../enums/schema/book_format_type.rb | 4 +- lib/openactive/enums/schema/car_usage_type.rb | 2 +- .../enums/schema/contact_point_option.rb | 2 +- lib/openactive/enums/schema/day_of_week.rb | 6 +- .../enums/schema/delivery_method.rb | 2 +- .../digital_document_permission_type.rb | 2 +- .../schema/digital_platform_enumeration.rb | 4 +- .../event_attendance_mode_enumeration.rb | 2 +- .../schema/game_availability_enumeration.rb | 2 +- lib/openactive/enums/schema/game_play_mode.rb | 2 +- .../enums/schema/government_benefits_type.rb | 10 +- .../enums/schema/health_aspect_enumeration.rb | 44 +- .../enums/schema/item_availability.rb | 14 +- .../enums/schema/item_list_order_type.rb | 2 +- .../enums/schema/legal_value_level.rb | 4 +- .../enums/schema/map_category_type.rb | 2 +- .../enums/schema/measurement_method_enum.rb | 12 + .../media_manipulation_rating_enumeration.rb | 6 +- .../schema/merchant_return_enumeration.rb | 4 +- .../schema/music_album_production_type.rb | 10 +- .../enums/schema/music_album_release_type.rb | 4 +- .../enums/schema/music_release_format_type.rb | 8 +- .../enums/schema/offer_item_condition.rb | 4 +- .../schema/physical_activity_category.rb | 4 +- .../price_component_type_enumeration.rb | 6 +- .../enums/schema/price_type_enumeration.rb | 8 +- .../enums/schema/refund_type_enumeration.rb | 2 +- .../enums/schema/restricted_diet.rb | 12 +- .../enums/schema/return_fees_enumeration.rb | 4 +- .../schema/return_label_source_enumeration.rb | 2 +- .../enums/schema/rsvp_response_type.rb | 2 +- .../enums/schema/size_system_enumeration.rb | 2 +- lib/openactive/enums/schema/warranty_scope.rb | 2 +- .../test_open_booking_flow_enumeration.rb | 2 +- lib/openactive/files_index.json | 95 +-- lib/openactive/models/schema/accommodation.rb | 90 ++- lib/openactive/models/schema/action.rb | 70 +- .../schema/action_access_specification.rb | 54 +- .../models/schema/aggregate_offer.rb | 22 +- .../models/schema/aggregate_rating.rb | 12 +- lib/openactive/models/schema/airport.rb | 4 +- .../models/schema/alignment_object.rb | 16 +- lib/openactive/models/schema/amp_story.rb | 2 +- .../models/schema/anatomical_structure.rb | 32 +- .../models/schema/anatomical_system.rb | 26 +- lib/openactive/models/schema/answer.rb | 4 +- .../models/schema/apartment_complex.rb | 28 +- lib/openactive/models/schema/apireference.rb | 4 +- .../models/schema/archive_component.rb | 4 +- lib/openactive/models/schema/artery.rb | 4 +- lib/openactive/models/schema/article.rb | 36 +- lib/openactive/models/schema/audience.rb | 10 +- .../models/schema/authorize_action.rb | 6 +- .../models/schema/auto_parts_store.rb | 2 +- lib/openactive/models/schema/bank_account.rb | 12 +- lib/openactive/models/schema/bed_details.rb | 14 +- .../models/schema/bio_chem_entity.rb | 80 +- lib/openactive/models/schema/blog.rb | 12 +- lib/openactive/models/schema/book.rb | 32 +- lib/openactive/models/schema/borrow_action.rb | 4 +- lib/openactive/models/schema/brand.rb | 18 +- .../models/schema/broadcast_channel.rb | 20 +- .../models/schema/broadcast_event.rb | 28 +- .../broadcast_frequency_specification.rb | 8 +- .../models/schema/broadcast_service.rb | 60 +- lib/openactive/models/schema/bus_or_coach.rb | 10 +- lib/openactive/models/schema/bus_trip.rb | 18 +- lib/openactive/models/schema/buy_action.rb | 14 +- lib/openactive/models/schema/car.rb | 10 +- lib/openactive/models/schema/category_code.rb | 4 +- lib/openactive/models/schema/cdcpmdrecord.rb | 58 +- lib/openactive/models/schema/chapter.rb | 12 +- .../models/schema/chemical_substance.rb | 12 +- lib/openactive/models/schema/choose_action.rb | 4 +- lib/openactive/models/schema/claim.rb | 14 +- lib/openactive/models/schema/class.rb | 4 +- lib/openactive/models/schema/clip.rb | 64 +- lib/openactive/models/schema/comic_issue.rb | 18 +- lib/openactive/models/schema/comic_story.rb | 8 +- lib/openactive/models/schema/comment.rb | 4 +- .../models/schema/communicate_action.rb | 24 +- .../schema/compound_price_specification.rb | 12 +- .../models/schema/constraint_node.rb | 26 + lib/openactive/models/schema/contact_point.rb | 48 +- lib/openactive/models/schema/cook_action.rb | 16 +- lib/openactive/models/schema/course.rb | 50 +- .../models/schema/course_instance.rb | 18 +- lib/openactive/models/schema/creative_work.rb | 721 +++++++++--------- .../models/schema/creative_work_season.rb | 74 +- .../models/schema/creative_work_series.rb | 14 +- lib/openactive/models/schema/credit_card.rb | 2 +- lib/openactive/models/schema/data_catalog.rb | 16 +- lib/openactive/models/schema/data_download.rb | 14 +- .../models/schema/data_feed_item.rb | 24 +- lib/openactive/models/schema/dataset.rb | 45 +- .../schema/dated_money_specification.rb | 26 +- lib/openactive/models/schema/ddx_element.rb | 12 +- .../models/schema/defined_region.rb | 14 +- lib/openactive/models/schema/defined_term.rb | 12 +- .../schema/delivery_charge_specification.rb | 22 +- .../models/schema/delivery_event.rb | 4 +- lib/openactive/models/schema/demand.rb | 223 +++--- lib/openactive/models/schema/dentist.rb | 2 +- .../models/schema/deposit_account.rb | 2 +- lib/openactive/models/schema/diet.rb | 12 +- .../models/schema/dietary_supplement.rb | 54 +- .../schema/digital_document_permission.rb | 16 +- lib/openactive/models/schema/donate_action.rb | 6 +- lib/openactive/models/schema/dose_schedule.rb | 18 +- lib/openactive/models/schema/drug.rb | 156 ++-- lib/openactive/models/schema/drug_cost.rb | 28 +- lib/openactive/models/schema/drug_strength.rb | 24 +- .../models/schema/education_event.rb | 14 +- .../educational_occupational_credential.rb | 38 +- .../educational_occupational_program.rb | 160 ++-- lib/openactive/models/schema/employee_role.rb | 16 +- .../models/schema/endorse_action.rb | 4 +- .../schema/energy_consumption_details.rb | 12 +- .../models/schema/engine_specification.rb | 28 +- lib/openactive/models/schema/entry_point.rb | 38 +- lib/openactive/models/schema/enumeration.rb | 4 +- lib/openactive/models/schema/episode.rb | 50 +- lib/openactive/models/schema/event.rb | 264 +++---- .../schema/exchange_rate_specification.rb | 14 +- .../models/schema/exercise_action.rb | 70 +- lib/openactive/models/schema/exercise_plan.rb | 36 +- .../models/schema/financial_product.rb | 12 +- .../models/schema/financial_service.rb | 4 +- lib/openactive/models/schema/flight.rb | 64 +- .../models/schema/flight_reservation.rb | 14 +- lib/openactive/models/schema/floor_plan.rb | 56 +- lib/openactive/models/schema/follow_action.rb | 4 +- .../models/schema/food_establishment.rb | 20 +- .../schema/food_establishment_reservation.rb | 18 +- lib/openactive/models/schema/game.rb | 18 +- lib/openactive/models/schema/game_server.rb | 16 +- lib/openactive/models/schema/gene.rb | 18 +- lib/openactive/models/schema/geo_circle.rb | 4 +- .../models/schema/geo_coordinates.rb | 22 +- lib/openactive/models/schema/geo_shape.rb | 24 +- .../models/schema/geospatial_geometry.rb | 42 +- lib/openactive/models/schema/give_action.rb | 6 +- .../models/schema/government_service.rb | 4 +- lib/openactive/models/schema/grant.rb | 22 +- .../models/schema/health_insurance_plan.rb | 32 +- .../health_plan_cost_sharing_specification.rb | 22 +- .../models/schema/health_plan_formulary.rb | 4 +- .../models/schema/health_plan_network.rb | 10 +- lib/openactive/models/schema/hospital.rb | 20 +- lib/openactive/models/schema/hotel_room.rb | 16 +- lib/openactive/models/schema/how_to.rb | 60 +- .../models/schema/how_to_direction.rb | 46 +- lib/openactive/models/schema/how_to_item.rb | 4 +- .../models/schema/how_to_section.rb | 4 +- lib/openactive/models/schema/how_to_tip.rb | 2 +- .../models/schema/hyper_toc_entry.rb | 10 +- lib/openactive/models/schema/image_object.rb | 28 +- .../models/schema/interaction_counter.rb | 32 +- .../models/schema/investment_or_deposit.rb | 4 +- lib/openactive/models/schema/invoice.rb | 96 +-- lib/openactive/models/schema/item_list.rb | 18 +- lib/openactive/models/schema/job_posting.rb | 223 +++--- lib/openactive/models/schema/joint.rb | 12 +- .../models/schema/learning_resource.rb | 34 +- lib/openactive/models/schema/legislation.rb | 70 +- lib/openactive/models/schema/link_role.rb | 10 +- .../models/schema/loan_or_credit.rb | 46 +- .../models/schema/local_business.rb | 16 +- .../schema/location_feature_specification.rb | 20 +- .../models/schema/lodging_business.rb | 50 +- .../models/schema/lodging_reservation.rb | 34 +- .../models/schema/lymphatic_vessel.rb | 12 +- lib/openactive/models/schema/math_solver.rb | 4 +- lib/openactive/models/schema/media_object.rb | 114 +-- lib/openactive/models/schema/media_review.rb | 14 +- .../models/schema/medical_audience.rb | 2 +- .../models/schema/medical_clinic.rb | 8 +- lib/openactive/models/schema/medical_code.rb | 2 +- .../models/schema/medical_condition.rb | 86 +-- .../models/schema/medical_device.rb | 30 +- .../models/schema/medical_entity.rb | 54 +- .../models/schema/medical_guideline.rb | 12 +- .../models/schema/medical_organization.rb | 16 +- .../models/schema/medical_procedure.rb | 32 +- lib/openactive/models/schema/medical_sign.rb | 12 +- lib/openactive/models/schema/medical_study.rb | 30 +- lib/openactive/models/schema/medical_test.rb | 26 +- .../models/schema/medical_therapy.rb | 14 +- .../models/schema/medical_web_page.rb | 4 +- lib/openactive/models/schema/menu.rb | 12 +- lib/openactive/models/schema/menu_item.rb | 24 +- lib/openactive/models/schema/menu_section.rb | 12 +- .../models/schema/merchant_return_policy.rb | 122 +-- ...erchant_return_policy_seasonal_override.rb | 16 +- lib/openactive/models/schema/message.rb | 60 +- .../models/schema/molecular_entity.rb | 36 +- .../models/schema/monetary_amount.rb | 46 +- .../models/schema/monetary_grant.rb | 4 +- .../models/schema/money_transfer.rb | 8 +- lib/openactive/models/schema/move_action.rb | 4 +- lib/openactive/models/schema/movie.rb | 54 +- lib/openactive/models/schema/movie_series.rb | 24 +- lib/openactive/models/schema/muscle.rb | 26 +- lib/openactive/models/schema/music_album.rb | 12 +- .../models/schema/music_composition.rb | 48 +- lib/openactive/models/schema/music_group.rb | 26 +- .../models/schema/music_playlist.rb | 14 +- .../models/schema/music_recording.rb | 30 +- lib/openactive/models/schema/music_release.rb | 26 +- lib/openactive/models/schema/nerve.rb | 22 +- lib/openactive/models/schema/news_article.rb | 4 +- .../models/schema/news_media_organization.rb | 52 +- .../models/schema/nutrition_information.rb | 38 +- lib/openactive/models/schema/observation.rb | 61 +- lib/openactive/models/schema/occupation.rb | 54 +- lib/openactive/models/schema/offer.rb | 341 +++++---- .../models/schema/offer_shipping_details.rb | 53 +- .../schema/opening_hours_specification.rb | 32 +- lib/openactive/models/schema/order.rb | 142 ++-- lib/openactive/models/schema/order_item.rb | 28 +- lib/openactive/models/schema/organization.rb | 396 +++++----- .../models/schema/ownership_info.rb | 24 +- .../models/schema/parcel_delivery.rb | 70 +- lib/openactive/models/schema/patient.rb | 12 +- lib/openactive/models/schema/pay_action.rb | 6 +- lib/openactive/models/schema/payment_card.rb | 26 +- .../models/schema/people_audience.rb | 48 +- lib/openactive/models/schema/permit.rb | 46 +- lib/openactive/models/schema/person.rb | 376 ++++----- .../models/schema/physical_activity.rb | 20 +- lib/openactive/models/schema/physician.rb | 18 +- lib/openactive/models/schema/place.rb | 278 +++---- lib/openactive/models/schema/plan_action.rb | 3 +- lib/openactive/models/schema/play_action.rb | 12 +- .../models/schema/podcast_series.rb | 12 +- .../models/schema/political_party.rb | 13 + .../models/schema/postal_address.rb | 10 +- .../schema/postal_code_range_specification.rb | 4 +- .../models/schema/price_specification.rb | 54 +- lib/openactive/models/schema/product.rb | 338 ++++---- .../models/schema/product_collection.rb | 2 +- lib/openactive/models/schema/product_group.rb | 16 +- lib/openactive/models/schema/product_model.rb | 8 +- .../models/schema/program_membership.rb | 30 +- .../models/schema/pronounceable_text.rb | 16 +- lib/openactive/models/schema/property.rb | 16 +- .../models/schema/property_value.rb | 60 +- .../schema/property_value_specification.rb | 50 +- .../models/schema/publication_issue.rb | 18 +- .../models/schema/publication_volume.rb | 18 +- .../models/schema/quantitative_value.rb | 56 +- .../schema/quantitative_value_distribution.rb | 22 +- lib/openactive/models/schema/question.rb | 14 +- lib/openactive/models/schema/quotation.rb | 4 +- lib/openactive/models/schema/radio_series.rb | 70 +- lib/openactive/models/schema/rating.rb | 28 +- .../models/schema/real_estate_listing.rb | 14 +- .../models/schema/receive_action.rb | 16 +- lib/openactive/models/schema/recipe.rb | 46 +- .../models/schema/recommendation.rb | 6 +- lib/openactive/models/schema/rent_action.rb | 12 +- .../models/schema/rental_car_reservation.rb | 16 +- .../models/schema/repayment_specification.rb | 14 +- .../models/schema/replace_action.rb | 4 +- lib/openactive/models/schema/reservation.rb | 72 +- lib/openactive/models/schema/return_action.rb | 6 +- lib/openactive/models/schema/review.rb | 48 +- .../models/schema/review_news_article.rb | 2 +- lib/openactive/models/schema/role.rb | 16 +- lib/openactive/models/schema/rsvp_action.rb | 12 +- lib/openactive/models/schema/schedule.rb | 74 +- .../models/schema/screening_event.rb | 16 +- lib/openactive/models/schema/seat.rb | 14 +- .../models/schema/seek_to_action.rb | 4 +- lib/openactive/models/schema/send_action.rb | 6 +- lib/openactive/models/schema/service.rb | 158 ++-- .../models/schema/service_channel.rb | 42 +- .../models/schema/shipping_delivery_time.rb | 18 +- .../models/schema/shipping_rate_settings.rb | 26 +- .../models/schema/size_specification.rb | 38 +- .../models/schema/software_application.rb | 102 +-- .../models/schema/software_source_code.rb | 30 +- .../models/schema/special_announcement.rb | 72 +- lib/openactive/models/schema/sports_event.rb | 20 +- .../models/schema/statistical_population.rb | 12 - .../models/schema/statistical_variable.rb | 64 ++ lib/openactive/models/schema/substance.rb | 10 +- lib/openactive/models/schema/suite.rb | 16 +- .../models/schema/superficial_anatomy.rb | 22 +- lib/openactive/models/schema/syllabus.rb | 13 + .../models/schema/taxi_reservation.rb | 16 +- lib/openactive/models/schema/taxon.rb | 24 +- lib/openactive/models/schema/text_object.rb | 13 + .../models/schema/therapeutic_procedure.rb | 12 +- lib/openactive/models/schema/thing.rb | 45 +- lib/openactive/models/schema/ticket.rb | 40 +- lib/openactive/models/schema/tip_action.rb | 6 +- .../models/schema/tourist_attraction.rb | 12 +- .../models/schema/tourist_destination.rb | 14 +- lib/openactive/models/schema/tourist_trip.rb | 4 +- lib/openactive/models/schema/train_trip.rb | 12 +- .../models/schema/transfer_action.rb | 4 +- lib/openactive/models/schema/trip.rb | 46 +- lib/openactive/models/schema/tvepisode.rb | 4 +- lib/openactive/models/schema/tvseason.rb | 8 +- lib/openactive/models/schema/tvseries.rb | 80 +- .../models/schema/type_and_quantity_node.rb | 16 +- .../models/schema/unit_price_specification.rb | 34 +- lib/openactive/models/schema/user_comments.rb | 28 +- .../models/schema/vacation_rental.rb | 13 + lib/openactive/models/schema/vehicle.rb | 224 +++--- lib/openactive/models/schema/vein.rb | 10 +- lib/openactive/models/schema/video_game.rb | 60 +- .../models/schema/video_game_series.rb | 118 +-- lib/openactive/models/schema/video_object.rb | 46 +- .../models/schema/visual_artwork.rb | 58 +- lib/openactive/models/schema/web_page.rb | 46 +- .../models/schema/work_based_program.rb | 14 +- 320 files changed, 5800 insertions(+), 5408 deletions(-) create mode 100644 lib/openactive/enums/schema/measurement_method_enum.rb create mode 100644 lib/openactive/models/schema/constraint_node.rb create mode 100644 lib/openactive/models/schema/political_party.rb create mode 100644 lib/openactive/models/schema/statistical_variable.rb create mode 100644 lib/openactive/models/schema/syllabus.rb create mode 100644 lib/openactive/models/schema/text_object.rb create mode 100644 lib/openactive/models/schema/vacation_rental.rb diff --git a/lib/openactive/enums/property_enumeration.rb b/lib/openactive/enums/property_enumeration.rb index c1aca389..b3aa863d 100644 --- a/lib/openactive/enums/property_enumeration.rb +++ b/lib/openactive/enums/property_enumeration.rb @@ -189,6 +189,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :ArticleSection, "https://schema.org/articleSection" new :Artist, "https://schema.org/artist" new :ArtworkSurface, "https://schema.org/artworkSurface" + new :Asin, "https://schema.org/asin" new :Aspect, "https://schema.org/aspect" new :Assembly, "https://schema.org/assembly" new :AssemblyVersion, "https://schema.org/assemblyVersion" @@ -309,6 +310,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :CharacterName, "https://schema.org/characterName" new :CheatCode, "https://schema.org/cheatCode" new :CheckinTime, "https://schema.org/checkinTime" + new :CheckoutPageURLTemplate, "https://schema.org/checkoutPageURLTemplate" new :CheckoutTime, "https://schema.org/checkoutTime" new :ChemicalComposition, "https://schema.org/chemicalComposition" new :ChemicalRole, "https://schema.org/chemicalRole" @@ -348,7 +350,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :ConditionsOfAccess, "https://schema.org/conditionsOfAccess" new :ConfirmationNumber, "https://schema.org/confirmationNumber" new :ConnectedTo, "https://schema.org/connectedTo" - new :ConstrainingProperty, "https://schema.org/constrainingProperty" + new :ConstraintProperty, "https://schema.org/constraintProperty" new :ContactOption, "https://schema.org/contactOption" new :ContactPoint, "https://schema.org/contactPoint" new :ContactPoints, "https://schema.org/contactPoints" @@ -386,6 +388,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :CourseCode, "https://schema.org/courseCode" new :CourseMode, "https://schema.org/courseMode" new :CoursePrerequisites, "https://schema.org/coursePrerequisites" + new :CourseSchedule, "https://schema.org/courseSchedule" new :CourseWorkload, "https://schema.org/courseWorkload" new :CoverageEndTime, "https://schema.org/coverageEndTime" new :CoverageStartTime, "https://schema.org/coverageStartTime" @@ -896,7 +899,9 @@ class PropertyEnumeration < TypesafeEnum::Base new :MaximumVirtualAttendeeCapacity, "https://schema.org/maximumVirtualAttendeeCapacity" new :MealService, "https://schema.org/mealService" new :MeasuredProperty, "https://schema.org/measuredProperty" - new :MeasuredValue, "https://schema.org/measuredValue" + new :MeasurementDenominator, "https://schema.org/measurementDenominator" + new :MeasurementMethod, "https://schema.org/measurementMethod" + new :MeasurementQualifier, "https://schema.org/measurementQualifier" new :MeasurementTechnique, "https://schema.org/measurementTechnique" new :MechanismOfAction, "https://schema.org/mechanismOfAction" new :MediaAuthenticityCategory, "https://schema.org/mediaAuthenticityCategory" @@ -924,6 +929,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :MinValue, "https://schema.org/minValue" new :MinimumPaymentDue, "https://schema.org/minimumPaymentDue" new :MissionCoveragePrioritiesPolicy, "https://schema.org/missionCoveragePrioritiesPolicy" + new :MobileUrl, "https://schema.org/mobileUrl" new :Model, "https://schema.org/model" new :ModelDate, "https://schema.org/modelDate" new :ModifiedTime, "https://schema.org/modifiedTime" @@ -986,8 +992,9 @@ class PropertyEnumeration < TypesafeEnum::Base new :NumberedPosition, "https://schema.org/numberedPosition" new :Nutrition, "https://schema.org/nutrition" new :Object, "https://schema.org/object" + new :ObservationAbout, "https://schema.org/observationAbout" new :ObservationDate, "https://schema.org/observationDate" - new :ObservedNode, "https://schema.org/observedNode" + new :ObservationPeriod, "https://schema.org/observationPeriod" new :Occupancy, "https://schema.org/occupancy" new :OccupationLocation, "https://schema.org/occupationLocation" new :OccupationalCategory, "https://schema.org/occupationalCategory" @@ -1298,6 +1305,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :ShippingDestination, "https://schema.org/shippingDestination" new :ShippingDetails, "https://schema.org/shippingDetails" new :ShippingLabel, "https://schema.org/shippingLabel" + new :ShippingOrigin, "https://schema.org/shippingOrigin" new :ShippingRate, "https://schema.org/shippingRate" new :ShippingSettingsLink, "https://schema.org/shippingSettingsLink" new :Sibling, "https://schema.org/sibling" @@ -1343,6 +1351,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :StartDate, "https://schema.org/startDate" new :StartOffset, "https://schema.org/startOffset" new :StartTime, "https://schema.org/startTime" + new :StatType, "https://schema.org/statType" new :Status, "https://schema.org/status" new :SteeringPosition, "https://schema.org/steeringPosition" new :Step, "https://schema.org/step" @@ -1382,6 +1391,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :SupplyTo, "https://schema.org/supplyTo" new :SupportingData, "https://schema.org/supportingData" new :Surface, "https://schema.org/surface" + new :SyllabusSections, "https://schema.org/syllabusSections" new :Target, "https://schema.org/target" new :TargetCollection, "https://schema.org/targetCollection" new :TargetDescription, "https://schema.org/targetDescription" @@ -1422,6 +1432,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :TongueWeight, "https://schema.org/tongueWeight" new :Tool, "https://schema.org/tool" new :Torque, "https://schema.org/torque" + new :TotalHistoricalEnrollment, "https://schema.org/totalHistoricalEnrollment" new :TotalJobOpenings, "https://schema.org/totalJobOpenings" new :TotalPaymentDue, "https://schema.org/totalPaymentDue" new :TotalPrice, "https://schema.org/totalPrice" @@ -1447,6 +1458,7 @@ class PropertyEnumeration < TypesafeEnum::Base new :TravelBans, "https://schema.org/travelBans" new :TrialDesign, "https://schema.org/trialDesign" new :Tributary, "https://schema.org/tributary" + new :TripOrigin, "https://schema.org/tripOrigin" new :TypeOfBed, "https://schema.org/typeOfBed" new :TypeOfGood, "https://schema.org/typeOfGood" new :TypicalAgeRange, "https://schema.org/typicalAgeRange" diff --git a/lib/openactive/enums/schema/adult_oriented_enumeration.rb b/lib/openactive/enums/schema/adult_oriented_enumeration.rb index 6225ea07..e8e803f4 100644 --- a/lib/openactive/enums/schema/adult_oriented_enumeration.rb +++ b/lib/openactive/enums/schema/adult_oriented_enumeration.rb @@ -7,14 +7,14 @@ module Schema class AdultOrientedEnumeration < TypesafeEnum::Base new :ReducedRelevanceForChildrenConsideration, "https://schema.org/ReducedRelevanceForChildrenConsideration" new :SexualContentConsideration, "https://schema.org/SexualContentConsideration" - new :UnclassifiedAdultConsideration, "https://schema.org/UnclassifiedAdultConsideration" - new :HealthcareConsideration, "https://schema.org/HealthcareConsideration" - new :NarcoticConsideration, "https://schema.org/NarcoticConsideration" - new :WeaponConsideration, "https://schema.org/WeaponConsideration" + new :ViolenceConsideration, "https://schema.org/ViolenceConsideration" new :TobaccoNicotineConsideration, "https://schema.org/TobaccoNicotineConsideration" new :AlcoholConsideration, "https://schema.org/AlcoholConsideration" new :DangerousGoodConsideration, "https://schema.org/DangerousGoodConsideration" - new :ViolenceConsideration, "https://schema.org/ViolenceConsideration" + new :NarcoticConsideration, "https://schema.org/NarcoticConsideration" + new :WeaponConsideration, "https://schema.org/WeaponConsideration" + new :UnclassifiedAdultConsideration, "https://schema.org/UnclassifiedAdultConsideration" + new :HealthcareConsideration, "https://schema.org/HealthcareConsideration" end end end diff --git a/lib/openactive/enums/schema/book_format_type.rb b/lib/openactive/enums/schema/book_format_type.rb index 89fd3543..8e7a71ec 100644 --- a/lib/openactive/enums/schema/book_format_type.rb +++ b/lib/openactive/enums/schema/book_format_type.rb @@ -5,11 +5,11 @@ module Enums module Schema # The publication format of the book. class BookFormatType < TypesafeEnum::Base - new :AudiobookFormat, "https://schema.org/AudiobookFormat" new :GraphicNovel, "https://schema.org/GraphicNovel" + new :AudiobookFormat, "https://schema.org/AudiobookFormat" + new :EBook, "https://schema.org/EBook" new :Paperback, "https://schema.org/Paperback" new :Hardcover, "https://schema.org/Hardcover" - new :EBook, "https://schema.org/EBook" end end end diff --git a/lib/openactive/enums/schema/car_usage_type.rb b/lib/openactive/enums/schema/car_usage_type.rb index 0865db4d..d20431ac 100644 --- a/lib/openactive/enums/schema/car_usage_type.rb +++ b/lib/openactive/enums/schema/car_usage_type.rb @@ -6,8 +6,8 @@ module Schema # A value indicating a special usage of a car, e.g. commercial rental, driving school, or as a taxi. class CarUsageType < TypesafeEnum::Base new :TaxiVehicleUsage, "https://schema.org/TaxiVehicleUsage" - new :DrivingSchoolVehicleUsage, "https://schema.org/DrivingSchoolVehicleUsage" new :RentalVehicleUsage, "https://schema.org/RentalVehicleUsage" + new :DrivingSchoolVehicleUsage, "https://schema.org/DrivingSchoolVehicleUsage" end end end diff --git a/lib/openactive/enums/schema/contact_point_option.rb b/lib/openactive/enums/schema/contact_point_option.rb index e66fd291..ff3a3544 100644 --- a/lib/openactive/enums/schema/contact_point_option.rb +++ b/lib/openactive/enums/schema/contact_point_option.rb @@ -5,8 +5,8 @@ module Enums module Schema # Enumerated options related to a ContactPoint. class ContactPointOption < TypesafeEnum::Base - new :HearingImpairedSupported, "https://schema.org/HearingImpairedSupported" new :TollFree, "https://schema.org/TollFree" + new :HearingImpairedSupported, "https://schema.org/HearingImpairedSupported" end end end diff --git a/lib/openactive/enums/schema/day_of_week.rb b/lib/openactive/enums/schema/day_of_week.rb index 2ff0942e..d2a156ba 100644 --- a/lib/openactive/enums/schema/day_of_week.rb +++ b/lib/openactive/enums/schema/day_of_week.rb @@ -8,14 +8,14 @@ module Schema # Originally, URLs from [GoodRelations](http://purl.org/goodrelations/v1) were used (for [[Monday]], [[Tuesday]], [[Wednesday]], [[Thursday]], [[Friday]], [[Saturday]], [[Sunday]] plus a special entry for [[PublicHolidays]]); these have now been integrated directly into schema.org. # class DayOfWeek < TypesafeEnum::Base + new :Sunday, "https://schema.org/Sunday" + new :Monday, "https://schema.org/Monday" new :Thursday, "https://schema.org/Thursday" new :Saturday, "https://schema.org/Saturday" - new :Tuesday, "https://schema.org/Tuesday" new :Friday, "https://schema.org/Friday" - new :Monday, "https://schema.org/Monday" new :Wednesday, "https://schema.org/Wednesday" new :PublicHolidays, "https://schema.org/PublicHolidays" - new :Sunday, "https://schema.org/Sunday" + new :Tuesday, "https://schema.org/Tuesday" end end end diff --git a/lib/openactive/enums/schema/delivery_method.rb b/lib/openactive/enums/schema/delivery_method.rb index b074d25c..ec1935c7 100644 --- a/lib/openactive/enums/schema/delivery_method.rb +++ b/lib/openactive/enums/schema/delivery_method.rb @@ -6,9 +6,9 @@ module Schema # A delivery method is a standardized procedure for transferring the product or service to the destination of fulfillment chosen by the customer. Delivery methods are characterized by the means of transportation used, and by the organization or group that is the contracting party for the sending organization or person.\n\nCommonly used values:\n\n* http://purl.org/goodrelations/v1#DeliveryModeDirectDownload\n* http://purl.org/goodrelations/v1#DeliveryModeFreight\n* http://purl.org/goodrelations/v1#DeliveryModeMail\n* http://purl.org/goodrelations/v1#DeliveryModeOwnFleet\n* http://purl.org/goodrelations/v1#DeliveryModePickUp\n* http://purl.org/goodrelations/v1#DHL\n* http://purl.org/goodrelations/v1#FederalExpress\n* http://purl.org/goodrelations/v1#UPS # class DeliveryMethod < TypesafeEnum::Base - new :ParcelService, "https://schema.org/ParcelService" new :OnSitePickup, "https://schema.org/OnSitePickup" new :LockerDelivery, "https://schema.org/LockerDelivery" + new :ParcelService, "https://schema.org/ParcelService" end end end diff --git a/lib/openactive/enums/schema/digital_document_permission_type.rb b/lib/openactive/enums/schema/digital_document_permission_type.rb index b78bcc56..e366a48f 100644 --- a/lib/openactive/enums/schema/digital_document_permission_type.rb +++ b/lib/openactive/enums/schema/digital_document_permission_type.rb @@ -5,8 +5,8 @@ module Enums module Schema # A type of permission which can be granted for accessing a digital document. class DigitalDocumentPermissionType < TypesafeEnum::Base - new :CommentPermission, "https://schema.org/CommentPermission" new :ReadPermission, "https://schema.org/ReadPermission" + new :CommentPermission, "https://schema.org/CommentPermission" new :WritePermission, "https://schema.org/WritePermission" end end diff --git a/lib/openactive/enums/schema/digital_platform_enumeration.rb b/lib/openactive/enums/schema/digital_platform_enumeration.rb index 8ad52a45..40e33f8b 100644 --- a/lib/openactive/enums/schema/digital_platform_enumeration.rb +++ b/lib/openactive/enums/schema/digital_platform_enumeration.rb @@ -5,11 +5,11 @@ module Enums module Schema # Enumerates some common technology platforms, for use with properties such as [[actionPlatform]]. It is not supposed to be comprehensive - when a suitable code is not enumerated here, textual or URL values can be used instead. These codes are at a fairly high level and do not deal with versioning and other nuance. Additional codes can be suggested [in github](https://github.com/schemaorg/schemaorg/issues/3057). class DigitalPlatformEnumeration < TypesafeEnum::Base - new :MobileWebPlatform, "https://schema.org/MobileWebPlatform" new :AndroidPlatform, "https://schema.org/AndroidPlatform" + new :IOSPlatform, "https://schema.org/IOSPlatform" + new :MobileWebPlatform, "https://schema.org/MobileWebPlatform" new :GenericWebPlatform, "https://schema.org/GenericWebPlatform" new :DesktopWebPlatform, "https://schema.org/DesktopWebPlatform" - new :IOSPlatform, "https://schema.org/IOSPlatform" end end end diff --git a/lib/openactive/enums/schema/event_attendance_mode_enumeration.rb b/lib/openactive/enums/schema/event_attendance_mode_enumeration.rb index 19240868..24961c33 100644 --- a/lib/openactive/enums/schema/event_attendance_mode_enumeration.rb +++ b/lib/openactive/enums/schema/event_attendance_mode_enumeration.rb @@ -6,8 +6,8 @@ module Schema # An EventAttendanceModeEnumeration value is one of potentially several modes of organising an event, relating to whether it is online or offline. class EventAttendanceModeEnumeration < TypesafeEnum::Base new :OfflineEventAttendanceMode, "https://schema.org/OfflineEventAttendanceMode" - new :MixedEventAttendanceMode, "https://schema.org/MixedEventAttendanceMode" new :OnlineEventAttendanceMode, "https://schema.org/OnlineEventAttendanceMode" + new :MixedEventAttendanceMode, "https://schema.org/MixedEventAttendanceMode" end end end diff --git a/lib/openactive/enums/schema/game_availability_enumeration.rb b/lib/openactive/enums/schema/game_availability_enumeration.rb index ee491fa2..725d3148 100644 --- a/lib/openactive/enums/schema/game_availability_enumeration.rb +++ b/lib/openactive/enums/schema/game_availability_enumeration.rb @@ -5,8 +5,8 @@ module Enums module Schema # For a [[VideoGame]], such as used with a [[PlayGameAction]], an enumeration of the kind of game availability offered. class GameAvailabilityEnumeration < TypesafeEnum::Base - new :FullGameAvailability, "https://schema.org/FullGameAvailability" new :DemoGameAvailability, "https://schema.org/DemoGameAvailability" + new :FullGameAvailability, "https://schema.org/FullGameAvailability" end end end diff --git a/lib/openactive/enums/schema/game_play_mode.rb b/lib/openactive/enums/schema/game_play_mode.rb index 7ecd36ba..17f94a82 100644 --- a/lib/openactive/enums/schema/game_play_mode.rb +++ b/lib/openactive/enums/schema/game_play_mode.rb @@ -5,8 +5,8 @@ module Enums module Schema # Indicates whether this game is multi-player, co-op or single-player. class GamePlayMode < TypesafeEnum::Base - new :MultiPlayer, "https://schema.org/MultiPlayer" new :CoOp, "https://schema.org/CoOp" + new :MultiPlayer, "https://schema.org/MultiPlayer" new :SinglePlayer, "https://schema.org/SinglePlayer" end end diff --git a/lib/openactive/enums/schema/government_benefits_type.rb b/lib/openactive/enums/schema/government_benefits_type.rb index e062ef4d..9e179e55 100644 --- a/lib/openactive/enums/schema/government_benefits_type.rb +++ b/lib/openactive/enums/schema/government_benefits_type.rb @@ -5,14 +5,14 @@ module Enums module Schema # GovernmentBenefitsType enumerates several kinds of government benefits to support the COVID-19 situation. Note that this structure may not capture all benefits offered. class GovernmentBenefitsType < TypesafeEnum::Base - new :HealthCare, "https://schema.org/HealthCare" - new :BusinessSupport, "https://schema.org/BusinessSupport" - new :OneTimePayments, "https://schema.org/OneTimePayments" new :DisabilitySupport, "https://schema.org/DisabilitySupport" - new :ParentalSupport, "https://schema.org/ParentalSupport" new :UnemploymentSupport, "https://schema.org/UnemploymentSupport" - new :PaidLeave, "https://schema.org/PaidLeave" new :BasicIncome, "https://schema.org/BasicIncome" + new :HealthCare, "https://schema.org/HealthCare" + new :OneTimePayments, "https://schema.org/OneTimePayments" + new :PaidLeave, "https://schema.org/PaidLeave" + new :ParentalSupport, "https://schema.org/ParentalSupport" + new :BusinessSupport, "https://schema.org/BusinessSupport" end end end diff --git a/lib/openactive/enums/schema/health_aspect_enumeration.rb b/lib/openactive/enums/schema/health_aspect_enumeration.rb index 4c6b3ebb..a1c784d5 100644 --- a/lib/openactive/enums/schema/health_aspect_enumeration.rb +++ b/lib/openactive/enums/schema/health_aspect_enumeration.rb @@ -5,35 +5,35 @@ module Enums module Schema # HealthAspectEnumeration enumerates several aspects of health content online, each of which might be described using [[hasHealthAspect]] and [[HealthTopicContent]]. class HealthAspectEnumeration < TypesafeEnum::Base - new :SideEffectsHealthAspect, "https://schema.org/SideEffectsHealthAspect" - new :AllergiesHealthAspect, "https://schema.org/AllergiesHealthAspect" - new :BenefitsHealthAspect, "https://schema.org/BenefitsHealthAspect" - new :SymptomsHealthAspect, "https://schema.org/SymptomsHealthAspect" new :StagesHealthAspect, "https://schema.org/StagesHealthAspect" - new :PrognosisHealthAspect, "https://schema.org/PrognosisHealthAspect" - new :HowItWorksHealthAspect, "https://schema.org/HowItWorksHealthAspect" - new :PregnancyHealthAspect, "https://schema.org/PregnancyHealthAspect" - new :SelfCareHealthAspect, "https://schema.org/SelfCareHealthAspect" - new :SeeDoctorHealthAspect, "https://schema.org/SeeDoctorHealthAspect" - new :TreatmentsHealthAspect, "https://schema.org/TreatmentsHealthAspect" - new :HowOrWhereHealthAspect, "https://schema.org/HowOrWhereHealthAspect" - new :OverviewHealthAspect, "https://schema.org/OverviewHealthAspect" - new :EffectivenessHealthAspect, "https://schema.org/EffectivenessHealthAspect" - new :TypesHealthAspect, "https://schema.org/TypesHealthAspect" - new :ContagiousnessHealthAspect, "https://schema.org/ContagiousnessHealthAspect" - new :SafetyHealthAspect, "https://schema.org/SafetyHealthAspect" + new :BenefitsHealthAspect, "https://schema.org/BenefitsHealthAspect" new :PreventionHealthAspect, "https://schema.org/PreventionHealthAspect" - new :LivingWithHealthAspect, "https://schema.org/LivingWithHealthAspect" + new :PatientExperienceHealthAspect, "https://schema.org/PatientExperienceHealthAspect" + new :SeeDoctorHealthAspect, "https://schema.org/SeeDoctorHealthAspect" new :ScreeningHealthAspect, "https://schema.org/ScreeningHealthAspect" - new :MayTreatHealthAspect, "https://schema.org/MayTreatHealthAspect" - new :UsageOrScheduleHealthAspect, "https://schema.org/UsageOrScheduleHealthAspect" - new :RisksOrComplicationsHealthAspect, "https://schema.org/RisksOrComplicationsHealthAspect" - new :IngredientsHealthAspect, "https://schema.org/IngredientsHealthAspect" + new :SafetyHealthAspect, "https://schema.org/SafetyHealthAspect" + new :ContagiousnessHealthAspect, "https://schema.org/ContagiousnessHealthAspect" + new :SelfCareHealthAspect, "https://schema.org/SelfCareHealthAspect" new :CausesHealthAspect, "https://schema.org/CausesHealthAspect" + new :OverviewHealthAspect, "https://schema.org/OverviewHealthAspect" + new :LivingWithHealthAspect, "https://schema.org/LivingWithHealthAspect" + new :TypesHealthAspect, "https://schema.org/TypesHealthAspect" + new :HowItWorksHealthAspect, "https://schema.org/HowItWorksHealthAspect" new :GettingAccessHealthAspect, "https://schema.org/GettingAccessHealthAspect" - new :PatientExperienceHealthAspect, "https://schema.org/PatientExperienceHealthAspect" + new :MayTreatHealthAspect, "https://schema.org/MayTreatHealthAspect" new :RelatedTopicsHealthAspect, "https://schema.org/RelatedTopicsHealthAspect" new :MisconceptionsHealthAspect, "https://schema.org/MisconceptionsHealthAspect" + new :HowOrWhereHealthAspect, "https://schema.org/HowOrWhereHealthAspect" + new :UsageOrScheduleHealthAspect, "https://schema.org/UsageOrScheduleHealthAspect" + new :PregnancyHealthAspect, "https://schema.org/PregnancyHealthAspect" + new :SideEffectsHealthAspect, "https://schema.org/SideEffectsHealthAspect" + new :PrognosisHealthAspect, "https://schema.org/PrognosisHealthAspect" + new :IngredientsHealthAspect, "https://schema.org/IngredientsHealthAspect" + new :RisksOrComplicationsHealthAspect, "https://schema.org/RisksOrComplicationsHealthAspect" + new :AllergiesHealthAspect, "https://schema.org/AllergiesHealthAspect" + new :EffectivenessHealthAspect, "https://schema.org/EffectivenessHealthAspect" + new :SymptomsHealthAspect, "https://schema.org/SymptomsHealthAspect" + new :TreatmentsHealthAspect, "https://schema.org/TreatmentsHealthAspect" end end end diff --git a/lib/openactive/enums/schema/item_availability.rb b/lib/openactive/enums/schema/item_availability.rb index c19297f0..4b8df522 100644 --- a/lib/openactive/enums/schema/item_availability.rb +++ b/lib/openactive/enums/schema/item_availability.rb @@ -5,16 +5,16 @@ module Enums module Schema # A list of possible product availability options. class ItemAvailability < TypesafeEnum::Base - new :OutOfStock, "https://schema.org/OutOfStock" - new :Discontinued, "https://schema.org/Discontinued" - new :OnlineOnly, "https://schema.org/OnlineOnly" - new :InStock, "https://schema.org/InStock" - new :InStoreOnly, "https://schema.org/InStoreOnly" - new :SoldOut, "https://schema.org/SoldOut" + new :PreOrder, "https://schema.org/PreOrder" new :PreSale, "https://schema.org/PreSale" new :BackOrder, "https://schema.org/BackOrder" - new :PreOrder, "https://schema.org/PreOrder" + new :OnlineOnly, "https://schema.org/OnlineOnly" + new :SoldOut, "https://schema.org/SoldOut" + new :Discontinued, "https://schema.org/Discontinued" new :LimitedAvailability, "https://schema.org/LimitedAvailability" + new :InStock, "https://schema.org/InStock" + new :OutOfStock, "https://schema.org/OutOfStock" + new :InStoreOnly, "https://schema.org/InStoreOnly" end end end diff --git a/lib/openactive/enums/schema/item_list_order_type.rb b/lib/openactive/enums/schema/item_list_order_type.rb index a116ad51..fac519c4 100644 --- a/lib/openactive/enums/schema/item_list_order_type.rb +++ b/lib/openactive/enums/schema/item_list_order_type.rb @@ -5,8 +5,8 @@ module Enums module Schema # Enumerated for values for itemListOrder for indicating how an ordered ItemList is organized. class ItemListOrderType < TypesafeEnum::Base - new :ItemListUnordered, "https://schema.org/ItemListUnordered" new :ItemListOrderDescending, "https://schema.org/ItemListOrderDescending" + new :ItemListUnordered, "https://schema.org/ItemListUnordered" new :ItemListOrderAscending, "https://schema.org/ItemListOrderAscending" end end diff --git a/lib/openactive/enums/schema/legal_value_level.rb b/lib/openactive/enums/schema/legal_value_level.rb index 0f2da5a0..22eed00f 100644 --- a/lib/openactive/enums/schema/legal_value_level.rb +++ b/lib/openactive/enums/schema/legal_value_level.rb @@ -5,10 +5,10 @@ module Enums module Schema # A list of possible levels for the legal validity of a legislation. class LegalValueLevel < TypesafeEnum::Base - new :DefinitiveLegalValue, "https://schema.org/DefinitiveLegalValue" new :UnofficialLegalValue, "https://schema.org/UnofficialLegalValue" - new :OfficialLegalValue, "https://schema.org/OfficialLegalValue" + new :DefinitiveLegalValue, "https://schema.org/DefinitiveLegalValue" new :AuthoritativeLegalValue, "https://schema.org/AuthoritativeLegalValue" + new :OfficialLegalValue, "https://schema.org/OfficialLegalValue" end end end diff --git a/lib/openactive/enums/schema/map_category_type.rb b/lib/openactive/enums/schema/map_category_type.rb index 085e7735..461997f5 100644 --- a/lib/openactive/enums/schema/map_category_type.rb +++ b/lib/openactive/enums/schema/map_category_type.rb @@ -6,8 +6,8 @@ module Schema # An enumeration of several kinds of Map. class MapCategoryType < TypesafeEnum::Base new :SeatingMap, "https://schema.org/SeatingMap" - new :VenueMap, "https://schema.org/VenueMap" new :ParkingMap, "https://schema.org/ParkingMap" + new :VenueMap, "https://schema.org/VenueMap" new :TransitMap, "https://schema.org/TransitMap" end end diff --git a/lib/openactive/enums/schema/measurement_method_enum.rb b/lib/openactive/enums/schema/measurement_method_enum.rb new file mode 100644 index 00000000..49317ab0 --- /dev/null +++ b/lib/openactive/enums/schema/measurement_method_enum.rb @@ -0,0 +1,12 @@ +require 'typesafe_enum' + +module OpenActive + module Enums + module Schema + # Enumeration(s) for use with [[measurementMethod]]. + class MeasurementMethodEnum < TypesafeEnum::Base + new :ExampleMeasurementMethodEnum, "https://schema.org/ExampleMeasurementMethodEnum" + end + end + end +end diff --git a/lib/openactive/enums/schema/media_manipulation_rating_enumeration.rb b/lib/openactive/enums/schema/media_manipulation_rating_enumeration.rb index e8e637fc..4c9e3223 100644 --- a/lib/openactive/enums/schema/media_manipulation_rating_enumeration.rb +++ b/lib/openactive/enums/schema/media_manipulation_rating_enumeration.rb @@ -5,12 +5,12 @@ module Enums module Schema # Codes for use with the [[mediaAuthenticityCategory]] property, indicating the authenticity of a media object (in the context of how it was published or shared). In general these codes are not mutually exclusive, although some combinations (such as 'original' versus 'transformed', 'edited' and 'staged') would be contradictory if applied in the same [[MediaReview]]. Note that the application of these codes is with regard to a piece of media shared or published in a particular context. class MediaManipulationRatingEnumeration < TypesafeEnum::Base + new :StagedContent, "https://schema.org/StagedContent" new :OriginalMediaContent, "https://schema.org/OriginalMediaContent" - new :SatireOrParodyContent, "https://schema.org/SatireOrParodyContent" new :EditedOrCroppedContent, "https://schema.org/EditedOrCroppedContent" - new :DecontextualizedContent, "https://schema.org/DecontextualizedContent" - new :StagedContent, "https://schema.org/StagedContent" + new :SatireOrParodyContent, "https://schema.org/SatireOrParodyContent" new :TransformedContent, "https://schema.org/TransformedContent" + new :DecontextualizedContent, "https://schema.org/DecontextualizedContent" end end end diff --git a/lib/openactive/enums/schema/merchant_return_enumeration.rb b/lib/openactive/enums/schema/merchant_return_enumeration.rb index 40e3bc75..b3bffaff 100644 --- a/lib/openactive/enums/schema/merchant_return_enumeration.rb +++ b/lib/openactive/enums/schema/merchant_return_enumeration.rb @@ -5,10 +5,10 @@ module Enums module Schema # Enumerates several kinds of product return policies. class MerchantReturnEnumeration < TypesafeEnum::Base - new :MerchantReturnNotPermitted, "https://schema.org/MerchantReturnNotPermitted" - new :MerchantReturnUnlimitedWindow, "https://schema.org/MerchantReturnUnlimitedWindow" new :MerchantReturnFiniteReturnWindow, "https://schema.org/MerchantReturnFiniteReturnWindow" + new :MerchantReturnNotPermitted, "https://schema.org/MerchantReturnNotPermitted" new :MerchantReturnUnspecified, "https://schema.org/MerchantReturnUnspecified" + new :MerchantReturnUnlimitedWindow, "https://schema.org/MerchantReturnUnlimitedWindow" end end end diff --git a/lib/openactive/enums/schema/music_album_production_type.rb b/lib/openactive/enums/schema/music_album_production_type.rb index 30fe7654..83eea846 100644 --- a/lib/openactive/enums/schema/music_album_production_type.rb +++ b/lib/openactive/enums/schema/music_album_production_type.rb @@ -3,17 +3,17 @@ module OpenActive module Enums module Schema - # Classification of the album by it's type of content: soundtrack, live album, studio album, etc. + # Classification of the album by its type of content: soundtrack, live album, studio album, etc. class MusicAlbumProductionType < TypesafeEnum::Base - new :SoundtrackAlbum, "https://schema.org/SoundtrackAlbum" + new :MixtapeAlbum, "https://schema.org/MixtapeAlbum" new :RemixAlbum, "https://schema.org/RemixAlbum" new :SpokenWordAlbum, "https://schema.org/SpokenWordAlbum" - new :MixtapeAlbum, "https://schema.org/MixtapeAlbum" + new :StudioAlbum, "https://schema.org/StudioAlbum" new :CompilationAlbum, "https://schema.org/CompilationAlbum" - new :DJMixAlbum, "https://schema.org/DJMixAlbum" + new :SoundtrackAlbum, "https://schema.org/SoundtrackAlbum" new :LiveAlbum, "https://schema.org/LiveAlbum" + new :DJMixAlbum, "https://schema.org/DJMixAlbum" new :DemoAlbum, "https://schema.org/DemoAlbum" - new :StudioAlbum, "https://schema.org/StudioAlbum" end end end diff --git a/lib/openactive/enums/schema/music_album_release_type.rb b/lib/openactive/enums/schema/music_album_release_type.rb index e3f3ac71..f453dfdd 100644 --- a/lib/openactive/enums/schema/music_album_release_type.rb +++ b/lib/openactive/enums/schema/music_album_release_type.rb @@ -5,10 +5,10 @@ module Enums module Schema # The kind of release which this album is: single, EP or album. class MusicAlbumReleaseType < TypesafeEnum::Base - new :EPRelease, "https://schema.org/EPRelease" + new :AlbumRelease, "https://schema.org/AlbumRelease" new :BroadcastRelease, "https://schema.org/BroadcastRelease" + new :EPRelease, "https://schema.org/EPRelease" new :SingleRelease, "https://schema.org/SingleRelease" - new :AlbumRelease, "https://schema.org/AlbumRelease" end end end diff --git a/lib/openactive/enums/schema/music_release_format_type.rb b/lib/openactive/enums/schema/music_release_format_type.rb index f2b9273b..565663ae 100644 --- a/lib/openactive/enums/schema/music_release_format_type.rb +++ b/lib/openactive/enums/schema/music_release_format_type.rb @@ -3,15 +3,15 @@ module OpenActive module Enums module Schema - # Format of this release (the type of recording media used, ie. compact disc, digital media, LP, etc.). + # Format of this release (the type of recording media used, i.e. compact disc, digital media, LP, etc.). class MusicReleaseFormatType < TypesafeEnum::Base - new :CDFormat, "https://schema.org/CDFormat" - new :DigitalAudioTapeFormat, "https://schema.org/DigitalAudioTapeFormat" + new :VinylFormat, "https://schema.org/VinylFormat" new :DigitalFormat, "https://schema.org/DigitalFormat" + new :CDFormat, "https://schema.org/CDFormat" new :LaserDiscFormat, "https://schema.org/LaserDiscFormat" - new :VinylFormat, "https://schema.org/VinylFormat" new :CassetteFormat, "https://schema.org/CassetteFormat" new :DVDFormat, "https://schema.org/DVDFormat" + new :DigitalAudioTapeFormat, "https://schema.org/DigitalAudioTapeFormat" end end end diff --git a/lib/openactive/enums/schema/offer_item_condition.rb b/lib/openactive/enums/schema/offer_item_condition.rb index 47b133b0..564284a2 100644 --- a/lib/openactive/enums/schema/offer_item_condition.rb +++ b/lib/openactive/enums/schema/offer_item_condition.rb @@ -5,10 +5,10 @@ module Enums module Schema # A list of possible conditions for the item. class OfferItemCondition < TypesafeEnum::Base - new :DamagedCondition, "https://schema.org/DamagedCondition" - new :RefurbishedCondition, "https://schema.org/RefurbishedCondition" new :UsedCondition, "https://schema.org/UsedCondition" + new :RefurbishedCondition, "https://schema.org/RefurbishedCondition" new :NewCondition, "https://schema.org/NewCondition" + new :DamagedCondition, "https://schema.org/DamagedCondition" end end end diff --git a/lib/openactive/enums/schema/physical_activity_category.rb b/lib/openactive/enums/schema/physical_activity_category.rb index e5b89f2c..5741e7b9 100644 --- a/lib/openactive/enums/schema/physical_activity_category.rb +++ b/lib/openactive/enums/schema/physical_activity_category.rb @@ -5,12 +5,12 @@ module Enums module Schema # Categories of physical activity, organized by physiologic classification. class PhysicalActivityCategory < TypesafeEnum::Base - new :Balance, "https://schema.org/Balance" new :AnaerobicActivity, "https://schema.org/AnaerobicActivity" + new :Balance, "https://schema.org/Balance" new :Flexibility, "https://schema.org/Flexibility" + new :AerobicActivity, "https://schema.org/AerobicActivity" new :OccupationalActivity, "https://schema.org/OccupationalActivity" new :LeisureTimeActivity, "https://schema.org/LeisureTimeActivity" - new :AerobicActivity, "https://schema.org/AerobicActivity" new :StrengthTraining, "https://schema.org/StrengthTraining" end end diff --git a/lib/openactive/enums/schema/price_component_type_enumeration.rb b/lib/openactive/enums/schema/price_component_type_enumeration.rb index 964f9280..91611dab 100644 --- a/lib/openactive/enums/schema/price_component_type_enumeration.rb +++ b/lib/openactive/enums/schema/price_component_type_enumeration.rb @@ -5,12 +5,12 @@ module Enums module Schema # Enumerates different price components that together make up the total price for an offered product. class PriceComponentTypeEnumeration < TypesafeEnum::Base - new :Subscription, "https://schema.org/Subscription" new :Installment, "https://schema.org/Installment" - new :ActivationFee, "https://schema.org/ActivationFee" - new :Downpayment, "https://schema.org/Downpayment" new :CleaningFee, "https://schema.org/CleaningFee" + new :Downpayment, "https://schema.org/Downpayment" + new :Subscription, "https://schema.org/Subscription" new :DistanceFee, "https://schema.org/DistanceFee" + new :ActivationFee, "https://schema.org/ActivationFee" end end end diff --git a/lib/openactive/enums/schema/price_type_enumeration.rb b/lib/openactive/enums/schema/price_type_enumeration.rb index 48b4ad4e..588acde1 100644 --- a/lib/openactive/enums/schema/price_type_enumeration.rb +++ b/lib/openactive/enums/schema/price_type_enumeration.rb @@ -5,12 +5,12 @@ module Enums module Schema # Enumerates different price types, for example list price, invoice price, and sale price. class PriceTypeEnumeration < TypesafeEnum::Base - new :SalePrice, "https://schema.org/SalePrice" - new :SRP, "https://schema.org/SRP" + new :MSRP, "https://schema.org/MSRP" new :ListPrice, "https://schema.org/ListPrice" - new :InvoicePrice, "https://schema.org/InvoicePrice" new :MinimumAdvertisedPrice, "https://schema.org/MinimumAdvertisedPrice" - new :MSRP, "https://schema.org/MSRP" + new :InvoicePrice, "https://schema.org/InvoicePrice" + new :SRP, "https://schema.org/SRP" + new :SalePrice, "https://schema.org/SalePrice" end end end diff --git a/lib/openactive/enums/schema/refund_type_enumeration.rb b/lib/openactive/enums/schema/refund_type_enumeration.rb index e0bdfeab..c01c91a4 100644 --- a/lib/openactive/enums/schema/refund_type_enumeration.rb +++ b/lib/openactive/enums/schema/refund_type_enumeration.rb @@ -5,9 +5,9 @@ module Enums module Schema # Enumerates several kinds of product return refund types. class RefundTypeEnumeration < TypesafeEnum::Base + new :FullRefund, "https://schema.org/FullRefund" new :StoreCreditRefund, "https://schema.org/StoreCreditRefund" new :ExchangeRefund, "https://schema.org/ExchangeRefund" - new :FullRefund, "https://schema.org/FullRefund" end end end diff --git a/lib/openactive/enums/schema/restricted_diet.rb b/lib/openactive/enums/schema/restricted_diet.rb index 11991532..d07b81ba 100644 --- a/lib/openactive/enums/schema/restricted_diet.rb +++ b/lib/openactive/enums/schema/restricted_diet.rb @@ -5,17 +5,17 @@ module Enums module Schema # A diet restricted to certain foods or preparations for cultural, religious, health or lifestyle reasons. class RestrictedDiet < TypesafeEnum::Base - new :VeganDiet, "https://schema.org/VeganDiet" - new :LowFatDiet, "https://schema.org/LowFatDiet" - new :KosherDiet, "https://schema.org/KosherDiet" - new :HinduDiet, "https://schema.org/HinduDiet" new :HalalDiet, "https://schema.org/HalalDiet" new :VegetarianDiet, "https://schema.org/VegetarianDiet" new :LowSaltDiet, "https://schema.org/LowSaltDiet" - new :LowCalorieDiet, "https://schema.org/LowCalorieDiet" + new :VeganDiet, "https://schema.org/VeganDiet" new :LowLactoseDiet, "https://schema.org/LowLactoseDiet" - new :GlutenFreeDiet, "https://schema.org/GlutenFreeDiet" + new :LowFatDiet, "https://schema.org/LowFatDiet" + new :HinduDiet, "https://schema.org/HinduDiet" + new :KosherDiet, "https://schema.org/KosherDiet" new :DiabeticDiet, "https://schema.org/DiabeticDiet" + new :LowCalorieDiet, "https://schema.org/LowCalorieDiet" + new :GlutenFreeDiet, "https://schema.org/GlutenFreeDiet" end end end diff --git a/lib/openactive/enums/schema/return_fees_enumeration.rb b/lib/openactive/enums/schema/return_fees_enumeration.rb index bf0d6c68..5ea646c2 100644 --- a/lib/openactive/enums/schema/return_fees_enumeration.rb +++ b/lib/openactive/enums/schema/return_fees_enumeration.rb @@ -5,11 +5,11 @@ module Enums module Schema # Enumerates several kinds of policies for product return fees. class ReturnFeesEnumeration < TypesafeEnum::Base - new :ReturnFeesCustomerResponsibility, "https://schema.org/ReturnFeesCustomerResponsibility" - new :OriginalShippingFees, "https://schema.org/OriginalShippingFees" new :ReturnShippingFees, "https://schema.org/ReturnShippingFees" new :FreeReturn, "https://schema.org/FreeReturn" new :RestockingFees, "https://schema.org/RestockingFees" + new :ReturnFeesCustomerResponsibility, "https://schema.org/ReturnFeesCustomerResponsibility" + new :OriginalShippingFees, "https://schema.org/OriginalShippingFees" end end end diff --git a/lib/openactive/enums/schema/return_label_source_enumeration.rb b/lib/openactive/enums/schema/return_label_source_enumeration.rb index 27b6742f..7f24ebe0 100644 --- a/lib/openactive/enums/schema/return_label_source_enumeration.rb +++ b/lib/openactive/enums/schema/return_label_source_enumeration.rb @@ -6,8 +6,8 @@ module Schema # Enumerates several types of return labels for product returns. class ReturnLabelSourceEnumeration < TypesafeEnum::Base new :ReturnLabelCustomerResponsibility, "https://schema.org/ReturnLabelCustomerResponsibility" - new :ReturnLabelDownloadAndPrint, "https://schema.org/ReturnLabelDownloadAndPrint" new :ReturnLabelInBox, "https://schema.org/ReturnLabelInBox" + new :ReturnLabelDownloadAndPrint, "https://schema.org/ReturnLabelDownloadAndPrint" end end end diff --git a/lib/openactive/enums/schema/rsvp_response_type.rb b/lib/openactive/enums/schema/rsvp_response_type.rb index 8e86e569..f164738a 100644 --- a/lib/openactive/enums/schema/rsvp_response_type.rb +++ b/lib/openactive/enums/schema/rsvp_response_type.rb @@ -5,9 +5,9 @@ module Enums module Schema # RsvpResponseType is an enumeration type whose instances represent responding to an RSVP request. class RsvpResponseType < TypesafeEnum::Base - new :RsvpResponseNo, "https://schema.org/RsvpResponseNo" new :RsvpResponseMaybe, "https://schema.org/RsvpResponseMaybe" new :RsvpResponseYes, "https://schema.org/RsvpResponseYes" + new :RsvpResponseNo, "https://schema.org/RsvpResponseNo" end end end diff --git a/lib/openactive/enums/schema/size_system_enumeration.rb b/lib/openactive/enums/schema/size_system_enumeration.rb index fc97e29e..c68db1cb 100644 --- a/lib/openactive/enums/schema/size_system_enumeration.rb +++ b/lib/openactive/enums/schema/size_system_enumeration.rb @@ -5,8 +5,8 @@ module Enums module Schema # Enumerates common size systems for different categories of products, for example "EN-13402" or "UK" for wearables or "Imperial" for screws. class SizeSystemEnumeration < TypesafeEnum::Base - new :SizeSystemMetric, "https://schema.org/SizeSystemMetric" new :SizeSystemImperial, "https://schema.org/SizeSystemImperial" + new :SizeSystemMetric, "https://schema.org/SizeSystemMetric" end end end diff --git a/lib/openactive/enums/schema/warranty_scope.rb b/lib/openactive/enums/schema/warranty_scope.rb index 08e77253..d2eb0c7b 100644 --- a/lib/openactive/enums/schema/warranty_scope.rb +++ b/lib/openactive/enums/schema/warranty_scope.rb @@ -3,7 +3,7 @@ module OpenActive module Enums module Schema - # A range of of services that will be provided to a customer free of charge in case of a defect or malfunction of a product.\n\nCommonly used values:\n\n* http://purl.org/goodrelations/v1#Labor-BringIn\n* http://purl.org/goodrelations/v1#PartsAndLabor-BringIn\n* http://purl.org/goodrelations/v1#PartsAndLabor-PickUp + # A range of services that will be provided to a customer free of charge in case of a defect or malfunction of a product.\n\nCommonly used values:\n\n* http://purl.org/goodrelations/v1#Labor-BringIn\n* http://purl.org/goodrelations/v1#PartsAndLabor-BringIn\n* http://purl.org/goodrelations/v1#PartsAndLabor-PickUp # class WarrantyScope < TypesafeEnum::Base end diff --git a/lib/openactive/enums/test_open_booking_flow_enumeration.rb b/lib/openactive/enums/test_open_booking_flow_enumeration.rb index 5717f8e8..5f52462b 100644 --- a/lib/openactive/enums/test_open_booking_flow_enumeration.rb +++ b/lib/openactive/enums/test_open_booking_flow_enumeration.rb @@ -3,7 +3,7 @@ module OpenActive module Enums # [NOTICE: This enumeration is part of the Open Booking API Test Interface, and MUST NOT be used in production.] - # An enumeration of open booking flows that an opportunity can be booked with. + # An enumeration of [open booking flow](https://openactive.io/open-booking-api/EditorsDraft/1.0CR3/#booking-flows) that an [Opportunity and Offer pair](https://openactive.io/open-booking-api/EditorsDraft/1.0CR3/#definition-of-a-bookable-opportunity-and-offer-pair) can be booked with. class TestOpenBookingFlowEnumeration < TypesafeEnum::Base new :OpenBookingSimpleFlow, "https://openactive.io/test-interface#OpenBookingSimpleFlow" new :OpenBookingApprovalFlow, "https://openactive.io/test-interface#OpenBookingApprovalFlow" diff --git a/lib/openactive/files_index.json b/lib/openactive/files_index.json index 7567899c..ffaf111c 100644 --- a/lib/openactive/files_index.json +++ b/lib/openactive/files_index.json @@ -73,7 +73,6 @@ "/models/schema/administrative_area.rb", "/models/schema/airline.rb", "/models/schema/alignment_object.rb", - "/models/schema/amp_story.rb", "/models/schema/anatomical_structure.rb", "/models/schema/anatomical_system.rb", "/models/schema/archive_component.rb", @@ -104,6 +103,7 @@ "/models/schema/computer_language.rb", "/models/concept_collection.rb", "/models/schema/consortium.rb", + "/models/schema/constraint_node.rb", "/models/schema/consume_action.rb", "/models/schema/control_action.rb", "/models/schema/conversation.rb", @@ -120,9 +120,11 @@ "/models/schema/defined_term_set.rb", "/models/schema/delivery_event.rb", "/models/schema/demand.rb", + "/models/schema/dietary_supplement.rb", "/models/schema/digital_document.rb", "/models/schema/digital_document_permission.rb", "/models/schema/drawing.rb", + "/models/schema/drug.rb", "/models/schema/drug_class.rb", "/models/schema/drug_cost.rb", "/models/dynamic_payment.rb", @@ -133,7 +135,6 @@ "/models/schema/entry_point.rb", "/models/schema/episode.rb", "/models/event.rb", - "/models/schema/exercise_plan.rb", "/models/schema/exhibition_event.rb", "/models/facility_use.rb", "/models/schema/festival.rb", @@ -155,7 +156,7 @@ "/models/schema/health_plan_formulary.rb", "/models/schema/health_plan_network.rb", "/models/schema/how_to.rb", - "/models/schema/how_to_tip.rb", + "/models/schema/how_to_direction.rb", "/models/schema/hyper_toc.rb", "/models/schema/hyper_toc_entry.rb", "/models/incomplete_attendee_details_error.rb", @@ -223,7 +224,6 @@ "/models/schema/news_media_organization.rb", "/models/no_apitoken_error.rb", "/models/not_found_error.rb", - "/models/schema/observation.rb", "/models/schema/occupation.rb", "/models/schema/occupational_experience_requirements.rb", "/models/schema/offer.rb", @@ -254,8 +254,8 @@ "/models/place.rb", "/models/schema/play.rb", "/models/schema/play_action.rb", + "/models/schema/political_party.rb", "/models/schema/poster.rb", - "/models/schema/product_collection.rb", "/models/schema/product_group.rb", "/models/schema/product_model.rb", "/models/schema/program_membership.rb", @@ -304,6 +304,7 @@ "/models/schema/structured_value.rb", "/models/schema/substance.rb", "/models/schema/superficial_anatomy.rb", + "/models/schema/tvseason.rb", "/models/temporarily_unable_to_create_order_error.rb", "/models/temporarily_unable_to_delete_order_error.rb", "/models/temporarily_unable_to_produce_order_quote_error.rb", @@ -347,6 +348,7 @@ "/models/schema/aggregate_rating.rb", "/models/schema/airport.rb", "/models/schema/allocate_action.rb", + "/models/schema/amp_story.rb", "/models/schema/animal_shelter.rb", "/models/schema/answer.rb", "/models/schema/apartment.rb", @@ -428,7 +430,6 @@ "/models/schema/diagnostic_lab.rb", "/models/schema/diagnostic_procedure.rb", "/models/schema/diet.rb", - "/models/schema/dietary_supplement.rb", "/models/schema/discover_action.rb", "/models/schema/distance.rb", "/models/schema/donate_action.rb", @@ -436,7 +437,6 @@ "/models/schema/download_action.rb", "/models/schema/draw_action.rb", "/models/schema/drink_action.rb", - "/models/schema/drug.rb", "/models/schema/drug_legal_status.rb", "/models/schema/drug_strength.rb", "/models/schema/dry_cleaning_or_laundry.rb", @@ -485,10 +485,10 @@ "/models/schema/home_and_construction_business.rb", "/models/schema/hospital.rb", "/models/schema/house.rb", - "/models/schema/how_to_direction.rb", "/models/schema/how_to_item.rb", "/models/schema/how_to_section.rb", "/models/schema/how_to_step.rb", + "/models/schema/how_to_tip.rb", "/models/schema/ignore_action.rb", "/models/schema/image_object.rb", "/models/schema/imaging_test.rb", @@ -518,10 +518,7 @@ "/models/schema/mass.rb", "/models/media_object.rb", "/models/schema/media_review.rb", - "/models/schema/medical_audience.rb", "/models/schema/medical_business.rb", - "/models/schema/medical_clinic.rb", - "/models/schema/medical_code.rb", "/models/schema/medical_condition_stage.rb", "/models/schema/medical_guideline_contraindication.rb", "/models/schema/medical_guideline_recommendation.rb", @@ -596,6 +593,7 @@ "/models/schema/presentation_digital_document.rb", "/models/schema/prevention_indication.rb", "/models/schema/price_specification.rb", + "/models/schema/product_collection.rb", "/models/schema/professional_service.rb", "/models/schema/profile_page.rb", "/models/schema/property_value.rb", @@ -655,15 +653,16 @@ "/models/schema/sports_team.rb", "/models/schema/spreadsheet_digital_document.rb", "/models/schema/state.rb", + "/models/schema/statistical_variable.rb", "/models/schema/store.rb", "/models/schema/subscribe_action.rb", "/models/schema/subway_station.rb", "/models/schema/suite.rb", "/models/schema/surgical_procedure.rb", "/models/schema/suspend_action.rb", + "/models/schema/syllabus.rb", "/models/schema/tvclip.rb", "/models/schema/tvepisode.rb", - "/models/schema/tvseason.rb", "/models/schema/tvseries.rb", "/models/schema/table.rb", "/models/schema/take_action.rb", @@ -676,6 +675,7 @@ "/models/schema/television_station.rb", "/models/terms.rb", "/models/schema/text_digital_document.rb", + "/models/schema/text_object.rb", "/models/schema/theater_group.rb", "/models/schema/therapeutic_procedure.rb", "/models/schema/tie_action.rb", @@ -790,7 +790,6 @@ "/models/schema/convenience_store.rb", "/models/course.rb", "/models/schema/courthouse.rb", - "/models/schema/covid_testing_facility.rb", "/models/schema/currency_conversion_service.rb", "/models/customer_notice_simulate_action.rb", "/models/data_download.rb", @@ -811,6 +810,7 @@ "/models/schema/employer_aggregate_rating.rb", "/models/schema/endorse_action.rb", "/models/schema/exercise_gym.rb", + "/models/schema/exercise_plan.rb", "/models/schema/fmradio_channel.rb", "/models/schema/fast_food_restaurant.rb", "/models/file_upload_form_field_specification.rb", @@ -857,6 +857,9 @@ "/models/schema/lymphatic_vessel.rb", "/models/schema/maximum_dose_schedule.rb", "/models/schema/media_gallery.rb", + "/models/schema/medical_audience.rb", + "/models/schema/medical_clinic.rb", + "/models/schema/medical_code.rb", "/models/schema/medical_scholarly_article.rb", "/models/schema/medical_sign.rb", "/models/schema/medical_symptom.rb", @@ -877,6 +880,7 @@ "/models/schema/newspaper.rb", "/models/schema/night_club.rb", "/models/schema/notary.rb", + "/models/schema/observation.rb", "/models/schema/ocean_body_of_water.rb", "/models/offer_override.rb", "/models/schema/office_equipment_store.rb", @@ -887,7 +891,6 @@ "/models/schema/outlet_store.rb", "/models/paragraph_form_field_specification.rb", "/models/schema/parent_audience.rb", - "/models/schema/patient.rb", "/models/schema/pawn_shop.rb", "/models/schema/payment_card.rb", "/models/schema/payment_charge_specification.rb", @@ -941,6 +944,7 @@ "/models/schema/tire_shop.rb", "/models/schema/toy_store.rb", "/models/schema/unit_price_specification.rb", + "/models/schema/vacation_rental.rb", "/models/schema/vein.rb", "/models/video_object.rb", "/models/schema/video_object_snapshot.rb", @@ -955,6 +959,7 @@ "/models/schema/brokerage_account.rb", "/models/schema/catholic_church.rb", "/models/schema/confirm_action.rb", + "/models/schema/covid_testing_facility.rb", "/models/schema/credit_card.rb", "/models/schema/deposit_account.rb", "/models/schema/image_gallery.rb", @@ -965,6 +970,7 @@ "/models/schema/occupational_therapy.rb", "/models/order_proposal.rb", "/models/schema/palliative_procedure.rb", + "/models/schema/patient.rb", "/models/schema/physical_therapy.rb", "/models/postal_address.rb", "/models/schema/prepend_action.rb", @@ -1000,49 +1006,50 @@ "/enums/booking_channel_type.rb", "/enums/test_open_booking_flow_enumeration.rb", "/enums/test_opportunity_criteria_enumeration.rb", - "/enums/schema/status_enumeration.rb", + "/enums/schema/price_component_type_enumeration.rb", + "/enums/schema/return_fees_enumeration.rb", + "/enums/schema/media_manipulation_rating_enumeration.rb", "/enums/schema/price_type_enumeration.rb", - "/enums/schema/boarding_policy_type.rb", - "/enums/schema/offer_item_condition.rb", - "/enums/schema/measurement_type_enumeration.rb", + "/enums/schema/status_enumeration.rb", + "/enums/schema/delivery_method.rb", + "/enums/schema/return_label_source_enumeration.rb", "/enums/schema/music_album_release_type.rb", + "/enums/schema/digital_platform_enumeration.rb", "/enums/schema/payment_method.rb", - "/enums/schema/physical_activity_category.rb", + "/enums/schema/restricted_diet.rb", + "/enums/schema/item_list_order_type.rb", + "/enums/schema/government_benefits_type.rb", + "/enums/schema/return_method_enumeration.rb", + "/enums/schema/rsvp_response_type.rb", + "/enums/schema/size_system_enumeration.rb", + "/enums/schema/measurement_method_enum.rb", + "/enums/schema/offer_item_condition.rb", "/enums/schema/item_availability.rb", - "/enums/schema/specialty.rb", + "/enums/schema/boarding_policy_type.rb", "/enums/schema/contact_point_option.rb", - "/enums/schema/health_aspect_enumeration.rb", + "/enums/schema/specialty.rb", + "/enums/schema/qualitative_value.rb", + "/enums/schema/measurement_type_enumeration.rb", + "/enums/schema/digital_document_permission_type.rb", "/enums/schema/car_usage_type.rb", - "/enums/schema/adult_oriented_enumeration.rb", + "/enums/schema/health_aspect_enumeration.rb", + "/enums/schema/physical_activity_category.rb", "/enums/schema/nonprofit_type.rb", - "/enums/schema/return_fees_enumeration.rb", + "/enums/schema/business_function.rb", "/enums/schema/energy_efficiency_enumeration.rb", + "/enums/schema/size_group_enumeration.rb", + "/enums/schema/map_category_type.rb", "/enums/schema/legal_value_level.rb", - "/enums/schema/qualitative_value.rb", - "/enums/schema/return_method_enumeration.rb", + "/enums/schema/adult_oriented_enumeration.rb", + "/enums/schema/warranty_scope.rb", + "/enums/schema/book_format_type.rb", "/enums/schema/game_availability_enumeration.rb", - "/enums/schema/rsvp_response_type.rb", + "/enums/schema/medical_enumeration.rb", "/enums/schema/refund_type_enumeration.rb", - "/enums/schema/size_group_enumeration.rb", - "/enums/schema/delivery_method.rb", - "/enums/schema/digital_platform_enumeration.rb", - "/enums/schema/game_play_mode.rb", - "/enums/schema/digital_document_permission_type.rb", - "/enums/schema/business_entity_type.rb", - "/enums/schema/item_list_order_type.rb", - "/enums/schema/warranty_scope.rb", - "/enums/schema/map_category_type.rb", - "/enums/schema/size_system_enumeration.rb", "/enums/schema/music_release_format_type.rb", - "/enums/schema/government_benefits_type.rb", - "/enums/schema/media_manipulation_rating_enumeration.rb", - "/enums/schema/medical_enumeration.rb", - "/enums/schema/book_format_type.rb", - "/enums/schema/return_label_source_enumeration.rb", - "/enums/schema/business_function.rb", + "/enums/schema/game_play_mode.rb", "/enums/schema/music_album_production_type.rb", - "/enums/schema/restricted_diet.rb", "/enums/schema/merchant_return_enumeration.rb", - "/enums/schema/price_component_type_enumeration.rb", + "/enums/schema/business_entity_type.rb", "/enums/property_enumeration.rb" ] \ No newline at end of file diff --git a/lib/openactive/models/schema/accommodation.rb b/lib/openactive/models/schema/accommodation.rb index 0903bca5..829cf56f 100644 --- a/lib/openactive/models/schema/accommodation.rb +++ b/lib/openactive/models/schema/accommodation.rb @@ -8,11 +8,6 @@ def type "schema:Accommodation" end - # @return [String] - define_property :floor_level, as: "floorLevel", types: [ - "string", - ] - # @return [int,nil] define_property :number_of_bathrooms_total, as: "numberOfBathroomsTotal", types: [ "int", @@ -27,18 +22,28 @@ def type "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,ActiveSupport::Duration,URI,nil] - define_property :lease_length, as: "leaseLength", types: [ + # @return [String,Boolean,nil] + define_property :pets_allowed, as: "petsAllowed", types: [ + "string", + "bool", + "null", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :floor_size, as: "floorSize", types: [ "OpenActive::Models::Schema::QuantitativeValue", - "DateInterval", "URI", - "null", ] - # @return [BigDecimal,nil] - define_property :year_built, as: "yearBuilt", types: [ - "Number", - "null", + # @return [OpenActive::Models::Schema::FloorPlan,URI] + define_property :accommodation_floor_plan, as: "accommodationFloorPlan", types: [ + "OpenActive::Models::Schema::FloorPlan", + "URI", + ] + + # @return [URI] + define_property :tour_booking_page, as: "tourBookingPage", types: [ + "URI", ] # @return [String] @@ -46,22 +51,21 @@ def type "string", ] - # @return [OpenActive::Models::Schema::LocationFeatureSpecification,URI] - define_property :amenity_feature, as: "amenityFeature", types: [ - "OpenActive::Models::Schema::LocationFeatureSpecification", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :occupancy, as: "occupancy", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [URI] - define_property :tour_booking_page, as: "tourBookingPage", types: [ + # @return [OpenActive::Models::Schema::LocationFeatureSpecification,URI] + define_property :amenity_feature, as: "amenityFeature", types: [ + "OpenActive::Models::Schema::LocationFeatureSpecification", "URI", ] - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :number_of_bedrooms, as: "numberOfBedrooms", types: [ + # @return [BigDecimal,nil] + define_property :number_of_full_bathrooms, as: "numberOfFullBathrooms", types: [ "Number", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", "null", ] @@ -71,33 +75,43 @@ def type "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :floor_size, as: "floorSize", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - - # @return [OpenActive::Models::Schema::FloorPlan,URI] - define_property :accommodation_floor_plan, as: "accommodationFloorPlan", types: [ - "OpenActive::Models::Schema::FloorPlan", - "URI", - ] - # @return [BigDecimal,nil] - define_property :number_of_full_bathrooms, as: "numberOfFullBathrooms", types: [ + define_property :year_built, as: "yearBuilt", types: [ "Number", "null", ] + # @return [String] + define_property :floor_level, as: "floorLevel", types: [ + "string", + ] + # @return [String] define_property :permitted_usage, as: "permittedUsage", types: [ "string", ] - # @return [String,Boolean,nil] - define_property :pets_allowed, as: "petsAllowed", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,ActiveSupport::Duration,URI,nil] + define_property :lease_length, as: "leaseLength", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "DateInterval", + "URI", + "null", + ] + + # @return [OpenActive::Models::Schema::BedType,OpenActive::Models::Schema::BedDetails,String,URI] + define_property :bed, as: "bed", types: [ + "OpenActive::Models::Schema::BedType", + "OpenActive::Models::Schema::BedDetails", "string", - "bool", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] + define_property :number_of_bedrooms, as: "numberOfBedrooms", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "Number", + "URI", "null", ] end diff --git a/lib/openactive/models/schema/action.rb b/lib/openactive/models/schema/action.rb index 09191b92..e18add91 100644 --- a/lib/openactive/models/schema/action.rb +++ b/lib/openactive/models/schema/action.rb @@ -8,18 +8,19 @@ def type "schema:Action" end - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :agent, as: "agent", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::PostalAddress,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,String,URI] + define_property :location, as: "location", types: [ + "OpenActive::Models::Schema::PostalAddress", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::VirtualLocation", + "string", "URI", ] - # @return [DateTime,Time,nil] - define_property :start_time, as: "startTime", types: [ - "DateTime", - "Time", - "null", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :object, as: "object", types: [ + "OpenActive::Models::Schema::Thing", + "URI", ] # @return [OpenActive::Models::Schema::ActionStatusType,URI] @@ -29,50 +30,42 @@ def type ] # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ + define_property :participant, as: "participant", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :result, as: "result", types: [ - "OpenActive::Models::Schema::Thing", - "URI", + # @return [DateTime,Time,nil] + define_property :end_time, as: "endTime", types: [ + "DateTime", + "Time", + "null", ] - # @return [OpenActive::Models::Schema::PostalAddress,String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,URI] - define_property :location, as: "location", types: [ - "OpenActive::Models::Schema::PostalAddress", - "string", - "OpenActive::Models::Schema::Place", - "OpenActive::Models::Schema::VirtualLocation", - "URI", + # @return [DateTime,Time,nil] + define_property :start_time, as: "startTime", types: [ + "DateTime", + "Time", + "null", ] # @return [OpenActive::Models::Schema::Thing,URI] - define_property :object, as: "object", types: [ + define_property :error, as: "error", types: [ "OpenActive::Models::Schema::Thing", "URI", ] - # @return [OpenActive::Models::Schema::EntryPoint,URI] + # @return [URI,OpenActive::Models::Schema::EntryPoint] define_property :target, as: "target", types: [ - "OpenActive::Models::Schema::EntryPoint", "URI", + "OpenActive::Models::Schema::EntryPoint", ] - # @return [DateTime,Time,nil] - define_property :end_time, as: "endTime", types: [ - "DateTime", - "Time", - "null", - ] - - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :participant, as: "participant", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :provider, as: "provider", types: [ "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] @@ -83,10 +76,17 @@ def type ] # @return [OpenActive::Models::Schema::Thing,URI] - define_property :error, as: "error", types: [ + define_property :result, as: "result", types: [ "OpenActive::Models::Schema::Thing", "URI", ] + + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :agent, as: "agent", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/action_access_specification.rb b/lib/openactive/models/schema/action_access_specification.rb index 4a587eea..8279dacc 100644 --- a/lib/openactive/models/schema/action_access_specification.rb +++ b/lib/openactive/models/schema/action_access_specification.rb @@ -14,28 +14,10 @@ def type "URI", ] - # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] - define_property :category, as: "category", types: [ - "URI", - "string", - "OpenActive::Enums::Schema::PhysicalActivityCategory", - "OpenActive::Models::Schema::Thing", - "OpenActive::Models::Schema::CategoryCode", - "null", - ] - - # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::GeoShape,URI] - define_property :ineligible_region, as: "ineligibleRegion", types: [ - "OpenActive::Models::Schema::Place", - "string", - "OpenActive::Models::Schema::GeoShape", - "URI", - ] - - # @return [OpenActive::Models::Schema::MediaSubscription,Boolean,URI,nil] + # @return [Boolean,OpenActive::Models::Schema::MediaSubscription,URI,nil] define_property :requires_subscription, as: "requiresSubscription", types: [ - "OpenActive::Models::Schema::MediaSubscription", "bool", + "OpenActive::Models::Schema::MediaSubscription", "URI", "null", ] @@ -48,21 +30,39 @@ def type "null", ] - # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] - define_property :eligible_region, as: "eligibleRegion", types: [ - "OpenActive::Models::Schema::GeoShape", - "string", - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil] + define_property :category, as: "category", types: [ + "OpenActive::Enums::Schema::PhysicalActivityCategory", "URI", + "OpenActive::Models::Schema::Thing", + "string", + "OpenActive::Models::Schema::CategoryCode", + "null", ] - # @return [Time,DateTime,Date,nil] + # @return [Time,Date,DateTime,nil] define_property :availability_starts, as: "availabilityStarts", types: [ "Time", - "DateTime", "Date", + "DateTime", "null", ] + + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,URI] + define_property :ineligible_region, as: "ineligibleRegion", types: [ + "string", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", + "URI", + ] + + # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] + define_property :eligible_region, as: "eligibleRegion", types: [ + "OpenActive::Models::Schema::GeoShape", + "string", + "OpenActive::Models::Schema::Place", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/aggregate_offer.rb b/lib/openactive/models/schema/aggregate_offer.rb index b07f6b47..30220131 100644 --- a/lib/openactive/models/schema/aggregate_offer.rb +++ b/lib/openactive/models/schema/aggregate_offer.rb @@ -8,24 +8,24 @@ def type "schema:AggregateOffer" end - # @return [String,BigDecimal,nil] - define_property :high_price, as: "highPrice", types: [ - "string", - "Number", - "null", - ] - - # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] + # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI] define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", "OpenActive::Models::Schema::Demand", + "OpenActive::Models::Schema::Offer", "URI", ] - # @return [String,BigDecimal,nil] - define_property :low_price, as: "lowPrice", types: [ + # @return [BigDecimal,String,nil] + define_property :high_price, as: "highPrice", types: [ + "Number", "string", + "null", + ] + + # @return [BigDecimal,String,nil] + define_property :low_price, as: "lowPrice", types: [ "Number", + "string", "null", ] diff --git a/lib/openactive/models/schema/aggregate_rating.rb b/lib/openactive/models/schema/aggregate_rating.rb index 6b118968..c49ff049 100644 --- a/lib/openactive/models/schema/aggregate_rating.rb +++ b/lib/openactive/models/schema/aggregate_rating.rb @@ -8,18 +8,18 @@ def type "schema:AggregateRating" end - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :item_reviewed, as: "itemReviewed", types: [ - "OpenActive::Models::Schema::Thing", - "URI", - ] - # @return [int,nil] define_property :review_count, as: "reviewCount", types: [ "int", "null", ] + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :item_reviewed, as: "itemReviewed", types: [ + "OpenActive::Models::Schema::Thing", + "URI", + ] + # @return [int,nil] define_property :rating_count, as: "ratingCount", types: [ "int", diff --git a/lib/openactive/models/schema/airport.rb b/lib/openactive/models/schema/airport.rb index 99d42e9b..78901ec5 100644 --- a/lib/openactive/models/schema/airport.rb +++ b/lib/openactive/models/schema/airport.rb @@ -9,12 +9,12 @@ def type end # @return [String] - define_property :iata_code, as: "iataCode", types: [ + define_property :icao_code, as: "icaoCode", types: [ "string", ] # @return [String] - define_property :icao_code, as: "icaoCode", types: [ + define_property :iata_code, as: "iataCode", types: [ "string", ] end diff --git a/lib/openactive/models/schema/alignment_object.rb b/lib/openactive/models/schema/alignment_object.rb index 1b176b37..d92295cf 100644 --- a/lib/openactive/models/schema/alignment_object.rb +++ b/lib/openactive/models/schema/alignment_object.rb @@ -8,8 +8,13 @@ def type "schema:AlignmentObject" end + # @return [URI] + define_property :target_url, as: "targetUrl", types: [ + "URI", + ] + # @return [String] - define_property :alignment_type, as: "alignmentType", types: [ + define_property :target_name, as: "targetName", types: [ "string", ] @@ -19,19 +24,14 @@ def type ] # @return [String] - define_property :target_description, as: "targetDescription", types: [ + define_property :alignment_type, as: "alignmentType", types: [ "string", ] # @return [String] - define_property :target_name, as: "targetName", types: [ + define_property :target_description, as: "targetDescription", types: [ "string", ] - - # @return [URI] - define_property :target_url, as: "targetUrl", types: [ - "URI", - ] end end end diff --git a/lib/openactive/models/schema/amp_story.rb b/lib/openactive/models/schema/amp_story.rb index a9e20bde..0981b128 100644 --- a/lib/openactive/models/schema/amp_story.rb +++ b/lib/openactive/models/schema/amp_story.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class AmpStory < ::OpenActive::Models::Schema::CreativeWork + class AmpStory < ::OpenActive::Models::Schema::MediaObject # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/anatomical_structure.rb b/lib/openactive/models/schema/anatomical_structure.rb index c8ecf4a4..15a13e63 100644 --- a/lib/openactive/models/schema/anatomical_structure.rb +++ b/lib/openactive/models/schema/anatomical_structure.rb @@ -13,27 +13,15 @@ def type "string", ] - # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :connected_to, as: "connectedTo", types: [ - "OpenActive::Models::Schema::AnatomicalStructure", - "URI", - ] - # @return [OpenActive::Models::Schema::AnatomicalSystem,URI] define_property :part_of_system, as: "partOfSystem", types: [ "OpenActive::Models::Schema::AnatomicalSystem", "URI", ] - # @return [OpenActive::Models::Schema::MedicalTherapy,URI] - define_property :related_therapy, as: "relatedTherapy", types: [ - "OpenActive::Models::Schema::MedicalTherapy", - "URI", - ] - - # @return [OpenActive::Models::Schema::ImageObject,URI] - define_property :diagram, as: "diagram", types: [ - "OpenActive::Models::Schema::ImageObject", + # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] + define_property :sub_structure, as: "subStructure", types: [ + "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] @@ -44,15 +32,27 @@ def type ] # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :sub_structure, as: "subStructure", types: [ + define_property :connected_to, as: "connectedTo", types: [ "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] + # @return [OpenActive::Models::Schema::MedicalTherapy,URI] + define_property :related_therapy, as: "relatedTherapy", types: [ + "OpenActive::Models::Schema::MedicalTherapy", + "URI", + ] + # @return [String] define_property :associated_pathophysiology, as: "associatedPathophysiology", types: [ "string", ] + + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :diagram, as: "diagram", types: [ + "OpenActive::Models::Schema::ImageObject", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/anatomical_system.rb b/lib/openactive/models/schema/anatomical_system.rb index e5379658..d6e3beb7 100644 --- a/lib/openactive/models/schema/anatomical_system.rb +++ b/lib/openactive/models/schema/anatomical_system.rb @@ -8,9 +8,16 @@ def type "schema:AnatomicalSystem" end - # @return [OpenActive::Models::Schema::MedicalTherapy,URI] - define_property :related_therapy, as: "relatedTherapy", types: [ - "OpenActive::Models::Schema::MedicalTherapy", + # @return [OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::AnatomicalSystem,URI] + define_property :comprised_of, as: "comprisedOf", types: [ + "OpenActive::Models::Schema::AnatomicalStructure", + "OpenActive::Models::Schema::AnatomicalSystem", + "URI", + ] + + # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] + define_property :related_structure, as: "relatedStructure", types: [ + "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] @@ -20,9 +27,9 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :related_structure, as: "relatedStructure", types: [ - "OpenActive::Models::Schema::AnatomicalStructure", + # @return [OpenActive::Models::Schema::MedicalTherapy,URI] + define_property :related_therapy, as: "relatedTherapy", types: [ + "OpenActive::Models::Schema::MedicalTherapy", "URI", ] @@ -30,13 +37,6 @@ def type define_property :associated_pathophysiology, as: "associatedPathophysiology", types: [ "string", ] - - # @return [OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::AnatomicalSystem,URI] - define_property :comprised_of, as: "comprisedOf", types: [ - "OpenActive::Models::Schema::AnatomicalStructure", - "OpenActive::Models::Schema::AnatomicalSystem", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/answer.rb b/lib/openactive/models/schema/answer.rb index 4e64f3b2..87582950 100644 --- a/lib/openactive/models/schema/answer.rb +++ b/lib/openactive/models/schema/answer.rb @@ -8,10 +8,10 @@ def type "schema:Answer" end - # @return [OpenActive::Models::Schema::WebContent,OpenActive::Models::Schema::Comment,URI] + # @return [OpenActive::Models::Schema::Comment,OpenActive::Models::Schema::WebContent,URI] define_property :answer_explanation, as: "answerExplanation", types: [ - "OpenActive::Models::Schema::WebContent", "OpenActive::Models::Schema::Comment", + "OpenActive::Models::Schema::WebContent", "URI", ] end diff --git a/lib/openactive/models/schema/apartment_complex.rb b/lib/openactive/models/schema/apartment_complex.rb index ca8b185a..55c65ec0 100644 --- a/lib/openactive/models/schema/apartment_complex.rb +++ b/lib/openactive/models/schema/apartment_complex.rb @@ -8,6 +8,18 @@ def type "schema:ApartmentComplex" end + # @return [String,Boolean,nil] + define_property :pets_allowed, as: "petsAllowed", types: [ + "string", + "bool", + "null", + ] + + # @return [URI] + define_property :tour_booking_page, as: "tourBookingPage", types: [ + "URI", + ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] define_property :number_of_accommodation_units, as: "numberOfAccommodationUnits", types: [ "OpenActive::Models::Schema::QuantitativeValue", @@ -20,25 +32,13 @@ def type "URI", ] - # @return [URI] - define_property :tour_booking_page, as: "tourBookingPage", types: [ - "URI", - ] - - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] define_property :number_of_bedrooms, as: "numberOfBedrooms", types: [ - "Number", "OpenActive::Models::Schema::QuantitativeValue", + "Number", "URI", "null", ] - - # @return [String,Boolean,nil] - define_property :pets_allowed, as: "petsAllowed", types: [ - "string", - "bool", - "null", - ] end end end diff --git a/lib/openactive/models/schema/apireference.rb b/lib/openactive/models/schema/apireference.rb index 2f0b41b9..3c114ab3 100644 --- a/lib/openactive/models/schema/apireference.rb +++ b/lib/openactive/models/schema/apireference.rb @@ -14,12 +14,12 @@ def type ] # @return [String] - define_property :target_platform, as: "targetPlatform", types: [ + define_property :executable_library_name, as: "executableLibraryName", types: [ "string", ] # @return [String] - define_property :executable_library_name, as: "executableLibraryName", types: [ + define_property :target_platform, as: "targetPlatform", types: [ "string", ] diff --git a/lib/openactive/models/schema/archive_component.rb b/lib/openactive/models/schema/archive_component.rb index 948d0b36..32de9e7d 100644 --- a/lib/openactive/models/schema/archive_component.rb +++ b/lib/openactive/models/schema/archive_component.rb @@ -14,11 +14,11 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::PostalAddress,URI] + # @return [OpenActive::Models::Schema::PostalAddress,OpenActive::Models::Schema::Place,String,URI] define_property :item_location, as: "itemLocation", types: [ + "OpenActive::Models::Schema::PostalAddress", "OpenActive::Models::Schema::Place", "string", - "OpenActive::Models::Schema::PostalAddress", "URI", ] end diff --git a/lib/openactive/models/schema/artery.rb b/lib/openactive/models/schema/artery.rb index 7c128014..41c16514 100644 --- a/lib/openactive/models/schema/artery.rb +++ b/lib/openactive/models/schema/artery.rb @@ -9,13 +9,13 @@ def type end # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :supply_to, as: "supplyTo", types: [ + define_property :arterial_branch, as: "arterialBranch", types: [ "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :arterial_branch, as: "arterialBranch", types: [ + define_property :supply_to, as: "supplyTo", types: [ "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] diff --git a/lib/openactive/models/schema/article.rb b/lib/openactive/models/schema/article.rb index 5ca1c531..aa5dfca2 100644 --- a/lib/openactive/models/schema/article.rb +++ b/lib/openactive/models/schema/article.rb @@ -8,23 +8,25 @@ def type "schema:Article" end - # @return [String,int,nil] - define_property :page_start, as: "pageStart", types: [ - "string", + # @return [int,nil] + define_property :word_count, as: "wordCount", types: [ "int", "null", ] + # @return [String] + define_property :pagination, as: "pagination", types: [ + "string", + ] + # @return [String] define_property :article_section, as: "articleSection", types: [ "string", ] - # @return [String,int,nil] - define_property :page_end, as: "pageEnd", types: [ + # @return [String] + define_property :article_body, as: "articleBody", types: [ "string", - "int", - "null", ] # @return [String,OpenActive::Models::Schema::CreativeWork,URI] @@ -34,26 +36,24 @@ def type "URI", ] - # @return [int,nil] - define_property :word_count, as: "wordCount", types: [ + # @return [String,int,nil] + define_property :page_end, as: "pageEnd", types: [ + "string", "int", "null", ] - # @return [String] - define_property :article_body, as: "articleBody", types: [ + # @return [String,int,nil] + define_property :page_start, as: "pageStart", types: [ "string", + "int", + "null", ] - # @return [URI,OpenActive::Models::Schema::SpeakableSpecification] + # @return [OpenActive::Models::Schema::SpeakableSpecification,URI] define_property :speakable, as: "speakable", types: [ - "URI", "OpenActive::Models::Schema::SpeakableSpecification", - ] - - # @return [String] - define_property :pagination, as: "pagination", types: [ - "string", + "URI", ] end end diff --git a/lib/openactive/models/schema/audience.rb b/lib/openactive/models/schema/audience.rb index f96753ef..8af8d219 100644 --- a/lib/openactive/models/schema/audience.rb +++ b/lib/openactive/models/schema/audience.rb @@ -8,16 +8,16 @@ def type "schema:Audience" end - # @return [String] - define_property :audience_type, as: "audienceType", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::AdministrativeArea,URI] define_property :geographic_area, as: "geographicArea", types: [ "OpenActive::Models::Schema::AdministrativeArea", "URI", ] + + # @return [String] + define_property :audience_type, as: "audienceType", types: [ + "string", + ] end end end diff --git a/lib/openactive/models/schema/authorize_action.rb b/lib/openactive/models/schema/authorize_action.rb index fe32e1d8..8bf218bf 100644 --- a/lib/openactive/models/schema/authorize_action.rb +++ b/lib/openactive/models/schema/authorize_action.rb @@ -8,12 +8,12 @@ def type "schema:AuthorizeAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/auto_parts_store.rb b/lib/openactive/models/schema/auto_parts_store.rb index bc49c9f8..2ebde266 100644 --- a/lib/openactive/models/schema/auto_parts_store.rb +++ b/lib/openactive/models/schema/auto_parts_store.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class AutoPartsStore < ::OpenActive::Models::Schema::Store + class AutoPartsStore < ::OpenActive::Models::Schema::AutomotiveBusiness # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/bank_account.rb b/lib/openactive/models/schema/bank_account.rb index 7309fa5c..e121605a 100644 --- a/lib/openactive/models/schema/bank_account.rb +++ b/lib/openactive/models/schema/bank_account.rb @@ -8,18 +8,18 @@ def type "schema:BankAccount" end - # @return [String,URI] - define_property :bank_account_type, as: "bankAccountType", types: [ - "string", - "URI", - ] - # @return [OpenActive::Models::Schema::MonetaryAmount,URI] define_property :account_minimum_inflow, as: "accountMinimumInflow", types: [ "OpenActive::Models::Schema::MonetaryAmount", "URI", ] + # @return [URI,String] + define_property :bank_account_type, as: "bankAccountType", types: [ + "URI", + "string", + ] + # @return [OpenActive::Models::Schema::MonetaryAmount,URI] define_property :account_overdraft_limit, as: "accountOverdraftLimit", types: [ "OpenActive::Models::Schema::MonetaryAmount", diff --git a/lib/openactive/models/schema/bed_details.rb b/lib/openactive/models/schema/bed_details.rb index a38b100c..b1065e30 100644 --- a/lib/openactive/models/schema/bed_details.rb +++ b/lib/openactive/models/schema/bed_details.rb @@ -8,18 +8,18 @@ def type "schema:BedDetails" end - # @return [OpenActive::Models::Schema::BedType,String,URI] - define_property :type_of_bed, as: "typeOfBed", types: [ - "OpenActive::Models::Schema::BedType", - "string", - "URI", - ] - # @return [BigDecimal,nil] define_property :number_of_beds, as: "numberOfBeds", types: [ "Number", "null", ] + + # @return [String,OpenActive::Models::Schema::BedType,URI] + define_property :type_of_bed, as: "typeOfBed", types: [ + "string", + "OpenActive::Models::Schema::BedType", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/bio_chem_entity.rb b/lib/openactive/models/schema/bio_chem_entity.rb index c0094f7f..f8c68895 100644 --- a/lib/openactive/models/schema/bio_chem_entity.rb +++ b/lib/openactive/models/schema/bio_chem_entity.rb @@ -8,88 +8,88 @@ def type "schema:BioChemEntity" end - # @return [OpenActive::Models::Schema::Grant,URI] - define_property :funding, as: "funding", types: [ - "OpenActive::Models::Schema::Grant", - "URI", - ] - # @return [OpenActive::Models::Schema::Gene,URI] define_property :is_encoded_by_bio_chem_entity, as: "isEncodedByBioChemEntity", types: [ "OpenActive::Models::Schema::Gene", "URI", ] + # @return [OpenActive::Models::Schema::PropertyValue,URI,OpenActive::Models::Schema::DefinedTerm] + define_property :has_molecular_function, as: "hasMolecularFunction", types: [ + "OpenActive::Models::Schema::PropertyValue", + "URI", + "OpenActive::Models::Schema::DefinedTerm", + ] + # @return [OpenActive::Models::Schema::BioChemEntity,URI] - define_property :is_part_of_bio_chem_entity, as: "isPartOfBioChemEntity", types: [ + define_property :bio_chem_similarity, as: "bioChemSimilarity", types: [ "OpenActive::Models::Schema::BioChemEntity", "URI", ] - # @return [URI,OpenActive::Models::Schema::DefinedTerm,String,OpenActive::Models::Schema::Taxon] - define_property :taxonomic_range, as: "taxonomicRange", types: [ + # @return [OpenActive::Models::Schema::BioChemEntity,URI] + define_property :has_bio_chem_entity_part, as: "hasBioChemEntityPart", types: [ + "OpenActive::Models::Schema::BioChemEntity", "URI", - "OpenActive::Models::Schema::DefinedTerm", - "string", - "OpenActive::Models::Schema::Taxon", ] - # @return [OpenActive::Models::Schema::PropertyValue,URI,OpenActive::Models::Schema::DefinedTerm] - define_property :is_involved_in_biological_process, as: "isInvolvedInBiologicalProcess", types: [ - "OpenActive::Models::Schema::PropertyValue", + # @return [OpenActive::Models::Schema::BioChemEntity,URI] + define_property :is_part_of_bio_chem_entity, as: "isPartOfBioChemEntity", types: [ + "OpenActive::Models::Schema::BioChemEntity", "URI", - "OpenActive::Models::Schema::DefinedTerm", ] - # @return [OpenActive::Models::Schema::PropertyValue,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :is_located_in_subcellular_location, as: "isLocatedInSubcellularLocation", types: [ - "OpenActive::Models::Schema::PropertyValue", + # @return [OpenActive::Models::Schema::DefinedTerm,URI] + define_property :biological_role, as: "biologicalRole", types: [ "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [URI,OpenActive::Models::Schema::PropertyValue,OpenActive::Models::Schema::MedicalCondition] - define_property :associated_disease, as: "associatedDisease", types: [ + # @return [OpenActive::Models::Schema::BioChemEntity,URI] + define_property :bio_chem_interaction, as: "bioChemInteraction", types: [ + "OpenActive::Models::Schema::BioChemEntity", "URI", - "OpenActive::Models::Schema::PropertyValue", - "OpenActive::Models::Schema::MedicalCondition", ] # @return [OpenActive::Models::Schema::PropertyValue,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :has_molecular_function, as: "hasMolecularFunction", types: [ + define_property :is_located_in_subcellular_location, as: "isLocatedInSubcellularLocation", types: [ "OpenActive::Models::Schema::PropertyValue", "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [OpenActive::Models::Schema::BioChemEntity,URI] - define_property :has_bio_chem_entity_part, as: "hasBioChemEntityPart", types: [ - "OpenActive::Models::Schema::BioChemEntity", + # @return [OpenActive::Models::Schema::PropertyValue,URI,String] + define_property :has_representation, as: "hasRepresentation", types: [ + "OpenActive::Models::Schema::PropertyValue", "URI", + "string", ] - # @return [OpenActive::Models::Schema::BioChemEntity,URI] - define_property :bio_chem_interaction, as: "bioChemInteraction", types: [ - "OpenActive::Models::Schema::BioChemEntity", + # @return [OpenActive::Models::Schema::Grant,URI] + define_property :funding, as: "funding", types: [ + "OpenActive::Models::Schema::Grant", "URI", ] - # @return [String,OpenActive::Models::Schema::PropertyValue,URI] - define_property :has_representation, as: "hasRepresentation", types: [ - "string", - "OpenActive::Models::Schema::PropertyValue", + # @return [URI,OpenActive::Models::Schema::DefinedTerm,OpenActive::Models::Schema::PropertyValue] + define_property :is_involved_in_biological_process, as: "isInvolvedInBiologicalProcess", types: [ "URI", + "OpenActive::Models::Schema::DefinedTerm", + "OpenActive::Models::Schema::PropertyValue", ] - # @return [OpenActive::Models::Schema::BioChemEntity,URI] - define_property :bio_chem_similarity, as: "bioChemSimilarity", types: [ - "OpenActive::Models::Schema::BioChemEntity", + # @return [URI,OpenActive::Models::Schema::DefinedTerm,OpenActive::Models::Schema::Taxon,String] + define_property :taxonomic_range, as: "taxonomicRange", types: [ "URI", + "OpenActive::Models::Schema::DefinedTerm", + "OpenActive::Models::Schema::Taxon", + "string", ] - # @return [OpenActive::Models::Schema::DefinedTerm,URI] - define_property :biological_role, as: "biologicalRole", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::MedicalCondition,OpenActive::Models::Schema::PropertyValue,URI] + define_property :associated_disease, as: "associatedDisease", types: [ + "OpenActive::Models::Schema::MedicalCondition", + "OpenActive::Models::Schema::PropertyValue", "URI", ] end diff --git a/lib/openactive/models/schema/blog.rb b/lib/openactive/models/schema/blog.rb index 6453717a..88169aa2 100644 --- a/lib/openactive/models/schema/blog.rb +++ b/lib/openactive/models/schema/blog.rb @@ -8,6 +8,12 @@ def type "schema:Blog" end + # @return [OpenActive::Models::Schema::BlogPosting,URI] + define_property :blog_post, as: "blogPost", types: [ + "OpenActive::Models::Schema::BlogPosting", + "URI", + ] + # @return [OpenActive::Models::Schema::BlogPosting,URI] define_property :blog_posts, as: "blogPosts", types: [ "OpenActive::Models::Schema::BlogPosting", @@ -18,12 +24,6 @@ def type define_property :issn, as: "issn", types: [ "string", ] - - # @return [OpenActive::Models::Schema::BlogPosting,URI] - define_property :blog_post, as: "blogPost", types: [ - "OpenActive::Models::Schema::BlogPosting", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/book.rb b/lib/openactive/models/schema/book.rb index 7fc2f186..9eca23c0 100644 --- a/lib/openactive/models/schema/book.rb +++ b/lib/openactive/models/schema/book.rb @@ -8,27 +8,15 @@ def type "schema:Book" end - # @return [String] - define_property :isbn, as: "isbn", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::Person,URI] - define_property :illustrator, as: "illustrator", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - # @return [int,nil] define_property :number_of_pages, as: "numberOfPages", types: [ "int", "null", ] - # @return [Boolean,nil] - define_property :abridged, as: "abridged", types: [ - "bool", - "null", + # @return [String] + define_property :book_edition, as: "bookEdition", types: [ + "string", ] # @return [OpenActive::Enums::Schema::BookFormatType,nil] @@ -37,10 +25,22 @@ def type "null", ] + # @return [Boolean,nil] + define_property :abridged, as: "abridged", types: [ + "bool", + "null", + ] + # @return [String] - define_property :book_edition, as: "bookEdition", types: [ + define_property :isbn, as: "isbn", types: [ "string", ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :illustrator, as: "illustrator", types: [ + "OpenActive::Models::Schema::Person", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/borrow_action.rb b/lib/openactive/models/schema/borrow_action.rb index a38fb630..ff0ab481 100644 --- a/lib/openactive/models/schema/borrow_action.rb +++ b/lib/openactive/models/schema/borrow_action.rb @@ -8,10 +8,10 @@ def type "schema:BorrowAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] define_property :lender, as: "lender", types: [ - "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/brand.rb b/lib/openactive/models/schema/brand.rb index 3c5efa5d..294f3583 100644 --- a/lib/openactive/models/schema/brand.rb +++ b/lib/openactive/models/schema/brand.rb @@ -8,27 +8,27 @@ def type "schema:Brand" end - # @return [OpenActive::Models::Schema::Review,URI] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", - "URI", - ] - # @return [OpenActive::Models::Schema::AggregateRating,URI] define_property :aggregate_rating, as: "aggregateRating", types: [ "OpenActive::Models::Schema::AggregateRating", "URI", ] + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :logo, as: "logo", types: [ + "OpenActive::Models::Schema::ImageObject", + "URI", + ] + # @return [String] define_property :slogan, as: "slogan", types: [ "string", ] - # @return [URI,OpenActive::Models::Schema::ImageObject] - define_property :logo, as: "logo", types: [ + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", "URI", - "OpenActive::Models::Schema::ImageObject", ] end end diff --git a/lib/openactive/models/schema/broadcast_channel.rb b/lib/openactive/models/schema/broadcast_channel.rb index dd059c7a..38a170ce 100644 --- a/lib/openactive/models/schema/broadcast_channel.rb +++ b/lib/openactive/models/schema/broadcast_channel.rb @@ -8,17 +8,16 @@ def type "schema:BroadcastChannel" end - # @return [URI,String] - define_property :genre, as: "genre", types: [ - "URI", + # @return [String,OpenActive::Models::Schema::BroadcastFrequencySpecification,URI] + define_property :broadcast_frequency, as: "broadcastFrequency", types: [ "string", + "OpenActive::Models::Schema::BroadcastFrequencySpecification", + "URI", ] - # @return [OpenActive::Models::Schema::BroadcastFrequencySpecification,String,URI] - define_property :broadcast_frequency, as: "broadcastFrequency", types: [ - "OpenActive::Models::Schema::BroadcastFrequencySpecification", + # @return [String] + define_property :broadcast_service_tier, as: "broadcastServiceTier", types: [ "string", - "URI", ] # @return [OpenActive::Models::Schema::BroadcastService,URI] @@ -27,8 +26,9 @@ def type "URI", ] - # @return [String] - define_property :broadcast_channel_id, as: "broadcastChannelId", types: [ + # @return [URI,String] + define_property :genre, as: "genre", types: [ + "URI", "string", ] @@ -39,7 +39,7 @@ def type ] # @return [String] - define_property :broadcast_service_tier, as: "broadcastServiceTier", types: [ + define_property :broadcast_channel_id, as: "broadcastChannelId", types: [ "string", ] end diff --git a/lib/openactive/models/schema/broadcast_event.rb b/lib/openactive/models/schema/broadcast_event.rb index e4f1e9d6..8434bbe0 100644 --- a/lib/openactive/models/schema/broadcast_event.rb +++ b/lib/openactive/models/schema/broadcast_event.rb @@ -8,16 +8,10 @@ def type "schema:BroadcastEvent" end - # @return [OpenActive::Models::Schema::Language,String,URI] - define_property :subtitle_language, as: "subtitleLanguage", types: [ - "OpenActive::Models::Schema::Language", - "string", - "URI", - ] - - # @return [String] - define_property :video_format, as: "videoFormat", types: [ - "string", + # @return [Boolean,nil] + define_property :is_live_broadcast, as: "isLiveBroadcast", types: [ + "bool", + "null", ] # @return [OpenActive::Models::Schema::Event,URI] @@ -26,10 +20,16 @@ def type "URI", ] - # @return [Boolean,nil] - define_property :is_live_broadcast, as: "isLiveBroadcast", types: [ - "bool", - "null", + # @return [String,OpenActive::Models::Schema::Language,URI] + define_property :subtitle_language, as: "subtitleLanguage", types: [ + "string", + "OpenActive::Models::Schema::Language", + "URI", + ] + + # @return [String] + define_property :video_format, as: "videoFormat", types: [ + "string", ] end end diff --git a/lib/openactive/models/schema/broadcast_frequency_specification.rb b/lib/openactive/models/schema/broadcast_frequency_specification.rb index 5f062918..86690ced 100644 --- a/lib/openactive/models/schema/broadcast_frequency_specification.rb +++ b/lib/openactive/models/schema/broadcast_frequency_specification.rb @@ -13,17 +13,17 @@ def type "string", ] - # @return [OpenActive::Enums::Schema::QualitativeValue,String,nil] + # @return [String,OpenActive::Enums::Schema::QualitativeValue,nil] define_property :broadcast_signal_modulation, as: "broadcastSignalModulation", types: [ - "OpenActive::Enums::Schema::QualitativeValue", "string", + "OpenActive::Enums::Schema::QualitativeValue", "null", ] - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] define_property :broadcast_frequency_value, as: "broadcastFrequencyValue", types: [ - "Number", "OpenActive::Models::Schema::QuantitativeValue", + "Number", "URI", "null", ] diff --git a/lib/openactive/models/schema/broadcast_service.rb b/lib/openactive/models/schema/broadcast_service.rb index b0dc3842..12a9606e 100644 --- a/lib/openactive/models/schema/broadcast_service.rb +++ b/lib/openactive/models/schema/broadcast_service.rb @@ -8,20 +8,24 @@ def type "schema:BroadcastService" end - # @return [OpenActive::Models::Schema::BroadcastService,URI] - define_property :parent_service, as: "parentService", types: [ - "OpenActive::Models::Schema::BroadcastService", + # @return [String,OpenActive::Models::Schema::BroadcastFrequencySpecification,URI] + define_property :broadcast_frequency, as: "broadcastFrequency", types: [ + "string", + "OpenActive::Models::Schema::BroadcastFrequencySpecification", "URI", ] - # @return [String] - define_property :broadcast_display_name, as: "broadcastDisplayName", types: [ + # @return [String,OpenActive::Models::Schema::Language,URI] + define_property :in_language, as: "inLanguage", types: [ "string", + "OpenActive::Models::Schema::Language", + "URI", ] - # @return [String] - define_property :video_format, as: "videoFormat", types: [ - "string", + # @return [OpenActive::Models::Schema::BroadcastService,URI] + define_property :parent_service, as: "parentService", types: [ + "OpenActive::Models::Schema::BroadcastService", + "URI", ] # @return [String] @@ -29,28 +33,26 @@ def type "string", ] - # @return [OpenActive::Models::Schema::BroadcastFrequencySpecification,String,URI] - define_property :broadcast_frequency, as: "broadcastFrequency", types: [ - "OpenActive::Models::Schema::BroadcastFrequencySpecification", - "string", + # @return [OpenActive::Models::Schema::BroadcastChannel,URI] + define_property :has_broadcast_channel, as: "hasBroadcastChannel", types: [ + "OpenActive::Models::Schema::BroadcastChannel", "URI", ] - # @return [String] - define_property :call_sign, as: "callSign", types: [ - "string", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :area, as: "area", types: [ + "OpenActive::Models::Schema::Place", + "URI", ] - # @return [String,OpenActive::Models::Schema::Language,URI] - define_property :in_language, as: "inLanguage", types: [ + # @return [String] + define_property :broadcast_display_name, as: "broadcastDisplayName", types: [ "string", - "OpenActive::Models::Schema::Language", - "URI", ] - # @return [OpenActive::Models::Schema::BroadcastChannel,URI] - define_property :has_broadcast_channel, as: "hasBroadcastChannel", types: [ - "OpenActive::Models::Schema::BroadcastChannel", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :broadcast_affiliate_of, as: "broadcastAffiliateOf", types: [ + "OpenActive::Models::Schema::Organization", "URI", ] @@ -60,16 +62,14 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :broadcast_affiliate_of, as: "broadcastAffiliateOf", types: [ - "OpenActive::Models::Schema::Organization", - "URI", + # @return [String] + define_property :video_format, as: "videoFormat", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :area, as: "area", types: [ - "OpenActive::Models::Schema::Place", - "URI", + # @return [String] + define_property :call_sign, as: "callSign", types: [ + "string", ] end end diff --git a/lib/openactive/models/schema/bus_or_coach.rb b/lib/openactive/models/schema/bus_or_coach.rb index 92fa1134..1138406a 100644 --- a/lib/openactive/models/schema/bus_or_coach.rb +++ b/lib/openactive/models/schema/bus_or_coach.rb @@ -8,16 +8,16 @@ def type "schema:BusOrCoach" end + # @return [String] + define_property :acriss_code, as: "acrissCode", types: [ + "string", + ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] define_property :roof_load, as: "roofLoad", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - - # @return [String] - define_property :acriss_code, as: "acrissCode", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/bus_trip.rb b/lib/openactive/models/schema/bus_trip.rb index 2ff77709..415235ca 100644 --- a/lib/openactive/models/schema/bus_trip.rb +++ b/lib/openactive/models/schema/bus_trip.rb @@ -8,11 +8,9 @@ def type "schema:BusTrip" end - # @return [OpenActive::Models::Schema::BusStop,OpenActive::Models::Schema::BusStation,URI] - define_property :departure_bus_stop, as: "departureBusStop", types: [ - "OpenActive::Models::Schema::BusStop", - "OpenActive::Models::Schema::BusStation", - "URI", + # @return [String] + define_property :bus_number, as: "busNumber", types: [ + "string", ] # @return [String] @@ -21,15 +19,17 @@ def type ] # @return [OpenActive::Models::Schema::BusStation,OpenActive::Models::Schema::BusStop,URI] - define_property :arrival_bus_stop, as: "arrivalBusStop", types: [ + define_property :departure_bus_stop, as: "departureBusStop", types: [ "OpenActive::Models::Schema::BusStation", "OpenActive::Models::Schema::BusStop", "URI", ] - # @return [String] - define_property :bus_number, as: "busNumber", types: [ - "string", + # @return [OpenActive::Models::Schema::BusStation,OpenActive::Models::Schema::BusStop,URI] + define_property :arrival_bus_stop, as: "arrivalBusStop", types: [ + "OpenActive::Models::Schema::BusStation", + "OpenActive::Models::Schema::BusStop", + "URI", ] end end diff --git a/lib/openactive/models/schema/buy_action.rb b/lib/openactive/models/schema/buy_action.rb index b19e4df8..9116fc56 100644 --- a/lib/openactive/models/schema/buy_action.rb +++ b/lib/openactive/models/schema/buy_action.rb @@ -8,9 +8,10 @@ def type "schema:BuyAction" end - # @return [OpenActive::Models::Schema::WarrantyPromise,URI] - define_property :warranty_promise, as: "warrantyPromise", types: [ - "OpenActive::Models::Schema::WarrantyPromise", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :vendor, as: "vendor", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] @@ -21,10 +22,9 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :vendor, as: "vendor", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::WarrantyPromise,URI] + define_property :warranty_promise, as: "warrantyPromise", types: [ + "OpenActive::Models::Schema::WarrantyPromise", "URI", ] end diff --git a/lib/openactive/models/schema/car.rb b/lib/openactive/models/schema/car.rb index 24af4c40..da64b07c 100644 --- a/lib/openactive/models/schema/car.rb +++ b/lib/openactive/models/schema/car.rb @@ -8,16 +8,16 @@ def type "schema:Car" end + # @return [String] + define_property :acriss_code, as: "acrissCode", types: [ + "string", + ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] define_property :roof_load, as: "roofLoad", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - - # @return [String] - define_property :acriss_code, as: "acrissCode", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/category_code.rb b/lib/openactive/models/schema/category_code.rb index 6937ea39..363c9192 100644 --- a/lib/openactive/models/schema/category_code.rb +++ b/lib/openactive/models/schema/category_code.rb @@ -13,10 +13,10 @@ def type "string", ] - # @return [OpenActive::Models::Schema::CategoryCodeSet,URI] + # @return [URI,OpenActive::Models::Schema::CategoryCodeSet] define_property :in_code_set, as: "inCodeSet", types: [ - "OpenActive::Models::Schema::CategoryCodeSet", "URI", + "OpenActive::Models::Schema::CategoryCodeSet", ] end end diff --git a/lib/openactive/models/schema/cdcpmdrecord.rb b/lib/openactive/models/schema/cdcpmdrecord.rb index 0e845d9f..4b0f220d 100644 --- a/lib/openactive/models/schema/cdcpmdrecord.rb +++ b/lib/openactive/models/schema/cdcpmdrecord.rb @@ -8,62 +8,50 @@ def type "schema:CDCPMDRecord" end - # @return [BigDecimal,nil] - define_property :cvd_num_beds_occ, as: "cvdNumBedsOcc", types: [ - "Number", + # @return [DateTime,String,nil] + define_property :cvd_collection_date, as: "cvdCollectionDate", types: [ + "DateTime", + "string", "null", ] - # @return [BigDecimal,nil] - define_property :cvd_num_icubeds_occ, as: "cvdNumICUBedsOcc", types: [ - "Number", - "null", + # @return [String] + define_property :cvd_facility_county, as: "cvdFacilityCounty", types: [ + "string", ] # @return [BigDecimal,nil] - define_property :cvd_num_vent, as: "cvdNumVent", types: [ + define_property :cvd_num_c19died, as: "cvdNumC19Died", types: [ "Number", "null", ] # @return [BigDecimal,nil] - define_property :cvd_num_c19died, as: "cvdNumC19Died", types: [ + define_property :cvd_num_vent_use, as: "cvdNumVentUse", types: [ "Number", "null", ] # @return [BigDecimal,nil] - define_property :cvd_num_tot_beds, as: "cvdNumTotBeds", types: [ + define_property :cvd_num_beds_occ, as: "cvdNumBedsOcc", types: [ "Number", "null", ] - # @return [String] - define_property :cvd_facility_county, as: "cvdFacilityCounty", types: [ - "string", - ] - # @return [BigDecimal,nil] - define_property :cvd_num_icubeds, as: "cvdNumICUBeds", types: [ + define_property :cvd_num_c19ofmech_vent_pats, as: "cvdNumC19OFMechVentPats", types: [ "Number", "null", ] - # @return [DateTime,String,nil] - define_property :cvd_collection_date, as: "cvdCollectionDate", types: [ - "DateTime", - "string", - "null", - ] - # @return [BigDecimal,nil] - define_property :cvd_num_c19hopats, as: "cvdNumC19HOPats", types: [ + define_property :cvd_num_c19hosp_pats, as: "cvdNumC19HospPats", types: [ "Number", "null", ] # @return [BigDecimal,nil] - define_property :cvd_num_c19ofmech_vent_pats, as: "cvdNumC19OFMechVentPats", types: [ + define_property :cvd_num_c19mech_vent_pats, as: "cvdNumC19MechVentPats", types: [ "Number", "null", ] @@ -74,19 +62,19 @@ def type ] # @return [BigDecimal,nil] - define_property :cvd_num_vent_use, as: "cvdNumVentUse", types: [ + define_property :cvd_num_vent, as: "cvdNumVent", types: [ "Number", "null", ] # @return [BigDecimal,nil] - define_property :cvd_num_beds, as: "cvdNumBeds", types: [ + define_property :cvd_num_icubeds, as: "cvdNumICUBeds", types: [ "Number", "null", ] # @return [BigDecimal,nil] - define_property :cvd_num_c19mech_vent_pats, as: "cvdNumC19MechVentPats", types: [ + define_property :cvd_num_icubeds_occ, as: "cvdNumICUBedsOcc", types: [ "Number", "null", ] @@ -105,7 +93,19 @@ def type ] # @return [BigDecimal,nil] - define_property :cvd_num_c19hosp_pats, as: "cvdNumC19HospPats", types: [ + define_property :cvd_num_tot_beds, as: "cvdNumTotBeds", types: [ + "Number", + "null", + ] + + # @return [BigDecimal,nil] + define_property :cvd_num_c19hopats, as: "cvdNumC19HOPats", types: [ + "Number", + "null", + ] + + # @return [BigDecimal,nil] + define_property :cvd_num_beds, as: "cvdNumBeds", types: [ "Number", "null", ] diff --git a/lib/openactive/models/schema/chapter.rb b/lib/openactive/models/schema/chapter.rb index cec18080..0c6df4eb 100644 --- a/lib/openactive/models/schema/chapter.rb +++ b/lib/openactive/models/schema/chapter.rb @@ -8,11 +8,9 @@ def type "schema:Chapter" end - # @return [String,int,nil] - define_property :page_start, as: "pageStart", types: [ + # @return [String] + define_property :pagination, as: "pagination", types: [ "string", - "int", - "null", ] # @return [String,int,nil] @@ -22,9 +20,11 @@ def type "null", ] - # @return [String] - define_property :pagination, as: "pagination", types: [ + # @return [String,int,nil] + define_property :page_start, as: "pageStart", types: [ "string", + "int", + "null", ] end end diff --git a/lib/openactive/models/schema/chemical_substance.rb b/lib/openactive/models/schema/chemical_substance.rb index 4ec3b4bb..95686c18 100644 --- a/lib/openactive/models/schema/chemical_substance.rb +++ b/lib/openactive/models/schema/chemical_substance.rb @@ -8,6 +8,12 @@ def type "schema:ChemicalSubstance" end + # @return [OpenActive::Models::Schema::DefinedTerm,URI] + define_property :chemical_role, as: "chemicalRole", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", + ] + # @return [String] define_property :chemical_composition, as: "chemicalComposition", types: [ "string", @@ -18,12 +24,6 @@ def type "OpenActive::Models::Schema::DefinedTerm", "URI", ] - - # @return [OpenActive::Models::Schema::DefinedTerm,URI] - define_property :chemical_role, as: "chemicalRole", types: [ - "OpenActive::Models::Schema::DefinedTerm", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/choose_action.rb b/lib/openactive/models/schema/choose_action.rb index 5fd90070..a996164a 100644 --- a/lib/openactive/models/schema/choose_action.rb +++ b/lib/openactive/models/schema/choose_action.rb @@ -8,10 +8,10 @@ def type "schema:ChooseAction" end - # @return [String,OpenActive::Models::Schema::Thing,URI] + # @return [OpenActive::Models::Schema::Thing,String,URI] define_property :option, as: "option", types: [ - "string", "OpenActive::Models::Schema::Thing", + "string", "URI", ] diff --git a/lib/openactive/models/schema/claim.rb b/lib/openactive/models/schema/claim.rb index 6220d032..c4e9b866 100644 --- a/lib/openactive/models/schema/claim.rb +++ b/lib/openactive/models/schema/claim.rb @@ -8,13 +8,6 @@ def type "schema:Claim" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :claim_interpreter, as: "claimInterpreter", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", - "URI", - ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] define_property :first_appearance, as: "firstAppearance", types: [ "OpenActive::Models::Schema::CreativeWork", @@ -26,6 +19,13 @@ def type "OpenActive::Models::Schema::CreativeWork", "URI", ] + + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :claim_interpreter, as: "claimInterpreter", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/class.rb b/lib/openactive/models/schema/class.rb index 7d961319..669eabee 100644 --- a/lib/openactive/models/schema/class.rb +++ b/lib/openactive/models/schema/class.rb @@ -8,11 +8,11 @@ def type "schema:Class" end - # @return [OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::Class,OpenActive::Enums::PropertyEnumeration,URI,nil] + # @return [OpenActive::Enums::PropertyEnumeration,OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::Class,URI,nil] define_property :superseded_by, as: "supersededBy", types: [ + "OpenActive::Enums::PropertyEnumeration", "OpenActive::Models::Schema::Enumeration", "OpenActive::Models::Schema::Class", - "OpenActive::Enums::PropertyEnumeration", "URI", "null", ] diff --git a/lib/openactive/models/schema/clip.rb b/lib/openactive/models/schema/clip.rb index 02b965ce..bb44c105 100644 --- a/lib/openactive/models/schema/clip.rb +++ b/lib/openactive/models/schema/clip.rb @@ -8,32 +8,39 @@ def type "schema:Clip" end - # @return [BigDecimal,OpenActive::Models::Schema::HyperTocEntry,URI,nil] - define_property :start_offset, as: "startOffset", types: [ - "Number", - "OpenActive::Models::Schema::HyperTocEntry", + # @return [OpenActive::Models::Schema::CreativeWorkSeries,URI] + define_property :part_of_series, as: "partOfSeries", types: [ + "OpenActive::Models::Schema::CreativeWorkSeries", "URI", - "null", ] - # @return [BigDecimal,OpenActive::Models::Schema::HyperTocEntry,URI,nil] - define_property :end_offset, as: "endOffset", types: [ - "Number", - "OpenActive::Models::Schema::HyperTocEntry", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actors, as: "actors", types: [ + "OpenActive::Models::Schema::Person", "URI", + ] + + # @return [String,int,nil] + define_property :clip_number, as: "clipNumber", types: [ + "string", + "int", "null", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::HyperTocEntry,BigDecimal,URI,nil] + define_property :start_offset, as: "startOffset", types: [ + "OpenActive::Models::Schema::HyperTocEntry", + "Number", "URI", + "null", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::HyperTocEntry,BigDecimal,URI,nil] + define_property :end_offset, as: "endOffset", types: [ + "OpenActive::Models::Schema::HyperTocEntry", + "Number", "URI", + "null", ] # @return [OpenActive::Models::Schema::Episode,URI] @@ -42,16 +49,16 @@ def type "URI", ] - # @return [String,int,nil] - define_property :clip_number, as: "clipNumber", types: [ - "string", - "int", - "null", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] + define_property :music_by, as: "musicBy", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::MusicGroup", + "URI", ] - # @return [OpenActive::Models::Schema::CreativeWorkSeries,URI] - define_property :part_of_series, as: "partOfSeries", types: [ - "OpenActive::Models::Schema::CreativeWorkSeries", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :directors, as: "directors", types: [ + "OpenActive::Models::Schema::Person", "URI", ] @@ -62,20 +69,13 @@ def type ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] - define_property :music_by, as: "musicBy", types: [ + define_property :director, as: "director", types: [ "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::MusicGroup", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/comic_issue.rb b/lib/openactive/models/schema/comic_issue.rb index 2997c10e..cc23932b 100644 --- a/lib/openactive/models/schema/comic_issue.rb +++ b/lib/openactive/models/schema/comic_issue.rb @@ -9,7 +9,7 @@ def type end # @return [OpenActive::Models::Schema::Person,URI] - define_property :letterer, as: "letterer", types: [ + define_property :inker, as: "inker", types: [ "OpenActive::Models::Schema::Person", "URI", ] @@ -20,25 +20,25 @@ def type "URI", ] - # @return [String] - define_property :variant_cover, as: "variantCover", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :inker, as: "inker", types: [ + define_property :artist, as: "artist", types: [ "OpenActive::Models::Schema::Person", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :penciler, as: "penciler", types: [ + define_property :letterer, as: "letterer", types: [ "OpenActive::Models::Schema::Person", "URI", ] + # @return [String] + define_property :variant_cover, as: "variantCover", types: [ + "string", + ] + # @return [OpenActive::Models::Schema::Person,URI] - define_property :artist, as: "artist", types: [ + define_property :penciler, as: "penciler", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/comic_story.rb b/lib/openactive/models/schema/comic_story.rb index 9772c120..6a762936 100644 --- a/lib/openactive/models/schema/comic_story.rb +++ b/lib/openactive/models/schema/comic_story.rb @@ -9,7 +9,7 @@ def type end # @return [OpenActive::Models::Schema::Person,URI] - define_property :letterer, as: "letterer", types: [ + define_property :inker, as: "inker", types: [ "OpenActive::Models::Schema::Person", "URI", ] @@ -21,19 +21,19 @@ def type ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :inker, as: "inker", types: [ + define_property :artist, as: "artist", types: [ "OpenActive::Models::Schema::Person", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :penciler, as: "penciler", types: [ + define_property :letterer, as: "letterer", types: [ "OpenActive::Models::Schema::Person", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :artist, as: "artist", types: [ + define_property :penciler, as: "penciler", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/comment.rb b/lib/openactive/models/schema/comment.rb index 297e5368..82bd6b0c 100644 --- a/lib/openactive/models/schema/comment.rb +++ b/lib/openactive/models/schema/comment.rb @@ -15,13 +15,13 @@ def type ] # @return [int,nil] - define_property :downvote_count, as: "downvoteCount", types: [ + define_property :upvote_count, as: "upvoteCount", types: [ "int", "null", ] # @return [int,nil] - define_property :upvote_count, as: "upvoteCount", types: [ + define_property :downvote_count, as: "downvoteCount", types: [ "int", "null", ] diff --git a/lib/openactive/models/schema/communicate_action.rb b/lib/openactive/models/schema/communicate_action.rb index 7d348f6e..9eb74775 100644 --- a/lib/openactive/models/schema/communicate_action.rb +++ b/lib/openactive/models/schema/communicate_action.rb @@ -8,15 +8,6 @@ def type "schema:CommunicateAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] - define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", - "OpenActive::Models::Schema::ContactPoint", - "OpenActive::Models::Schema::Organization", - "URI", - ] - # @return [String,OpenActive::Models::Schema::Language,URI] define_property :in_language, as: "inLanguage", types: [ "string", @@ -24,9 +15,12 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Language,URI] - define_property :language, as: "language", types: [ - "OpenActive::Models::Schema::Language", + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] + define_property :recipient, as: "recipient", types: [ + "OpenActive::Models::Schema::ContactPoint", + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] @@ -35,6 +29,12 @@ def type "OpenActive::Models::Schema::Thing", "URI", ] + + # @return [OpenActive::Models::Schema::Language,URI] + define_property :language, as: "language", types: [ + "OpenActive::Models::Schema::Language", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/compound_price_specification.rb b/lib/openactive/models/schema/compound_price_specification.rb index e453ac1c..85aa896d 100644 --- a/lib/openactive/models/schema/compound_price_specification.rb +++ b/lib/openactive/models/schema/compound_price_specification.rb @@ -8,18 +8,18 @@ def type "schema:CompoundPriceSpecification" end - # @return [OpenActive::Models::Schema::UnitPriceSpecification,URI] - define_property :price_component, as: "priceComponent", types: [ - "OpenActive::Models::Schema::UnitPriceSpecification", - "URI", - ] - # @return [OpenActive::Enums::Schema::PriceTypeEnumeration,String,nil] define_property :price_type, as: "priceType", types: [ "OpenActive::Enums::Schema::PriceTypeEnumeration", "string", "null", ] + + # @return [OpenActive::Models::Schema::UnitPriceSpecification,URI] + define_property :price_component, as: "priceComponent", types: [ + "OpenActive::Models::Schema::UnitPriceSpecification", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/constraint_node.rb b/lib/openactive/models/schema/constraint_node.rb new file mode 100644 index 00000000..9bef148d --- /dev/null +++ b/lib/openactive/models/schema/constraint_node.rb @@ -0,0 +1,26 @@ +module OpenActive + module Models + module Schema + class ConstraintNode < ::OpenActive::Models::Schema::Intangible + # @!attribute type + # @return [String] + def type + "schema:ConstraintNode" + end + + # @return [URI,OpenActive::Enums::PropertyEnumeration,nil] + define_property :constraint_property, as: "constraintProperty", types: [ + "URI", + "OpenActive::Enums::PropertyEnumeration", + "null", + ] + + # @return [int,nil] + define_property :num_constraints, as: "numConstraints", types: [ + "int", + "null", + ] + end + end + end +end diff --git a/lib/openactive/models/schema/contact_point.rb b/lib/openactive/models/schema/contact_point.rb index 912548c4..98d51522 100644 --- a/lib/openactive/models/schema/contact_point.rb +++ b/lib/openactive/models/schema/contact_point.rb @@ -8,19 +8,15 @@ def type "schema:ContactPoint" end - # @return [String] - define_property :telephone, as: "telephone", types: [ + # @return [OpenActive::Models::Schema::Language,String,URI] + define_property :available_language, as: "availableLanguage", types: [ + "OpenActive::Models::Schema::Language", "string", - ] - - # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] - define_property :hours_available, as: "hoursAvailable", types: [ - "OpenActive::Models::Schema::OpeningHoursSpecification", "URI", ] # @return [String] - define_property :email, as: "email", types: [ + define_property :contact_type, as: "contactType", types: [ "string", ] @@ -30,44 +26,48 @@ def type "null", ] - # @return [String,OpenActive::Models::Schema::Language,URI] - define_property :available_language, as: "availableLanguage", types: [ - "string", - "OpenActive::Models::Schema::Language", + # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] + define_property :hours_available, as: "hoursAvailable", types: [ + "OpenActive::Models::Schema::OpeningHoursSpecification", "URI", ] - # @return [OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::Place,URI] + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] define_property :service_area, as: "serviceArea", types: [ + "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeoShape", "OpenActive::Models::Schema::AdministrativeArea", - "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] - define_property :area_served, as: "areaServed", types: [ - "OpenActive::Models::Schema::AdministrativeArea", - "OpenActive::Models::Schema::GeoShape", + # @return [String] + define_property :fax_number, as: "faxNumber", types: [ "string", - "OpenActive::Models::Schema::Place", + ] + + # @return [String,OpenActive::Models::Schema::Product,URI] + define_property :product_supported, as: "productSupported", types: [ + "string", + "OpenActive::Models::Schema::Product", "URI", ] # @return [String] - define_property :contact_type, as: "contactType", types: [ + define_property :telephone, as: "telephone", types: [ "string", ] - # @return [String,OpenActive::Models::Schema::Product,URI] - define_property :product_supported, as: "productSupported", types: [ + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :area_served, as: "areaServed", types: [ "string", - "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", + "OpenActive::Models::Schema::AdministrativeArea", "URI", ] # @return [String] - define_property :fax_number, as: "faxNumber", types: [ + define_property :email, as: "email", types: [ "string", ] end diff --git a/lib/openactive/models/schema/cook_action.rb b/lib/openactive/models/schema/cook_action.rb index 8bc89ce6..ea927b3a 100644 --- a/lib/openactive/models/schema/cook_action.rb +++ b/lib/openactive/models/schema/cook_action.rb @@ -8,22 +8,22 @@ def type "schema:CookAction" end - # @return [OpenActive::Models::Schema::Recipe,URI] - define_property :recipe, as: "recipe", types: [ - "OpenActive::Models::Schema::Recipe", + # @return [OpenActive::Models::Schema::FoodEvent,URI] + define_property :food_event, as: "foodEvent", types: [ + "OpenActive::Models::Schema::FoodEvent", "URI", ] - # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::FoodEstablishment,URI] + # @return [OpenActive::Models::Schema::FoodEstablishment,OpenActive::Models::Schema::Place,URI] define_property :food_establishment, as: "foodEstablishment", types: [ - "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::FoodEstablishment", + "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::FoodEvent,URI] - define_property :food_event, as: "foodEvent", types: [ - "OpenActive::Models::Schema::FoodEvent", + # @return [OpenActive::Models::Schema::Recipe,URI] + define_property :recipe, as: "recipe", types: [ + "OpenActive::Models::Schema::Recipe", "URI", ] end diff --git a/lib/openactive/models/schema/course.rb b/lib/openactive/models/schema/course.rb index f794783e..63c0a98d 100644 --- a/lib/openactive/models/schema/course.rb +++ b/lib/openactive/models/schema/course.rb @@ -8,19 +8,36 @@ def type "schema:Course" end - # @return [String,OpenActive::Models::Schema::AlignmentObject,OpenActive::Models::Schema::Course,URI] - define_property :course_prerequisites, as: "coursePrerequisites", types: [ + # @return [String] + define_property :course_code, as: "courseCode", types: [ "string", - "OpenActive::Models::Schema::AlignmentObject", - "OpenActive::Models::Schema::Course", + ] + + # @return [OpenActive::Models::Schema::Syllabus,URI] + define_property :syllabus_sections, as: "syllabusSections", types: [ + "OpenActive::Models::Schema::Syllabus", "URI", ] - # @return [URI,OpenActive::Models::Schema::EducationalOccupationalCredential,String] - define_property :educational_credential_awarded, as: "educationalCredentialAwarded", types: [ + # @return [int,nil] + define_property :total_historical_enrollment, as: "totalHistoricalEnrollment", types: [ + "int", + "null", + ] + + # @return [OpenActive::Models::Schema::Language,String,URI] + define_property :available_language, as: "availableLanguage", types: [ + "OpenActive::Models::Schema::Language", + "string", "URI", - "OpenActive::Models::Schema::EducationalOccupationalCredential", + ] + + # @return [OpenActive::Models::Schema::Course,String,OpenActive::Models::Schema::AlignmentObject,URI] + define_property :course_prerequisites, as: "coursePrerequisites", types: [ + "OpenActive::Models::Schema::Course", "string", + "OpenActive::Models::Schema::AlignmentObject", + "URI", ] # @return [int,OpenActive::Models::Schema::StructuredValue,URI,nil] @@ -31,16 +48,18 @@ def type "null", ] - # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,String,URI] - define_property :occupational_credential_awarded, as: "occupationalCredentialAwarded", types: [ - "OpenActive::Models::Schema::EducationalOccupationalCredential", + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :financial_aid_eligible, as: "financialAidEligible", types: [ "string", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [String] - define_property :course_code, as: "courseCode", types: [ + # @return [URI,String,OpenActive::Models::Schema::EducationalOccupationalCredential] + define_property :occupational_credential_awarded, as: "occupationalCredentialAwarded", types: [ + "URI", "string", + "OpenActive::Models::Schema::EducationalOccupationalCredential", ] # @return [OpenActive::Models::Schema::CourseInstance,URI] @@ -48,6 +67,13 @@ def type "OpenActive::Models::Schema::CourseInstance", "URI", ] + + # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,URI,String] + define_property :educational_credential_awarded, as: "educationalCredentialAwarded", types: [ + "OpenActive::Models::Schema::EducationalOccupationalCredential", + "URI", + "string", + ] end end end diff --git a/lib/openactive/models/schema/course_instance.rb b/lib/openactive/models/schema/course_instance.rb index acc99305..bf08f694 100644 --- a/lib/openactive/models/schema/course_instance.rb +++ b/lib/openactive/models/schema/course_instance.rb @@ -8,20 +8,26 @@ def type "schema:CourseInstance" end + # @return [URI,String] + define_property :course_mode, as: "courseMode", types: [ + "URI", + "string", + ] + # @return [OpenActive::Models::Schema::Person,URI] define_property :instructor, as: "instructor", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [String] - define_property :course_workload, as: "courseWorkload", types: [ - "string", + # @return [OpenActive::Models::Schema::Schedule,URI] + define_property :course_schedule, as: "courseSchedule", types: [ + "OpenActive::Models::Schema::Schedule", + "URI", ] - # @return [URI,String] - define_property :course_mode, as: "courseMode", types: [ - "URI", + # @return [String] + define_property :course_workload, as: "courseWorkload", types: [ "string", ] end diff --git a/lib/openactive/models/schema/creative_work.rb b/lib/openactive/models/schema/creative_work.rb index d3032f0c..485b4de4 100644 --- a/lib/openactive/models/schema/creative_work.rb +++ b/lib/openactive/models/schema/creative_work.rb @@ -8,189 +8,204 @@ def type "schema:CreativeWork" end - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :teaches, as: "teaches", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :educational_use, as: "educationalUse", types: [ "string", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] - define_property :educational_level, as: "educationalLevel", types: [ + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :license, as: "license", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", - "OpenActive::Models::Schema::DefinedTerm", + ] + + # @return [int,String,nil] + define_property :position, as: "position", types: [ + "int", "string", + "null", ] # @return [String] - define_property :abstract, as: "abstract", types: [ + define_property :headline, as: "headline", types: [ "string", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :creative_work_status, as: "creativeWorkStatus", types: [ + # @return [String] + define_property :accessibility_hazard, as: "accessibilityHazard", types: [ "string", - "OpenActive::Models::Schema::DefinedTerm", - "URI", ] - # @return [Date,nil] - define_property :expires, as: "expires", types: [ - "Date", + # @return [Boolean,nil] + define_property :is_accessible_for_free, as: "isAccessibleForFree", types: [ + "bool", "null", ] - # @return [DateTime,nil] - define_property :content_reference_time, as: "contentReferenceTime", types: [ + # @return [DateTime,String,nil] + define_property :temporal, as: "temporal", types: [ "DateTime", + "string", "null", ] - # @return [String,URI,OpenActive::Models::Schema::Product] - define_property :material, as: "material", types: [ - "string", + # @return [Date,DateTime,nil] + define_property :date_modified, as: "dateModified", types: [ + "Date", + "DateTime", + "null", + ] + + # @return [URI,String] + define_property :encoding_format, as: "encodingFormat", types: [ "URI", - "OpenActive::Models::Schema::Product", + "string", ] - # @return [OpenActive::Models::Schema::Review,URI] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :publishing_principles, as: "publishingPrinciples", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [URI,String] - define_property :file_format, as: "fileFormat", types: [ + # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] + define_property :educational_level, as: "educationalLevel", types: [ "URI", + "OpenActive::Models::Schema::DefinedTerm", "string", ] - # @return [String] - define_property :text, as: "text", types: [ + # @return [OpenActive::Models::Schema::Rating,String,URI] + define_property :content_rating, as: "contentRating", types: [ + "OpenActive::Models::Schema::Rating", "string", + "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :translator, as: "translator", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI] + define_property :offers, as: "offers", types: [ + "OpenActive::Models::Schema::Demand", + "OpenActive::Models::Schema::Offer", "URI", ] - # @return [String] - define_property :award, as: "award", types: [ - "string", + # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::CreativeWork,URI] + define_property :is_based_on_url, as: "isBasedOnUrl", types: [ + "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::CreativeWork", + "URI", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :assesses, as: "assesses", types: [ - "string", - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :contributor, as: "contributor", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [String] - define_property :copyright_notice, as: "copyrightNotice", types: [ - "string", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :spatial, as: "spatial", types: [ + "OpenActive::Models::Schema::Place", + "URI", ] - # @return [String,URI] - define_property :schema_version, as: "schemaVersion", types: [ + # @return [String,OpenActive::Models::Schema::Language,URI] + define_property :in_language, as: "inLanguage", types: [ "string", + "OpenActive::Models::Schema::Language", "URI", ] - # @return [OpenActive::Models::Schema::Country,URI] - define_property :country_of_origin, as: "countryOfOrigin", types: [ - "OpenActive::Models::Schema::Country", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :has_part, as: "hasPart", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :pattern, as: "pattern", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [String] + define_property :awards, as: "awards", types: [ "string", - "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :accountable_person, as: "accountablePerson", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::WebPage,URI] + define_property :archived_at, as: "archivedAt", types: [ + "OpenActive::Models::Schema::WebPage", "URI", ] - # @return [OpenActive::Models::Schema::Grant,URI] - define_property :funding, as: "funding", types: [ - "OpenActive::Models::Schema::Grant", + # @return [String] + define_property :copyright_notice, as: "copyrightNotice", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :translator, as: "translator", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :educational_use, as: "educationalUse", types: [ - "OpenActive::Models::Schema::DefinedTerm", - "string", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :editor, as: "editor", types: [ + "OpenActive::Models::Schema::Person", "URI", ] - # @return [URI,String] - define_property :genre, as: "genre", types: [ + # @return [OpenActive::Models::Schema::Event,URI] + define_property :recorded_at, as: "recordedAt", types: [ + "OpenActive::Models::Schema::Event", "URI", - "string", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :keywords, as: "keywords", types: [ - "OpenActive::Models::Schema::DefinedTerm", - "string", + # @return [OpenActive::Models::Schema::Country,URI] + define_property :country_of_origin, as: "countryOfOrigin", types: [ + "OpenActive::Models::Schema::Country", "URI", ] - # @return [int,String,nil] - define_property :position, as: "position", types: [ - "int", - "string", + # @return [Date,nil] + define_property :sd_date_published, as: "sdDatePublished", types: [ + "Date", "null", ] # @return [String] - define_property :accessibility_hazard, as: "accessibilityHazard", types: [ + define_property :interactivity_type, as: "interactivityType", types: [ "string", ] - # @return [String] - define_property :alternative_headline, as: "alternativeHeadline", types: [ + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :keywords, as: "keywords", types: [ "string", - ] - - # @return [OpenActive::Models::Schema::Audience,URI] - define_property :audience, as: "audience", types: [ - "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] - define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", - "OpenActive::Models::Schema::Demand", + # @return [String,OpenActive::Models::Schema::Product,URI] + define_property :material, as: "material", types: [ + "string", + "OpenActive::Models::Schema::Product", "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :location_created, as: "locationCreated", types: [ - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :copyright_holder, as: "copyrightHolder", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Models::Schema::MediaObject,URI] - define_property :associated_media, as: "associatedMedia", types: [ - "OpenActive::Models::Schema::MediaObject", + # @return [OpenActive::Models::Schema::AlignmentObject,URI] + define_property :educational_alignment, as: "educationalAlignment", types: [ + "OpenActive::Models::Schema::AlignmentObject", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI] - define_property :material_extent, as: "materialExtent", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "string", + # @return [OpenActive::Models::Schema::AggregateRating,URI] + define_property :aggregate_rating, as: "aggregateRating", types: [ + "OpenActive::Models::Schema::AggregateRating", "URI", ] @@ -200,292 +215,263 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :copyright_holder, as: "copyrightHolder", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :usage_info, as: "usageInfo", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [String] - define_property :awards, as: "awards", types: [ - "string", + # @return [DateTime,nil] + define_property :content_reference_time, as: "contentReferenceTime", types: [ + "DateTime", + "null", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :content_location, as: "contentLocation", types: [ - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :sd_license, as: "sdLicense", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [Date,nil] - define_property :sd_date_published, as: "sdDatePublished", types: [ + # @return [Date,DateTime,nil] + define_property :expires, as: "expires", types: [ "Date", + "DateTime", "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :producer, as: "producer", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :acquire_license_page, as: "acquireLicensePage", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :spatial, as: "spatial", types: [ - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::InteractionCounter,URI] + define_property :interaction_statistic, as: "interactionStatistic", types: [ + "OpenActive::Models::Schema::InteractionCounter", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :publisher, as: "publisher", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [URI,String] + define_property :file_format, as: "fileFormat", types: [ "URI", + "string", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :source_organization, as: "sourceOrganization", types: [ + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :maintainer, as: "maintainer", types: [ "OpenActive::Models::Schema::Organization", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,URI] - define_property :character, as: "character", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :funder, as: "funder", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::CreativeWork,URI] + define_property :is_based_on, as: "isBasedOn", types: [ + "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :example_of_work, as: "exampleOfWork", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", + # @return [String] + define_property :alternative_headline, as: "alternativeHeadline", types: [ + "string", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :usage_info, as: "usageInfo", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", + # @return [int,nil] + define_property :comment_count, as: "commentCount", types: [ + "int", + "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [URI] + define_property :discussion_url, as: "discussionUrl", types: [ "URI", ] # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :sd_publisher, as: "sdPublisher", types: [ + define_property :sponsor, as: "sponsor", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Comment,URI] - define_property :comment, as: "comment", types: [ - "OpenActive::Models::Schema::Comment", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :is_part_of, as: "isPartOf", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] # @return [String] - define_property :accessibility_feature, as: "accessibilityFeature", types: [ + define_property :typical_age_range, as: "typicalAgeRange", types: [ "string", ] - # @return [OpenActive::Models::Schema::PublicationEvent,URI] - define_property :publication, as: "publication", types: [ - "OpenActive::Models::Schema::PublicationEvent", + # @return [URI,String] + define_property :schema_version, as: "schemaVersion", types: [ "URI", + "string", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :translation_of_work, as: "translationOfWork", types: [ - "OpenActive::Models::Schema::CreativeWork", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :source_organization, as: "sourceOrganization", types: [ + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [String] - define_property :interactivity_type, as: "interactivityType", types: [ + # @return [BigDecimal,String,nil] + define_property :version, as: "version", types: [ + "Number", "string", - ] - - # @return [int,nil] - define_property :comment_count, as: "commentCount", types: [ - "int", "null", ] - # @return [String] - define_property :access_mode, as: "accessMode", types: [ - "string", + # @return [DateTime,Date,nil] + define_property :date_published, as: "datePublished", types: [ + "DateTime", + "Date", + "null", ] - # @return [OpenActive::Models::Schema::AggregateRating,URI] - define_property :aggregate_rating, as: "aggregateRating", types: [ - "OpenActive::Models::Schema::AggregateRating", - "URI", + # @return [Date,DateTime,nil] + define_property :date_created, as: "dateCreated", types: [ + "Date", + "DateTime", + "null", ] - # @return [ActiveSupport::Duration,URI,nil] - define_property :time_required, as: "timeRequired", types: [ - "DateInterval", + # @return [OpenActive::Models::Schema::PublicationEvent,URI] + define_property :publication, as: "publication", types: [ + "OpenActive::Models::Schema::PublicationEvent", "URI", - "null", ] # @return [String] - define_property :typical_age_range, as: "typicalAgeRange", types: [ + define_property :award, as: "award", types: [ "string", ] - # @return [OpenActive::Models::Schema::InteractionCounter,URI] - define_property :interaction_statistic, as: "interactionStatistic", types: [ - "OpenActive::Models::Schema::InteractionCounter", - "URI", - ] - - # @return [BigDecimal,nil] - define_property :copyright_year, as: "copyrightYear", types: [ - "Number", - "null", + # @return [String] + define_property :accessibility_api, as: "accessibilityAPI", types: [ + "string", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI,OpenActive::Models::Schema::Product] - define_property :is_based_on, as: "isBasedOn", types: [ + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :example_of_work, as: "exampleOfWork", types: [ "OpenActive::Models::Schema::CreativeWork", "URI", - "OpenActive::Models::Schema::Product", ] # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :work_example, as: "workExample", types: [ + define_property :translation_of_work, as: "translationOfWork", types: [ "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :publishing_principles, as: "publishingPrinciples", types: [ - "URI", - "OpenActive::Models::Schema::CreativeWork", + # @return [String] + define_property :access_mode, as: "accessMode", types: [ + "string", ] - # @return [URI] - define_property :discussion_url, as: "discussionUrl", types: [ + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :author, as: "author", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Models::Schema::PublicationEvent,URI] - define_property :released_event, as: "releasedEvent", types: [ - "OpenActive::Models::Schema::PublicationEvent", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :producer, as: "producer", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [Date,DateTime,nil] - define_property :date_created, as: "dateCreated", types: [ - "Date", - "DateTime", - "null", - ] - - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :work_translation, as: "workTranslation", types: [ - "OpenActive::Models::Schema::CreativeWork", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :funder, as: "funder", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :editor, as: "editor", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :about, as: "about", types: [ + "OpenActive::Models::Schema::Thing", "URI", ] # @return [String] - define_property :credit_text, as: "creditText", types: [ + define_property :accessibility_feature, as: "accessibilityFeature", types: [ "string", ] - # @return [OpenActive::Models::Schema::Event,URI] - define_property :recorded_at, as: "recordedAt", types: [ - "OpenActive::Models::Schema::Event", - "URI", + # @return [Boolean,nil] + define_property :is_family_friendly, as: "isFamilyFriendly", types: [ + "bool", + "null", ] - # @return [URI,String] - define_property :edit_eidr, as: "editEIDR", types: [ - "URI", + # @return [OpenActive::Models::Schema::CreativeWork,String,URI] + define_property :citation, as: "citation", types: [ + "OpenActive::Models::Schema::CreativeWork", "string", + "URI", ] # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :author, as: "author", types: [ + define_property :sd_publisher, as: "sdPublisher", types: [ "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", "URI", ] - # @return [DateTime,Date,nil] - define_property :date_modified, as: "dateModified", types: [ - "DateTime", - "Date", - "null", - ] - - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :sponsor, as: "sponsor", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::AudioObject,OpenActive::Models::Schema::Clip,OpenActive::Models::Schema::MusicRecording,URI] + define_property :audio, as: "audio", types: [ + "OpenActive::Models::Schema::AudioObject", + "OpenActive::Models::Schema::Clip", + "OpenActive::Models::Schema::MusicRecording", "URI", ] - # @return [String] - define_property :accessibility_summary, as: "accessibilitySummary", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI] + define_property :material_extent, as: "materialExtent", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "string", + "URI", ] - # @return [String,URI] - define_property :encoding_format, as: "encodingFormat", types: [ - "string", + # @return [OpenActive::Models::Schema::ItemList,URI] + define_property :access_mode_sufficient, as: "accessModeSufficient", types: [ + "OpenActive::Models::Schema::ItemList", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :maintainer, as: "maintainer", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Comment,URI] + define_property :comment, as: "comment", types: [ + "OpenActive::Models::Schema::Comment", "URI", ] - # @return [OpenActive::Models::Schema::AlignmentObject,URI] - define_property :educational_alignment, as: "educationalAlignment", types: [ - "OpenActive::Models::Schema::AlignmentObject", + # @return [OpenActive::Models::Schema::MediaObject,URI] + define_property :associated_media, as: "associatedMedia", types: [ + "OpenActive::Models::Schema::MediaObject", "URI", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :acquire_license_page, as: "acquireLicensePage", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", + # @return [String] + define_property :text, as: "text", types: [ + "string", ] - # @return [Boolean,nil] - define_property :is_accessible_for_free, as: "isAccessibleForFree", types: [ - "bool", - "null", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :publisher_imprint, as: "publisherImprint", types: [ + "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [Date,DateTime,nil] - define_property :date_published, as: "datePublished", types: [ - "Date", - "DateTime", - "null", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :character, as: "character", types: [ + "OpenActive::Models::Schema::Person", + "URI", ] # @return [OpenActive::Models::Schema::Place,URI] @@ -494,75 +480,78 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :sd_license, as: "sdLicense", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", - ] - # @return [String] - define_property :conditions_of_access, as: "conditionsOfAccess", types: [ + define_property :abstract, as: "abstract", types: [ "string", ] - # @return [URI,String,OpenActive::Models::Schema::CorrectionComment] - define_property :correction, as: "correction", types: [ + # @return [URI,DateTime,String,nil] + define_property :temporal_coverage, as: "temporalCoverage", types: [ "URI", + "DateTime", "string", - "OpenActive::Models::Schema::CorrectionComment", + "null", ] - # @return [String,OpenActive::Models::Schema::Rating,URI] - define_property :content_rating, as: "contentRating", types: [ - "string", - "OpenActive::Models::Schema::Rating", + # @return [OpenActive::Models::Schema::Grant,URI] + define_property :funding, as: "funding", types: [ + "OpenActive::Models::Schema::Grant", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::DefinedTerm,String,OpenActive::Models::Schema::SizeSpecification,URI] - define_property :size, as: "size", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "OpenActive::Models::Schema::DefinedTerm", + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :assesses, as: "assesses", types: [ "string", - "OpenActive::Models::Schema::SizeSpecification", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :is_part_of, as: "isPartOf", types: [ - "URI", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :work_example, as: "workExample", types: [ "OpenActive::Models::Schema::CreativeWork", + "URI", ] - # @return [DateTime,String,nil] - define_property :temporal, as: "temporal", types: [ - "DateTime", - "string", - "null", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :location_created, as: "locationCreated", types: [ + "OpenActive::Models::Schema::Place", + "URI", ] - # @return [URI] - define_property :thumbnail_url, as: "thumbnailUrl", types: [ + # @return [OpenActive::Models::Schema::Audience,URI] + define_property :audience, as: "audience", types: [ + "OpenActive::Models::Schema::Audience", "URI", ] - # @return [String,OpenActive::Models::Schema::Language,URI] - define_property :in_language, as: "inLanguage", types: [ - "string", - "OpenActive::Models::Schema::Language", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :creator, as: "creator", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :license, as: "license", types: [ + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :learning_resource_type, as: "learningResourceType", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "string", "URI", - "OpenActive::Models::Schema::CreativeWork", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :creator, as: "creator", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [String] + define_property :credit_text, as: "creditText", types: [ + "string", + ] + + # @return [BigDecimal,nil] + define_property :copyright_year, as: "copyrightYear", types: [ + "Number", + "null", + ] + + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :work_translation, as: "workTranslation", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] @@ -572,136 +561,154 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :about, as: "about", types: [ - "OpenActive::Models::Schema::Thing", + # @return [OpenActive::Models::Schema::Clip,OpenActive::Models::Schema::VideoObject,URI] + define_property :video, as: "video", types: [ + "OpenActive::Models::Schema::Clip", + "OpenActive::Models::Schema::VideoObject", "URI", ] - # @return [Boolean,nil] - define_property :is_family_friendly, as: "isFamilyFriendly", types: [ - "bool", - "null", + # @return [OpenActive::Models::Schema::MediaObject,URI] + define_property :encoding, as: "encoding", types: [ + "OpenActive::Models::Schema::MediaObject", + "URI", ] # @return [String] - define_property :headline, as: "headline", types: [ + define_property :accessibility_control, as: "accessibilityControl", types: [ "string", ] - # @return [String] - define_property :accessibility_api, as: "accessibilityAPI", types: [ + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :pattern, as: "pattern", types: [ "string", + "OpenActive::Models::Schema::DefinedTerm", + "URI", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :publisher_imprint, as: "publisherImprint", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :mentions, as: "mentions", types: [ + "OpenActive::Models::Schema::Thing", "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::Product] - define_property :is_based_on_url, as: "isBasedOnUrl", types: [ + # @return [URI,String] + define_property :edit_eidr, as: "editEIDR", types: [ "URI", - "OpenActive::Models::Schema::CreativeWork", - "OpenActive::Models::Schema::Product", + "string", ] - # @return [OpenActive::Models::Schema::MediaObject,URI] - define_property :encodings, as: "encodings", types: [ - "OpenActive::Models::Schema::MediaObject", + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :teaches, as: "teaches", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "string", "URI", ] - # @return [OpenActive::Models::Schema::Claim,URI] - define_property :interpreted_as_claim, as: "interpretedAsClaim", types: [ - "OpenActive::Models::Schema::Claim", + # @return [ActiveSupport::Duration,URI,nil] + define_property :time_required, as: "timeRequired", types: [ + "DateInterval", + "URI", + "null", + ] + + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :thumbnail, as: "thumbnail", types: [ + "OpenActive::Models::Schema::ImageObject", "URI", ] - # @return [String] - define_property :accessibility_control, as: "accessibilityControl", types: [ + # @return [URI,String] + define_property :genre, as: "genre", types: [ + "URI", "string", ] - # @return [OpenActive::Models::Schema::CreativeWork,String,URI] - define_property :citation, as: "citation", types: [ - "OpenActive::Models::Schema::CreativeWork", + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :creative_work_status, as: "creativeWorkStatus", types: [ + "OpenActive::Models::Schema::DefinedTerm", "string", "URI", ] - # @return [BigDecimal,String,nil] - define_property :version, as: "version", types: [ - "Number", - "string", - "null", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :provider, as: "provider", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [OpenActive::Models::Schema::WebPage,URI] - define_property :archived_at, as: "archivedAt", types: [ - "OpenActive::Models::Schema::WebPage", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", "URI", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :learning_resource_type, as: "learningResourceType", types: [ - "OpenActive::Models::Schema::DefinedTerm", - "string", + # @return [URI,OpenActive::Models::Schema::CorrectionComment,String] + define_property :correction, as: "correction", types: [ "URI", + "OpenActive::Models::Schema::CorrectionComment", + "string", ] # @return [OpenActive::Models::Schema::MediaObject,URI] - define_property :encoding, as: "encoding", types: [ + define_property :encodings, as: "encodings", types: [ "OpenActive::Models::Schema::MediaObject", "URI", ] - # @return [OpenActive::Models::Schema::AudioObject,OpenActive::Models::Schema::MusicRecording,OpenActive::Models::Schema::Clip,URI] - define_property :audio, as: "audio", types: [ - "OpenActive::Models::Schema::AudioObject", - "OpenActive::Models::Schema::MusicRecording", - "OpenActive::Models::Schema::Clip", + # @return [OpenActive::Models::Schema::Claim,URI] + define_property :interpreted_as_claim, as: "interpretedAsClaim", types: [ + "OpenActive::Models::Schema::Claim", "URI", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :mentions, as: "mentions", types: [ - "OpenActive::Models::Schema::Thing", + # @return [URI] + define_property :thumbnail_url, as: "thumbnailUrl", types: [ "URI", ] - # @return [OpenActive::Models::Schema::ItemList,URI] - define_property :access_mode_sufficient, as: "accessModeSufficient", types: [ - "OpenActive::Models::Schema::ItemList", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :publisher, as: "publisher", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :has_part, as: "hasPart", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", + # @return [String] + define_property :accessibility_summary, as: "accessibilitySummary", types: [ + "string", ] - # @return [URI,DateTime,String,nil] - define_property :temporal_coverage, as: "temporalCoverage", types: [ + # @return [OpenActive::Models::Schema::Place,URI] + define_property :content_location, as: "contentLocation", types: [ + "OpenActive::Models::Schema::Place", "URI", - "DateTime", + ] + + # @return [String] + define_property :conditions_of_access, as: "conditionsOfAccess", types: [ "string", - "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :contributor, as: "contributor", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :accountable_person, as: "accountablePerson", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Clip,OpenActive::Models::Schema::VideoObject,URI] - define_property :video, as: "video", types: [ - "OpenActive::Models::Schema::Clip", - "OpenActive::Models::Schema::VideoObject", + # @return [OpenActive::Models::Schema::PublicationEvent,URI] + define_property :released_event, as: "releasedEvent", types: [ + "OpenActive::Models::Schema::PublicationEvent", + "URI", + ] + + # @return [String,OpenActive::Models::Schema::SizeSpecification,OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :size, as: "size", types: [ + "string", + "OpenActive::Models::Schema::SizeSpecification", + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] end diff --git a/lib/openactive/models/schema/creative_work_season.rb b/lib/openactive/models/schema/creative_work_season.rb index 4373a107..7baa81e7 100644 --- a/lib/openactive/models/schema/creative_work_season.rb +++ b/lib/openactive/models/schema/creative_work_season.rb @@ -8,53 +8,35 @@ def type "schema:CreativeWorkSeason" end - # @return [DateTime,Date,nil] - define_property :start_date, as: "startDate", types: [ - "DateTime", - "Date", - "null", - ] - - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::CreativeWorkSeries,URI] + define_property :part_of_series, as: "partOfSeries", types: [ + "OpenActive::Models::Schema::CreativeWorkSeries", "URI", ] - # @return [OpenActive::Models::Schema::VideoObject,URI] - define_property :trailer, as: "trailer", types: [ - "OpenActive::Models::Schema::VideoObject", + # @return [OpenActive::Models::Schema::Episode,URI] + define_property :episodes, as: "episodes", types: [ + "OpenActive::Models::Schema::Episode", "URI", ] # @return [Date,DateTime,nil] - define_property :end_date, as: "endDate", types: [ + define_property :start_date, as: "startDate", types: [ "Date", "DateTime", "null", ] - # @return [OpenActive::Models::Schema::Episode,URI] - define_property :episodes, as: "episodes", types: [ - "OpenActive::Models::Schema::Episode", - "URI", - ] - - # @return [int,nil] - define_property :number_of_episodes, as: "numberOfEpisodes", types: [ + # @return [String,int,nil] + define_property :season_number, as: "seasonNumber", types: [ + "string", "int", "null", ] - # @return [OpenActive::Models::Schema::CreativeWorkSeries,URI] - define_property :part_of_series, as: "partOfSeries", types: [ - "OpenActive::Models::Schema::CreativeWorkSeries", + # @return [OpenActive::Models::Schema::VideoObject,URI] + define_property :trailer, as: "trailer", types: [ + "OpenActive::Models::Schema::VideoObject", "URI", ] @@ -64,18 +46,36 @@ def type "URI", ] - # @return [String,int,nil] - define_property :season_number, as: "seasonNumber", types: [ - "string", + # @return [OpenActive::Models::Schema::Episode,URI] + define_property :episode, as: "episode", types: [ + "OpenActive::Models::Schema::Episode", + "URI", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :director, as: "director", types: [ + "OpenActive::Models::Schema::Person", + "URI", + ] + + # @return [int,nil] + define_property :number_of_episodes, as: "numberOfEpisodes", types: [ "int", "null", ] - # @return [OpenActive::Models::Schema::Episode,URI] - define_property :episode, as: "episode", types: [ - "OpenActive::Models::Schema::Episode", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actor, as: "actor", types: [ + "OpenActive::Models::Schema::Person", "URI", ] + + # @return [Date,DateTime,nil] + define_property :end_date, as: "endDate", types: [ + "Date", + "DateTime", + "null", + ] end end end diff --git a/lib/openactive/models/schema/creative_work_series.rb b/lib/openactive/models/schema/creative_work_series.rb index 9a2e78c4..f668b9fe 100644 --- a/lib/openactive/models/schema/creative_work_series.rb +++ b/lib/openactive/models/schema/creative_work_series.rb @@ -8,24 +8,24 @@ def type "schema:CreativeWorkSeries" end - # @return [DateTime,Date,nil] + # @return [Date,DateTime,nil] define_property :start_date, as: "startDate", types: [ - "DateTime", "Date", + "DateTime", "null", ] + # @return [String] + define_property :issn, as: "issn", types: [ + "string", + ] + # @return [Date,DateTime,nil] define_property :end_date, as: "endDate", types: [ "Date", "DateTime", "null", ] - - # @return [String] - define_property :issn, as: "issn", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/credit_card.rb b/lib/openactive/models/schema/credit_card.rb index 0acd3411..18270bc8 100644 --- a/lib/openactive/models/schema/credit_card.rb +++ b/lib/openactive/models/schema/credit_card.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class CreditCard < ::OpenActive::Models::Schema::PaymentCard + class CreditCard < ::OpenActive::Models::Schema::LoanOrCredit # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/data_catalog.rb b/lib/openactive/models/schema/data_catalog.rb index c16cff91..7ff29b53 100644 --- a/lib/openactive/models/schema/data_catalog.rb +++ b/lib/openactive/models/schema/data_catalog.rb @@ -8,10 +8,13 @@ def type "schema:DataCatalog" end - # @return [String,URI] + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] define_property :measurement_technique, as: "measurementTechnique", types: [ - "string", + "OpenActive::Models::Schema::DefinedTerm", "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", ] # @return [OpenActive::Models::Schema::Dataset,URI] @@ -19,6 +22,15 @@ def type "OpenActive::Models::Schema::Dataset", "URI", ] + + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_method, as: "measurementMethod", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", + ] end end end diff --git a/lib/openactive/models/schema/data_download.rb b/lib/openactive/models/schema/data_download.rb index 1d9b6bbd..7d22d927 100644 --- a/lib/openactive/models/schema/data_download.rb +++ b/lib/openactive/models/schema/data_download.rb @@ -8,10 +8,22 @@ def type "schema:DataDownload" end - # @return [String,URI] + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] define_property :measurement_technique, as: "measurementTechnique", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", + ] + + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_method, as: "measurementMethod", types: [ + "OpenActive::Models::Schema::DefinedTerm", "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", ] end end diff --git a/lib/openactive/models/schema/data_feed_item.rb b/lib/openactive/models/schema/data_feed_item.rb index 987d58de..d9ffab97 100644 --- a/lib/openactive/models/schema/data_feed_item.rb +++ b/lib/openactive/models/schema/data_feed_item.rb @@ -8,13 +8,19 @@ def type "schema:DataFeedItem" end - # @return [DateTime,Date,nil] - define_property :date_deleted, as: "dateDeleted", types: [ - "DateTime", + # @return [Date,DateTime,nil] + define_property :date_modified, as: "dateModified", types: [ "Date", + "DateTime", "null", ] + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :item, as: "item", types: [ + "OpenActive::Models::Schema::Thing", + "URI", + ] + # @return [Date,DateTime,nil] define_property :date_created, as: "dateCreated", types: [ "Date", @@ -22,18 +28,12 @@ def type "null", ] - # @return [DateTime,Date,nil] - define_property :date_modified, as: "dateModified", types: [ - "DateTime", + # @return [Date,DateTime,nil] + define_property :date_deleted, as: "dateDeleted", types: [ "Date", + "DateTime", "null", ] - - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :item, as: "item", types: [ - "OpenActive::Models::Schema::Thing", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/dataset.rb b/lib/openactive/models/schema/dataset.rb index 9e2e580e..0fbe9cdd 100644 --- a/lib/openactive/models/schema/dataset.rb +++ b/lib/openactive/models/schema/dataset.rb @@ -8,10 +8,10 @@ def type "schema:Dataset" end - # @return [OpenActive::Models::Schema::DataCatalog,URI] - define_property :catalog, as: "catalog", types: [ - "OpenActive::Models::Schema::DataCatalog", - "URI", + # @return [DateTime,nil] + define_property :dataset_time_interval, as: "datasetTimeInterval", types: [ + "DateTime", + "null", ] # @return [OpenActive::Models::Schema::DataCatalog,URI] @@ -20,22 +20,42 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::PropertyValue,String,URI] + # @return [OpenActive::Enums::PropertyEnumeration,OpenActive::Models::Schema::StatisticalVariable,String,OpenActive::Models::Schema::PropertyValue,URI,nil] define_property :variable_measured, as: "variableMeasured", types: [ - "OpenActive::Models::Schema::PropertyValue", + "OpenActive::Enums::PropertyEnumeration", + "OpenActive::Models::Schema::StatisticalVariable", "string", + "OpenActive::Models::Schema::PropertyValue", "URI", + "null", ] - # @return [String,URI] + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] define_property :measurement_technique, as: "measurementTechnique", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", + ] + + # @return [OpenActive::Models::Schema::DataCatalog,URI] + define_property :catalog, as: "catalog", types: [ + "OpenActive::Models::Schema::DataCatalog", "URI", ] - # @return [DateTime,nil] - define_property :dataset_time_interval, as: "datasetTimeInterval", types: [ - "DateTime", + # @return [String] + define_property :issn, as: "issn", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_method, as: "measurementMethod", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", "null", ] @@ -45,11 +65,6 @@ def type "URI", ] - # @return [String] - define_property :issn, as: "issn", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::DataCatalog,URI] define_property :included_in_data_catalog, as: "includedInDataCatalog", types: [ "OpenActive::Models::Schema::DataCatalog", diff --git a/lib/openactive/models/schema/dated_money_specification.rb b/lib/openactive/models/schema/dated_money_specification.rb index cecc4ede..e691351b 100644 --- a/lib/openactive/models/schema/dated_money_specification.rb +++ b/lib/openactive/models/schema/dated_money_specification.rb @@ -8,32 +8,32 @@ def type "schema:DatedMoneySpecification" end - # @return [DateTime,Date,nil] - define_property :start_date, as: "startDate", types: [ - "DateTime", - "Date", - "null", + # @return [String] + define_property :currency, as: "currency", types: [ + "string", ] # @return [Date,DateTime,nil] - define_property :end_date, as: "endDate", types: [ + define_property :start_date, as: "startDate", types: [ "Date", "DateTime", "null", ] - # @return [String] - define_property :currency, as: "currency", types: [ - "string", - ] - - # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + # @return [OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] define_property :amount, as: "amount", types: [ - "Number", "OpenActive::Models::Schema::MonetaryAmount", + "Number", "URI", "null", ] + + # @return [Date,DateTime,nil] + define_property :end_date, as: "endDate", types: [ + "Date", + "DateTime", + "null", + ] end end end diff --git a/lib/openactive/models/schema/ddx_element.rb b/lib/openactive/models/schema/ddx_element.rb index c3eda21e..cdc533a9 100644 --- a/lib/openactive/models/schema/ddx_element.rb +++ b/lib/openactive/models/schema/ddx_element.rb @@ -8,17 +8,17 @@ def type "schema:DDxElement" end - # @return [OpenActive::Models::Schema::MedicalSignOrSymptom,URI] - define_property :distinguishing_sign, as: "distinguishingSign", types: [ - "OpenActive::Models::Schema::MedicalSignOrSymptom", - "URI", - ] - # @return [OpenActive::Models::Schema::MedicalCondition,URI] define_property :diagnosis, as: "diagnosis", types: [ "OpenActive::Models::Schema::MedicalCondition", "URI", ] + + # @return [OpenActive::Models::Schema::MedicalSignOrSymptom,URI] + define_property :distinguishing_sign, as: "distinguishingSign", types: [ + "OpenActive::Models::Schema::MedicalSignOrSymptom", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/defined_region.rb b/lib/openactive/models/schema/defined_region.rb index f326b8db..f7e21273 100644 --- a/lib/openactive/models/schema/defined_region.rb +++ b/lib/openactive/models/schema/defined_region.rb @@ -16,7 +16,12 @@ def type ] # @return [String] - define_property :address_region, as: "addressRegion", types: [ + define_property :postal_code, as: "postalCode", types: [ + "string", + ] + + # @return [String] + define_property :postal_code_prefix, as: "postalCodePrefix", types: [ "string", ] @@ -27,12 +32,7 @@ def type ] # @return [String] - define_property :postal_code_prefix, as: "postalCodePrefix", types: [ - "string", - ] - - # @return [String] - define_property :postal_code, as: "postalCode", types: [ + define_property :address_region, as: "addressRegion", types: [ "string", ] end diff --git a/lib/openactive/models/schema/defined_term.rb b/lib/openactive/models/schema/defined_term.rb index e93afe93..e340cc8c 100644 --- a/lib/openactive/models/schema/defined_term.rb +++ b/lib/openactive/models/schema/defined_term.rb @@ -8,16 +8,16 @@ def type "schema:DefinedTerm" end + # @return [OpenActive::Models::Schema::DefinedTermSet,URI] + define_property :in_defined_term_set, as: "inDefinedTermSet", types: [ + "OpenActive::Models::Schema::DefinedTermSet", + "URI", + ] + # @return [String] define_property :term_code, as: "termCode", types: [ "string", ] - - # @return [URI,OpenActive::Models::Schema::DefinedTermSet] - define_property :in_defined_term_set, as: "inDefinedTermSet", types: [ - "URI", - "OpenActive::Models::Schema::DefinedTermSet", - ] end end end diff --git a/lib/openactive/models/schema/delivery_charge_specification.rb b/lib/openactive/models/schema/delivery_charge_specification.rb index 11fdf5e4..9ddb9a6c 100644 --- a/lib/openactive/models/schema/delivery_charge_specification.rb +++ b/lib/openactive/models/schema/delivery_charge_specification.rb @@ -8,10 +8,16 @@ def type "schema:DeliveryChargeSpecification" end - # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::GeoShape,URI] + # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] + define_property :applies_to_delivery_method, as: "appliesToDeliveryMethod", types: [ + "OpenActive::Enums::Schema::DeliveryMethod", + "null", + ] + + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,URI] define_property :ineligible_region, as: "ineligibleRegion", types: [ - "OpenActive::Models::Schema::Place", "string", + "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeoShape", "URI", ] @@ -24,20 +30,14 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] define_property :area_served, as: "areaServed", types: [ - "OpenActive::Models::Schema::AdministrativeArea", - "OpenActive::Models::Schema::GeoShape", "string", "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", + "OpenActive::Models::Schema::AdministrativeArea", "URI", ] - - # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] - define_property :applies_to_delivery_method, as: "appliesToDeliveryMethod", types: [ - "OpenActive::Enums::Schema::DeliveryMethod", - "null", - ] end end end diff --git a/lib/openactive/models/schema/delivery_event.rb b/lib/openactive/models/schema/delivery_event.rb index 1dd72883..ecf3f46e 100644 --- a/lib/openactive/models/schema/delivery_event.rb +++ b/lib/openactive/models/schema/delivery_event.rb @@ -14,7 +14,7 @@ def type ] # @return [DateTime,nil] - define_property :available_through, as: "availableThrough", types: [ + define_property :available_from, as: "availableFrom", types: [ "DateTime", "null", ] @@ -26,7 +26,7 @@ def type ] # @return [DateTime,nil] - define_property :available_from, as: "availableFrom", types: [ + define_property :available_through, as: "availableThrough", types: [ "DateTime", "null", ] diff --git a/lib/openactive/models/schema/demand.rb b/lib/openactive/models/schema/demand.rb index 3ae21bf3..11bbe53d 100644 --- a/lib/openactive/models/schema/demand.rb +++ b/lib/openactive/models/schema/demand.rb @@ -8,40 +8,12 @@ def type "schema:Demand" end - # @return [String] - define_property :gtin12, as: "gtin12", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::Trip,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::Product,OpenActive::Models::Schema::AggregateOffer,OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::Service,URI] - define_property :item_offered, as: "itemOffered", types: [ - "OpenActive::Models::Schema::Trip", - "OpenActive::Models::Schema::Event", - "OpenActive::Models::Schema::Product", - "OpenActive::Models::Schema::AggregateOffer", - "OpenActive::Models::Schema::CreativeWork", - "OpenActive::Models::Schema::MenuItem", - "OpenActive::Models::Schema::Service", - "URI", - ] - - # @return [String] - define_property :mpn, as: "mpn", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::TypeAndQuantityNode,URI] - define_property :includes_object, as: "includesObject", types: [ - "OpenActive::Models::Schema::TypeAndQuantityNode", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :eligible_duration, as: "eligibleDuration", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [OpenActive::Enums::Schema::BusinessFunction,nil] - define_property :business_function, as: "businessFunction", types: [ - "OpenActive::Enums::Schema::BusinessFunction", - "null", - ] - # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] define_property :item_condition, as: "itemCondition", types: [ "OpenActive::Enums::Schema::OfferItemCondition", @@ -49,27 +21,20 @@ def type ] # @return [String] - define_property :gtin, as: "gtin", types: [ + define_property :gtin12, as: "gtin12", types: [ "string", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :eligible_quantity, as: "eligibleQuantity", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - - # @return [OpenActive::Models::Schema::LoanOrCredit,OpenActive::Enums::Schema::PaymentMethod,URI,nil] - define_property :accepted_payment_method, as: "acceptedPaymentMethod", types: [ - "OpenActive::Models::Schema::LoanOrCredit", - "OpenActive::Enums::Schema::PaymentMethod", - "URI", + # @return [Date,DateTime,nil] + define_property :valid_from, as: "validFrom", types: [ + "Date", + "DateTime", "null", ] - # @return [OpenActive::Models::Schema::WarrantyPromise,URI] - define_property :warranty, as: "warranty", types: [ - "OpenActive::Models::Schema::WarrantyPromise", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :available_at_or_from, as: "availableAtOrFrom", types: [ + "OpenActive::Models::Schema::Place", "URI", ] @@ -80,17 +45,9 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::GeoShape,URI] - define_property :ineligible_region, as: "ineligibleRegion", types: [ - "OpenActive::Models::Schema::Place", - "string", - "OpenActive::Models::Schema::GeoShape", - "URI", - ] - - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :delivery_lead_time, as: "deliveryLeadTime", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Models::Schema::PriceSpecification,URI] + define_property :price_specification, as: "priceSpecification", types: [ + "OpenActive::Models::Schema::PriceSpecification", "URI", ] @@ -100,10 +57,15 @@ def type "null", ] - # @return [DateTime,Date,nil] - define_property :valid_from, as: "validFrom", types: [ - "DateTime", - "Date", + # @return [OpenActive::Models::Schema::TypeAndQuantityNode,URI] + define_property :includes_object, as: "includesObject", types: [ + "OpenActive::Models::Schema::TypeAndQuantityNode", + "URI", + ] + + # @return [OpenActive::Enums::Schema::BusinessFunction,nil] + define_property :business_function, as: "businessFunction", types: [ + "OpenActive::Enums::Schema::BusinessFunction", "null", ] @@ -115,33 +77,67 @@ def type "null", ] - # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] - define_property :eligible_region, as: "eligibleRegion", types: [ - "OpenActive::Models::Schema::GeoShape", + # @return [OpenActive::Enums::Schema::ItemAvailability,nil] + define_property :availability, as: "availability", types: [ + "OpenActive::Enums::Schema::ItemAvailability", + "null", + ] + + # @return [String] + define_property :sku, as: "sku", types: [ "string", - "OpenActive::Models::Schema::Place", + ] + + # @return [Date,DateTime,nil] + define_property :valid_through, as: "validThrough", types: [ + "Date", + "DateTime", + "null", + ] + + # @return [OpenActive::Models::Schema::WarrantyPromise,URI] + define_property :warranty, as: "warranty", types: [ + "OpenActive::Models::Schema::WarrantyPromise", "URI", ] + # @return [Time,Date,DateTime,nil] + define_property :availability_starts, as: "availabilityStarts", types: [ + "Time", + "Date", + "DateTime", + "null", + ] + # @return [String] define_property :gtin8, as: "gtin8", types: [ "string", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :inventory_level, as: "inventoryLevel", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String] + define_property :gtin13, as: "gtin13", types: [ + "string", + ] + + # @return [OpenActive::Enums::Schema::PaymentMethod,OpenActive::Models::Schema::LoanOrCredit,URI,nil] + define_property :accepted_payment_method, as: "acceptedPaymentMethod", types: [ + "OpenActive::Enums::Schema::PaymentMethod", + "OpenActive::Models::Schema::LoanOrCredit", "URI", + "null", ] - # @return [String] - define_property :sku, as: "sku", types: [ + # @return [String,URI] + define_property :asin, as: "asin", types: [ "string", + "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :advance_booking_requirement, as: "advanceBookingRequirement", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,URI] + define_property :ineligible_region, as: "ineligibleRegion", types: [ + "string", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", "URI", ] @@ -150,15 +146,8 @@ def type "string", ] - # @return [OpenActive::Models::Schema::PriceSpecification,URI] - define_property :eligible_transaction_volume, as: "eligibleTransactionVolume", types: [ - "OpenActive::Models::Schema::PriceSpecification", - "URI", - ] - - # @return [OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] - define_property :area_served, as: "areaServed", types: [ - "OpenActive::Models::Schema::AdministrativeArea", + # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] + define_property :eligible_region, as: "eligibleRegion", types: [ "OpenActive::Models::Schema::GeoShape", "string", "OpenActive::Models::Schema::Place", @@ -171,47 +160,59 @@ def type "null", ] - # @return [OpenActive::Enums::Schema::ItemAvailability,nil] - define_property :availability, as: "availability", types: [ - "OpenActive::Enums::Schema::ItemAvailability", - "null", - ] - - # @return [String] - define_property :gtin13, as: "gtin13", types: [ - "string", - ] - - # @return [DateTime,Date,nil] - define_property :valid_through, as: "validThrough", types: [ - "DateTime", - "Date", - "null", + # @return [OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::AggregateOffer,OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::Trip,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] + define_property :item_offered, as: "itemOffered", types: [ + "OpenActive::Models::Schema::CreativeWork", + "OpenActive::Models::Schema::AggregateOffer", + "OpenActive::Models::Schema::MenuItem", + "OpenActive::Models::Schema::Trip", + "OpenActive::Models::Schema::Event", + "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Product", + "URI", ] # @return [OpenActive::Models::Schema::PriceSpecification,URI] - define_property :price_specification, as: "priceSpecification", types: [ + define_property :eligible_transaction_volume, as: "eligibleTransactionVolume", types: [ "OpenActive::Models::Schema::PriceSpecification", "URI", ] - # @return [Time,DateTime,Date,nil] - define_property :availability_starts, as: "availabilityStarts", types: [ - "Time", - "DateTime", - "Date", - "null", + # @return [URI,String] + define_property :gtin, as: "gtin", types: [ + "URI", + "string", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :eligible_duration, as: "eligibleDuration", types: [ + define_property :delivery_lead_time, as: "deliveryLeadTime", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :available_at_or_from, as: "availableAtOrFrom", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :advance_booking_requirement, as: "advanceBookingRequirement", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] + + # @return [String] + define_property :mpn, as: "mpn", types: [ + "string", + ] + + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :area_served, as: "areaServed", types: [ + "string", "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", + "OpenActive::Models::Schema::AdministrativeArea", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :inventory_level, as: "inventoryLevel", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] @@ -219,6 +220,12 @@ def type define_property :serial_number, as: "serialNumber", types: [ "string", ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :eligible_quantity, as: "eligibleQuantity", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/dentist.rb b/lib/openactive/models/schema/dentist.rb index c286df6e..8ffebdbc 100644 --- a/lib/openactive/models/schema/dentist.rb +++ b/lib/openactive/models/schema/dentist.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class Dentist < ::OpenActive::Models::Schema::MedicalOrganization + class Dentist < ::OpenActive::Models::Schema::LocalBusiness # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/deposit_account.rb b/lib/openactive/models/schema/deposit_account.rb index 6349a789..e870f5de 100644 --- a/lib/openactive/models/schema/deposit_account.rb +++ b/lib/openactive/models/schema/deposit_account.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class DepositAccount < ::OpenActive::Models::Schema::InvestmentOrDeposit + class DepositAccount < ::OpenActive::Models::Schema::BankAccount # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/diet.rb b/lib/openactive/models/schema/diet.rb index 403e7d6a..ce34ed74 100644 --- a/lib/openactive/models/schema/diet.rb +++ b/lib/openactive/models/schema/diet.rb @@ -9,7 +9,7 @@ def type end # @return [String] - define_property :expert_considerations, as: "expertConsiderations", types: [ + define_property :physiological_benefits, as: "physiologicalBenefits", types: [ "string", ] @@ -18,11 +18,6 @@ def type "string", ] - # @return [String] - define_property :physiological_benefits, as: "physiologicalBenefits", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :endorsers, as: "endorsers", types: [ "OpenActive::Models::Schema::Person", @@ -30,6 +25,11 @@ def type "URI", ] + # @return [String] + define_property :expert_considerations, as: "expertConsiderations", types: [ + "string", + ] + # @return [String] define_property :diet_features, as: "dietFeatures", types: [ "string", diff --git a/lib/openactive/models/schema/dietary_supplement.rb b/lib/openactive/models/schema/dietary_supplement.rb index 696dbceb..35537355 100644 --- a/lib/openactive/models/schema/dietary_supplement.rb +++ b/lib/openactive/models/schema/dietary_supplement.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class DietarySupplement < ::OpenActive::Models::Schema::Substance + class DietarySupplement < ::OpenActive::Models::Schema::Product # @!attribute type # @return [String] def type @@ -9,23 +9,13 @@ def type end # @return [String] - define_property :target_population, as: "targetPopulation", types: [ + define_property :active_ingredient, as: "activeIngredient", types: [ "string", ] - # @return [OpenActive::Models::Schema::RecommendedDoseSchedule,URI] - define_property :recommended_intake, as: "recommendedIntake", types: [ - "OpenActive::Models::Schema::RecommendedDoseSchedule", - "URI", - ] - - # @return [OpenActive::Models::Schema::DrugLegalStatus,String,OpenActive::Enums::Schema::MedicalEnumeration,URI,nil] - define_property :legal_status, as: "legalStatus", types: [ - "OpenActive::Models::Schema::DrugLegalStatus", + # @return [String] + define_property :target_population, as: "targetPopulation", types: [ "string", - "OpenActive::Enums::Schema::MedicalEnumeration", - "URI", - "null", ] # @return [String] @@ -33,19 +23,26 @@ def type "string", ] + # @return [Boolean,nil] + define_property :is_proprietary, as: "isProprietary", types: [ + "bool", + "null", + ] + # @return [OpenActive::Models::Schema::MaximumDoseSchedule,URI] define_property :maximum_intake, as: "maximumIntake", types: [ "OpenActive::Models::Schema::MaximumDoseSchedule", "URI", ] - # @return [String] - define_property :active_ingredient, as: "activeIngredient", types: [ - "string", + # @return [OpenActive::Models::Schema::RecommendedDoseSchedule,URI] + define_property :recommended_intake, as: "recommendedIntake", types: [ + "OpenActive::Models::Schema::RecommendedDoseSchedule", + "URI", ] # @return [String] - define_property :proprietary_name, as: "proprietaryName", types: [ + define_property :safety_consideration, as: "safetyConsideration", types: [ "string", ] @@ -54,21 +51,18 @@ def type "string", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :manufacturer, as: "manufacturer", types: [ - "OpenActive::Models::Schema::Organization", - "URI", - ] - - # @return [Boolean,nil] - define_property :is_proprietary, as: "isProprietary", types: [ - "bool", - "null", + # @return [String] + define_property :proprietary_name, as: "proprietaryName", types: [ + "string", ] - # @return [String] - define_property :safety_consideration, as: "safetyConsideration", types: [ + # @return [OpenActive::Models::Schema::DrugLegalStatus,OpenActive::Enums::Schema::MedicalEnumeration,String,URI,nil] + define_property :legal_status, as: "legalStatus", types: [ + "OpenActive::Models::Schema::DrugLegalStatus", + "OpenActive::Enums::Schema::MedicalEnumeration", "string", + "URI", + "null", ] end end diff --git a/lib/openactive/models/schema/digital_document_permission.rb b/lib/openactive/models/schema/digital_document_permission.rb index 132ff7df..a4c7c358 100644 --- a/lib/openactive/models/schema/digital_document_permission.rb +++ b/lib/openactive/models/schema/digital_document_permission.rb @@ -8,20 +8,20 @@ def type "schema:DigitalDocumentPermission" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Enums::Schema::DigitalDocumentPermissionType,nil] + define_property :permission_type, as: "permissionType", types: [ + "OpenActive::Enums::Schema::DigitalDocumentPermissionType", + "null", + ] + + # @return [OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] define_property :grantee, as: "grantee", types: [ - "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", "URI", ] - - # @return [OpenActive::Enums::Schema::DigitalDocumentPermissionType,nil] - define_property :permission_type, as: "permissionType", types: [ - "OpenActive::Enums::Schema::DigitalDocumentPermissionType", - "null", - ] end end end diff --git a/lib/openactive/models/schema/donate_action.rb b/lib/openactive/models/schema/donate_action.rb index e659368c..0a05e98e 100644 --- a/lib/openactive/models/schema/donate_action.rb +++ b/lib/openactive/models/schema/donate_action.rb @@ -8,12 +8,12 @@ def type "schema:DonateAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/dose_schedule.rb b/lib/openactive/models/schema/dose_schedule.rb index 7176c9b8..9e6723c3 100644 --- a/lib/openactive/models/schema/dose_schedule.rb +++ b/lib/openactive/models/schema/dose_schedule.rb @@ -8,9 +8,11 @@ def type "schema:DoseSchedule" end - # @return [String] - define_property :target_population, as: "targetPopulation", types: [ - "string", + # @return [BigDecimal,OpenActive::Enums::Schema::QualitativeValue,nil] + define_property :dose_value, as: "doseValue", types: [ + "Number", + "OpenActive::Enums::Schema::QualitativeValue", + "null", ] # @return [String] @@ -19,15 +21,13 @@ def type ] # @return [String] - define_property :dose_unit, as: "doseUnit", types: [ + define_property :target_population, as: "targetPopulation", types: [ "string", ] - # @return [BigDecimal,OpenActive::Enums::Schema::QualitativeValue,nil] - define_property :dose_value, as: "doseValue", types: [ - "Number", - "OpenActive::Enums::Schema::QualitativeValue", - "null", + # @return [String] + define_property :dose_unit, as: "doseUnit", types: [ + "string", ] end end diff --git a/lib/openactive/models/schema/drug.rb b/lib/openactive/models/schema/drug.rb index 39c1a1a9..ae390763 100644 --- a/lib/openactive/models/schema/drug.rb +++ b/lib/openactive/models/schema/drug.rb @@ -1,59 +1,86 @@ module OpenActive module Models module Schema - class Drug < ::OpenActive::Models::Schema::Substance + class Drug < ::OpenActive::Models::Schema::Product # @!attribute type # @return [String] def type "schema:Drug" end - # @return [OpenActive::Models::Schema::DrugPregnancyCategory,URI] - define_property :pregnancy_category, as: "pregnancyCategory", types: [ - "OpenActive::Models::Schema::DrugPregnancyCategory", + # @return [String] + define_property :clinical_pharmacology, as: "clinicalPharmacology", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::DoseSchedule,URI] + define_property :dose_schedule, as: "doseSchedule", types: [ + "OpenActive::Models::Schema::DoseSchedule", "URI", ] # @return [String] - define_property :overdosage, as: "overdosage", types: [ + define_property :active_ingredient, as: "activeIngredient", types: [ "string", ] - # @return [OpenActive::Models::Schema::DrugLegalStatus,String,OpenActive::Enums::Schema::MedicalEnumeration,URI,nil] - define_property :legal_status, as: "legalStatus", types: [ - "OpenActive::Models::Schema::DrugLegalStatus", - "string", - "OpenActive::Enums::Schema::MedicalEnumeration", + # @return [OpenActive::Models::Schema::Drug,URI] + define_property :interacting_drug, as: "interactingDrug", types: [ + "OpenActive::Models::Schema::Drug", "URI", - "null", ] # @return [String] - define_property :mechanism_of_action, as: "mechanismOfAction", types: [ + define_property :overdosage, as: "overdosage", types: [ "string", ] + # @return [OpenActive::Models::Schema::DrugStrength,URI] + define_property :available_strength, as: "availableStrength", types: [ + "OpenActive::Models::Schema::DrugStrength", + "URI", + ] + + # @return [OpenActive::Models::Schema::DrugPrescriptionStatus,String,URI] + define_property :prescription_status, as: "prescriptionStatus", types: [ + "OpenActive::Models::Schema::DrugPrescriptionStatus", + "string", + "URI", + ] + # @return [String] - define_property :clinical_pharmacology, as: "clinicalPharmacology", types: [ + define_property :administration_route, as: "administrationRoute", types: [ "string", ] # @return [String] - define_property :rxcui, as: "rxcui", types: [ + define_property :alcohol_warning, as: "alcoholWarning", types: [ "string", ] - # @return [OpenActive::Models::Schema::Drug,URI] - define_property :interacting_drug, as: "interactingDrug", types: [ - "OpenActive::Models::Schema::Drug", + # @return [OpenActive::Models::Schema::DrugClass,URI] + define_property :drug_class, as: "drugClass", types: [ + "OpenActive::Models::Schema::DrugClass", + "URI", + ] + + # @return [OpenActive::Models::Schema::DrugPregnancyCategory,URI] + define_property :pregnancy_category, as: "pregnancyCategory", types: [ + "OpenActive::Models::Schema::DrugPregnancyCategory", "URI", ] # @return [String] - define_property :dosage_form, as: "dosageForm", types: [ + define_property :mechanism_of_action, as: "mechanismOfAction", types: [ "string", ] + # @return [Boolean,nil] + define_property :is_proprietary, as: "isProprietary", types: [ + "bool", + "null", + ] + # @return [URI] define_property :label_details, as: "labelDetails", types: [ "URI", @@ -65,43 +92,40 @@ def type "URI", ] + # @return [URI,String] + define_property :warning, as: "warning", types: [ + "URI", + "string", + ] + # @return [String] - define_property :active_ingredient, as: "activeIngredient", types: [ + define_property :drug_unit, as: "drugUnit", types: [ "string", ] - # @return [OpenActive::Models::Schema::Drug,URI] - define_property :related_drug, as: "relatedDrug", types: [ - "OpenActive::Models::Schema::Drug", + # @return [URI] + define_property :prescribing_info, as: "prescribingInfo", types: [ "URI", ] # @return [String] - define_property :administration_route, as: "administrationRoute", types: [ + define_property :dosage_form, as: "dosageForm", types: [ "string", ] # @return [String] - define_property :drug_unit, as: "drugUnit", types: [ + define_property :pregnancy_warning, as: "pregnancyWarning", types: [ "string", ] # @return [String] - define_property :food_warning, as: "foodWarning", types: [ - "string", - ] - - # @return [URI,String] - define_property :warning, as: "warning", types: [ - "URI", + define_property :non_proprietary_name, as: "nonProprietaryName", types: [ "string", ] - # @return [OpenActive::Models::Schema::DrugPrescriptionStatus,String,URI] - define_property :prescription_status, as: "prescriptionStatus", types: [ - "OpenActive::Models::Schema::DrugPrescriptionStatus", + # @return [String] + define_property :clincal_pharmacology, as: "clincalPharmacology", types: [ "string", - "URI", ] # @return [String] @@ -109,45 +133,37 @@ def type "string", ] - # @return [OpenActive::Models::Schema::DrugClass,URI] - define_property :drug_class, as: "drugClass", types: [ - "OpenActive::Models::Schema::DrugClass", - "URI", - ] - - # @return [URI] - define_property :prescribing_info, as: "prescribingInfo", types: [ - "URI", - ] - - # @return [OpenActive::Models::Schema::HealthInsurancePlan,URI] - define_property :included_in_health_insurance_plan, as: "includedInHealthInsurancePlan", types: [ - "OpenActive::Models::Schema::HealthInsurancePlan", + # @return [OpenActive::Models::Schema::Drug,URI] + define_property :related_drug, as: "relatedDrug", types: [ + "OpenActive::Models::Schema::Drug", "URI", ] # @return [String] - define_property :non_proprietary_name, as: "nonProprietaryName", types: [ + define_property :food_warning, as: "foodWarning", types: [ "string", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :manufacturer, as: "manufacturer", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::DrugLegalStatus,OpenActive::Enums::Schema::MedicalEnumeration,String,URI,nil] + define_property :legal_status, as: "legalStatus", types: [ + "OpenActive::Models::Schema::DrugLegalStatus", + "OpenActive::Enums::Schema::MedicalEnumeration", + "string", "URI", - ] - - # @return [Boolean,nil] - define_property :is_proprietary, as: "isProprietary", types: [ - "bool", "null", ] # @return [String] - define_property :clincal_pharmacology, as: "clincalPharmacology", types: [ + define_property :rxcui, as: "rxcui", types: [ "string", ] + # @return [OpenActive::Models::Schema::HealthInsurancePlan,URI] + define_property :included_in_health_insurance_plan, as: "includedInHealthInsurancePlan", types: [ + "OpenActive::Models::Schema::HealthInsurancePlan", + "URI", + ] + # @return [Boolean,nil] define_property :is_available_generically, as: "isAvailableGenerically", types: [ "bool", @@ -158,28 +174,6 @@ def type define_property :breastfeeding_warning, as: "breastfeedingWarning", types: [ "string", ] - - # @return [String] - define_property :pregnancy_warning, as: "pregnancyWarning", types: [ - "string", - ] - - # @return [String] - define_property :alcohol_warning, as: "alcoholWarning", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::DoseSchedule,URI] - define_property :dose_schedule, as: "doseSchedule", types: [ - "OpenActive::Models::Schema::DoseSchedule", - "URI", - ] - - # @return [OpenActive::Models::Schema::DrugStrength,URI] - define_property :available_strength, as: "availableStrength", types: [ - "OpenActive::Models::Schema::DrugStrength", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/drug_cost.rb b/lib/openactive/models/schema/drug_cost.rb index 5a1e3027..f3edf2aa 100644 --- a/lib/openactive/models/schema/drug_cost.rb +++ b/lib/openactive/models/schema/drug_cost.rb @@ -8,10 +8,9 @@ def type "schema:DrugCost" end - # @return [OpenActive::Models::Schema::AdministrativeArea,URI] - define_property :applicable_location, as: "applicableLocation", types: [ - "OpenActive::Models::Schema::AdministrativeArea", - "URI", + # @return [String] + define_property :cost_currency, as: "costCurrency", types: [ + "string", ] # @return [BigDecimal,String,OpenActive::Enums::Schema::QualitativeValue,nil] @@ -22,10 +21,9 @@ def type "null", ] - # @return [OpenActive::Models::Schema::DrugCostCategory,URI] - define_property :cost_category, as: "costCategory", types: [ - "OpenActive::Models::Schema::DrugCostCategory", - "URI", + # @return [String] + define_property :cost_origin, as: "costOrigin", types: [ + "string", ] # @return [String] @@ -33,14 +31,16 @@ def type "string", ] - # @return [String] - define_property :cost_currency, as: "costCurrency", types: [ - "string", + # @return [OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :applicable_location, as: "applicableLocation", types: [ + "OpenActive::Models::Schema::AdministrativeArea", + "URI", ] - # @return [String] - define_property :cost_origin, as: "costOrigin", types: [ - "string", + # @return [OpenActive::Models::Schema::DrugCostCategory,URI] + define_property :cost_category, as: "costCategory", types: [ + "OpenActive::Models::Schema::DrugCostCategory", + "URI", ] end end diff --git a/lib/openactive/models/schema/drug_strength.rb b/lib/openactive/models/schema/drug_strength.rb index 96203006..0c43e301 100644 --- a/lib/openactive/models/schema/drug_strength.rb +++ b/lib/openactive/models/schema/drug_strength.rb @@ -8,23 +8,11 @@ def type "schema:DrugStrength" end - # @return [OpenActive::Models::Schema::AdministrativeArea,URI] - define_property :available_in, as: "availableIn", types: [ - "OpenActive::Models::Schema::AdministrativeArea", - "URI", - ] - # @return [String] define_property :strength_unit, as: "strengthUnit", types: [ "string", ] - # @return [OpenActive::Models::Schema::MaximumDoseSchedule,URI] - define_property :maximum_intake, as: "maximumIntake", types: [ - "OpenActive::Models::Schema::MaximumDoseSchedule", - "URI", - ] - # @return [String] define_property :active_ingredient, as: "activeIngredient", types: [ "string", @@ -35,6 +23,18 @@ def type "Number", "null", ] + + # @return [OpenActive::Models::Schema::MaximumDoseSchedule,URI] + define_property :maximum_intake, as: "maximumIntake", types: [ + "OpenActive::Models::Schema::MaximumDoseSchedule", + "URI", + ] + + # @return [OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :available_in, as: "availableIn", types: [ + "OpenActive::Models::Schema::AdministrativeArea", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/education_event.rb b/lib/openactive/models/schema/education_event.rb index 1718c537..f5e27c66 100644 --- a/lib/openactive/models/schema/education_event.rb +++ b/lib/openactive/models/schema/education_event.rb @@ -8,13 +8,6 @@ def type "schema:EducationEvent" end - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :teaches, as: "teaches", types: [ - "OpenActive::Models::Schema::DefinedTerm", - "string", - "URI", - ] - # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] define_property :educational_level, as: "educationalLevel", types: [ "URI", @@ -28,6 +21,13 @@ def type "OpenActive::Models::Schema::DefinedTerm", "URI", ] + + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :teaches, as: "teaches", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "string", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/educational_occupational_credential.rb b/lib/openactive/models/schema/educational_occupational_credential.rb index 65eaf5ce..f3cf714b 100644 --- a/lib/openactive/models/schema/educational_occupational_credential.rb +++ b/lib/openactive/models/schema/educational_occupational_credential.rb @@ -8,13 +8,6 @@ def type "schema:EducationalOccupationalCredential" end - # @return [ActiveSupport::Duration,URI,nil] - define_property :valid_for, as: "validFor", types: [ - "DateInterval", - "URI", - "null", - ] - # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] define_property :educational_level, as: "educationalLevel", types: [ "URI", @@ -22,6 +15,18 @@ def type "string", ] + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :recognized_by, as: "recognizedBy", types: [ + "OpenActive::Models::Schema::Organization", + "URI", + ] + + # @return [OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :valid_in, as: "validIn", types: [ + "OpenActive::Models::Schema::AdministrativeArea", + "URI", + ] + # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] define_property :credential_category, as: "credentialCategory", types: [ "URI", @@ -29,23 +34,18 @@ def type "string", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :recognized_by, as: "recognizedBy", types: [ - "OpenActive::Models::Schema::Organization", + # @return [ActiveSupport::Duration,URI,nil] + define_property :valid_for, as: "validFor", types: [ + "DateInterval", "URI", + "null", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] define_property :competency_required, as: "competencyRequired", types: [ - "string", - "OpenActive::Models::Schema::DefinedTerm", - "URI", - ] - - # @return [OpenActive::Models::Schema::AdministrativeArea,URI] - define_property :valid_in, as: "validIn", types: [ - "OpenActive::Models::Schema::AdministrativeArea", "URI", + "OpenActive::Models::Schema::DefinedTerm", + "string", ] end end diff --git a/lib/openactive/models/schema/educational_occupational_program.rb b/lib/openactive/models/schema/educational_occupational_program.rb index 9277bd88..808ae299 100644 --- a/lib/openactive/models/schema/educational_occupational_program.rb +++ b/lib/openactive/models/schema/educational_occupational_program.rb @@ -8,53 +8,32 @@ def type "schema:EducationalOccupationalProgram" end - # @return [OpenActive::Models::Schema::AlignmentObject,OpenActive::Models::Schema::Course,OpenActive::Models::Schema::EducationalOccupationalCredential,String,URI] - define_property :program_prerequisites, as: "programPrerequisites", types: [ - "OpenActive::Models::Schema::AlignmentObject", - "OpenActive::Models::Schema::Course", - "OpenActive::Models::Schema::EducationalOccupationalCredential", - "string", - "URI", - ] - - # @return [OpenActive::Models::Schema::Course,URI] - define_property :has_course, as: "hasCourse", types: [ - "OpenActive::Models::Schema::Course", - "URI", - ] - - # @return [DateTime,Date,nil] - define_property :start_date, as: "startDate", types: [ - "DateTime", + # @return [Date,nil] + define_property :application_start_date, as: "applicationStartDate", types: [ "Date", "null", ] - # @return [OpenActive::Models::Schema::MonetaryAmountDistribution,URI] - define_property :salary_upon_completion, as: "salaryUponCompletion", types: [ - "OpenActive::Models::Schema::MonetaryAmountDistribution", + # @return [String,OpenActive::Models::Schema::CategoryCode,URI] + define_property :occupational_category, as: "occupationalCategory", types: [ + "string", + "OpenActive::Models::Schema::CategoryCode", "URI", ] - # @return [BigDecimal,nil] - define_property :terms_per_year, as: "termsPerYear", types: [ - "Number", - "null", - ] - - # @return [OpenActive::Enums::Schema::DayOfWeek,nil] - define_property :day_of_week, as: "dayOfWeek", types: [ - "OpenActive::Enums::Schema::DayOfWeek", - "null", - ] - - # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] + # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI] define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", "OpenActive::Models::Schema::Demand", + "OpenActive::Models::Schema::Offer", "URI", ] + # @return [URI,String] + define_property :educational_program_mode, as: "educationalProgramMode", types: [ + "URI", + "string", + ] + # @return [int,OpenActive::Models::Schema::StructuredValue,URI,nil] define_property :typical_credits_per_term, as: "typicalCreditsPerTerm", types: [ "int", @@ -63,44 +42,37 @@ def type "null", ] - # @return [Date,nil] - define_property :application_start_date, as: "applicationStartDate", types: [ - "Date", + # @return [BigDecimal,nil] + define_property :terms_per_year, as: "termsPerYear", types: [ + "Number", "null", ] - # @return [String] - define_property :time_of_day, as: "timeOfDay", types: [ - "string", + # @return [int,nil] + define_property :maximum_enrollment, as: "maximumEnrollment", types: [ + "int", + "null", + ] + + # @return [OpenActive::Models::Schema::Course,URI] + define_property :has_course, as: "hasCourse", types: [ + "OpenActive::Models::Schema::Course", + "URI", ] # @return [Date,DateTime,nil] - define_property :end_date, as: "endDate", types: [ + define_property :start_date, as: "startDate", types: [ "Date", "DateTime", "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", - "URI", - ] - # @return [OpenActive::Models::Schema::MonetaryAmountDistribution,URI] define_property :training_salary, as: "trainingSalary", types: [ "OpenActive::Models::Schema::MonetaryAmountDistribution", "URI", ] - # @return [URI,OpenActive::Models::Schema::EducationalOccupationalCredential,String] - define_property :educational_credential_awarded, as: "educationalCredentialAwarded", types: [ - "URI", - "OpenActive::Models::Schema::EducationalOccupationalCredential", - "string", - ] - # @return [int,OpenActive::Models::Schema::StructuredValue,URI,nil] define_property :number_of_credits, as: "numberOfCredits", types: [ "int", @@ -109,63 +81,91 @@ def type "null", ] - # @return [ActiveSupport::Duration,URI,nil] - define_property :time_to_complete, as: "timeToComplete", types: [ - "DateInterval", + # @return [OpenActive::Models::Schema::MonetaryAmountDistribution,URI] + define_property :salary_upon_completion, as: "salaryUponCompletion", types: [ + "OpenActive::Models::Schema::MonetaryAmountDistribution", "URI", + ] + + # @return [String] + define_property :time_of_day, as: "timeOfDay", types: [ + "string", + ] + + # @return [Date,nil] + define_property :application_deadline, as: "applicationDeadline", types: [ + "Date", "null", ] - # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,String,URI] - define_property :occupational_credential_awarded, as: "occupationalCredentialAwarded", types: [ - "OpenActive::Models::Schema::EducationalOccupationalCredential", + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :program_type, as: "programType", types: [ + "OpenActive::Models::Schema::DefinedTerm", "string", "URI", ] + # @return [OpenActive::Enums::Schema::DayOfWeek,nil] + define_property :day_of_week, as: "dayOfWeek", types: [ + "OpenActive::Enums::Schema::DayOfWeek", + "null", + ] + # @return [ActiveSupport::Duration,URI,nil] - define_property :term_duration, as: "termDuration", types: [ + define_property :time_to_complete, as: "timeToComplete", types: [ "DateInterval", "URI", "null", ] - # @return [URI,String] - define_property :educational_program_mode, as: "educationalProgramMode", types: [ + # @return [ActiveSupport::Duration,URI,nil] + define_property :term_duration, as: "termDuration", types: [ + "DateInterval", "URI", - "string", + "null", ] # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :program_type, as: "programType", types: [ + define_property :financial_aid_eligible, as: "financialAidEligible", types: [ "string", "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [int,nil] - define_property :maximum_enrollment, as: "maximumEnrollment", types: [ - "int", - "null", + # @return [URI,String,OpenActive::Models::Schema::EducationalOccupationalCredential] + define_property :occupational_credential_awarded, as: "occupationalCredentialAwarded", types: [ + "URI", + "string", + "OpenActive::Models::Schema::EducationalOccupationalCredential", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :financial_aid_eligible, as: "financialAidEligible", types: [ - "string", - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :provider, as: "provider", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [Date,nil] - define_property :application_deadline, as: "applicationDeadline", types: [ + # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,URI,String] + define_property :educational_credential_awarded, as: "educationalCredentialAwarded", types: [ + "OpenActive::Models::Schema::EducationalOccupationalCredential", + "URI", + "string", + ] + + # @return [Date,DateTime,nil] + define_property :end_date, as: "endDate", types: [ "Date", + "DateTime", "null", ] - # @return [OpenActive::Models::Schema::CategoryCode,String,URI] - define_property :occupational_category, as: "occupationalCategory", types: [ - "OpenActive::Models::Schema::CategoryCode", + # @return [String,OpenActive::Models::Schema::EducationalOccupationalCredential,OpenActive::Models::Schema::AlignmentObject,OpenActive::Models::Schema::Course,URI] + define_property :program_prerequisites, as: "programPrerequisites", types: [ "string", + "OpenActive::Models::Schema::EducationalOccupationalCredential", + "OpenActive::Models::Schema::AlignmentObject", + "OpenActive::Models::Schema::Course", "URI", ] end diff --git a/lib/openactive/models/schema/employee_role.rb b/lib/openactive/models/schema/employee_role.rb index b7b017ac..199777a0 100644 --- a/lib/openactive/models/schema/employee_role.rb +++ b/lib/openactive/models/schema/employee_role.rb @@ -8,19 +8,19 @@ def type "schema:EmployeeRole" end - # @return [String] - define_property :salary_currency, as: "salaryCurrency", types: [ - "string", - ] - - # @return [BigDecimal,OpenActive::Models::Schema::PriceSpecification,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,BigDecimal,URI,nil] define_property :base_salary, as: "baseSalary", types: [ - "Number", - "OpenActive::Models::Schema::PriceSpecification", "OpenActive::Models::Schema::MonetaryAmount", + "OpenActive::Models::Schema::PriceSpecification", + "Number", "URI", "null", ] + + # @return [String] + define_property :salary_currency, as: "salaryCurrency", types: [ + "string", + ] end end end diff --git a/lib/openactive/models/schema/endorse_action.rb b/lib/openactive/models/schema/endorse_action.rb index 1844abdf..0f335c94 100644 --- a/lib/openactive/models/schema/endorse_action.rb +++ b/lib/openactive/models/schema/endorse_action.rb @@ -8,10 +8,10 @@ def type "schema:EndorseAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] define_property :endorsee, as: "endorsee", types: [ - "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/energy_consumption_details.rb b/lib/openactive/models/schema/energy_consumption_details.rb index 3c4381a2..8a7fc7e7 100644 --- a/lib/openactive/models/schema/energy_consumption_details.rb +++ b/lib/openactive/models/schema/energy_consumption_details.rb @@ -8,6 +8,12 @@ def type "schema:EnergyConsumptionDetails" end + # @return [OpenActive::Models::Schema::EUEnergyEfficiencyEnumeration,URI] + define_property :energy_efficiency_scale_max, as: "energyEfficiencyScaleMax", types: [ + "OpenActive::Models::Schema::EUEnergyEfficiencyEnumeration", + "URI", + ] + # @return [OpenActive::Models::Schema::EUEnergyEfficiencyEnumeration,URI] define_property :energy_efficiency_scale_min, as: "energyEfficiencyScaleMin", types: [ "OpenActive::Models::Schema::EUEnergyEfficiencyEnumeration", @@ -19,12 +25,6 @@ def type "OpenActive::Enums::Schema::EnergyEfficiencyEnumeration", "null", ] - - # @return [OpenActive::Models::Schema::EUEnergyEfficiencyEnumeration,URI] - define_property :energy_efficiency_scale_max, as: "energyEfficiencyScaleMax", types: [ - "OpenActive::Models::Schema::EUEnergyEfficiencyEnumeration", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/engine_specification.rb b/lib/openactive/models/schema/engine_specification.rb index ecbbb39c..c9b3ce70 100644 --- a/lib/openactive/models/schema/engine_specification.rb +++ b/lib/openactive/models/schema/engine_specification.rb @@ -8,39 +8,39 @@ def type "schema:EngineSpecification" end - # @return [String,URI,OpenActive::Enums::Schema::QualitativeValue,nil] - define_property :fuel_type, as: "fuelType", types: [ - "string", - "URI", - "OpenActive::Enums::Schema::QualitativeValue", - "null", - ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :torque, as: "torque", types: [ + define_property :engine_displacement, as: "engineDisplacement", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :engine_displacement, as: "engineDisplacement", types: [ + define_property :torque, as: "torque", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :engine_power, as: "enginePower", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [URI,String,OpenActive::Enums::Schema::QualitativeValue,nil] + define_property :engine_type, as: "engineType", types: [ "URI", + "string", + "OpenActive::Enums::Schema::QualitativeValue", + "null", ] # @return [OpenActive::Enums::Schema::QualitativeValue,URI,String,nil] - define_property :engine_type, as: "engineType", types: [ + define_property :fuel_type, as: "fuelType", types: [ "OpenActive::Enums::Schema::QualitativeValue", "URI", "string", "null", ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :engine_power, as: "enginePower", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/entry_point.rb b/lib/openactive/models/schema/entry_point.rb index 77dd81a0..a565c598 100644 --- a/lib/openactive/models/schema/entry_point.rb +++ b/lib/openactive/models/schema/entry_point.rb @@ -8,10 +8,19 @@ def type "schema:EntryPoint" end - # @return [OpenActive::Models::Schema::SoftwareApplication,URI] - define_property :action_application, as: "actionApplication", types: [ - "OpenActive::Models::Schema::SoftwareApplication", - "URI", + # @return [String] + define_property :content_type, as: "contentType", types: [ + "string", + ] + + # @return [String] + define_property :encoding_type, as: "encodingType", types: [ + "string", + ] + + # @return [String] + define_property :http_method, as: "httpMethod", types: [ + "string", ] # @return [OpenActive::Models::Schema::SoftwareApplication,URI] @@ -20,33 +29,24 @@ def type "URI", ] - # @return [String,URI,OpenActive::Enums::Schema::DigitalPlatformEnumeration,nil] + # @return [URI,String,OpenActive::Enums::Schema::DigitalPlatformEnumeration,nil] define_property :action_platform, as: "actionPlatform", types: [ - "string", "URI", + "string", "OpenActive::Enums::Schema::DigitalPlatformEnumeration", "null", ] - # @return [String] - define_property :http_method, as: "httpMethod", types: [ - "string", + # @return [OpenActive::Models::Schema::SoftwareApplication,URI] + define_property :action_application, as: "actionApplication", types: [ + "OpenActive::Models::Schema::SoftwareApplication", + "URI", ] # @return [String] define_property :url_template, as: "urlTemplate", types: [ "string", ] - - # @return [String] - define_property :encoding_type, as: "encodingType", types: [ - "string", - ] - - # @return [String] - define_property :content_type, as: "contentType", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/enumeration.rb b/lib/openactive/models/schema/enumeration.rb index 3875d909..699c3418 100644 --- a/lib/openactive/models/schema/enumeration.rb +++ b/lib/openactive/models/schema/enumeration.rb @@ -8,11 +8,11 @@ def type "schema:Enumeration" end - # @return [OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::Class,OpenActive::Enums::PropertyEnumeration,URI,nil] + # @return [OpenActive::Enums::PropertyEnumeration,OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::Class,URI,nil] define_property :superseded_by, as: "supersededBy", types: [ + "OpenActive::Enums::PropertyEnumeration", "OpenActive::Models::Schema::Enumeration", "OpenActive::Models::Schema::Class", - "OpenActive::Enums::PropertyEnumeration", "URI", "null", ] diff --git a/lib/openactive/models/schema/episode.rb b/lib/openactive/models/schema/episode.rb index 2a00000a..03a1cb37 100644 --- a/lib/openactive/models/schema/episode.rb +++ b/lib/openactive/models/schema/episode.rb @@ -8,21 +8,21 @@ def type "schema:Episode" end - # @return [int,String,nil] + # @return [String,int,nil] define_property :episode_number, as: "episodeNumber", types: [ - "int", "string", + "int", "null", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::CreativeWorkSeries,URI] + define_property :part_of_series, as: "partOfSeries", types: [ + "OpenActive::Models::Schema::CreativeWorkSeries", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ + define_property :actors, as: "actors", types: [ "OpenActive::Models::Schema::Person", "URI", ] @@ -33,17 +33,23 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::CreativeWorkSeries,URI] - define_property :part_of_series, as: "partOfSeries", types: [ - "OpenActive::Models::Schema::CreativeWorkSeries", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :production_company, as: "productionCompany", types: [ + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [ActiveSupport::Duration,URI,nil] - define_property :duration, as: "duration", types: [ - "DateInterval", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] + define_property :music_by, as: "musicBy", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::MusicGroup", + "URI", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :directors, as: "directors", types: [ + "OpenActive::Models::Schema::Person", "URI", - "null", ] # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] @@ -52,27 +58,21 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :production_company, as: "productionCompany", types: [ - "OpenActive::Models::Schema::Organization", + # @return [ActiveSupport::Duration,URI,nil] + define_property :duration, as: "duration", types: [ + "DateInterval", "URI", + "null", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] - define_property :music_by, as: "musicBy", types: [ + define_property :director, as: "director", types: [ "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::MusicGroup", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/event.rb b/lib/openactive/models/schema/event.rb index 06144d7b..bdab8e3a 100644 --- a/lib/openactive/models/schema/event.rb +++ b/lib/openactive/models/schema/event.rb @@ -14,105 +14,135 @@ def type "URI", ] - # @return [OpenActive::Enums::Schema::EventAttendanceModeEnumeration,nil] - define_property :event_attendance_mode, as: "eventAttendanceMode", types: [ - "OpenActive::Enums::Schema::EventAttendanceModeEnumeration", + # @return [Boolean,nil] + define_property :is_accessible_for_free, as: "isAccessibleForFree", types: [ + "bool", "null", ] - # @return [OpenActive::Models::Schema::Review,URI] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", + # @return [int,nil] + define_property :maximum_physical_attendee_capacity, as: "maximumPhysicalAttendeeCapacity", types: [ + "int", + "null", + ] + + # @return [OpenActive::Models::Schema::PostalAddress,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,String,URI] + define_property :location, as: "location", types: [ + "OpenActive::Models::Schema::PostalAddress", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::VirtualLocation", + "string", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :translator, as: "translator", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :work_featured, as: "workFeatured", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [DateTime,Date,nil] - define_property :start_date, as: "startDate", types: [ - "DateTime", - "Date", - "null", + # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI] + define_property :offers, as: "offers", types: [ + "OpenActive::Models::Schema::Demand", + "OpenActive::Models::Schema::Offer", + "URI", ] # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :composer, as: "composer", types: [ + define_property :contributor, as: "contributor", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [int,nil] - define_property :maximum_attendee_capacity, as: "maximumAttendeeCapacity", types: [ - "int", - "null", + # @return [String,OpenActive::Models::Schema::Language,URI] + define_property :in_language, as: "inLanguage", types: [ + "string", + "OpenActive::Models::Schema::Language", + "URI", ] - # @return [int,nil] - define_property :maximum_virtual_attendee_capacity, as: "maximumVirtualAttendeeCapacity", types: [ - "int", - "null", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :organizer, as: "organizer", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :translator, as: "translator", types: [ + "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Grant,URI] - define_property :funding, as: "funding", types: [ - "OpenActive::Models::Schema::Grant", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :attendee, as: "attendee", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] define_property :keywords, as: "keywords", types: [ - "OpenActive::Models::Schema::DefinedTerm", "string", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [OpenActive::Models::Schema::Audience,URI] - define_property :audience, as: "audience", types: [ - "OpenActive::Models::Schema::Audience", + # @return [OpenActive::Models::Schema::AggregateRating,URI] + define_property :aggregate_rating, as: "aggregateRating", types: [ + "OpenActive::Models::Schema::AggregateRating", "URI", ] - # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] - define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", - "OpenActive::Models::Schema::Demand", - "URI", + # @return [Date,DateTime,nil] + define_property :start_date, as: "startDate", types: [ + "Date", + "DateTime", + "null", + ] + + # @return [int,nil] + define_property :remaining_attendee_capacity, as: "remainingAttendeeCapacity", types: [ + "int", + "null", + ] + + # @return [int,nil] + define_property :maximum_attendee_capacity, as: "maximumAttendeeCapacity", types: [ + "int", + "null", ] # @return [OpenActive::Models::Schema::Event,URI] - define_property :sub_event, as: "subEvent", types: [ + define_property :sub_events, as: "subEvents", types: [ "OpenActive::Models::Schema::Event", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :sponsor, as: "sponsor", types: [ + "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] + # @return [String] + define_property :typical_age_range, as: "typicalAgeRange", types: [ + "string", + ] + # @return [OpenActive::Enums::Schema::EventStatusType,nil] define_property :event_status, as: "eventStatus", types: [ "OpenActive::Enums::Schema::EventStatusType", "null", ] - # @return [Date,DateTime,nil] - define_property :end_date, as: "endDate", types: [ - "Date", + # @return [DateTime,Time,nil] + define_property :door_time, as: "doorTime", types: [ "DateTime", + "Time", "null", ] @@ -123,108 +153,73 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :performer, as: "performer", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :about, as: "about", types: [ + "OpenActive::Models::Schema::Thing", "URI", ] - # @return [OpenActive::Models::Schema::AggregateRating,URI] - define_property :aggregate_rating, as: "aggregateRating", types: [ - "OpenActive::Models::Schema::AggregateRating", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :composer, as: "composer", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [String] - define_property :typical_age_range, as: "typicalAgeRange", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::PostalAddress,String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,URI] - define_property :location, as: "location", types: [ - "OpenActive::Models::Schema::PostalAddress", - "string", - "OpenActive::Models::Schema::Place", - "OpenActive::Models::Schema::VirtualLocation", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :work_performed, as: "workPerformed", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] define_property :performers, as: "performers", types: [ - "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [ActiveSupport::Duration,URI,nil] - define_property :duration, as: "duration", types: [ - "DateInterval", - "URI", + # @return [int,nil] + define_property :maximum_virtual_attendee_capacity, as: "maximumVirtualAttendeeCapacity", types: [ + "int", "null", ] # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :organizer, as: "organizer", types: [ + define_property :attendees, as: "attendees", types: [ "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :sponsor, as: "sponsor", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [Date,nil] - define_property :previous_start_date, as: "previousStartDate", types: [ - "Date", - "null", - ] - - # @return [Boolean,nil] - define_property :is_accessible_for_free, as: "isAccessibleForFree", types: [ - "bool", - "null", - ] - - # @return [int,nil] - define_property :remaining_attendee_capacity, as: "remainingAttendeeCapacity", types: [ - "int", - "null", - ] - - # @return [OpenActive::Models::Schema::Event,URI] - define_property :sub_events, as: "subEvents", types: [ - "OpenActive::Models::Schema::Event", + # @return [OpenActive::Models::Schema::Grant,URI] + define_property :funding, as: "funding", types: [ + "OpenActive::Models::Schema::Grant", "URI", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :work_performed, as: "workPerformed", types: [ - "OpenActive::Models::Schema::CreativeWork", + # @return [ActiveSupport::Duration,URI,nil] + define_property :duration, as: "duration", types: [ + "DateInterval", "URI", + "null", ] - # @return [Time,DateTime,nil] - define_property :door_time, as: "doorTime", types: [ - "Time", - "DateTime", + # @return [OpenActive::Enums::Schema::EventAttendanceModeEnumeration,nil] + define_property :event_attendance_mode, as: "eventAttendanceMode", types: [ + "OpenActive::Enums::Schema::EventAttendanceModeEnumeration", "null", ] - # @return [String,OpenActive::Models::Schema::Language,URI] - define_property :in_language, as: "inLanguage", types: [ - "string", - "OpenActive::Models::Schema::Language", + # @return [OpenActive::Models::Schema::Schedule,URI] + define_property :event_schedule, as: "eventSchedule", types: [ + "OpenActive::Models::Schema::Schedule", "URI", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :about, as: "about", types: [ - "OpenActive::Models::Schema::Thing", + # @return [OpenActive::Models::Schema::Audience,URI] + define_property :audience, as: "audience", types: [ + "OpenActive::Models::Schema::Audience", "URI", ] @@ -234,44 +229,49 @@ def type "URI", ] - # @return [int,nil] - define_property :maximum_physical_attendee_capacity, as: "maximumPhysicalAttendeeCapacity", types: [ - "int", - "null", - ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :attendee, as: "attendee", types: [ + define_property :performer, as: "performer", types: [ "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :work_featured, as: "workFeatured", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", + # @return [Date,nil] + define_property :previous_start_date, as: "previousStartDate", types: [ + "Date", + "null", ] - # @return [OpenActive::Models::Schema::Schedule,URI] - define_property :event_schedule, as: "eventSchedule", types: [ - "OpenActive::Models::Schema::Schedule", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :contributor, as: "contributor", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :director, as: "director", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :attendees, as: "attendees", types: [ + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", "URI", ] + + # @return [OpenActive::Models::Schema::Event,URI] + define_property :sub_event, as: "subEvent", types: [ + "OpenActive::Models::Schema::Event", + "URI", + ] + + # @return [Date,DateTime,nil] + define_property :end_date, as: "endDate", types: [ + "Date", + "DateTime", + "null", + ] end end end diff --git a/lib/openactive/models/schema/exchange_rate_specification.rb b/lib/openactive/models/schema/exchange_rate_specification.rb index da4b6b07..810ae25b 100644 --- a/lib/openactive/models/schema/exchange_rate_specification.rb +++ b/lib/openactive/models/schema/exchange_rate_specification.rb @@ -14,18 +14,18 @@ def type "URI", ] - # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + # @return [String] + define_property :currency, as: "currency", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] define_property :exchange_rate_spread, as: "exchangeRateSpread", types: [ - "Number", "OpenActive::Models::Schema::MonetaryAmount", + "Number", "URI", "null", ] - - # @return [String] - define_property :currency, as: "currency", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/exercise_action.rb b/lib/openactive/models/schema/exercise_action.rb index 85b6be47..592d64ea 100644 --- a/lib/openactive/models/schema/exercise_action.rb +++ b/lib/openactive/models/schema/exercise_action.rb @@ -8,33 +8,21 @@ def type "schema:ExerciseAction" end - # @return [OpenActive::Models::Schema::SportsTeam,URI] - define_property :sports_team, as: "sportsTeam", types: [ - "OpenActive::Models::Schema::SportsTeam", - "URI", - ] - - # @return [OpenActive::Models::Schema::Place,URI] - define_property :course, as: "course", types: [ - "OpenActive::Models::Schema::Place", - "URI", - ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :from_location, as: "fromLocation", types: [ + define_property :to_location, as: "toLocation", types: [ "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::Diet,URI] - define_property :diet, as: "diet", types: [ - "OpenActive::Models::Schema::Diet", + # @return [OpenActive::Models::Schema::ExercisePlan,URI] + define_property :exercise_plan, as: "exercisePlan", types: [ + "OpenActive::Models::Schema::ExercisePlan", "URI", ] - # @return [OpenActive::Models::Schema::SportsActivityLocation,URI] - define_property :sports_activity_location, as: "sportsActivityLocation", types: [ - "OpenActive::Models::Schema::SportsActivityLocation", + # @return [OpenActive::Models::Schema::SportsTeam,URI] + define_property :sports_team, as: "sportsTeam", types: [ + "OpenActive::Models::Schema::SportsTeam", "URI", ] @@ -44,21 +32,32 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::ExercisePlan,URI] - define_property :exercise_plan, as: "exercisePlan", types: [ - "OpenActive::Models::Schema::ExercisePlan", + # @return [String] + define_property :exercise_type, as: "exerciseType", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::Diet,URI] + define_property :exercise_related_diet, as: "exerciseRelatedDiet", types: [ + "OpenActive::Models::Schema::Diet", "URI", ] - # @return [OpenActive::Models::Schema::SportsEvent,URI] - define_property :sports_event, as: "sportsEvent", types: [ - "OpenActive::Models::Schema::SportsEvent", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :exercise_course, as: "exerciseCourse", types: [ + "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::Diet,URI] - define_property :exercise_related_diet, as: "exerciseRelatedDiet", types: [ - "OpenActive::Models::Schema::Diet", + # @return [OpenActive::Models::Schema::SportsActivityLocation,URI] + define_property :sports_activity_location, as: "sportsActivityLocation", types: [ + "OpenActive::Models::Schema::SportsActivityLocation", + "URI", + ] + + # @return [OpenActive::Models::Schema::Place,URI] + define_property :from_location, as: "fromLocation", types: [ + "OpenActive::Models::Schema::Place", "URI", ] @@ -68,21 +67,22 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :exercise_course, as: "exerciseCourse", types: [ - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::SportsEvent,URI] + define_property :sports_event, as: "sportsEvent", types: [ + "OpenActive::Models::Schema::SportsEvent", "URI", ] # @return [OpenActive::Models::Schema::Place,URI] - define_property :to_location, as: "toLocation", types: [ + define_property :course, as: "course", types: [ "OpenActive::Models::Schema::Place", "URI", ] - # @return [String] - define_property :exercise_type, as: "exerciseType", types: [ - "string", + # @return [OpenActive::Models::Schema::Diet,URI] + define_property :diet, as: "diet", types: [ + "OpenActive::Models::Schema::Diet", + "URI", ] end end diff --git a/lib/openactive/models/schema/exercise_plan.rb b/lib/openactive/models/schema/exercise_plan.rb index 341c1353..468552b6 100644 --- a/lib/openactive/models/schema/exercise_plan.rb +++ b/lib/openactive/models/schema/exercise_plan.rb @@ -1,26 +1,24 @@ module OpenActive module Models module Schema - class ExercisePlan < ::OpenActive::Models::Schema::CreativeWork + class ExercisePlan < ::OpenActive::Models::Schema::PhysicalActivity # @!attribute type # @return [String] def type "schema:ExercisePlan" end - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] define_property :repetitions, as: "repetitions", types: [ - "Number", "OpenActive::Models::Schema::QuantitativeValue", + "Number", "URI", "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI] - define_property :intensity, as: "intensity", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String] + define_property :exercise_type, as: "exerciseType", types: [ "string", - "URI", ] # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Energy,URI] @@ -30,25 +28,25 @@ def type "URI", ] - # @return [ActiveSupport::Duration,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :activity_duration, as: "activityDuration", types: [ - "DateInterval", + # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI] + define_property :intensity, as: "intensity", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "string", "URI", - "null", ] - # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :rest_periods, as: "restPeriods", types: [ - "string", + # @return [OpenActive::Models::Schema::QuantitativeValue,ActiveSupport::Duration,URI,nil] + define_property :activity_duration, as: "activityDuration", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "DateInterval", "URI", + "null", ] - # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] + # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI] define_property :activity_frequency, as: "activityFrequency", types: [ - "string", "OpenActive::Models::Schema::QuantitativeValue", + "string", "URI", ] @@ -57,9 +55,11 @@ def type "string", ] - # @return [String] - define_property :exercise_type, as: "exerciseType", types: [ + # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :rest_periods, as: "restPeriods", types: [ "string", + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] end end diff --git a/lib/openactive/models/schema/financial_product.rb b/lib/openactive/models/schema/financial_product.rb index c14d27ab..632745fc 100644 --- a/lib/openactive/models/schema/financial_product.rb +++ b/lib/openactive/models/schema/financial_product.rb @@ -8,22 +8,22 @@ def type "schema:FinancialProduct" end - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :annual_percentage_rate, as: "annualPercentageRate", types: [ - "Number", + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] + define_property :interest_rate, as: "interestRate", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "Number", "URI", "null", ] - # @return [URI,String] + # @return [String,URI] define_property :fees_and_commissions_specification, as: "feesAndCommissionsSpecification", types: [ - "URI", "string", + "URI", ] # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :interest_rate, as: "interestRate", types: [ + define_property :annual_percentage_rate, as: "annualPercentageRate", types: [ "Number", "OpenActive::Models::Schema::QuantitativeValue", "URI", diff --git a/lib/openactive/models/schema/financial_service.rb b/lib/openactive/models/schema/financial_service.rb index 156f27c0..258e0cbf 100644 --- a/lib/openactive/models/schema/financial_service.rb +++ b/lib/openactive/models/schema/financial_service.rb @@ -8,10 +8,10 @@ def type "schema:FinancialService" end - # @return [URI,String] + # @return [String,URI] define_property :fees_and_commissions_specification, as: "feesAndCommissionsSpecification", types: [ - "URI", "string", + "URI", ] end end diff --git a/lib/openactive/models/schema/flight.rb b/lib/openactive/models/schema/flight.rb index 8bd2bfb1..9d24ba97 100644 --- a/lib/openactive/models/schema/flight.rb +++ b/lib/openactive/models/schema/flight.rb @@ -8,26 +8,14 @@ def type "schema:Flight" end - # @return [OpenActive::Models::Schema::Distance,String,URI] - define_property :flight_distance, as: "flightDistance", types: [ - "OpenActive::Models::Schema::Distance", + # @return [ActiveSupport::Duration,String,URI,nil] + define_property :estimated_flight_duration, as: "estimatedFlightDuration", types: [ + "DateInterval", "string", "URI", - ] - - # @return [DateTime,nil] - define_property :web_checkin_time, as: "webCheckinTime", types: [ - "DateTime", "null", ] - # @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", @@ -35,14 +23,13 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Airport,URI] - define_property :arrival_airport, as: "arrivalAirport", types: [ - "OpenActive::Models::Schema::Airport", - "URI", + # @return [String] + define_property :flight_number, as: "flightNumber", types: [ + "string", ] # @return [String] - define_property :arrival_terminal, as: "arrivalTerminal", types: [ + define_property :departure_gate, as: "departureGate", types: [ "string", ] @@ -52,13 +39,26 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::Vehicle,String,URI] + define_property :aircraft, as: "aircraft", types: [ + "OpenActive::Models::Schema::Vehicle", + "string", + "URI", + ] + # @return [String] define_property :arrival_gate, as: "arrivalGate", types: [ "string", ] + # @return [OpenActive::Models::Schema::Airport,URI] + define_property :arrival_airport, as: "arrivalAirport", types: [ + "OpenActive::Models::Schema::Airport", + "URI", + ] + # @return [String] - define_property :departure_terminal, as: "departureTerminal", types: [ + define_property :meal_service, as: "mealService", types: [ "string", ] @@ -68,27 +68,27 @@ def type "URI", ] - # @return [String,ActiveSupport::Duration,URI,nil] - define_property :estimated_flight_duration, as: "estimatedFlightDuration", types: [ + # @return [String] + define_property :departure_terminal, as: "departureTerminal", types: [ "string", - "DateInterval", - "URI", - "null", ] # @return [String] - define_property :departure_gate, as: "departureGate", types: [ + define_property :arrival_terminal, as: "arrivalTerminal", types: [ "string", ] - # @return [String] - define_property :flight_number, as: "flightNumber", types: [ + # @return [String,OpenActive::Models::Schema::Distance,URI] + define_property :flight_distance, as: "flightDistance", types: [ "string", + "OpenActive::Models::Schema::Distance", + "URI", ] - # @return [String] - define_property :meal_service, as: "mealService", types: [ - "string", + # @return [DateTime,nil] + define_property :web_checkin_time, as: "webCheckinTime", types: [ + "DateTime", + "null", ] # @return [OpenActive::Enums::Schema::BoardingPolicyType,nil] diff --git a/lib/openactive/models/schema/flight_reservation.rb b/lib/openactive/models/schema/flight_reservation.rb index 76c3d102..579d30fc 100644 --- a/lib/openactive/models/schema/flight_reservation.rb +++ b/lib/openactive/models/schema/flight_reservation.rb @@ -8,13 +8,6 @@ def type "schema:FlightReservation" end - # @return [OpenActive::Enums::Schema::QualitativeValue,String,nil] - define_property :passenger_priority_status, as: "passengerPriorityStatus", types: [ - "OpenActive::Enums::Schema::QualitativeValue", - "string", - "null", - ] - # @return [String] define_property :boarding_group, as: "boardingGroup", types: [ "string", @@ -25,6 +18,13 @@ def type "string", ] + # @return [String,OpenActive::Enums::Schema::QualitativeValue,nil] + define_property :passenger_priority_status, as: "passengerPriorityStatus", types: [ + "string", + "OpenActive::Enums::Schema::QualitativeValue", + "null", + ] + # @return [String] define_property :passenger_sequence_number, as: "passengerSequenceNumber", types: [ "string", diff --git a/lib/openactive/models/schema/floor_plan.rb b/lib/openactive/models/schema/floor_plan.rb index b1eb18d7..b52514ff 100644 --- a/lib/openactive/models/schema/floor_plan.rb +++ b/lib/openactive/models/schema/floor_plan.rb @@ -8,12 +8,6 @@ def type "schema:FloorPlan" end - # @return [OpenActive::Models::Schema::Accommodation,URI] - define_property :is_plan_for_apartment, as: "isPlanForApartment", types: [ - "OpenActive::Models::Schema::Accommodation", - "URI", - ] - # @return [int,nil] define_property :number_of_bathrooms_total, as: "numberOfBathroomsTotal", types: [ "int", @@ -28,29 +22,46 @@ def type "null", ] + # @return [String,Boolean,nil] + define_property :pets_allowed, as: "petsAllowed", types: [ + "string", + "bool", + "null", + ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :number_of_accommodation_units, as: "numberOfAccommodationUnits", types: [ + define_property :floor_size, as: "floorSize", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] + # @return [URI,OpenActive::Models::Schema::ImageObject] + define_property :layout_image, as: "layoutImage", types: [ + "URI", + "OpenActive::Models::Schema::ImageObject", + ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :number_of_available_accommodation_units, as: "numberOfAvailableAccommodationUnits", types: [ + define_property :number_of_accommodation_units, as: "numberOfAccommodationUnits", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] + # @return [OpenActive::Models::Schema::Accommodation,URI] + define_property :is_plan_for_apartment, as: "isPlanForApartment", types: [ + "OpenActive::Models::Schema::Accommodation", + "URI", + ] + # @return [OpenActive::Models::Schema::LocationFeatureSpecification,URI] define_property :amenity_feature, as: "amenityFeature", types: [ "OpenActive::Models::Schema::LocationFeatureSpecification", "URI", ] - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :number_of_bedrooms, as: "numberOfBedrooms", types: [ + # @return [BigDecimal,nil] + define_property :number_of_full_bathrooms, as: "numberOfFullBathrooms", types: [ "Number", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", "null", ] @@ -61,28 +72,17 @@ def type ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :floor_size, as: "floorSize", types: [ + define_property :number_of_available_accommodation_units, as: "numberOfAvailableAccommodationUnits", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [BigDecimal,nil] - define_property :number_of_full_bathrooms, as: "numberOfFullBathrooms", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] + define_property :number_of_bedrooms, as: "numberOfBedrooms", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "Number", - "null", - ] - - # @return [String,Boolean,nil] - define_property :pets_allowed, as: "petsAllowed", types: [ - "string", - "bool", - "null", - ] - - # @return [OpenActive::Models::Schema::ImageObject,URI] - define_property :layout_image, as: "layoutImage", types: [ - "OpenActive::Models::Schema::ImageObject", "URI", + "null", ] end end diff --git a/lib/openactive/models/schema/follow_action.rb b/lib/openactive/models/schema/follow_action.rb index c5e8b9db..c54532e7 100644 --- a/lib/openactive/models/schema/follow_action.rb +++ b/lib/openactive/models/schema/follow_action.rb @@ -8,10 +8,10 @@ def type "schema:FollowAction" end - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :followee, as: "followee", types: [ - "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] end diff --git a/lib/openactive/models/schema/food_establishment.rb b/lib/openactive/models/schema/food_establishment.rb index 6295a855..31dec994 100644 --- a/lib/openactive/models/schema/food_establishment.rb +++ b/lib/openactive/models/schema/food_establishment.rb @@ -8,14 +8,10 @@ def type "schema:FoodEstablishment" end - # @return [OpenActive::Models::Schema::Rating,URI] - define_property :star_rating, as: "starRating", types: [ - "OpenActive::Models::Schema::Rating", + # @return [URI,OpenActive::Models::Schema::Menu,String] + define_property :has_menu, as: "hasMenu", types: [ "URI", - ] - - # @return [String] - define_property :serves_cuisine, as: "servesCuisine", types: [ + "OpenActive::Models::Schema::Menu", "string", ] @@ -27,11 +23,15 @@ def type "null", ] - # @return [URI,String,OpenActive::Models::Schema::Menu] - define_property :has_menu, as: "hasMenu", types: [ + # @return [OpenActive::Models::Schema::Rating,URI] + define_property :star_rating, as: "starRating", types: [ + "OpenActive::Models::Schema::Rating", "URI", + ] + + # @return [String] + define_property :serves_cuisine, as: "servesCuisine", types: [ "string", - "OpenActive::Models::Schema::Menu", ] # @return [URI,OpenActive::Models::Schema::Menu,String] diff --git a/lib/openactive/models/schema/food_establishment_reservation.rb b/lib/openactive/models/schema/food_establishment_reservation.rb index 11aaf745..893cd1d1 100644 --- a/lib/openactive/models/schema/food_establishment_reservation.rb +++ b/lib/openactive/models/schema/food_establishment_reservation.rb @@ -8,11 +8,10 @@ def type "schema:FoodEstablishmentReservation" end - # @return [int,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :party_size, as: "partySize", types: [ - "int", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [DateTime,Time,nil] + define_property :end_time, as: "endTime", types: [ + "DateTime", + "Time", "null", ] @@ -23,10 +22,11 @@ def type "null", ] - # @return [DateTime,Time,nil] - define_property :end_time, as: "endTime", types: [ - "DateTime", - "Time", + # @return [OpenActive::Models::Schema::QuantitativeValue,int,URI,nil] + define_property :party_size, as: "partySize", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "int", + "URI", "null", ] end diff --git a/lib/openactive/models/schema/game.rb b/lib/openactive/models/schema/game.rb index 2b7b2158..ef6ec8dc 100644 --- a/lib/openactive/models/schema/game.rb +++ b/lib/openactive/models/schema/game.rb @@ -14,8 +14,15 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::Place,URI,OpenActive::Models::Schema::PostalAddress] + define_property :game_location, as: "gameLocation", types: [ + "OpenActive::Models::Schema::Place", + "URI", + "OpenActive::Models::Schema::PostalAddress", + ] + # @return [OpenActive::Models::Schema::Thing,URI] - define_property :game_item, as: "gameItem", types: [ + define_property :quest, as: "quest", types: [ "OpenActive::Models::Schema::Thing", "URI", ] @@ -27,17 +34,10 @@ def type ] # @return [OpenActive::Models::Schema::Thing,URI] - define_property :quest, as: "quest", types: [ + define_property :game_item, as: "gameItem", types: [ "OpenActive::Models::Schema::Thing", "URI", ] - - # @return [OpenActive::Models::Schema::Place,URI,OpenActive::Models::Schema::PostalAddress] - define_property :game_location, as: "gameLocation", types: [ - "OpenActive::Models::Schema::Place", - "URI", - "OpenActive::Models::Schema::PostalAddress", - ] end end end diff --git a/lib/openactive/models/schema/game_server.rb b/lib/openactive/models/schema/game_server.rb index 9a13d1e3..b902ae8a 100644 --- a/lib/openactive/models/schema/game_server.rb +++ b/lib/openactive/models/schema/game_server.rb @@ -8,10 +8,10 @@ def type "schema:GameServer" end - # @return [OpenActive::Models::Schema::GameServerStatus,URI] - define_property :server_status, as: "serverStatus", types: [ - "OpenActive::Models::Schema::GameServerStatus", - "URI", + # @return [int,nil] + define_property :players_online, as: "playersOnline", types: [ + "int", + "null", ] # @return [OpenActive::Models::Schema::VideoGame,URI] @@ -20,10 +20,10 @@ def type "URI", ] - # @return [int,nil] - define_property :players_online, as: "playersOnline", types: [ - "int", - "null", + # @return [OpenActive::Models::Schema::GameServerStatus,URI] + define_property :server_status, as: "serverStatus", types: [ + "OpenActive::Models::Schema::GameServerStatus", + "URI", ] end end diff --git a/lib/openactive/models/schema/gene.rb b/lib/openactive/models/schema/gene.rb index 8bc35803..a1066b46 100644 --- a/lib/openactive/models/schema/gene.rb +++ b/lib/openactive/models/schema/gene.rb @@ -8,9 +8,12 @@ def type "schema:Gene" end - # @return [OpenActive::Models::Schema::Gene,URI] - define_property :alternative_of, as: "alternativeOf", types: [ - "OpenActive::Models::Schema::Gene", + # @return [OpenActive::Models::Schema::AnatomicalSystem,OpenActive::Models::Schema::BioChemEntity,OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :expressed_in, as: "expressedIn", types: [ + "OpenActive::Models::Schema::AnatomicalSystem", + "OpenActive::Models::Schema::BioChemEntity", + "OpenActive::Models::Schema::AnatomicalStructure", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] @@ -25,12 +28,9 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::BioChemEntity,OpenActive::Models::Schema::DefinedTerm,OpenActive::Models::Schema::AnatomicalSystem,URI] - define_property :expressed_in, as: "expressedIn", types: [ - "OpenActive::Models::Schema::AnatomicalStructure", - "OpenActive::Models::Schema::BioChemEntity", - "OpenActive::Models::Schema::DefinedTerm", - "OpenActive::Models::Schema::AnatomicalSystem", + # @return [OpenActive::Models::Schema::Gene,URI] + define_property :alternative_of, as: "alternativeOf", types: [ + "OpenActive::Models::Schema::Gene", "URI", ] end diff --git a/lib/openactive/models/schema/geo_circle.rb b/lib/openactive/models/schema/geo_circle.rb index bae3adb2..21bcc453 100644 --- a/lib/openactive/models/schema/geo_circle.rb +++ b/lib/openactive/models/schema/geo_circle.rb @@ -8,11 +8,11 @@ def type "schema:GeoCircle" end - # @return [BigDecimal,String,OpenActive::Models::Schema::Distance,URI,nil] + # @return [OpenActive::Models::Schema::Distance,BigDecimal,String,URI,nil] define_property :geo_radius, as: "geoRadius", types: [ + "OpenActive::Models::Schema::Distance", "Number", "string", - "OpenActive::Models::Schema::Distance", "URI", "null", ] diff --git a/lib/openactive/models/schema/geo_coordinates.rb b/lib/openactive/models/schema/geo_coordinates.rb index 7864f500..ea42aec2 100644 --- a/lib/openactive/models/schema/geo_coordinates.rb +++ b/lib/openactive/models/schema/geo_coordinates.rb @@ -8,6 +8,13 @@ def type "schema:GeoCoordinates" end + # @return [BigDecimal,String,nil] + define_property :latitude, as: "latitude", types: [ + "Number", + "string", + "null", + ] + # @return [OpenActive::Models::Schema::Country,String,URI] define_property :address_country, as: "addressCountry", types: [ "OpenActive::Models::Schema::Country", @@ -15,17 +22,10 @@ def type "URI", ] - # @return [String,BigDecimal,nil] - define_property :latitude, as: "latitude", types: [ - "string", - "Number", - "null", - ] - - # @return [String,OpenActive::Models::Schema::PostalAddress,URI] + # @return [OpenActive::Models::Schema::PostalAddress,String,URI] define_property :address, as: "address", types: [ - "string", "OpenActive::Models::Schema::PostalAddress", + "string", "URI", ] @@ -34,10 +34,10 @@ def type "string", ] - # @return [String,BigDecimal,nil] + # @return [BigDecimal,String,nil] define_property :elevation, as: "elevation", types: [ - "string", "Number", + "string", "null", ] diff --git a/lib/openactive/models/schema/geo_shape.rb b/lib/openactive/models/schema/geo_shape.rb index 040f6068..199e30ae 100644 --- a/lib/openactive/models/schema/geo_shape.rb +++ b/lib/openactive/models/schema/geo_shape.rb @@ -16,41 +16,41 @@ def type ] # @return [String] - define_property :circle, as: "circle", types: [ + define_property :box, as: "box", types: [ "string", ] - # @return [String] - define_property :line, as: "line", types: [ + # @return [OpenActive::Models::Schema::PostalAddress,String,URI] + define_property :address, as: "address", types: [ + "OpenActive::Models::Schema::PostalAddress", "string", + "URI", ] # @return [String] - define_property :polygon, as: "polygon", types: [ + define_property :postal_code, as: "postalCode", types: [ "string", ] - # @return [String,OpenActive::Models::Schema::PostalAddress,URI] - define_property :address, as: "address", types: [ + # @return [String] + define_property :line, as: "line", types: [ "string", - "OpenActive::Models::Schema::PostalAddress", - "URI", ] # @return [String] - define_property :postal_code, as: "postalCode", types: [ + define_property :circle, as: "circle", types: [ "string", ] - # @return [String,BigDecimal,nil] + # @return [BigDecimal,String,nil] define_property :elevation, as: "elevation", types: [ - "string", "Number", + "string", "null", ] # @return [String] - define_property :box, as: "box", types: [ + define_property :polygon, as: "polygon", types: [ "string", ] end diff --git a/lib/openactive/models/schema/geospatial_geometry.rb b/lib/openactive/models/schema/geospatial_geometry.rb index 30690ad9..d6304c80 100644 --- a/lib/openactive/models/schema/geospatial_geometry.rb +++ b/lib/openactive/models/schema/geospatial_geometry.rb @@ -8,50 +8,50 @@ def type "schema:GeospatialGeometry" end - # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] - define_property :geo_contains, as: "geoContains", types: [ - "OpenActive::Models::Schema::Place", - "OpenActive::Models::Schema::GeospatialGeometry", - "URI", - ] - # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_intersects, as: "geoIntersects", types: [ + define_property :geo_covers, as: "geoCovers", types: [ "OpenActive::Models::Schema::GeospatialGeometry", "OpenActive::Models::Schema::Place", "URI", ] # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] - define_property :geo_touches, as: "geoTouches", types: [ + define_property :geo_covered_by, as: "geoCoveredBy", types: [ "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] - define_property :geo_covered_by, as: "geoCoveredBy", types: [ + define_property :geo_crosses, as: "geoCrosses", types: [ "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] + # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] + define_property :geo_touches, as: "geoTouches", types: [ + "OpenActive::Models::Schema::GeospatialGeometry", + "OpenActive::Models::Schema::Place", + "URI", + ] + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] - define_property :geo_equals, as: "geoEquals", types: [ + define_property :geo_contains, as: "geoContains", types: [ "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] - # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_crosses, as: "geoCrosses", types: [ - "OpenActive::Models::Schema::GeospatialGeometry", + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] + define_property :geo_overlaps, as: "geoOverlaps", types: [ "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_covers, as: "geoCovers", types: [ + define_property :geo_intersects, as: "geoIntersects", types: [ "OpenActive::Models::Schema::GeospatialGeometry", "OpenActive::Models::Schema::Place", "URI", @@ -64,17 +64,17 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_disjoint, as: "geoDisjoint", types: [ - "OpenActive::Models::Schema::GeospatialGeometry", + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] + define_property :geo_equals, as: "geoEquals", types: [ "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] - # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_overlaps, as: "geoOverlaps", types: [ - "OpenActive::Models::Schema::GeospatialGeometry", + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] + define_property :geo_disjoint, as: "geoDisjoint", types: [ "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] end diff --git a/lib/openactive/models/schema/give_action.rb b/lib/openactive/models/schema/give_action.rb index 7ed70197..d1b158f8 100644 --- a/lib/openactive/models/schema/give_action.rb +++ b/lib/openactive/models/schema/give_action.rb @@ -8,12 +8,12 @@ def type "schema:GiveAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/government_service.rb b/lib/openactive/models/schema/government_service.rb index 157deca8..7d921ae7 100644 --- a/lib/openactive/models/schema/government_service.rb +++ b/lib/openactive/models/schema/government_service.rb @@ -8,10 +8,10 @@ def type "schema:GovernmentService" end - # @return [String,OpenActive::Models::Schema::AdministrativeArea,URI] + # @return [OpenActive::Models::Schema::AdministrativeArea,String,URI] define_property :jurisdiction, as: "jurisdiction", types: [ - "string", "OpenActive::Models::Schema::AdministrativeArea", + "string", "URI", ] diff --git a/lib/openactive/models/schema/grant.rb b/lib/openactive/models/schema/grant.rb index 7caa37f0..981d26f4 100644 --- a/lib/openactive/models/schema/grant.rb +++ b/lib/openactive/models/schema/grant.rb @@ -8,6 +8,13 @@ def type "schema:Grant" end + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :sponsor, as: "sponsor", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", + ] + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] define_property :funder, as: "funder", types: [ "OpenActive::Models::Schema::Organization", @@ -15,22 +22,15 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::Person,OpenActive::Models::Schema::BioChemEntity,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::MedicalEntity,OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::MedicalEntity,OpenActive::Models::Schema::BioChemEntity,URI] define_property :funded_item, as: "fundedItem", types: [ "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::CreativeWork", "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::BioChemEntity", "OpenActive::Models::Schema::Event", - "OpenActive::Models::Schema::MedicalEntity", - "OpenActive::Models::Schema::CreativeWork", - "OpenActive::Models::Schema::Organization", - "URI", - ] - - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :sponsor, as: "sponsor", types: [ "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::MedicalEntity", + "OpenActive::Models::Schema::BioChemEntity", "URI", ] end diff --git a/lib/openactive/models/schema/health_insurance_plan.rb b/lib/openactive/models/schema/health_insurance_plan.rb index c227f3b2..2efc2820 100644 --- a/lib/openactive/models/schema/health_insurance_plan.rb +++ b/lib/openactive/models/schema/health_insurance_plan.rb @@ -15,35 +15,35 @@ def type ] # @return [URI] - define_property :benefits_summary_url, as: "benefitsSummaryUrl", types: [ + define_property :health_plan_marketing_url, as: "healthPlanMarketingUrl", types: [ "URI", ] - # @return [String] - define_property :health_plan_drug_option, as: "healthPlanDrugOption", types: [ + # @return [URI,String] + define_property :uses_health_plan_id_standard, as: "usesHealthPlanIdStandard", types: [ + "URI", "string", ] + # @return [OpenActive::Models::Schema::ContactPoint,URI] + define_property :contact_point, as: "contactPoint", types: [ + "OpenActive::Models::Schema::ContactPoint", + "URI", + ] + # @return [String] define_property :health_plan_drug_tier, as: "healthPlanDrugTier", types: [ "string", ] # @return [String] - define_property :health_plan_id, as: "healthPlanId", types: [ + define_property :health_plan_drug_option, as: "healthPlanDrugOption", types: [ "string", ] - # @return [OpenActive::Models::Schema::ContactPoint,URI] - define_property :contact_point, as: "contactPoint", types: [ - "OpenActive::Models::Schema::ContactPoint", - "URI", - ] - - # @return [URI,String] - define_property :uses_health_plan_id_standard, as: "usesHealthPlanIdStandard", types: [ + # @return [URI] + define_property :benefits_summary_url, as: "benefitsSummaryUrl", types: [ "URI", - "string", ] # @return [OpenActive::Models::Schema::HealthPlanNetwork,URI] @@ -52,9 +52,9 @@ def type "URI", ] - # @return [URI] - define_property :health_plan_marketing_url, as: "healthPlanMarketingUrl", types: [ - "URI", + # @return [String] + define_property :health_plan_id, as: "healthPlanId", types: [ + "string", ] end end diff --git a/lib/openactive/models/schema/health_plan_cost_sharing_specification.rb b/lib/openactive/models/schema/health_plan_cost_sharing_specification.rb index ef6a8ec1..112ac2b4 100644 --- a/lib/openactive/models/schema/health_plan_cost_sharing_specification.rb +++ b/lib/openactive/models/schema/health_plan_cost_sharing_specification.rb @@ -8,32 +8,32 @@ def type "schema:HealthPlanCostSharingSpecification" end - # @return [BigDecimal,nil] - define_property :health_plan_coinsurance_rate, as: "healthPlanCoinsuranceRate", types: [ - "Number", - "null", - ] - # @return [String] define_property :health_plan_coinsurance_option, as: "healthPlanCoinsuranceOption", types: [ "string", ] - # @return [String] - define_property :health_plan_pharmacy_category, as: "healthPlanPharmacyCategory", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::PriceSpecification,URI] define_property :health_plan_copay, as: "healthPlanCopay", types: [ "OpenActive::Models::Schema::PriceSpecification", "URI", ] + # @return [BigDecimal,nil] + define_property :health_plan_coinsurance_rate, as: "healthPlanCoinsuranceRate", types: [ + "Number", + "null", + ] + # @return [String] define_property :health_plan_copay_option, as: "healthPlanCopayOption", types: [ "string", ] + + # @return [String] + define_property :health_plan_pharmacy_category, as: "healthPlanPharmacyCategory", types: [ + "string", + ] end end end diff --git a/lib/openactive/models/schema/health_plan_formulary.rb b/lib/openactive/models/schema/health_plan_formulary.rb index adca9f80..89a030b0 100644 --- a/lib/openactive/models/schema/health_plan_formulary.rb +++ b/lib/openactive/models/schema/health_plan_formulary.rb @@ -9,7 +9,7 @@ def type end # @return [Boolean,nil] - define_property :offers_prescription_by_mail, as: "offersPrescriptionByMail", types: [ + define_property :health_plan_cost_sharing, as: "healthPlanCostSharing", types: [ "bool", "null", ] @@ -20,7 +20,7 @@ def type ] # @return [Boolean,nil] - define_property :health_plan_cost_sharing, as: "healthPlanCostSharing", types: [ + define_property :offers_prescription_by_mail, as: "offersPrescriptionByMail", types: [ "bool", "null", ] diff --git a/lib/openactive/models/schema/health_plan_network.rb b/lib/openactive/models/schema/health_plan_network.rb index 78788d9e..f097ed29 100644 --- a/lib/openactive/models/schema/health_plan_network.rb +++ b/lib/openactive/models/schema/health_plan_network.rb @@ -8,11 +8,6 @@ def type "schema:HealthPlanNetwork" end - # @return [String] - define_property :health_plan_network_id, as: "healthPlanNetworkId", types: [ - "string", - ] - # @return [Boolean,nil] define_property :health_plan_cost_sharing, as: "healthPlanCostSharing", types: [ "bool", @@ -23,6 +18,11 @@ def type define_property :health_plan_network_tier, as: "healthPlanNetworkTier", types: [ "string", ] + + # @return [String] + define_property :health_plan_network_id, as: "healthPlanNetworkId", types: [ + "string", + ] end end end diff --git a/lib/openactive/models/schema/hospital.rb b/lib/openactive/models/schema/hospital.rb index d2540a0a..d847e086 100644 --- a/lib/openactive/models/schema/hospital.rb +++ b/lib/openactive/models/schema/hospital.rb @@ -1,18 +1,24 @@ module OpenActive module Models module Schema - class Hospital < ::OpenActive::Models::Schema::MedicalOrganization + class Hospital < ::OpenActive::Models::Schema::CivicStructure # @!attribute type # @return [String] def type "schema:Hospital" end - # @return [OpenActive::Models::Schema::MedicalTest,OpenActive::Models::Schema::MedicalProcedure,OpenActive::Models::Schema::MedicalTherapy,URI] + # @return [OpenActive::Models::Schema::MedicalTherapy,OpenActive::Models::Schema::MedicalProcedure,OpenActive::Models::Schema::MedicalTest,URI] define_property :available_service, as: "availableService", types: [ - "OpenActive::Models::Schema::MedicalTest", - "OpenActive::Models::Schema::MedicalProcedure", "OpenActive::Models::Schema::MedicalTherapy", + "OpenActive::Models::Schema::MedicalProcedure", + "OpenActive::Models::Schema::MedicalTest", + "URI", + ] + + # @return [OpenActive::Models::Schema::MedicalSpecialty,URI] + define_property :medical_specialty, as: "medicalSpecialty", types: [ + "OpenActive::Models::Schema::MedicalSpecialty", "URI", ] @@ -22,12 +28,6 @@ def type "OpenActive::Models::Schema::CDCPMDRecord", "URI", ] - - # @return [OpenActive::Models::Schema::MedicalSpecialty,URI] - define_property :medical_specialty, as: "medicalSpecialty", types: [ - "OpenActive::Models::Schema::MedicalSpecialty", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/hotel_room.rb b/lib/openactive/models/schema/hotel_room.rb index fcb16940..8116427f 100644 --- a/lib/openactive/models/schema/hotel_room.rb +++ b/lib/openactive/models/schema/hotel_room.rb @@ -8,19 +8,19 @@ def type "schema:HotelRoom" end - # @return [OpenActive::Models::Schema::BedDetails,String,OpenActive::Models::Schema::BedType,URI] - define_property :bed, as: "bed", types: [ - "OpenActive::Models::Schema::BedDetails", - "string", - "OpenActive::Models::Schema::BedType", - "URI", - ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] define_property :occupancy, as: "occupancy", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] + + # @return [OpenActive::Models::Schema::BedType,OpenActive::Models::Schema::BedDetails,String,URI] + define_property :bed, as: "bed", types: [ + "OpenActive::Models::Schema::BedType", + "OpenActive::Models::Schema::BedDetails", + "string", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/how_to.rb b/lib/openactive/models/schema/how_to.rb index 374e407f..1d11b03e 100644 --- a/lib/openactive/models/schema/how_to.rb +++ b/lib/openactive/models/schema/how_to.rb @@ -8,70 +8,70 @@ def type "schema:HowTo" end - # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :yield, as: "yield", types: [ - "string", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - - # @return [String,OpenActive::Models::Schema::MonetaryAmount,URI] - define_property :estimated_cost, as: "estimatedCost", types: [ + # @return [OpenActive::Models::Schema::HowToTool,String,URI] + define_property :tool, as: "tool", types: [ + "OpenActive::Models::Schema::HowToTool", "string", - "OpenActive::Models::Schema::MonetaryAmount", "URI", ] - # @return [OpenActive::Models::Schema::HowToSupply,String,URI] - define_property :supply, as: "supply", types: [ - "OpenActive::Models::Schema::HowToSupply", - "string", + # @return [ActiveSupport::Duration,URI,nil] + define_property :total_time, as: "totalTime", types: [ + "DateInterval", "URI", + "null", ] - # @return [OpenActive::Models::Schema::HowToStep,OpenActive::Models::Schema::HowToSection,String,OpenActive::Models::Schema::CreativeWork,URI] - define_property :step, as: "step", types: [ - "OpenActive::Models::Schema::HowToStep", - "OpenActive::Models::Schema::HowToSection", + # @return [String,OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::CreativeWork,URI] + define_property :steps, as: "steps", types: [ "string", + "OpenActive::Models::Schema::ItemList", "OpenActive::Models::Schema::CreativeWork", "URI", ] # @return [ActiveSupport::Duration,URI,nil] - define_property :total_time, as: "totalTime", types: [ + define_property :prep_time, as: "prepTime", types: [ "DateInterval", "URI", "null", ] - # @return [OpenActive::Models::Schema::HowToTool,String,URI] - define_property :tool, as: "tool", types: [ - "OpenActive::Models::Schema::HowToTool", + # @return [String,OpenActive::Models::Schema::HowToSupply,URI] + define_property :supply, as: "supply", types: [ "string", + "OpenActive::Models::Schema::HowToSupply", "URI", ] # @return [ActiveSupport::Duration,URI,nil] - define_property :prep_time, as: "prepTime", types: [ + define_property :perform_time, as: "performTime", types: [ "DateInterval", "URI", "null", ] - # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::CreativeWork,String,URI] - define_property :steps, as: "steps", types: [ - "OpenActive::Models::Schema::ItemList", + # @return [String,OpenActive::Models::Schema::MonetaryAmount,URI] + define_property :estimated_cost, as: "estimatedCost", types: [ + "string", + "OpenActive::Models::Schema::MonetaryAmount", + "URI", + ] + + # @return [OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::HowToSection,OpenActive::Models::Schema::HowToStep,String,URI] + define_property :step, as: "step", types: [ "OpenActive::Models::Schema::CreativeWork", + "OpenActive::Models::Schema::HowToSection", + "OpenActive::Models::Schema::HowToStep", "string", "URI", ] - # @return [ActiveSupport::Duration,URI,nil] - define_property :perform_time, as: "performTime", types: [ - "DateInterval", + # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :yield, as: "yield", types: [ + "string", + "OpenActive::Models::Schema::QuantitativeValue", "URI", - "null", ] end end diff --git a/lib/openactive/models/schema/how_to_direction.rb b/lib/openactive/models/schema/how_to_direction.rb index 8cc1ebbd..4833029b 100644 --- a/lib/openactive/models/schema/how_to_direction.rb +++ b/lib/openactive/models/schema/how_to_direction.rb @@ -1,64 +1,64 @@ module OpenActive module Models module Schema - class HowToDirection < ::OpenActive::Models::Schema::ListItem + class HowToDirection < ::OpenActive::Models::Schema::CreativeWork # @!attribute type # @return [String] def type "schema:HowToDirection" end - # @return [URI,OpenActive::Models::Schema::MediaObject] - define_property :after_media, as: "afterMedia", types: [ - "URI", - "OpenActive::Models::Schema::MediaObject", - ] - - # @return [OpenActive::Models::Schema::HowToSupply,String,URI] - define_property :supply, as: "supply", types: [ - "OpenActive::Models::Schema::HowToSupply", + # @return [OpenActive::Models::Schema::HowToTool,String,URI] + define_property :tool, as: "tool", types: [ + "OpenActive::Models::Schema::HowToTool", "string", "URI", ] - # @return [URI,OpenActive::Models::Schema::MediaObject] - define_property :during_media, as: "duringMedia", types: [ + # @return [ActiveSupport::Duration,URI,nil] + define_property :total_time, as: "totalTime", types: [ + "DateInterval", "URI", - "OpenActive::Models::Schema::MediaObject", + "null", ] # @return [ActiveSupport::Duration,URI,nil] - define_property :total_time, as: "totalTime", types: [ + define_property :prep_time, as: "prepTime", types: [ "DateInterval", "URI", "null", ] # @return [URI,OpenActive::Models::Schema::MediaObject] - define_property :before_media, as: "beforeMedia", types: [ + define_property :during_media, as: "duringMedia", types: [ "URI", "OpenActive::Models::Schema::MediaObject", ] - # @return [OpenActive::Models::Schema::HowToTool,String,URI] - define_property :tool, as: "tool", types: [ - "OpenActive::Models::Schema::HowToTool", + # @return [String,OpenActive::Models::Schema::HowToSupply,URI] + define_property :supply, as: "supply", types: [ "string", + "OpenActive::Models::Schema::HowToSupply", "URI", ] # @return [ActiveSupport::Duration,URI,nil] - define_property :prep_time, as: "prepTime", types: [ + define_property :perform_time, as: "performTime", types: [ "DateInterval", "URI", "null", ] - # @return [ActiveSupport::Duration,URI,nil] - define_property :perform_time, as: "performTime", types: [ - "DateInterval", + # @return [URI,OpenActive::Models::Schema::MediaObject] + define_property :before_media, as: "beforeMedia", types: [ "URI", - "null", + "OpenActive::Models::Schema::MediaObject", + ] + + # @return [URI,OpenActive::Models::Schema::MediaObject] + define_property :after_media, as: "afterMedia", types: [ + "URI", + "OpenActive::Models::Schema::MediaObject", ] end end diff --git a/lib/openactive/models/schema/how_to_item.rb b/lib/openactive/models/schema/how_to_item.rb index e94f8239..3234f9b2 100644 --- a/lib/openactive/models/schema/how_to_item.rb +++ b/lib/openactive/models/schema/how_to_item.rb @@ -8,11 +8,11 @@ def type "schema:HowToItem" end - # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,String,URI,nil] + # @return [String,OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] define_property :required_quantity, as: "requiredQuantity", types: [ + "string", "OpenActive::Models::Schema::QuantitativeValue", "Number", - "string", "URI", "null", ] diff --git a/lib/openactive/models/schema/how_to_section.rb b/lib/openactive/models/schema/how_to_section.rb index 4731f285..e0466c3c 100644 --- a/lib/openactive/models/schema/how_to_section.rb +++ b/lib/openactive/models/schema/how_to_section.rb @@ -8,11 +8,11 @@ def type "schema:HowToSection" end - # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::CreativeWork,String,URI] + # @return [String,OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::CreativeWork,URI] define_property :steps, as: "steps", types: [ + "string", "OpenActive::Models::Schema::ItemList", "OpenActive::Models::Schema::CreativeWork", - "string", "URI", ] end diff --git a/lib/openactive/models/schema/how_to_tip.rb b/lib/openactive/models/schema/how_to_tip.rb index 3c59f7ce..d723bd34 100644 --- a/lib/openactive/models/schema/how_to_tip.rb +++ b/lib/openactive/models/schema/how_to_tip.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class HowToTip < ::OpenActive::Models::Schema::CreativeWork + class HowToTip < ::OpenActive::Models::Schema::ListItem # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/hyper_toc_entry.rb b/lib/openactive/models/schema/hyper_toc_entry.rb index ba0f551a..03b44ad4 100644 --- a/lib/openactive/models/schema/hyper_toc_entry.rb +++ b/lib/openactive/models/schema/hyper_toc_entry.rb @@ -8,6 +8,11 @@ def type "schema:HyperTocEntry" end + # @return [String] + define_property :utterances, as: "utterances", types: [ + "string", + ] + # @return [OpenActive::Models::Schema::HyperTocEntry,URI] define_property :toc_continuation, as: "tocContinuation", types: [ "OpenActive::Models::Schema::HyperTocEntry", @@ -19,11 +24,6 @@ def type "OpenActive::Models::Schema::MediaObject", "URI", ] - - # @return [String] - define_property :utterances, as: "utterances", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/image_object.rb b/lib/openactive/models/schema/image_object.rb index 60a7f96c..8e517ca2 100644 --- a/lib/openactive/models/schema/image_object.rb +++ b/lib/openactive/models/schema/image_object.rb @@ -8,15 +8,16 @@ def type "schema:ImageObject" end - # @return [String] - define_property :embedded_text_caption, as: "embeddedTextCaption", types: [ + # @return [OpenActive::Models::Schema::PropertyValue,String,URI] + define_property :exif_data, as: "exifData", types: [ + "OpenActive::Models::Schema::PropertyValue", "string", + "URI", ] - # @return [Boolean,nil] - define_property :representative_of_page, as: "representativeOfPage", types: [ - "bool", - "null", + # @return [String] + define_property :embedded_text_caption, as: "embeddedTextCaption", types: [ + "string", ] # @return [String,OpenActive::Models::Schema::MediaObject,URI] @@ -26,17 +27,10 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::ImageObject,URI] - define_property :thumbnail, as: "thumbnail", types: [ - "OpenActive::Models::Schema::ImageObject", - "URI", - ] - - # @return [OpenActive::Models::Schema::PropertyValue,String,URI] - define_property :exif_data, as: "exifData", types: [ - "OpenActive::Models::Schema::PropertyValue", - "string", - "URI", + # @return [Boolean,nil] + define_property :representative_of_page, as: "representativeOfPage", types: [ + "bool", + "null", ] end end diff --git a/lib/openactive/models/schema/interaction_counter.rb b/lib/openactive/models/schema/interaction_counter.rb index 3e0ccd44..ed4cd2e4 100644 --- a/lib/openactive/models/schema/interaction_counter.rb +++ b/lib/openactive/models/schema/interaction_counter.rb @@ -8,25 +8,12 @@ def type "schema:InteractionCounter" end - # @return [DateTime,Time,nil] - define_property :start_time, as: "startTime", types: [ - "DateTime", - "Time", - "null", - ] - - # @return [int,nil] - define_property :user_interaction_count, as: "userInteractionCount", types: [ - "int", - "null", - ] - - # @return [OpenActive::Models::Schema::PostalAddress,String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,URI] + # @return [OpenActive::Models::Schema::PostalAddress,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,String,URI] define_property :location, as: "location", types: [ "OpenActive::Models::Schema::PostalAddress", - "string", "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::VirtualLocation", + "string", "URI", ] @@ -36,6 +23,13 @@ def type "URI", ] + # @return [DateTime,Time,nil] + define_property :end_time, as: "endTime", types: [ + "DateTime", + "Time", + "null", + ] + # @return [OpenActive::Models::Schema::SoftwareApplication,OpenActive::Models::Schema::WebSite,URI] define_property :interaction_service, as: "interactionService", types: [ "OpenActive::Models::Schema::SoftwareApplication", @@ -44,11 +38,17 @@ def type ] # @return [DateTime,Time,nil] - define_property :end_time, as: "endTime", types: [ + define_property :start_time, as: "startTime", types: [ "DateTime", "Time", "null", ] + + # @return [int,nil] + define_property :user_interaction_count, as: "userInteractionCount", types: [ + "int", + "null", + ] end end end diff --git a/lib/openactive/models/schema/investment_or_deposit.rb b/lib/openactive/models/schema/investment_or_deposit.rb index 9eae3801..90e89695 100644 --- a/lib/openactive/models/schema/investment_or_deposit.rb +++ b/lib/openactive/models/schema/investment_or_deposit.rb @@ -8,10 +8,10 @@ def type "schema:InvestmentOrDeposit" end - # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + # @return [OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] define_property :amount, as: "amount", types: [ - "Number", "OpenActive::Models::Schema::MonetaryAmount", + "Number", "URI", "null", ] diff --git a/lib/openactive/models/schema/invoice.rb b/lib/openactive/models/schema/invoice.rb index d1fcf0c3..b7d79a8d 100644 --- a/lib/openactive/models/schema/invoice.rb +++ b/lib/openactive/models/schema/invoice.rb @@ -8,18 +8,9 @@ def type "schema:Invoice" end - # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,URI] - define_property :total_payment_due, as: "totalPaymentDue", types: [ - "OpenActive::Models::Schema::MonetaryAmount", - "OpenActive::Models::Schema::PriceSpecification", - "URI", - ] - - # @return [ActiveSupport::Duration,URI,nil] - define_property :billing_period, as: "billingPeriod", types: [ - "DateInterval", - "URI", - "null", + # @return [String] + define_property :account_id, as: "accountId", types: [ + "string", ] # @return [OpenActive::Models::Schema::Order,URI] @@ -29,66 +20,67 @@ def type ] # @return [String] - define_property :account_id, as: "accountId", types: [ + define_property :confirmation_number, as: "confirmationNumber", types: [ "string", ] - # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] + # @return [Date,DateTime,nil] + define_property :payment_due_date, as: "paymentDueDate", types: [ + "Date", + "DateTime", + "null", + ] + + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil] define_property :category, as: "category", types: [ - "URI", - "string", "OpenActive::Enums::Schema::PhysicalActivityCategory", + "URI", "OpenActive::Models::Schema::Thing", + "string", "OpenActive::Models::Schema::CategoryCode", "null", ] - # @return [Date,nil] - define_property :scheduled_payment_date, as: "scheduledPaymentDate", types: [ - "Date", + # @return [ActiveSupport::Duration,URI,nil] + define_property :billing_period, as: "billingPeriod", types: [ + "DateInterval", + "URI", "null", ] - # @return [String] - define_property :confirmation_number, as: "confirmationNumber", types: [ - "string", + # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,URI] + define_property :total_payment_due, as: "totalPaymentDue", types: [ + "OpenActive::Models::Schema::MonetaryAmount", + "OpenActive::Models::Schema::PriceSpecification", + "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :customer, as: "customer", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :broker, as: "broker", types: [ "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ + define_property :customer, as: "customer", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,URI] - define_property :minimum_payment_due, as: "minimumPaymentDue", types: [ - "OpenActive::Models::Schema::MonetaryAmount", - "OpenActive::Models::Schema::PriceSpecification", - "URI", + # @return [OpenActive::Enums::Schema::PaymentMethod,nil] + define_property :payment_method, as: "paymentMethod", types: [ + "OpenActive::Enums::Schema::PaymentMethod", + "null", ] - # @return [DateTime,Date,nil] - define_property :payment_due_date, as: "paymentDueDate", types: [ + # @return [DateTime,nil] + define_property :payment_due, as: "paymentDue", types: [ "DateTime", - "Date", "null", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :broker, as: "broker", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", - "URI", - ] - # @return [OpenActive::Models::Schema::PaymentStatusType,String,URI] define_property :payment_status, as: "paymentStatus", types: [ "OpenActive::Models::Schema::PaymentStatusType", @@ -101,16 +93,24 @@ def type "string", ] - # @return [DateTime,nil] - define_property :payment_due, as: "paymentDue", types: [ - "DateTime", + # @return [Date,nil] + define_property :scheduled_payment_date, as: "scheduledPaymentDate", types: [ + "Date", "null", ] - # @return [OpenActive::Enums::Schema::PaymentMethod,nil] - define_property :payment_method, as: "paymentMethod", types: [ - "OpenActive::Enums::Schema::PaymentMethod", - "null", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :provider, as: "provider", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", + ] + + # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,URI] + define_property :minimum_payment_due, as: "minimumPaymentDue", types: [ + "OpenActive::Models::Schema::MonetaryAmount", + "OpenActive::Models::Schema::PriceSpecification", + "URI", ] end end diff --git a/lib/openactive/models/schema/item_list.rb b/lib/openactive/models/schema/item_list.rb index 962d637b..f64309e2 100644 --- a/lib/openactive/models/schema/item_list.rb +++ b/lib/openactive/models/schema/item_list.rb @@ -8,24 +8,24 @@ def type "schema:ItemList" end - # @return [int,nil] - define_property :number_of_items, as: "numberOfItems", types: [ - "int", + # @return [String,OpenActive::Enums::Schema::ItemListOrderType,nil] + define_property :item_list_order, as: "itemListOrder", types: [ + "string", + "OpenActive::Enums::Schema::ItemListOrderType", "null", ] - # @return [OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::ListItem,String,URI] + # @return [OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::ListItem,URI] define_property :item_list_element, as: "itemListElement", types: [ "OpenActive::Models::Schema::Thing", - "OpenActive::Models::Schema::ListItem", "string", + "OpenActive::Models::Schema::ListItem", "URI", ] - # @return [String,OpenActive::Enums::Schema::ItemListOrderType,nil] - define_property :item_list_order, as: "itemListOrder", types: [ - "string", - "OpenActive::Enums::Schema::ItemListOrderType", + # @return [int,nil] + define_property :number_of_items, as: "numberOfItems", types: [ + "int", "null", ] end diff --git a/lib/openactive/models/schema/job_posting.rb b/lib/openactive/models/schema/job_posting.rb index b52b4bab..8d5ba087 100644 --- a/lib/openactive/models/schema/job_posting.rb +++ b/lib/openactive/models/schema/job_posting.rb @@ -13,28 +13,17 @@ def type "string", ] - # @return [String] - define_property :employer_overview, as: "employerOverview", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::MonetaryAmountDistribution,OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] - define_property :estimated_salary, as: "estimatedSalary", types: [ - "OpenActive::Models::Schema::MonetaryAmountDistribution", - "OpenActive::Models::Schema::MonetaryAmount", - "Number", + # @return [OpenActive::Models::Schema::ContactPoint,URI] + define_property :application_contact, as: "applicationContact", types: [ + "OpenActive::Models::Schema::ContactPoint", "URI", - "null", ] - # @return [String] - define_property :job_location_type, as: "jobLocationType", types: [ - "string", - ] - - # @return [String] - define_property :responsibilities, as: "responsibilities", types: [ + # @return [String,Date,nil] + define_property :job_start_date, as: "jobStartDate", types: [ "string", + "Date", + "null", ] # @return [OpenActive::Models::Schema::Place,URI] @@ -43,34 +32,37 @@ def type "URI", ] - # @return [URI,String,OpenActive::Models::Schema::DefinedTerm] - define_property :physical_requirement, as: "physicalRequirement", types: [ - "URI", + # @return [String] + define_property :responsibilities, as: "responsibilities", types: [ "string", - "OpenActive::Models::Schema::DefinedTerm", ] - # @return [String] - define_property :incentives, as: "incentives", types: [ + # @return [String,OpenActive::Models::Schema::CategoryCode,URI] + define_property :occupational_category, as: "occupationalCategory", types: [ "string", + "OpenActive::Models::Schema::CategoryCode", + "URI", ] - # @return [Boolean,nil] - define_property :direct_apply, as: "directApply", types: [ - "bool", - "null", + # @return [String,URI] + define_property :security_clearance_requirement, as: "securityClearanceRequirement", types: [ + "string", + "URI", ] - # @return [OpenActive::Models::Schema::DefinedTerm,URI,String] - define_property :sensory_requirement, as: "sensoryRequirement", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,BigDecimal,URI,nil] + define_property :base_salary, as: "baseSalary", types: [ + "OpenActive::Models::Schema::MonetaryAmount", + "OpenActive::Models::Schema::PriceSpecification", + "Number", "URI", - "string", + "null", ] - # @return [OpenActive::Models::Schema::AdministrativeArea,URI] - define_property :applicant_location_requirements, as: "applicantLocationRequirements", types: [ - "OpenActive::Models::Schema::AdministrativeArea", + # @return [String,OpenActive::Models::Schema::EducationalOccupationalCredential,URI] + define_property :qualifications, as: "qualifications", types: [ + "string", + "OpenActive::Models::Schema::EducationalOccupationalCredential", "URI", ] @@ -79,32 +71,52 @@ def type "string", ] - # @return [Date,String,nil] - define_property :job_start_date, as: "jobStartDate", types: [ - "Date", + # @return [String] + define_property :benefits, as: "benefits", types: [ "string", - "null", ] - # @return [String] - define_property :employment_type, as: "employmentType", types: [ + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :hiring_organization, as: "hiringOrganization", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", + ] + + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :skills, as: "skills", types: [ + "OpenActive::Models::Schema::DefinedTerm", "string", + "URI", ] - # @return [String] - define_property :special_commitments, as: "specialCommitments", types: [ + # @return [String,OpenActive::Models::Schema::OccupationalExperienceRequirements,URI] + define_property :experience_requirements, as: "experienceRequirements", types: [ "string", + "OpenActive::Models::Schema::OccupationalExperienceRequirements", + "URI", ] - # @return [OpenActive::Models::Schema::ContactPoint,URI] - define_property :application_contact, as: "applicationContact", types: [ - "OpenActive::Models::Schema::ContactPoint", + # @return [Date,DateTime,nil] + define_property :valid_through, as: "validThrough", types: [ + "Date", + "DateTime", + "null", + ] + + # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmountDistribution,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + define_property :estimated_salary, as: "estimatedSalary", types: [ + "Number", + "OpenActive::Models::Schema::MonetaryAmountDistribution", + "OpenActive::Models::Schema::MonetaryAmount", "URI", + "null", ] - # @return [String] - define_property :incentive_compensation, as: "incentiveCompensation", types: [ - "string", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :employment_unit, as: "employmentUnit", types: [ + "OpenActive::Models::Schema::Organization", + "URI", ] # @return [OpenActive::Models::Schema::Occupation,URI] @@ -113,21 +125,13 @@ def type "URI", ] - # @return [int,nil] - define_property :total_job_openings, as: "totalJobOpenings", types: [ - "int", - "null", - ] - - # @return [String,OpenActive::Models::Schema::OccupationalExperienceRequirements,URI] - define_property :experience_requirements, as: "experienceRequirements", types: [ + # @return [String] + define_property :incentive_compensation, as: "incentiveCompensation", types: [ "string", - "OpenActive::Models::Schema::OccupationalExperienceRequirements", - "URI", ] # @return [String] - define_property :job_benefits, as: "jobBenefits", types: [ + define_property :employer_overview, as: "employerOverview", types: [ "string", ] @@ -142,63 +146,67 @@ def type "null", ] - # @return [URI,String] - define_property :security_clearance_requirement, as: "securityClearanceRequirement", types: [ - "URI", + # @return [String] + define_property :eligibility_to_work_requirement, as: "eligibilityToWorkRequirement", types: [ "string", ] + # @return [Date,DateTime,nil] + define_property :date_posted, as: "datePosted", types: [ + "Date", + "DateTime", + "null", + ] + + # @return [OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :applicant_location_requirements, as: "applicantLocationRequirements", types: [ + "OpenActive::Models::Schema::AdministrativeArea", + "URI", + ] + # @return [String] - define_property :eligibility_to_work_requirement, as: "eligibilityToWorkRequirement", types: [ + define_property :job_benefits, as: "jobBenefits", types: [ "string", ] - # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,String,URI] - define_property :education_requirements, as: "educationRequirements", types: [ - "OpenActive::Models::Schema::EducationalOccupationalCredential", + # @return [String] + define_property :special_commitments, as: "specialCommitments", types: [ "string", - "URI", ] # @return [String] - define_property :benefits, as: "benefits", types: [ + define_property :employment_type, as: "employmentType", types: [ "string", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :industry, as: "industry", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [String,OpenActive::Models::Schema::EducationalOccupationalCredential,URI] + define_property :education_requirements, as: "educationRequirements", types: [ "string", + "OpenActive::Models::Schema::EducationalOccupationalCredential", "URI", ] - # @return [BigDecimal,OpenActive::Models::Schema::PriceSpecification,OpenActive::Models::Schema::MonetaryAmount,URI,nil] - define_property :base_salary, as: "baseSalary", types: [ - "Number", - "OpenActive::Models::Schema::PriceSpecification", - "OpenActive::Models::Schema::MonetaryAmount", - "URI", - "null", + # @return [String] + define_property :incentives, as: "incentives", types: [ + "string", ] - # @return [Date,DateTime,nil] - define_property :date_posted, as: "datePosted", types: [ - "Date", - "DateTime", - "null", + # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] + define_property :sensory_requirement, as: "sensoryRequirement", types: [ + "URI", + "OpenActive::Models::Schema::DefinedTerm", + "string", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :skills, as: "skills", types: [ + # @return [String] + define_property :job_location_type, as: "jobLocationType", types: [ "string", - "OpenActive::Models::Schema::DefinedTerm", - "URI", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :hiring_organization, as: "hiringOrganization", types: [ - "OpenActive::Models::Schema::Organization", - "URI", + # @return [int,nil] + define_property :total_job_openings, as: "totalJobOpenings", types: [ + "int", + "null", ] # @return [Boolean,nil] @@ -207,31 +215,24 @@ def type "null", ] - # @return [DateTime,Date,nil] - define_property :valid_through, as: "validThrough", types: [ - "DateTime", - "Date", - "null", - ] - - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :employment_unit, as: "employmentUnit", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :industry, as: "industry", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "string", "URI", ] - # @return [String,OpenActive::Models::Schema::EducationalOccupationalCredential,URI] - define_property :qualifications, as: "qualifications", types: [ - "string", - "OpenActive::Models::Schema::EducationalOccupationalCredential", + # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] + define_property :physical_requirement, as: "physicalRequirement", types: [ "URI", + "OpenActive::Models::Schema::DefinedTerm", + "string", ] - # @return [OpenActive::Models::Schema::CategoryCode,String,URI] - define_property :occupational_category, as: "occupationalCategory", types: [ - "OpenActive::Models::Schema::CategoryCode", - "string", - "URI", + # @return [Boolean,nil] + define_property :direct_apply, as: "directApply", types: [ + "bool", + "null", ] end end diff --git a/lib/openactive/models/schema/joint.rb b/lib/openactive/models/schema/joint.rb index 789ee0e6..668ab653 100644 --- a/lib/openactive/models/schema/joint.rb +++ b/lib/openactive/models/schema/joint.rb @@ -8,9 +8,11 @@ def type "schema:Joint" end - # @return [String] - define_property :structural_class, as: "structuralClass", types: [ + # @return [String,OpenActive::Models::Schema::MedicalEntity,URI] + define_property :functional_class, as: "functionalClass", types: [ "string", + "OpenActive::Models::Schema::MedicalEntity", + "URI", ] # @return [String] @@ -18,11 +20,9 @@ def type "string", ] - # @return [String,OpenActive::Models::Schema::MedicalEntity,URI] - define_property :functional_class, as: "functionalClass", types: [ + # @return [String] + define_property :structural_class, as: "structuralClass", types: [ "string", - "OpenActive::Models::Schema::MedicalEntity", - "URI", ] end end diff --git a/lib/openactive/models/schema/learning_resource.rb b/lib/openactive/models/schema/learning_resource.rb index 873b0cf4..d1df6b71 100644 --- a/lib/openactive/models/schema/learning_resource.rb +++ b/lib/openactive/models/schema/learning_resource.rb @@ -8,10 +8,10 @@ def type "schema:LearningResource" end - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :teaches, as: "teaches", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :educational_use, as: "educationalUse", types: [ "string", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] @@ -22,28 +22,21 @@ def type "string", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :assesses, as: "assesses", types: [ - "string", - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::AlignmentObject,URI] + define_property :educational_alignment, as: "educationalAlignment", types: [ + "OpenActive::Models::Schema::AlignmentObject", "URI", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :educational_use, as: "educationalUse", types: [ + # @return [URI,OpenActive::Models::Schema::DefinedTerm,String] + define_property :competency_required, as: "competencyRequired", types: [ + "URI", "OpenActive::Models::Schema::DefinedTerm", "string", - "URI", - ] - - # @return [OpenActive::Models::Schema::AlignmentObject,URI] - define_property :educational_alignment, as: "educationalAlignment", types: [ - "OpenActive::Models::Schema::AlignmentObject", - "URI", ] # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :competency_required, as: "competencyRequired", types: [ + define_property :assesses, as: "assesses", types: [ "string", "OpenActive::Models::Schema::DefinedTerm", "URI", @@ -55,6 +48,13 @@ def type "string", "URI", ] + + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :teaches, as: "teaches", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "string", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/legislation.rb b/lib/openactive/models/schema/legislation.rb index f77593f4..d619eec3 100644 --- a/lib/openactive/models/schema/legislation.rb +++ b/lib/openactive/models/schema/legislation.rb @@ -8,85 +8,85 @@ def type "schema:Legislation" end - # @return [OpenActive::Models::Schema::Legislation,URI] - define_property :legislation_transposes, as: "legislationTransposes", types: [ - "OpenActive::Models::Schema::Legislation", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :legislation_passed_by, as: "legislationPassedBy", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::LegalForceStatus,URI] - define_property :legislation_legal_force, as: "legislationLegalForce", types: [ - "OpenActive::Models::Schema::LegalForceStatus", + # @return [URI,String] + define_property :legislation_identifier, as: "legislationIdentifier", types: [ "URI", + "string", ] - # @return [OpenActive::Models::Schema::CategoryCode,String,URI] - define_property :legislation_type, as: "legislationType", types: [ - "OpenActive::Models::Schema::CategoryCode", - "string", + # @return [OpenActive::Models::Schema::Legislation,URI] + define_property :legislation_transposes, as: "legislationTransposes", types: [ + "OpenActive::Models::Schema::Legislation", "URI", ] - # @return [String,OpenActive::Models::Schema::AdministrativeArea,URI] - define_property :jurisdiction, as: "jurisdiction", types: [ - "string", - "OpenActive::Models::Schema::AdministrativeArea", + # @return [OpenActive::Models::Schema::Legislation,URI] + define_property :legislation_applies, as: "legislationApplies", types: [ + "OpenActive::Models::Schema::Legislation", "URI", ] - # @return [String,URI] - define_property :legislation_identifier, as: "legislationIdentifier", types: [ + # @return [OpenActive::Models::Schema::AdministrativeArea,String,URI] + define_property :jurisdiction, as: "jurisdiction", types: [ + "OpenActive::Models::Schema::AdministrativeArea", "string", "URI", ] # @return [OpenActive::Models::Schema::Legislation,URI] - define_property :legislation_changes, as: "legislationChanges", types: [ + define_property :legislation_consolidates, as: "legislationConsolidates", types: [ "OpenActive::Models::Schema::Legislation", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :legislation_responsible, as: "legislationResponsible", types: [ - "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Models::Schema::AdministrativeArea,String,URI] - define_property :legislation_jurisdiction, as: "legislationJurisdiction", types: [ - "OpenActive::Models::Schema::AdministrativeArea", - "string", + # @return [OpenActive::Models::Schema::LegalForceStatus,URI] + define_property :legislation_legal_force, as: "legislationLegalForce", types: [ + "OpenActive::Models::Schema::LegalForceStatus", "URI", ] # @return [Date,nil] - define_property :legislation_date, as: "legislationDate", types: [ + define_property :legislation_date_version, as: "legislationDateVersion", types: [ "Date", "null", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :legislation_passed_by, as: "legislationPassedBy", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Legislation,URI] + define_property :legislation_changes, as: "legislationChanges", types: [ + "OpenActive::Models::Schema::Legislation", "URI", ] - # @return [OpenActive::Models::Schema::Legislation,URI] - define_property :legislation_consolidates, as: "legislationConsolidates", types: [ - "OpenActive::Models::Schema::Legislation", + # @return [String,OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :legislation_jurisdiction, as: "legislationJurisdiction", types: [ + "string", + "OpenActive::Models::Schema::AdministrativeArea", "URI", ] - # @return [OpenActive::Models::Schema::Legislation,URI] - define_property :legislation_applies, as: "legislationApplies", types: [ - "OpenActive::Models::Schema::Legislation", + # @return [String,OpenActive::Models::Schema::CategoryCode,URI] + define_property :legislation_type, as: "legislationType", types: [ + "string", + "OpenActive::Models::Schema::CategoryCode", "URI", ] # @return [Date,nil] - define_property :legislation_date_version, as: "legislationDateVersion", types: [ + define_property :legislation_date, as: "legislationDate", types: [ "Date", "null", ] diff --git a/lib/openactive/models/schema/link_role.rb b/lib/openactive/models/schema/link_role.rb index 7e345efc..5dea9c74 100644 --- a/lib/openactive/models/schema/link_role.rb +++ b/lib/openactive/models/schema/link_role.rb @@ -8,17 +8,17 @@ def type "schema:LinkRole" end - # @return [String] - define_property :link_relationship, as: "linkRelationship", types: [ - "string", - ] - # @return [String,OpenActive::Models::Schema::Language,URI] define_property :in_language, as: "inLanguage", types: [ "string", "OpenActive::Models::Schema::Language", "URI", ] + + # @return [String] + define_property :link_relationship, as: "linkRelationship", types: [ + "string", + ] end end end diff --git a/lib/openactive/models/schema/loan_or_credit.rb b/lib/openactive/models/schema/loan_or_credit.rb index a839afa6..d65c36ff 100644 --- a/lib/openactive/models/schema/loan_or_credit.rb +++ b/lib/openactive/models/schema/loan_or_credit.rb @@ -14,6 +14,24 @@ def type "null", ] + # @return [String] + define_property :currency, as: "currency", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::Thing,String,URI] + define_property :required_collateral, as: "requiredCollateral", types: [ + "OpenActive::Models::Schema::Thing", + "string", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :loan_term, as: "loanTerm", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] + # @return [URI,String] define_property :loan_type, as: "loanType", types: [ "URI", @@ -26,12 +44,6 @@ def type "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :loan_term, as: "loanTerm", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - # @return [ActiveSupport::Duration,URI,nil] define_property :grace_period, as: "gracePeriod", types: [ "DateInterval", @@ -39,31 +51,19 @@ def type "null", ] - # @return [String,OpenActive::Models::Schema::Thing,URI] - define_property :required_collateral, as: "requiredCollateral", types: [ - "string", - "OpenActive::Models::Schema::Thing", + # @return [OpenActive::Models::Schema::RepaymentSpecification,URI] + define_property :loan_repayment_form, as: "loanRepaymentForm", types: [ + "OpenActive::Models::Schema::RepaymentSpecification", "URI", ] - # @return [String] - define_property :currency, as: "currency", types: [ - "string", - ] - - # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + # @return [OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] define_property :amount, as: "amount", types: [ - "Number", "OpenActive::Models::Schema::MonetaryAmount", + "Number", "URI", "null", ] - - # @return [OpenActive::Models::Schema::RepaymentSpecification,URI] - define_property :loan_repayment_form, as: "loanRepaymentForm", types: [ - "OpenActive::Models::Schema::RepaymentSpecification", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/local_business.rb b/lib/openactive/models/schema/local_business.rb index 03f1e903..5f188278 100644 --- a/lib/openactive/models/schema/local_business.rb +++ b/lib/openactive/models/schema/local_business.rb @@ -8,10 +8,9 @@ def type "schema:LocalBusiness" end - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :branch_of, as: "branchOf", types: [ - "OpenActive::Models::Schema::Organization", - "URI", + # @return [String] + define_property :payment_accepted, as: "paymentAccepted", types: [ + "string", ] # @return [String] @@ -25,13 +24,14 @@ def type ] # @return [String] - define_property :payment_accepted, as: "paymentAccepted", types: [ + define_property :currencies_accepted, as: "currenciesAccepted", types: [ "string", ] - # @return [String] - define_property :currencies_accepted, as: "currenciesAccepted", types: [ - "string", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :branch_of, as: "branchOf", types: [ + "OpenActive::Models::Schema::Organization", + "URI", ] end end diff --git a/lib/openactive/models/schema/location_feature_specification.rb b/lib/openactive/models/schema/location_feature_specification.rb index 686f59bc..03324581 100644 --- a/lib/openactive/models/schema/location_feature_specification.rb +++ b/lib/openactive/models/schema/location_feature_specification.rb @@ -8,25 +8,25 @@ def type "schema:LocationFeatureSpecification" end - # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] - define_property :hours_available, as: "hoursAvailable", types: [ - "OpenActive::Models::Schema::OpeningHoursSpecification", - "URI", - ] - - # @return [DateTime,Date,nil] + # @return [Date,DateTime,nil] define_property :valid_from, as: "validFrom", types: [ - "DateTime", "Date", + "DateTime", "null", ] - # @return [DateTime,Date,nil] + # @return [Date,DateTime,nil] define_property :valid_through, as: "validThrough", types: [ - "DateTime", "Date", + "DateTime", "null", ] + + # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] + define_property :hours_available, as: "hoursAvailable", types: [ + "OpenActive::Models::Schema::OpeningHoursSpecification", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/lodging_business.rb b/lib/openactive/models/schema/lodging_business.rb index d01bf20b..10a9be11 100644 --- a/lib/openactive/models/schema/lodging_business.rb +++ b/lib/openactive/models/schema/lodging_business.rb @@ -16,38 +16,33 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Audience,URI] - define_property :audience, as: "audience", types: [ - "OpenActive::Models::Schema::Audience", - "URI", - ] - - # @return [OpenActive::Models::Schema::Rating,URI] - define_property :star_rating, as: "starRating", types: [ - "OpenActive::Models::Schema::Rating", - "URI", - ] - - # @return [OpenActive::Models::Schema::LocationFeatureSpecification,URI] - define_property :amenity_feature, as: "amenityFeature", types: [ - "OpenActive::Models::Schema::LocationFeatureSpecification", - "URI", + # @return [String,Boolean,nil] + define_property :pets_allowed, as: "petsAllowed", types: [ + "string", + "bool", + "null", ] - # @return [String,OpenActive::Models::Schema::Language,URI] + # @return [OpenActive::Models::Schema::Language,String,URI] define_property :available_language, as: "availableLanguage", types: [ - "string", "OpenActive::Models::Schema::Language", + "string", "URI", ] - # @return [DateTime,Time,nil] + # @return [Time,DateTime,nil] define_property :checkout_time, as: "checkoutTime", types: [ - "DateTime", "Time", + "DateTime", "null", ] + # @return [OpenActive::Models::Schema::LocationFeatureSpecification,URI] + define_property :amenity_feature, as: "amenityFeature", types: [ + "OpenActive::Models::Schema::LocationFeatureSpecification", + "URI", + ] + # @return [DateTime,Time,nil] define_property :checkin_time, as: "checkinTime", types: [ "DateTime", @@ -55,11 +50,16 @@ def type "null", ] - # @return [String,Boolean,nil] - define_property :pets_allowed, as: "petsAllowed", types: [ - "string", - "bool", - "null", + # @return [OpenActive::Models::Schema::Audience,URI] + define_property :audience, as: "audience", types: [ + "OpenActive::Models::Schema::Audience", + "URI", + ] + + # @return [OpenActive::Models::Schema::Rating,URI] + define_property :star_rating, as: "starRating", types: [ + "OpenActive::Models::Schema::Rating", + "URI", ] end end diff --git a/lib/openactive/models/schema/lodging_reservation.rb b/lib/openactive/models/schema/lodging_reservation.rb index 10ee534c..7c1d9f62 100644 --- a/lib/openactive/models/schema/lodging_reservation.rb +++ b/lib/openactive/models/schema/lodging_reservation.rb @@ -8,30 +8,30 @@ def type "schema:LodgingReservation" end - # @return [OpenActive::Enums::Schema::QualitativeValue,String,nil] - define_property :lodging_unit_type, as: "lodgingUnitType", types: [ - "OpenActive::Enums::Schema::QualitativeValue", - "string", - "null", - ] - # @return [String] define_property :lodging_unit_description, as: "lodgingUnitDescription", types: [ "string", ] - # @return [DateTime,Time,nil] + # @return [OpenActive::Models::Schema::QuantitativeValue,int,URI,nil] + define_property :num_children, as: "numChildren", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "int", + "URI", + "null", + ] + + # @return [Time,DateTime,nil] define_property :checkout_time, as: "checkoutTime", types: [ - "DateTime", "Time", + "DateTime", "null", ] - # @return [int,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :num_adults, as: "numAdults", types: [ - "int", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [OpenActive::Enums::Schema::QualitativeValue,String,nil] + define_property :lodging_unit_type, as: "lodgingUnitType", types: [ + "OpenActive::Enums::Schema::QualitativeValue", + "string", "null", ] @@ -42,10 +42,10 @@ def type "null", ] - # @return [int,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :num_children, as: "numChildren", types: [ - "int", + # @return [OpenActive::Models::Schema::QuantitativeValue,int,URI,nil] + define_property :num_adults, as: "numAdults", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "int", "URI", "null", ] diff --git a/lib/openactive/models/schema/lymphatic_vessel.rb b/lib/openactive/models/schema/lymphatic_vessel.rb index da720ecc..1e3e32bb 100644 --- a/lib/openactive/models/schema/lymphatic_vessel.rb +++ b/lib/openactive/models/schema/lymphatic_vessel.rb @@ -8,12 +8,6 @@ def type "schema:LymphaticVessel" end - # @return [OpenActive::Models::Schema::Vessel,URI] - define_property :runs_to, as: "runsTo", types: [ - "OpenActive::Models::Schema::Vessel", - "URI", - ] - # @return [OpenActive::Models::Schema::AnatomicalSystem,OpenActive::Models::Schema::AnatomicalStructure,URI] define_property :region_drained, as: "regionDrained", types: [ "OpenActive::Models::Schema::AnatomicalSystem", @@ -21,6 +15,12 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::Vessel,URI] + define_property :runs_to, as: "runsTo", types: [ + "OpenActive::Models::Schema::Vessel", + "URI", + ] + # @return [OpenActive::Models::Schema::Vessel,URI] define_property :originates_from, as: "originatesFrom", types: [ "OpenActive::Models::Schema::Vessel", diff --git a/lib/openactive/models/schema/math_solver.rb b/lib/openactive/models/schema/math_solver.rb index ebf5d02b..29eee184 100644 --- a/lib/openactive/models/schema/math_solver.rb +++ b/lib/openactive/models/schema/math_solver.rb @@ -8,10 +8,10 @@ def type "schema:MathSolver" end - # @return [OpenActive::Models::Schema::SolveMathAction,String,URI] + # @return [String,OpenActive::Models::Schema::SolveMathAction,URI] define_property :math_expression, as: "mathExpression", types: [ - "OpenActive::Models::Schema::SolveMathAction", "string", + "OpenActive::Models::Schema::SolveMathAction", "URI", ] end diff --git a/lib/openactive/models/schema/media_object.rb b/lib/openactive/models/schema/media_object.rb index 88843273..469cd3f8 100644 --- a/lib/openactive/models/schema/media_object.rb +++ b/lib/openactive/models/schema/media_object.rb @@ -8,27 +8,34 @@ def type "schema:MediaObject" end + # @return [URI,String] + define_property :encoding_format, as: "encodingFormat", types: [ + "URI", + "string", + ] + # @return [String] define_property :content_size, as: "contentSize", types: [ "string", ] - # @return [URI] - define_property :content_url, as: "contentUrl", types: [ + # @return [Boolean,OpenActive::Models::Schema::MediaSubscription,URI,nil] + define_property :requires_subscription, as: "requiresSubscription", types: [ + "bool", + "OpenActive::Models::Schema::MediaSubscription", "URI", + "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] - define_property :width, as: "width", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "OpenActive::Models::Schema::Distance", + # @return [OpenActive::Models::Schema::NewsArticle,URI] + define_property :associated_article, as: "associatedArticle", types: [ + "OpenActive::Models::Schema::NewsArticle", "URI", ] - # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :height, as: "height", types: [ - "OpenActive::Models::Schema::Distance", - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :encodes_creative_work, as: "encodesCreativeWork", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] @@ -38,33 +45,23 @@ def type "URI", ] + # @return [String] + define_property :bitrate, as: "bitrate", types: [ + "string", + ] + # @return [DateTime,Time,nil] - define_property :start_time, as: "startTime", types: [ + define_property :end_time, as: "endTime", types: [ "DateTime", "Time", "null", ] - # @return [OpenActive::Models::Schema::NewsArticle,URI] - define_property :associated_article, as: "associatedArticle", types: [ - "OpenActive::Models::Schema::NewsArticle", - "URI", - ] - - # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::GeoShape,URI] - define_property :ineligible_region, as: "ineligibleRegion", types: [ - "OpenActive::Models::Schema::Place", - "string", - "OpenActive::Models::Schema::GeoShape", - "URI", - ] - - # @return [OpenActive::Models::Schema::MediaSubscription,Boolean,URI,nil] - define_property :requires_subscription, as: "requiresSubscription", types: [ - "OpenActive::Models::Schema::MediaSubscription", - "bool", + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :height, as: "height", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", "URI", - "null", ] # @return [String] @@ -72,28 +69,29 @@ def type "string", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :encodes_creative_work, as: "encodesCreativeWork", types: [ - "OpenActive::Models::Schema::CreativeWork", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :production_company, as: "productionCompany", types: [ + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [ActiveSupport::Duration,URI,nil] - define_property :duration, as: "duration", types: [ - "DateInterval", + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,URI] + define_property :ineligible_region, as: "ineligibleRegion", types: [ + "string", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", "URI", - "null", ] - # @return [String,URI] - define_property :encoding_format, as: "encodingFormat", types: [ + # @return [String] + define_property :sha256, as: "sha256", types: [ "string", - "URI", ] - # @return [Date,nil] - define_property :upload_date, as: "uploadDate", types: [ - "Date", + # @return [DateTime,Time,nil] + define_property :start_time, as: "startTime", types: [ + "DateTime", + "Time", "null", ] @@ -102,27 +100,29 @@ def type "URI", ] - # @return [String] - define_property :bitrate, as: "bitrate", types: [ - "string", + # @return [ActiveSupport::Duration,URI,nil] + define_property :duration, as: "duration", types: [ + "DateInterval", + "URI", + "null", ] - # @return [DateTime,Time,nil] - define_property :end_time, as: "endTime", types: [ - "DateTime", - "Time", - "null", + # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :width, as: "width", types: [ + "OpenActive::Models::Schema::Distance", + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :production_company, as: "productionCompany", types: [ - "OpenActive::Models::Schema::Organization", + # @return [URI] + define_property :content_url, as: "contentUrl", types: [ "URI", ] - # @return [String] - define_property :sha256, as: "sha256", types: [ - "string", + # @return [Date,nil] + define_property :upload_date, as: "uploadDate", types: [ + "Date", + "null", ] # @return [OpenActive::Models::Schema::Claim,URI] diff --git a/lib/openactive/models/schema/media_review.rb b/lib/openactive/models/schema/media_review.rb index fe208b01..c4dec7c9 100644 --- a/lib/openactive/models/schema/media_review.rb +++ b/lib/openactive/models/schema/media_review.rb @@ -8,6 +8,13 @@ def type "schema:MediaReview" end + # @return [OpenActive::Models::Schema::WebPage,URI,OpenActive::Models::Schema::MediaObject] + define_property :original_media_link, as: "originalMediaLink", types: [ + "OpenActive::Models::Schema::WebPage", + "URI", + "OpenActive::Models::Schema::MediaObject", + ] + # @return [String] define_property :original_media_context_description, as: "originalMediaContextDescription", types: [ "string", @@ -18,13 +25,6 @@ def type "OpenActive::Enums::Schema::MediaManipulationRatingEnumeration", "null", ] - - # @return [URI,OpenActive::Models::Schema::MediaObject,OpenActive::Models::Schema::WebPage] - define_property :original_media_link, as: "originalMediaLink", types: [ - "URI", - "OpenActive::Models::Schema::MediaObject", - "OpenActive::Models::Schema::WebPage", - ] end end end diff --git a/lib/openactive/models/schema/medical_audience.rb b/lib/openactive/models/schema/medical_audience.rb index ce842292..69e54f83 100644 --- a/lib/openactive/models/schema/medical_audience.rb +++ b/lib/openactive/models/schema/medical_audience.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class MedicalAudience < ::OpenActive::Models::Schema::Audience + class MedicalAudience < ::OpenActive::Models::Schema::PeopleAudience # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/medical_clinic.rb b/lib/openactive/models/schema/medical_clinic.rb index c245d8d4..404e22b0 100644 --- a/lib/openactive/models/schema/medical_clinic.rb +++ b/lib/openactive/models/schema/medical_clinic.rb @@ -1,18 +1,18 @@ module OpenActive module Models module Schema - class MedicalClinic < ::OpenActive::Models::Schema::MedicalOrganization + class MedicalClinic < ::OpenActive::Models::Schema::MedicalBusiness # @!attribute type # @return [String] def type "schema:MedicalClinic" end - # @return [OpenActive::Models::Schema::MedicalTest,OpenActive::Models::Schema::MedicalProcedure,OpenActive::Models::Schema::MedicalTherapy,URI] + # @return [OpenActive::Models::Schema::MedicalTherapy,OpenActive::Models::Schema::MedicalProcedure,OpenActive::Models::Schema::MedicalTest,URI] define_property :available_service, as: "availableService", types: [ - "OpenActive::Models::Schema::MedicalTest", - "OpenActive::Models::Schema::MedicalProcedure", "OpenActive::Models::Schema::MedicalTherapy", + "OpenActive::Models::Schema::MedicalProcedure", + "OpenActive::Models::Schema::MedicalTest", "URI", ] diff --git a/lib/openactive/models/schema/medical_code.rb b/lib/openactive/models/schema/medical_code.rb index 2baaed50..0ef649ec 100644 --- a/lib/openactive/models/schema/medical_code.rb +++ b/lib/openactive/models/schema/medical_code.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class MedicalCode < ::OpenActive::Models::Schema::MedicalIntangible + class MedicalCode < ::OpenActive::Models::Schema::CategoryCode # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/medical_condition.rb b/lib/openactive/models/schema/medical_condition.rb index 20a2b5a3..913b16e9 100644 --- a/lib/openactive/models/schema/medical_condition.rb +++ b/lib/openactive/models/schema/medical_condition.rb @@ -8,9 +8,10 @@ def type "schema:MedicalCondition" end - # @return [String] - define_property :possible_complication, as: "possibleComplication", types: [ - "string", + # @return [OpenActive::Models::Schema::MedicalSignOrSymptom,URI] + define_property :sign_or_symptom, as: "signOrSymptom", types: [ + "OpenActive::Models::Schema::MedicalSignOrSymptom", + "URI", ] # @return [String] @@ -19,30 +20,35 @@ def type ] # @return [OpenActive::Models::Schema::MedicalTherapy,URI] - define_property :primary_prevention, as: "primaryPrevention", types: [ + define_property :secondary_prevention, as: "secondaryPrevention", types: [ "OpenActive::Models::Schema::MedicalTherapy", "URI", ] - # @return [String,OpenActive::Enums::Schema::EventStatusType,OpenActive::Models::Schema::MedicalStudyStatus,URI,nil] - define_property :status, as: "status", types: [ + # @return [String] + define_property :epidemiology, as: "epidemiology", types: [ "string", - "OpenActive::Enums::Schema::EventStatusType", - "OpenActive::Models::Schema::MedicalStudyStatus", + ] + + # @return [OpenActive::Models::Schema::MedicalTherapy,URI] + define_property :possible_treatment, as: "possibleTreatment", types: [ + "OpenActive::Models::Schema::MedicalTherapy", "URI", - "null", ] - # @return [OpenActive::Models::Schema::DDxElement,URI] - define_property :differential_diagnosis, as: "differentialDiagnosis", types: [ - "OpenActive::Models::Schema::DDxElement", + # @return [OpenActive::Models::Schema::MedicalRiskFactor,URI] + define_property :risk_factor, as: "riskFactor", types: [ + "OpenActive::Models::Schema::MedicalRiskFactor", "URI", ] - # @return [OpenActive::Models::Schema::MedicalConditionStage,URI] - define_property :stage, as: "stage", types: [ - "OpenActive::Models::Schema::MedicalConditionStage", + # @return [OpenActive::Enums::Schema::EventStatusType,OpenActive::Models::Schema::MedicalStudyStatus,String,URI,nil] + define_property :status, as: "status", types: [ + "OpenActive::Enums::Schema::EventStatusType", + "OpenActive::Models::Schema::MedicalStudyStatus", + "string", "URI", + "null", ] # @return [String] @@ -50,56 +56,50 @@ def type "string", ] - # @return [OpenActive::Models::Schema::Drug,URI] - define_property :drug, as: "drug", types: [ - "OpenActive::Models::Schema::Drug", - "URI", - ] - - # @return [OpenActive::Models::Schema::MedicalTherapy,URI] - define_property :secondary_prevention, as: "secondaryPrevention", types: [ - "OpenActive::Models::Schema::MedicalTherapy", + # @return [OpenActive::Models::Schema::MedicalTest,URI] + define_property :typical_test, as: "typicalTest", types: [ + "OpenActive::Models::Schema::MedicalTest", "URI", ] - # @return [OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::AnatomicalSystem,OpenActive::Models::Schema::SuperficialAnatomy,URI] - define_property :associated_anatomy, as: "associatedAnatomy", types: [ - "OpenActive::Models::Schema::AnatomicalStructure", - "OpenActive::Models::Schema::AnatomicalSystem", - "OpenActive::Models::Schema::SuperficialAnatomy", + # @return [OpenActive::Models::Schema::DDxElement,URI] + define_property :differential_diagnosis, as: "differentialDiagnosis", types: [ + "OpenActive::Models::Schema::DDxElement", "URI", ] - # @return [OpenActive::Models::Schema::MedicalSignOrSymptom,URI] - define_property :sign_or_symptom, as: "signOrSymptom", types: [ - "OpenActive::Models::Schema::MedicalSignOrSymptom", + # @return [OpenActive::Models::Schema::Drug,URI] + define_property :drug, as: "drug", types: [ + "OpenActive::Models::Schema::Drug", "URI", ] - # @return [OpenActive::Models::Schema::MedicalTest,URI] - define_property :typical_test, as: "typicalTest", types: [ - "OpenActive::Models::Schema::MedicalTest", + # @return [OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::SuperficialAnatomy,OpenActive::Models::Schema::AnatomicalSystem,URI] + define_property :associated_anatomy, as: "associatedAnatomy", types: [ + "OpenActive::Models::Schema::AnatomicalStructure", + "OpenActive::Models::Schema::SuperficialAnatomy", + "OpenActive::Models::Schema::AnatomicalSystem", "URI", ] # @return [String] - define_property :epidemiology, as: "epidemiology", types: [ + define_property :possible_complication, as: "possibleComplication", types: [ "string", ] - # @return [OpenActive::Models::Schema::MedicalRiskFactor,URI] - define_property :risk_factor, as: "riskFactor", types: [ - "OpenActive::Models::Schema::MedicalRiskFactor", - "URI", - ] - # @return [String] define_property :expected_prognosis, as: "expectedPrognosis", types: [ "string", ] + # @return [OpenActive::Models::Schema::MedicalConditionStage,URI] + define_property :stage, as: "stage", types: [ + "OpenActive::Models::Schema::MedicalConditionStage", + "URI", + ] + # @return [OpenActive::Models::Schema::MedicalTherapy,URI] - define_property :possible_treatment, as: "possibleTreatment", types: [ + define_property :primary_prevention, as: "primaryPrevention", types: [ "OpenActive::Models::Schema::MedicalTherapy", "URI", ] diff --git a/lib/openactive/models/schema/medical_device.rb b/lib/openactive/models/schema/medical_device.rb index 45d5ebf6..aa5ab83e 100644 --- a/lib/openactive/models/schema/medical_device.rb +++ b/lib/openactive/models/schema/medical_device.rb @@ -8,10 +8,9 @@ def type "schema:MedicalDevice" end - # @return [OpenActive::Models::Schema::MedicalEntity,URI] - define_property :adverse_outcome, as: "adverseOutcome", types: [ - "OpenActive::Models::Schema::MedicalEntity", - "URI", + # @return [String] + define_property :post_op, as: "postOp", types: [ + "string", ] # @return [String] @@ -19,26 +18,27 @@ def type "string", ] - # @return [OpenActive::Models::Schema::MedicalEntity,URI] - define_property :serious_adverse_outcome, as: "seriousAdverseOutcome", types: [ - "OpenActive::Models::Schema::MedicalEntity", + # @return [String,OpenActive::Models::Schema::MedicalContraindication,URI] + define_property :contraindication, as: "contraindication", types: [ + "string", + "OpenActive::Models::Schema::MedicalContraindication", "URI", ] # @return [String] - define_property :post_op, as: "postOp", types: [ + define_property :procedure, as: "procedure", types: [ "string", ] - # @return [String] - define_property :procedure, as: "procedure", types: [ - "string", + # @return [OpenActive::Models::Schema::MedicalEntity,URI] + define_property :serious_adverse_outcome, as: "seriousAdverseOutcome", types: [ + "OpenActive::Models::Schema::MedicalEntity", + "URI", ] - # @return [String,OpenActive::Models::Schema::MedicalContraindication,URI] - define_property :contraindication, as: "contraindication", types: [ - "string", - "OpenActive::Models::Schema::MedicalContraindication", + # @return [OpenActive::Models::Schema::MedicalEntity,URI] + define_property :adverse_outcome, as: "adverseOutcome", types: [ + "OpenActive::Models::Schema::MedicalEntity", "URI", ] end diff --git a/lib/openactive/models/schema/medical_entity.rb b/lib/openactive/models/schema/medical_entity.rb index 0488899b..f0d70add 100644 --- a/lib/openactive/models/schema/medical_entity.rb +++ b/lib/openactive/models/schema/medical_entity.rb @@ -8,36 +8,15 @@ def type "schema:MedicalEntity" end - # @return [OpenActive::Models::Schema::DrugLegalStatus,String,OpenActive::Enums::Schema::MedicalEnumeration,URI,nil] - define_property :legal_status, as: "legalStatus", types: [ - "OpenActive::Models::Schema::DrugLegalStatus", - "string", - "OpenActive::Enums::Schema::MedicalEnumeration", - "URI", - "null", - ] - - # @return [OpenActive::Models::Schema::Grant,URI] - define_property :funding, as: "funding", types: [ - "OpenActive::Models::Schema::Grant", - "URI", - ] - - # @return [OpenActive::Models::Schema::MedicalStudy,URI] - define_property :study, as: "study", types: [ - "OpenActive::Models::Schema::MedicalStudy", - "URI", - ] - # @return [OpenActive::Models::Schema::MedicalCode,URI] define_property :code, as: "code", types: [ "OpenActive::Models::Schema::MedicalCode", "URI", ] - # @return [OpenActive::Models::Schema::MedicalGuideline,URI] - define_property :guideline, as: "guideline", types: [ - "OpenActive::Models::Schema::MedicalGuideline", + # @return [OpenActive::Models::Schema::MedicineSystem,URI] + define_property :medicine_system, as: "medicineSystem", types: [ + "OpenActive::Models::Schema::MedicineSystem", "URI", ] @@ -47,9 +26,9 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::MedicineSystem,URI] - define_property :medicine_system, as: "medicineSystem", types: [ - "OpenActive::Models::Schema::MedicineSystem", + # @return [OpenActive::Models::Schema::MedicalStudy,URI] + define_property :study, as: "study", types: [ + "OpenActive::Models::Schema::MedicalStudy", "URI", ] @@ -58,6 +37,27 @@ def type "OpenActive::Models::Schema::MedicalSpecialty", "URI", ] + + # @return [OpenActive::Models::Schema::Grant,URI] + define_property :funding, as: "funding", types: [ + "OpenActive::Models::Schema::Grant", + "URI", + ] + + # @return [OpenActive::Models::Schema::MedicalGuideline,URI] + define_property :guideline, as: "guideline", types: [ + "OpenActive::Models::Schema::MedicalGuideline", + "URI", + ] + + # @return [OpenActive::Models::Schema::DrugLegalStatus,OpenActive::Enums::Schema::MedicalEnumeration,String,URI,nil] + define_property :legal_status, as: "legalStatus", types: [ + "OpenActive::Models::Schema::DrugLegalStatus", + "OpenActive::Enums::Schema::MedicalEnumeration", + "string", + "URI", + "null", + ] end end end diff --git a/lib/openactive/models/schema/medical_guideline.rb b/lib/openactive/models/schema/medical_guideline.rb index b4c90659..2e1c87cd 100644 --- a/lib/openactive/models/schema/medical_guideline.rb +++ b/lib/openactive/models/schema/medical_guideline.rb @@ -8,6 +8,12 @@ def type "schema:MedicalGuideline" end + # @return [OpenActive::Models::Schema::MedicalEntity,URI] + define_property :guideline_subject, as: "guidelineSubject", types: [ + "OpenActive::Models::Schema::MedicalEntity", + "URI", + ] + # @return [OpenActive::Models::Schema::MedicalEvidenceLevel,URI] define_property :evidence_level, as: "evidenceLevel", types: [ "OpenActive::Models::Schema::MedicalEvidenceLevel", @@ -19,12 +25,6 @@ def type "string", ] - # @return [OpenActive::Models::Schema::MedicalEntity,URI] - define_property :guideline_subject, as: "guidelineSubject", types: [ - "OpenActive::Models::Schema::MedicalEntity", - "URI", - ] - # @return [Date,nil] define_property :guideline_date, as: "guidelineDate", types: [ "Date", diff --git a/lib/openactive/models/schema/medical_organization.rb b/lib/openactive/models/schema/medical_organization.rb index 7d22eb4c..f6573fae 100644 --- a/lib/openactive/models/schema/medical_organization.rb +++ b/lib/openactive/models/schema/medical_organization.rb @@ -8,10 +8,10 @@ def type "schema:MedicalOrganization" end - # @return [Boolean,nil] - define_property :is_accepting_new_patients, as: "isAcceptingNewPatients", types: [ - "bool", - "null", + # @return [OpenActive::Models::Schema::MedicalSpecialty,URI] + define_property :medical_specialty, as: "medicalSpecialty", types: [ + "OpenActive::Models::Schema::MedicalSpecialty", + "URI", ] # @return [String] @@ -19,10 +19,10 @@ def type "string", ] - # @return [OpenActive::Models::Schema::MedicalSpecialty,URI] - define_property :medical_specialty, as: "medicalSpecialty", types: [ - "OpenActive::Models::Schema::MedicalSpecialty", - "URI", + # @return [Boolean,nil] + define_property :is_accepting_new_patients, as: "isAcceptingNewPatients", types: [ + "bool", + "null", ] end end diff --git a/lib/openactive/models/schema/medical_procedure.rb b/lib/openactive/models/schema/medical_procedure.rb index 2337cb27..4ac4b52b 100644 --- a/lib/openactive/models/schema/medical_procedure.rb +++ b/lib/openactive/models/schema/medical_procedure.rb @@ -8,41 +8,41 @@ def type "schema:MedicalProcedure" end - # @return [OpenActive::Models::Schema::MedicalProcedureType,URI] - define_property :procedure_type, as: "procedureType", types: [ - "OpenActive::Models::Schema::MedicalProcedureType", - "URI", - ] - - # @return [OpenActive::Models::Schema::MedicalEntity,String,URI] - define_property :preparation, as: "preparation", types: [ - "OpenActive::Models::Schema::MedicalEntity", + # @return [String] + define_property :body_location, as: "bodyLocation", types: [ "string", - "URI", ] # @return [String] - define_property :body_location, as: "bodyLocation", types: [ + define_property :how_performed, as: "howPerformed", types: [ "string", ] - # @return [String,OpenActive::Enums::Schema::EventStatusType,OpenActive::Models::Schema::MedicalStudyStatus,URI,nil] + # @return [OpenActive::Models::Schema::MedicalProcedureType,URI] + define_property :procedure_type, as: "procedureType", types: [ + "OpenActive::Models::Schema::MedicalProcedureType", + "URI", + ] + + # @return [OpenActive::Enums::Schema::EventStatusType,OpenActive::Models::Schema::MedicalStudyStatus,String,URI,nil] define_property :status, as: "status", types: [ - "string", "OpenActive::Enums::Schema::EventStatusType", "OpenActive::Models::Schema::MedicalStudyStatus", + "string", "URI", "null", ] # @return [String] - define_property :how_performed, as: "howPerformed", types: [ + define_property :followup, as: "followup", types: [ "string", ] - # @return [String] - define_property :followup, as: "followup", types: [ + # @return [String,OpenActive::Models::Schema::MedicalEntity,URI] + define_property :preparation, as: "preparation", types: [ "string", + "OpenActive::Models::Schema::MedicalEntity", + "URI", ] end end diff --git a/lib/openactive/models/schema/medical_sign.rb b/lib/openactive/models/schema/medical_sign.rb index 2a5d4502..8175d8a4 100644 --- a/lib/openactive/models/schema/medical_sign.rb +++ b/lib/openactive/models/schema/medical_sign.rb @@ -8,17 +8,17 @@ def type "schema:MedicalSign" end - # @return [OpenActive::Models::Schema::MedicalTest,URI] - define_property :identifying_test, as: "identifyingTest", types: [ - "OpenActive::Models::Schema::MedicalTest", - "URI", - ] - # @return [OpenActive::Models::Schema::PhysicalExam,URI] define_property :identifying_exam, as: "identifyingExam", types: [ "OpenActive::Models::Schema::PhysicalExam", "URI", ] + + # @return [OpenActive::Models::Schema::MedicalTest,URI] + define_property :identifying_test, as: "identifyingTest", types: [ + "OpenActive::Models::Schema::MedicalTest", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/medical_study.rb b/lib/openactive/models/schema/medical_study.rb index a9dd6693..9efb0a7c 100644 --- a/lib/openactive/models/schema/medical_study.rb +++ b/lib/openactive/models/schema/medical_study.rb @@ -8,21 +8,6 @@ def type "schema:MedicalStudy" end - # @return [OpenActive::Models::Schema::MedicalCondition,URI] - define_property :health_condition, as: "healthCondition", types: [ - "OpenActive::Models::Schema::MedicalCondition", - "URI", - ] - - # @return [String,OpenActive::Enums::Schema::EventStatusType,OpenActive::Models::Schema::MedicalStudyStatus,URI,nil] - define_property :status, as: "status", types: [ - "string", - "OpenActive::Enums::Schema::EventStatusType", - "OpenActive::Models::Schema::MedicalStudyStatus", - "URI", - "null", - ] - # @return [OpenActive::Models::Schema::MedicalEntity,URI] define_property :study_subject, as: "studySubject", types: [ "OpenActive::Models::Schema::MedicalEntity", @@ -35,12 +20,27 @@ def type "URI", ] + # @return [OpenActive::Enums::Schema::EventStatusType,OpenActive::Models::Schema::MedicalStudyStatus,String,URI,nil] + define_property :status, as: "status", types: [ + "OpenActive::Enums::Schema::EventStatusType", + "OpenActive::Models::Schema::MedicalStudyStatus", + "string", + "URI", + "null", + ] + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] define_property :sponsor, as: "sponsor", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] + + # @return [OpenActive::Models::Schema::MedicalCondition,URI] + define_property :health_condition, as: "healthCondition", types: [ + "OpenActive::Models::Schema::MedicalCondition", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/medical_test.rb b/lib/openactive/models/schema/medical_test.rb index 8c7bb63f..f80b8eab 100644 --- a/lib/openactive/models/schema/medical_test.rb +++ b/lib/openactive/models/schema/medical_test.rb @@ -14,19 +14,6 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Drug,URI] - define_property :affected_by, as: "affectedBy", types: [ - "OpenActive::Models::Schema::Drug", - "URI", - ] - - # @return [String,OpenActive::Enums::Schema::MedicalEnumeration,nil] - define_property :normal_range, as: "normalRange", types: [ - "string", - "OpenActive::Enums::Schema::MedicalEnumeration", - "null", - ] - # @return [OpenActive::Models::Schema::MedicalSign,URI] define_property :sign_detected, as: "signDetected", types: [ "OpenActive::Models::Schema::MedicalSign", @@ -38,6 +25,19 @@ def type "OpenActive::Models::Schema::MedicalDevice", "URI", ] + + # @return [OpenActive::Enums::Schema::MedicalEnumeration,String,nil] + define_property :normal_range, as: "normalRange", types: [ + "OpenActive::Enums::Schema::MedicalEnumeration", + "string", + "null", + ] + + # @return [OpenActive::Models::Schema::Drug,URI] + define_property :affected_by, as: "affectedBy", types: [ + "OpenActive::Models::Schema::Drug", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/medical_therapy.rb b/lib/openactive/models/schema/medical_therapy.rb index e8cc1ebe..67662e0e 100644 --- a/lib/openactive/models/schema/medical_therapy.rb +++ b/lib/openactive/models/schema/medical_therapy.rb @@ -8,6 +8,13 @@ def type "schema:MedicalTherapy" end + # @return [String,OpenActive::Models::Schema::MedicalContraindication,URI] + define_property :contraindication, as: "contraindication", types: [ + "string", + "OpenActive::Models::Schema::MedicalContraindication", + "URI", + ] + # @return [OpenActive::Models::Schema::MedicalTherapy,URI] define_property :duplicate_therapy, as: "duplicateTherapy", types: [ "OpenActive::Models::Schema::MedicalTherapy", @@ -19,13 +26,6 @@ def type "OpenActive::Models::Schema::MedicalEntity", "URI", ] - - # @return [String,OpenActive::Models::Schema::MedicalContraindication,URI] - define_property :contraindication, as: "contraindication", types: [ - "string", - "OpenActive::Models::Schema::MedicalContraindication", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/medical_web_page.rb b/lib/openactive/models/schema/medical_web_page.rb index 7ecb2767..cd680501 100644 --- a/lib/openactive/models/schema/medical_web_page.rb +++ b/lib/openactive/models/schema/medical_web_page.rb @@ -13,10 +13,10 @@ def type "string", ] - # @return [OpenActive::Models::Schema::MedicalAudienceType,OpenActive::Models::Schema::MedicalAudience,URI] + # @return [OpenActive::Models::Schema::MedicalAudience,OpenActive::Models::Schema::MedicalAudienceType,URI] define_property :medical_audience, as: "medicalAudience", types: [ - "OpenActive::Models::Schema::MedicalAudienceType", "OpenActive::Models::Schema::MedicalAudience", + "OpenActive::Models::Schema::MedicalAudienceType", "URI", ] end diff --git a/lib/openactive/models/schema/menu.rb b/lib/openactive/models/schema/menu.rb index 7bcb7115..700d33ec 100644 --- a/lib/openactive/models/schema/menu.rb +++ b/lib/openactive/models/schema/menu.rb @@ -8,17 +8,17 @@ def type "schema:Menu" end - # @return [OpenActive::Models::Schema::MenuSection,URI] - define_property :has_menu_section, as: "hasMenuSection", types: [ - "OpenActive::Models::Schema::MenuSection", - "URI", - ] - # @return [OpenActive::Models::Schema::MenuItem,URI] define_property :has_menu_item, as: "hasMenuItem", types: [ "OpenActive::Models::Schema::MenuItem", "URI", ] + + # @return [OpenActive::Models::Schema::MenuSection,URI] + define_property :has_menu_section, as: "hasMenuSection", types: [ + "OpenActive::Models::Schema::MenuSection", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/menu_item.rb b/lib/openactive/models/schema/menu_item.rb index 971a8080..d5933180 100644 --- a/lib/openactive/models/schema/menu_item.rb +++ b/lib/openactive/models/schema/menu_item.rb @@ -8,17 +8,23 @@ def type "schema:MenuItem" end - # @return [OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::MenuSection,URI] + # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI] + define_property :offers, as: "offers", types: [ + "OpenActive::Models::Schema::Demand", + "OpenActive::Models::Schema::Offer", + "URI", + ] + + # @return [OpenActive::Models::Schema::MenuSection,OpenActive::Models::Schema::MenuItem,URI] define_property :menu_add_on, as: "menuAddOn", types: [ - "OpenActive::Models::Schema::MenuItem", "OpenActive::Models::Schema::MenuSection", + "OpenActive::Models::Schema::MenuItem", "URI", ] - # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] - define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", - "OpenActive::Models::Schema::Demand", + # @return [OpenActive::Models::Schema::NutritionInformation,URI] + define_property :nutrition, as: "nutrition", types: [ + "OpenActive::Models::Schema::NutritionInformation", "URI", ] @@ -27,12 +33,6 @@ def type "OpenActive::Enums::Schema::RestrictedDiet", "null", ] - - # @return [OpenActive::Models::Schema::NutritionInformation,URI] - define_property :nutrition, as: "nutrition", types: [ - "OpenActive::Models::Schema::NutritionInformation", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/menu_section.rb b/lib/openactive/models/schema/menu_section.rb index 494610f9..3f6497ca 100644 --- a/lib/openactive/models/schema/menu_section.rb +++ b/lib/openactive/models/schema/menu_section.rb @@ -8,17 +8,17 @@ def type "schema:MenuSection" end - # @return [OpenActive::Models::Schema::MenuSection,URI] - define_property :has_menu_section, as: "hasMenuSection", types: [ - "OpenActive::Models::Schema::MenuSection", - "URI", - ] - # @return [OpenActive::Models::Schema::MenuItem,URI] define_property :has_menu_item, as: "hasMenuItem", types: [ "OpenActive::Models::Schema::MenuItem", "URI", ] + + # @return [OpenActive::Models::Schema::MenuSection,URI] + define_property :has_menu_section, as: "hasMenuSection", types: [ + "OpenActive::Models::Schema::MenuSection", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/merchant_return_policy.rb b/lib/openactive/models/schema/merchant_return_policy.rb index 840e166e..b3a04a83 100644 --- a/lib/openactive/models/schema/merchant_return_policy.rb +++ b/lib/openactive/models/schema/merchant_return_policy.rb @@ -8,17 +8,16 @@ def type "schema:MerchantReturnPolicy" end - # @return [OpenActive::Enums::Schema::MerchantReturnEnumeration,nil] - define_property :return_policy_category, as: "returnPolicyCategory", types: [ - "OpenActive::Enums::Schema::MerchantReturnEnumeration", + # @return [Boolean,nil] + define_property :in_store_returns_offered, as: "inStoreReturnsOffered", types: [ + "bool", "null", ] - # @return [OpenActive::Models::Schema::Country,String,URI] - define_property :return_policy_country, as: "returnPolicyCountry", types: [ - "OpenActive::Models::Schema::Country", - "string", - "URI", + # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] + define_property :item_condition, as: "itemCondition", types: [ + "OpenActive::Enums::Schema::OfferItemCondition", + "null", ] # @return [URI] @@ -26,18 +25,16 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] - define_property :restocking_fee, as: "restockingFee", types: [ - "OpenActive::Models::Schema::MonetaryAmount", - "Number", - "URI", + # @return [OpenActive::Enums::Schema::MerchantReturnEnumeration,nil] + define_property :return_policy_category, as: "returnPolicyCategory", types: [ + "OpenActive::Enums::Schema::MerchantReturnEnumeration", "null", ] - # @return [OpenActive::Models::Schema::MonetaryAmount,URI] - define_property :item_defect_return_shipping_fees_amount, as: "itemDefectReturnShippingFeesAmount", types: [ - "OpenActive::Models::Schema::MonetaryAmount", - "URI", + # @return [OpenActive::Enums::Schema::ReturnMethodEnumeration,nil] + define_property :return_method, as: "returnMethod", types: [ + "OpenActive::Enums::Schema::ReturnMethodEnumeration", + "null", ] # @return [OpenActive::Enums::Schema::ReturnFeesEnumeration,nil] @@ -46,21 +43,23 @@ def type "null", ] - # @return [Boolean,nil] - define_property :in_store_returns_offered, as: "inStoreReturnsOffered", types: [ - "bool", + # @return [Date,DateTime,int,nil] + define_property :merchant_return_days, as: "merchantReturnDays", types: [ + "Date", + "DateTime", + "int", "null", ] - # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] - define_property :item_condition, as: "itemCondition", types: [ - "OpenActive::Enums::Schema::OfferItemCondition", - "null", + # @return [OpenActive::Models::Schema::PropertyValue,URI] + define_property :additional_property, as: "additionalProperty", types: [ + "OpenActive::Models::Schema::PropertyValue", + "URI", ] - # @return [OpenActive::Enums::Schema::ReturnLabelSourceEnumeration,nil] - define_property :item_defect_return_label_source, as: "itemDefectReturnLabelSource", types: [ - "OpenActive::Enums::Schema::ReturnLabelSourceEnumeration", + # @return [OpenActive::Enums::Schema::RefundTypeEnumeration,nil] + define_property :refund_type, as: "refundType", types: [ + "OpenActive::Enums::Schema::RefundTypeEnumeration", "null", ] @@ -70,54 +69,55 @@ def type "null", ] - # @return [OpenActive::Models::Schema::MonetaryAmount,URI] - define_property :customer_remorse_return_shipping_fees_amount, as: "customerRemorseReturnShippingFeesAmount", types: [ - "OpenActive::Models::Schema::MonetaryAmount", - "URI", + # @return [OpenActive::Enums::Schema::ReturnFeesEnumeration,nil] + define_property :customer_remorse_return_fees, as: "customerRemorseReturnFees", types: [ + "OpenActive::Enums::Schema::ReturnFeesEnumeration", + "null", ] - # @return [OpenActive::Enums::Schema::RefundTypeEnumeration,nil] - define_property :refund_type, as: "refundType", types: [ - "OpenActive::Enums::Schema::RefundTypeEnumeration", + # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + define_property :restocking_fee, as: "restockingFee", types: [ + "Number", + "OpenActive::Models::Schema::MonetaryAmount", + "URI", "null", ] # @return [OpenActive::Models::Schema::MonetaryAmount,URI] - define_property :return_shipping_fees_amount, as: "returnShippingFeesAmount", types: [ + define_property :item_defect_return_shipping_fees_amount, as: "itemDefectReturnShippingFeesAmount", types: [ "OpenActive::Models::Schema::MonetaryAmount", "URI", ] - # @return [DateTime,int,Date,nil] - define_property :merchant_return_days, as: "merchantReturnDays", types: [ - "DateTime", - "int", - "Date", + # @return [OpenActive::Enums::Schema::ReturnFeesEnumeration,nil] + define_property :return_fees, as: "returnFees", types: [ + "OpenActive::Enums::Schema::ReturnFeesEnumeration", "null", ] - # @return [OpenActive::Enums::Schema::ReturnMethodEnumeration,nil] - define_property :return_method, as: "returnMethod", types: [ - "OpenActive::Enums::Schema::ReturnMethodEnumeration", + # @return [OpenActive::Enums::Schema::ReturnLabelSourceEnumeration,nil] + define_property :customer_remorse_return_label_source, as: "customerRemorseReturnLabelSource", types: [ + "OpenActive::Enums::Schema::ReturnLabelSourceEnumeration", "null", ] - # @return [OpenActive::Models::Schema::PropertyValue,URI] - define_property :additional_property, as: "additionalProperty", types: [ - "OpenActive::Models::Schema::PropertyValue", - "URI", - ] - # @return [OpenActive::Enums::Schema::ReturnLabelSourceEnumeration,nil] - define_property :customer_remorse_return_label_source, as: "customerRemorseReturnLabelSource", types: [ + define_property :item_defect_return_label_source, as: "itemDefectReturnLabelSource", types: [ "OpenActive::Enums::Schema::ReturnLabelSourceEnumeration", "null", ] - # @return [OpenActive::Enums::Schema::ReturnFeesEnumeration,nil] - define_property :customer_remorse_return_fees, as: "customerRemorseReturnFees", types: [ - "OpenActive::Enums::Schema::ReturnFeesEnumeration", - "null", + # @return [OpenActive::Models::Schema::Country,String,URI] + define_property :applicable_country, as: "applicableCountry", types: [ + "OpenActive::Models::Schema::Country", + "string", + "URI", + ] + + # @return [OpenActive::Models::Schema::MonetaryAmount,URI] + define_property :customer_remorse_return_shipping_fees_amount, as: "customerRemorseReturnShippingFeesAmount", types: [ + "OpenActive::Models::Schema::MonetaryAmount", + "URI", ] # @return [OpenActive::Models::Schema::MerchantReturnPolicySeasonalOverride,URI] @@ -126,18 +126,18 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::MonetaryAmount,URI] + define_property :return_shipping_fees_amount, as: "returnShippingFeesAmount", types: [ + "OpenActive::Models::Schema::MonetaryAmount", + "URI", + ] + # @return [String,OpenActive::Models::Schema::Country,URI] - define_property :applicable_country, as: "applicableCountry", types: [ + define_property :return_policy_country, as: "returnPolicyCountry", types: [ "string", "OpenActive::Models::Schema::Country", "URI", ] - - # @return [OpenActive::Enums::Schema::ReturnFeesEnumeration,nil] - define_property :return_fees, as: "returnFees", types: [ - "OpenActive::Enums::Schema::ReturnFeesEnumeration", - "null", - ] end end end diff --git a/lib/openactive/models/schema/merchant_return_policy_seasonal_override.rb b/lib/openactive/models/schema/merchant_return_policy_seasonal_override.rb index 28b84421..05ba8966 100644 --- a/lib/openactive/models/schema/merchant_return_policy_seasonal_override.rb +++ b/lib/openactive/models/schema/merchant_return_policy_seasonal_override.rb @@ -14,25 +14,25 @@ def type "null", ] - # @return [DateTime,Date,nil] + # @return [Date,DateTime,nil] define_property :start_date, as: "startDate", types: [ - "DateTime", "Date", + "DateTime", "null", ] - # @return [Date,DateTime,nil] - define_property :end_date, as: "endDate", types: [ + # @return [Date,DateTime,int,nil] + define_property :merchant_return_days, as: "merchantReturnDays", types: [ "Date", "DateTime", + "int", "null", ] - # @return [DateTime,int,Date,nil] - define_property :merchant_return_days, as: "merchantReturnDays", types: [ - "DateTime", - "int", + # @return [Date,DateTime,nil] + define_property :end_date, as: "endDate", types: [ "Date", + "DateTime", "null", ] end diff --git a/lib/openactive/models/schema/message.rb b/lib/openactive/models/schema/message.rb index a6448d88..402652b6 100644 --- a/lib/openactive/models/schema/message.rb +++ b/lib/openactive/models/schema/message.rb @@ -8,20 +8,19 @@ def type "schema:Message" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] - define_property :bcc_recipient, as: "bccRecipient", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :cc_recipient, as: "ccRecipient", types: [ "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] - define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :bcc_recipient, as: "bccRecipient", types: [ "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] @@ -31,49 +30,50 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::ContactPoint,URI] - define_property :cc_recipient, as: "ccRecipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] + define_property :recipient, as: "recipient", types: [ "OpenActive::Models::Schema::ContactPoint", + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :message_attachment, as: "messageAttachment", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", - ] - - # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] define_property :to_recipient, as: "toRecipient", types: [ - "OpenActive::Models::Schema::ContactPoint", - "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", "URI", ] - # @return [DateTime,nil] - define_property :date_sent, as: "dateSent", types: [ - "DateTime", - "null", - ] - - # @return [Date,DateTime,nil] + # @return [DateTime,Date,nil] define_property :date_read, as: "dateRead", types: [ - "Date", "DateTime", + "Date", "null", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :sender, as: "sender", types: [ - "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", "URI", ] + + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :message_attachment, as: "messageAttachment", types: [ + "OpenActive::Models::Schema::CreativeWork", + "URI", + ] + + # @return [DateTime,nil] + define_property :date_sent, as: "dateSent", types: [ + "DateTime", + "null", + ] end end end diff --git a/lib/openactive/models/schema/molecular_entity.rb b/lib/openactive/models/schema/molecular_entity.rb index ad8fa42e..02d89e61 100644 --- a/lib/openactive/models/schema/molecular_entity.rb +++ b/lib/openactive/models/schema/molecular_entity.rb @@ -9,20 +9,13 @@ def type end # @return [String] - define_property :in_ch_ikey, as: "inChIKey", types: [ + define_property :smiles, as: "smiles", types: [ "string", ] # @return [String] - define_property :iupac_name, as: "iupacName", types: [ - "string", - ] - - # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :monoisotopic_molecular_weight, as: "monoisotopicMolecularWeight", types: [ + define_property :in_ch_i, as: "inChI", types: [ "string", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", ] # @return [String] @@ -30,9 +23,10 @@ def type "string", ] - # @return [OpenActive::Models::Schema::DefinedTerm,URI] - define_property :potential_use, as: "potentialUse", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :monoisotopic_molecular_weight, as: "monoisotopicMolecularWeight", types: [ + "string", + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] @@ -42,21 +36,27 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI] - define_property :molecular_weight, as: "molecularWeight", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String] + define_property :in_ch_ikey, as: "inChIKey", types: [ "string", + ] + + # @return [OpenActive::Models::Schema::DefinedTerm,URI] + define_property :potential_use, as: "potentialUse", types: [ + "OpenActive::Models::Schema::DefinedTerm", "URI", ] # @return [String] - define_property :in_ch_i, as: "inChI", types: [ + define_property :iupac_name, as: "iupacName", types: [ "string", ] - # @return [String] - define_property :smiles, as: "smiles", types: [ + # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :molecular_weight, as: "molecularWeight", types: [ "string", + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] end end diff --git a/lib/openactive/models/schema/monetary_amount.rb b/lib/openactive/models/schema/monetary_amount.rb index 7fd7167e..caa3b324 100644 --- a/lib/openactive/models/schema/monetary_amount.rb +++ b/lib/openactive/models/schema/monetary_amount.rb @@ -8,44 +8,44 @@ def type "schema:MonetaryAmount" end - # @return [BigDecimal,nil] - define_property :max_value, as: "maxValue", types: [ - "Number", + # @return [Date,DateTime,nil] + define_property :valid_from, as: "validFrom", types: [ + "Date", + "DateTime", "null", ] - # @return [BigDecimal,nil] - define_property :min_value, as: "minValue", types: [ + # @return [String] + define_property :currency, as: "currency", types: [ + "string", + ] + + # @return [BigDecimal,Boolean,String,OpenActive::Models::Schema::StructuredValue,URI,nil] + define_property :value, as: "value", types: [ "Number", + "bool", + "string", + "OpenActive::Models::Schema::StructuredValue", + "URI", "null", ] - # @return [DateTime,Date,nil] - define_property :valid_from, as: "validFrom", types: [ - "DateTime", + # @return [Date,DateTime,nil] + define_property :valid_through, as: "validThrough", types: [ "Date", + "DateTime", "null", ] - # @return [String,BigDecimal,OpenActive::Models::Schema::StructuredValue,Boolean,URI,nil] - define_property :value, as: "value", types: [ - "string", + # @return [BigDecimal,nil] + define_property :max_value, as: "maxValue", types: [ "Number", - "OpenActive::Models::Schema::StructuredValue", - "bool", - "URI", "null", ] - # @return [String] - define_property :currency, as: "currency", types: [ - "string", - ] - - # @return [DateTime,Date,nil] - define_property :valid_through, as: "validThrough", types: [ - "DateTime", - "Date", + # @return [BigDecimal,nil] + define_property :min_value, as: "minValue", types: [ + "Number", "null", ] end diff --git a/lib/openactive/models/schema/monetary_grant.rb b/lib/openactive/models/schema/monetary_grant.rb index ecb66d4f..1bb3e51a 100644 --- a/lib/openactive/models/schema/monetary_grant.rb +++ b/lib/openactive/models/schema/monetary_grant.rb @@ -15,10 +15,10 @@ def type "URI", ] - # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + # @return [OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] define_property :amount, as: "amount", types: [ - "Number", "OpenActive::Models::Schema::MonetaryAmount", + "Number", "URI", "null", ] diff --git a/lib/openactive/models/schema/money_transfer.rb b/lib/openactive/models/schema/money_transfer.rb index f4f80d38..4047d893 100644 --- a/lib/openactive/models/schema/money_transfer.rb +++ b/lib/openactive/models/schema/money_transfer.rb @@ -8,17 +8,17 @@ def type "schema:MoneyTransfer" end - # @return [OpenActive::Models::Schema::BankOrCreditUnion,String,URI] + # @return [String,OpenActive::Models::Schema::BankOrCreditUnion,URI] define_property :beneficiary_bank, as: "beneficiaryBank", types: [ - "OpenActive::Models::Schema::BankOrCreditUnion", "string", + "OpenActive::Models::Schema::BankOrCreditUnion", "URI", ] - # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + # @return [OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] define_property :amount, as: "amount", types: [ - "Number", "OpenActive::Models::Schema::MonetaryAmount", + "Number", "URI", "null", ] diff --git a/lib/openactive/models/schema/move_action.rb b/lib/openactive/models/schema/move_action.rb index 4cf62990..06fe62e2 100644 --- a/lib/openactive/models/schema/move_action.rb +++ b/lib/openactive/models/schema/move_action.rb @@ -9,13 +9,13 @@ def type end # @return [OpenActive::Models::Schema::Place,URI] - define_property :from_location, as: "fromLocation", types: [ + define_property :to_location, as: "toLocation", types: [ "OpenActive::Models::Schema::Place", "URI", ] # @return [OpenActive::Models::Schema::Place,URI] - define_property :to_location, as: "toLocation", types: [ + define_property :from_location, as: "fromLocation", types: [ "OpenActive::Models::Schema::Place", "URI", ] diff --git a/lib/openactive/models/schema/movie.rb b/lib/openactive/models/schema/movie.rb index da67fe89..c81f95b8 100644 --- a/lib/openactive/models/schema/movie.rb +++ b/lib/openactive/models/schema/movie.rb @@ -8,15 +8,15 @@ def type "schema:Movie" end - # @return [OpenActive::Models::Schema::Country,URI] - define_property :country_of_origin, as: "countryOfOrigin", types: [ - "OpenActive::Models::Schema::Country", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actors, as: "actors", types: [ + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Country,URI] + define_property :country_of_origin, as: "countryOfOrigin", types: [ + "OpenActive::Models::Schema::Country", "URI", ] @@ -26,22 +26,28 @@ def type "string", ] - # @return [OpenActive::Models::Schema::Language,String,URI] - define_property :subtitle_language, as: "subtitleLanguage", types: [ - "OpenActive::Models::Schema::Language", - "string", + # @return [OpenActive::Models::Schema::VideoObject,URI] + define_property :trailer, as: "trailer", types: [ + "OpenActive::Models::Schema::VideoObject", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :production_company, as: "productionCompany", types: [ + "OpenActive::Models::Schema::Organization", + "URI", + ] + + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] + define_property :music_by, as: "musicBy", types: [ "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::MusicGroup", "URI", ] - # @return [OpenActive::Models::Schema::VideoObject,URI] - define_property :trailer, as: "trailer", types: [ - "OpenActive::Models::Schema::VideoObject", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :directors, as: "directors", types: [ + "OpenActive::Models::Schema::Person", "URI", ] @@ -52,27 +58,21 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :production_company, as: "productionCompany", types: [ - "OpenActive::Models::Schema::Organization", + # @return [String,OpenActive::Models::Schema::Language,URI] + define_property :subtitle_language, as: "subtitleLanguage", types: [ + "string", + "OpenActive::Models::Schema::Language", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] - define_property :music_by, as: "musicBy", types: [ + define_property :director, as: "director", types: [ "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::MusicGroup", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/movie_series.rb b/lib/openactive/models/schema/movie_series.rb index ed07ba64..b020700b 100644 --- a/lib/openactive/models/schema/movie_series.rb +++ b/lib/openactive/models/schema/movie_series.rb @@ -9,13 +9,7 @@ def type end # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ + define_property :actors, as: "actors", types: [ "OpenActive::Models::Schema::Person", "URI", ] @@ -32,21 +26,27 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] + define_property :music_by, as: "musicBy", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::MusicGroup", + "URI", + ] + # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ + define_property :directors, as: "directors", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] - define_property :music_by, as: "musicBy", types: [ + # @return [OpenActive::Models::Schema::Person,URI] + define_property :director, as: "director", types: [ "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::MusicGroup", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/muscle.rb b/lib/openactive/models/schema/muscle.rb index afb761aa..f5b5b352 100644 --- a/lib/openactive/models/schema/muscle.rb +++ b/lib/openactive/models/schema/muscle.rb @@ -8,16 +8,15 @@ def type "schema:Muscle" end - # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :insertion, as: "insertion", types: [ - "OpenActive::Models::Schema::AnatomicalStructure", + # @return [OpenActive::Models::Schema::Vessel,URI] + define_property :blood_supply, as: "bloodSupply", types: [ + "OpenActive::Models::Schema::Vessel", "URI", ] - # @return [OpenActive::Models::Schema::Muscle,URI] - define_property :antagonist, as: "antagonist", types: [ - "OpenActive::Models::Schema::Muscle", - "URI", + # @return [String] + define_property :muscle_action, as: "muscleAction", types: [ + "string", ] # @return [OpenActive::Models::Schema::Nerve,URI] @@ -26,15 +25,16 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Vessel,URI] - define_property :blood_supply, as: "bloodSupply", types: [ - "OpenActive::Models::Schema::Vessel", + # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] + define_property :insertion, as: "insertion", types: [ + "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] - # @return [String] - define_property :muscle_action, as: "muscleAction", types: [ - "string", + # @return [OpenActive::Models::Schema::Muscle,URI] + define_property :antagonist, as: "antagonist", types: [ + "OpenActive::Models::Schema::Muscle", + "URI", ] end end diff --git a/lib/openactive/models/schema/music_album.rb b/lib/openactive/models/schema/music_album.rb index 4d968206..f4e7dc63 100644 --- a/lib/openactive/models/schema/music_album.rb +++ b/lib/openactive/models/schema/music_album.rb @@ -8,6 +8,12 @@ def type "schema:MusicAlbum" end + # @return [OpenActive::Models::Schema::MusicRelease,URI] + define_property :album_release, as: "albumRelease", types: [ + "OpenActive::Models::Schema::MusicRelease", + "URI", + ] + # @return [OpenActive::Enums::Schema::MusicAlbumProductionType,nil] define_property :album_production_type, as: "albumProductionType", types: [ "OpenActive::Enums::Schema::MusicAlbumProductionType", @@ -20,12 +26,6 @@ def type "null", ] - # @return [OpenActive::Models::Schema::MusicRelease,URI] - define_property :album_release, as: "albumRelease", types: [ - "OpenActive::Models::Schema::MusicRelease", - "URI", - ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] define_property :by_artist, as: "byArtist", types: [ "OpenActive::Models::Schema::Person", diff --git a/lib/openactive/models/schema/music_composition.rb b/lib/openactive/models/schema/music_composition.rb index bec604c9..8b031966 100644 --- a/lib/openactive/models/schema/music_composition.rb +++ b/lib/openactive/models/schema/music_composition.rb @@ -8,33 +8,15 @@ def type "schema:MusicComposition" end - # @return [String] - define_property :iswc_code, as: "iswcCode", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :composer, as: "composer", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [String] - define_property :music_composition_form, as: "musicCompositionForm", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::MusicComposition,URI] define_property :included_composition, as: "includedComposition", types: [ "OpenActive::Models::Schema::MusicComposition", "URI", ] - # @return [OpenActive::Models::Schema::MusicRecording,URI] - define_property :recorded_as, as: "recordedAs", types: [ - "OpenActive::Models::Schema::MusicRecording", - "URI", + # @return [String] + define_property :musical_key, as: "musicalKey", types: [ + "string", ] # @return [OpenActive::Models::Schema::Event,URI] @@ -49,15 +31,23 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :composer, as: "composer", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", + ] + # @return [OpenActive::Models::Schema::CreativeWork,URI] define_property :lyrics, as: "lyrics", types: [ "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [String] - define_property :musical_key, as: "musicalKey", types: [ - "string", + # @return [OpenActive::Models::Schema::MusicRecording,URI] + define_property :recorded_as, as: "recordedAs", types: [ + "OpenActive::Models::Schema::MusicRecording", + "URI", ] # @return [OpenActive::Models::Schema::Person,URI] @@ -65,6 +55,16 @@ def type "OpenActive::Models::Schema::Person", "URI", ] + + # @return [String] + define_property :iswc_code, as: "iswcCode", types: [ + "string", + ] + + # @return [String] + define_property :music_composition_form, as: "musicCompositionForm", types: [ + "string", + ] end end end diff --git a/lib/openactive/models/schema/music_group.rb b/lib/openactive/models/schema/music_group.rb index 51d973bf..37cbe023 100644 --- a/lib/openactive/models/schema/music_group.rb +++ b/lib/openactive/models/schema/music_group.rb @@ -14,6 +14,19 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::MusicRecording,OpenActive::Models::Schema::ItemList,URI] + define_property :track, as: "track", types: [ + "OpenActive::Models::Schema::MusicRecording", + "OpenActive::Models::Schema::ItemList", + "URI", + ] + + # @return [OpenActive::Models::Schema::MusicAlbum,URI] + define_property :album, as: "album", types: [ + "OpenActive::Models::Schema::MusicAlbum", + "URI", + ] + # @return [URI,String] define_property :genre, as: "genre", types: [ "URI", @@ -31,19 +44,6 @@ def type "OpenActive::Models::Schema::MusicAlbum", "URI", ] - - # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::MusicRecording,URI] - define_property :track, as: "track", types: [ - "OpenActive::Models::Schema::ItemList", - "OpenActive::Models::Schema::MusicRecording", - "URI", - ] - - # @return [OpenActive::Models::Schema::MusicAlbum,URI] - define_property :album, as: "album", types: [ - "OpenActive::Models::Schema::MusicAlbum", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/music_playlist.rb b/lib/openactive/models/schema/music_playlist.rb index 99b7c63c..d220b9b6 100644 --- a/lib/openactive/models/schema/music_playlist.rb +++ b/lib/openactive/models/schema/music_playlist.rb @@ -14,18 +14,18 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::MusicRecording,OpenActive::Models::Schema::ItemList,URI] + define_property :track, as: "track", types: [ + "OpenActive::Models::Schema::MusicRecording", + "OpenActive::Models::Schema::ItemList", + "URI", + ] + # @return [int,nil] define_property :num_tracks, as: "numTracks", types: [ "int", "null", ] - - # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::MusicRecording,URI] - define_property :track, as: "track", types: [ - "OpenActive::Models::Schema::ItemList", - "OpenActive::Models::Schema::MusicRecording", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/music_recording.rb b/lib/openactive/models/schema/music_recording.rb index 59d42b3d..c7f624ec 100644 --- a/lib/openactive/models/schema/music_recording.rb +++ b/lib/openactive/models/schema/music_recording.rb @@ -8,29 +8,30 @@ def type "schema:MusicRecording" end - # @return [String] - define_property :isrc_code, as: "isrcCode", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::MusicPlaylist,URI] define_property :in_playlist, as: "inPlaylist", types: [ "OpenActive::Models::Schema::MusicPlaylist", "URI", ] - # @return [OpenActive::Models::Schema::MusicAlbum,URI] - define_property :in_album, as: "inAlbum", types: [ - "OpenActive::Models::Schema::MusicAlbum", - "URI", - ] - # @return [OpenActive::Models::Schema::MusicComposition,URI] define_property :recording_of, as: "recordingOf", types: [ "OpenActive::Models::Schema::MusicComposition", "URI", ] + # @return [String] + define_property :isrc_code, as: "isrcCode", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] + define_property :by_artist, as: "byArtist", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::MusicGroup", + "URI", + ] + # @return [ActiveSupport::Duration,URI,nil] define_property :duration, as: "duration", types: [ "DateInterval", @@ -38,10 +39,9 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] - define_property :by_artist, as: "byArtist", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::MusicGroup", + # @return [OpenActive::Models::Schema::MusicAlbum,URI] + define_property :in_album, as: "inAlbum", types: [ + "OpenActive::Models::Schema::MusicAlbum", "URI", ] end diff --git a/lib/openactive/models/schema/music_release.rb b/lib/openactive/models/schema/music_release.rb index 6cd2a8f7..8fc71c59 100644 --- a/lib/openactive/models/schema/music_release.rb +++ b/lib/openactive/models/schema/music_release.rb @@ -8,12 +8,18 @@ def type "schema:MusicRelease" end - # @return [OpenActive::Models::Schema::MusicAlbum,URI] - define_property :release_of, as: "releaseOf", types: [ - "OpenActive::Models::Schema::MusicAlbum", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :credited_to, as: "creditedTo", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] + # @return [String] + define_property :catalog_number, as: "catalogNumber", types: [ + "string", + ] + # @return [OpenActive::Enums::Schema::MusicReleaseFormatType,nil] define_property :music_release_format, as: "musicReleaseFormat", types: [ "OpenActive::Enums::Schema::MusicReleaseFormatType", @@ -27,22 +33,16 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :credited_to, as: "creditedTo", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", - "URI", - ] - # @return [OpenActive::Models::Schema::Organization,URI] define_property :record_label, as: "recordLabel", types: [ "OpenActive::Models::Schema::Organization", "URI", ] - # @return [String] - define_property :catalog_number, as: "catalogNumber", types: [ - "string", + # @return [OpenActive::Models::Schema::MusicAlbum,URI] + define_property :release_of, as: "releaseOf", types: [ + "OpenActive::Models::Schema::MusicAlbum", + "URI", ] end end diff --git a/lib/openactive/models/schema/nerve.rb b/lib/openactive/models/schema/nerve.rb index b0ada109..2b706064 100644 --- a/lib/openactive/models/schema/nerve.rb +++ b/lib/openactive/models/schema/nerve.rb @@ -8,15 +8,21 @@ def type "schema:Nerve" end - # @return [OpenActive::Models::Schema::SuperficialAnatomy,OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :sensory_unit, as: "sensoryUnit", types: [ - "OpenActive::Models::Schema::SuperficialAnatomy", + # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] + define_property :branch, as: "branch", types: [ "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] - # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :branch, as: "branch", types: [ + # @return [OpenActive::Models::Schema::Muscle,URI] + define_property :nerve_motor, as: "nerveMotor", types: [ + "OpenActive::Models::Schema::Muscle", + "URI", + ] + + # @return [OpenActive::Models::Schema::SuperficialAnatomy,OpenActive::Models::Schema::AnatomicalStructure,URI] + define_property :sensory_unit, as: "sensoryUnit", types: [ + "OpenActive::Models::Schema::SuperficialAnatomy", "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] @@ -26,12 +32,6 @@ def type "OpenActive::Models::Schema::BrainStructure", "URI", ] - - # @return [OpenActive::Models::Schema::Muscle,URI] - define_property :nerve_motor, as: "nerveMotor", types: [ - "OpenActive::Models::Schema::Muscle", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/news_article.rb b/lib/openactive/models/schema/news_article.rb index 50005efe..c4cd9b07 100644 --- a/lib/openactive/models/schema/news_article.rb +++ b/lib/openactive/models/schema/news_article.rb @@ -14,7 +14,7 @@ def type ] # @return [String] - define_property :print_column, as: "printColumn", types: [ + define_property :dateline, as: "dateline", types: [ "string", ] @@ -29,7 +29,7 @@ def type ] # @return [String] - define_property :dateline, as: "dateline", types: [ + define_property :print_column, as: "printColumn", types: [ "string", ] end diff --git a/lib/openactive/models/schema/news_media_organization.rb b/lib/openactive/models/schema/news_media_organization.rb index 55d6ad1b..3ea5f8d1 100644 --- a/lib/openactive/models/schema/news_media_organization.rb +++ b/lib/openactive/models/schema/news_media_organization.rb @@ -8,24 +8,18 @@ def type "schema:NewsMediaOrganization" end - # @return [URI,OpenActive::Models::Schema::AboutPage,String,OpenActive::Models::Schema::CreativeWork] - define_property :ownership_funding_info, as: "ownershipFundingInfo", types: [ - "URI", - "OpenActive::Models::Schema::AboutPage", - "string", - "OpenActive::Models::Schema::CreativeWork", - ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :corrections_policy, as: "correctionsPolicy", types: [ + define_property :mission_coverage_priorities_policy, as: "missionCoveragePrioritiesPolicy", types: [ "URI", "OpenActive::Models::Schema::CreativeWork", ] - # @return [URI,OpenActive::Models::Schema::Article] - define_property :diversity_staffing_report, as: "diversityStaffingReport", types: [ + # @return [String,OpenActive::Models::Schema::CreativeWork,URI,OpenActive::Models::Schema::AboutPage] + define_property :ownership_funding_info, as: "ownershipFundingInfo", types: [ + "string", + "OpenActive::Models::Schema::CreativeWork", "URI", - "OpenActive::Models::Schema::Article", + "OpenActive::Models::Schema::AboutPage", ] # @return [OpenActive::Models::Schema::CreativeWork,URI] @@ -34,44 +28,50 @@ def type "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :ethics_policy, as: "ethicsPolicy", types: [ - "URI", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :no_bylines_policy, as: "noBylinesPolicy", types: [ "OpenActive::Models::Schema::CreativeWork", + "URI", ] # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :mission_coverage_priorities_policy, as: "missionCoveragePrioritiesPolicy", types: [ + define_property :actionable_feedback_policy, as: "actionableFeedbackPolicy", types: [ "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :actionable_feedback_policy, as: "actionableFeedbackPolicy", types: [ - "URI", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :verification_fact_checking_policy, as: "verificationFactCheckingPolicy", types: [ "OpenActive::Models::Schema::CreativeWork", + "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] + # @return [OpenActive::Models::Schema::CreativeWork,URI] define_property :masthead, as: "masthead", types: [ - "URI", "OpenActive::Models::Schema::CreativeWork", + "URI", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :unnamed_sources_policy, as: "unnamedSourcesPolicy", types: [ - "OpenActive::Models::Schema::CreativeWork", + # @return [URI,OpenActive::Models::Schema::CreativeWork] + define_property :ethics_policy, as: "ethicsPolicy", types: [ "URI", + "OpenActive::Models::Schema::CreativeWork", ] # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :verification_fact_checking_policy, as: "verificationFactCheckingPolicy", types: [ + define_property :corrections_policy, as: "correctionsPolicy", types: [ "URI", "OpenActive::Models::Schema::CreativeWork", ] + # @return [URI,OpenActive::Models::Schema::Article] + define_property :diversity_staffing_report, as: "diversityStaffingReport", types: [ + "URI", + "OpenActive::Models::Schema::Article", + ] + # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :no_bylines_policy, as: "noBylinesPolicy", types: [ + define_property :unnamed_sources_policy, as: "unnamedSourcesPolicy", types: [ "OpenActive::Models::Schema::CreativeWork", "URI", ] diff --git a/lib/openactive/models/schema/nutrition_information.rb b/lib/openactive/models/schema/nutrition_information.rb index bc8ff0c3..854d46d5 100644 --- a/lib/openactive/models/schema/nutrition_information.rb +++ b/lib/openactive/models/schema/nutrition_information.rb @@ -9,66 +9,66 @@ def type end # @return [OpenActive::Models::Schema::Mass,URI] - define_property :fat_content, as: "fatContent", types: [ + define_property :carbohydrate_content, as: "carbohydrateContent", types: [ "OpenActive::Models::Schema::Mass", "URI", ] - # @return [String] - define_property :serving_size, as: "servingSize", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::Mass,URI] - define_property :protein_content, as: "proteinContent", types: [ + define_property :trans_fat_content, as: "transFatContent", types: [ "OpenActive::Models::Schema::Mass", "URI", ] - # @return [OpenActive::Models::Schema::Energy,URI] - define_property :calories, as: "calories", types: [ - "OpenActive::Models::Schema::Energy", + # @return [OpenActive::Models::Schema::Mass,URI] + define_property :fiber_content, as: "fiberContent", types: [ + "OpenActive::Models::Schema::Mass", "URI", ] # @return [OpenActive::Models::Schema::Mass,URI] - define_property :sodium_content, as: "sodiumContent", types: [ + define_property :unsaturated_fat_content, as: "unsaturatedFatContent", types: [ "OpenActive::Models::Schema::Mass", "URI", ] # @return [OpenActive::Models::Schema::Mass,URI] - define_property :cholesterol_content, as: "cholesterolContent", types: [ + define_property :sodium_content, as: "sodiumContent", types: [ "OpenActive::Models::Schema::Mass", "URI", ] # @return [OpenActive::Models::Schema::Mass,URI] - define_property :sugar_content, as: "sugarContent", types: [ + define_property :protein_content, as: "proteinContent", types: [ "OpenActive::Models::Schema::Mass", "URI", ] # @return [OpenActive::Models::Schema::Mass,URI] - define_property :carbohydrate_content, as: "carbohydrateContent", types: [ + define_property :cholesterol_content, as: "cholesterolContent", types: [ "OpenActive::Models::Schema::Mass", "URI", ] - # @return [OpenActive::Models::Schema::Mass,URI] - define_property :trans_fat_content, as: "transFatContent", types: [ - "OpenActive::Models::Schema::Mass", + # @return [String] + define_property :serving_size, as: "servingSize", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::Energy,URI] + define_property :calories, as: "calories", types: [ + "OpenActive::Models::Schema::Energy", "URI", ] # @return [OpenActive::Models::Schema::Mass,URI] - define_property :fiber_content, as: "fiberContent", types: [ + define_property :sugar_content, as: "sugarContent", types: [ "OpenActive::Models::Schema::Mass", "URI", ] # @return [OpenActive::Models::Schema::Mass,URI] - define_property :unsaturated_fat_content, as: "unsaturatedFatContent", types: [ + define_property :fat_content, as: "fatContent", types: [ "OpenActive::Models::Schema::Mass", "URI", ] diff --git a/lib/openactive/models/schema/observation.rb b/lib/openactive/models/schema/observation.rb index 7a00f8ba..53d99f46 100644 --- a/lib/openactive/models/schema/observation.rb +++ b/lib/openactive/models/schema/observation.rb @@ -1,21 +1,53 @@ module OpenActive module Models module Schema - class Observation < ::OpenActive::Models::Schema::Intangible + class Observation < ::OpenActive::Models::Schema::QuantitativeValue # @!attribute type # @return [String] def type "schema:Observation" end - # @return [OpenActive::Models::Schema::DataType] - define_property :measured_value, as: "measuredValue", types: [ - "OpenActive::Models::Schema::DataType", + # @return [String] + define_property :observation_period, as: "observationPeriod", types: [ + "string", + ] + + # @return [OpenActive::Enums::PropertyEnumeration,OpenActive::Models::Schema::StatisticalVariable,String,OpenActive::Models::Schema::PropertyValue,URI,nil] + define_property :variable_measured, as: "variableMeasured", types: [ + "OpenActive::Enums::PropertyEnumeration", + "OpenActive::Models::Schema::StatisticalVariable", + "string", + "OpenActive::Models::Schema::PropertyValue", + "URI", + "null", + ] + + # @return [OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::Place,URI] + define_property :observation_about, as: "observationAbout", types: [ + "OpenActive::Models::Schema::Thing", + "OpenActive::Models::Schema::Place", + "URI", + ] + + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_technique, as: "measurementTechnique", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", ] - # @return [OpenActive::Models::Schema::StatisticalPopulation,URI] - define_property :observed_node, as: "observedNode", types: [ - "OpenActive::Models::Schema::StatisticalPopulation", + # @return [OpenActive::Models::Schema::StatisticalVariable,URI] + define_property :measurement_denominator, as: "measurementDenominator", types: [ + "OpenActive::Models::Schema::StatisticalVariable", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :margin_of_error, as: "marginOfError", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] @@ -26,15 +58,24 @@ def type "null", ] + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_method, as: "measurementMethod", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", + ] + # @return [DateTime,nil] define_property :observation_date, as: "observationDate", types: [ "DateTime", "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :margin_of_error, as: "marginOfError", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Models::Schema::Enumeration,URI] + define_property :measurement_qualifier, as: "measurementQualifier", types: [ + "OpenActive::Models::Schema::Enumeration", "URI", ] end diff --git a/lib/openactive/models/schema/occupation.rb b/lib/openactive/models/schema/occupation.rb index 7e824cd9..a12192f7 100644 --- a/lib/openactive/models/schema/occupation.rb +++ b/lib/openactive/models/schema/occupation.rb @@ -8,23 +8,29 @@ def type "schema:Occupation" end - # @return [OpenActive::Models::Schema::MonetaryAmountDistribution,OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] - define_property :estimated_salary, as: "estimatedSalary", types: [ - "OpenActive::Models::Schema::MonetaryAmountDistribution", - "OpenActive::Models::Schema::MonetaryAmount", - "Number", + # @return [String] + define_property :responsibilities, as: "responsibilities", types: [ + "string", + ] + + # @return [String,OpenActive::Models::Schema::CategoryCode,URI] + define_property :occupational_category, as: "occupationalCategory", types: [ + "string", + "OpenActive::Models::Schema::CategoryCode", "URI", - "null", ] - # @return [String] - define_property :responsibilities, as: "responsibilities", types: [ + # @return [String,OpenActive::Models::Schema::EducationalOccupationalCredential,URI] + define_property :qualifications, as: "qualifications", types: [ "string", + "OpenActive::Models::Schema::EducationalOccupationalCredential", + "URI", ] - # @return [OpenActive::Models::Schema::AdministrativeArea,URI] - define_property :occupation_location, as: "occupationLocation", types: [ - "OpenActive::Models::Schema::AdministrativeArea", + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :skills, as: "skills", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "string", "URI", ] @@ -35,33 +41,27 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,String,URI] - define_property :education_requirements, as: "educationRequirements", types: [ - "OpenActive::Models::Schema::EducationalOccupationalCredential", - "string", + # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmountDistribution,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + define_property :estimated_salary, as: "estimatedSalary", types: [ + "Number", + "OpenActive::Models::Schema::MonetaryAmountDistribution", + "OpenActive::Models::Schema::MonetaryAmount", "URI", + "null", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :skills, as: "skills", types: [ - "string", - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :occupation_location, as: "occupationLocation", types: [ + "OpenActive::Models::Schema::AdministrativeArea", "URI", ] # @return [String,OpenActive::Models::Schema::EducationalOccupationalCredential,URI] - define_property :qualifications, as: "qualifications", types: [ + define_property :education_requirements, as: "educationRequirements", types: [ "string", "OpenActive::Models::Schema::EducationalOccupationalCredential", "URI", ] - - # @return [OpenActive::Models::Schema::CategoryCode,String,URI] - define_property :occupational_category, as: "occupationalCategory", types: [ - "OpenActive::Models::Schema::CategoryCode", - "string", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/offer.rb b/lib/openactive/models/schema/offer.rb index 58cad89f..b7075ee2 100644 --- a/lib/openactive/models/schema/offer.rb +++ b/lib/openactive/models/schema/offer.rb @@ -8,74 +8,33 @@ def type "schema:Offer" end - # @return [OpenActive::Enums::Schema::AdultOrientedEnumeration,nil] - define_property :has_adult_consideration, as: "hasAdultConsideration", types: [ - "OpenActive::Enums::Schema::AdultOrientedEnumeration", - "null", - ] - # @return [String] - define_property :gtin12, as: "gtin12", types: [ + define_property :checkout_page_urltemplate, as: "checkoutPageURLTemplate", types: [ "string", ] - # @return [OpenActive::Models::Schema::Review,URI] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", - "URI", - ] - - # @return [OpenActive::Models::Schema::Trip,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::Product,OpenActive::Models::Schema::AggregateOffer,OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::Service,URI] - define_property :item_offered, as: "itemOffered", types: [ - "OpenActive::Models::Schema::Trip", - "OpenActive::Models::Schema::Event", - "OpenActive::Models::Schema::Product", - "OpenActive::Models::Schema::AggregateOffer", - "OpenActive::Models::Schema::CreativeWork", - "OpenActive::Models::Schema::MenuItem", - "OpenActive::Models::Schema::Service", - "URI", - ] - - # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] - define_property :category, as: "category", types: [ - "URI", + # @return [String] + define_property :mobile_url, as: "mobileUrl", types: [ "string", - "OpenActive::Enums::Schema::PhysicalActivityCategory", - "OpenActive::Models::Schema::Thing", - "OpenActive::Models::Schema::CategoryCode", - "null", ] - # @return [Date,nil] - define_property :price_valid_until, as: "priceValidUntil", types: [ - "Date", + # @return [OpenActive::Enums::Schema::AdultOrientedEnumeration,nil] + define_property :has_adult_consideration, as: "hasAdultConsideration", types: [ + "OpenActive::Enums::Schema::AdultOrientedEnumeration", "null", ] - # @return [OpenActive::Models::Schema::OfferShippingDetails,URI] - define_property :shipping_details, as: "shippingDetails", types: [ - "OpenActive::Models::Schema::OfferShippingDetails", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :eligible_duration, as: "eligibleDuration", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] # @return [String] - define_property :mpn, as: "mpn", types: [ + define_property :price_currency, as: "priceCurrency", types: [ "string", ] - # @return [OpenActive::Models::Schema::TypeAndQuantityNode,URI] - define_property :includes_object, as: "includesObject", types: [ - "OpenActive::Models::Schema::TypeAndQuantityNode", - "URI", - ] - - # @return [OpenActive::Enums::Schema::BusinessFunction,nil] - define_property :business_function, as: "businessFunction", types: [ - "OpenActive::Enums::Schema::BusinessFunction", - "null", - ] - # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] define_property :item_condition, as: "itemCondition", types: [ "OpenActive::Enums::Schema::OfferItemCondition", @@ -83,27 +42,20 @@ def type ] # @return [String] - define_property :gtin, as: "gtin", types: [ + define_property :gtin12, as: "gtin12", types: [ "string", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :eligible_quantity, as: "eligibleQuantity", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - - # @return [OpenActive::Models::Schema::LoanOrCredit,OpenActive::Enums::Schema::PaymentMethod,URI,nil] - define_property :accepted_payment_method, as: "acceptedPaymentMethod", types: [ - "OpenActive::Models::Schema::LoanOrCredit", - "OpenActive::Enums::Schema::PaymentMethod", - "URI", + # @return [Date,DateTime,nil] + define_property :valid_from, as: "validFrom", types: [ + "Date", + "DateTime", "null", ] - # @return [OpenActive::Models::Schema::WarrantyPromise,URI] - define_property :warranty, as: "warranty", types: [ - "OpenActive::Models::Schema::WarrantyPromise", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :available_at_or_from, as: "availableAtOrFrom", types: [ + "OpenActive::Models::Schema::Place", "URI", ] @@ -114,74 +66,84 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::GeoShape,URI] - define_property :ineligible_region, as: "ineligibleRegion", types: [ - "OpenActive::Models::Schema::Place", - "string", - "OpenActive::Models::Schema::GeoShape", + # @return [OpenActive::Models::Schema::PriceSpecification,URI] + define_property :price_specification, as: "priceSpecification", types: [ + "OpenActive::Models::Schema::PriceSpecification", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,ActiveSupport::Duration,URI,nil] - define_property :lease_length, as: "leaseLength", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "DateInterval", - "URI", + # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] + define_property :available_delivery_method, as: "availableDeliveryMethod", types: [ + "OpenActive::Enums::Schema::DeliveryMethod", "null", ] + # @return [OpenActive::Models::Schema::TypeAndQuantityNode,URI] + define_property :includes_object, as: "includesObject", types: [ + "OpenActive::Models::Schema::TypeAndQuantityNode", + "URI", + ] + # @return [OpenActive::Models::Schema::AggregateRating,URI] define_property :aggregate_rating, as: "aggregateRating", types: [ "OpenActive::Models::Schema::AggregateRating", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :offered_by, as: "offeredBy", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", - "URI", + # @return [OpenActive::Enums::Schema::BusinessFunction,nil] + define_property :business_function, as: "businessFunction", types: [ + "OpenActive::Enums::Schema::BusinessFunction", + "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :delivery_lead_time, as: "deliveryLeadTime", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [Date,DateTime,Time,nil] + define_property :availability_ends, as: "availabilityEnds", types: [ + "Date", + "DateTime", + "Time", + "null", ] - # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] - define_property :available_delivery_method, as: "availableDeliveryMethod", types: [ - "OpenActive::Enums::Schema::DeliveryMethod", + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil] + define_property :category, as: "category", types: [ + "OpenActive::Enums::Schema::PhysicalActivityCategory", + "URI", + "OpenActive::Models::Schema::Thing", + "string", + "OpenActive::Models::Schema::CategoryCode", "null", ] - # @return [DateTime,Date,nil] - define_property :valid_from, as: "validFrom", types: [ - "DateTime", - "Date", + # @return [OpenActive::Enums::Schema::ItemAvailability,nil] + define_property :availability, as: "availability", types: [ + "OpenActive::Enums::Schema::ItemAvailability", "null", ] - # @return [Date,DateTime,Time,nil] - define_property :availability_ends, as: "availabilityEnds", types: [ + # @return [String] + define_property :sku, as: "sku", types: [ + "string", + ] + + # @return [Date,DateTime,nil] + define_property :valid_through, as: "validThrough", types: [ "Date", "DateTime", - "Time", "null", ] - # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] - define_property :eligible_region, as: "eligibleRegion", types: [ - "OpenActive::Models::Schema::GeoShape", - "string", - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::WarrantyPromise,URI] + define_property :warranty, as: "warranty", types: [ + "OpenActive::Models::Schema::WarrantyPromise", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :has_measurement, as: "hasMeasurement", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [Time,Date,DateTime,nil] + define_property :availability_starts, as: "availabilityStarts", types: [ + "Time", + "Date", + "DateTime", + "null", ] # @return [String] @@ -189,54 +151,52 @@ def type "string", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :inventory_level, as: "inventoryLevel", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - # @return [String] - define_property :sku, as: "sku", types: [ + define_property :gtin13, as: "gtin13", types: [ "string", ] - # @return [OpenActive::Models::Schema::Offer,URI] - define_property :add_on, as: "addOn", types: [ - "OpenActive::Models::Schema::Offer", + # @return [OpenActive::Enums::Schema::PaymentMethod,OpenActive::Models::Schema::LoanOrCredit,URI,nil] + define_property :accepted_payment_method, as: "acceptedPaymentMethod", types: [ + "OpenActive::Enums::Schema::PaymentMethod", + "OpenActive::Models::Schema::LoanOrCredit", "URI", + "null", ] - # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI] - define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [ - "OpenActive::Models::Schema::MerchantReturnPolicy", + # @return [String,URI] + define_property :asin, as: "asin", types: [ + "string", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :advance_booking_requirement, as: "advanceBookingRequirement", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [Boolean,nil] + define_property :is_family_friendly, as: "isFamilyFriendly", types: [ + "bool", + "null", + ] + + # @return [OpenActive::Models::Schema::Offer,URI] + define_property :add_on, as: "addOn", types: [ + "OpenActive::Models::Schema::Offer", "URI", ] - # @return [String] - define_property :gtin14, as: "gtin14", types: [ + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,URI] + define_property :ineligible_region, as: "ineligibleRegion", types: [ "string", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", + "URI", ] # @return [String] - define_property :price_currency, as: "priceCurrency", types: [ + define_property :gtin14, as: "gtin14", types: [ "string", ] - # @return [OpenActive::Models::Schema::PriceSpecification,URI] - define_property :eligible_transaction_volume, as: "eligibleTransactionVolume", types: [ - "OpenActive::Models::Schema::PriceSpecification", - "URI", - ] - - # @return [OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] - define_property :area_served, as: "areaServed", types: [ - "OpenActive::Models::Schema::AdministrativeArea", + # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] + define_property :eligible_region, as: "eligibleRegion", types: [ "OpenActive::Models::Schema::GeoShape", "string", "OpenActive::Models::Schema::Place", @@ -249,15 +209,47 @@ def type "null", ] - # @return [OpenActive::Enums::Schema::ItemAvailability,nil] - define_property :availability, as: "availability", types: [ - "OpenActive::Enums::Schema::ItemAvailability", + # @return [Date,nil] + define_property :price_valid_until, as: "priceValidUntil", types: [ + "Date", "null", ] - # @return [String] - define_property :gtin13, as: "gtin13", types: [ + # @return [BigDecimal,String,nil] + define_property :price, as: "price", types: [ + "Number", "string", + "null", + ] + + # @return [OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::AggregateOffer,OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::Trip,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] + define_property :item_offered, as: "itemOffered", types: [ + "OpenActive::Models::Schema::CreativeWork", + "OpenActive::Models::Schema::AggregateOffer", + "OpenActive::Models::Schema::MenuItem", + "OpenActive::Models::Schema::Trip", + "OpenActive::Models::Schema::Event", + "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Product", + "URI", + ] + + # @return [OpenActive::Models::Schema::OfferShippingDetails,URI] + define_property :shipping_details, as: "shippingDetails", types: [ + "OpenActive::Models::Schema::OfferShippingDetails", + "URI", + ] + + # @return [OpenActive::Models::Schema::PriceSpecification,URI] + define_property :eligible_transaction_volume, as: "eligibleTransactionVolume", types: [ + "OpenActive::Models::Schema::PriceSpecification", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :has_measurement, as: "hasMeasurement", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] # @return [OpenActive::Models::Schema::Review,URI] @@ -266,49 +258,68 @@ def type "URI", ] - # @return [Boolean,nil] - define_property :is_family_friendly, as: "isFamilyFriendly", types: [ - "bool", - "null", + # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI] + define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [ + "OpenActive::Models::Schema::MerchantReturnPolicy", + "URI", ] - # @return [DateTime,Date,nil] - define_property :valid_through, as: "validThrough", types: [ - "DateTime", - "Date", - "null", + # @return [URI,String] + define_property :gtin, as: "gtin", types: [ + "URI", + "string", ] - # @return [OpenActive::Models::Schema::PriceSpecification,URI] - define_property :price_specification, as: "priceSpecification", types: [ - "OpenActive::Models::Schema::PriceSpecification", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :offered_by, as: "offeredBy", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [BigDecimal,String,nil] - define_property :price, as: "price", types: [ - "Number", - "string", + # @return [OpenActive::Models::Schema::QuantitativeValue,ActiveSupport::Duration,URI,nil] + define_property :lease_length, as: "leaseLength", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "DateInterval", + "URI", "null", ] - # @return [Time,DateTime,Date,nil] - define_property :availability_starts, as: "availabilityStarts", types: [ - "Time", - "DateTime", - "Date", - "null", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :delivery_lead_time, as: "deliveryLeadTime", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :eligible_duration, as: "eligibleDuration", types: [ + define_property :advance_booking_requirement, as: "advanceBookingRequirement", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :available_at_or_from, as: "availableAtOrFrom", types: [ + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", + "URI", + ] + + # @return [String] + define_property :mpn, as: "mpn", types: [ + "string", + ] + + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :area_served, as: "areaServed", types: [ + "string", "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", + "OpenActive::Models::Schema::AdministrativeArea", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :inventory_level, as: "inventoryLevel", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] @@ -316,6 +327,12 @@ def type define_property :serial_number, as: "serialNumber", types: [ "string", ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :eligible_quantity, as: "eligibleQuantity", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/offer_shipping_details.rb b/lib/openactive/models/schema/offer_shipping_details.rb index 4dc2c5bd..cbb6b26f 100644 --- a/lib/openactive/models/schema/offer_shipping_details.rb +++ b/lib/openactive/models/schema/offer_shipping_details.rb @@ -8,16 +8,21 @@ def type "schema:OfferShippingDetails" end + # @return [Boolean,nil] + define_property :does_not_ship, as: "doesNotShip", types: [ + "bool", + "null", + ] + # @return [OpenActive::Models::Schema::DefinedRegion,URI] define_property :shipping_destination, as: "shippingDestination", types: [ "OpenActive::Models::Schema::DefinedRegion", "URI", ] - # @return [Boolean,nil] - define_property :does_not_ship, as: "doesNotShip", types: [ - "bool", - "null", + # @return [String] + define_property :shipping_label, as: "shippingLabel", types: [ + "string", ] # @return [URI] @@ -25,19 +30,34 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::DefinedRegion,URI] + define_property :shipping_origin, as: "shippingOrigin", types: [ + "OpenActive::Models::Schema::DefinedRegion", + "URI", + ] + # @return [String] define_property :transit_time_label, as: "transitTimeLabel", types: [ "string", ] - # @return [String] - define_property :shipping_label, as: "shippingLabel", types: [ - "string", + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :depth, as: "depth", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", + "URI", ] - # @return [OpenActive::Models::Schema::ShippingDeliveryTime,URI] - define_property :delivery_time, as: "deliveryTime", types: [ - "OpenActive::Models::Schema::ShippingDeliveryTime", + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :height, as: "height", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :weight, as: "weight", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] @@ -46,6 +66,19 @@ def type "OpenActive::Models::Schema::MonetaryAmount", "URI", ] + + # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :width, as: "width", types: [ + "OpenActive::Models::Schema::Distance", + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] + + # @return [OpenActive::Models::Schema::ShippingDeliveryTime,URI] + define_property :delivery_time, as: "deliveryTime", types: [ + "OpenActive::Models::Schema::ShippingDeliveryTime", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/opening_hours_specification.rb b/lib/openactive/models/schema/opening_hours_specification.rb index 19846039..4a5ddcf6 100644 --- a/lib/openactive/models/schema/opening_hours_specification.rb +++ b/lib/openactive/models/schema/opening_hours_specification.rb @@ -8,22 +8,10 @@ def type "schema:OpeningHoursSpecification" end - # @return [Time,nil] - define_property :closes, as: "closes", types: [ - "Time", - "null", - ] - - # @return [OpenActive::Enums::Schema::DayOfWeek,nil] - define_property :day_of_week, as: "dayOfWeek", types: [ - "OpenActive::Enums::Schema::DayOfWeek", - "null", - ] - - # @return [DateTime,Date,nil] + # @return [Date,DateTime,nil] define_property :valid_from, as: "validFrom", types: [ - "DateTime", "Date", + "DateTime", "null", ] @@ -33,10 +21,22 @@ def type "null", ] - # @return [DateTime,Date,nil] + # @return [Date,DateTime,nil] define_property :valid_through, as: "validThrough", types: [ - "DateTime", "Date", + "DateTime", + "null", + ] + + # @return [OpenActive::Enums::Schema::DayOfWeek,nil] + define_property :day_of_week, as: "dayOfWeek", types: [ + "OpenActive::Enums::Schema::DayOfWeek", + "null", + ] + + # @return [Time,nil] + define_property :closes, as: "closes", types: [ + "Time", "null", ] end diff --git a/lib/openactive/models/schema/order.rb b/lib/openactive/models/schema/order.rb index 97f45a5c..4e15f300 100644 --- a/lib/openactive/models/schema/order.rb +++ b/lib/openactive/models/schema/order.rb @@ -8,71 +8,67 @@ def type "schema:Order" end - # @return [OpenActive::Models::Schema::ParcelDelivery,URI] - define_property :order_delivery, as: "orderDelivery", types: [ - "OpenActive::Models::Schema::ParcelDelivery", - "URI", - ] - - # @return [OpenActive::Models::Schema::PostalAddress,URI] - define_property :billing_address, as: "billingAddress", types: [ - "OpenActive::Models::Schema::PostalAddress", + # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,OpenActive::Models::Schema::OrderItem,URI] + define_property :ordered_item, as: "orderedItem", types: [ + "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::OrderItem", "URI", ] - # @return [OpenActive::Models::Schema::Offer,URI] - define_property :accepted_offer, as: "acceptedOffer", types: [ - "OpenActive::Models::Schema::Offer", + # @return [OpenActive::Models::Schema::Invoice,URI] + define_property :part_of_invoice, as: "partOfInvoice", types: [ + "OpenActive::Models::Schema::Invoice", "URI", ] # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :merchant, as: "merchant", types: [ + define_property :seller, as: "seller", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::OrderStatus,URI] - define_property :order_status, as: "orderStatus", types: [ - "OpenActive::Models::Schema::OrderStatus", - "URI", - ] - # @return [String] define_property :confirmation_number, as: "confirmationNumber", types: [ "string", ] - # @return [OpenActive::Models::Schema::Invoice,URI] - define_property :part_of_invoice, as: "partOfInvoice", types: [ - "OpenActive::Models::Schema::Invoice", + # @return [Date,DateTime,nil] + define_property :payment_due_date, as: "paymentDueDate", types: [ + "Date", + "DateTime", + "null", + ] + + # @return [URI] + define_property :payment_url, as: "paymentUrl", types: [ "URI", ] - # @return [String] - define_property :order_number, as: "orderNumber", types: [ - "string", + # @return [Date,DateTime,nil] + define_property :order_date, as: "orderDate", types: [ + "Date", + "DateTime", + "null", ] - # @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 [Boolean,nil] + define_property :is_gift, as: "isGift", types: [ + "bool", + "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :customer, as: "customer", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Offer,URI] + define_property :accepted_offer, as: "acceptedOffer", types: [ + "OpenActive::Models::Schema::Offer", "URI", ] - # @return [DateTime,Date,nil] - define_property :payment_due_date, as: "paymentDueDate", types: [ - "DateTime", - "Date", + # @return [BigDecimal,String,nil] + define_property :discount, as: "discount", types: [ + "Number", + "string", "null", ] @@ -84,63 +80,67 @@ def type ] # @return [String] - define_property :discount_code, as: "discountCode", types: [ + define_property :order_number, as: "orderNumber", types: [ "string", ] - # @return [String,BigDecimal,nil] - define_property :discount, as: "discount", types: [ - "string", - "Number", - "null", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :customer, as: "customer", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", ] - # @return [String] - define_property :payment_method_id, as: "paymentMethodId", types: [ - "string", + # @return [OpenActive::Enums::Schema::PaymentMethod,nil] + define_property :payment_method, as: "paymentMethod", types: [ + "OpenActive::Enums::Schema::PaymentMethod", + "null", ] - # @return [URI] - define_property :payment_url, as: "paymentUrl", types: [ + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :merchant, as: "merchant", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] + # @return [DateTime,nil] + define_property :payment_due, as: "paymentDue", types: [ + "DateTime", + "null", + ] + # @return [String] define_property :discount_currency, as: "discountCurrency", types: [ "string", ] - # @return [DateTime,nil] - define_property :payment_due, as: "paymentDue", types: [ - "DateTime", - "null", + # @return [OpenActive::Models::Schema::OrderStatus,URI] + define_property :order_status, as: "orderStatus", types: [ + "OpenActive::Models::Schema::OrderStatus", + "URI", ] - # @return [Date,DateTime,nil] - define_property :order_date, as: "orderDate", types: [ - "Date", - "DateTime", - "null", + # @return [String] + define_property :payment_method_id, as: "paymentMethodId", types: [ + "string", ] - # @return [Boolean,nil] - define_property :is_gift, as: "isGift", types: [ - "bool", - "null", + # @return [String] + define_property :discount_code, as: "discountCode", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::OrderItem,OpenActive::Models::Schema::Product,URI] - define_property :ordered_item, as: "orderedItem", types: [ - "OpenActive::Models::Schema::Service", - "OpenActive::Models::Schema::OrderItem", - "OpenActive::Models::Schema::Product", + # @return [OpenActive::Models::Schema::PostalAddress,URI] + define_property :billing_address, as: "billingAddress", types: [ + "OpenActive::Models::Schema::PostalAddress", "URI", ] - # @return [OpenActive::Enums::Schema::PaymentMethod,nil] - define_property :payment_method, as: "paymentMethod", types: [ - "OpenActive::Enums::Schema::PaymentMethod", - "null", + # @return [OpenActive::Models::Schema::ParcelDelivery,URI] + define_property :order_delivery, as: "orderDelivery", types: [ + "OpenActive::Models::Schema::ParcelDelivery", + "URI", ] end end diff --git a/lib/openactive/models/schema/order_item.rb b/lib/openactive/models/schema/order_item.rb index 8e8fae48..7fe2ffbd 100644 --- a/lib/openactive/models/schema/order_item.rb +++ b/lib/openactive/models/schema/order_item.rb @@ -8,15 +8,11 @@ def type "schema:OrderItem" end - # @return [OpenActive::Models::Schema::ParcelDelivery,URI] - define_property :order_delivery, as: "orderDelivery", types: [ - "OpenActive::Models::Schema::ParcelDelivery", - "URI", - ] - - # @return [OpenActive::Models::Schema::OrderStatus,URI] - define_property :order_item_status, as: "orderItemStatus", types: [ - "OpenActive::Models::Schema::OrderStatus", + # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,OpenActive::Models::Schema::OrderItem,URI] + define_property :ordered_item, as: "orderedItem", types: [ + "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::OrderItem", "URI", ] @@ -26,16 +22,20 @@ def type "null", ] + # @return [OpenActive::Models::Schema::OrderStatus,URI] + define_property :order_item_status, as: "orderItemStatus", types: [ + "OpenActive::Models::Schema::OrderStatus", + "URI", + ] + # @return [String] define_property :order_item_number, as: "orderItemNumber", types: [ "string", ] - # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::OrderItem,OpenActive::Models::Schema::Product,URI] - define_property :ordered_item, as: "orderedItem", types: [ - "OpenActive::Models::Schema::Service", - "OpenActive::Models::Schema::OrderItem", - "OpenActive::Models::Schema::Product", + # @return [OpenActive::Models::Schema::ParcelDelivery,URI] + define_property :order_delivery, as: "orderDelivery", types: [ + "OpenActive::Models::Schema::ParcelDelivery", "URI", ] end diff --git a/lib/openactive/models/schema/organization.rb b/lib/openactive/models/schema/organization.rb index 1a542ec2..a42bb1f2 100644 --- a/lib/openactive/models/schema/organization.rb +++ b/lib/openactive/models/schema/organization.rb @@ -8,94 +8,90 @@ def type "schema:Organization" end - # @return [URI,OpenActive::Models::Schema::AboutPage,String,OpenActive::Models::Schema::CreativeWork] - define_property :ownership_funding_info, as: "ownershipFundingInfo", types: [ + # @return [OpenActive::Models::Schema::ContactPoint,URI] + define_property :contact_points, as: "contactPoints", types: [ + "OpenActive::Models::Schema::ContactPoint", "URI", - "OpenActive::Models::Schema::AboutPage", + ] + + # @return [Date,nil] + define_property :founding_date, as: "foundingDate", types: [ + "Date", + "null", + ] + + # @return [String,OpenActive::Models::Schema::CreativeWork,URI,OpenActive::Models::Schema::AboutPage] + define_property :ownership_funding_info, as: "ownershipFundingInfo", types: [ "string", "OpenActive::Models::Schema::CreativeWork", + "URI", + "OpenActive::Models::Schema::AboutPage", ] - # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,URI] - define_property :has_credential, as: "hasCredential", types: [ - "OpenActive::Models::Schema::EducationalOccupationalCredential", + # @return [OpenActive::Models::Schema::PostalAddress,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,String,URI] + define_property :location, as: "location", types: [ + "OpenActive::Models::Schema::PostalAddress", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::VirtualLocation", + "string", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :founders, as: "founders", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :publishing_principles, as: "publishingPrinciples", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] # @return [String] - define_property :telephone, as: "telephone", types: [ + define_property :legal_name, as: "legalName", types: [ "string", ] - # @return [OpenActive::Models::Schema::Review,URI] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :diversity_policy, as: "diversityPolicy", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [URI,String,OpenActive::Models::Schema::Thing] - define_property :knows_about, as: "knowsAbout", types: [ + # @return [OpenActive::Enums::Schema::NonprofitType,nil] + define_property :nonprofit_status, as: "nonprofitStatus", types: [ + "OpenActive::Enums::Schema::NonprofitType", + "null", + ] + + # @return [OpenActive::Models::Schema::ContactPoint,URI] + define_property :contact_point, as: "contactPoint", types: [ + "OpenActive::Models::Schema::ContactPoint", "URI", - "string", - "OpenActive::Models::Schema::Thing", ] # @return [String] - define_property :award, as: "award", types: [ + define_property :awards, as: "awards", types: [ "string", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :member, as: "member", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", - "URI", - ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :employee, as: "employee", types: [ + define_property :founders, as: "founders", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [Date,nil] - define_property :dissolution_date, as: "dissolutionDate", types: [ - "Date", - "null", - ] - - # @return [OpenActive::Models::Schema::Grant,URI] - define_property :funding, as: "funding", types: [ - "OpenActive::Models::Schema::Grant", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :department, as: "department", types: [ + "OpenActive::Models::Schema::Organization", "URI", ] # @return [String] - define_property :vat_id, as: "vatID", types: [ - "string", - ] - - # @return [String] - define_property :global_location_number, as: "globalLocationNumber", types: [ + define_property :naics, as: "naics", types: [ "string", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :keywords, as: "keywords", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [String,OpenActive::Models::Schema::Thing,URI] + define_property :knows_about, as: "knowsAbout", types: [ "string", - "URI", - ] - - # @return [OpenActive::Models::Schema::ContactPoint,URI] - define_property :contact_points, as: "contactPoints", types: [ - "OpenActive::Models::Schema::ContactPoint", + "OpenActive::Models::Schema::Thing", "URI", ] @@ -106,20 +102,19 @@ def type ] # @return [String] - define_property :awards, as: "awards", types: [ + define_property :lei_code, as: "leiCode", types: [ "string", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :number_of_employees, as: "numberOfEmployees", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [String] + define_property :isic_v4, as: "isicV4", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :funder, as: "funder", types: [ + # @return [OpenActive::Models::Schema::ProgramMembership,OpenActive::Models::Schema::Organization,URI] + define_property :member_of, as: "memberOf", types: [ + "OpenActive::Models::Schema::ProgramMembership", "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", "URI", ] @@ -129,15 +124,35 @@ def type "URI", ] - # @return [String] - define_property :legal_name, as: "legalName", types: [ + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :parent_organization, as: "parentOrganization", types: [ + "OpenActive::Models::Schema::Organization", + "URI", + ] + + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :keywords, as: "keywords", types: [ "string", + "OpenActive::Models::Schema::DefinedTerm", + "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :corrections_policy, as: "correctionsPolicy", types: [ + # @return [OpenActive::Models::Schema::PostalAddress,String,URI] + define_property :address, as: "address", types: [ + "OpenActive::Models::Schema::PostalAddress", + "string", "URI", + ] + + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :actionable_feedback_policy, as: "actionableFeedbackPolicy", types: [ "OpenActive::Models::Schema::CreativeWork", + "URI", + ] + + # @return [String] + define_property :duns, as: "duns", types: [ + "string", ] # @return [OpenActive::Models::Schema::AggregateRating,URI] @@ -146,55 +161,49 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::InteractionCounter,URI] - define_property :interaction_statistic, as: "interactionStatistic", types: [ - "OpenActive::Models::Schema::InteractionCounter", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :founding_location, as: "foundingLocation", types: [ + "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::PostalAddress,String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::VirtualLocation,URI] - define_property :location, as: "location", types: [ - "OpenActive::Models::Schema::PostalAddress", - "string", - "OpenActive::Models::Schema::Place", - "OpenActive::Models::Schema::VirtualLocation", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :employee, as: "employee", types: [ + "OpenActive::Models::Schema::Person", "URI", ] - # @return [String,OpenActive::Models::Schema::PostalAddress,URI] - define_property :address, as: "address", types: [ - "string", - "OpenActive::Models::Schema::PostalAddress", + # @return [OpenActive::Models::Schema::InteractionCounter,URI] + define_property :interaction_statistic, as: "interactionStatistic", types: [ + "OpenActive::Models::Schema::InteractionCounter", "URI", ] - # @return [OpenActive::Models::Schema::ProgramMembership,OpenActive::Models::Schema::Organization,URI] - define_property :member_of, as: "memberOf", types: [ - "OpenActive::Models::Schema::ProgramMembership", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :sponsor, as: "sponsor", types: [ "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :publishing_principles, as: "publishingPrinciples", types: [ - "URI", - "OpenActive::Models::Schema::CreativeWork", + # @return [String] + define_property :iso6523code, as: "iso6523Code", types: [ + "string", ] - # @return [URI,OpenActive::Models::Schema::Article] - define_property :diversity_staffing_report, as: "diversityStaffingReport", types: [ + # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,URI] + define_property :has_credential, as: "hasCredential", types: [ + "OpenActive::Models::Schema::EducationalOccupationalCredential", "URI", - "OpenActive::Models::Schema::Article", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :diversity_policy, as: "diversityPolicy", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", + # @return [String] + define_property :tax_id, as: "taxID", types: [ + "string", ] # @return [String] - define_property :email, as: "email", types: [ + define_property :award, as: "award", types: [ "string", ] @@ -204,88 +213,91 @@ def type "URI", ] - # @return [OpenActive::Enums::Schema::NonprofitType,nil] - define_property :nonprofit_status, as: "nonprofitStatus", types: [ - "OpenActive::Enums::Schema::NonprofitType", - "null", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :funder, as: "funder", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", ] - # @return [String] - define_property :slogan, as: "slogan", types: [ - "string", + # @return [OpenActive::Models::Schema::Demand,URI] + define_property :seeks, as: "seeks", types: [ + "OpenActive::Models::Schema::Demand", + "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :ethics_policy, as: "ethicsPolicy", types: [ + # @return [OpenActive::Models::Schema::Event,URI] + define_property :event, as: "event", types: [ + "OpenActive::Models::Schema::Event", "URI", - "OpenActive::Models::Schema::CreativeWork", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Brand,URI] - define_property :brand, as: "brand", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Brand", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :number_of_employees, as: "numberOfEmployees", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :sponsor, as: "sponsor", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :logo, as: "logo", types: [ + "OpenActive::Models::Schema::ImageObject", + "URI", + ] + + # @return [Date,nil] + define_property :dissolution_date, as: "dissolutionDate", types: [ + "Date", + "null", + ] + + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :members, as: "members", types: [ "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [URI,OpenActive::Models::Schema::ImageObject] - define_property :logo, as: "logo", types: [ + # @return [OpenActive::Models::Schema::OfferCatalog,URI] + define_property :has_offer_catalog, as: "hasOfferCatalog", types: [ + "OpenActive::Models::Schema::OfferCatalog", "URI", - "OpenActive::Models::Schema::ImageObject", ] # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :actionable_feedback_policy, as: "actionableFeedbackPolicy", types: [ + define_property :ethics_policy, as: "ethicsPolicy", types: [ "URI", "OpenActive::Models::Schema::CreativeWork", ] - # @return [String] - define_property :naics, as: "naics", types: [ - "string", + # @return [URI,OpenActive::Models::Schema::CreativeWork] + define_property :corrections_policy, as: "correctionsPolicy", types: [ + "URI", + "OpenActive::Models::Schema::CreativeWork", ] - # @return [OpenActive::Models::Schema::ContactPoint,URI] - define_property :contact_point, as: "contactPoint", types: [ - "OpenActive::Models::Schema::ContactPoint", + # @return [OpenActive::Models::Schema::Event,URI] + define_property :events, as: "events", types: [ + "OpenActive::Models::Schema::Event", "URI", ] - # @return [OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::Place,URI] + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] define_property :service_area, as: "serviceArea", types: [ + "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeoShape", "OpenActive::Models::Schema::AdministrativeArea", - "OpenActive::Models::Schema::Place", "URI", ] - # @return [String] - define_property :isic_v4, as: "isicV4", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI] - define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [ - "OpenActive::Models::Schema::MerchantReturnPolicy", - "URI", - ] - - # @return [OpenActive::Models::Schema::Place,URI] - define_property :has_pos, as: "hasPOS", types: [ - "OpenActive::Models::Schema::Place", + # @return [URI,OpenActive::Models::Schema::Article] + define_property :diversity_staffing_report, as: "diversityStaffingReport", types: [ "URI", + "OpenActive::Models::Schema::Article", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :founder, as: "founder", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Grant,URI] + define_property :funding, as: "funding", types: [ + "OpenActive::Models::Schema::Grant", "URI", ] @@ -295,120 +307,108 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :founding_location, as: "foundingLocation", types: [ - "OpenActive::Models::Schema::Place", - "URI", - ] - # @return [String] - define_property :duns, as: "duns", types: [ + define_property :fax_number, as: "faxNumber", types: [ "string", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :parent_organization, as: "parentOrganization", types: [ - "OpenActive::Models::Schema::Organization", - "URI", + # @return [String] + define_property :slogan, as: "slogan", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :alumni, as: "alumni", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :reviews, as: "reviews", types: [ + "OpenActive::Models::Schema::Review", "URI", ] # @return [String] - define_property :lei_code, as: "leiCode", types: [ + define_property :global_location_number, as: "globalLocationNumber", types: [ "string", ] - # @return [OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] - define_property :area_served, as: "areaServed", types: [ - "OpenActive::Models::Schema::AdministrativeArea", - "OpenActive::Models::Schema::GeoShape", + # @return [OpenActive::Models::Schema::OwnershipInfo,OpenActive::Models::Schema::Product,URI] + define_property :owns, as: "owns", types: [ + "OpenActive::Models::Schema::OwnershipInfo", + "OpenActive::Models::Schema::Product", + "URI", + ] + + # @return [String,OpenActive::Models::Schema::Language,URI] + define_property :knows_language, as: "knowsLanguage", types: [ "string", - "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::Language", "URI", ] - # @return [Date,nil] - define_property :founding_date, as: "foundingDate", types: [ - "Date", - "null", + # @return [OpenActive::Models::Schema::Brand,OpenActive::Models::Schema::Organization,URI] + define_property :brand, as: "brand", types: [ + "OpenActive::Models::Schema::Brand", + "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [OpenActive::Models::Schema::Language,String,URI] - define_property :knows_language, as: "knowsLanguage", types: [ - "OpenActive::Models::Schema::Language", - "string", + # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI] + define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [ + "OpenActive::Models::Schema::MerchantReturnPolicy", "URI", ] - # @return [OpenActive::Models::Schema::Review,URI] - define_property :reviews, as: "reviews", types: [ - "OpenActive::Models::Schema::Review", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :alumni, as: "alumni", types: [ + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Demand,URI] - define_property :seeks, as: "seeks", types: [ - "OpenActive::Models::Schema::Demand", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :founder, as: "founder", types: [ + "OpenActive::Models::Schema::Person", "URI", ] # @return [String] - define_property :tax_id, as: "taxID", types: [ + define_property :telephone, as: "telephone", types: [ "string", ] - # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::OwnershipInfo,URI] - define_property :owns, as: "owns", types: [ - "OpenActive::Models::Schema::Product", - "OpenActive::Models::Schema::OwnershipInfo", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", "URI", ] - # @return [OpenActive::Models::Schema::OfferCatalog,URI] - define_property :has_offer_catalog, as: "hasOfferCatalog", types: [ - "OpenActive::Models::Schema::OfferCatalog", + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :area_served, as: "areaServed", types: [ + "string", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", + "OpenActive::Models::Schema::AdministrativeArea", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :members, as: "members", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :member, as: "member", types: [ "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Event,URI] - define_property :events, as: "events", types: [ - "OpenActive::Models::Schema::Event", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :has_pos, as: "hasPOS", types: [ + "OpenActive::Models::Schema::Place", "URI", ] # @return [String] - define_property :iso6523code, as: "iso6523Code", types: [ + define_property :email, as: "email", types: [ "string", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :department, as: "department", types: [ - "OpenActive::Models::Schema::Organization", - "URI", - ] - # @return [String] - define_property :fax_number, as: "faxNumber", types: [ + define_property :vat_id, as: "vatID", types: [ "string", ] - - # @return [OpenActive::Models::Schema::Event,URI] - define_property :event, as: "event", types: [ - "OpenActive::Models::Schema::Event", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/ownership_info.rb b/lib/openactive/models/schema/ownership_info.rb index 9b792bda..dd9cccb0 100644 --- a/lib/openactive/models/schema/ownership_info.rb +++ b/lib/openactive/models/schema/ownership_info.rb @@ -8,28 +8,28 @@ def type "schema:OwnershipInfo" end - # @return [DateTime,nil] - define_property :owned_from, as: "ownedFrom", types: [ - "DateTime", - "null", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :acquired_from, as: "acquiredFrom", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", ] - # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::Service,URI] + # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] define_property :type_of_good, as: "typeOfGood", types: [ - "OpenActive::Models::Schema::Product", "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Product", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :acquired_from, as: "acquiredFrom", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", - "URI", + # @return [DateTime,nil] + define_property :owned_through, as: "ownedThrough", types: [ + "DateTime", + "null", ] # @return [DateTime,nil] - define_property :owned_through, as: "ownedThrough", types: [ + define_property :owned_from, as: "ownedFrom", types: [ "DateTime", "null", ] diff --git a/lib/openactive/models/schema/parcel_delivery.rb b/lib/openactive/models/schema/parcel_delivery.rb index 92a2bbe4..5b827917 100644 --- a/lib/openactive/models/schema/parcel_delivery.rb +++ b/lib/openactive/models/schema/parcel_delivery.rb @@ -8,6 +8,13 @@ def type "schema:ParcelDelivery" end + # @return [Date,DateTime,nil] + define_property :expected_arrival_until, as: "expectedArrivalUntil", types: [ + "Date", + "DateTime", + "null", + ] + # @return [OpenActive::Models::Schema::PostalAddress,URI] define_property :origin_address, as: "originAddress", types: [ "OpenActive::Models::Schema::PostalAddress", @@ -19,16 +26,28 @@ def type "string", ] - # @return [OpenActive::Models::Schema::Product,URI] - define_property :item_shipped, as: "itemShipped", types: [ - "OpenActive::Models::Schema::Product", + # @return [OpenActive::Models::Schema::Order,URI] + define_property :part_of_order, as: "partOfOrder", types: [ + "OpenActive::Models::Schema::Order", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ + # @return [Date,DateTime,nil] + define_property :expected_arrival_from, as: "expectedArrivalFrom", types: [ + "Date", + "DateTime", + "null", + ] + + # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] + define_property :has_delivery_method, as: "hasDeliveryMethod", types: [ + "OpenActive::Enums::Schema::DeliveryMethod", + "null", + ] + + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :carrier, as: "carrier", types: [ "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", "URI", ] @@ -37,47 +56,28 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::PostalAddress,URI] - define_property :delivery_address, as: "deliveryAddress", types: [ - "OpenActive::Models::Schema::PostalAddress", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :provider, as: "provider", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [Date,DateTime,nil] - define_property :expected_arrival_until, as: "expectedArrivalUntil", types: [ - "Date", - "DateTime", - "null", - ] - # @return [OpenActive::Models::Schema::DeliveryEvent,URI] define_property :delivery_status, as: "deliveryStatus", types: [ "OpenActive::Models::Schema::DeliveryEvent", "URI", ] - # @return [Date,DateTime,nil] - define_property :expected_arrival_from, as: "expectedArrivalFrom", types: [ - "Date", - "DateTime", - "null", - ] - - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :carrier, as: "carrier", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Product,URI] + define_property :item_shipped, as: "itemShipped", types: [ + "OpenActive::Models::Schema::Product", "URI", ] - # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] - define_property :has_delivery_method, as: "hasDeliveryMethod", types: [ - "OpenActive::Enums::Schema::DeliveryMethod", - "null", - ] - - # @return [OpenActive::Models::Schema::Order,URI] - define_property :part_of_order, as: "partOfOrder", types: [ - "OpenActive::Models::Schema::Order", + # @return [OpenActive::Models::Schema::PostalAddress,URI] + define_property :delivery_address, as: "deliveryAddress", types: [ + "OpenActive::Models::Schema::PostalAddress", "URI", ] end diff --git a/lib/openactive/models/schema/patient.rb b/lib/openactive/models/schema/patient.rb index bd5f0d6d..727ceddb 100644 --- a/lib/openactive/models/schema/patient.rb +++ b/lib/openactive/models/schema/patient.rb @@ -14,17 +14,17 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Drug,URI] - define_property :drug, as: "drug", types: [ - "OpenActive::Models::Schema::Drug", - "URI", - ] - # @return [OpenActive::Models::Schema::MedicalCondition,URI] define_property :diagnosis, as: "diagnosis", types: [ "OpenActive::Models::Schema::MedicalCondition", "URI", ] + + # @return [OpenActive::Models::Schema::Drug,URI] + define_property :drug, as: "drug", types: [ + "OpenActive::Models::Schema::Drug", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/pay_action.rb b/lib/openactive/models/schema/pay_action.rb index 1b5e2f4c..143d16e6 100644 --- a/lib/openactive/models/schema/pay_action.rb +++ b/lib/openactive/models/schema/pay_action.rb @@ -8,12 +8,12 @@ def type "schema:PayAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/payment_card.rb b/lib/openactive/models/schema/payment_card.rb index b53216c3..0820d9e3 100644 --- a/lib/openactive/models/schema/payment_card.rb +++ b/lib/openactive/models/schema/payment_card.rb @@ -8,6 +8,18 @@ def type "schema:PaymentCard" end + # @return [OpenActive::Models::Schema::MonetaryAmount,URI] + define_property :floor_limit, as: "floorLimit", types: [ + "OpenActive::Models::Schema::MonetaryAmount", + "URI", + ] + + # @return [Boolean,nil] + define_property :contactless_payment, as: "contactlessPayment", types: [ + "bool", + "null", + ] + # @return [BigDecimal,Boolean,nil] define_property :cash_back, as: "cashBack", types: [ "Number", @@ -15,23 +27,11 @@ def type "null", ] - # @return [OpenActive::Models::Schema::MonetaryAmount,BigDecimal,URI,nil] + # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] define_property :monthly_minimum_repayment_amount, as: "monthlyMinimumRepaymentAmount", types: [ - "OpenActive::Models::Schema::MonetaryAmount", "Number", - "URI", - "null", - ] - - # @return [OpenActive::Models::Schema::MonetaryAmount,URI] - define_property :floor_limit, as: "floorLimit", types: [ "OpenActive::Models::Schema::MonetaryAmount", "URI", - ] - - # @return [Boolean,nil] - define_property :contactless_payment, as: "contactlessPayment", types: [ - "bool", "null", ] end diff --git a/lib/openactive/models/schema/people_audience.rb b/lib/openactive/models/schema/people_audience.rb index 9ff27dea..03433d21 100644 --- a/lib/openactive/models/schema/people_audience.rb +++ b/lib/openactive/models/schema/people_audience.rb @@ -9,58 +9,58 @@ def type end # @return [int,nil] - define_property :required_min_age, as: "requiredMinAge", types: [ + define_property :required_max_age, as: "requiredMaxAge", types: [ "int", "null", ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :suggested_age, as: "suggestedAge", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] + + # @return [String] + define_property :required_gender, as: "requiredGender", types: [ + "string", + ] + # @return [BigDecimal,nil] define_property :suggested_max_age, as: "suggestedMaxAge", types: [ "Number", "null", ] + # @return [String,OpenActive::Enums::Schema::GenderType,nil] + define_property :suggested_gender, as: "suggestedGender", types: [ + "string", + "OpenActive::Enums::Schema::GenderType", + "null", + ] + # @return [OpenActive::Models::Schema::MedicalCondition,URI] define_property :health_condition, as: "healthCondition", types: [ "OpenActive::Models::Schema::MedicalCondition", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :suggested_measurement, as: "suggestedMeasurement", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [int,nil] + define_property :required_min_age, as: "requiredMinAge", types: [ + "int", + "null", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :suggested_age, as: "suggestedAge", types: [ + define_property :suggested_measurement, as: "suggestedMeasurement", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [int,nil] - define_property :required_max_age, as: "requiredMaxAge", types: [ - "int", - "null", - ] - # @return [BigDecimal,nil] define_property :suggested_min_age, as: "suggestedMinAge", types: [ "Number", "null", ] - - # @return [String] - define_property :required_gender, as: "requiredGender", types: [ - "string", - ] - - # @return [OpenActive::Enums::Schema::GenderType,String,nil] - define_property :suggested_gender, as: "suggestedGender", types: [ - "OpenActive::Enums::Schema::GenderType", - "string", - "null", - ] end end end diff --git a/lib/openactive/models/schema/permit.rb b/lib/openactive/models/schema/permit.rb index 4705644a..833fbac4 100644 --- a/lib/openactive/models/schema/permit.rb +++ b/lib/openactive/models/schema/permit.rb @@ -8,30 +8,17 @@ def type "schema:Permit" end - # @return [ActiveSupport::Duration,URI,nil] - define_property :valid_for, as: "validFor", types: [ - "DateInterval", - "URI", - "null", - ] - - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :issued_by, as: "issuedBy", types: [ - "OpenActive::Models::Schema::Organization", - "URI", - ] - - # @return [Date,nil] - define_property :valid_until, as: "validUntil", types: [ + # @return [Date,DateTime,nil] + define_property :valid_from, as: "validFrom", types: [ "Date", + "DateTime", "null", ] - # @return [DateTime,Date,nil] - define_property :valid_from, as: "validFrom", types: [ - "DateTime", - "Date", - "null", + # @return [OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :valid_in, as: "validIn", types: [ + "OpenActive::Models::Schema::AdministrativeArea", + "URI", ] # @return [OpenActive::Models::Schema::Service,URI] @@ -40,9 +27,16 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::AdministrativeArea,URI] - define_property :valid_in, as: "validIn", types: [ - "OpenActive::Models::Schema::AdministrativeArea", + # @return [ActiveSupport::Duration,URI,nil] + define_property :valid_for, as: "validFor", types: [ + "DateInterval", + "URI", + "null", + ] + + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :issued_by, as: "issuedBy", types: [ + "OpenActive::Models::Schema::Organization", "URI", ] @@ -51,6 +45,12 @@ def type "OpenActive::Models::Schema::Audience", "URI", ] + + # @return [Date,nil] + define_property :valid_until, as: "validUntil", types: [ + "Date", + "null", + ] end end end diff --git a/lib/openactive/models/schema/person.rb b/lib/openactive/models/schema/person.rb index d2e08f55..9fa0c2e8 100644 --- a/lib/openactive/models/schema/person.rb +++ b/lib/openactive/models/schema/person.rb @@ -8,131 +8,146 @@ def type "schema:Person" end - # @return [OpenActive::Models::Schema::Person,URI] - define_property :spouse, as: "spouse", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::ContactPoint,URI] + define_property :contact_points, as: "contactPoints", types: [ + "OpenActive::Models::Schema::ContactPoint", "URI", ] # @return [String] - define_property :additional_name, as: "additionalName", types: [ + define_property :given_name, as: "givenName", types: [ "string", ] - # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,URI] - define_property :has_credential, as: "hasCredential", types: [ - "OpenActive::Models::Schema::EducationalOccupationalCredential", - "URI", - ] - # @return [String] - define_property :telephone, as: "telephone", types: [ + define_property :honorific_prefix, as: "honorificPrefix", types: [ "string", ] - # @return [String] - define_property :honorific_prefix, as: "honorificPrefix", types: [ - "string", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :works_for, as: "worksFor", types: [ + "OpenActive::Models::Schema::Organization", + "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :parents, as: "parents", types: [ + define_property :related_to, as: "relatedTo", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [String] - define_property :family_name, as: "familyName", types: [ - "string", + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :publishing_principles, as: "publishingPrinciples", types: [ + "OpenActive::Models::Schema::CreativeWork", + "URI", ] - # @return [String] - define_property :given_name, as: "givenName", types: [ - "string", + # @return [OpenActive::Models::Schema::ContactPoint,URI] + define_property :contact_point, as: "contactPoint", types: [ + "OpenActive::Models::Schema::ContactPoint", + "URI", ] - # @return [URI,String,OpenActive::Models::Schema::Thing] - define_property :knows_about, as: "knowsAbout", types: [ + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :affiliation, as: "affiliation", types: [ + "OpenActive::Models::Schema::Organization", "URI", - "string", - "OpenActive::Models::Schema::Thing", ] - # @return [OpenActive::Models::Schema::Event,URI] - define_property :performer_in, as: "performerIn", types: [ - "OpenActive::Models::Schema::Event", + # @return [Date,nil] + define_property :death_date, as: "deathDate", types: [ + "Date", + "null", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :follows, as: "follows", types: [ + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,URI] - define_property :net_worth, as: "netWorth", types: [ - "OpenActive::Models::Schema::MonetaryAmount", - "OpenActive::Models::Schema::PriceSpecification", + # @return [String] + define_property :awards, as: "awards", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :parent, as: "parent", types: [ + "OpenActive::Models::Schema::Person", "URI", ] # @return [String] - define_property :award, as: "award", types: [ + define_property :naics, as: "naics", types: [ "string", ] - # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::ContactPoint,URI] - define_property :work_location, as: "workLocation", types: [ - "OpenActive::Models::Schema::Place", - "OpenActive::Models::Schema::ContactPoint", + # @return [String,OpenActive::Models::Schema::Thing,URI] + define_property :knows_about, as: "knowsAbout", types: [ + "string", + "OpenActive::Models::Schema::Thing", "URI", ] # @return [String] - define_property :honorific_suffix, as: "honorificSuffix", types: [ + define_property :isic_v4, as: "isicV4", types: [ "string", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :death_place, as: "deathPlace", types: [ - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::ProgramMembership,OpenActive::Models::Schema::Organization,URI] + define_property :member_of, as: "memberOf", types: [ + "OpenActive::Models::Schema::ProgramMembership", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::ContactPoint,URI] - define_property :home_location, as: "homeLocation", types: [ - "OpenActive::Models::Schema::Place", - "OpenActive::Models::Schema::ContactPoint", + # @return [OpenActive::Models::Schema::Offer,URI] + define_property :makes_offer, as: "makesOffer", types: [ + "OpenActive::Models::Schema::Offer", "URI", ] - # @return [OpenActive::Models::Schema::Grant,URI] - define_property :funding, as: "funding", types: [ - "OpenActive::Models::Schema::Grant", + # @return [OpenActive::Models::Schema::PostalAddress,String,URI] + define_property :address, as: "address", types: [ + "OpenActive::Models::Schema::PostalAddress", + "string", "URI", ] # @return [String] - define_property :vat_id, as: "vatID", types: [ + define_property :duns, as: "duns", types: [ "string", ] - # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :height, as: "height", types: [ - "OpenActive::Models::Schema::Distance", - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :death_place, as: "deathPlace", types: [ + "OpenActive::Models::Schema::Place", "URI", ] - # @return [String] - define_property :global_location_number, as: "globalLocationNumber", types: [ - "string", + # @return [OpenActive::Models::Schema::EducationalOrganization,OpenActive::Models::Schema::Organization,URI] + define_property :alumni_of, as: "alumniOf", types: [ + "OpenActive::Models::Schema::EducationalOrganization", + "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [OpenActive::Models::Schema::ContactPoint,URI] - define_property :contact_points, as: "contactPoints", types: [ - "OpenActive::Models::Schema::ContactPoint", + # @return [OpenActive::Models::Schema::InteractionCounter,URI] + define_property :interaction_statistic, as: "interactionStatistic", types: [ + "OpenActive::Models::Schema::InteractionCounter", "URI", ] - # @return [OpenActive::Models::Schema::Occupation,URI] - define_property :has_occupation, as: "hasOccupation", types: [ - "OpenActive::Models::Schema::Occupation", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :sponsor, as: "sponsor", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :children, as: "children", types: [ + "OpenActive::Models::Schema::Person", "URI", ] @@ -143,246 +158,231 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :parent, as: "parent", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] + define_property :job_title, as: "jobTitle", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "string", "URI", ] # @return [String] - define_property :awards, as: "awards", types: [ + define_property :honorific_suffix, as: "honorificSuffix", types: [ "string", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :sibling, as: "sibling", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::EducationalOccupationalCredential,URI] + define_property :has_credential, as: "hasCredential", types: [ + "OpenActive::Models::Schema::EducationalOccupationalCredential", "URI", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] - define_property :job_title, as: "jobTitle", types: [ - "string", - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::ContactPoint,URI] + define_property :work_location, as: "workLocation", types: [ + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::ContactPoint", "URI", ] - # @return [Date,nil] - define_property :birth_date, as: "birthDate", types: [ - "Date", - "null", + # @return [OpenActive::Models::Schema::Country,URI] + define_property :nationality, as: "nationality", types: [ + "OpenActive::Models::Schema::Country", + "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :funder, as: "funder", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", - "URI", + # @return [String] + define_property :tax_id, as: "taxID", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Offer,URI] - define_property :makes_offer, as: "makesOffer", types: [ - "OpenActive::Models::Schema::Offer", - "URI", + # @return [String] + define_property :award, as: "award", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :children, as: "children", types: [ - "OpenActive::Models::Schema::Person", + # @return [String] + define_property :family_name, as: "familyName", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :height, as: "height", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", "URI", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :works_for, as: "worksFor", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :weight, as: "weight", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :knows, as: "knows", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Place,URI] + define_property :home_location, as: "homeLocation", types: [ + "OpenActive::Models::Schema::ContactPoint", + "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::InteractionCounter,URI] - define_property :interaction_statistic, as: "interactionStatistic", types: [ - "OpenActive::Models::Schema::InteractionCounter", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :funder, as: "funder", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [String,OpenActive::Models::Schema::PostalAddress,URI] - define_property :address, as: "address", types: [ - "string", - "OpenActive::Models::Schema::PostalAddress", + # @return [OpenActive::Models::Schema::Occupation,URI] + define_property :has_occupation, as: "hasOccupation", types: [ + "OpenActive::Models::Schema::Occupation", "URI", ] - # @return [OpenActive::Models::Schema::ProgramMembership,OpenActive::Models::Schema::Organization,URI] - define_property :member_of, as: "memberOf", types: [ - "OpenActive::Models::Schema::ProgramMembership", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Demand,URI] + define_property :seeks, as: "seeks", types: [ + "OpenActive::Models::Schema::Demand", "URI", ] - # @return [URI,OpenActive::Models::Schema::CreativeWork] - define_property :publishing_principles, as: "publishingPrinciples", types: [ + # @return [OpenActive::Models::Schema::OfferCatalog,URI] + define_property :has_offer_catalog, as: "hasOfferCatalog", types: [ + "OpenActive::Models::Schema::OfferCatalog", "URI", - "OpenActive::Models::Schema::CreativeWork", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :colleagues, as: "colleagues", types: [ + define_property :knows, as: "knows", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [Date,nil] - define_property :death_date, as: "deathDate", types: [ - "Date", - "null", + # @return [OpenActive::Models::Schema::Grant,URI] + define_property :funding, as: "funding", types: [ + "OpenActive::Models::Schema::Grant", + "URI", ] # @return [String] - define_property :email, as: "email", types: [ + define_property :fax_number, as: "faxNumber", types: [ "string", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :affiliation, as: "affiliation", types: [ - "OpenActive::Models::Schema::Organization", + # @return [String] + define_property :additional_name, as: "additionalName", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::PriceSpecification,OpenActive::Models::Schema::MonetaryAmount,URI] + define_property :net_worth, as: "netWorth", types: [ + "OpenActive::Models::Schema::PriceSpecification", + "OpenActive::Models::Schema::MonetaryAmount", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :siblings, as: "siblings", types: [ + define_property :spouse, as: "spouse", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :birth_place, as: "birthPlace", types: [ - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :colleagues, as: "colleagues", types: [ + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Brand,URI] - define_property :brand, as: "brand", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Brand", + # @return [OpenActive::Models::Schema::Event,URI] + define_property :performer_in, as: "performerIn", types: [ + "OpenActive::Models::Schema::Event", "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :sponsor, as: "sponsor", types: [ - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :sibling, as: "sibling", types: [ "OpenActive::Models::Schema::Person", "URI", ] # @return [String] - define_property :naics, as: "naics", types: [ + define_property :global_location_number, as: "globalLocationNumber", types: [ "string", ] - # @return [OpenActive::Models::Schema::ContactPoint,URI] - define_property :contact_point, as: "contactPoint", types: [ - "OpenActive::Models::Schema::ContactPoint", + # @return [OpenActive::Models::Schema::OwnershipInfo,OpenActive::Models::Schema::Product,URI] + define_property :owns, as: "owns", types: [ + "OpenActive::Models::Schema::OwnershipInfo", + "OpenActive::Models::Schema::Product", "URI", ] - # @return [String] - define_property :call_sign, as: "callSign", types: [ - "string", - ] - - # @return [String] - define_property :isic_v4, as: "isicV4", types: [ + # @return [String,OpenActive::Models::Schema::Language,URI] + define_property :knows_language, as: "knowsLanguage", types: [ "string", - ] - - # @return [OpenActive::Models::Schema::Place,URI] - define_property :has_pos, as: "hasPOS", types: [ - "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::Language", "URI", ] - # @return [OpenActive::Models::Schema::EducationalOrganization,OpenActive::Models::Schema::Organization,URI] - define_property :alumni_of, as: "alumniOf", types: [ - "OpenActive::Models::Schema::EducationalOrganization", + # @return [OpenActive::Models::Schema::Brand,OpenActive::Models::Schema::Organization,URI] + define_property :brand, as: "brand", types: [ + "OpenActive::Models::Schema::Brand", "OpenActive::Models::Schema::Organization", "URI", ] - # @return [String] - define_property :duns, as: "duns", types: [ - "string", + # @return [Date,nil] + define_property :birth_date, as: "birthDate", types: [ + "Date", + "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :weight, as: "weight", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :siblings, as: "siblings", types: [ + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Language,String,URI] - define_property :knows_language, as: "knowsLanguage", types: [ - "OpenActive::Models::Schema::Language", - "string", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :birth_place, as: "birthPlace", types: [ + "OpenActive::Models::Schema::Place", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :related_to, as: "relatedTo", types: [ + define_property :parents, as: "parents", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :colleague, as: "colleague", types: [ - "OpenActive::Models::Schema::Person", - "URI", + # @return [String] + define_property :telephone, as: "telephone", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Demand,URI] - define_property :seeks, as: "seeks", types: [ - "OpenActive::Models::Schema::Demand", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :has_pos, as: "hasPOS", types: [ + "OpenActive::Models::Schema::Place", "URI", ] # @return [String] - define_property :tax_id, as: "taxID", types: [ + define_property :email, as: "email", types: [ "string", ] - # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::OwnershipInfo,URI] - define_property :owns, as: "owns", types: [ - "OpenActive::Models::Schema::Product", - "OpenActive::Models::Schema::OwnershipInfo", - "URI", + # @return [String] + define_property :call_sign, as: "callSign", types: [ + "string", ] - # @return [OpenActive::Models::Schema::OfferCatalog,URI] - define_property :has_offer_catalog, as: "hasOfferCatalog", types: [ - "OpenActive::Models::Schema::OfferCatalog", - "URI", + # @return [String] + define_property :vat_id, as: "vatID", types: [ + "string", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :follows, as: "follows", types: [ + define_property :colleague, as: "colleague", types: [ "OpenActive::Models::Schema::Person", "URI", ] - - # @return [OpenActive::Models::Schema::Country,URI] - define_property :nationality, as: "nationality", types: [ - "OpenActive::Models::Schema::Country", - "URI", - ] - - # @return [String] - define_property :fax_number, as: "faxNumber", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/physical_activity.rb b/lib/openactive/models/schema/physical_activity.rb index eadc9688..efb2390c 100644 --- a/lib/openactive/models/schema/physical_activity.rb +++ b/lib/openactive/models/schema/physical_activity.rb @@ -8,12 +8,17 @@ def type "schema:PhysicalActivity" end - # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] - define_property :category, as: "category", types: [ - "URI", + # @return [String] + define_property :epidemiology, as: "epidemiology", types: [ "string", + ] + + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil] + define_property :category, as: "category", types: [ "OpenActive::Enums::Schema::PhysicalActivityCategory", + "URI", "OpenActive::Models::Schema::Thing", + "string", "OpenActive::Models::Schema::CategoryCode", "null", ] @@ -23,18 +28,13 @@ def type "string", ] - # @return [OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::AnatomicalSystem,OpenActive::Models::Schema::SuperficialAnatomy,URI] + # @return [OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::SuperficialAnatomy,OpenActive::Models::Schema::AnatomicalSystem,URI] define_property :associated_anatomy, as: "associatedAnatomy", types: [ "OpenActive::Models::Schema::AnatomicalStructure", - "OpenActive::Models::Schema::AnatomicalSystem", "OpenActive::Models::Schema::SuperficialAnatomy", + "OpenActive::Models::Schema::AnatomicalSystem", "URI", ] - - # @return [String] - define_property :epidemiology, as: "epidemiology", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/physician.rb b/lib/openactive/models/schema/physician.rb index c63081da..8318d657 100644 --- a/lib/openactive/models/schema/physician.rb +++ b/lib/openactive/models/schema/physician.rb @@ -8,17 +8,11 @@ def type "schema:Physician" end - # @return [OpenActive::Models::Schema::MedicalTest,OpenActive::Models::Schema::MedicalProcedure,OpenActive::Models::Schema::MedicalTherapy,URI] + # @return [OpenActive::Models::Schema::MedicalTherapy,OpenActive::Models::Schema::MedicalProcedure,OpenActive::Models::Schema::MedicalTest,URI] define_property :available_service, as: "availableService", types: [ - "OpenActive::Models::Schema::MedicalTest", - "OpenActive::Models::Schema::MedicalProcedure", "OpenActive::Models::Schema::MedicalTherapy", - "URI", - ] - - # @return [OpenActive::Models::Schema::MedicalSpecialty,URI] - define_property :medical_specialty, as: "medicalSpecialty", types: [ - "OpenActive::Models::Schema::MedicalSpecialty", + "OpenActive::Models::Schema::MedicalProcedure", + "OpenActive::Models::Schema::MedicalTest", "URI", ] @@ -27,6 +21,12 @@ def type "OpenActive::Models::Schema::Hospital", "URI", ] + + # @return [OpenActive::Models::Schema::MedicalSpecialty,URI] + define_property :medical_specialty, as: "medicalSpecialty", types: [ + "OpenActive::Models::Schema::MedicalSpecialty", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/place.rb b/lib/openactive/models/schema/place.rb index 75ccf06c..631f1bbc 100644 --- a/lib/openactive/models/schema/place.rb +++ b/lib/openactive/models/schema/place.rb @@ -8,32 +8,29 @@ def type "schema:Place" end - # @return [String] - define_property :telephone, as: "telephone", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::Review,URI] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", + # @return [OpenActive::Models::Schema::ImageObject,OpenActive::Models::Schema::Photograph,URI] + define_property :photos, as: "photos", types: [ + "OpenActive::Models::Schema::ImageObject", + "OpenActive::Models::Schema::Photograph", "URI", ] - # @return [URI] - define_property :maps, as: "maps", types: [ - "URI", + # @return [Boolean,nil] + define_property :is_accessible_for_free, as: "isAccessibleForFree", types: [ + "bool", + "null", ] - # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] - define_property :geo_contains, as: "geoContains", types: [ - "OpenActive::Models::Schema::Place", - "OpenActive::Models::Schema::GeospatialGeometry", + # @return [URI,OpenActive::Models::Schema::Map] + define_property :has_map, as: "hasMap", types: [ "URI", + "OpenActive::Models::Schema::Map", ] - # @return [int,nil] - define_property :maximum_attendee_capacity, as: "maximumAttendeeCapacity", types: [ - "int", + # @return [BigDecimal,String,nil] + define_property :latitude, as: "latitude", types: [ + "Number", + "string", "null", ] @@ -43,143 +40,131 @@ def type "URI", ] - # @return [Boolean,nil] - define_property :smoking_allowed, as: "smokingAllowed", types: [ - "bool", - "null", - ] - - # @return [String] - define_property :global_location_number, as: "globalLocationNumber", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :keywords, as: "keywords", types: [ - "OpenActive::Models::Schema::DefinedTerm", - "string", - "URI", - ] - # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_intersects, as: "geoIntersects", types: [ + define_property :geo_covers, as: "geoCovers", types: [ "OpenActive::Models::Schema::GeospatialGeometry", "OpenActive::Models::Schema::Place", "URI", ] - # @return [String,BigDecimal,nil] - define_property :latitude, as: "latitude", types: [ - "string", - "Number", - "null", - ] - # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] - define_property :geo_touches, as: "geoTouches", types: [ + define_property :geo_covered_by, as: "geoCoveredBy", types: [ "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] - define_property :geo_covered_by, as: "geoCoveredBy", types: [ + define_property :geo_crosses, as: "geoCrosses", types: [ "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] - # @return [OpenActive::Models::Schema::AggregateRating,URI] - define_property :aggregate_rating, as: "aggregateRating", types: [ - "OpenActive::Models::Schema::AggregateRating", + # @return [Boolean,nil] + define_property :smoking_allowed, as: "smokingAllowed", types: [ + "bool", + "null", + ] + + # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] + define_property :geo_touches, as: "geoTouches", types: [ + "OpenActive::Models::Schema::GeospatialGeometry", + "OpenActive::Models::Schema::Place", "URI", ] - # @return [String,OpenActive::Models::Schema::PostalAddress,URI] - define_property :address, as: "address", types: [ - "string", - "OpenActive::Models::Schema::PostalAddress", + # @return [OpenActive::Models::Schema::Photograph,OpenActive::Models::Schema::ImageObject,URI] + define_property :photo, as: "photo", types: [ + "OpenActive::Models::Schema::Photograph", + "OpenActive::Models::Schema::ImageObject", "URI", ] + # @return [String] + define_property :branch_code, as: "branchCode", types: [ + "string", + ] + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] - define_property :geo_equals, as: "geoEquals", types: [ + define_property :geo_contains, as: "geoContains", types: [ "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] # @return [URI] - define_property :map, as: "map", types: [ + define_property :tour_booking_page, as: "tourBookingPage", types: [ "URI", ] - # @return [Boolean,nil] - define_property :public_access, as: "publicAccess", types: [ - "bool", - "null", + # @return [String] + define_property :isic_v4, as: "isicV4", types: [ + "string", ] - # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_crosses, as: "geoCrosses", types: [ - "OpenActive::Models::Schema::GeospatialGeometry", - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::GeoCoordinates,OpenActive::Models::Schema::GeoShape,URI] + define_property :geo, as: "geo", types: [ + "OpenActive::Models::Schema::GeoCoordinates", + "OpenActive::Models::Schema::GeoShape", "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :contained_in_place, as: "containedInPlace", types: [ - "OpenActive::Models::Schema::Place", + # @return [URI] + define_property :maps, as: "maps", types: [ "URI", ] - # @return [OpenActive::Models::Schema::LocationFeatureSpecification,URI] - define_property :amenity_feature, as: "amenityFeature", types: [ - "OpenActive::Models::Schema::LocationFeatureSpecification", + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :keywords, as: "keywords", types: [ + "string", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [String] - define_property :slogan, as: "slogan", types: [ + # @return [OpenActive::Models::Schema::PostalAddress,String,URI] + define_property :address, as: "address", types: [ + "OpenActive::Models::Schema::PostalAddress", "string", + "URI", ] - # @return [OpenActive::Models::Schema::ImageObject,OpenActive::Models::Schema::Photograph,URI] - define_property :photos, as: "photos", types: [ - "OpenActive::Models::Schema::ImageObject", - "OpenActive::Models::Schema::Photograph", + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] + define_property :geo_overlaps, as: "geoOverlaps", types: [ + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeospatialGeometry", + "URI", + ] + + # @return [OpenActive::Models::Schema::AggregateRating,URI] + define_property :aggregate_rating, as: "aggregateRating", types: [ + "OpenActive::Models::Schema::AggregateRating", "URI", ] # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_covers, as: "geoCovers", types: [ + define_property :geo_intersects, as: "geoIntersects", types: [ "OpenActive::Models::Schema::GeospatialGeometry", "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :contained_in, as: "containedIn", types: [ - "OpenActive::Models::Schema::Place", - "URI", + # @return [int,nil] + define_property :maximum_attendee_capacity, as: "maximumAttendeeCapacity", types: [ + "int", + "null", ] # @return [Boolean,nil] - define_property :has_drive_through_service, as: "hasDriveThroughService", types: [ + define_property :public_access, as: "publicAccess", types: [ "bool", "null", ] - # @return [URI,OpenActive::Models::Schema::ImageObject] - define_property :logo, as: "logo", types: [ + # @return [OpenActive::Models::Schema::PropertyValue,URI] + define_property :additional_property, as: "additionalProperty", types: [ + "OpenActive::Models::Schema::PropertyValue", "URI", - "OpenActive::Models::Schema::ImageObject", - ] - - # @return [Boolean,nil] - define_property :is_accessible_for_free, as: "isAccessibleForFree", types: [ - "bool", - "null", ] # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] @@ -189,70 +174,74 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_disjoint, as: "geoDisjoint", types: [ - "OpenActive::Models::Schema::GeospatialGeometry", - "OpenActive::Models::Schema::Place", - "URI", + # @return [Boolean,nil] + define_property :has_drive_through_service, as: "hasDriveThroughService", types: [ + "bool", + "null", ] - # @return [URI] - define_property :tour_booking_page, as: "tourBookingPage", types: [ + # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] + define_property :opening_hours_specification, as: "openingHoursSpecification", types: [ + "OpenActive::Models::Schema::OpeningHoursSpecification", "URI", ] - # @return [String] - define_property :isic_v4, as: "isicV4", types: [ - "string", + # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] + define_property :special_opening_hours_specification, as: "specialOpeningHoursSpecification", types: [ + "OpenActive::Models::Schema::OpeningHoursSpecification", + "URI", ] - # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI] - define_property :geo_overlaps, as: "geoOverlaps", types: [ - "OpenActive::Models::Schema::GeospatialGeometry", - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::Event,URI] + define_property :event, as: "event", types: [ + "OpenActive::Models::Schema::Event", "URI", ] - # @return [String] - define_property :branch_code, as: "branchCode", types: [ - "string", + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :logo, as: "logo", types: [ + "OpenActive::Models::Schema::ImageObject", + "URI", ] - # @return [OpenActive::Models::Schema::PropertyValue,URI] - define_property :additional_property, as: "additionalProperty", types: [ - "OpenActive::Models::Schema::PropertyValue", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :contained_in_place, as: "containedInPlace", types: [ + "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] - define_property :opening_hours_specification, as: "openingHoursSpecification", types: [ - "OpenActive::Models::Schema::OpeningHoursSpecification", + # @return [OpenActive::Models::Schema::LocationFeatureSpecification,URI] + define_property :amenity_feature, as: "amenityFeature", types: [ + "OpenActive::Models::Schema::LocationFeatureSpecification", "URI", ] - # @return [OpenActive::Models::Schema::Review,URI] - define_property :reviews, as: "reviews", types: [ - "OpenActive::Models::Schema::Review", + # @return [URI] + define_property :map, as: "map", types: [ "URI", ] - # @return [OpenActive::Models::Schema::Photograph,OpenActive::Models::Schema::ImageObject,URI] - define_property :photo, as: "photo", types: [ - "OpenActive::Models::Schema::Photograph", - "OpenActive::Models::Schema::ImageObject", + # @return [OpenActive::Models::Schema::Event,URI] + define_property :events, as: "events", types: [ + "OpenActive::Models::Schema::Event", "URI", ] - # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] - define_property :special_opening_hours_specification, as: "specialOpeningHoursSpecification", types: [ - "OpenActive::Models::Schema::OpeningHoursSpecification", + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] + define_property :geo_equals, as: "geoEquals", types: [ + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] - # @return [URI,OpenActive::Models::Schema::Map] - define_property :has_map, as: "hasMap", types: [ - "URI", - "OpenActive::Models::Schema::Map", + # @return [String] + define_property :fax_number, as: "faxNumber", types: [ + "string", + ] + + # @return [String] + define_property :slogan, as: "slogan", types: [ + "string", ] # @return [BigDecimal,String,nil] @@ -262,27 +251,38 @@ def type "null", ] - # @return [OpenActive::Models::Schema::GeoCoordinates,OpenActive::Models::Schema::GeoShape,URI] - define_property :geo, as: "geo", types: [ - "OpenActive::Models::Schema::GeoCoordinates", - "OpenActive::Models::Schema::GeoShape", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :reviews, as: "reviews", types: [ + "OpenActive::Models::Schema::Review", "URI", ] - # @return [OpenActive::Models::Schema::Event,URI] - define_property :events, as: "events", types: [ - "OpenActive::Models::Schema::Event", - "URI", + # @return [String] + define_property :global_location_number, as: "globalLocationNumber", types: [ + "string", ] # @return [String] - define_property :fax_number, as: "faxNumber", types: [ + define_property :telephone, as: "telephone", types: [ "string", ] - # @return [OpenActive::Models::Schema::Event,URI] - define_property :event, as: "event", types: [ - "OpenActive::Models::Schema::Event", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", + "URI", + ] + + # @return [OpenActive::Models::Schema::Place,URI] + define_property :contained_in, as: "containedIn", types: [ + "OpenActive::Models::Schema::Place", + "URI", + ] + + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI] + define_property :geo_disjoint, as: "geoDisjoint", types: [ + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeospatialGeometry", "URI", ] end diff --git a/lib/openactive/models/schema/plan_action.rb b/lib/openactive/models/schema/plan_action.rb index acd9c4e6..ce20f4b8 100644 --- a/lib/openactive/models/schema/plan_action.rb +++ b/lib/openactive/models/schema/plan_action.rb @@ -8,8 +8,9 @@ def type "schema:PlanAction" end - # @return [DateTime,nil] + # @return [Date,DateTime,nil] define_property :scheduled_time, as: "scheduledTime", types: [ + "Date", "DateTime", "null", ] diff --git a/lib/openactive/models/schema/play_action.rb b/lib/openactive/models/schema/play_action.rb index 419035b2..b364d973 100644 --- a/lib/openactive/models/schema/play_action.rb +++ b/lib/openactive/models/schema/play_action.rb @@ -8,17 +8,17 @@ def type "schema:PlayAction" end - # @return [OpenActive::Models::Schema::Audience,URI] - define_property :audience, as: "audience", types: [ - "OpenActive::Models::Schema::Audience", - "URI", - ] - # @return [OpenActive::Models::Schema::Event,URI] define_property :event, as: "event", types: [ "OpenActive::Models::Schema::Event", "URI", ] + + # @return [OpenActive::Models::Schema::Audience,URI] + define_property :audience, as: "audience", types: [ + "OpenActive::Models::Schema::Audience", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/podcast_series.rb b/lib/openactive/models/schema/podcast_series.rb index b30368a0..e13e9ec9 100644 --- a/lib/openactive/models/schema/podcast_series.rb +++ b/lib/openactive/models/schema/podcast_series.rb @@ -8,17 +8,17 @@ def type "schema:PodcastSeries" end - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - # @return [OpenActive::Models::Schema::DataFeed,URI] define_property :web_feed, as: "webFeed", types: [ "OpenActive::Models::Schema::DataFeed", "URI", ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actor, as: "actor", types: [ + "OpenActive::Models::Schema::Person", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/political_party.rb b/lib/openactive/models/schema/political_party.rb new file mode 100644 index 00000000..4641e2db --- /dev/null +++ b/lib/openactive/models/schema/political_party.rb @@ -0,0 +1,13 @@ +module OpenActive + module Models + module Schema + class PoliticalParty < ::OpenActive::Models::Schema::Organization + # @!attribute type + # @return [String] + def type + "schema:PoliticalParty" + end + end + end + end +end diff --git a/lib/openactive/models/schema/postal_address.rb b/lib/openactive/models/schema/postal_address.rb index 9431c310..55e83381 100644 --- a/lib/openactive/models/schema/postal_address.rb +++ b/lib/openactive/models/schema/postal_address.rb @@ -16,27 +16,27 @@ def type ] # @return [String] - define_property :address_region, as: "addressRegion", types: [ + define_property :post_office_box_number, as: "postOfficeBoxNumber", types: [ "string", ] # @return [String] - define_property :address_locality, as: "addressLocality", types: [ + define_property :postal_code, as: "postalCode", types: [ "string", ] # @return [String] - define_property :postal_code, as: "postalCode", types: [ + define_property :address_region, as: "addressRegion", types: [ "string", ] # @return [String] - define_property :post_office_box_number, as: "postOfficeBoxNumber", types: [ + define_property :street_address, as: "streetAddress", types: [ "string", ] # @return [String] - define_property :street_address, as: "streetAddress", types: [ + define_property :address_locality, as: "addressLocality", types: [ "string", ] end diff --git a/lib/openactive/models/schema/postal_code_range_specification.rb b/lib/openactive/models/schema/postal_code_range_specification.rb index 736f6d75..ac90520e 100644 --- a/lib/openactive/models/schema/postal_code_range_specification.rb +++ b/lib/openactive/models/schema/postal_code_range_specification.rb @@ -9,12 +9,12 @@ def type end # @return [String] - define_property :postal_code_end, as: "postalCodeEnd", types: [ + define_property :postal_code_begin, as: "postalCodeBegin", types: [ "string", ] # @return [String] - define_property :postal_code_begin, as: "postalCodeBegin", types: [ + define_property :postal_code_end, as: "postalCodeEnd", types: [ "string", ] end diff --git a/lib/openactive/models/schema/price_specification.rb b/lib/openactive/models/schema/price_specification.rb index 9da6d6c4..0b57d956 100644 --- a/lib/openactive/models/schema/price_specification.rb +++ b/lib/openactive/models/schema/price_specification.rb @@ -8,39 +8,41 @@ def type "schema:PriceSpecification" end - # @return [BigDecimal,nil] - define_property :min_price, as: "minPrice", types: [ - "Number", + # @return [String] + define_property :price_currency, as: "priceCurrency", types: [ + "string", + ] + + # @return [Date,DateTime,nil] + define_property :valid_from, as: "validFrom", types: [ + "Date", + "DateTime", "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :eligible_quantity, as: "eligibleQuantity", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [Boolean,nil] + define_property :value_added_tax_included, as: "valueAddedTaxIncluded", types: [ + "bool", + "null", ] - # @return [DateTime,Date,nil] - define_property :valid_from, as: "validFrom", types: [ - "DateTime", + # @return [Date,DateTime,nil] + define_property :valid_through, as: "validThrough", types: [ "Date", + "DateTime", "null", ] # @return [BigDecimal,nil] - define_property :max_price, as: "maxPrice", types: [ + define_property :min_price, as: "minPrice", types: [ "Number", "null", ] - # @return [String] - define_property :price_currency, as: "priceCurrency", types: [ + # @return [BigDecimal,String,nil] + define_property :price, as: "price", types: [ + "Number", "string", - ] - - # @return [Boolean,nil] - define_property :value_added_tax_included, as: "valueAddedTaxIncluded", types: [ - "bool", "null", ] @@ -50,18 +52,16 @@ def type "URI", ] - # @return [DateTime,Date,nil] - define_property :valid_through, as: "validThrough", types: [ - "DateTime", - "Date", + # @return [BigDecimal,nil] + define_property :max_price, as: "maxPrice", types: [ + "Number", "null", ] - # @return [BigDecimal,String,nil] - define_property :price, as: "price", types: [ - "Number", - "string", - "null", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :eligible_quantity, as: "eligibleQuantity", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] end end diff --git a/lib/openactive/models/schema/product.rb b/lib/openactive/models/schema/product.rb index 8ff3e547..68ca335c 100644 --- a/lib/openactive/models/schema/product.rb +++ b/lib/openactive/models/schema/product.rb @@ -8,10 +8,15 @@ def type "schema:Product" end - # @return [OpenActive::Models::Schema::Product,URI] - define_property :is_accessory_or_spare_part_for, as: "isAccessoryOrSparePartFor", types: [ - "OpenActive::Models::Schema::Product", - "URI", + # @return [String] + define_property :mobile_url, as: "mobileUrl", types: [ + "string", + ] + + # @return [Date,nil] + define_property :purchase_date, as: "purchaseDate", types: [ + "Date", + "null", ] # @return [OpenActive::Enums::Schema::AdultOrientedEnumeration,nil] @@ -20,39 +25,37 @@ def type "null", ] - # @return [String] - define_property :gtin12, as: "gtin12", types: [ - "string", + # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI] + define_property :offers, as: "offers", types: [ + "OpenActive::Models::Schema::Demand", + "OpenActive::Models::Schema::Offer", + "URI", ] - # @return [String] - define_property :nsn, as: "nsn", types: [ - "string", + # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] + define_property :item_condition, as: "itemCondition", types: [ + "OpenActive::Enums::Schema::OfferItemCondition", + "null", ] - # @return [String,URI,OpenActive::Models::Schema::Product] - define_property :material, as: "material", types: [ + # @return [String] + define_property :color, as: "color", types: [ "string", - "URI", - "OpenActive::Models::Schema::Product", ] - # @return [OpenActive::Models::Schema::Review,URI] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", - "URI", + # @return [String] + define_property :gtin12, as: "gtin12", types: [ + "string", ] # @return [String] - define_property :award, as: "award", types: [ + define_property :awards, as: "awards", types: [ "string", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] - define_property :width, as: "width", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "OpenActive::Models::Schema::Distance", - "URI", + # @return [String] + define_property :country_of_assembly, as: "countryOfAssembly", types: [ + "string", ] # @return [OpenActive::Models::Schema::Country,URI] @@ -61,71 +64,59 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :pattern, as: "pattern", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :keywords, as: "keywords", types: [ "string", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] - define_property :category, as: "category", types: [ - "URI", + # @return [String,OpenActive::Models::Schema::Product,URI] + define_property :material, as: "material", types: [ "string", - "OpenActive::Enums::Schema::PhysicalActivityCategory", - "OpenActive::Models::Schema::Thing", - "OpenActive::Models::Schema::CategoryCode", - "null", - ] - - # @return [OpenActive::Models::Schema::Grant,URI] - define_property :funding, as: "funding", types: [ - "OpenActive::Models::Schema::Grant", + "OpenActive::Models::Schema::Product", "URI", ] # @return [String] - define_property :mpn, as: "mpn", types: [ + define_property :product_id, as: "productID", types: [ "string", ] - # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :height, as: "height", types: [ - "OpenActive::Models::Schema::Distance", - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Models::Schema::AggregateRating,URI] + define_property :aggregate_rating, as: "aggregateRating", types: [ + "OpenActive::Models::Schema::AggregateRating", "URI", ] - # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] - define_property :keywords, as: "keywords", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::WebContent,String,OpenActive::Models::Schema::ListItem,OpenActive::Models::Schema::ItemList,URI] + define_property :positive_notes, as: "positiveNotes", types: [ + "OpenActive::Models::Schema::WebContent", "string", + "OpenActive::Models::Schema::ListItem", + "OpenActive::Models::Schema::ItemList", "URI", ] - # @return [Date,nil] - define_property :purchase_date, as: "purchaseDate", types: [ - "Date", - "null", - ] - - # @return [OpenActive::Models::Schema::EnergyConsumptionDetails,URI] - define_property :has_energy_consumption_details, as: "hasEnergyConsumptionDetails", types: [ - "OpenActive::Models::Schema::EnergyConsumptionDetails", + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil] + define_property :category, as: "category", types: [ + "OpenActive::Enums::Schema::PhysicalActivityCategory", "URI", + "OpenActive::Models::Schema::Thing", + "string", + "OpenActive::Models::Schema::CategoryCode", + "null", ] - # @return [OpenActive::Models::Schema::Audience,URI] - define_property :audience, as: "audience", types: [ - "OpenActive::Models::Schema::Audience", - "URI", + # @return [Date,nil] + define_property :release_date, as: "releaseDate", types: [ + "Date", + "null", ] - # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] - define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", - "OpenActive::Models::Schema::Demand", - "URI", + # @return [String] + define_property :sku, as: "sku", types: [ + "string", ] # @return [Date,nil] @@ -134,43 +125,54 @@ def type "null", ] - # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] - define_property :item_condition, as: "itemCondition", types: [ - "OpenActive::Enums::Schema::OfferItemCondition", - "null", - ] - # @return [String] - define_property :awards, as: "awards", types: [ + define_property :gtin8, as: "gtin8", types: [ "string", ] - # @return [String] - define_property :gtin, as: "gtin", types: [ - "string", + # @return [OpenActive::Models::Schema::ProductGroup,OpenActive::Models::Schema::ProductModel,URI] + define_property :is_variant_of, as: "isVariantOf", types: [ + "OpenActive::Models::Schema::ProductGroup", + "OpenActive::Models::Schema::ProductModel", + "URI", ] - # @return [String] - define_property :product_id, as: "productID", types: [ - "string", + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :depth, as: "depth", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", + "URI", ] # @return [String] - define_property :country_of_assembly, as: "countryOfAssembly", types: [ + define_property :award, as: "award", types: [ "string", ] - # @return [String] - define_property :color, as: "color", types: [ - "string", + # @return [OpenActive::Models::Schema::PropertyValue,URI] + define_property :additional_property, as: "additionalProperty", types: [ + "OpenActive::Models::Schema::PropertyValue", + "URI", ] - # @return [OpenActive::Models::Schema::AggregateRating,URI] - define_property :aggregate_rating, as: "aggregateRating", types: [ - "OpenActive::Models::Schema::AggregateRating", + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :height, as: "height", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", "URI", ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :weight, as: "weight", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] + + # @return [String] + define_property :gtin13, as: "gtin13", types: [ + "string", + ] + # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] define_property :is_similar_to, as: "isSimilarTo", types: [ "OpenActive::Models::Schema::Service", @@ -178,35 +180,33 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :depth, as: "depth", types: [ - "OpenActive::Models::Schema::Distance", - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String,URI] + define_property :asin, as: "asin", types: [ + "string", "URI", ] - # @return [String] - define_property :country_of_last_processing, as: "countryOfLastProcessing", types: [ - "string", + # @return [Boolean,nil] + define_property :is_family_friendly, as: "isFamilyFriendly", types: [ + "bool", + "null", ] - # @return [OpenActive::Models::Schema::ProductModel,OpenActive::Models::Schema::ProductGroup,URI] - define_property :is_variant_of, as: "isVariantOf", types: [ - "OpenActive::Models::Schema::ProductModel", - "OpenActive::Models::Schema::ProductGroup", + # @return [OpenActive::Models::Schema::Product,URI] + define_property :is_consumable_for, as: "isConsumableFor", types: [ + "OpenActive::Models::Schema::Product", "URI", ] - # @return [String] - define_property :slogan, as: "slogan", types: [ - "string", + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :logo, as: "logo", types: [ + "OpenActive::Models::Schema::ImageObject", + "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Brand,URI] - define_property :brand, as: "brand", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Brand", - "URI", + # @return [String] + define_property :in_product_group_with_id, as: "inProductGroupWithID", types: [ + "string", ] # @return [OpenActive::Models::Schema::Organization,URI] @@ -215,105 +215,135 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :has_measurement, as: "hasMeasurement", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [String] + define_property :gtin14, as: "gtin14", types: [ + "string", ] # @return [OpenActive::Models::Schema::Product,URI] - define_property :is_consumable_for, as: "isConsumableFor", types: [ + define_property :is_accessory_or_spare_part_for, as: "isAccessoryOrSparePartFor", types: [ "OpenActive::Models::Schema::Product", "URI", ] - # @return [URI,OpenActive::Models::Schema::ImageObject] - define_property :logo, as: "logo", types: [ + # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] + define_property :is_related_to, as: "isRelatedTo", types: [ + "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Product", "URI", - "OpenActive::Models::Schema::ImageObject", ] - # @return [String] - define_property :gtin8, as: "gtin8", types: [ - "string", + # @return [OpenActive::Models::Schema::Grant,URI] + define_property :funding, as: "funding", types: [ + "OpenActive::Models::Schema::Grant", + "URI", ] # @return [String] - define_property :sku, as: "sku", types: [ + define_property :slogan, as: "slogan", types: [ "string", ] - # @return [String] - define_property :in_product_group_with_id, as: "inProductGroupWithID", types: [ - "string", + # @return [OpenActive::Models::Schema::Audience,URI] + define_property :audience, as: "audience", types: [ + "OpenActive::Models::Schema::Audience", + "URI", ] - # @return [OpenActive::Models::Schema::ProductModel,String,URI] + # @return [String,OpenActive::Models::Schema::ProductModel,URI] define_property :model, as: "model", types: [ - "OpenActive::Models::Schema::ProductModel", "string", + "OpenActive::Models::Schema::ProductModel", "URI", ] - # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI] - define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [ - "OpenActive::Models::Schema::MerchantReturnPolicy", + # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :width, as: "width", types: [ + "OpenActive::Models::Schema::Distance", + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [Date,nil] - define_property :release_date, as: "releaseDate", types: [ - "Date", - "null", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :has_measurement, as: "hasMeasurement", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [String] - define_property :gtin14, as: "gtin14", types: [ - "string", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :reviews, as: "reviews", types: [ + "OpenActive::Models::Schema::Review", + "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :weight, as: "weight", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :pattern, as: "pattern", types: [ + "string", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::DefinedTerm,String,OpenActive::Models::Schema::SizeSpecification,URI] - define_property :size, as: "size", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "OpenActive::Models::Schema::DefinedTerm", - "string", - "OpenActive::Models::Schema::SizeSpecification", + # @return [OpenActive::Models::Schema::Brand,OpenActive::Models::Schema::Organization,URI] + define_property :brand, as: "brand", types: [ + "OpenActive::Models::Schema::Brand", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Models::Schema::PropertyValue,URI] - define_property :additional_property, as: "additionalProperty", types: [ - "OpenActive::Models::Schema::PropertyValue", + # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI] + define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [ + "OpenActive::Models::Schema::MerchantReturnPolicy", "URI", ] - # @return [String] - define_property :gtin13, as: "gtin13", types: [ + # @return [URI,String] + define_property :gtin, as: "gtin", types: [ + "URI", "string", ] # @return [OpenActive::Models::Schema::Review,URI] - define_property :reviews, as: "reviews", types: [ + define_property :review, as: "review", types: [ "OpenActive::Models::Schema::Review", "URI", ] - # @return [Boolean,nil] - define_property :is_family_friendly, as: "isFamilyFriendly", types: [ - "bool", - "null", + # @return [String] + define_property :mpn, as: "mpn", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] - define_property :is_related_to, as: "isRelatedTo", types: [ - "OpenActive::Models::Schema::Service", - "OpenActive::Models::Schema::Product", + # @return [String] + define_property :nsn, as: "nsn", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::WebContent,String,OpenActive::Models::Schema::ListItem,URI] + define_property :negative_notes, as: "negativeNotes", types: [ + "OpenActive::Models::Schema::ItemList", + "OpenActive::Models::Schema::WebContent", + "string", + "OpenActive::Models::Schema::ListItem", + "URI", + ] + + # @return [String] + define_property :country_of_last_processing, as: "countryOfLastProcessing", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::EnergyConsumptionDetails,URI] + define_property :has_energy_consumption_details, as: "hasEnergyConsumptionDetails", types: [ + "OpenActive::Models::Schema::EnergyConsumptionDetails", + "URI", + ] + + # @return [String,OpenActive::Models::Schema::SizeSpecification,OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :size, as: "size", types: [ + "string", + "OpenActive::Models::Schema::SizeSpecification", + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::DefinedTerm", "URI", ] end diff --git a/lib/openactive/models/schema/product_collection.rb b/lib/openactive/models/schema/product_collection.rb index ab33940f..0150d6f9 100644 --- a/lib/openactive/models/schema/product_collection.rb +++ b/lib/openactive/models/schema/product_collection.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class ProductCollection < ::OpenActive::Models::Schema::Product + class ProductCollection < ::OpenActive::Models::Schema::Collection # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/product_group.rb b/lib/openactive/models/schema/product_group.rb index 7a2d6433..94905e0f 100644 --- a/lib/openactive/models/schema/product_group.rb +++ b/lib/openactive/models/schema/product_group.rb @@ -8,21 +8,21 @@ def type "schema:ProductGroup" end - # @return [OpenActive::Models::Schema::Product,URI] - define_property :has_variant, as: "hasVariant", types: [ - "OpenActive::Models::Schema::Product", - "URI", - ] - # @return [String] define_property :product_group_id, as: "productGroupID", types: [ "string", ] - # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + # @return [OpenActive::Models::Schema::DefinedTerm,String,URI] define_property :varies_by, as: "variesBy", types: [ - "string", "OpenActive::Models::Schema::DefinedTerm", + "string", + "URI", + ] + + # @return [OpenActive::Models::Schema::Product,URI] + define_property :has_variant, as: "hasVariant", types: [ + "OpenActive::Models::Schema::Product", "URI", ] end diff --git a/lib/openactive/models/schema/product_model.rb b/lib/openactive/models/schema/product_model.rb index 9544e54e..e60c64a4 100644 --- a/lib/openactive/models/schema/product_model.rb +++ b/lib/openactive/models/schema/product_model.rb @@ -9,21 +9,21 @@ def type end # @return [OpenActive::Models::Schema::ProductModel,URI] - define_property :successor_of, as: "successorOf", types: [ + define_property :predecessor_of, as: "predecessorOf", types: [ "OpenActive::Models::Schema::ProductModel", "URI", ] # @return [OpenActive::Models::Schema::ProductModel,URI] - define_property :predecessor_of, as: "predecessorOf", types: [ + define_property :successor_of, as: "successorOf", types: [ "OpenActive::Models::Schema::ProductModel", "URI", ] - # @return [OpenActive::Models::Schema::ProductModel,OpenActive::Models::Schema::ProductGroup,URI] + # @return [OpenActive::Models::Schema::ProductGroup,OpenActive::Models::Schema::ProductModel,URI] define_property :is_variant_of, as: "isVariantOf", types: [ - "OpenActive::Models::Schema::ProductModel", "OpenActive::Models::Schema::ProductGroup", + "OpenActive::Models::Schema::ProductModel", "URI", ] end diff --git a/lib/openactive/models/schema/program_membership.rb b/lib/openactive/models/schema/program_membership.rb index 33232650..083fb39a 100644 --- a/lib/openactive/models/schema/program_membership.rb +++ b/lib/openactive/models/schema/program_membership.rb @@ -8,26 +8,19 @@ def type "schema:ProgramMembership" end - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] + # @return [String] + define_property :program_name, as: "programName", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] define_property :membership_points_earned, as: "membershipPointsEarned", types: [ - "Number", "OpenActive::Models::Schema::QuantitativeValue", + "Number", "URI", "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :member, as: "member", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [String] - define_property :membership_number, as: "membershipNumber", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::Organization,URI] define_property :hosting_organization, as: "hostingOrganization", types: [ "OpenActive::Models::Schema::Organization", @@ -35,7 +28,7 @@ def type ] # @return [String] - define_property :program_name, as: "programName", types: [ + define_property :membership_number, as: "membershipNumber", types: [ "string", ] @@ -45,6 +38,13 @@ def type "OpenActive::Models::Schema::Organization", "URI", ] + + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :member, as: "member", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/pronounceable_text.rb b/lib/openactive/models/schema/pronounceable_text.rb index 1699bd45..d0a389e9 100644 --- a/lib/openactive/models/schema/pronounceable_text.rb +++ b/lib/openactive/models/schema/pronounceable_text.rb @@ -9,25 +9,25 @@ def type end # @return [String] - define_property :phonetic_text, as: "phoneticText", types: [ + define_property :text_value, as: "textValue", types: [ "string", ] - # @return [String] - define_property :speech_to_text_markup, as: "speechToTextMarkup", types: [ + # @return [String,OpenActive::Models::Schema::Language,URI] + define_property :in_language, as: "inLanguage", types: [ "string", + "OpenActive::Models::Schema::Language", + "URI", ] # @return [String] - define_property :text_value, as: "textValue", types: [ + define_property :phonetic_text, as: "phoneticText", types: [ "string", ] - # @return [String,OpenActive::Models::Schema::Language,URI] - define_property :in_language, as: "inLanguage", types: [ + # @return [String] + define_property :speech_to_text_markup, as: "speechToTextMarkup", types: [ "string", - "OpenActive::Models::Schema::Language", - "URI", ] end end diff --git a/lib/openactive/models/schema/property.rb b/lib/openactive/models/schema/property.rb index c0c6a4e5..7511c818 100644 --- a/lib/openactive/models/schema/property.rb +++ b/lib/openactive/models/schema/property.rb @@ -9,24 +9,24 @@ def type end # @return [OpenActive::Models::Schema::Class,URI] - define_property :domain_includes, as: "domainIncludes", types: [ + define_property :range_includes, as: "rangeIncludes", types: [ "OpenActive::Models::Schema::Class", "URI", ] - # @return [OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::Class,OpenActive::Enums::PropertyEnumeration,URI,nil] - define_property :superseded_by, as: "supersededBy", types: [ - "OpenActive::Models::Schema::Enumeration", + # @return [OpenActive::Models::Schema::Class,URI] + define_property :domain_includes, as: "domainIncludes", types: [ "OpenActive::Models::Schema::Class", - "OpenActive::Enums::PropertyEnumeration", "URI", - "null", ] - # @return [OpenActive::Models::Schema::Class,URI] - define_property :range_includes, as: "rangeIncludes", types: [ + # @return [OpenActive::Enums::PropertyEnumeration,OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::Class,URI,nil] + define_property :superseded_by, as: "supersededBy", types: [ + "OpenActive::Enums::PropertyEnumeration", + "OpenActive::Models::Schema::Enumeration", "OpenActive::Models::Schema::Class", "URI", + "null", ] # @return [OpenActive::Enums::PropertyEnumeration,URI,nil] diff --git a/lib/openactive/models/schema/property_value.rb b/lib/openactive/models/schema/property_value.rb index 3d3ef399..e0e1daad 100644 --- a/lib/openactive/models/schema/property_value.rb +++ b/lib/openactive/models/schema/property_value.rb @@ -8,24 +8,28 @@ def type "schema:PropertyValue" end - # @return [OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::DefinedTerm,String,OpenActive::Enums::Schema::MeasurementTypeEnumeration,OpenActive::Enums::Schema::QualitativeValue,OpenActive::Models::Schema::StructuredValue,OpenActive::Models::Schema::PropertyValue,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :value_reference, as: "valueReference", types: [ - "OpenActive::Models::Schema::Enumeration", - "OpenActive::Models::Schema::DefinedTerm", + # @return [String] + define_property :unit_text, as: "unitText", types: [ "string", - "OpenActive::Enums::Schema::MeasurementTypeEnumeration", - "OpenActive::Enums::Schema::QualitativeValue", - "OpenActive::Models::Schema::StructuredValue", - "OpenActive::Models::Schema::PropertyValue", - "OpenActive::Models::Schema::QuantitativeValue", + ] + + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_technique, as: "measurementTechnique", types: [ + "OpenActive::Models::Schema::DefinedTerm", "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", "null", ] - # @return [String,URI] - define_property :property_id, as: "propertyID", types: [ + # @return [BigDecimal,Boolean,String,OpenActive::Models::Schema::StructuredValue,URI,nil] + define_property :value, as: "value", types: [ + "Number", + "bool", "string", + "OpenActive::Models::Schema::StructuredValue", "URI", + "null", ] # @return [BigDecimal,nil] @@ -34,15 +38,18 @@ def type "null", ] - # @return [String] - define_property :unit_text, as: "unitText", types: [ - "string", - ] - - # @return [String,URI] - define_property :measurement_technique, as: "measurementTechnique", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::PropertyValue,OpenActive::Models::Schema::DefinedTerm,OpenActive::Enums::Schema::MeasurementTypeEnumeration,String,OpenActive::Models::Schema::Enumeration,OpenActive::Enums::Schema::QualitativeValue,OpenActive::Models::Schema::StructuredValue,URI,nil] + define_property :value_reference, as: "valueReference", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::PropertyValue", + "OpenActive::Models::Schema::DefinedTerm", + "OpenActive::Enums::Schema::MeasurementTypeEnumeration", "string", + "OpenActive::Models::Schema::Enumeration", + "OpenActive::Enums::Schema::QualitativeValue", + "OpenActive::Models::Schema::StructuredValue", "URI", + "null", ] # @return [BigDecimal,nil] @@ -51,18 +58,23 @@ def type "null", ] - # @return [String,BigDecimal,OpenActive::Models::Schema::StructuredValue,Boolean,URI,nil] - define_property :value, as: "value", types: [ + # @return [URI,String] + define_property :unit_code, as: "unitCode", types: [ + "URI", "string", - "Number", - "OpenActive::Models::Schema::StructuredValue", - "bool", + ] + + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_method, as: "measurementMethod", types: [ + "OpenActive::Models::Schema::DefinedTerm", "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", "null", ] # @return [String,URI] - define_property :unit_code, as: "unitCode", types: [ + define_property :property_id, as: "propertyID", types: [ "string", "URI", ] diff --git a/lib/openactive/models/schema/property_value_specification.rb b/lib/openactive/models/schema/property_value_specification.rb index 058e68df..0da8095b 100644 --- a/lib/openactive/models/schema/property_value_specification.rb +++ b/lib/openactive/models/schema/property_value_specification.rb @@ -8,12 +8,24 @@ def type "schema:PropertyValueSpecification" end - # @return [BigDecimal,nil] - define_property :value_max_length, as: "valueMaxLength", types: [ - "Number", + # @return [String] + define_property :value_pattern, as: "valuePattern", types: [ + "string", + ] + + # @return [Boolean,nil] + define_property :value_required, as: "valueRequired", types: [ + "bool", "null", ] + # @return [OpenActive::Models::Schema::Thing,String,URI] + define_property :default_value, as: "defaultValue", types: [ + "OpenActive::Models::Schema::Thing", + "string", + "URI", + ] + # @return [Boolean,nil] define_property :readonly_value, as: "readonlyValue", types: [ "bool", @@ -21,32 +33,26 @@ def type ] # @return [BigDecimal,nil] - define_property :max_value, as: "maxValue", types: [ + define_property :step_value, as: "stepValue", types: [ "Number", "null", ] - # @return [String] - define_property :value_name, as: "valueName", types: [ - "string", - ] - - # @return [String,OpenActive::Models::Schema::Thing,URI] - define_property :default_value, as: "defaultValue", types: [ - "string", - "OpenActive::Models::Schema::Thing", - "URI", + # @return [BigDecimal,nil] + define_property :value_min_length, as: "valueMinLength", types: [ + "Number", + "null", ] # @return [BigDecimal,nil] - define_property :value_min_length, as: "valueMinLength", types: [ + define_property :value_max_length, as: "valueMaxLength", types: [ "Number", "null", ] - # @return [Boolean,nil] - define_property :value_required, as: "valueRequired", types: [ - "bool", + # @return [BigDecimal,nil] + define_property :max_value, as: "maxValue", types: [ + "Number", "null", ] @@ -57,16 +63,10 @@ def type ] # @return [String] - define_property :value_pattern, as: "valuePattern", types: [ + define_property :value_name, as: "valueName", types: [ "string", ] - # @return [BigDecimal,nil] - define_property :step_value, as: "stepValue", types: [ - "Number", - "null", - ] - # @return [Boolean,nil] define_property :multiple_values, as: "multipleValues", types: [ "bool", diff --git a/lib/openactive/models/schema/publication_issue.rb b/lib/openactive/models/schema/publication_issue.rb index 500896a4..0619e2ca 100644 --- a/lib/openactive/models/schema/publication_issue.rb +++ b/lib/openactive/models/schema/publication_issue.rb @@ -8,8 +8,13 @@ def type "schema:PublicationIssue" end + # @return [String] + define_property :pagination, as: "pagination", types: [ + "string", + ] + # @return [String,int,nil] - define_property :page_start, as: "pageStart", types: [ + define_property :issue_number, as: "issueNumber", types: [ "string", "int", "null", @@ -22,17 +27,12 @@ def type "null", ] - # @return [int,String,nil] - define_property :issue_number, as: "issueNumber", types: [ - "int", + # @return [String,int,nil] + define_property :page_start, as: "pageStart", types: [ "string", + "int", "null", ] - - # @return [String] - define_property :pagination, as: "pagination", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/publication_volume.rb b/lib/openactive/models/schema/publication_volume.rb index 0e2fddb2..445220bd 100644 --- a/lib/openactive/models/schema/publication_volume.rb +++ b/lib/openactive/models/schema/publication_volume.rb @@ -8,8 +8,13 @@ def type "schema:PublicationVolume" end + # @return [String] + define_property :pagination, as: "pagination", types: [ + "string", + ] + # @return [String,int,nil] - define_property :page_start, as: "pageStart", types: [ + define_property :volume_number, as: "volumeNumber", types: [ "string", "int", "null", @@ -22,17 +27,12 @@ def type "null", ] - # @return [int,String,nil] - define_property :volume_number, as: "volumeNumber", types: [ - "int", + # @return [String,int,nil] + define_property :page_start, as: "pageStart", types: [ "string", + "int", "null", ] - - # @return [String] - define_property :pagination, as: "pagination", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/quantitative_value.rb b/lib/openactive/models/schema/quantitative_value.rb index c4a85cef..bf41796e 100644 --- a/lib/openactive/models/schema/quantitative_value.rb +++ b/lib/openactive/models/schema/quantitative_value.rb @@ -8,57 +8,57 @@ def type "schema:QuantitativeValue" end - # @return [OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::DefinedTerm,String,OpenActive::Enums::Schema::MeasurementTypeEnumeration,OpenActive::Enums::Schema::QualitativeValue,OpenActive::Models::Schema::StructuredValue,OpenActive::Models::Schema::PropertyValue,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :value_reference, as: "valueReference", types: [ - "OpenActive::Models::Schema::Enumeration", - "OpenActive::Models::Schema::DefinedTerm", + # @return [String] + define_property :unit_text, as: "unitText", types: [ "string", - "OpenActive::Enums::Schema::MeasurementTypeEnumeration", - "OpenActive::Enums::Schema::QualitativeValue", - "OpenActive::Models::Schema::StructuredValue", - "OpenActive::Models::Schema::PropertyValue", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - "null", ] - # @return [BigDecimal,nil] - define_property :max_value, as: "maxValue", types: [ + # @return [BigDecimal,Boolean,String,OpenActive::Models::Schema::StructuredValue,URI,nil] + define_property :value, as: "value", types: [ "Number", + "bool", + "string", + "OpenActive::Models::Schema::StructuredValue", + "URI", "null", ] - # @return [String] - define_property :unit_text, as: "unitText", types: [ - "string", + # @return [OpenActive::Models::Schema::PropertyValue,URI] + define_property :additional_property, as: "additionalProperty", types: [ + "OpenActive::Models::Schema::PropertyValue", + "URI", ] # @return [BigDecimal,nil] - define_property :min_value, as: "minValue", types: [ + define_property :max_value, as: "maxValue", types: [ "Number", "null", ] - # @return [String,BigDecimal,OpenActive::Models::Schema::StructuredValue,Boolean,URI,nil] - define_property :value, as: "value", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::PropertyValue,OpenActive::Models::Schema::DefinedTerm,OpenActive::Enums::Schema::MeasurementTypeEnumeration,String,OpenActive::Models::Schema::Enumeration,OpenActive::Enums::Schema::QualitativeValue,OpenActive::Models::Schema::StructuredValue,URI,nil] + define_property :value_reference, as: "valueReference", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::PropertyValue", + "OpenActive::Models::Schema::DefinedTerm", + "OpenActive::Enums::Schema::MeasurementTypeEnumeration", "string", - "Number", + "OpenActive::Models::Schema::Enumeration", + "OpenActive::Enums::Schema::QualitativeValue", "OpenActive::Models::Schema::StructuredValue", - "bool", "URI", "null", ] - # @return [String,URI] - define_property :unit_code, as: "unitCode", types: [ - "string", - "URI", + # @return [BigDecimal,nil] + define_property :min_value, as: "minValue", types: [ + "Number", + "null", ] - # @return [OpenActive::Models::Schema::PropertyValue,URI] - define_property :additional_property, as: "additionalProperty", types: [ - "OpenActive::Models::Schema::PropertyValue", + # @return [URI,String] + define_property :unit_code, as: "unitCode", types: [ "URI", + "string", ] end end diff --git a/lib/openactive/models/schema/quantitative_value_distribution.rb b/lib/openactive/models/schema/quantitative_value_distribution.rb index aa3404c6..6c587ff7 100644 --- a/lib/openactive/models/schema/quantitative_value_distribution.rb +++ b/lib/openactive/models/schema/quantitative_value_distribution.rb @@ -9,39 +9,39 @@ def type end # @return [BigDecimal,nil] - define_property :percentile75, as: "percentile75", types: [ + define_property :median, as: "median", types: [ "Number", "null", ] - # @return [BigDecimal,nil] - define_property :median, as: "median", types: [ - "Number", + # @return [ActiveSupport::Duration,URI,nil] + define_property :duration, as: "duration", types: [ + "DateInterval", + "URI", "null", ] # @return [BigDecimal,nil] - define_property :percentile10, as: "percentile10", types: [ + define_property :percentile25, as: "percentile25", types: [ "Number", "null", ] # @return [BigDecimal,nil] - define_property :percentile25, as: "percentile25", types: [ + define_property :percentile75, as: "percentile75", types: [ "Number", "null", ] # @return [BigDecimal,nil] - define_property :percentile90, as: "percentile90", types: [ + define_property :percentile10, as: "percentile10", types: [ "Number", "null", ] - # @return [ActiveSupport::Duration,URI,nil] - define_property :duration, as: "duration", types: [ - "DateInterval", - "URI", + # @return [BigDecimal,nil] + define_property :percentile90, as: "percentile90", types: [ + "Number", "null", ] end diff --git a/lib/openactive/models/schema/question.rb b/lib/openactive/models/schema/question.rb index ec73ae7e..6f5c3fd2 100644 --- a/lib/openactive/models/schema/question.rb +++ b/lib/openactive/models/schema/question.rb @@ -8,10 +8,15 @@ def type "schema:Question" end - # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::Answer,URI] + # @return [String] + define_property :edu_question_type, as: "eduQuestionType", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::Answer,OpenActive::Models::Schema::ItemList,URI] define_property :suggested_answer, as: "suggestedAnswer", types: [ - "OpenActive::Models::Schema::ItemList", "OpenActive::Models::Schema::Answer", + "OpenActive::Models::Schema::ItemList", "URI", ] @@ -27,11 +32,6 @@ def type "int", "null", ] - - # @return [String] - define_property :edu_question_type, as: "eduQuestionType", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/quotation.rb b/lib/openactive/models/schema/quotation.rb index 85906ca0..cb5638ca 100644 --- a/lib/openactive/models/schema/quotation.rb +++ b/lib/openactive/models/schema/quotation.rb @@ -8,10 +8,10 @@ def type "schema:Quotation" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] define_property :spoken_by_character, as: "spokenByCharacter", types: [ - "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/radio_series.rb b/lib/openactive/models/schema/radio_series.rb index 060b2ac4..986c1c56 100644 --- a/lib/openactive/models/schema/radio_series.rb +++ b/lib/openactive/models/schema/radio_series.rb @@ -8,27 +8,27 @@ def type "schema:RadioSeries" end - # @return [URI,OpenActive::Models::Schema::CreativeWorkSeason] - define_property :season, as: "season", types: [ + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actors, as: "actors", types: [ + "OpenActive::Models::Schema::Person", "URI", - "OpenActive::Models::Schema::CreativeWorkSeason", ] - # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] - define_property :contains_season, as: "containsSeason", types: [ - "OpenActive::Models::Schema::CreativeWorkSeason", + # @return [OpenActive::Models::Schema::Episode,URI] + define_property :episodes, as: "episodes", types: [ + "OpenActive::Models::Schema::Episode", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] + define_property :season, as: "season", types: [ + "OpenActive::Models::Schema::CreativeWorkSeason", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] + define_property :contains_season, as: "containsSeason", types: [ + "OpenActive::Models::Schema::CreativeWorkSeason", "URI", ] @@ -38,16 +38,16 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Episode,URI] - define_property :episodes, as: "episodes", types: [ - "OpenActive::Models::Schema::Episode", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :production_company, as: "productionCompany", types: [ + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [int,nil] - define_property :number_of_episodes, as: "numberOfEpisodes", types: [ - "int", - "null", + # @return [OpenActive::Models::Schema::Episode,URI] + define_property :episode, as: "episode", types: [ + "OpenActive::Models::Schema::Episode", + "URI", ] # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] @@ -56,18 +56,6 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Organization,URI] - define_property :production_company, as: "productionCompany", types: [ - "OpenActive::Models::Schema::Organization", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - # @return [int,nil] define_property :number_of_seasons, as: "numberOfSeasons", types: [ "int", @@ -81,14 +69,26 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Episode,URI] - define_property :episode, as: "episode", types: [ - "OpenActive::Models::Schema::Episode", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :directors, as: "directors", types: [ + "OpenActive::Models::Schema::Person", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :director, as: "director", types: [ + "OpenActive::Models::Schema::Person", + "URI", + ] + + # @return [int,nil] + define_property :number_of_episodes, as: "numberOfEpisodes", types: [ + "int", + "null", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/rating.rb b/lib/openactive/models/schema/rating.rb index 2af5b07f..ce811c60 100644 --- a/lib/openactive/models/schema/rating.rb +++ b/lib/openactive/models/schema/rating.rb @@ -9,17 +9,10 @@ def type end # @return [String] - define_property :review_aspect, as: "reviewAspect", types: [ + define_property :rating_explanation, as: "ratingExplanation", types: [ "string", ] - # @return [String,BigDecimal,nil] - define_property :worst_rating, as: "worstRating", types: [ - "string", - "Number", - "null", - ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :author, as: "author", types: [ "OpenActive::Models::Schema::Person", @@ -27,23 +20,30 @@ def type "URI", ] - # @return [String,BigDecimal,nil] - define_property :best_rating, as: "bestRating", types: [ - "string", + # @return [BigDecimal,String,nil] + define_property :rating_value, as: "ratingValue", types: [ "Number", + "string", "null", ] + # @return [String] + define_property :review_aspect, as: "reviewAspect", types: [ + "string", + ] + # @return [BigDecimal,String,nil] - define_property :rating_value, as: "ratingValue", types: [ + define_property :worst_rating, as: "worstRating", types: [ "Number", "string", "null", ] - # @return [String] - define_property :rating_explanation, as: "ratingExplanation", types: [ + # @return [BigDecimal,String,nil] + define_property :best_rating, as: "bestRating", types: [ + "Number", "string", + "null", ] end end diff --git a/lib/openactive/models/schema/real_estate_listing.rb b/lib/openactive/models/schema/real_estate_listing.rb index a2c7ac56..0a7b33ec 100644 --- a/lib/openactive/models/schema/real_estate_listing.rb +++ b/lib/openactive/models/schema/real_estate_listing.rb @@ -8,6 +8,13 @@ def type "schema:RealEstateListing" end + # @return [Date,DateTime,nil] + define_property :date_posted, as: "datePosted", types: [ + "Date", + "DateTime", + "null", + ] + # @return [OpenActive::Models::Schema::QuantitativeValue,ActiveSupport::Duration,URI,nil] define_property :lease_length, as: "leaseLength", types: [ "OpenActive::Models::Schema::QuantitativeValue", @@ -15,13 +22,6 @@ def type "URI", "null", ] - - # @return [Date,DateTime,nil] - define_property :date_posted, as: "datePosted", types: [ - "Date", - "DateTime", - "null", - ] end end end diff --git a/lib/openactive/models/schema/receive_action.rb b/lib/openactive/models/schema/receive_action.rb index 1b2ae73f..2f76a02b 100644 --- a/lib/openactive/models/schema/receive_action.rb +++ b/lib/openactive/models/schema/receive_action.rb @@ -8,19 +8,19 @@ def type "schema:ReceiveAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Organization,URI] - define_property :sender, as: "sender", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", - "OpenActive::Models::Schema::Organization", - "URI", - ] - # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] define_property :delivery_method, as: "deliveryMethod", types: [ "OpenActive::Enums::Schema::DeliveryMethod", "null", ] + + # @return [OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :sender, as: "sender", types: [ + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/recipe.rb b/lib/openactive/models/schema/recipe.rb index edd01fac..827e8511 100644 --- a/lib/openactive/models/schema/recipe.rb +++ b/lib/openactive/models/schema/recipe.rb @@ -8,22 +8,23 @@ def type "schema:Recipe" end - # @return [String,OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::ItemList,URI] + # @return [String,OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::CreativeWork,URI] define_property :recipe_instructions, as: "recipeInstructions", types: [ "string", - "OpenActive::Models::Schema::CreativeWork", "OpenActive::Models::Schema::ItemList", + "OpenActive::Models::Schema::CreativeWork", "URI", ] # @return [String] - define_property :ingredients, as: "ingredients", types: [ + define_property :recipe_category, as: "recipeCategory", types: [ "string", ] - # @return [String] - define_property :recipe_cuisine, as: "recipeCuisine", types: [ - "string", + # @return [OpenActive::Models::Schema::NutritionInformation,URI] + define_property :nutrition, as: "nutrition", types: [ + "OpenActive::Models::Schema::NutritionInformation", + "URI", ] # @return [OpenActive::Enums::Schema::RestrictedDiet,nil] @@ -32,15 +33,23 @@ def type "null", ] - # @return [OpenActive::Models::Schema::NutritionInformation,URI] - define_property :nutrition, as: "nutrition", types: [ - "OpenActive::Models::Schema::NutritionInformation", + # @return [String] + define_property :recipe_cuisine, as: "recipeCuisine", types: [ + "string", + ] + + # @return [ActiveSupport::Duration,URI,nil] + define_property :cook_time, as: "cookTime", types: [ + "DateInterval", "URI", + "null", ] - # @return [String] - define_property :cooking_method, as: "cookingMethod", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI] + define_property :recipe_yield, as: "recipeYield", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "string", + "URI", ] # @return [String] @@ -48,22 +57,13 @@ def type "string", ] - # @return [String,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :recipe_yield, as: "recipeYield", types: [ + # @return [String] + define_property :cooking_method, as: "cookingMethod", types: [ "string", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - - # @return [ActiveSupport::Duration,URI,nil] - define_property :cook_time, as: "cookTime", types: [ - "DateInterval", - "URI", - "null", ] # @return [String] - define_property :recipe_category, as: "recipeCategory", types: [ + define_property :ingredients, as: "ingredients", types: [ "string", ] end diff --git a/lib/openactive/models/schema/recommendation.rb b/lib/openactive/models/schema/recommendation.rb index 481f61df..38d9f5ce 100644 --- a/lib/openactive/models/schema/recommendation.rb +++ b/lib/openactive/models/schema/recommendation.rb @@ -8,12 +8,12 @@ def type "schema:Recommendation" end - # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil] define_property :category, as: "category", types: [ - "URI", - "string", "OpenActive::Enums::Schema::PhysicalActivityCategory", + "URI", "OpenActive::Models::Schema::Thing", + "string", "OpenActive::Models::Schema::CategoryCode", "null", ] diff --git a/lib/openactive/models/schema/rent_action.rb b/lib/openactive/models/schema/rent_action.rb index feb4a634..611c870f 100644 --- a/lib/openactive/models/schema/rent_action.rb +++ b/lib/openactive/models/schema/rent_action.rb @@ -8,18 +8,18 @@ def type "schema:RentAction" end + # @return [OpenActive::Models::Schema::RealEstateAgent,URI] + define_property :real_estate_agent, as: "realEstateAgent", types: [ + "OpenActive::Models::Schema::RealEstateAgent", + "URI", + ] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :landlord, as: "landlord", types: [ "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", "URI", ] - - # @return [OpenActive::Models::Schema::RealEstateAgent,URI] - define_property :real_estate_agent, as: "realEstateAgent", types: [ - "OpenActive::Models::Schema::RealEstateAgent", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/rental_car_reservation.rb b/lib/openactive/models/schema/rental_car_reservation.rb index 0e325df2..bd4bb03a 100644 --- a/lib/openactive/models/schema/rental_car_reservation.rb +++ b/lib/openactive/models/schema/rental_car_reservation.rb @@ -8,20 +8,14 @@ def type "schema:RentalCarReservation" end - # @return [OpenActive::Models::Schema::Place,URI] - define_property :dropoff_location, as: "dropoffLocation", types: [ - "OpenActive::Models::Schema::Place", - "URI", - ] - # @return [DateTime,nil] - define_property :dropoff_time, as: "dropoffTime", types: [ + define_property :pickup_time, as: "pickupTime", types: [ "DateTime", "null", ] # @return [DateTime,nil] - define_property :pickup_time, as: "pickupTime", types: [ + define_property :dropoff_time, as: "dropoffTime", types: [ "DateTime", "null", ] @@ -31,6 +25,12 @@ def type "OpenActive::Models::Schema::Place", "URI", ] + + # @return [OpenActive::Models::Schema::Place,URI] + define_property :dropoff_location, as: "dropoffLocation", types: [ + "OpenActive::Models::Schema::Place", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/repayment_specification.rb b/lib/openactive/models/schema/repayment_specification.rb index 8943a9a5..5dcb8506 100644 --- a/lib/openactive/models/schema/repayment_specification.rb +++ b/lib/openactive/models/schema/repayment_specification.rb @@ -8,9 +8,11 @@ def type "schema:RepaymentSpecification" end - # @return [BigDecimal,nil] - define_property :number_of_loan_payments, as: "numberOfLoanPayments", types: [ + # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] + define_property :down_payment, as: "downPayment", types: [ "Number", + "OpenActive::Models::Schema::MonetaryAmount", + "URI", "null", ] @@ -27,16 +29,14 @@ def type ] # @return [BigDecimal,nil] - define_property :loan_payment_frequency, as: "loanPaymentFrequency", types: [ + define_property :number_of_loan_payments, as: "numberOfLoanPayments", types: [ "Number", "null", ] - # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,URI,nil] - define_property :down_payment, as: "downPayment", types: [ + # @return [BigDecimal,nil] + define_property :loan_payment_frequency, as: "loanPaymentFrequency", types: [ "Number", - "OpenActive::Models::Schema::MonetaryAmount", - "URI", "null", ] end diff --git a/lib/openactive/models/schema/replace_action.rb b/lib/openactive/models/schema/replace_action.rb index 4fe06bf3..0f7cedb7 100644 --- a/lib/openactive/models/schema/replace_action.rb +++ b/lib/openactive/models/schema/replace_action.rb @@ -9,13 +9,13 @@ def type end # @return [OpenActive::Models::Schema::Thing,URI] - define_property :replacee, as: "replacee", types: [ + define_property :replacer, as: "replacer", types: [ "OpenActive::Models::Schema::Thing", "URI", ] # @return [OpenActive::Models::Schema::Thing,URI] - define_property :replacer, as: "replacer", types: [ + define_property :replacee, as: "replacee", types: [ "OpenActive::Models::Schema::Thing", "URI", ] diff --git a/lib/openactive/models/schema/reservation.rb b/lib/openactive/models/schema/reservation.rb index ab76a606..cfe301f4 100644 --- a/lib/openactive/models/schema/reservation.rb +++ b/lib/openactive/models/schema/reservation.rb @@ -8,19 +8,22 @@ def type "schema:Reservation" end + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :booking_agent, as: "bookingAgent", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", + ] + # @return [DateTime,nil] - define_property :modified_time, as: "modifiedTime", types: [ + define_property :booking_time, as: "bookingTime", types: [ "DateTime", "null", ] - # @return [OpenActive::Models::Schema::PriceSpecification,BigDecimal,String,URI,nil] - define_property :total_price, as: "totalPrice", types: [ - "OpenActive::Models::Schema::PriceSpecification", - "Number", + # @return [String] + define_property :price_currency, as: "priceCurrency", types: [ "string", - "URI", - "null", ] # @return [OpenActive::Models::Schema::Ticket,URI] @@ -29,19 +32,23 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::ReservationStatusType,URI] - define_property :reservation_status, as: "reservationStatus", types: [ - "OpenActive::Models::Schema::ReservationStatusType", - "URI", + # @return [DateTime,nil] + define_property :modified_time, as: "modifiedTime", types: [ + "DateTime", + "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :reservation_for, as: "reservationFor", types: [ + "OpenActive::Models::Schema::Thing", "URI", ] + # @return [String] + define_property :reservation_id, as: "reservationId", types: [ + "string", + ] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :broker, as: "broker", types: [ "OpenActive::Models::Schema::Person", @@ -49,33 +56,26 @@ def type "URI", ] - # @return [DateTime,nil] - define_property :booking_time, as: "bookingTime", types: [ - "DateTime", - "null", - ] - - # @return [OpenActive::Models::Schema::ProgramMembership,URI] - define_property :program_membership_used, as: "programMembershipUsed", types: [ - "OpenActive::Models::Schema::ProgramMembership", + # @return [String,BigDecimal,OpenActive::Models::Schema::PriceSpecification,URI,nil] + define_property :total_price, as: "totalPrice", types: [ + "string", + "Number", + "OpenActive::Models::Schema::PriceSpecification", "URI", + "null", ] # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :booking_agent, as: "bookingAgent", types: [ + define_property :provider, as: "provider", types: [ "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", "URI", ] - # @return [String] - define_property :price_currency, as: "priceCurrency", types: [ - "string", - ] - - # @return [String] - define_property :reservation_id, as: "reservationId", types: [ - "string", + # @return [OpenActive::Models::Schema::ReservationStatusType,URI] + define_property :reservation_status, as: "reservationStatus", types: [ + "OpenActive::Models::Schema::ReservationStatusType", + "URI", ] # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] @@ -85,9 +85,9 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :reservation_for, as: "reservationFor", types: [ - "OpenActive::Models::Schema::Thing", + # @return [OpenActive::Models::Schema::ProgramMembership,URI] + define_property :program_membership_used, as: "programMembershipUsed", types: [ + "OpenActive::Models::Schema::ProgramMembership", "URI", ] end diff --git a/lib/openactive/models/schema/return_action.rb b/lib/openactive/models/schema/return_action.rb index 1f7c4d42..83807446 100644 --- a/lib/openactive/models/schema/return_action.rb +++ b/lib/openactive/models/schema/return_action.rb @@ -8,12 +8,12 @@ def type "schema:ReturnAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/review.rb b/lib/openactive/models/schema/review.rb index bde0a2c0..3bbd3c61 100644 --- a/lib/openactive/models/schema/review.rb +++ b/lib/openactive/models/schema/review.rb @@ -8,38 +8,17 @@ def type "schema:Review" end - # @return [OpenActive::Models::Schema::Rating,URI] - define_property :review_rating, as: "reviewRating", types: [ - "OpenActive::Models::Schema::Rating", - "URI", - ] - # @return [OpenActive::Models::Schema::Thing,URI] define_property :item_reviewed, as: "itemReviewed", types: [ "OpenActive::Models::Schema::Thing", "URI", ] - # @return [OpenActive::Models::Schema::ListItem,String,OpenActive::Models::Schema::WebContent,OpenActive::Models::Schema::ItemList,URI] - define_property :negative_notes, as: "negativeNotes", types: [ - "OpenActive::Models::Schema::ListItem", - "string", - "OpenActive::Models::Schema::WebContent", - "OpenActive::Models::Schema::ItemList", - "URI", - ] - # @return [String] - define_property :review_aspect, as: "reviewAspect", types: [ + define_property :review_body, as: "reviewBody", types: [ "string", ] - # @return [OpenActive::Models::Schema::Review,URI] - define_property :associated_claim_review, as: "associatedClaimReview", types: [ - "OpenActive::Models::Schema::Review", - "URI", - ] - # @return [OpenActive::Models::Schema::WebContent,String,OpenActive::Models::Schema::ListItem,OpenActive::Models::Schema::ItemList,URI] define_property :positive_notes, as: "positiveNotes", types: [ "OpenActive::Models::Schema::WebContent", @@ -56,15 +35,36 @@ def type ] # @return [OpenActive::Models::Schema::Review,URI] - define_property :associated_media_review, as: "associatedMediaReview", types: [ + define_property :associated_claim_review, as: "associatedClaimReview", types: [ "OpenActive::Models::Schema::Review", "URI", ] # @return [String] - define_property :review_body, as: "reviewBody", types: [ + define_property :review_aspect, as: "reviewAspect", types: [ "string", ] + + # @return [OpenActive::Models::Schema::Review,URI] + define_property :associated_media_review, as: "associatedMediaReview", types: [ + "OpenActive::Models::Schema::Review", + "URI", + ] + + # @return [OpenActive::Models::Schema::Rating,URI] + define_property :review_rating, as: "reviewRating", types: [ + "OpenActive::Models::Schema::Rating", + "URI", + ] + + # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::WebContent,String,OpenActive::Models::Schema::ListItem,URI] + define_property :negative_notes, as: "negativeNotes", types: [ + "OpenActive::Models::Schema::ItemList", + "OpenActive::Models::Schema::WebContent", + "string", + "OpenActive::Models::Schema::ListItem", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/review_news_article.rb b/lib/openactive/models/schema/review_news_article.rb index 3ccac33a..218bbcf8 100644 --- a/lib/openactive/models/schema/review_news_article.rb +++ b/lib/openactive/models/schema/review_news_article.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class ReviewNewsArticle < ::OpenActive::Models::Schema::CriticReview + class ReviewNewsArticle < ::OpenActive::Models::Schema::NewsArticle # @!attribute type # @return [String] def type diff --git a/lib/openactive/models/schema/role.rb b/lib/openactive/models/schema/role.rb index ff1c9b75..b8bc8552 100644 --- a/lib/openactive/models/schema/role.rb +++ b/lib/openactive/models/schema/role.rb @@ -14,25 +14,25 @@ def type "URI", ] - # @return [DateTime,Date,nil] + # @return [Date,DateTime,nil] define_property :start_date, as: "startDate", types: [ - "DateTime", "Date", + "DateTime", "null", ] + # @return [String,URI] + define_property :role_name, as: "roleName", types: [ + "string", + "URI", + ] + # @return [Date,DateTime,nil] define_property :end_date, as: "endDate", types: [ "Date", "DateTime", "null", ] - - # @return [URI,String] - define_property :role_name, as: "roleName", types: [ - "URI", - "string", - ] end end end diff --git a/lib/openactive/models/schema/rsvp_action.rb b/lib/openactive/models/schema/rsvp_action.rb index 5405525f..4cc507dc 100644 --- a/lib/openactive/models/schema/rsvp_action.rb +++ b/lib/openactive/models/schema/rsvp_action.rb @@ -14,17 +14,17 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Comment,URI] - define_property :comment, as: "comment", types: [ - "OpenActive::Models::Schema::Comment", - "URI", - ] - # @return [BigDecimal,nil] define_property :additional_number_of_guests, as: "additionalNumberOfGuests", types: [ "Number", "null", ] + + # @return [OpenActive::Models::Schema::Comment,URI] + define_property :comment, as: "comment", types: [ + "OpenActive::Models::Schema::Comment", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/schedule.rb b/lib/openactive/models/schema/schedule.rb index 4605517e..b191e7b1 100644 --- a/lib/openactive/models/schema/schedule.rb +++ b/lib/openactive/models/schema/schedule.rb @@ -8,29 +8,24 @@ def type "schema:Schedule" end - # @return [String] - define_property :schedule_timezone, as: "scheduleTimezone", types: [ + # @return [ActiveSupport::Duration,String,URI,nil] + define_property :repeat_frequency, as: "repeatFrequency", types: [ + "DateInterval", "string", - ] - - # @return [DateTime,Date,nil] - define_property :start_date, as: "startDate", types: [ - "DateTime", - "Date", + "URI", "null", ] - # @return [DateTime,Date,nil] - define_property :except_date, as: "exceptDate", types: [ - "DateTime", - "Date", + # @return [int,nil] + define_property :by_month, as: "byMonth", types: [ + "int", "null", ] - # @return [DateTime,Time,nil] - define_property :start_time, as: "startTime", types: [ - "DateTime", - "Time", + # @return [OpenActive::Enums::Schema::DayOfWeek,String,nil] + define_property :by_day, as: "byDay", types: [ + "OpenActive::Enums::Schema::DayOfWeek", + "string", "null", ] @@ -41,24 +36,16 @@ def type ] # @return [Date,DateTime,nil] - define_property :end_date, as: "endDate", types: [ + define_property :start_date, as: "startDate", types: [ "Date", "DateTime", "null", ] - # @return [String,ActiveSupport::Duration,URI,nil] - define_property :repeat_frequency, as: "repeatFrequency", types: [ - "string", - "DateInterval", - "URI", - "null", - ] - - # @return [ActiveSupport::Duration,URI,nil] - define_property :duration, as: "duration", types: [ - "DateInterval", - "URI", + # @return [DateTime,Time,nil] + define_property :end_time, as: "endTime", types: [ + "DateTime", + "Time", "null", ] @@ -69,28 +56,41 @@ def type ] # @return [DateTime,Time,nil] - define_property :end_time, as: "endTime", types: [ + define_property :start_time, as: "startTime", types: [ "DateTime", "Time", "null", ] # @return [int,nil] - define_property :by_month, as: "byMonth", types: [ + define_property :by_month_week, as: "byMonthWeek", types: [ "int", "null", ] - # @return [OpenActive::Enums::Schema::DayOfWeek,String,nil] - define_property :by_day, as: "byDay", types: [ - "OpenActive::Enums::Schema::DayOfWeek", + # @return [ActiveSupport::Duration,URI,nil] + define_property :duration, as: "duration", types: [ + "DateInterval", + "URI", + "null", + ] + + # @return [String] + define_property :schedule_timezone, as: "scheduleTimezone", types: [ "string", + ] + + # @return [Date,DateTime,nil] + define_property :except_date, as: "exceptDate", types: [ + "Date", + "DateTime", "null", ] - # @return [int,nil] - define_property :by_month_week, as: "byMonthWeek", types: [ - "int", + # @return [Date,DateTime,nil] + define_property :end_date, as: "endDate", types: [ + "Date", + "DateTime", "null", ] end diff --git a/lib/openactive/models/schema/screening_event.rb b/lib/openactive/models/schema/screening_event.rb index fdd2e457..1467c4b8 100644 --- a/lib/openactive/models/schema/screening_event.rb +++ b/lib/openactive/models/schema/screening_event.rb @@ -8,10 +8,16 @@ def type "schema:ScreeningEvent" end - # @return [OpenActive::Models::Schema::Language,String,URI] + # @return [OpenActive::Models::Schema::Movie,URI] + define_property :work_presented, as: "workPresented", types: [ + "OpenActive::Models::Schema::Movie", + "URI", + ] + + # @return [String,OpenActive::Models::Schema::Language,URI] define_property :subtitle_language, as: "subtitleLanguage", types: [ - "OpenActive::Models::Schema::Language", "string", + "OpenActive::Models::Schema::Language", "URI", ] @@ -19,12 +25,6 @@ def type define_property :video_format, as: "videoFormat", types: [ "string", ] - - # @return [OpenActive::Models::Schema::Movie,URI] - define_property :work_presented, as: "workPresented", types: [ - "OpenActive::Models::Schema::Movie", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/seat.rb b/lib/openactive/models/schema/seat.rb index 63a2c8df..1f417364 100644 --- a/lib/openactive/models/schema/seat.rb +++ b/lib/openactive/models/schema/seat.rb @@ -8,11 +8,9 @@ def type "schema:Seat" end - # @return [OpenActive::Enums::Schema::QualitativeValue,String,nil] - define_property :seating_type, as: "seatingType", types: [ - "OpenActive::Enums::Schema::QualitativeValue", + # @return [String] + define_property :seat_number, as: "seatNumber", types: [ "string", - "null", ] # @return [String] @@ -20,13 +18,15 @@ def type "string", ] - # @return [String] - define_property :seat_row, as: "seatRow", types: [ + # @return [OpenActive::Enums::Schema::QualitativeValue,String,nil] + define_property :seating_type, as: "seatingType", types: [ + "OpenActive::Enums::Schema::QualitativeValue", "string", + "null", ] # @return [String] - define_property :seat_number, as: "seatNumber", types: [ + define_property :seat_row, as: "seatRow", types: [ "string", ] end diff --git a/lib/openactive/models/schema/seek_to_action.rb b/lib/openactive/models/schema/seek_to_action.rb index f975d97b..f1204bd7 100644 --- a/lib/openactive/models/schema/seek_to_action.rb +++ b/lib/openactive/models/schema/seek_to_action.rb @@ -8,10 +8,10 @@ def type "schema:SeekToAction" end - # @return [BigDecimal,OpenActive::Models::Schema::HyperTocEntry,URI,nil] + # @return [OpenActive::Models::Schema::HyperTocEntry,BigDecimal,URI,nil] define_property :start_offset, as: "startOffset", types: [ - "Number", "OpenActive::Models::Schema::HyperTocEntry", + "Number", "URI", "null", ] diff --git a/lib/openactive/models/schema/send_action.rb b/lib/openactive/models/schema/send_action.rb index f6c5115d..c5f100b1 100644 --- a/lib/openactive/models/schema/send_action.rb +++ b/lib/openactive/models/schema/send_action.rb @@ -8,12 +8,12 @@ def type "schema:SendAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/service.rb b/lib/openactive/models/schema/service.rb index 50208241..5e4ef5e2 100644 --- a/lib/openactive/models/schema/service.rb +++ b/lib/openactive/models/schema/service.rb @@ -8,15 +8,34 @@ def type "schema:Service" end - # @return [OpenActive::Models::Schema::Review,URI] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", - "URI", + # @return [String] + define_property :provider_mobility, as: "providerMobility", types: [ + "string", ] - # @return [String] - define_property :award, as: "award", types: [ + # @return [String,URI] + define_property :terms_of_service, as: "termsOfService", types: [ "string", + "URI", + ] + + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :produces, as: "produces", types: [ + "OpenActive::Models::Schema::Thing", + "URI", + ] + + # @return [OpenActive::Models::Schema::ServiceChannel,URI] + define_property :available_channel, as: "availableChannel", types: [ + "OpenActive::Models::Schema::ServiceChannel", + "URI", + ] + + # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI] + define_property :offers, as: "offers", types: [ + "OpenActive::Models::Schema::Demand", + "OpenActive::Models::Schema::Offer", + "URI", ] # @return [OpenActive::Models::Schema::Audience,URI] @@ -25,32 +44,38 @@ def type "URI", ] - # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] - define_property :category, as: "category", types: [ + # @return [OpenActive::Models::Schema::AggregateRating,URI] + define_property :aggregate_rating, as: "aggregateRating", types: [ + "OpenActive::Models::Schema::AggregateRating", "URI", - "string", + ] + + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil] + define_property :category, as: "category", types: [ "OpenActive::Enums::Schema::PhysicalActivityCategory", + "URI", "OpenActive::Models::Schema::Thing", + "string", "OpenActive::Models::Schema::CategoryCode", "null", ] - # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] - define_property :hours_available, as: "hoursAvailable", types: [ - "OpenActive::Models::Schema::OpeningHoursSpecification", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :broker, as: "broker", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [OpenActive::Models::Schema::Audience,URI] - define_property :audience, as: "audience", types: [ - "OpenActive::Models::Schema::Audience", - "URI", + # @return [String] + define_property :award, as: "award", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] - define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", - "OpenActive::Models::Schema::Demand", + # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] + define_property :is_similar_to, as: "isSimilarTo", types: [ + "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Product", "URI", ] @@ -60,79 +85,76 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :logo, as: "logo", types: [ + "OpenActive::Models::Schema::ImageObject", "URI", ] - # @return [URI,String] - define_property :terms_of_service, as: "termsOfService", types: [ + # @return [OpenActive::Models::Schema::OfferCatalog,URI] + define_property :has_offer_catalog, as: "hasOfferCatalog", types: [ + "OpenActive::Models::Schema::OfferCatalog", "URI", - "string", ] - # @return [String] - define_property :provider_mobility, as: "providerMobility", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :broker, as: "broker", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] + define_property :hours_available, as: "hoursAvailable", types: [ + "OpenActive::Models::Schema::OpeningHoursSpecification", "URI", ] - # @return [OpenActive::Models::Schema::AggregateRating,URI] - define_property :aggregate_rating, as: "aggregateRating", types: [ - "OpenActive::Models::Schema::AggregateRating", + # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :service_area, as: "serviceArea", types: [ + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::GeoShape", + "OpenActive::Models::Schema::AdministrativeArea", "URI", ] # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] - define_property :is_similar_to, as: "isSimilarTo", types: [ + define_property :is_related_to, as: "isRelatedTo", types: [ "OpenActive::Models::Schema::Service", "OpenActive::Models::Schema::Product", "URI", ] - # @return [OpenActive::Models::Schema::ServiceChannel,URI] - define_property :available_channel, as: "availableChannel", types: [ - "OpenActive::Models::Schema::ServiceChannel", - "URI", - ] - # @return [String] define_property :slogan, as: "slogan", types: [ "string", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Brand,URI] + # @return [OpenActive::Models::Schema::Audience,URI] + define_property :audience, as: "audience", types: [ + "OpenActive::Models::Schema::Audience", + "URI", + ] + + # @return [OpenActive::Models::Schema::Brand,OpenActive::Models::Schema::Organization,URI] define_property :brand, as: "brand", types: [ - "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Brand", + "OpenActive::Models::Schema::Organization", "URI", ] - # @return [URI,OpenActive::Models::Schema::ImageObject] - define_property :logo, as: "logo", types: [ + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :provider, as: "provider", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", - "OpenActive::Models::Schema::ImageObject", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :produces, as: "produces", types: [ - "OpenActive::Models::Schema::Thing", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", "URI", ] - # @return [OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::Place,URI] - define_property :service_area, as: "serviceArea", types: [ + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI] + define_property :area_served, as: "areaServed", types: [ + "string", + "OpenActive::Models::Schema::Place", "OpenActive::Models::Schema::GeoShape", "OpenActive::Models::Schema::AdministrativeArea", - "OpenActive::Models::Schema::Place", "URI", ] @@ -142,28 +164,6 @@ def type "string", "null", ] - - # @return [OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] - define_property :area_served, as: "areaServed", types: [ - "OpenActive::Models::Schema::AdministrativeArea", - "OpenActive::Models::Schema::GeoShape", - "string", - "OpenActive::Models::Schema::Place", - "URI", - ] - - # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] - define_property :is_related_to, as: "isRelatedTo", types: [ - "OpenActive::Models::Schema::Service", - "OpenActive::Models::Schema::Product", - "URI", - ] - - # @return [OpenActive::Models::Schema::OfferCatalog,URI] - define_property :has_offer_catalog, as: "hasOfferCatalog", types: [ - "OpenActive::Models::Schema::OfferCatalog", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/service_channel.rb b/lib/openactive/models/schema/service_channel.rb index f372f838..d2438a70 100644 --- a/lib/openactive/models/schema/service_channel.rb +++ b/lib/openactive/models/schema/service_channel.rb @@ -8,26 +8,28 @@ def type "schema:ServiceChannel" end - # @return [OpenActive::Models::Schema::Service,URI] - define_property :provides_service, as: "providesService", types: [ - "OpenActive::Models::Schema::Service", + # @return [OpenActive::Models::Schema::Place,URI] + define_property :service_location, as: "serviceLocation", types: [ + "OpenActive::Models::Schema::Place", "URI", ] - # @return [OpenActive::Models::Schema::ContactPoint,URI] - define_property :service_sms_number, as: "serviceSmsNumber", types: [ - "OpenActive::Models::Schema::ContactPoint", + # @return [OpenActive::Models::Schema::Service,URI] + define_property :provides_service, as: "providesService", types: [ + "OpenActive::Models::Schema::Service", "URI", ] - # @return [OpenActive::Models::Schema::PostalAddress,URI] - define_property :service_postal_address, as: "servicePostalAddress", types: [ - "OpenActive::Models::Schema::PostalAddress", + # @return [OpenActive::Models::Schema::Language,String,URI] + define_property :available_language, as: "availableLanguage", types: [ + "OpenActive::Models::Schema::Language", + "string", "URI", ] - # @return [URI] - define_property :service_url, as: "serviceUrl", types: [ + # @return [OpenActive::Models::Schema::ContactPoint,URI] + define_property :service_sms_number, as: "serviceSmsNumber", types: [ + "OpenActive::Models::Schema::ContactPoint", "URI", ] @@ -37,13 +39,6 @@ def type "URI", ] - # @return [String,OpenActive::Models::Schema::Language,URI] - define_property :available_language, as: "availableLanguage", types: [ - "string", - "OpenActive::Models::Schema::Language", - "URI", - ] - # @return [ActiveSupport::Duration,URI,nil] define_property :processing_time, as: "processingTime", types: [ "DateInterval", @@ -51,9 +46,14 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Place,URI] - define_property :service_location, as: "serviceLocation", types: [ - "OpenActive::Models::Schema::Place", + # @return [URI] + define_property :service_url, as: "serviceUrl", types: [ + "URI", + ] + + # @return [OpenActive::Models::Schema::PostalAddress,URI] + define_property :service_postal_address, as: "servicePostalAddress", types: [ + "OpenActive::Models::Schema::PostalAddress", "URI", ] end diff --git a/lib/openactive/models/schema/shipping_delivery_time.rb b/lib/openactive/models/schema/shipping_delivery_time.rb index 6698e684..8e549495 100644 --- a/lib/openactive/models/schema/shipping_delivery_time.rb +++ b/lib/openactive/models/schema/shipping_delivery_time.rb @@ -8,10 +8,10 @@ def type "schema:ShippingDeliveryTime" end - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :transit_time, as: "transitTime", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [Time,nil] + define_property :cutoff_time, as: "cutoffTime", types: [ + "Time", + "null", ] # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI] @@ -21,15 +21,15 @@ def type ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :handling_time, as: "handlingTime", types: [ + define_property :transit_time, as: "transitTime", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [Time,nil] - define_property :cutoff_time, as: "cutoffTime", types: [ - "Time", - "null", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :handling_time, as: "handlingTime", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] end end diff --git a/lib/openactive/models/schema/shipping_rate_settings.rb b/lib/openactive/models/schema/shipping_rate_settings.rb index 35c29117..4aaeadae 100644 --- a/lib/openactive/models/schema/shipping_rate_settings.rb +++ b/lib/openactive/models/schema/shipping_rate_settings.rb @@ -8,23 +8,30 @@ def type "schema:ShippingRateSettings" end - # @return [OpenActive::Models::Schema::DefinedRegion,URI] - define_property :shipping_destination, as: "shippingDestination", types: [ - "OpenActive::Models::Schema::DefinedRegion", - "URI", - ] - # @return [Boolean,nil] define_property :does_not_ship, as: "doesNotShip", types: [ "bool", "null", ] + # @return [OpenActive::Models::Schema::DefinedRegion,URI] + define_property :shipping_destination, as: "shippingDestination", types: [ + "OpenActive::Models::Schema::DefinedRegion", + "URI", + ] + # @return [String] define_property :shipping_label, as: "shippingLabel", types: [ "string", ] + # @return [OpenActive::Models::Schema::DeliveryChargeSpecification,OpenActive::Models::Schema::MonetaryAmount,URI] + define_property :free_shipping_threshold, as: "freeShippingThreshold", types: [ + "OpenActive::Models::Schema::DeliveryChargeSpecification", + "OpenActive::Models::Schema::MonetaryAmount", + "URI", + ] + # @return [Boolean,nil] define_property :is_unlabelled_fallback, as: "isUnlabelledFallback", types: [ "bool", @@ -36,13 +43,6 @@ def type "OpenActive::Models::Schema::MonetaryAmount", "URI", ] - - # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::DeliveryChargeSpecification,URI] - define_property :free_shipping_threshold, as: "freeShippingThreshold", types: [ - "OpenActive::Models::Schema::MonetaryAmount", - "OpenActive::Models::Schema::DeliveryChargeSpecification", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/size_specification.rb b/lib/openactive/models/schema/size_specification.rb index d4d7d1d8..43434f30 100644 --- a/lib/openactive/models/schema/size_specification.rb +++ b/lib/openactive/models/schema/size_specification.rb @@ -8,6 +8,19 @@ def type "schema:SizeSpecification" end + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :suggested_age, as: "suggestedAge", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] + + # @return [OpenActive::Enums::Schema::SizeSystemEnumeration,String,nil] + define_property :size_system, as: "sizeSystem", types: [ + "OpenActive::Enums::Schema::SizeSystemEnumeration", + "string", + "null", + ] + # @return [String,OpenActive::Enums::Schema::SizeGroupEnumeration,nil] define_property :size_group, as: "sizeGroup", types: [ "string", @@ -15,14 +28,15 @@ def type "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :suggested_measurement, as: "suggestedMeasurement", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", + # @return [String,OpenActive::Enums::Schema::GenderType,nil] + define_property :suggested_gender, as: "suggestedGender", types: [ + "string", + "OpenActive::Enums::Schema::GenderType", + "null", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :suggested_age, as: "suggestedAge", types: [ + define_property :suggested_measurement, as: "suggestedMeasurement", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] @@ -32,20 +46,6 @@ def type "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - - # @return [String,OpenActive::Enums::Schema::SizeSystemEnumeration,nil] - define_property :size_system, as: "sizeSystem", types: [ - "string", - "OpenActive::Enums::Schema::SizeSystemEnumeration", - "null", - ] - - # @return [OpenActive::Enums::Schema::GenderType,String,nil] - define_property :suggested_gender, as: "suggestedGender", types: [ - "OpenActive::Enums::Schema::GenderType", - "string", - "null", - ] end end end diff --git a/lib/openactive/models/schema/software_application.rb b/lib/openactive/models/schema/software_application.rb index 8c5c3ea7..b6ead09f 100644 --- a/lib/openactive/models/schema/software_application.rb +++ b/lib/openactive/models/schema/software_application.rb @@ -8,135 +8,135 @@ def type "schema:SoftwareApplication" end - # @return [String] - define_property :countries_supported, as: "countriesSupported", types: [ - "string", - ] - - # @return [URI] - define_property :install_url, as: "installUrl", types: [ + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :software_help, as: "softwareHelp", types: [ + "OpenActive::Models::Schema::CreativeWork", "URI", ] - # @return [String] - define_property :operating_system, as: "operatingSystem", types: [ + # @return [URI,String] + define_property :application_sub_category, as: "applicationSubCategory", types: [ + "URI", "string", ] - # @return [String,URI] - define_property :memory_requirements, as: "memoryRequirements", types: [ - "string", + # @return [URI] + define_property :download_url, as: "downloadUrl", types: [ "URI", ] - # @return [String] - define_property :software_version, as: "softwareVersion", types: [ - "string", - ] - # @return [URI,String] - define_property :storage_requirements, as: "storageRequirements", types: [ + define_property :software_requirements, as: "softwareRequirements", types: [ "URI", "string", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :software_help, as: "softwareHelp", types: [ - "OpenActive::Models::Schema::CreativeWork", - "URI", - ] - # @return [URI,String] - define_property :application_sub_category, as: "applicationSubCategory", types: [ + define_property :memory_requirements, as: "memoryRequirements", types: [ "URI", "string", ] - # @return [URI] - define_property :download_url, as: "downloadUrl", types: [ + # @return [OpenActive::Models::Schema::SoftwareApplication,URI] + define_property :software_add_on, as: "softwareAddOn", types: [ + "OpenActive::Models::Schema::SoftwareApplication", "URI", ] - # @return [String,URI] - define_property :application_category, as: "applicationCategory", types: [ - "string", + # @return [OpenActive::Models::Schema::DataFeed,URI] + define_property :supporting_data, as: "supportingData", types: [ + "OpenActive::Models::Schema::DataFeed", "URI", ] # @return [String] - define_property :countries_not_supported, as: "countriesNotSupported", types: [ + define_property :countries_supported, as: "countriesSupported", types: [ "string", ] # @return [URI,String] - define_property :software_requirements, as: "softwareRequirements", types: [ + define_property :requirements, as: "requirements", types: [ "URI", "string", ] - # @return [OpenActive::Models::Schema::SoftwareApplication,URI] - define_property :software_add_on, as: "softwareAddOn", types: [ - "OpenActive::Models::Schema::SoftwareApplication", + # @return [URI] + define_property :install_url, as: "installUrl", types: [ "URI", ] # @return [String] - define_property :application_suite, as: "applicationSuite", types: [ + define_property :permissions, as: "permissions", types: [ "string", ] # @return [URI,String] - define_property :requirements, as: "requirements", types: [ + define_property :feature_list, as: "featureList", types: [ + "URI", + "string", + ] + + # @return [URI,String] + define_property :storage_requirements, as: "storageRequirements", types: [ "URI", "string", ] # @return [String] - define_property :permissions, as: "permissions", types: [ + define_property :countries_not_supported, as: "countriesNotSupported", types: [ "string", ] # @return [String] - define_property :processor_requirements, as: "processorRequirements", types: [ + define_property :operating_system, as: "operatingSystem", types: [ "string", ] - # @return [OpenActive::Models::Schema::ImageObject,URI] + # @return [URI,OpenActive::Models::Schema::ImageObject] define_property :screenshot, as: "screenshot", types: [ - "OpenActive::Models::Schema::ImageObject", "URI", + "OpenActive::Models::Schema::ImageObject", ] - # @return [String,URI] - define_property :feature_list, as: "featureList", types: [ + # @return [String] + define_property :software_version, as: "softwareVersion", types: [ + "string", + ] + + # @return [String] + define_property :file_size, as: "fileSize", types: [ + "string", + ] + + # @return [String] + define_property :device, as: "device", types: [ "string", - "URI", ] # @return [URI,String] - define_property :release_notes, as: "releaseNotes", types: [ + define_property :application_category, as: "applicationCategory", types: [ "URI", "string", ] - # @return [OpenActive::Models::Schema::DataFeed,URI] - define_property :supporting_data, as: "supportingData", types: [ - "OpenActive::Models::Schema::DataFeed", + # @return [URI,String] + define_property :release_notes, as: "releaseNotes", types: [ "URI", + "string", ] # @return [String] - define_property :file_size, as: "fileSize", types: [ + define_property :application_suite, as: "applicationSuite", types: [ "string", ] # @return [String] - define_property :device, as: "device", types: [ + define_property :available_on_device, as: "availableOnDevice", types: [ "string", ] # @return [String] - define_property :available_on_device, as: "availableOnDevice", types: [ + define_property :processor_requirements, as: "processorRequirements", types: [ "string", ] end diff --git a/lib/openactive/models/schema/software_source_code.rb b/lib/openactive/models/schema/software_source_code.rb index 146acdf1..e9f15114 100644 --- a/lib/openactive/models/schema/software_source_code.rb +++ b/lib/openactive/models/schema/software_source_code.rb @@ -8,25 +8,13 @@ def type "schema:SoftwareSourceCode" end - # @return [String,OpenActive::Models::Schema::ComputerLanguage,URI] - define_property :programming_language, as: "programmingLanguage", types: [ - "string", - "OpenActive::Models::Schema::ComputerLanguage", - "URI", - ] - - # @return [String] - define_property :sample_type, as: "sampleType", types: [ - "string", - ] - # @return [String] - define_property :runtime_platform, as: "runtimePlatform", types: [ + define_property :runtime, as: "runtime", types: [ "string", ] # @return [String] - define_property :runtime, as: "runtime", types: [ + define_property :code_sample_type, as: "codeSampleType", types: [ "string", ] @@ -36,13 +24,25 @@ def type "URI", ] + # @return [OpenActive::Models::Schema::ComputerLanguage,String,URI] + define_property :programming_language, as: "programmingLanguage", types: [ + "OpenActive::Models::Schema::ComputerLanguage", + "string", + "URI", + ] + # @return [URI] define_property :code_repository, as: "codeRepository", types: [ "URI", ] # @return [String] - define_property :code_sample_type, as: "codeSampleType", types: [ + define_property :sample_type, as: "sampleType", types: [ + "string", + ] + + # @return [String] + define_property :runtime_platform, as: "runtimePlatform", types: [ "string", ] end diff --git a/lib/openactive/models/schema/special_announcement.rb b/lib/openactive/models/schema/special_announcement.rb index e24b8286..954e6041 100644 --- a/lib/openactive/models/schema/special_announcement.rb +++ b/lib/openactive/models/schema/special_announcement.rb @@ -8,65 +8,51 @@ def type "schema:SpecialAnnouncement" end - # @return [OpenActive::Models::Schema::GovernmentService,URI] - define_property :government_benefits_info, as: "governmentBenefitsInfo", types: [ - "OpenActive::Models::Schema::GovernmentService", - "URI", - ] - - # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] - define_property :category, as: "category", types: [ - "URI", - "string", - "OpenActive::Enums::Schema::PhysicalActivityCategory", - "OpenActive::Models::Schema::Thing", - "OpenActive::Models::Schema::CategoryCode", - "null", - ] - - # @return [OpenActive::Models::Schema::Dataset,OpenActive::Models::Schema::Observation,OpenActive::Models::Schema::WebContent,URI] - define_property :disease_spread_statistics, as: "diseaseSpreadStatistics", types: [ - "OpenActive::Models::Schema::Dataset", - "OpenActive::Models::Schema::Observation", - "OpenActive::Models::Schema::WebContent", + # @return [OpenActive::Models::Schema::LocalBusiness,OpenActive::Models::Schema::CivicStructure,URI] + define_property :announcement_location, as: "announcementLocation", types: [ + "OpenActive::Models::Schema::LocalBusiness", + "OpenActive::Models::Schema::CivicStructure", "URI", ] # @return [OpenActive::Models::Schema::WebContent,URI] - define_property :getting_tested_info, as: "gettingTestedInfo", types: [ + define_property :news_updates_and_guidelines, as: "newsUpdatesAndGuidelines", types: [ "OpenActive::Models::Schema::WebContent", "URI", ] - # @return [OpenActive::Models::Schema::CivicStructure,OpenActive::Models::Schema::LocalBusiness,URI] - define_property :announcement_location, as: "announcementLocation", types: [ - "OpenActive::Models::Schema::CivicStructure", - "OpenActive::Models::Schema::LocalBusiness", + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil] + define_property :category, as: "category", types: [ + "OpenActive::Enums::Schema::PhysicalActivityCategory", "URI", + "OpenActive::Models::Schema::Thing", + "string", + "OpenActive::Models::Schema::CategoryCode", + "null", ] # @return [URI,OpenActive::Models::Schema::WebContent] - define_property :travel_bans, as: "travelBans", types: [ + define_property :school_closures_info, as: "schoolClosuresInfo", types: [ "URI", "OpenActive::Models::Schema::WebContent", ] # @return [URI,OpenActive::Models::Schema::WebContent] - define_property :disease_prevention_info, as: "diseasePreventionInfo", types: [ + define_property :public_transport_closures_info, as: "publicTransportClosuresInfo", types: [ "URI", "OpenActive::Models::Schema::WebContent", ] - # @return [URI,OpenActive::Models::Schema::WebContent] - define_property :public_transport_closures_info, as: "publicTransportClosuresInfo", types: [ + # @return [OpenActive::Models::Schema::GovernmentService,URI] + define_property :government_benefits_info, as: "governmentBenefitsInfo", types: [ + "OpenActive::Models::Schema::GovernmentService", "URI", - "OpenActive::Models::Schema::WebContent", ] - # @return [OpenActive::Models::Schema::WebContent,URI] - define_property :school_closures_info, as: "schoolClosuresInfo", types: [ - "OpenActive::Models::Schema::WebContent", + # @return [URI,OpenActive::Models::Schema::WebContent] + define_property :getting_tested_info, as: "gettingTestedInfo", types: [ "URI", + "OpenActive::Models::Schema::WebContent", ] # @return [Date,DateTime,nil] @@ -77,13 +63,21 @@ def type ] # @return [URI,OpenActive::Models::Schema::WebContent] - define_property :news_updates_and_guidelines, as: "newsUpdatesAndGuidelines", types: [ + define_property :disease_prevention_info, as: "diseasePreventionInfo", types: [ + "URI", + "OpenActive::Models::Schema::WebContent", + ] + + # @return [URI,OpenActive::Models::Schema::WebContent,OpenActive::Models::Schema::Observation,OpenActive::Models::Schema::Dataset] + define_property :disease_spread_statistics, as: "diseaseSpreadStatistics", types: [ "URI", "OpenActive::Models::Schema::WebContent", + "OpenActive::Models::Schema::Observation", + "OpenActive::Models::Schema::Dataset", ] # @return [URI,OpenActive::Models::Schema::WebContent] - define_property :quarantine_guidelines, as: "quarantineGuidelines", types: [ + define_property :travel_bans, as: "travelBans", types: [ "URI", "OpenActive::Models::Schema::WebContent", ] @@ -93,6 +87,12 @@ def type "OpenActive::Models::Schema::DataFeed", "URI", ] + + # @return [URI,OpenActive::Models::Schema::WebContent] + define_property :quarantine_guidelines, as: "quarantineGuidelines", types: [ + "URI", + "OpenActive::Models::Schema::WebContent", + ] end end end diff --git a/lib/openactive/models/schema/sports_event.rb b/lib/openactive/models/schema/sports_event.rb index 7e7022d3..baa09477 100644 --- a/lib/openactive/models/schema/sports_event.rb +++ b/lib/openactive/models/schema/sports_event.rb @@ -8,32 +8,32 @@ def type "schema:SportsEvent" end + # @return [String,URI] + define_property :sport, as: "sport", types: [ + "string", + "URI", + ] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::SportsTeam,URI] - define_property :home_team, as: "homeTeam", types: [ + define_property :competitor, as: "competitor", types: [ "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::SportsTeam", "URI", ] - # @return [OpenActive::Models::Schema::SportsTeam,OpenActive::Models::Schema::Person,URI] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::SportsTeam,URI] define_property :away_team, as: "awayTeam", types: [ - "OpenActive::Models::Schema::SportsTeam", "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::SportsTeam", "URI", ] # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::SportsTeam,URI] - define_property :competitor, as: "competitor", types: [ + define_property :home_team, as: "homeTeam", types: [ "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::SportsTeam", "URI", ] - - # @return [String,URI] - define_property :sport, as: "sport", types: [ - "string", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/statistical_population.rb b/lib/openactive/models/schema/statistical_population.rb index 1603e99f..41c31169 100644 --- a/lib/openactive/models/schema/statistical_population.rb +++ b/lib/openactive/models/schema/statistical_population.rb @@ -13,18 +13,6 @@ def type "OpenActive::Models::Schema::Class", "URI", ] - - # @return [int,nil] - define_property :num_constraints, as: "numConstraints", types: [ - "int", - "null", - ] - - # @return [int,nil] - define_property :constraining_property, as: "constrainingProperty", types: [ - "int", - "null", - ] end end end diff --git a/lib/openactive/models/schema/statistical_variable.rb b/lib/openactive/models/schema/statistical_variable.rb new file mode 100644 index 00000000..fc4dc0fc --- /dev/null +++ b/lib/openactive/models/schema/statistical_variable.rb @@ -0,0 +1,64 @@ +module OpenActive + module Models + module Schema + class StatisticalVariable < ::OpenActive::Models::Schema::ConstraintNode + # @!attribute type + # @return [String] + def type + "schema:StatisticalVariable" + end + + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_technique, as: "measurementTechnique", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", + ] + + # @return [URI,OpenActive::Enums::PropertyEnumeration,String,nil] + define_property :stat_type, as: "statType", types: [ + "URI", + "OpenActive::Enums::PropertyEnumeration", + "string", + "null", + ] + + # @return [OpenActive::Models::Schema::Class,URI] + define_property :population_type, as: "populationType", types: [ + "OpenActive::Models::Schema::Class", + "URI", + ] + + # @return [OpenActive::Models::Schema::StatisticalVariable,URI] + define_property :measurement_denominator, as: "measurementDenominator", types: [ + "OpenActive::Models::Schema::StatisticalVariable", + "URI", + ] + + # @return [OpenActive::Enums::PropertyEnumeration,URI,nil] + define_property :measured_property, as: "measuredProperty", types: [ + "OpenActive::Enums::PropertyEnumeration", + "URI", + "null", + ] + + # @return [OpenActive::Models::Schema::DefinedTerm,URI,String,OpenActive::Enums::Schema::MeasurementMethodEnum,nil] + define_property :measurement_method, as: "measurementMethod", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "URI", + "string", + "OpenActive::Enums::Schema::MeasurementMethodEnum", + "null", + ] + + # @return [OpenActive::Models::Schema::Enumeration,URI] + define_property :measurement_qualifier, as: "measurementQualifier", types: [ + "OpenActive::Models::Schema::Enumeration", + "URI", + ] + end + end + end +end diff --git a/lib/openactive/models/schema/substance.rb b/lib/openactive/models/schema/substance.rb index 401dc590..5bd7cea4 100644 --- a/lib/openactive/models/schema/substance.rb +++ b/lib/openactive/models/schema/substance.rb @@ -8,16 +8,16 @@ def type "schema:Substance" end + # @return [String] + define_property :active_ingredient, as: "activeIngredient", types: [ + "string", + ] + # @return [OpenActive::Models::Schema::MaximumDoseSchedule,URI] define_property :maximum_intake, as: "maximumIntake", types: [ "OpenActive::Models::Schema::MaximumDoseSchedule", "URI", ] - - # @return [String] - define_property :active_ingredient, as: "activeIngredient", types: [ - "string", - ] end end end diff --git a/lib/openactive/models/schema/suite.rb b/lib/openactive/models/schema/suite.rb index c3a1c07e..b157d539 100644 --- a/lib/openactive/models/schema/suite.rb +++ b/lib/openactive/models/schema/suite.rb @@ -16,19 +16,19 @@ def type "null", ] - # @return [OpenActive::Models::Schema::BedDetails,String,OpenActive::Models::Schema::BedType,URI] - define_property :bed, as: "bed", types: [ - "OpenActive::Models::Schema::BedDetails", - "string", - "OpenActive::Models::Schema::BedType", - "URI", - ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] define_property :occupancy, as: "occupancy", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] + + # @return [OpenActive::Models::Schema::BedType,OpenActive::Models::Schema::BedDetails,String,URI] + define_property :bed, as: "bed", types: [ + "OpenActive::Models::Schema::BedType", + "OpenActive::Models::Schema::BedDetails", + "string", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/superficial_anatomy.rb b/lib/openactive/models/schema/superficial_anatomy.rb index 5de989e6..fc6a219a 100644 --- a/lib/openactive/models/schema/superficial_anatomy.rb +++ b/lib/openactive/models/schema/superficial_anatomy.rb @@ -8,27 +8,27 @@ def type "schema:SuperficialAnatomy" end - # @return [OpenActive::Models::Schema::MedicalTherapy,URI] - define_property :related_therapy, as: "relatedTherapy", types: [ - "OpenActive::Models::Schema::MedicalTherapy", - "URI", - ] - # @return [String] define_property :significance, as: "significance", types: [ "string", ] - # @return [OpenActive::Models::Schema::AnatomicalSystem,OpenActive::Models::Schema::AnatomicalStructure,URI] + # @return [OpenActive::Models::Schema::MedicalCondition,URI] + define_property :related_condition, as: "relatedCondition", types: [ + "OpenActive::Models::Schema::MedicalCondition", + "URI", + ] + + # @return [OpenActive::Models::Schema::AnatomicalStructure,OpenActive::Models::Schema::AnatomicalSystem,URI] define_property :related_anatomy, as: "relatedAnatomy", types: [ - "OpenActive::Models::Schema::AnatomicalSystem", "OpenActive::Models::Schema::AnatomicalStructure", + "OpenActive::Models::Schema::AnatomicalSystem", "URI", ] - # @return [OpenActive::Models::Schema::MedicalCondition,URI] - define_property :related_condition, as: "relatedCondition", types: [ - "OpenActive::Models::Schema::MedicalCondition", + # @return [OpenActive::Models::Schema::MedicalTherapy,URI] + define_property :related_therapy, as: "relatedTherapy", types: [ + "OpenActive::Models::Schema::MedicalTherapy", "URI", ] diff --git a/lib/openactive/models/schema/syllabus.rb b/lib/openactive/models/schema/syllabus.rb new file mode 100644 index 00000000..2c102bab --- /dev/null +++ b/lib/openactive/models/schema/syllabus.rb @@ -0,0 +1,13 @@ +module OpenActive + module Models + module Schema + class Syllabus < ::OpenActive::Models::Schema::LearningResource + # @!attribute type + # @return [String] + def type + "schema:Syllabus" + end + end + end + end +end diff --git a/lib/openactive/models/schema/taxi_reservation.rb b/lib/openactive/models/schema/taxi_reservation.rb index e34b7f4d..2b518961 100644 --- a/lib/openactive/models/schema/taxi_reservation.rb +++ b/lib/openactive/models/schema/taxi_reservation.rb @@ -8,14 +8,6 @@ def type "schema:TaxiReservation" end - # @return [int,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :party_size, as: "partySize", types: [ - "int", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - "null", - ] - # @return [DateTime,nil] define_property :pickup_time, as: "pickupTime", types: [ "DateTime", @@ -27,6 +19,14 @@ def type "OpenActive::Models::Schema::Place", "URI", ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,int,URI,nil] + define_property :party_size, as: "partySize", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "int", + "URI", + "null", + ] end end end diff --git a/lib/openactive/models/schema/taxon.rb b/lib/openactive/models/schema/taxon.rb index 80e6a697..3297ba4d 100644 --- a/lib/openactive/models/schema/taxon.rb +++ b/lib/openactive/models/schema/taxon.rb @@ -8,31 +8,31 @@ def type "schema:Taxon" end - # @return [URI,OpenActive::Models::Schema::Taxon,String] - define_property :parent_taxon, as: "parentTaxon", types: [ + # @return [OpenActive::Models::Schema::DefinedTerm,URI] + define_property :has_defined_term, as: "hasDefinedTerm", types: [ + "OpenActive::Models::Schema::DefinedTerm", "URI", - "OpenActive::Models::Schema::Taxon", - "string", ] - # @return [OpenActive::Models::Schema::PropertyValue,URI,String] - define_property :taxon_rank, as: "taxonRank", types: [ - "OpenActive::Models::Schema::PropertyValue", + # @return [URI,OpenActive::Models::Schema::Taxon,String] + define_property :parent_taxon, as: "parentTaxon", types: [ "URI", + "OpenActive::Models::Schema::Taxon", "string", ] - # @return [String,OpenActive::Models::Schema::Taxon,URI] + # @return [String,URI,OpenActive::Models::Schema::Taxon] define_property :child_taxon, as: "childTaxon", types: [ "string", - "OpenActive::Models::Schema::Taxon", "URI", + "OpenActive::Models::Schema::Taxon", ] - # @return [OpenActive::Models::Schema::DefinedTerm,URI] - define_property :has_defined_term, as: "hasDefinedTerm", types: [ - "OpenActive::Models::Schema::DefinedTerm", + # @return [OpenActive::Models::Schema::PropertyValue,URI,String] + define_property :taxon_rank, as: "taxonRank", types: [ + "OpenActive::Models::Schema::PropertyValue", "URI", + "string", ] end end diff --git a/lib/openactive/models/schema/text_object.rb b/lib/openactive/models/schema/text_object.rb new file mode 100644 index 00000000..87e83aca --- /dev/null +++ b/lib/openactive/models/schema/text_object.rb @@ -0,0 +1,13 @@ +module OpenActive + module Models + module Schema + class TextObject < ::OpenActive::Models::Schema::MediaObject + # @!attribute type + # @return [String] + def type + "schema:TextObject" + end + end + end + end +end diff --git a/lib/openactive/models/schema/therapeutic_procedure.rb b/lib/openactive/models/schema/therapeutic_procedure.rb index db3a189c..f55d2aea 100644 --- a/lib/openactive/models/schema/therapeutic_procedure.rb +++ b/lib/openactive/models/schema/therapeutic_procedure.rb @@ -8,9 +8,9 @@ def type "schema:TherapeuticProcedure" end - # @return [OpenActive::Models::Schema::MedicalEntity,URI] - define_property :adverse_outcome, as: "adverseOutcome", types: [ - "OpenActive::Models::Schema::MedicalEntity", + # @return [OpenActive::Models::Schema::DoseSchedule,URI] + define_property :dose_schedule, as: "doseSchedule", types: [ + "OpenActive::Models::Schema::DoseSchedule", "URI", ] @@ -20,9 +20,9 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::DoseSchedule,URI] - define_property :dose_schedule, as: "doseSchedule", types: [ - "OpenActive::Models::Schema::DoseSchedule", + # @return [OpenActive::Models::Schema::MedicalEntity,URI] + define_property :adverse_outcome, as: "adverseOutcome", types: [ + "OpenActive::Models::Schema::MedicalEntity", "URI", ] end diff --git a/lib/openactive/models/schema/thing.rb b/lib/openactive/models/schema/thing.rb index 3ff83f33..88593985 100644 --- a/lib/openactive/models/schema/thing.rb +++ b/lib/openactive/models/schema/thing.rb @@ -8,11 +8,11 @@ def type "schema:Thing" end - # @return [URI,String,OpenActive::Models::Schema::PropertyValue] + # @return [String,OpenActive::Models::Schema::PropertyValue,URI] define_property :identifier, as: "identifier", types: [ - "URI", "string", "OpenActive::Models::Schema::PropertyValue", + "URI", ] # @return [String] @@ -20,14 +20,10 @@ def type "string", ] - # @return [String] + # @return [String,OpenActive::Models::Schema::TextObject,URI] define_property :description, as: "description", types: [ "string", - ] - - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :main_entity_of_page, as: "mainEntityOfPage", types: [ - "OpenActive::Models::Schema::CreativeWork", + "OpenActive::Models::Schema::TextObject", "URI", ] @@ -42,14 +38,8 @@ def type "URI", ] - # @return [URI,OpenActive::Models::Schema::ImageObject] - define_property :image, as: "image", types: [ - "URI", - "OpenActive::Models::Schema::ImageObject", - ] - # @return [URI] - define_property :url, as: "url", types: [ + define_property :same_as, as: "sameAs", types: [ "URI", ] @@ -60,18 +50,31 @@ def type "URI", ] - # @return [URI] - define_property :additional_type, as: "additionalType", types: [ - "URI", - ] - # @return [String] define_property :disambiguating_description, as: "disambiguatingDescription", types: [ "string", ] + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :image, as: "image", types: [ + "OpenActive::Models::Schema::ImageObject", + "URI", + ] + # @return [URI] - define_property :same_as, as: "sameAs", types: [ + define_property :url, as: "url", types: [ + "URI", + ] + + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :main_entity_of_page, as: "mainEntityOfPage", types: [ + "OpenActive::Models::Schema::CreativeWork", + "URI", + ] + + # @return [String,URI] + define_property :additional_type, as: "additionalType", types: [ + "string", "URI", ] end diff --git a/lib/openactive/models/schema/ticket.rb b/lib/openactive/models/schema/ticket.rb index 14116277..c7f02aa3 100644 --- a/lib/openactive/models/schema/ticket.rb +++ b/lib/openactive/models/schema/ticket.rb @@ -8,24 +8,21 @@ def type "schema:Ticket" end - # @return [URI,String] - define_property :ticket_token, as: "ticketToken", types: [ - "URI", + # @return [String] + define_property :price_currency, as: "priceCurrency", types: [ "string", ] - # @return [OpenActive::Models::Schema::Seat,URI] - define_property :ticketed_seat, as: "ticketedSeat", types: [ - "OpenActive::Models::Schema::Seat", + # @return [String,URI] + define_property :ticket_token, as: "ticketToken", types: [ + "string", "URI", ] - # @return [OpenActive::Models::Schema::PriceSpecification,BigDecimal,String,URI,nil] - define_property :total_price, as: "totalPrice", types: [ - "OpenActive::Models::Schema::PriceSpecification", - "Number", - "string", - "URI", + # @return [DateTime,Date,nil] + define_property :date_issued, as: "dateIssued", types: [ + "DateTime", + "Date", "null", ] @@ -35,20 +32,23 @@ def type "URI", ] - # @return [String] - define_property :ticket_number, as: "ticketNumber", types: [ + # @return [String,BigDecimal,OpenActive::Models::Schema::PriceSpecification,URI,nil] + define_property :total_price, as: "totalPrice", types: [ "string", + "Number", + "OpenActive::Models::Schema::PriceSpecification", + "URI", + "null", ] - # @return [Date,DateTime,nil] - define_property :date_issued, as: "dateIssued", types: [ - "Date", - "DateTime", - "null", + # @return [OpenActive::Models::Schema::Seat,URI] + define_property :ticketed_seat, as: "ticketedSeat", types: [ + "OpenActive::Models::Schema::Seat", + "URI", ] # @return [String] - define_property :price_currency, as: "priceCurrency", types: [ + define_property :ticket_number, as: "ticketNumber", types: [ "string", ] diff --git a/lib/openactive/models/schema/tip_action.rb b/lib/openactive/models/schema/tip_action.rb index a58c6c1a..9c3c46c8 100644 --- a/lib/openactive/models/schema/tip_action.rb +++ b/lib/openactive/models/schema/tip_action.rb @@ -8,12 +8,12 @@ def type "schema:TipAction" end - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,URI] + # @return [OpenActive::Models::Schema::ContactPoint,OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Audience,OpenActive::Models::Schema::Person,URI] define_property :recipient, as: "recipient", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Audience", "OpenActive::Models::Schema::ContactPoint", "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Audience", + "OpenActive::Models::Schema::Person", "URI", ] end diff --git a/lib/openactive/models/schema/tourist_attraction.rb b/lib/openactive/models/schema/tourist_attraction.rb index 58de09a1..2b5d78f3 100644 --- a/lib/openactive/models/schema/tourist_attraction.rb +++ b/lib/openactive/models/schema/tourist_attraction.rb @@ -8,17 +8,17 @@ def type "schema:TouristAttraction" end - # @return [OpenActive::Models::Schema::Audience,String,URI] - define_property :tourist_type, as: "touristType", types: [ - "OpenActive::Models::Schema::Audience", + # @return [OpenActive::Models::Schema::Language,String,URI] + define_property :available_language, as: "availableLanguage", types: [ + "OpenActive::Models::Schema::Language", "string", "URI", ] - # @return [String,OpenActive::Models::Schema::Language,URI] - define_property :available_language, as: "availableLanguage", types: [ + # @return [String,OpenActive::Models::Schema::Audience,URI] + define_property :tourist_type, as: "touristType", types: [ "string", - "OpenActive::Models::Schema::Language", + "OpenActive::Models::Schema::Audience", "URI", ] end diff --git a/lib/openactive/models/schema/tourist_destination.rb b/lib/openactive/models/schema/tourist_destination.rb index fb76db31..70887a36 100644 --- a/lib/openactive/models/schema/tourist_destination.rb +++ b/lib/openactive/models/schema/tourist_destination.rb @@ -8,18 +8,18 @@ def type "schema:TouristDestination" end - # @return [OpenActive::Models::Schema::Audience,String,URI] - define_property :tourist_type, as: "touristType", types: [ - "OpenActive::Models::Schema::Audience", - "string", - "URI", - ] - # @return [OpenActive::Models::Schema::TouristAttraction,URI] define_property :includes_attraction, as: "includesAttraction", types: [ "OpenActive::Models::Schema::TouristAttraction", "URI", ] + + # @return [String,OpenActive::Models::Schema::Audience,URI] + define_property :tourist_type, as: "touristType", types: [ + "string", + "OpenActive::Models::Schema::Audience", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/tourist_trip.rb b/lib/openactive/models/schema/tourist_trip.rb index 29668d4c..5435d0aa 100644 --- a/lib/openactive/models/schema/tourist_trip.rb +++ b/lib/openactive/models/schema/tourist_trip.rb @@ -8,10 +8,10 @@ def type "schema:TouristTrip" end - # @return [OpenActive::Models::Schema::Audience,String,URI] + # @return [String,OpenActive::Models::Schema::Audience,URI] define_property :tourist_type, as: "touristType", types: [ - "OpenActive::Models::Schema::Audience", "string", + "OpenActive::Models::Schema::Audience", "URI", ] end diff --git a/lib/openactive/models/schema/train_trip.rb b/lib/openactive/models/schema/train_trip.rb index 0919bd47..c2e6564a 100644 --- a/lib/openactive/models/schema/train_trip.rb +++ b/lib/openactive/models/schema/train_trip.rb @@ -9,33 +9,33 @@ def type end # @return [String] - define_property :train_name, as: "trainName", types: [ + define_property :train_number, as: "trainNumber", types: [ "string", ] # @return [OpenActive::Models::Schema::TrainStation,URI] - define_property :departure_station, as: "departureStation", types: [ + define_property :arrival_station, as: "arrivalStation", types: [ "OpenActive::Models::Schema::TrainStation", "URI", ] # @return [String] - define_property :departure_platform, as: "departurePlatform", types: [ + define_property :arrival_platform, as: "arrivalPlatform", types: [ "string", ] # @return [String] - define_property :train_number, as: "trainNumber", types: [ + define_property :train_name, as: "trainName", types: [ "string", ] # @return [String] - define_property :arrival_platform, as: "arrivalPlatform", types: [ + define_property :departure_platform, as: "departurePlatform", types: [ "string", ] # @return [OpenActive::Models::Schema::TrainStation,URI] - define_property :arrival_station, as: "arrivalStation", types: [ + define_property :departure_station, as: "departureStation", types: [ "OpenActive::Models::Schema::TrainStation", "URI", ] diff --git a/lib/openactive/models/schema/transfer_action.rb b/lib/openactive/models/schema/transfer_action.rb index 08f48d08..0dc590d7 100644 --- a/lib/openactive/models/schema/transfer_action.rb +++ b/lib/openactive/models/schema/transfer_action.rb @@ -9,13 +9,13 @@ def type end # @return [OpenActive::Models::Schema::Place,URI] - define_property :from_location, as: "fromLocation", types: [ + define_property :to_location, as: "toLocation", types: [ "OpenActive::Models::Schema::Place", "URI", ] # @return [OpenActive::Models::Schema::Place,URI] - define_property :to_location, as: "toLocation", types: [ + define_property :from_location, as: "fromLocation", types: [ "OpenActive::Models::Schema::Place", "URI", ] diff --git a/lib/openactive/models/schema/trip.rb b/lib/openactive/models/schema/trip.rb index d338ca01..3276243b 100644 --- a/lib/openactive/models/schema/trip.rb +++ b/lib/openactive/models/schema/trip.rb @@ -8,40 +8,38 @@ def type "schema:Trip" end - # @return [Time,DateTime,nil] - define_property :arrival_time, as: "arrivalTime", types: [ - "Time", - "DateTime", - "null", - ] - - # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] + # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI] define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", "OpenActive::Models::Schema::Demand", + "OpenActive::Models::Schema::Offer", + "URI", + ] + + # @return [OpenActive::Models::Schema::Trip,URI] + define_property :part_of_trip, as: "partOfTrip", types: [ + "OpenActive::Models::Schema::Trip", "URI", ] # @return [Time,DateTime,nil] - define_property :departure_time, as: "departureTime", types: [ + define_property :arrival_time, as: "arrivalTime", types: [ "Time", "DateTime", "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :provider, as: "provider", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", - "URI", - ] - # @return [OpenActive::Models::Schema::Trip,URI] define_property :sub_trip, as: "subTrip", types: [ "OpenActive::Models::Schema::Trip", "URI", ] + # @return [OpenActive::Models::Schema::Place,URI] + define_property :trip_origin, as: "tripOrigin", types: [ + "OpenActive::Models::Schema::Place", + "URI", + ] + # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::Place,URI] define_property :itinerary, as: "itinerary", types: [ "OpenActive::Models::Schema::ItemList", @@ -49,11 +47,19 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Trip,URI] - define_property :part_of_trip, as: "partOfTrip", types: [ - "OpenActive::Models::Schema::Trip", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :provider, as: "provider", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] + + # @return [DateTime,Time,nil] + define_property :departure_time, as: "departureTime", types: [ + "DateTime", + "Time", + "null", + ] end end end diff --git a/lib/openactive/models/schema/tvepisode.rb b/lib/openactive/models/schema/tvepisode.rb index 42ac9bcf..f913ec0b 100644 --- a/lib/openactive/models/schema/tvepisode.rb +++ b/lib/openactive/models/schema/tvepisode.rb @@ -20,10 +20,10 @@ def type "string", ] - # @return [OpenActive::Models::Schema::Language,String,URI] + # @return [String,OpenActive::Models::Schema::Language,URI] define_property :subtitle_language, as: "subtitleLanguage", types: [ - "OpenActive::Models::Schema::Language", "string", + "OpenActive::Models::Schema::Language", "URI", ] diff --git a/lib/openactive/models/schema/tvseason.rb b/lib/openactive/models/schema/tvseason.rb index f4a82231..a9ba3445 100644 --- a/lib/openactive/models/schema/tvseason.rb +++ b/lib/openactive/models/schema/tvseason.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class TVSeason < ::OpenActive::Models::Schema::CreativeWorkSeason + class TVSeason < ::OpenActive::Models::Schema::CreativeWork # @!attribute type # @return [String] def type @@ -14,6 +14,12 @@ def type "URI", ] + # @return [URI,String] + define_property :title_eidr, as: "titleEIDR", types: [ + "URI", + "string", + ] + # @return [OpenActive::Models::Schema::TVSeries,URI] define_property :part_of_tvseries, as: "partOfTVSeries", types: [ "OpenActive::Models::Schema::TVSeries", diff --git a/lib/openactive/models/schema/tvseries.rb b/lib/openactive/models/schema/tvseries.rb index 9fe1e813..9169318c 100644 --- a/lib/openactive/models/schema/tvseries.rb +++ b/lib/openactive/models/schema/tvseries.rb @@ -8,15 +8,9 @@ def type "schema:TVSeries" end - # @return [URI,OpenActive::Models::Schema::CreativeWorkSeason] - define_property :season, as: "season", types: [ - "URI", - "OpenActive::Models::Schema::CreativeWorkSeason", - ] - - # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] - define_property :contains_season, as: "containsSeason", types: [ - "OpenActive::Models::Schema::CreativeWorkSeason", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actors, as: "actors", types: [ + "OpenActive::Models::Schema::Person", "URI", ] @@ -26,39 +20,33 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Episode,URI] + define_property :episodes, as: "episodes", types: [ + "OpenActive::Models::Schema::Episode", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ - "OpenActive::Models::Schema::Person", + # @return [URI,String] + define_property :title_eidr, as: "titleEIDR", types: [ "URI", + "string", ] - # @return [OpenActive::Models::Schema::VideoObject,URI] - define_property :trailer, as: "trailer", types: [ - "OpenActive::Models::Schema::VideoObject", + # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] + define_property :season, as: "season", types: [ + "OpenActive::Models::Schema::CreativeWorkSeason", "URI", ] - # @return [OpenActive::Models::Schema::Episode,URI] - define_property :episodes, as: "episodes", types: [ - "OpenActive::Models::Schema::Episode", + # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] + define_property :contains_season, as: "containsSeason", types: [ + "OpenActive::Models::Schema::CreativeWorkSeason", "URI", ] - # @return [int,nil] - define_property :number_of_episodes, as: "numberOfEpisodes", types: [ - "int", - "null", - ] - - # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] - define_property :seasons, as: "seasons", types: [ - "OpenActive::Models::Schema::CreativeWorkSeason", + # @return [OpenActive::Models::Schema::VideoObject,URI] + define_property :trailer, as: "trailer", types: [ + "OpenActive::Models::Schema::VideoObject", "URI", ] @@ -68,9 +56,15 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Episode,URI] + define_property :episode, as: "episode", types: [ + "OpenActive::Models::Schema::Episode", + "URI", + ] + + # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] + define_property :seasons, as: "seasons", types: [ + "OpenActive::Models::Schema::CreativeWorkSeason", "URI", ] @@ -87,14 +81,26 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Episode,URI] - define_property :episode, as: "episode", types: [ - "OpenActive::Models::Schema::Episode", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :directors, as: "directors", types: [ + "OpenActive::Models::Schema::Person", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :director, as: "director", types: [ + "OpenActive::Models::Schema::Person", + "URI", + ] + + # @return [int,nil] + define_property :number_of_episodes, as: "numberOfEpisodes", types: [ + "int", + "null", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/type_and_quantity_node.rb b/lib/openactive/models/schema/type_and_quantity_node.rb index 69b538f1..d04c5c58 100644 --- a/lib/openactive/models/schema/type_and_quantity_node.rb +++ b/lib/openactive/models/schema/type_and_quantity_node.rb @@ -19,11 +19,17 @@ def type "null", ] - # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::Service,URI] + # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI] define_property :type_of_good, as: "typeOfGood", types: [ - "OpenActive::Models::Schema::Product", "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Product", + "URI", + ] + + # @return [URI,String] + define_property :unit_code, as: "unitCode", types: [ "URI", + "string", ] # @return [BigDecimal,nil] @@ -31,12 +37,6 @@ def type "Number", "null", ] - - # @return [String,URI] - define_property :unit_code, as: "unitCode", types: [ - "string", - "URI", - ] end end end diff --git a/lib/openactive/models/schema/unit_price_specification.rb b/lib/openactive/models/schema/unit_price_specification.rb index 4e11b1e2..90cb9cef 100644 --- a/lib/openactive/models/schema/unit_price_specification.rb +++ b/lib/openactive/models/schema/unit_price_specification.rb @@ -8,6 +8,12 @@ def type "schema:UnitPriceSpecification" end + # @return [BigDecimal,nil] + define_property :billing_increment, as: "billingIncrement", types: [ + "Number", + "null", + ] + # @return [OpenActive::Enums::Schema::PriceTypeEnumeration,String,nil] define_property :price_type, as: "priceType", types: [ "OpenActive::Enums::Schema::PriceTypeEnumeration", @@ -20,23 +26,29 @@ def type "string", ] + # @return [OpenActive::Enums::Schema::PriceComponentTypeEnumeration,nil] + define_property :price_component_type, as: "priceComponentType", types: [ + "OpenActive::Enums::Schema::PriceComponentTypeEnumeration", + "null", + ] + # @return [BigDecimal,nil] - define_property :billing_increment, as: "billingIncrement", types: [ + define_property :billing_start, as: "billingStart", types: [ "Number", "null", ] - # @return [String,URI] + # @return [URI,String] define_property :unit_code, as: "unitCode", types: [ - "string", "URI", + "string", ] - # @return [ActiveSupport::Duration,OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] + # @return [ActiveSupport::Duration,BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] define_property :billing_duration, as: "billingDuration", types: [ "DateInterval", - "OpenActive::Models::Schema::QuantitativeValue", "Number", + "OpenActive::Models::Schema::QuantitativeValue", "URI", "null", ] @@ -46,18 +58,6 @@ def type "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - - # @return [OpenActive::Enums::Schema::PriceComponentTypeEnumeration,nil] - define_property :price_component_type, as: "priceComponentType", types: [ - "OpenActive::Enums::Schema::PriceComponentTypeEnumeration", - "null", - ] - - # @return [BigDecimal,nil] - define_property :billing_start, as: "billingStart", types: [ - "Number", - "null", - ] end end end diff --git a/lib/openactive/models/schema/user_comments.rb b/lib/openactive/models/schema/user_comments.rb index d63d4de9..a7554267 100644 --- a/lib/openactive/models/schema/user_comments.rb +++ b/lib/openactive/models/schema/user_comments.rb @@ -8,6 +8,11 @@ def type "schema:UserComments" end + # @return [String] + define_property :comment_text, as: "commentText", types: [ + "string", + ] + # @return [URI] define_property :reply_to_url, as: "replyToUrl", types: [ "URI", @@ -19,24 +24,19 @@ def type "URI", ] - # @return [DateTime,Date,nil] - define_property :comment_time, as: "commentTime", types: [ - "DateTime", - "Date", - "null", - ] - - # @return [String] - define_property :comment_text, as: "commentText", types: [ - "string", - ] - - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :creator, as: "creator", types: [ - "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", "URI", ] + + # @return [Date,DateTime,nil] + define_property :comment_time, as: "commentTime", types: [ + "Date", + "DateTime", + "null", + ] end end end diff --git a/lib/openactive/models/schema/vacation_rental.rb b/lib/openactive/models/schema/vacation_rental.rb new file mode 100644 index 00000000..b651bd36 --- /dev/null +++ b/lib/openactive/models/schema/vacation_rental.rb @@ -0,0 +1,13 @@ +module OpenActive + module Models + module Schema + class VacationRental < ::OpenActive::Models::Schema::LodgingBusiness + # @!attribute type + # @return [String] + def type + "schema:VacationRental" + end + end + end + end +end diff --git a/lib/openactive/models/schema/vehicle.rb b/lib/openactive/models/schema/vehicle.rb index a5b4cce7..91af5c19 100644 --- a/lib/openactive/models/schema/vehicle.rb +++ b/lib/openactive/models/schema/vehicle.rb @@ -8,40 +8,17 @@ def type "schema:Vehicle" end - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :fuel_capacity, as: "fuelCapacity", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :acceleration_time, as: "accelerationTime", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :speed, as: "speed", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :trailer_weight, as: "trailerWeight", types: [ + # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] + define_property :number_of_previous_owners, as: "numberOfPreviousOwners", types: [ + "Number", "OpenActive::Models::Schema::QuantitativeValue", "URI", + "null", ] - # @return [OpenActive::Models::Schema::EngineSpecification,URI] - define_property :vehicle_engine, as: "vehicleEngine", types: [ - "OpenActive::Models::Schema::EngineSpecification", - "URI", - ] - - # @return [BigDecimal,nil] - define_property :emissions_co2, as: "emissionsCO2", types: [ - "Number", - "null", + # @return [String] + define_property :vehicle_configuration, as: "vehicleConfiguration", types: [ + "string", ] # @return [Date,nil] @@ -50,63 +27,72 @@ def type "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] - define_property :number_of_forward_gears, as: "numberOfForwardGears", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "Number", + # @return [OpenActive::Models::Schema::DriveWheelConfigurationValue,String,URI] + define_property :drive_wheel_configuration, as: "driveWheelConfiguration", types: [ + "OpenActive::Models::Schema::DriveWheelConfigurationValue", + "string", "URI", - "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :weight_total, as: "weightTotal", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] + define_property :vehicle_seating_capacity, as: "vehicleSeatingCapacity", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "Number", "URI", + "null", ] # @return [Date,nil] - define_property :production_date, as: "productionDate", types: [ + define_property :date_vehicle_first_registered, as: "dateVehicleFirstRegistered", types: [ "Date", "null", ] - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :number_of_previous_owners, as: "numberOfPreviousOwners", types: [ - "Number", - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String] + define_property :known_vehicle_damages, as: "knownVehicleDamages", types: [ + "string", + ] + + # @return [String,OpenActive::Enums::Schema::QualitativeValue,URI,nil] + define_property :vehicle_transmission, as: "vehicleTransmission", types: [ + "string", + "OpenActive::Enums::Schema::QualitativeValue", "URI", "null", ] - # @return [OpenActive::Models::Schema::SteeringPositionValue,URI] - define_property :steering_position, as: "steeringPosition", types: [ - "OpenActive::Models::Schema::SteeringPositionValue", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :wheelbase, as: "wheelbase", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :wheelbase, as: "wheelbase", types: [ + define_property :mileage_from_odometer, as: "mileageFromOdometer", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [String] - define_property :vehicle_interior_type, as: "vehicleInteriorType", types: [ + # @return [OpenActive::Enums::Schema::CarUsageType,String,nil] + define_property :vehicle_special_usage, as: "vehicleSpecialUsage", types: [ + "OpenActive::Enums::Schema::CarUsageType", "string", + "null", ] - # @return [String,BigDecimal,nil] - define_property :number_of_airbags, as: "numberOfAirbags", types: [ - "string", + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] + define_property :number_of_doors, as: "numberOfDoors", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "Number", + "URI", "null", ] - # @return [String,URI,OpenActive::Enums::Schema::QualitativeValue,nil] - define_property :fuel_type, as: "fuelType", types: [ + # @return [String,OpenActive::Enums::Schema::QualitativeValue,URI,nil] + define_property :meets_emission_standard, as: "meetsEmissionStandard", types: [ "string", - "URI", "OpenActive::Enums::Schema::QualitativeValue", + "URI", "null", ] @@ -116,145 +102,159 @@ def type "URI", ] - # @return [String,OpenActive::Enums::Schema::QualitativeValue,URI,nil] - define_property :vehicle_transmission, as: "vehicleTransmission", types: [ + # @return [String] + define_property :vehicle_interior_type, as: "vehicleInteriorType", types: [ "string", - "OpenActive::Enums::Schema::QualitativeValue", - "URI", - "null", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :payload, as: "payload", types: [ + define_property :weight_total, as: "weightTotal", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [String,OpenActive::Models::Schema::DriveWheelConfigurationValue,URI] - define_property :drive_wheel_configuration, as: "driveWheelConfiguration", types: [ - "string", - "OpenActive::Models::Schema::DriveWheelConfigurationValue", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :fuel_consumption, as: "fuelConsumption", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [String] - define_property :known_vehicle_damages, as: "knownVehicleDamages", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :fuel_consumption, as: "fuelConsumption", types: [ + define_property :acceleration_time, as: "accelerationTime", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] + # @return [Date,nil] + define_property :production_date, as: "productionDate", types: [ + "Date", + "null", + ] + # @return [String] define_property :vehicle_interior_color, as: "vehicleInteriorColor", types: [ "string", ] - # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] - define_property :number_of_axles, as: "numberOfAxles", types: [ - "Number", - "OpenActive::Models::Schema::QuantitativeValue", + # @return [URI,String,OpenActive::Enums::Schema::QualitativeValue,nil] + define_property :body_type, as: "bodyType", types: [ "URI", + "string", + "OpenActive::Enums::Schema::QualitativeValue", "null", ] - # @return [Date,nil] - define_property :model_date, as: "modelDate", types: [ - "Date", - "null", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :tongue_weight, as: "tongueWeight", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] - define_property :number_of_doors, as: "numberOfDoors", types: [ + define_property :seating_capacity, as: "seatingCapacity", types: [ "OpenActive::Models::Schema::QuantitativeValue", "Number", "URI", "null", ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :speed, as: "speed", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + ] + # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] - define_property :vehicle_seating_capacity, as: "vehicleSeatingCapacity", types: [ + define_property :number_of_axles, as: "numberOfAxles", types: [ "OpenActive::Models::Schema::QuantitativeValue", "Number", "URI", "null", ] - # @return [String] - define_property :call_sign, as: "callSign", types: [ + # @return [OpenActive::Enums::Schema::QualitativeValue,URI,String,nil] + define_property :fuel_type, as: "fuelType", types: [ + "OpenActive::Enums::Schema::QualitativeValue", + "URI", "string", + "null", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :tongue_weight, as: "tongueWeight", types: [ + define_property :trailer_weight, as: "trailerWeight", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] + # @return [Date,nil] + define_property :vehicle_model_date, as: "vehicleModelDate", types: [ + "Date", + "null", + ] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :fuel_efficiency, as: "fuelEfficiency", types: [ + define_property :fuel_capacity, as: "fuelCapacity", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] # @return [Date,nil] - define_property :vehicle_model_date, as: "vehicleModelDate", types: [ + define_property :model_date, as: "modelDate", types: [ "Date", "null", ] - # @return [String] - define_property :vehicle_configuration, as: "vehicleConfiguration", types: [ - "string", + # @return [OpenActive::Models::Schema::EngineSpecification,URI] + define_property :vehicle_engine, as: "vehicleEngine", types: [ + "OpenActive::Models::Schema::EngineSpecification", + "URI", ] # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :mileage_from_odometer, as: "mileageFromOdometer", types: [ + define_property :payload, as: "payload", types: [ "OpenActive::Models::Schema::QuantitativeValue", "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,BigDecimal,URI,nil] - define_property :seating_capacity, as: "seatingCapacity", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String] + define_property :vehicle_identification_number, as: "vehicleIdentificationNumber", types: [ + "string", + ] + + # @return [BigDecimal,nil] + define_property :emissions_co2, as: "emissionsCO2", types: [ "Number", - "URI", "null", ] - # @return [OpenActive::Enums::Schema::QualitativeValue,String,URI,nil] - define_property :body_type, as: "bodyType", types: [ - "OpenActive::Enums::Schema::QualitativeValue", - "string", + # @return [OpenActive::Models::Schema::SteeringPositionValue,URI] + define_property :steering_position, as: "steeringPosition", types: [ + "OpenActive::Models::Schema::SteeringPositionValue", "URI", - "null", ] - # @return [Date,nil] - define_property :date_vehicle_first_registered, as: "dateVehicleFirstRegistered", types: [ - "Date", + # @return [BigDecimal,OpenActive::Models::Schema::QuantitativeValue,URI,nil] + define_property :number_of_forward_gears, as: "numberOfForwardGears", types: [ + "Number", + "OpenActive::Models::Schema::QuantitativeValue", + "URI", "null", ] - # @return [String] - define_property :vehicle_identification_number, as: "vehicleIdentificationNumber", types: [ - "string", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :fuel_efficiency, as: "fuelEfficiency", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [String,URI,OpenActive::Enums::Schema::QualitativeValue,nil] - define_property :meets_emission_standard, as: "meetsEmissionStandard", types: [ + # @return [String] + define_property :call_sign, as: "callSign", types: [ "string", - "URI", - "OpenActive::Enums::Schema::QualitativeValue", - "null", ] - # @return [OpenActive::Enums::Schema::CarUsageType,String,nil] - define_property :vehicle_special_usage, as: "vehicleSpecialUsage", types: [ - "OpenActive::Enums::Schema::CarUsageType", + # @return [BigDecimal,String,nil] + define_property :number_of_airbags, as: "numberOfAirbags", types: [ + "Number", "string", "null", ] diff --git a/lib/openactive/models/schema/vein.rb b/lib/openactive/models/schema/vein.rb index 833553f5..3089e0f4 100644 --- a/lib/openactive/models/schema/vein.rb +++ b/lib/openactive/models/schema/vein.rb @@ -8,15 +8,15 @@ def type "schema:Vein" end - # @return [OpenActive::Models::Schema::AnatomicalSystem,OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :region_drained, as: "regionDrained", types: [ - "OpenActive::Models::Schema::AnatomicalSystem", + # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] + define_property :tributary, as: "tributary", types: [ "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] - # @return [OpenActive::Models::Schema::AnatomicalStructure,URI] - define_property :tributary, as: "tributary", types: [ + # @return [OpenActive::Models::Schema::AnatomicalSystem,OpenActive::Models::Schema::AnatomicalStructure,URI] + define_property :region_drained, as: "regionDrained", types: [ + "OpenActive::Models::Schema::AnatomicalSystem", "OpenActive::Models::Schema::AnatomicalStructure", "URI", ] diff --git a/lib/openactive/models/schema/video_game.rb b/lib/openactive/models/schema/video_game.rb index 89901401..3862376a 100644 --- a/lib/openactive/models/schema/video_game.rb +++ b/lib/openactive/models/schema/video_game.rb @@ -1,7 +1,7 @@ module OpenActive module Models module Schema - class VideoGame < ::OpenActive::Models::Schema::SoftwareApplication + class VideoGame < ::OpenActive::Models::Schema::Game # @!attribute type # @return [String] def type @@ -9,32 +9,21 @@ def type end # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ + define_property :actors, as: "actors", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::VideoObject,URI] - define_property :trailer, as: "trailer", types: [ - "OpenActive::Models::Schema::VideoObject", - "URI", - ] - # @return [String] define_property :game_edition, as: "gameEdition", types: [ "string", ] - # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :cheat_code, as: "cheatCode", types: [ - "OpenActive::Models::Schema::CreativeWork", + # @return [URI,OpenActive::Models::Schema::Thing,String] + define_property :game_platform, as: "gamePlatform", types: [ "URI", + "OpenActive::Models::Schema::Thing", + "string", ] # @return [OpenActive::Models::Schema::GameServer,URI] @@ -44,39 +33,50 @@ def type ] # @return [OpenActive::Models::Schema::CreativeWork,URI] - define_property :game_tip, as: "gameTip", types: [ + define_property :cheat_code, as: "cheatCode", types: [ "OpenActive::Models::Schema::CreativeWork", "URI", ] + # @return [OpenActive::Models::Schema::VideoObject,URI] + define_property :trailer, as: "trailer", types: [ + "OpenActive::Models::Schema::VideoObject", + "URI", + ] + + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] + define_property :music_by, as: "musicBy", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::MusicGroup", + "URI", + ] + # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ + define_property :directors, as: "directors", types: [ "OpenActive::Models::Schema::Person", "URI", ] + # @return [OpenActive::Models::Schema::CreativeWork,URI] + define_property :game_tip, as: "gameTip", types: [ + "OpenActive::Models::Schema::CreativeWork", + "URI", + ] + # @return [OpenActive::Enums::Schema::GamePlayMode,nil] define_property :play_mode, as: "playMode", types: [ "OpenActive::Enums::Schema::GamePlayMode", "null", ] - # @return [String,URI,OpenActive::Models::Schema::Thing] - define_property :game_platform, as: "gamePlatform", types: [ - "string", - "URI", - "OpenActive::Models::Schema::Thing", - ] - - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] - define_property :music_by, as: "musicBy", types: [ + # @return [OpenActive::Models::Schema::Person,URI] + define_property :director, as: "director", types: [ "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::MusicGroup", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/video_game_series.rb b/lib/openactive/models/schema/video_game_series.rb index 16751469..237c3aca 100644 --- a/lib/openactive/models/schema/video_game_series.rb +++ b/lib/openactive/models/schema/video_game_series.rb @@ -8,34 +8,23 @@ def type "schema:VideoGameSeries" end - # @return [URI,OpenActive::Models::Schema::CreativeWorkSeason] - define_property :season, as: "season", types: [ - "URI", - "OpenActive::Models::Schema::CreativeWorkSeason", - ] - - # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] - define_property :contains_season, as: "containsSeason", types: [ - "OpenActive::Models::Schema::CreativeWorkSeason", - "URI", - ] - - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :character_attribute, as: "characterAttribute", types: [ + "OpenActive::Models::Schema::Thing", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ + define_property :actors, as: "actors", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::VideoObject,URI] - define_property :trailer, as: "trailer", types: [ - "OpenActive::Models::Schema::VideoObject", + # @return [URI,OpenActive::Models::Schema::Thing,String] + define_property :game_platform, as: "gamePlatform", types: [ "URI", + "OpenActive::Models::Schema::Thing", + "string", ] # @return [OpenActive::Models::Schema::Episode,URI] @@ -44,20 +33,8 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :character_attribute, as: "characterAttribute", types: [ - "OpenActive::Models::Schema::Thing", - "URI", - ] - - # @return [int,nil] - define_property :number_of_episodes, as: "numberOfEpisodes", types: [ - "int", - "null", - ] - # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] - define_property :seasons, as: "seasons", types: [ + define_property :season, as: "season", types: [ "OpenActive::Models::Schema::CreativeWorkSeason", "URI", ] @@ -68,9 +45,15 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Thing,URI] - define_property :game_item, as: "gameItem", types: [ - "OpenActive::Models::Schema::Thing", + # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] + define_property :contains_season, as: "containsSeason", types: [ + "OpenActive::Models::Schema::CreativeWorkSeason", + "URI", + ] + + # @return [OpenActive::Models::Schema::VideoObject,URI] + define_property :trailer, as: "trailer", types: [ + "OpenActive::Models::Schema::VideoObject", "URI", ] @@ -80,23 +63,16 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Episode,URI] + define_property :episode, as: "episode", types: [ + "OpenActive::Models::Schema::Episode", "URI", ] - # @return [OpenActive::Enums::Schema::GamePlayMode,nil] - define_property :play_mode, as: "playMode", types: [ - "OpenActive::Enums::Schema::GamePlayMode", - "null", - ] - - # @return [String,URI,OpenActive::Models::Schema::Thing] - define_property :game_platform, as: "gamePlatform", types: [ - "string", + # @return [OpenActive::Models::Schema::CreativeWorkSeason,URI] + define_property :seasons, as: "seasons", types: [ + "OpenActive::Models::Schema::CreativeWorkSeason", "URI", - "OpenActive::Models::Schema::Thing", ] # @return [int,nil] @@ -105,6 +81,13 @@ def type "null", ] + # @return [OpenActive::Models::Schema::Place,URI,OpenActive::Models::Schema::PostalAddress] + define_property :game_location, as: "gameLocation", types: [ + "OpenActive::Models::Schema::Place", + "URI", + "OpenActive::Models::Schema::PostalAddress", + ] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] define_property :music_by, as: "musicBy", types: [ "OpenActive::Models::Schema::Person", @@ -112,9 +95,9 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :number_of_players, as: "numberOfPlayers", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Models::Schema::Person,URI] + define_property :directors, as: "directors", types: [ + "OpenActive::Models::Schema::Person", "URI", ] @@ -124,24 +107,41 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Place,URI,OpenActive::Models::Schema::PostalAddress] - define_property :game_location, as: "gameLocation", types: [ - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :number_of_players, as: "numberOfPlayers", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "URI", - "OpenActive::Models::Schema::PostalAddress", ] - # @return [OpenActive::Models::Schema::Episode,URI] - define_property :episode, as: "episode", types: [ - "OpenActive::Models::Schema::Episode", + # @return [OpenActive::Enums::Schema::GamePlayMode,nil] + define_property :play_mode, as: "playMode", types: [ + "OpenActive::Enums::Schema::GamePlayMode", + "null", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :director, as: "director", types: [ + "OpenActive::Models::Schema::Person", "URI", ] + # @return [int,nil] + define_property :number_of_episodes, as: "numberOfEpisodes", types: [ + "int", + "null", + ] + # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] + + # @return [OpenActive::Models::Schema::Thing,URI] + define_property :game_item, as: "gameItem", types: [ + "OpenActive::Models::Schema::Thing", + "URI", + ] end end end diff --git a/lib/openactive/models/schema/video_object.rb b/lib/openactive/models/schema/video_object.rb index 0fb09139..3b91c286 100644 --- a/lib/openactive/models/schema/video_object.rb +++ b/lib/openactive/models/schema/video_object.rb @@ -8,21 +8,20 @@ def type "schema:VideoObject" end - # @return [String] - define_property :embedded_text_caption, as: "embeddedTextCaption", types: [ - "string", - ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :director, as: "director", types: [ + define_property :actors, as: "actors", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :actor, as: "actor", types: [ - "OpenActive::Models::Schema::Person", - "URI", + # @return [String] + define_property :embedded_text_caption, as: "embeddedTextCaption", types: [ + "string", + ] + + # @return [String] + define_property :video_quality, as: "videoQuality", types: [ + "string", ] # @return [String,OpenActive::Models::Schema::MediaObject,URI] @@ -32,42 +31,37 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::ImageObject,URI] - define_property :thumbnail, as: "thumbnail", types: [ - "OpenActive::Models::Schema::ImageObject", - "URI", - ] - # @return [String] - define_property :transcript, as: "transcript", types: [ + define_property :video_frame_size, as: "videoFrameSize", types: [ "string", ] # @return [String] - define_property :video_quality, as: "videoQuality", types: [ + define_property :transcript, as: "transcript", types: [ "string", ] - # @return [String] - define_property :video_frame_size, as: "videoFrameSize", types: [ - "string", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] + define_property :music_by, as: "musicBy", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::MusicGroup", + "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :actors, as: "actors", types: [ + define_property :directors, as: "directors", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI] - define_property :music_by, as: "musicBy", types: [ + # @return [OpenActive::Models::Schema::Person,URI] + define_property :director, as: "director", types: [ "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::MusicGroup", "URI", ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :directors, as: "directors", types: [ + define_property :actor, as: "actor", types: [ "OpenActive::Models::Schema::Person", "URI", ] diff --git a/lib/openactive/models/schema/visual_artwork.rb b/lib/openactive/models/schema/visual_artwork.rb index 7d0f0c90..7021957e 100644 --- a/lib/openactive/models/schema/visual_artwork.rb +++ b/lib/openactive/models/schema/visual_artwork.rb @@ -8,28 +8,14 @@ def type "schema:VisualArtwork" end - # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] - define_property :width, as: "width", types: [ - "OpenActive::Models::Schema::QuantitativeValue", - "OpenActive::Models::Schema::Distance", - "URI", - ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :letterer, as: "letterer", types: [ + define_property :inker, as: "inker", types: [ "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :height, as: "height", types: [ - "OpenActive::Models::Schema::Distance", - "OpenActive::Models::Schema::QuantitativeValue", - "URI", - ] - # @return [URI,String] - define_property :surface, as: "surface", types: [ + define_property :artwork_surface, as: "artworkSurface", types: [ "URI", "string", ] @@ -41,32 +27,52 @@ def type ] # @return [OpenActive::Models::Schema::Person,URI] - define_property :inker, as: "inker", types: [ + define_property :artist, as: "artist", types: [ + "OpenActive::Models::Schema::Person", + "URI", + ] + + # @return [OpenActive::Models::Schema::Person,URI] + define_property :letterer, as: "letterer", types: [ "OpenActive::Models::Schema::Person", "URI", ] + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :depth, as: "depth", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :height, as: "height", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", + "URI", + ] + # @return [String,URI] - define_property :artform, as: "artform", types: [ + define_property :art_medium, as: "artMedium", types: [ "string", "URI", ] # @return [URI,String] - define_property :artwork_surface, as: "artworkSurface", types: [ + define_property :surface, as: "surface", types: [ "URI", "string", ] - # @return [int,String,nil] + # @return [String,int,nil] define_property :art_edition, as: "artEdition", types: [ - "int", "string", + "int", "null", ] # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] - define_property :depth, as: "depth", types: [ + define_property :width, as: "width", types: [ "OpenActive::Models::Schema::Distance", "OpenActive::Models::Schema::QuantitativeValue", "URI", @@ -78,14 +84,8 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::Person,URI] - define_property :artist, as: "artist", types: [ - "OpenActive::Models::Schema::Person", - "URI", - ] - # @return [URI,String] - define_property :art_medium, as: "artMedium", types: [ + define_property :artform, as: "artform", types: [ "URI", "string", ] diff --git a/lib/openactive/models/schema/web_page.rb b/lib/openactive/models/schema/web_page.rb index b17d3990..1ea9703d 100644 --- a/lib/openactive/models/schema/web_page.rb +++ b/lib/openactive/models/schema/web_page.rb @@ -8,21 +8,20 @@ def type "schema:WebPage" end - # @return [Date,nil] - define_property :last_reviewed, as: "lastReviewed", types: [ - "Date", - "null", + # @return [OpenActive::Models::Schema::ImageObject,URI] + define_property :primary_image_of_page, as: "primaryImageOfPage", types: [ + "OpenActive::Models::Schema::ImageObject", + "URI", ] - # @return [OpenActive::Enums::Schema::Specialty,nil] - define_property :specialty, as: "specialty", types: [ - "OpenActive::Enums::Schema::Specialty", - "null", + # @return [OpenActive::Models::Schema::WebPageElement,URI] + define_property :main_content_of_page, as: "mainContentOfPage", types: [ + "OpenActive::Models::Schema::WebPageElement", + "URI", ] - # @return [OpenActive::Models::Schema::ImageObject,URI] - define_property :primary_image_of_page, as: "primaryImageOfPage", types: [ - "OpenActive::Models::Schema::ImageObject", + # @return [URI] + define_property :significant_links, as: "significantLinks", types: [ "URI", ] @@ -38,10 +37,10 @@ def type "URI", ] - # @return [OpenActive::Models::Schema::WebPageElement,URI] - define_property :main_content_of_page, as: "mainContentOfPage", types: [ - "OpenActive::Models::Schema::WebPageElement", - "URI", + # @return [OpenActive::Enums::Schema::Specialty,nil] + define_property :specialty, as: "specialty", types: [ + "OpenActive::Enums::Schema::Specialty", + "null", ] # @return [URI] @@ -49,21 +48,22 @@ def type "URI", ] - # @return [URI,OpenActive::Models::Schema::SpeakableSpecification] - define_property :speakable, as: "speakable", types: [ - "URI", - "OpenActive::Models::Schema::SpeakableSpecification", + # @return [Date,nil] + define_property :last_reviewed, as: "lastReviewed", types: [ + "Date", + "null", ] - # @return [OpenActive::Models::Schema::BreadcrumbList,String,URI] + # @return [String,OpenActive::Models::Schema::BreadcrumbList,URI] define_property :breadcrumb, as: "breadcrumb", types: [ - "OpenActive::Models::Schema::BreadcrumbList", "string", + "OpenActive::Models::Schema::BreadcrumbList", "URI", ] - # @return [URI] - define_property :significant_links, as: "significantLinks", types: [ + # @return [OpenActive::Models::Schema::SpeakableSpecification,URI] + define_property :speakable, as: "speakable", types: [ + "OpenActive::Models::Schema::SpeakableSpecification", "URI", ] end diff --git a/lib/openactive/models/schema/work_based_program.rb b/lib/openactive/models/schema/work_based_program.rb index ccb86285..d87ff9c8 100644 --- a/lib/openactive/models/schema/work_based_program.rb +++ b/lib/openactive/models/schema/work_based_program.rb @@ -8,16 +8,16 @@ def type "schema:WorkBasedProgram" end - # @return [OpenActive::Models::Schema::MonetaryAmountDistribution,URI] - define_property :training_salary, as: "trainingSalary", types: [ - "OpenActive::Models::Schema::MonetaryAmountDistribution", + # @return [String,OpenActive::Models::Schema::CategoryCode,URI] + define_property :occupational_category, as: "occupationalCategory", types: [ + "string", + "OpenActive::Models::Schema::CategoryCode", "URI", ] - # @return [OpenActive::Models::Schema::CategoryCode,String,URI] - define_property :occupational_category, as: "occupationalCategory", types: [ - "OpenActive::Models::Schema::CategoryCode", - "string", + # @return [OpenActive::Models::Schema::MonetaryAmountDistribution,URI] + define_property :training_salary, as: "trainingSalary", types: [ + "OpenActive::Models::Schema::MonetaryAmountDistribution", "URI", ] end