Skip to content

Commit

Permalink
Update data models (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: openactive-bot <[email protected]>
  • Loading branch information
openactive-bot and openactive-bot authored Apr 26, 2021
1 parent d418f2b commit 92dbab5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
16 changes: 16 additions & 0 deletions OpenActive.NET/enums/TestOpenBookingFlowEnumeration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Runtime.Serialization;

namespace OpenActive.NET
{
/// <summary>
/// [NOTICE: This enumeration is part of the Open Booking API Test Interface, and MUST NOT be used in production.]
/// An enumeration of open booking flows that an opportunity can be booked with.
/// </summary>
public enum TestOpenBookingFlowEnumeration
{
[EnumMember(Value = "https://openactive.io/test-interface#OpenBookingSimpleFlow")]
OpenBookingSimpleFlow,
[EnumMember(Value = "https://openactive.io/test-interface#OpenBookingApprovalFlow")]
OpenBookingApprovalFlow
}
}
9 changes: 8 additions & 1 deletion OpenActive.NET/models/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,18 @@ public override string ToString()
[JsonConverter(typeof(ValuesConverter))]
public virtual List<BookingChannelType> BookingChannel { get; set; }

/// <summary>
/// [NOTICE: This property is part of the Open Booking API Test Interface, and MUST NOT be used in production.]
/// </summary>
[DataMember(Name = "test:testOpenBookingFlow", EmitDefaultValue = false, Order = 1061)]
[JsonConverter(typeof(ValuesConverter))]
public virtual TestOpenBookingFlowEnumeration? TestOpenBookingFlow { get; set; }

/// <summary>
/// [NOTICE: This property is part of the Open Booking API Test Interface, and MUST NOT be used in production.]
/// The opportunity criteria which the Event conforms to.
/// </summary>
[DataMember(Name = "test:testOpportunityCriteria", EmitDefaultValue = false, Order = 1061)]
[DataMember(Name = "test:testOpportunityCriteria", EmitDefaultValue = false, Order = 1062)]
[JsonConverter(typeof(ValuesConverter))]
public virtual TestOpportunityCriteriaEnumeration? TestOpportunityCriteria { get; set; }
}
Expand Down

0 comments on commit 92dbab5

Please sign in to comment.