Skip to content

Commit a3a18d3

Browse files
Update data models
1 parent dd55185 commit a3a18d3

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

OpenActive.NET/enums/PropertyEnumeration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public enum PropertyEnumeration
5555
EligibleEntitlementType,
5656
[EnumMember(Value = "https://openactive.io/emergencyContact")]
5757
EmergencyContact,
58+
[EnumMember(Value = "https://openactive.io/endpointUrl")]
59+
EndpointUrl,
5860
[EnumMember(Value = "https://openactive.io/entitlement")]
5961
Entitlement,
6062
[EnumMember(Value = "https://openactive.io/entitlementType")]

OpenActive.NET/models/BookingService.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,31 @@ public override string ToString()
5151
[JsonConverter(typeof(ValuesConverter))]
5252
public new virtual string Name { get; set; }
5353

54+
/// <summary>
55+
/// A human and machine-readable certification file that asserts the service's conformance to established standards. The value of this property should be a URL that resolves to a valid and up-to-date OpenActive Test Suite Conformance Certificate for this implementation. 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.
56+
/// </summary>
57+
[DataMember(Name = "hasCredential", EmitDefaultValue = false, Order = 8)]
58+
[JsonConverter(typeof(ValuesConverter))]
59+
public virtual Uri HasCredential { get; set; }
60+
5461
/// <summary>
5562
/// 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.
5663
/// </summary>
57-
[DataMember(Name = "softwareVersion", EmitDefaultValue = false, Order = 8)]
64+
[DataMember(Name = "softwareVersion", EmitDefaultValue = false, Order = 9)]
5865
[JsonConverter(typeof(ValuesConverter))]
5966
public new virtual string SoftwareVersion { get; set; }
6067

6168
/// <summary>
6269
/// The terms of service of the Booking System.
6370
/// </summary>
64-
[DataMember(Name = "termsOfService", EmitDefaultValue = false, Order = 9)]
71+
[DataMember(Name = "termsOfService", EmitDefaultValue = false, Order = 10)]
6572
[JsonConverter(typeof(ValuesConverter))]
6673
public virtual List<Terms> TermsOfService { get; set; }
6774

6875
/// <summary>
6976
/// The URL of the website of the Booking System.
7077
/// </summary>
71-
[DataMember(Name = "url", EmitDefaultValue = false, Order = 10)]
78+
[DataMember(Name = "url", EmitDefaultValue = false, Order = 11)]
7279
[JsonConverter(typeof(ValuesConverter))]
7380
public new virtual Uri Url { get; set; }
7481
}

OpenActive.NET/models/ScheduledSession.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public override string ToString()
4444
[DataMember(Name = "@type", Order = 1)]
4545
public override string Type => "ScheduledSession";
4646

47+
[Obsolete("This property is disinherited in this type, and must not be used.", true)]
48+
public override ILegalEntity Organizer { get; set; }
49+
4750
/// <summary>
4851
/// The start date and time of the event.
4952
/// </summary>
@@ -52,7 +55,7 @@ public override string ToString()
5255
/// "startDate": "2018-01-27T12:00:00Z"
5356
/// </code>
5457
/// </example>
55-
[DataMember(Name = "startDate", EmitDefaultValue = false, Order = 7)]
58+
[DataMember(Name = "startDate", EmitDefaultValue = false, Order = 8)]
5659
[JsonConverter(typeof(OpenActiveDateTimeValuesConverter))]
5760
public override DateTimeValue StartDate { get { return base.StartDate; } set { if (value.IsDateOnly) throw new ArgumentOutOfRangeException("StartDate", "This property must be set to a DateTimeOffset, including a time"); base.StartDate = value; } }
5861

@@ -65,7 +68,7 @@ public override string ToString()
6568
/// "endDate": "2018-01-27T12:00:00Z"
6669
/// </code>
6770
/// </example>
68-
[DataMember(Name = "endDate", EmitDefaultValue = false, Order = 8)]
71+
[DataMember(Name = "endDate", EmitDefaultValue = false, Order = 9)]
6972
[JsonConverter(typeof(OpenActiveDateTimeValuesConverter))]
7073
public override DateTimeValue EndDate { get { return base.EndDate; } set { if (value.IsDateOnly) throw new ArgumentOutOfRangeException("EndDate", "This property must be set to a DateTimeOffset, including a time"); base.EndDate = value; } }
7174

@@ -75,7 +78,7 @@ public override string ToString()
7578
/// <summary>
7679
/// Relates a child event to a parent event. Properties describing the parent event can be assumed to apply to the child, unless otherwise specified. A parent event might specify a recurring schedule, of which the child event is one specific instance
7780
/// </summary>
78-
[DataMember(Name = "superEvent", EmitDefaultValue = false, Order = 10)]
81+
[DataMember(Name = "superEvent", EmitDefaultValue = false, Order = 11)]
7982
[JsonConverter(typeof(ValuesConverter))]
8083
public new virtual ReferenceValue<Event> SuperEvent { get; set; }
8184
}

OpenActive.NET/models/WebAPI.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ public override string ToString()
126126
/// </summary>
127127
/// <example>
128128
/// <code>
129-
/// "endpointURL": "https://example.bookingsystem.com/api/openbooking"
129+
/// "endpointUrl": "https://example.bookingsystem.com/api/openbooking"
130130
/// </code>
131131
/// </example>
132-
[DataMember(Name = "endpointURL", EmitDefaultValue = false, Order = 13)]
132+
[DataMember(Name = "endpointUrl", EmitDefaultValue = false, Order = 13)]
133133
[JsonConverter(typeof(ValuesConverter))]
134-
public virtual Uri EndpointURL { get; set; }
134+
public virtual Uri EndpointUrl { get; set; }
135135

136136
/// <summary>
137137
/// The web page the broker uses to obtain access to the API, e.g. via a web form.

0 commit comments

Comments
 (0)