Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
78 changes: 78 additions & 0 deletions lib/openactive/enums/property_enumeration.rb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions lib/openactive/enums/schema/adult_oriented_enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ module Enums
module Schema
# Enumeration of considerations that make a product relevant or potentially restricted for adults only.
class AdultOrientedEnumeration < TypesafeEnum::Base
new :ReducedRelevanceForChildrenConsideration, "https://schema.org/ReducedRelevanceForChildrenConsideration"
new :SexualContentConsideration, "https://schema.org/SexualContentConsideration"
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 :HealthcareConsideration, "https://schema.org/HealthcareConsideration"
new :NarcoticConsideration, "https://schema.org/NarcoticConsideration"
new :WeaponConsideration, "https://schema.org/WeaponConsideration"
new :ReducedRelevanceForChildrenConsideration, "https://schema.org/ReducedRelevanceForChildrenConsideration"
new :SexualContentConsideration, "https://schema.org/SexualContentConsideration"
new :TobaccoNicotineConsideration, "https://schema.org/TobaccoNicotineConsideration"
new :UnclassifiedAdultConsideration, "https://schema.org/UnclassifiedAdultConsideration"
new :HealthcareConsideration, "https://schema.org/HealthcareConsideration"
new :ViolenceConsideration, "https://schema.org/ViolenceConsideration"
new :WeaponConsideration, "https://schema.org/WeaponConsideration"
end
end
end
Expand Down
5 changes: 3 additions & 2 deletions lib/openactive/enums/schema/book_format_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ module Enums
module Schema
# The publication format of the book.
class BookFormatType < TypesafeEnum::Base
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 :GraphicNovel, "https://schema.org/GraphicNovel"
new :Hardcover, "https://schema.org/Hardcover"
new :Pamphlet, "https://schema.org/Pamphlet"
new :Paperback, "https://schema.org/Paperback"
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/openactive/enums/schema/car_usage_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Enums
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 :RentalVehicleUsage, "https://schema.org/RentalVehicleUsage"
new :DrivingSchoolVehicleUsage, "https://schema.org/DrivingSchoolVehicleUsage"
new :RentalVehicleUsage, "https://schema.org/RentalVehicleUsage"
new :TaxiVehicleUsage, "https://schema.org/TaxiVehicleUsage"
end
end
end
Expand Down
13 changes: 13 additions & 0 deletions lib/openactive/enums/schema/certification_status_enumeration.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'typesafe_enum'

module OpenActive
module Enums
module Schema
# Enumerates the different statuses of a Certification (Active and Inactive).
class CertificationStatusEnumeration < TypesafeEnum::Base
new :CertificationActive, "https://schema.org/CertificationActive"
new :CertificationInactive, "https://schema.org/CertificationInactive"
end
end
end
end
2 changes: 1 addition & 1 deletion lib/openactive/enums/schema/contact_point_option.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module Enums
module Schema
# Enumerated options related to a ContactPoint.
class ContactPointOption < TypesafeEnum::Base
new :TollFree, "https://schema.org/TollFree"
new :HearingImpairedSupported, "https://schema.org/HearingImpairedSupported"
new :TollFree, "https://schema.org/TollFree"
end
end
end
Expand Down
10 changes: 5 additions & 5 deletions lib/openactive/enums/schema/day_of_week.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 :Friday, "https://schema.org/Friday"
new :Wednesday, "https://schema.org/Wednesday"
new :Monday, "https://schema.org/Monday"
new :PublicHolidays, "https://schema.org/PublicHolidays"
new :Saturday, "https://schema.org/Saturday"
new :Sunday, "https://schema.org/Sunday"
new :Thursday, "https://schema.org/Thursday"
new :Tuesday, "https://schema.org/Tuesday"
new :Wednesday, "https://schema.org/Wednesday"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/openactive/enums/schema/delivery_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ 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 :OnSitePickup, "https://schema.org/OnSitePickup"
new :LockerDelivery, "https://schema.org/LockerDelivery"
new :OnSitePickup, "https://schema.org/OnSitePickup"
new :ParcelService, "https://schema.org/ParcelService"
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 :ReadPermission, "https://schema.org/ReadPermission"
new :CommentPermission, "https://schema.org/CommentPermission"
new :ReadPermission, "https://schema.org/ReadPermission"
new :WritePermission, "https://schema.org/WritePermission"
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/openactive/enums/schema/digital_platform_enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ 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 :AndroidPlatform, "https://schema.org/AndroidPlatform"
new :DesktopWebPlatform, "https://schema.org/DesktopWebPlatform"
new :GenericWebPlatform, "https://schema.org/GenericWebPlatform"
new :IOSPlatform, "https://schema.org/IOSPlatform"
new :MobileWebPlatform, "https://schema.org/MobileWebPlatform"
new :GenericWebPlatform, "https://schema.org/GenericWebPlatform"
new :DesktopWebPlatform, "https://schema.org/DesktopWebPlatform"
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Enums
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 :MixedEventAttendanceMode, "https://schema.org/MixedEventAttendanceMode"
new :OfflineEventAttendanceMode, "https://schema.org/OfflineEventAttendanceMode"
new :OnlineEventAttendanceMode, "https://schema.org/OnlineEventAttendanceMode"
new :MixedEventAttendanceMode, "https://schema.org/MixedEventAttendanceMode"
end
end
end
Expand Down
16 changes: 16 additions & 0 deletions lib/openactive/enums/schema/fulfillment_type_enumeration.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require 'typesafe_enum'

module OpenActive
module Enums
module Schema
# A type of product fulfillment.
class FulfillmentTypeEnumeration < TypesafeEnum::Base
new :FulfillmentTypeCollectionPoint, "https://schema.org/FulfillmentTypeCollectionPoint"
new :FulfillmentTypeDelivery, "https://schema.org/FulfillmentTypeDelivery"
new :FulfillmentTypePickupDropoff, "https://schema.org/FulfillmentTypePickupDropoff"
new :FulfillmentTypePickupInStore, "https://schema.org/FulfillmentTypePickupInStore"
new :FulfillmentTypeScheduledDelivery, "https://schema.org/FulfillmentTypeScheduledDelivery"
end
end
end
end
2 changes: 1 addition & 1 deletion lib/openactive/enums/schema/gender_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module Enums
module Schema
# An enumeration of genders.
class GenderType < TypesafeEnum::Base
new :Male, "https://schema.org/Male"
new :Female, "https://schema.org/Female"
new :Male, "https://schema.org/Male"
end
end
end
Expand Down
6 changes: 3 additions & 3 deletions lib/openactive/enums/schema/government_benefits_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 :DisabilitySupport, "https://schema.org/DisabilitySupport"
new :UnemploymentSupport, "https://schema.org/UnemploymentSupport"
new :BasicIncome, "https://schema.org/BasicIncome"
new :BusinessSupport, "https://schema.org/BusinessSupport"
new :DisabilitySupport, "https://schema.org/DisabilitySupport"
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"
new :UnemploymentSupport, "https://schema.org/UnemploymentSupport"
end
end
end
Expand Down
38 changes: 19 additions & 19 deletions lib/openactive/enums/schema/health_aspect_enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 :StagesHealthAspect, "https://schema.org/StagesHealthAspect"
new :AllergiesHealthAspect, "https://schema.org/AllergiesHealthAspect"
new :BenefitsHealthAspect, "https://schema.org/BenefitsHealthAspect"
new :PreventionHealthAspect, "https://schema.org/PreventionHealthAspect"
new :PatientExperienceHealthAspect, "https://schema.org/PatientExperienceHealthAspect"
new :SeeDoctorHealthAspect, "https://schema.org/SeeDoctorHealthAspect"
new :ScreeningHealthAspect, "https://schema.org/ScreeningHealthAspect"
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 :ContagiousnessHealthAspect, "https://schema.org/ContagiousnessHealthAspect"
new :EffectivenessHealthAspect, "https://schema.org/EffectivenessHealthAspect"
new :GettingAccessHealthAspect, "https://schema.org/GettingAccessHealthAspect"
new :HowItWorksHealthAspect, "https://schema.org/HowItWorksHealthAspect"
new :HowOrWhereHealthAspect, "https://schema.org/HowOrWhereHealthAspect"
new :IngredientsHealthAspect, "https://schema.org/IngredientsHealthAspect"
new :LivingWithHealthAspect, "https://schema.org/LivingWithHealthAspect"
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 :OverviewHealthAspect, "https://schema.org/OverviewHealthAspect"
new :PatientExperienceHealthAspect, "https://schema.org/PatientExperienceHealthAspect"
new :PregnancyHealthAspect, "https://schema.org/PregnancyHealthAspect"
new :SideEffectsHealthAspect, "https://schema.org/SideEffectsHealthAspect"
new :PreventionHealthAspect, "https://schema.org/PreventionHealthAspect"
new :PrognosisHealthAspect, "https://schema.org/PrognosisHealthAspect"
new :IngredientsHealthAspect, "https://schema.org/IngredientsHealthAspect"
new :RelatedTopicsHealthAspect, "https://schema.org/RelatedTopicsHealthAspect"
new :RisksOrComplicationsHealthAspect, "https://schema.org/RisksOrComplicationsHealthAspect"
new :AllergiesHealthAspect, "https://schema.org/AllergiesHealthAspect"
new :EffectivenessHealthAspect, "https://schema.org/EffectivenessHealthAspect"
new :SafetyHealthAspect, "https://schema.org/SafetyHealthAspect"
new :ScreeningHealthAspect, "https://schema.org/ScreeningHealthAspect"
new :SeeDoctorHealthAspect, "https://schema.org/SeeDoctorHealthAspect"
new :SelfCareHealthAspect, "https://schema.org/SelfCareHealthAspect"
new :SideEffectsHealthAspect, "https://schema.org/SideEffectsHealthAspect"
new :StagesHealthAspect, "https://schema.org/StagesHealthAspect"
new :SymptomsHealthAspect, "https://schema.org/SymptomsHealthAspect"
new :TreatmentsHealthAspect, "https://schema.org/TreatmentsHealthAspect"
new :TypesHealthAspect, "https://schema.org/TypesHealthAspect"
new :UsageOrScheduleHealthAspect, "https://schema.org/UsageOrScheduleHealthAspect"
end
end
end
Expand Down
15 changes: 15 additions & 0 deletions lib/openactive/enums/schema/incentive_qualified_expense_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'typesafe_enum'

module OpenActive
module Enums
module Schema
# The types of expenses that are covered by the incentive. For example some incentives are only for the goods (tangible items) but the services (labor) are excluded.
class IncentiveQualifiedExpenseType < TypesafeEnum::Base
new :IncentiveQualifiedExpenseTypeGoodsOnly, "https://schema.org/IncentiveQualifiedExpenseTypeGoodsOnly"
new :IncentiveQualifiedExpenseTypeGoodsOrServices, "https://schema.org/IncentiveQualifiedExpenseTypeGoodsOrServices"
new :IncentiveQualifiedExpenseTypeServicesOnly, "https://schema.org/IncentiveQualifiedExpenseTypeServicesOnly"
new :IncentiveQualifiedExpenseTypeUtilityBill, "https://schema.org/IncentiveQualifiedExpenseTypeUtilityBill"
end
end
end
end
15 changes: 15 additions & 0 deletions lib/openactive/enums/schema/incentive_status.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'typesafe_enum'

module OpenActive
module Enums
module Schema
# Enumerates a status for an incentive, such as whether it is active.
class IncentiveStatus < TypesafeEnum::Base
new :IncentiveStatusActive, "https://schema.org/IncentiveStatusActive"
new :IncentiveStatusInDevelopment, "https://schema.org/IncentiveStatusInDevelopment"
new :IncentiveStatusOnHold, "https://schema.org/IncentiveStatusOnHold"
new :IncentiveStatusRetired, "https://schema.org/IncentiveStatusRetired"
end
end
end
end
16 changes: 16 additions & 0 deletions lib/openactive/enums/schema/incentive_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require 'typesafe_enum'

module OpenActive
module Enums
module Schema
# Enumerates common financial incentives for products, including tax credits, tax deductions, rebates and subsidies, etc.
class IncentiveType < TypesafeEnum::Base
new :IncentiveTypeLoan, "https://schema.org/IncentiveTypeLoan"
new :IncentiveTypeRebateOrSubsidy, "https://schema.org/IncentiveTypeRebateOrSubsidy"
new :IncentiveTypeTaxCredit, "https://schema.org/IncentiveTypeTaxCredit"
new :IncentiveTypeTaxDeduction, "https://schema.org/IncentiveTypeTaxDeduction"
new :IncentiveTypeTaxWaiver, "https://schema.org/IncentiveTypeTaxWaiver"
end
end
end
end
14 changes: 8 additions & 6 deletions lib/openactive/enums/schema/item_availability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ module Enums
module Schema
# A list of possible product availability options.
class ItemAvailability < TypesafeEnum::Base
new :PreOrder, "https://schema.org/PreOrder"
new :PreSale, "https://schema.org/PreSale"
new :BackOrder, "https://schema.org/BackOrder"
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"
new :LimitedAvailability, "https://schema.org/LimitedAvailability"
new :MadeToOrder, "https://schema.org/MadeToOrder"
new :OnlineOnly, "https://schema.org/OnlineOnly"
new :OutOfStock, "https://schema.org/OutOfStock"
new :PreOrder, "https://schema.org/PreOrder"
new :PreSale, "https://schema.org/PreSale"
new :Reserved, "https://schema.org/Reserved"
new :SoldOut, "https://schema.org/SoldOut"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/openactive/enums/schema/item_list_order_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Enums
module Schema
# Enumerated for values for itemListOrder for indicating how an ordered ItemList is organized.
class ItemListOrderType < TypesafeEnum::Base
new :ItemListOrderAscending, "https://schema.org/ItemListOrderAscending"
new :ItemListOrderDescending, "https://schema.org/ItemListOrderDescending"
new :ItemListUnordered, "https://schema.org/ItemListUnordered"
new :ItemListOrderAscending, "https://schema.org/ItemListOrderAscending"
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/openactive/enums/schema/legal_value_level.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 :UnofficialLegalValue, "https://schema.org/UnofficialLegalValue"
new :DefinitiveLegalValue, "https://schema.org/DefinitiveLegalValue"
new :AuthoritativeLegalValue, "https://schema.org/AuthoritativeLegalValue"
new :DefinitiveLegalValue, "https://schema.org/DefinitiveLegalValue"
new :OfficialLegalValue, "https://schema.org/OfficialLegalValue"
new :UnofficialLegalValue, "https://schema.org/UnofficialLegalValue"
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/openactive/enums/schema/map_category_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ module Enums
module Schema
# An enumeration of several kinds of Map.
class MapCategoryType < TypesafeEnum::Base
new :SeatingMap, "https://schema.org/SeatingMap"
new :ParkingMap, "https://schema.org/ParkingMap"
new :VenueMap, "https://schema.org/VenueMap"
new :SeatingMap, "https://schema.org/SeatingMap"
new :TransitMap, "https://schema.org/TransitMap"
new :VenueMap, "https://schema.org/VenueMap"
end
end
end
Expand Down
11 changes: 11 additions & 0 deletions lib/openactive/enums/schema/media_enumeration.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'typesafe_enum'

module OpenActive
module Enums
module Schema
# MediaEnumeration enumerations are lists of codes, labels etc. useful for describing media objects. They may be reflections of externally developed lists, or created at schema.org, or a combination.
class MediaEnumeration < TypesafeEnum::Base
end
end
end
end
Loading
Loading