Skip to content

Commit acd8701

Browse files
Update data models
1 parent ce2a439 commit acd8701

File tree

4 files changed

+59
-15
lines changed

4 files changed

+59
-15
lines changed

OpenActive.NET/enums/PropertyEnumeration.cs

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ public enum PropertyEnumeration
377377
Artist,
378378
[EnumMember(Value = "https://schema.org/artworkSurface")]
379379
ArtworkSurface,
380+
[EnumMember(Value = "https://schema.org/asin")]
381+
Asin,
380382
[EnumMember(Value = "https://schema.org/aspect")]
381383
Aspect,
382384
[EnumMember(Value = "https://schema.org/assembly")]
@@ -617,6 +619,8 @@ public enum PropertyEnumeration
617619
CheatCode,
618620
[EnumMember(Value = "https://schema.org/checkinTime")]
619621
CheckinTime,
622+
[EnumMember(Value = "https://schema.org/checkoutPageURLTemplate")]
623+
CheckoutPageURLTemplate,
620624
[EnumMember(Value = "https://schema.org/checkoutTime")]
621625
CheckoutTime,
622626
[EnumMember(Value = "https://schema.org/chemicalComposition")]
@@ -695,8 +699,8 @@ public enum PropertyEnumeration
695699
ConfirmationNumber,
696700
[EnumMember(Value = "https://schema.org/connectedTo")]
697701
ConnectedTo,
698-
[EnumMember(Value = "https://schema.org/constrainingProperty")]
699-
ConstrainingProperty,
702+
[EnumMember(Value = "https://schema.org/constraintProperty")]
703+
ConstraintProperty,
700704
[EnumMember(Value = "https://schema.org/contactOption")]
701705
ContactOption,
702706
[EnumMember(Value = "https://schema.org/contactPoint")]
@@ -771,6 +775,8 @@ public enum PropertyEnumeration
771775
CourseMode,
772776
[EnumMember(Value = "https://schema.org/coursePrerequisites")]
773777
CoursePrerequisites,
778+
[EnumMember(Value = "https://schema.org/courseSchedule")]
779+
CourseSchedule,
774780
[EnumMember(Value = "https://schema.org/courseWorkload")]
775781
CourseWorkload,
776782
[EnumMember(Value = "https://schema.org/coverageEndTime")]
@@ -1791,8 +1797,12 @@ public enum PropertyEnumeration
17911797
MealService,
17921798
[EnumMember(Value = "https://schema.org/measuredProperty")]
17931799
MeasuredProperty,
1794-
[EnumMember(Value = "https://schema.org/measuredValue")]
1795-
MeasuredValue,
1800+
[EnumMember(Value = "https://schema.org/measurementDenominator")]
1801+
MeasurementDenominator,
1802+
[EnumMember(Value = "https://schema.org/measurementMethod")]
1803+
MeasurementMethod,
1804+
[EnumMember(Value = "https://schema.org/measurementQualifier")]
1805+
MeasurementQualifier,
17961806
[EnumMember(Value = "https://schema.org/measurementTechnique")]
17971807
MeasurementTechnique,
17981808
[EnumMember(Value = "https://schema.org/mechanismOfAction")]
@@ -1847,6 +1857,8 @@ public enum PropertyEnumeration
18471857
MinimumPaymentDue,
18481858
[EnumMember(Value = "https://schema.org/missionCoveragePrioritiesPolicy")]
18491859
MissionCoveragePrioritiesPolicy,
1860+
[EnumMember(Value = "https://schema.org/mobileUrl")]
1861+
MobileUrl,
18501862
[EnumMember(Value = "https://schema.org/model")]
18511863
Model,
18521864
[EnumMember(Value = "https://schema.org/modelDate")]
@@ -1971,10 +1983,12 @@ public enum PropertyEnumeration
19711983
Nutrition,
19721984
[EnumMember(Value = "https://schema.org/object")]
19731985
Object,
1986+
[EnumMember(Value = "https://schema.org/observationAbout")]
1987+
ObservationAbout,
19741988
[EnumMember(Value = "https://schema.org/observationDate")]
19751989
ObservationDate,
1976-
[EnumMember(Value = "https://schema.org/observedNode")]
1977-
ObservedNode,
1990+
[EnumMember(Value = "https://schema.org/observationPeriod")]
1991+
ObservationPeriod,
19781992
[EnumMember(Value = "https://schema.org/occupancy")]
19791993
Occupancy,
19801994
[EnumMember(Value = "https://schema.org/occupationLocation")]
@@ -2595,6 +2609,8 @@ public enum PropertyEnumeration
25952609
ShippingDetails,
25962610
[EnumMember(Value = "https://schema.org/shippingLabel")]
25972611
ShippingLabel,
2612+
[EnumMember(Value = "https://schema.org/shippingOrigin")]
2613+
ShippingOrigin,
25982614
[EnumMember(Value = "https://schema.org/shippingRate")]
25992615
ShippingRate,
26002616
[EnumMember(Value = "https://schema.org/shippingSettingsLink")]
@@ -2685,6 +2701,8 @@ public enum PropertyEnumeration
26852701
StartOffset,
26862702
[EnumMember(Value = "https://schema.org/startTime")]
26872703
StartTime,
2704+
[EnumMember(Value = "https://schema.org/statType")]
2705+
StatType,
26882706
[EnumMember(Value = "https://schema.org/status")]
26892707
Status,
26902708
[EnumMember(Value = "https://schema.org/steeringPosition")]
@@ -2763,6 +2781,8 @@ public enum PropertyEnumeration
27632781
SupportingData,
27642782
[EnumMember(Value = "https://schema.org/surface")]
27652783
Surface,
2784+
[EnumMember(Value = "https://schema.org/syllabusSections")]
2785+
SyllabusSections,
27662786
[EnumMember(Value = "https://schema.org/target")]
27672787
Target,
27682788
[EnumMember(Value = "https://schema.org/targetCollection")]
@@ -2843,6 +2863,8 @@ public enum PropertyEnumeration
28432863
Tool,
28442864
[EnumMember(Value = "https://schema.org/torque")]
28452865
Torque,
2866+
[EnumMember(Value = "https://schema.org/totalHistoricalEnrollment")]
2867+
TotalHistoricalEnrollment,
28462868
[EnumMember(Value = "https://schema.org/totalJobOpenings")]
28472869
TotalJobOpenings,
28482870
[EnumMember(Value = "https://schema.org/totalPaymentDue")]
@@ -2893,6 +2915,8 @@ public enum PropertyEnumeration
28932915
TrialDesign,
28942916
[EnumMember(Value = "https://schema.org/tributary")]
28952917
Tributary,
2918+
[EnumMember(Value = "https://schema.org/tripOrigin")]
2919+
TripOrigin,
28962920
[EnumMember(Value = "https://schema.org/typeOfBed")]
28972921
TypeOfBed,
28982922
[EnumMember(Value = "https://schema.org/typeOfGood")]

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)