Skip to content

Commit 3b00f6f

Browse files
Update data models
1 parent 3c8feb4 commit 3b00f6f

3 files changed

Lines changed: 35 additions & 8 deletions

File tree

OpenActive.NET/enums/PropertyEnumeration.cs

Lines changed: 8 additions & 0 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")]
@@ -1847,6 +1851,8 @@ public enum PropertyEnumeration
18471851
MinimumPaymentDue,
18481852
[EnumMember(Value = "https://schema.org/missionCoveragePrioritiesPolicy")]
18491853
MissionCoveragePrioritiesPolicy,
1854+
[EnumMember(Value = "https://schema.org/mobileUrl")]
1855+
MobileUrl,
18501856
[EnumMember(Value = "https://schema.org/model")]
18511857
Model,
18521858
[EnumMember(Value = "https://schema.org/modelDate")]
@@ -2595,6 +2601,8 @@ public enum PropertyEnumeration
25952601
ShippingDetails,
25962602
[EnumMember(Value = "https://schema.org/shippingLabel")]
25972603
ShippingLabel,
2604+
[EnumMember(Value = "https://schema.org/shippingOrigin")]
2605+
ShippingOrigin,
25982606
[EnumMember(Value = "https://schema.org/shippingRate")]
25992607
ShippingRate,
26002608
[EnumMember(Value = "https://schema.org/shippingSettingsLink")]

OpenActive.NET/models/Event.cs

Lines changed: 2 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>

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)