Skip to content

Commit b1933ec

Browse files
Update data models
1 parent ce2a439 commit b1933ec

File tree

4 files changed

+81
-15
lines changed

4 files changed

+81
-15
lines changed

OpenActive.NET/enums/PropertyEnumeration.cs

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ public enum PropertyEnumeration
265265
AfterMedia,
266266
[EnumMember(Value = "https://schema.org/agent")]
267267
Agent,
268+
[EnumMember(Value = "https://schema.org/agentInteractionStatistic")]
269+
AgentInteractionStatistic,
268270
[EnumMember(Value = "https://schema.org/aggregateRating")]
269271
AggregateRating,
270272
[EnumMember(Value = "https://schema.org/aircraft")]
@@ -377,6 +379,8 @@ public enum PropertyEnumeration
377379
Artist,
378380
[EnumMember(Value = "https://schema.org/artworkSurface")]
379381
ArtworkSurface,
382+
[EnumMember(Value = "https://schema.org/asin")]
383+
Asin,
380384
[EnumMember(Value = "https://schema.org/aspect")]
381385
Aspect,
382386
[EnumMember(Value = "https://schema.org/assembly")]
@@ -413,6 +417,8 @@ public enum PropertyEnumeration
413417
AudienceType,
414418
[EnumMember(Value = "https://schema.org/audio")]
415419
Audio,
420+
[EnumMember(Value = "https://schema.org/auditDate")]
421+
AuditDate,
416422
[EnumMember(Value = "https://schema.org/authenticator")]
417423
Authenticator,
418424
[EnumMember(Value = "https://schema.org/author")]
@@ -607,6 +613,12 @@ public enum PropertyEnumeration
607613
CauseOf,
608614
[EnumMember(Value = "https://schema.org/ccRecipient")]
609615
CcRecipient,
616+
[EnumMember(Value = "https://schema.org/certificationIdentification")]
617+
CertificationIdentification,
618+
[EnumMember(Value = "https://schema.org/certificationRating")]
619+
CertificationRating,
620+
[EnumMember(Value = "https://schema.org/certificationStatus")]
621+
CertificationStatus,
610622
[EnumMember(Value = "https://schema.org/character")]
611623
Character,
612624
[EnumMember(Value = "https://schema.org/characterAttribute")]
@@ -617,6 +629,8 @@ public enum PropertyEnumeration
617629
CheatCode,
618630
[EnumMember(Value = "https://schema.org/checkinTime")]
619631
CheckinTime,
632+
[EnumMember(Value = "https://schema.org/checkoutPageURLTemplate")]
633+
CheckoutPageURLTemplate,
620634
[EnumMember(Value = "https://schema.org/checkoutTime")]
621635
CheckoutTime,
622636
[EnumMember(Value = "https://schema.org/chemicalComposition")]
@@ -671,6 +685,8 @@ public enum PropertyEnumeration
671685
CollectionSize,
672686
[EnumMember(Value = "https://schema.org/color")]
673687
Color,
688+
[EnumMember(Value = "https://schema.org/colorSwatch")]
689+
ColorSwatch,
674690
[EnumMember(Value = "https://schema.org/colorist")]
675691
Colorist,
676692
[EnumMember(Value = "https://schema.org/comment")]
@@ -695,8 +711,8 @@ public enum PropertyEnumeration
695711
ConfirmationNumber,
696712
[EnumMember(Value = "https://schema.org/connectedTo")]
697713
ConnectedTo,
698-
[EnumMember(Value = "https://schema.org/constrainingProperty")]
699-
ConstrainingProperty,
714+
[EnumMember(Value = "https://schema.org/constraintProperty")]
715+
ConstraintProperty,
700716
[EnumMember(Value = "https://schema.org/contactOption")]
701717
ContactOption,
702718
[EnumMember(Value = "https://schema.org/contactPoint")]
@@ -771,6 +787,8 @@ public enum PropertyEnumeration
771787
CourseMode,
772788
[EnumMember(Value = "https://schema.org/coursePrerequisites")]
773789
CoursePrerequisites,
790+
[EnumMember(Value = "https://schema.org/courseSchedule")]
791+
CourseSchedule,
774792
[EnumMember(Value = "https://schema.org/courseWorkload")]
775793
CourseWorkload,
776794
[EnumMember(Value = "https://schema.org/coverageEndTime")]
@@ -919,6 +937,8 @@ public enum PropertyEnumeration
919937
DietFeatures,
920938
[EnumMember(Value = "https://schema.org/differentialDiagnosis")]
921939
DifferentialDiagnosis,
940+
[EnumMember(Value = "https://schema.org/digitalSourceType")]
941+
DigitalSourceType,
922942
[EnumMember(Value = "https://schema.org/directApply")]
923943
DirectApply,
924944
[EnumMember(Value = "https://schema.org/director")]
@@ -1331,6 +1351,8 @@ public enum PropertyEnumeration
13311351
HasBroadcastChannel,
13321352
[EnumMember(Value = "https://schema.org/hasCategoryCode")]
13331353
HasCategoryCode,
1354+
[EnumMember(Value = "https://schema.org/hasCertification")]
1355+
HasCertification,
13341356
[EnumMember(Value = "https://schema.org/hasCourse")]
13351357
HasCourse,
13361358
[EnumMember(Value = "https://schema.org/hasCourseInstance")]
@@ -1349,6 +1371,8 @@ public enum PropertyEnumeration
13491371
HasEnergyConsumptionDetails,
13501372
[EnumMember(Value = "https://schema.org/hasEnergyEfficiencyCategory")]
13511373
HasEnergyEfficiencyCategory,
1374+
[EnumMember(Value = "https://schema.org/hasGS1DigitalLink")]
1375+
HasGS1DigitalLink,
13521376
[EnumMember(Value = "https://schema.org/hasHealthAspect")]
13531377
HasHealthAspect,
13541378
[EnumMember(Value = "https://schema.org/hasMap")]
@@ -1791,8 +1815,12 @@ public enum PropertyEnumeration
17911815
MealService,
17921816
[EnumMember(Value = "https://schema.org/measuredProperty")]
17931817
MeasuredProperty,
1794-
[EnumMember(Value = "https://schema.org/measuredValue")]
1795-
MeasuredValue,
1818+
[EnumMember(Value = "https://schema.org/measurementDenominator")]
1819+
MeasurementDenominator,
1820+
[EnumMember(Value = "https://schema.org/measurementMethod")]
1821+
MeasurementMethod,
1822+
[EnumMember(Value = "https://schema.org/measurementQualifier")]
1823+
MeasurementQualifier,
17961824
[EnumMember(Value = "https://schema.org/measurementTechnique")]
17971825
MeasurementTechnique,
17981826
[EnumMember(Value = "https://schema.org/mechanismOfAction")]
@@ -1847,6 +1875,8 @@ public enum PropertyEnumeration
18471875
MinimumPaymentDue,
18481876
[EnumMember(Value = "https://schema.org/missionCoveragePrioritiesPolicy")]
18491877
MissionCoveragePrioritiesPolicy,
1878+
[EnumMember(Value = "https://schema.org/mobileUrl")]
1879+
MobileUrl,
18501880
[EnumMember(Value = "https://schema.org/model")]
18511881
Model,
18521882
[EnumMember(Value = "https://schema.org/modelDate")]
@@ -1971,10 +2001,12 @@ public enum PropertyEnumeration
19712001
Nutrition,
19722002
[EnumMember(Value = "https://schema.org/object")]
19732003
Object,
2004+
[EnumMember(Value = "https://schema.org/observationAbout")]
2005+
ObservationAbout,
19742006
[EnumMember(Value = "https://schema.org/observationDate")]
19752007
ObservationDate,
1976-
[EnumMember(Value = "https://schema.org/observedNode")]
1977-
ObservedNode,
2008+
[EnumMember(Value = "https://schema.org/observationPeriod")]
2009+
ObservationPeriod,
19782010
[EnumMember(Value = "https://schema.org/occupancy")]
19792011
Occupancy,
19802012
[EnumMember(Value = "https://schema.org/occupationLocation")]
@@ -2179,6 +2211,8 @@ public enum PropertyEnumeration
21792211
PotentialAction,
21802212
[EnumMember(Value = "https://schema.org/potentialUse")]
21812213
PotentialUse,
2214+
[EnumMember(Value = "https://schema.org/practicesAt")]
2215+
PracticesAt,
21822216
[EnumMember(Value = "https://schema.org/preOp")]
21832217
PreOp,
21842218
[EnumMember(Value = "https://schema.org/predecessorOf")]
@@ -2595,6 +2629,8 @@ public enum PropertyEnumeration
25952629
ShippingDetails,
25962630
[EnumMember(Value = "https://schema.org/shippingLabel")]
25972631
ShippingLabel,
2632+
[EnumMember(Value = "https://schema.org/shippingOrigin")]
2633+
ShippingOrigin,
25982634
[EnumMember(Value = "https://schema.org/shippingRate")]
25992635
ShippingRate,
26002636
[EnumMember(Value = "https://schema.org/shippingSettingsLink")]
@@ -2685,6 +2721,8 @@ public enum PropertyEnumeration
26852721
StartOffset,
26862722
[EnumMember(Value = "https://schema.org/startTime")]
26872723
StartTime,
2724+
[EnumMember(Value = "https://schema.org/statType")]
2725+
StatType,
26882726
[EnumMember(Value = "https://schema.org/status")]
26892727
Status,
26902728
[EnumMember(Value = "https://schema.org/steeringPosition")]
@@ -2763,6 +2801,8 @@ public enum PropertyEnumeration
27632801
SupportingData,
27642802
[EnumMember(Value = "https://schema.org/surface")]
27652803
Surface,
2804+
[EnumMember(Value = "https://schema.org/syllabusSections")]
2805+
SyllabusSections,
27662806
[EnumMember(Value = "https://schema.org/target")]
27672807
Target,
27682808
[EnumMember(Value = "https://schema.org/targetCollection")]
@@ -2843,6 +2883,8 @@ public enum PropertyEnumeration
28432883
Tool,
28442884
[EnumMember(Value = "https://schema.org/torque")]
28452885
Torque,
2886+
[EnumMember(Value = "https://schema.org/totalHistoricalEnrollment")]
2887+
TotalHistoricalEnrollment,
28462888
[EnumMember(Value = "https://schema.org/totalJobOpenings")]
28472889
TotalJobOpenings,
28482890
[EnumMember(Value = "https://schema.org/totalPaymentDue")]
@@ -2893,6 +2935,8 @@ public enum PropertyEnumeration
28932935
TrialDesign,
28942936
[EnumMember(Value = "https://schema.org/tributary")]
28952937
Tributary,
2938+
[EnumMember(Value = "https://schema.org/tripOrigin")]
2939+
TripOrigin,
28962940
[EnumMember(Value = "https://schema.org/typeOfBed")]
28972941
TypeOfBed,
28982942
[EnumMember(Value = "https://schema.org/typeOfGood")]
@@ -2921,6 +2965,8 @@ public enum PropertyEnumeration
29212965
Url,
29222966
[EnumMember(Value = "https://schema.org/urlTemplate")]
29232967
UrlTemplate,
2968+
[EnumMember(Value = "https://schema.org/usNPI")]
2969+
UsNPI,
29242970
[EnumMember(Value = "https://schema.org/usageInfo")]
29252971
UsageInfo,
29262972
[EnumMember(Value = "https://schema.org/usedToDiagnose")]

OpenActive.NET/enums/TestOpenBookingFlowEnumeration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace OpenActive.NET
44
{
55
/// <summary>
66
/// [NOTICE: This enumeration is part of the Open Booking API Test Interface, and MUST NOT be used in production.]
7-
/// An enumeration of open booking flows that an opportunity can be booked with.
7+
/// 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.
88
/// </summary>
99
public enum TestOpenBookingFlowEnumeration
1010
{

OpenActive.NET/models/Event.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ public override string ToString()
529529
public virtual string SchedulingNote { get; set; }
530530

531531
/// <summary>
532-
/// The start date and time of the event. Can be specified as a schema:Date or schema:DateTime.
532+
/// The start date and time of the event. Can be specified as a schema:DateTime.
533533
/// </summary>
534534
/// <example>
535535
/// <code>
@@ -541,7 +541,7 @@ public override string ToString()
541541
public new virtual DateTimeValue StartDate { get; set; }
542542

543543
/// <summary>
544-
/// The end date and time of the event. Can be specified as a schema:Date or schema:DateTime
544+
/// The end date and time of the event. Can be specified as a schema:DateTime
545545
/// It is recommended that publishers provide either an schema:endDate or a schema:duration for an event.
546546
/// </summary>
547547
/// <example>
@@ -781,6 +781,7 @@ public override string ToString()
781781

782782
/// <summary>
783783
/// [NOTICE: This property is part of the Open Booking API Test Interface, and MUST NOT be used in production.]
784+
/// 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.
784785
/// </summary>
785786
[DataMember(Name = "test:testOpenBookingFlow", EmitDefaultValue = false, Order = 1064)]
786787
[JsonConverter(typeof(ValuesConverter))]

OpenActive.NET/models/Place.cs

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,34 @@ public override string ToString()
160160
public new virtual ReferenceValue<Place> ContainedInPlace { get; set; }
161161

162162
/// <summary>
163-
/// Places that exist within this place
163+
/// A specific identifiable facility (`SportsActivityLocation`) or place (`Place`) that exist within this place
164164
/// </summary>
165165
/// <example>
166166
/// <code>
167-
/// "containsPlace": {
168-
/// "@type": "Place",
169-
/// "url": "https://www.everyoneactive.com/centres/Center-Parcs-Sports-Plaza",
170-
/// "name": "Center Parcs Sports Plaza"
171-
/// }
167+
/// "containsPlace": [
168+
/// {
169+
/// "@type": "SportsActivityLocation",
170+
/// "@id": "https://api.example.com/places/1402CBP20150217/sports-activity-locations/3",
171+
/// "url": "https://www.better.org.uk/leisure-centre/manchester/belle-vue-sports-village/facilities",
172+
/// "name": "Studio",
173+
/// "description": "We have a great range of Fitness Classes at Belle Vue Leisure Centre including Group Cycle, Zumba, Pilates and much much more.",
174+
/// "image": [
175+
/// {
176+
/// "@type": "ImageObject",
177+
/// "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"
178+
/// }
179+
/// ],
180+
/// "specialOpeningHoursSpecification": [
181+
/// {
182+
/// "@type": "OpeningHoursSpecification",
183+
/// "opens": "00:00",
184+
/// "closes": "00:00",
185+
/// "validFrom": "2022-01-01",
186+
/// "validThrough": "2022-12-31"
187+
/// }
188+
/// ]
189+
/// }
190+
/// ]
172191
/// </code>
173192
/// </example>
174193
[DataMember(Name = "containsPlace", EmitDefaultValue = false, Order = 13)]

0 commit comments

Comments
 (0)