Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update data models #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 70 additions & 6 deletions OpenActive.NET/enums/PropertyEnumeration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ public enum PropertyEnumeration
ActionOption,
[EnumMember(Value = "https://schema.org/actionPlatform")]
ActionPlatform,
[EnumMember(Value = "https://schema.org/actionProcess")]
ActionProcess,
[EnumMember(Value = "https://schema.org/actionStatus")]
ActionStatus,
[EnumMember(Value = "https://schema.org/actionableFeedbackPolicy")]
Expand Down Expand Up @@ -265,6 +267,8 @@ public enum PropertyEnumeration
AfterMedia,
[EnumMember(Value = "https://schema.org/agent")]
Agent,
[EnumMember(Value = "https://schema.org/agentInteractionStatistic")]
AgentInteractionStatistic,
[EnumMember(Value = "https://schema.org/aggregateRating")]
AggregateRating,
[EnumMember(Value = "https://schema.org/aircraft")]
Expand Down Expand Up @@ -377,6 +381,8 @@ public enum PropertyEnumeration
Artist,
[EnumMember(Value = "https://schema.org/artworkSurface")]
ArtworkSurface,
[EnumMember(Value = "https://schema.org/asin")]
Asin,
[EnumMember(Value = "https://schema.org/aspect")]
Aspect,
[EnumMember(Value = "https://schema.org/assembly")]
Expand Down Expand Up @@ -413,6 +419,8 @@ public enum PropertyEnumeration
AudienceType,
[EnumMember(Value = "https://schema.org/audio")]
Audio,
[EnumMember(Value = "https://schema.org/auditDate")]
AuditDate,
[EnumMember(Value = "https://schema.org/authenticator")]
Authenticator,
[EnumMember(Value = "https://schema.org/author")]
Expand Down Expand Up @@ -607,6 +615,12 @@ public enum PropertyEnumeration
CauseOf,
[EnumMember(Value = "https://schema.org/ccRecipient")]
CcRecipient,
[EnumMember(Value = "https://schema.org/certificationIdentification")]
CertificationIdentification,
[EnumMember(Value = "https://schema.org/certificationRating")]
CertificationRating,
[EnumMember(Value = "https://schema.org/certificationStatus")]
CertificationStatus,
[EnumMember(Value = "https://schema.org/character")]
Character,
[EnumMember(Value = "https://schema.org/characterAttribute")]
Expand All @@ -617,6 +631,8 @@ public enum PropertyEnumeration
CheatCode,
[EnumMember(Value = "https://schema.org/checkinTime")]
CheckinTime,
[EnumMember(Value = "https://schema.org/checkoutPageURLTemplate")]
CheckoutPageURLTemplate,
[EnumMember(Value = "https://schema.org/checkoutTime")]
CheckoutTime,
[EnumMember(Value = "https://schema.org/chemicalComposition")]
Expand Down Expand Up @@ -671,6 +687,8 @@ public enum PropertyEnumeration
CollectionSize,
[EnumMember(Value = "https://schema.org/color")]
Color,
[EnumMember(Value = "https://schema.org/colorSwatch")]
ColorSwatch,
[EnumMember(Value = "https://schema.org/colorist")]
Colorist,
[EnumMember(Value = "https://schema.org/comment")]
Expand All @@ -695,8 +713,8 @@ public enum PropertyEnumeration
ConfirmationNumber,
[EnumMember(Value = "https://schema.org/connectedTo")]
ConnectedTo,
[EnumMember(Value = "https://schema.org/constrainingProperty")]
ConstrainingProperty,
[EnumMember(Value = "https://schema.org/constraintProperty")]
ConstraintProperty,
[EnumMember(Value = "https://schema.org/contactOption")]
ContactOption,
[EnumMember(Value = "https://schema.org/contactPoint")]
Expand Down Expand Up @@ -771,6 +789,8 @@ public enum PropertyEnumeration
CourseMode,
[EnumMember(Value = "https://schema.org/coursePrerequisites")]
CoursePrerequisites,
[EnumMember(Value = "https://schema.org/courseSchedule")]
CourseSchedule,
[EnumMember(Value = "https://schema.org/courseWorkload")]
CourseWorkload,
[EnumMember(Value = "https://schema.org/coverageEndTime")]
Expand Down Expand Up @@ -919,6 +939,8 @@ public enum PropertyEnumeration
DietFeatures,
[EnumMember(Value = "https://schema.org/differentialDiagnosis")]
DifferentialDiagnosis,
[EnumMember(Value = "https://schema.org/digitalSourceType")]
DigitalSourceType,
[EnumMember(Value = "https://schema.org/directApply")]
DirectApply,
[EnumMember(Value = "https://schema.org/director")]
Expand Down Expand Up @@ -1331,6 +1353,8 @@ public enum PropertyEnumeration
HasBroadcastChannel,
[EnumMember(Value = "https://schema.org/hasCategoryCode")]
HasCategoryCode,
[EnumMember(Value = "https://schema.org/hasCertification")]
HasCertification,
[EnumMember(Value = "https://schema.org/hasCourse")]
HasCourse,
[EnumMember(Value = "https://schema.org/hasCourseInstance")]
Expand All @@ -1349,12 +1373,16 @@ public enum PropertyEnumeration
HasEnergyConsumptionDetails,
[EnumMember(Value = "https://schema.org/hasEnergyEfficiencyCategory")]
HasEnergyEfficiencyCategory,
[EnumMember(Value = "https://schema.org/hasGS1DigitalLink")]
HasGS1DigitalLink,
[EnumMember(Value = "https://schema.org/hasHealthAspect")]
HasHealthAspect,
[EnumMember(Value = "https://schema.org/hasMap")]
HasMap,
[EnumMember(Value = "https://schema.org/hasMeasurement")]
HasMeasurement,
[EnumMember(Value = "https://schema.org/hasMemberProgram")]
HasMemberProgram,
[EnumMember(Value = "https://schema.org/hasMenu")]
HasMenu,
[EnumMember(Value = "https://schema.org/hasMenuItem")]
Expand All @@ -1375,6 +1403,12 @@ public enum PropertyEnumeration
HasPart,
[EnumMember(Value = "https://schema.org/hasRepresentation")]
HasRepresentation,
[EnumMember(Value = "https://schema.org/hasTierBenefit")]
HasTierBenefit,
[EnumMember(Value = "https://schema.org/hasTierRequirement")]
HasTierRequirement,
[EnumMember(Value = "https://schema.org/hasTiers")]
HasTiers,
[EnumMember(Value = "https://schema.org/hasVariant")]
HasVariant,
[EnumMember(Value = "https://schema.org/headline")]
Expand Down Expand Up @@ -1577,6 +1611,8 @@ public enum PropertyEnumeration
IsResizable,
[EnumMember(Value = "https://schema.org/isSimilarTo")]
IsSimilarTo,
[EnumMember(Value = "https://schema.org/isTierOf")]
IsTierOf,
[EnumMember(Value = "https://schema.org/isUnlabelledFallback")]
IsUnlabelledFallback,
[EnumMember(Value = "https://schema.org/isVariantOf")]
Expand Down Expand Up @@ -1791,8 +1827,12 @@ public enum PropertyEnumeration
MealService,
[EnumMember(Value = "https://schema.org/measuredProperty")]
MeasuredProperty,
[EnumMember(Value = "https://schema.org/measuredValue")]
MeasuredValue,
[EnumMember(Value = "https://schema.org/measurementDenominator")]
MeasurementDenominator,
[EnumMember(Value = "https://schema.org/measurementMethod")]
MeasurementMethod,
[EnumMember(Value = "https://schema.org/measurementQualifier")]
MeasurementQualifier,
[EnumMember(Value = "https://schema.org/measurementTechnique")]
MeasurementTechnique,
[EnumMember(Value = "https://schema.org/mechanismOfAction")]
Expand Down Expand Up @@ -1847,6 +1887,8 @@ public enum PropertyEnumeration
MinimumPaymentDue,
[EnumMember(Value = "https://schema.org/missionCoveragePrioritiesPolicy")]
MissionCoveragePrioritiesPolicy,
[EnumMember(Value = "https://schema.org/mobileUrl")]
MobileUrl,
[EnumMember(Value = "https://schema.org/model")]
Model,
[EnumMember(Value = "https://schema.org/modelDate")]
Expand Down Expand Up @@ -1971,10 +2013,12 @@ public enum PropertyEnumeration
Nutrition,
[EnumMember(Value = "https://schema.org/object")]
Object,
[EnumMember(Value = "https://schema.org/observationAbout")]
ObservationAbout,
[EnumMember(Value = "https://schema.org/observationDate")]
ObservationDate,
[EnumMember(Value = "https://schema.org/observedNode")]
ObservedNode,
[EnumMember(Value = "https://schema.org/observationPeriod")]
ObservationPeriod,
[EnumMember(Value = "https://schema.org/occupancy")]
Occupancy,
[EnumMember(Value = "https://schema.org/occupationLocation")]
Expand Down Expand Up @@ -2097,6 +2141,8 @@ public enum PropertyEnumeration
PaymentMethod,
[EnumMember(Value = "https://schema.org/paymentMethodId")]
PaymentMethodId,
[EnumMember(Value = "https://schema.org/paymentMethodType")]
PaymentMethodType,
[EnumMember(Value = "https://schema.org/paymentStatus")]
PaymentStatus,
[EnumMember(Value = "https://schema.org/paymentUrl")]
Expand Down Expand Up @@ -2179,6 +2225,8 @@ public enum PropertyEnumeration
PotentialAction,
[EnumMember(Value = "https://schema.org/potentialUse")]
PotentialUse,
[EnumMember(Value = "https://schema.org/practicesAt")]
PracticesAt,
[EnumMember(Value = "https://schema.org/preOp")]
PreOp,
[EnumMember(Value = "https://schema.org/predecessorOf")]
Expand Down Expand Up @@ -2251,6 +2299,8 @@ public enum PropertyEnumeration
ProductionDate,
[EnumMember(Value = "https://schema.org/proficiencyLevel")]
ProficiencyLevel,
[EnumMember(Value = "https://schema.org/program")]
Program,
[EnumMember(Value = "https://schema.org/programMembershipUsed")]
ProgramMembershipUsed,
[EnumMember(Value = "https://schema.org/programName")]
Expand Down Expand Up @@ -2595,6 +2645,8 @@ public enum PropertyEnumeration
ShippingDetails,
[EnumMember(Value = "https://schema.org/shippingLabel")]
ShippingLabel,
[EnumMember(Value = "https://schema.org/shippingOrigin")]
ShippingOrigin,
[EnumMember(Value = "https://schema.org/shippingRate")]
ShippingRate,
[EnumMember(Value = "https://schema.org/shippingSettingsLink")]
Expand Down Expand Up @@ -2685,6 +2737,8 @@ public enum PropertyEnumeration
StartOffset,
[EnumMember(Value = "https://schema.org/startTime")]
StartTime,
[EnumMember(Value = "https://schema.org/statType")]
StatType,
[EnumMember(Value = "https://schema.org/status")]
Status,
[EnumMember(Value = "https://schema.org/steeringPosition")]
Expand Down Expand Up @@ -2763,6 +2817,8 @@ public enum PropertyEnumeration
SupportingData,
[EnumMember(Value = "https://schema.org/surface")]
Surface,
[EnumMember(Value = "https://schema.org/syllabusSections")]
SyllabusSections,
[EnumMember(Value = "https://schema.org/target")]
Target,
[EnumMember(Value = "https://schema.org/targetCollection")]
Expand Down Expand Up @@ -2843,6 +2899,8 @@ public enum PropertyEnumeration
Tool,
[EnumMember(Value = "https://schema.org/torque")]
Torque,
[EnumMember(Value = "https://schema.org/totalHistoricalEnrollment")]
TotalHistoricalEnrollment,
[EnumMember(Value = "https://schema.org/totalJobOpenings")]
TotalJobOpenings,
[EnumMember(Value = "https://schema.org/totalPaymentDue")]
Expand Down Expand Up @@ -2893,6 +2951,8 @@ public enum PropertyEnumeration
TrialDesign,
[EnumMember(Value = "https://schema.org/tributary")]
Tributary,
[EnumMember(Value = "https://schema.org/tripOrigin")]
TripOrigin,
[EnumMember(Value = "https://schema.org/typeOfBed")]
TypeOfBed,
[EnumMember(Value = "https://schema.org/typeOfGood")]
Expand Down Expand Up @@ -2921,6 +2981,8 @@ public enum PropertyEnumeration
Url,
[EnumMember(Value = "https://schema.org/urlTemplate")]
UrlTemplate,
[EnumMember(Value = "https://schema.org/usNPI")]
UsNPI,
[EnumMember(Value = "https://schema.org/usageInfo")]
UsageInfo,
[EnumMember(Value = "https://schema.org/usedToDiagnose")]
Expand All @@ -2935,6 +2997,8 @@ public enum PropertyEnumeration
Utterances,
[EnumMember(Value = "https://schema.org/validFor")]
ValidFor,
[EnumMember(Value = "https://schema.org/validForMemberTier")]
ValidForMemberTier,
[EnumMember(Value = "https://schema.org/validFrom")]
ValidFrom,
[EnumMember(Value = "https://schema.org/validIn")]
Expand Down
2 changes: 1 addition & 1 deletion OpenActive.NET/enums/TestOpenBookingFlowEnumeration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace OpenActive.NET
{
/// <summary>
/// [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.
/// </summary>
public enum TestOpenBookingFlowEnumeration
{
Expand Down
5 changes: 3 additions & 2 deletions OpenActive.NET/models/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
/// "name": "Adult",
/// "price": 3.3,
/// "priceCurrency": "GBP",
/// "url": "https://profile.everyoneactive.com/booking?Site=0140&Activities=1402CBP20150217&Culture=en-GB"

Check warning on line 465 in OpenActive.NET/models/Event.cs

View workflow job for this annotation

GitHub Actions / test

XML comment has badly formed XML -- 'Reference to undefined entity 'Activities'.'

Check warning on line 465 in OpenActive.NET/models/Event.cs

View workflow job for this annotation

GitHub Actions / test

XML comment has badly formed XML -- 'Reference to undefined entity 'Culture'.'
/// }
/// ]
/// </code>
Expand Down Expand Up @@ -529,7 +529,7 @@
public virtual string SchedulingNote { get; set; }

/// <summary>
/// The start date and time of the event. Can be specified as a schema:Date or schema:DateTime.
/// The start date and time of the event. Can be specified as a schema:DateTime.
/// </summary>
/// <example>
/// <code>
Expand All @@ -541,7 +541,7 @@
public new virtual DateTimeValue StartDate { get; set; }

/// <summary>
/// The end date and time of the event. Can be specified as a schema:Date or schema:DateTime
/// The end date and time of the event. Can be specified as a schema:DateTime
/// It is recommended that publishers provide either an schema:endDate or a schema:duration for an event.
/// </summary>
/// <example>
Expand Down Expand Up @@ -781,6 +781,7 @@

/// <summary>
/// [NOTICE: This property is part of the Open Booking API Test Interface, and MUST NOT be used in production.]
/// The [open booking flow](https://openactive.io/open-booking-api/EditorsDraft/1.0CR3/#booking-flows) that a created [Opportunity and Offer pair](https://openactive.io/open-booking-api/EditorsDraft/1.0CR3/#definition-of-a-bookable-opportunity-and-offer-pair) should support.
/// </summary>
[DataMember(Name = "test:testOpenBookingFlow", EmitDefaultValue = false, Order = 1064)]
[JsonConverter(typeof(ValuesConverter))]
Expand Down
31 changes: 25 additions & 6 deletions OpenActive.NET/models/Place.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,34 @@ public override string ToString()
public new virtual ReferenceValue<Place> ContainedInPlace { get; set; }

/// <summary>
/// Places that exist within this place
/// A specific identifiable facility (`SportsActivityLocation`) or place (`Place`) that exist within this place
/// </summary>
/// <example>
/// <code>
/// "containsPlace": {
/// "@type": "Place",
/// "url": "https://www.everyoneactive.com/centres/Center-Parcs-Sports-Plaza",
/// "name": "Center Parcs Sports Plaza"
/// }
/// "containsPlace": [
/// {
/// "@type": "SportsActivityLocation",
/// "@id": "https://api.example.com/places/1402CBP20150217/sports-activity-locations/3",
/// "url": "https://www.better.org.uk/leisure-centre/manchester/belle-vue-sports-village/facilities",
/// "name": "Studio",
/// "description": "We have a great range of Fitness Classes at Belle Vue Leisure Centre including Group Cycle, Zumba, Pilates and much much more.",
/// "image": [
/// {
/// "@type": "ImageObject",
/// "url": "https://res-1.cloudinary.com/gll/image/upload/c_fit,f_auto,h_169,w_384/v1592158966/production/0065/7/66/PHOTO-2020-06-09-14-25-53_3.jpg"
/// }
/// ],
/// "specialOpeningHoursSpecification": [
/// {
/// "@type": "OpeningHoursSpecification",
/// "opens": "00:00",
/// "closes": "00:00",
/// "validFrom": "2022-01-01",
/// "validThrough": "2022-12-31"
/// }
/// ]
/// }
/// ]
/// </code>
/// </example>
[DataMember(Name = "containsPlace", EmitDefaultValue = false, Order = 13)]
Expand Down
Loading