Skip to content

Commit 7cb11cc

Browse files
Update data models
1 parent 5e7c8aa commit 7cb11cc

16 files changed

Lines changed: 591 additions & 59 deletions

‎OpenActive.NET/enums/PropertyEnumeration.cs‎

Lines changed: 499 additions & 7 deletions
Large diffs are not rendered by default.

‎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/BookingService.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public override string ToString()
5656
/// </summary>
5757
[DataMember(Name = "hasCredential", EmitDefaultValue = false, Order = 8)]
5858
[JsonConverter(typeof(ValuesConverter))]
59-
public virtual Uri HasCredential { get; set; }
59+
public new virtual Uri HasCredential { get; set; }
6060

6161
/// <summary>
6262
/// The version of the application, useful for on-premise installations. Note this property is in EARLY RELEASE AND IS SUBJECT TO CHANGE, as the [Dataset API Discovery specification](https://openactive.io/dataset-api-discovery/EditorsDraft/) evolves.
@@ -70,7 +70,7 @@ public override string ToString()
7070
/// </summary>
7171
[DataMember(Name = "termsOfService", EmitDefaultValue = false, Order = 10)]
7272
[JsonConverter(typeof(ValuesConverter))]
73-
public virtual List<Terms> TermsOfService { get; set; }
73+
public new virtual List<Terms> TermsOfService { get; set; }
7474

7575
/// <summary>
7676
/// The URL of the website of the Booking System.

‎OpenActive.NET/models/CourseInstance.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public override string ToString()
6565
/// </example>
6666
[DataMember(Name = "eventSchedule", EmitDefaultValue = false, Order = 7)]
6767
[JsonConverter(typeof(ValuesConverter))]
68-
public virtual List<Schedule> EventSchedule { get; set; }
68+
public new virtual List<Schedule> EventSchedule { get; set; }
6969

7070
/// <summary>
7171
/// The description of the Course for which this is a distinct instance.

‎OpenActive.NET/models/Dataset.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public override string ToString()
166166
/// </example>
167167
[DataMember(Name = "documentation", EmitDefaultValue = false, Order = 16)]
168168
[JsonConverter(typeof(ValuesConverter))]
169-
public virtual Uri Documentation { get; set; }
169+
public new virtual Uri Documentation { get; set; }
170170

171171
/// <summary>
172172
/// An array of languages included in the Dataset's content. Please use one of the language codes from the IETF BCP 47 standard.

‎OpenActive.NET/models/Event.cs‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public override string ToString()
261261
/// </example>
262262
[DataMember(Name = "eventAttendanceMode", EmitDefaultValue = false, Order = 21)]
263263
[JsonConverter(typeof(ValuesConverter))]
264-
public virtual EventAttendanceModeEnumeration? EventAttendanceMode { get; set; }
264+
public new virtual EventAttendanceModeEnumeration? EventAttendanceMode { get; set; }
265265

266266
/// <summary>
267267
/// The status of an event. Can be used to indicate rescheduled or cancelled events
@@ -436,7 +436,7 @@ public override string ToString()
436436
/// </example>
437437
[DataMember(Name = "maximumVirtualAttendeeCapacity", EmitDefaultValue = false, Order = 32)]
438438
[JsonConverter(typeof(ValuesConverter))]
439-
public virtual long? MaximumVirtualAttendeeCapacity { get; set; }
439+
public new virtual long? MaximumVirtualAttendeeCapacity { get; set; }
440440

441441
/// <summary>
442442
/// Instructions for the attendees of an Event about where they should meet the organizer or leader at the start of the event. Some larger locations may have several possible meeting points, so this property provides additional more specific directions.
@@ -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/EventSeries.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace OpenActive.NET
77
{
88
/// <summary>
9-
/// This type is derived from https://pending.schema.org/EventSeries.
9+
/// This type is derived from https://schema.org/EventSeries, which means that any of this type's properties within schema.org may also be used.
1010
/// </summary>
1111
[DataContract]
1212
public partial class EventSeries : Event

‎OpenActive.NET/models/FacilityUse.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public override string ToString()
356356
/// </example>
357357
[DataMember(Name = "provider", EmitDefaultValue = false, Order = 25)]
358358
[JsonConverter(typeof(ValuesConverter))]
359-
public virtual Organization Provider { get; set; }
359+
public new virtual Organization Provider { get; set; }
360360

361361
/// <summary>
362362
/// A URL to a web page (or section of a page) that describes the facility use.

‎OpenActive.NET/models/Organization.cs‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public override string ToString()
185185
/// </summary>
186186
[DataMember(Name = "termsOfService", EmitDefaultValue = false, Order = 19)]
187187
[JsonConverter(typeof(ValuesConverter))]
188-
public virtual List<Terms> TermsOfService { get; set; }
188+
public new virtual List<Terms> TermsOfService { get; set; }
189189

190190
/// <summary>
191191
/// A definitive canonical URL for the Organization.
@@ -235,5 +235,15 @@ public override string ToString()
235235
[DataMember(Name = "beta:formalCriteriaMet", EmitDefaultValue = false, Order = 1024)]
236236
[JsonConverter(typeof(ValuesConverter))]
237237
public virtual List<Uri> FormalCriteriaMet { get; set; }
238+
239+
/// <summary>
240+
/// [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.]
241+
/// The date on which the details of this organization were last verified as correct by the publisher. Unlike `schema:dateModified`, this changes when the details are confirmed, even if nothing in them has changed.
242+
///
243+
/// If you are using this property, please join the discussion at proposal [#313](https://github.com/openactive/modelling-opportunity-data/issues/313).
244+
/// </summary>
245+
[DataMember(Name = "beta:dateVerified", EmitDefaultValue = false, Order = 1025)]
246+
[JsonConverter(typeof(OpenActiveDateTimeValuesConverter))]
247+
public virtual DateValue DateVerified { get; set; }
238248
}
239249
}

‎OpenActive.NET/models/PartialSchedule.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace OpenActive.NET
77
{
88
/// <summary>
9-
/// This type is derived from https://pending.schema.org/Schedule.
9+
/// This type is derived from https://schema.org/Schedule, which means that any of this type's properties within schema.org may also be used.
1010
/// </summary>
1111
[DataContract]
1212
public partial class PartialSchedule : Schedule

0 commit comments

Comments
 (0)