Skip to content

Commit

Permalink
Update data models to use models-lib generator (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
openactive-bot authored Mar 3, 2021
1 parent bc894f0 commit d635f3a
Show file tree
Hide file tree
Showing 151 changed files with 266 additions and 257 deletions.
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/AvailableChannelType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum AvailableChannelType
{

[EnumMember(Value = "https://openactive.io/OpenBookingPrepayment")]
OpenBookingPrepayment,
[EnumMember(Value = "https://openactive.io/TelephoneAdvanceBooking")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/BrokerType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum BrokerType
{

[EnumMember(Value = "https://openactive.io/AgentBroker")]
AgentBroker,
[EnumMember(Value = "https://openactive.io/NoBroker")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/EventAttendanceModeEnumeration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum EventAttendanceModeEnumeration
{

[EnumMember(Value = "https://schema.org/OfflineEventAttendanceMode")]
OfflineEventAttendanceMode,
[EnumMember(Value = "https://schema.org/MixedEventAttendanceMode")]
Expand Down
2 changes: 1 addition & 1 deletion OpenActive.NET/enums/FacilitySettingType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace OpenActive.NET
/// </summary>
public enum FacilitySettingType
{

[EnumMember(Value = "https://openactive.io/ns-beta#IndoorFacility")]
IndoorFacility,
[EnumMember(Value = "https://openactive.io/ns-beta#OutdoorFacility")]
Expand Down
2 changes: 1 addition & 1 deletion OpenActive.NET/enums/GenderRestrictionType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace OpenActive.NET
/// </summary>
public enum GenderRestrictionType
{

[EnumMember(Value = "https://openactive.io/NoRestriction")]
NoRestriction,
[EnumMember(Value = "https://openactive.io/MaleOnly")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/OpenBookingFlowRequirement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum OpenBookingFlowRequirement
{

[EnumMember(Value = "https://openactive.io/OpenBookingIntakeForm")]
OpenBookingIntakeForm,
[EnumMember(Value = "https://openactive.io/OpenBookingAttendeeDetails")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/OrderCreationStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum OrderCreationStatus
{

[EnumMember(Value = "https://openactive.io/OrderCreationPaymentAuthorized")]
OrderCreationPaymentAuthorized,
[EnumMember(Value = "https://openactive.io/OrderCreationPaymentCaptured")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/OrderItemStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum OrderItemStatus
{

[EnumMember(Value = "https://openactive.io/SellerCancelled")]
SellerCancelled,
[EnumMember(Value = "https://openactive.io/CustomerCancelled")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/OrderProposalStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum OrderProposalStatus
{

[EnumMember(Value = "https://openactive.io/AwaitingSellerConfirmation")]
AwaitingSellerConfirmation,
[EnumMember(Value = "https://openactive.io/SellerAccepted")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/PaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum PaymentMethod
{

[EnumMember(Value = "http://purl.org/goodrelations/v1#Cash")]
Cash,
[EnumMember(Value = "http://purl.org/goodrelations/v1#PaymentMethodCreditCard")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/RequiredStatusType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum RequiredStatusType
{

[EnumMember(Value = "https://openactive.io/Required")]
Required,
[EnumMember(Value = "https://openactive.io/Optional")]
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/enums/TaxMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
namespace OpenActive.NET
{
/// <summary>
///
/// </summary>
public enum TaxMode
{

[EnumMember(Value = "https://openactive.io/TaxGross")]
TaxGross,
[EnumMember(Value = "https://openactive.io/TaxNet")]
Expand Down
2 changes: 1 addition & 1 deletion OpenActive.NET/enums/TestOpportunityCriteriaEnumeration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace OpenActive.NET
/// </summary>
public enum TestOpportunityCriteriaEnumeration
{

[EnumMember(Value = "https://openactive.io/test-interface#TestOpportunityBookable")]
TestOpportunityBookable,
[EnumMember(Value = "https://openactive.io/test-interface#TestOpportunityNotBookableViaAvailableChannel")]
Expand Down
1 change: 0 additions & 1 deletion OpenActive.NET/models/AccessChannelUpdateSimulateAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "test:AccessChannelUpdateSimulateAction";


}
}
1 change: 0 additions & 1 deletion OpenActive.NET/models/AccessCodeUpdateSimulateAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "test:AccessCodeUpdateSimulateAction";


}
}
1 change: 0 additions & 1 deletion OpenActive.NET/models/AccessPassUpdateSimulateAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "test:AccessPassUpdateSimulateAction";


}
}
3 changes: 1 addition & 2 deletions OpenActive.NET/models/Action.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace OpenActive.NET
{
/// <summary>
///
/// This type is derived from https://schema.org/Action, which means that any of this type's properties within schema.org may also be used.
/// </summary>
[DataContract]
Expand Down Expand Up @@ -46,7 +45,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "Action";


/// <summary>
/// The object upon which the action is carried out, whose state is kept intact or changed.
/// </summary>
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/models/AudioObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace OpenActive.NET
{
/// <summary>
///
/// This type is derived from https://schema.org/AudioObject, which means that any of this type's properties within schema.org may also be used.
/// </summary>
[DataContract]
Expand Down Expand Up @@ -46,7 +45,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "AudioObject";


/// <summary>
/// The URL for a thumbnail image for the audio.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion OpenActive.NET/models/AuthenticatedPerson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "beta:AuthenticatedPerson";


/// <summary>
/// [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.]
/// Token indicating the Broker's authorisation to book on behalf of a Customer.
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/models/BabyChanging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace OpenActive.NET
{
/// <summary>
///
/// This type is derived from https://schema.org/LocationFeatureSpecification, which means that any of this type's properties within schema.org may also be used.
/// </summary>
[DataContract]
Expand Down Expand Up @@ -46,7 +45,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "BabyChanging";


/// <summary>
/// A string, suitable for presentation in user interfaces.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion OpenActive.NET/models/Bar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "beta:Bar";


}
}
3 changes: 1 addition & 2 deletions OpenActive.NET/models/Barcode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace OpenActive.NET
{
/// <summary>
///
/// This type is derived from https://schema.org/Barcode, which means that any of this type's properties within schema.org may also be used.
/// </summary>
[DataContract]
Expand Down Expand Up @@ -46,7 +45,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "Barcode";


/// <summary>
/// The barcode number
/// </summary>
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/models/BookingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace OpenActive.NET
{
/// <summary>
///
/// This type is derived from https://schema.org/Service, which means that any of this type's properties within schema.org may also be used.
/// </summary>
[DataContract]
Expand Down Expand Up @@ -46,7 +45,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "BookingService";


/// <summary>
/// The name of the Booking System.
/// </summary>
Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/models/BooleanFormFieldSpecification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace OpenActive.NET
{
/// <summary>
///
/// This type is derived from https://schema.org/PropertyValueSpecification, which means that any of this type's properties within schema.org may also be used.
/// </summary>
[DataContract]
Expand Down Expand Up @@ -46,7 +45,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "BooleanFormFieldSpecification";


[Obsolete("This property is disinherited in this type, and must not be used.", true)]
public override string ValueRequired { get; set; }

Expand Down
3 changes: 1 addition & 2 deletions OpenActive.NET/models/Brand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace OpenActive.NET
{
/// <summary>
///
/// This type is derived from https://schema.org/Brand, which means that any of this type's properties within schema.org may also be used.
/// </summary>
[DataContract]
Expand Down Expand Up @@ -46,7 +45,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "Brand";


/// <summary>
/// A local non-URI identifier for the resource
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion OpenActive.NET/models/Cafe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "beta:Cafe";


}
}
4 changes: 3 additions & 1 deletion OpenActive.NET/models/CancellationNotPermittedError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "CancellationNotPermittedError";


/// <summary>
/// A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.
/// </summary>
Expand All @@ -62,9 +62,11 @@ public override string ToString()
public override string Name { get; set; } = "Cancellation is not permitted due to internal rules of the Booking System not otherwise exposed to the Broker.";


/// <summary>
/// Must always be present and set to <code>
/// "statusCode": 400
/// </code>
/// </summary>
[DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)]
[JsonConverter(typeof(ValuesConverter))]
public override long? StatusCode { get; set; } = 400;
Expand Down
1 change: 0 additions & 1 deletion OpenActive.NET/models/CertificationLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "beta:CertificationLevel";


}
}
2 changes: 1 addition & 1 deletion OpenActive.NET/models/CertificationScheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "beta:CertificationScheme";


/// <summary>
/// [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.]
/// Property containing an array of CertificationLevels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "test:ChangeOfLogisticsLocationSimulateAction";


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "test:ChangeOfLogisticsNameSimulateAction";


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "test:ChangeOfLogisticsTimeSimulateAction";


}
}
3 changes: 1 addition & 2 deletions OpenActive.NET/models/ChangingFacilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace OpenActive.NET
{
/// <summary>
///
/// This type is derived from https://schema.org/LocationFeatureSpecification, which means that any of this type's properties within schema.org may also be used.
/// </summary>
[DataContract]
Expand Down Expand Up @@ -46,7 +45,7 @@ public override string ToString()
[DataMember(Name = "@type", Order = 1)]
public override string Type => "ChangingFacilities";


/// <summary>
/// A string, suitable for presentation in user interfaces.
/// </summary>
Expand Down
Loading

0 comments on commit d635f3a

Please sign in to comment.