diff --git a/OpenActive.NET/enums/AvailableChannelType.cs b/OpenActive.NET/enums/AvailableChannelType.cs index 3cc0c27..045cef4 100644 --- a/OpenActive.NET/enums/AvailableChannelType.cs +++ b/OpenActive.NET/enums/AvailableChannelType.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum AvailableChannelType { - + [EnumMember(Value = "https://openactive.io/OpenBookingPrepayment")] OpenBookingPrepayment, [EnumMember(Value = "https://openactive.io/TelephoneAdvanceBooking")] diff --git a/OpenActive.NET/enums/BrokerType.cs b/OpenActive.NET/enums/BrokerType.cs index 53f1a6d..e4a6894 100644 --- a/OpenActive.NET/enums/BrokerType.cs +++ b/OpenActive.NET/enums/BrokerType.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum BrokerType { - + [EnumMember(Value = "https://openactive.io/AgentBroker")] AgentBroker, [EnumMember(Value = "https://openactive.io/NoBroker")] diff --git a/OpenActive.NET/enums/EventAttendanceModeEnumeration.cs b/OpenActive.NET/enums/EventAttendanceModeEnumeration.cs index 294b9da..214059a 100644 --- a/OpenActive.NET/enums/EventAttendanceModeEnumeration.cs +++ b/OpenActive.NET/enums/EventAttendanceModeEnumeration.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum EventAttendanceModeEnumeration { - + [EnumMember(Value = "https://schema.org/OfflineEventAttendanceMode")] OfflineEventAttendanceMode, [EnumMember(Value = "https://schema.org/MixedEventAttendanceMode")] diff --git a/OpenActive.NET/enums/FacilitySettingType.cs b/OpenActive.NET/enums/FacilitySettingType.cs index c427738..697956e 100644 --- a/OpenActive.NET/enums/FacilitySettingType.cs +++ b/OpenActive.NET/enums/FacilitySettingType.cs @@ -9,7 +9,7 @@ namespace OpenActive.NET /// public enum FacilitySettingType { - + [EnumMember(Value = "https://openactive.io/ns-beta#IndoorFacility")] IndoorFacility, [EnumMember(Value = "https://openactive.io/ns-beta#OutdoorFacility")] diff --git a/OpenActive.NET/enums/GenderRestrictionType.cs b/OpenActive.NET/enums/GenderRestrictionType.cs index b292957..b8a414f 100644 --- a/OpenActive.NET/enums/GenderRestrictionType.cs +++ b/OpenActive.NET/enums/GenderRestrictionType.cs @@ -8,7 +8,7 @@ namespace OpenActive.NET /// public enum GenderRestrictionType { - + [EnumMember(Value = "https://openactive.io/NoRestriction")] NoRestriction, [EnumMember(Value = "https://openactive.io/MaleOnly")] diff --git a/OpenActive.NET/enums/OpenBookingFlowRequirement.cs b/OpenActive.NET/enums/OpenBookingFlowRequirement.cs index eaba8f2..11f6bd0 100644 --- a/OpenActive.NET/enums/OpenBookingFlowRequirement.cs +++ b/OpenActive.NET/enums/OpenBookingFlowRequirement.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum OpenBookingFlowRequirement { - + [EnumMember(Value = "https://openactive.io/OpenBookingIntakeForm")] OpenBookingIntakeForm, [EnumMember(Value = "https://openactive.io/OpenBookingAttendeeDetails")] diff --git a/OpenActive.NET/enums/OrderCreationStatus.cs b/OpenActive.NET/enums/OrderCreationStatus.cs index c0ec8ca..b94dd71 100644 --- a/OpenActive.NET/enums/OrderCreationStatus.cs +++ b/OpenActive.NET/enums/OrderCreationStatus.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum OrderCreationStatus { - + [EnumMember(Value = "https://openactive.io/OrderCreationPaymentAuthorized")] OrderCreationPaymentAuthorized, [EnumMember(Value = "https://openactive.io/OrderCreationPaymentCaptured")] diff --git a/OpenActive.NET/enums/OrderItemStatus.cs b/OpenActive.NET/enums/OrderItemStatus.cs index c241855..e38e961 100644 --- a/OpenActive.NET/enums/OrderItemStatus.cs +++ b/OpenActive.NET/enums/OrderItemStatus.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum OrderItemStatus { - + [EnumMember(Value = "https://openactive.io/SellerCancelled")] SellerCancelled, [EnumMember(Value = "https://openactive.io/CustomerCancelled")] diff --git a/OpenActive.NET/enums/OrderProposalStatus.cs b/OpenActive.NET/enums/OrderProposalStatus.cs index c2ea0eb..3b8f56f 100644 --- a/OpenActive.NET/enums/OrderProposalStatus.cs +++ b/OpenActive.NET/enums/OrderProposalStatus.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum OrderProposalStatus { - + [EnumMember(Value = "https://openactive.io/AwaitingSellerConfirmation")] AwaitingSellerConfirmation, [EnumMember(Value = "https://openactive.io/SellerAccepted")] diff --git a/OpenActive.NET/enums/PaymentMethod.cs b/OpenActive.NET/enums/PaymentMethod.cs index 0a0f735..3fc117b 100644 --- a/OpenActive.NET/enums/PaymentMethod.cs +++ b/OpenActive.NET/enums/PaymentMethod.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum PaymentMethod { - + [EnumMember(Value = "http://purl.org/goodrelations/v1#Cash")] Cash, [EnumMember(Value = "http://purl.org/goodrelations/v1#PaymentMethodCreditCard")] diff --git a/OpenActive.NET/enums/RequiredStatusType.cs b/OpenActive.NET/enums/RequiredStatusType.cs index 1380095..e28db6d 100644 --- a/OpenActive.NET/enums/RequiredStatusType.cs +++ b/OpenActive.NET/enums/RequiredStatusType.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum RequiredStatusType { - + [EnumMember(Value = "https://openactive.io/Required")] Required, [EnumMember(Value = "https://openactive.io/Optional")] diff --git a/OpenActive.NET/enums/TaxMode.cs b/OpenActive.NET/enums/TaxMode.cs index deaed2b..8104ea6 100644 --- a/OpenActive.NET/enums/TaxMode.cs +++ b/OpenActive.NET/enums/TaxMode.cs @@ -4,11 +4,10 @@ namespace OpenActive.NET { /// - /// /// public enum TaxMode { - + [EnumMember(Value = "https://openactive.io/TaxGross")] TaxGross, [EnumMember(Value = "https://openactive.io/TaxNet")] diff --git a/OpenActive.NET/enums/TestOpportunityCriteriaEnumeration.cs b/OpenActive.NET/enums/TestOpportunityCriteriaEnumeration.cs index 0648bc5..5940a2b 100644 --- a/OpenActive.NET/enums/TestOpportunityCriteriaEnumeration.cs +++ b/OpenActive.NET/enums/TestOpportunityCriteriaEnumeration.cs @@ -9,7 +9,7 @@ namespace OpenActive.NET /// public enum TestOpportunityCriteriaEnumeration { - + [EnumMember(Value = "https://openactive.io/test-interface#TestOpportunityBookable")] TestOpportunityBookable, [EnumMember(Value = "https://openactive.io/test-interface#TestOpportunityNotBookableViaAvailableChannel")] diff --git a/OpenActive.NET/models/AccessChannelUpdateSimulateAction.cs b/OpenActive.NET/models/AccessChannelUpdateSimulateAction.cs index 71df782..184cc61 100644 --- a/OpenActive.NET/models/AccessChannelUpdateSimulateAction.cs +++ b/OpenActive.NET/models/AccessChannelUpdateSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:AccessChannelUpdateSimulateAction"; - } } diff --git a/OpenActive.NET/models/AccessCodeUpdateSimulateAction.cs b/OpenActive.NET/models/AccessCodeUpdateSimulateAction.cs index 96564d9..67cc933 100644 --- a/OpenActive.NET/models/AccessCodeUpdateSimulateAction.cs +++ b/OpenActive.NET/models/AccessCodeUpdateSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:AccessCodeUpdateSimulateAction"; - } } diff --git a/OpenActive.NET/models/AccessPassUpdateSimulateAction.cs b/OpenActive.NET/models/AccessPassUpdateSimulateAction.cs index d5306b8..5b07572 100644 --- a/OpenActive.NET/models/AccessPassUpdateSimulateAction.cs +++ b/OpenActive.NET/models/AccessPassUpdateSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:AccessPassUpdateSimulateAction"; - } } diff --git a/OpenActive.NET/models/Action.cs b/OpenActive.NET/models/Action.cs index aff4885..925dbe9 100644 --- a/OpenActive.NET/models/Action.cs +++ b/OpenActive.NET/models/Action.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Action"; - + /// /// The object upon which the action is carried out, whose state is kept intact or changed. /// diff --git a/OpenActive.NET/models/AudioObject.cs b/OpenActive.NET/models/AudioObject.cs index ea13475..4368cce 100644 --- a/OpenActive.NET/models/AudioObject.cs +++ b/OpenActive.NET/models/AudioObject.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "AudioObject"; - + /// /// The URL for a thumbnail image for the audio. /// diff --git a/OpenActive.NET/models/AuthenticatedPerson.cs b/OpenActive.NET/models/AuthenticatedPerson.cs index 8b23e51..ec37067 100644 --- a/OpenActive.NET/models/AuthenticatedPerson.cs +++ b/OpenActive.NET/models/AuthenticatedPerson.cs @@ -46,7 +46,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "beta:AuthenticatedPerson"; - + /// /// [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. diff --git a/OpenActive.NET/models/BabyChanging.cs b/OpenActive.NET/models/BabyChanging.cs index 3cd13b9..75973c9 100644 --- a/OpenActive.NET/models/BabyChanging.cs +++ b/OpenActive.NET/models/BabyChanging.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "BabyChanging"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/Bar.cs b/OpenActive.NET/models/Bar.cs index 6f73c0f..33cf28e 100644 --- a/OpenActive.NET/models/Bar.cs +++ b/OpenActive.NET/models/Bar.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "beta:Bar"; - } } diff --git a/OpenActive.NET/models/Barcode.cs b/OpenActive.NET/models/Barcode.cs index c53346e..dc3f236 100644 --- a/OpenActive.NET/models/Barcode.cs +++ b/OpenActive.NET/models/Barcode.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Barcode"; - + /// /// The barcode number /// diff --git a/OpenActive.NET/models/BookingService.cs b/OpenActive.NET/models/BookingService.cs index fcfb1d9..5dfdefd 100644 --- a/OpenActive.NET/models/BookingService.cs +++ b/OpenActive.NET/models/BookingService.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "BookingService"; - + /// /// The name of the Booking System. /// diff --git a/OpenActive.NET/models/BooleanFormFieldSpecification.cs b/OpenActive.NET/models/BooleanFormFieldSpecification.cs index 37416f8..0487d7e 100644 --- a/OpenActive.NET/models/BooleanFormFieldSpecification.cs +++ b/OpenActive.NET/models/BooleanFormFieldSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -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; } diff --git a/OpenActive.NET/models/Brand.cs b/OpenActive.NET/models/Brand.cs index 93ca4ad..ffb55cd 100644 --- a/OpenActive.NET/models/Brand.cs +++ b/OpenActive.NET/models/Brand.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Brand"; - + /// /// A local non-URI identifier for the resource /// diff --git a/OpenActive.NET/models/Cafe.cs b/OpenActive.NET/models/Cafe.cs index c6cfce8..13fd3a4 100644 --- a/OpenActive.NET/models/Cafe.cs +++ b/OpenActive.NET/models/Cafe.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "beta:Cafe"; - } } diff --git a/OpenActive.NET/models/CancellationNotPermittedError.cs b/OpenActive.NET/models/CancellationNotPermittedError.cs index d090d18..99f9473 100644 --- a/OpenActive.NET/models/CancellationNotPermittedError.cs +++ b/OpenActive.NET/models/CancellationNotPermittedError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "CancellationNotPermittedError"; - + /// /// 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. /// @@ -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."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/CertificationLevel.cs b/OpenActive.NET/models/CertificationLevel.cs index d7ef6a0..6423cdf 100644 --- a/OpenActive.NET/models/CertificationLevel.cs +++ b/OpenActive.NET/models/CertificationLevel.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "beta:CertificationLevel"; - } } diff --git a/OpenActive.NET/models/CertificationScheme.cs b/OpenActive.NET/models/CertificationScheme.cs index 487dd2e..07782a3 100644 --- a/OpenActive.NET/models/CertificationScheme.cs +++ b/OpenActive.NET/models/CertificationScheme.cs @@ -46,7 +46,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "beta:CertificationScheme"; - + /// /// [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.] /// Property containing an array of CertificationLevels diff --git a/OpenActive.NET/models/ChangeOfLogisticsLocationSimulateAction.cs b/OpenActive.NET/models/ChangeOfLogisticsLocationSimulateAction.cs index 756fcb9..7cbbdb2 100644 --- a/OpenActive.NET/models/ChangeOfLogisticsLocationSimulateAction.cs +++ b/OpenActive.NET/models/ChangeOfLogisticsLocationSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:ChangeOfLogisticsLocationSimulateAction"; - } } diff --git a/OpenActive.NET/models/ChangeOfLogisticsNameSimulateAction.cs b/OpenActive.NET/models/ChangeOfLogisticsNameSimulateAction.cs index bbf339e..5b76c82 100644 --- a/OpenActive.NET/models/ChangeOfLogisticsNameSimulateAction.cs +++ b/OpenActive.NET/models/ChangeOfLogisticsNameSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:ChangeOfLogisticsNameSimulateAction"; - } } diff --git a/OpenActive.NET/models/ChangeOfLogisticsTimeSimulateAction.cs b/OpenActive.NET/models/ChangeOfLogisticsTimeSimulateAction.cs index 290b677..42ddbca 100644 --- a/OpenActive.NET/models/ChangeOfLogisticsTimeSimulateAction.cs +++ b/OpenActive.NET/models/ChangeOfLogisticsTimeSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:ChangeOfLogisticsTimeSimulateAction"; - } } diff --git a/OpenActive.NET/models/ChangingFacilities.cs b/OpenActive.NET/models/ChangingFacilities.cs index de54583..cf54ddf 100644 --- a/OpenActive.NET/models/ChangingFacilities.cs +++ b/OpenActive.NET/models/ChangingFacilities.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "ChangingFacilities"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/Concept.cs b/OpenActive.NET/models/Concept.cs index 2c64665..9130fab 100644 --- a/OpenActive.NET/models/Concept.cs +++ b/OpenActive.NET/models/Concept.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from http://www.w3.org/2004/02/skos/core#Concept. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Concept"; - + /// /// An alternative human readable string for use in user interfaces. /// diff --git a/OpenActive.NET/models/ConceptCollection.cs b/OpenActive.NET/models/ConceptCollection.cs index 8d50416..3b0fd00 100644 --- a/OpenActive.NET/models/ConceptCollection.cs +++ b/OpenActive.NET/models/ConceptCollection.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "beta:ConceptCollection"; - } } diff --git a/OpenActive.NET/models/ConceptScheme.cs b/OpenActive.NET/models/ConceptScheme.cs index 3291e65..461134e 100644 --- a/OpenActive.NET/models/ConceptScheme.cs +++ b/OpenActive.NET/models/ConceptScheme.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from http://www.w3.org/2004/02/skos/core#ConceptScheme. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "ConceptScheme"; - + /// /// The title of the scheme /// diff --git a/OpenActive.NET/models/Course.cs b/OpenActive.NET/models/Course.cs index 7193855..7292c26 100644 --- a/OpenActive.NET/models/Course.cs +++ b/OpenActive.NET/models/Course.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Course, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Course"; - + /// /// A local non-URI identifier for the resource /// diff --git a/OpenActive.NET/models/CourseInstance.cs b/OpenActive.NET/models/CourseInstance.cs index dc38817..8908a0a 100644 --- a/OpenActive.NET/models/CourseInstance.cs +++ b/OpenActive.NET/models/CourseInstance.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/CourseInstance, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "CourseInstance"; - + /// /// A an array of oa:Schedule or oa:PartialSchedule, which represents a recurrence pattern. /// diff --git a/OpenActive.NET/models/Creche.cs b/OpenActive.NET/models/Creche.cs index eda7d43..6c38837 100644 --- a/OpenActive.NET/models/Creche.cs +++ b/OpenActive.NET/models/Creche.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Creche"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/CustomerNoticeSimulateAction.cs b/OpenActive.NET/models/CustomerNoticeSimulateAction.cs index 2aea1fd..3020bce 100644 --- a/OpenActive.NET/models/CustomerNoticeSimulateAction.cs +++ b/OpenActive.NET/models/CustomerNoticeSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:CustomerNoticeSimulateAction"; - } } diff --git a/OpenActive.NET/models/DataCatalog.cs b/OpenActive.NET/models/DataCatalog.cs index 876e32e..ee046dc 100644 --- a/OpenActive.NET/models/DataCatalog.cs +++ b/OpenActive.NET/models/DataCatalog.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "DataCatalog"; - + /// /// The name of the `DataCatalog` /// @@ -120,9 +120,16 @@ public override string ToString() public new virtual List HasPart { get; set; } + /// /// Must always be present and set to /// "license": "https://creativecommons.org/licenses/by/4.0/" /// + /// + /// + /// + /// "license": "https://creativecommons.org/licenses/by/4.0/" + /// + /// [DataMember(Name = "license", EmitDefaultValue = false, Order = 12)] [JsonConverter(typeof(ValuesConverter))] public new virtual Uri License { get; set; } diff --git a/OpenActive.NET/models/DataDownload.cs b/OpenActive.NET/models/DataDownload.cs index 8b0dd42..3bbd902 100644 --- a/OpenActive.NET/models/DataDownload.cs +++ b/OpenActive.NET/models/DataDownload.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "DataDownload"; - + /// /// A local non-URI identifier for the resource /// @@ -101,9 +101,16 @@ public override string ToString() public new virtual Uri ContentUrl { get; set; } + /// /// Must always be present and set to /// "encodingFormat": "application/vnd.openactive.rpde+json; version=1" /// + /// + /// + /// + /// "encodingFormat": "application/vnd.openactive.rpde+json; version=1" + /// + /// [DataMember(Name = "encodingFormat", EmitDefaultValue = false, Order = 11)] [JsonConverter(typeof(ValuesConverter))] public new virtual string EncodingFormat { get; set; } diff --git a/OpenActive.NET/models/Dataset.cs b/OpenActive.NET/models/Dataset.cs index 2d14c80..1ab61a4 100644 --- a/OpenActive.NET/models/Dataset.cs +++ b/OpenActive.NET/models/Dataset.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Dataset"; - + /// /// The name of the `Dataset` /// @@ -215,9 +215,16 @@ public override string ToString() public new virtual List Keywords { get; set; } + /// /// Must always be present and set to /// "license": "https://creativecommons.org/licenses/by/4.0/" /// + /// + /// + /// + /// "license": "https://creativecommons.org/licenses/by/4.0/" + /// + /// [DataMember(Name = "license", EmitDefaultValue = false, Order = 19)] [JsonConverter(typeof(ValuesConverter))] public new virtual Uri License { get; set; } diff --git a/OpenActive.NET/models/DropdownFormFieldSpecification.cs b/OpenActive.NET/models/DropdownFormFieldSpecification.cs index 40386e2..0415b99 100644 --- a/OpenActive.NET/models/DropdownFormFieldSpecification.cs +++ b/OpenActive.NET/models/DropdownFormFieldSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "DropdownFormFieldSpecification"; - + /// /// Specifies an array of display values for the dropdown. /// diff --git a/OpenActive.NET/models/DynamicPayment.cs b/OpenActive.NET/models/DynamicPayment.cs index 4a6b175..458780b 100644 --- a/OpenActive.NET/models/DynamicPayment.cs +++ b/OpenActive.NET/models/DynamicPayment.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Thing, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,6 +45,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "DynamicPayment"; - } } diff --git a/OpenActive.NET/models/Event.cs b/OpenActive.NET/models/Event.cs index c592db4..e174c04 100644 --- a/OpenActive.NET/models/Event.cs +++ b/OpenActive.NET/models/Event.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Event, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Event"; - + /// /// A local non-URI identifier for the resource /// @@ -378,9 +377,9 @@ public override string ToString() /// - /// The location at which the event will take place. Or, in the case of events that may span multiple locations, the initial meeting or starting point. - /// It is recommended that locations should be specified as a [Place](/models/place) complete with a fully described geographic location and/or address. - /// If only an address is available then this should be described as a [PostalAddress](/models/postaladdress). + /// The location at which the event will take place. Or, in the case of events that may span multiple locations, the initial meeting or starting point. + /// It is recommended that locations should be specified as a [Place](/models/place) complete with a fully described geographic location and/or address. + /// If only an address is available then this should be described as a [PostalAddress](/models/postaladdress). /// Applications may use [schema:Text](https://schema.org/Text) to provide a more general description of a location ("In Victoria Park, near the lake"), but this is not recommended: consuming applications will be unable to help users discover opportunities based on their location. /// /// @@ -547,7 +546,7 @@ public override string ToString() /// - /// The end date and time of the event. Can be specified as a schema:Date or schema:DateTime + /// The end date and time of the event. Can be specified as a schema:Date or schema:DateTime /// It is recommended that publishers provide either an schema:endDate or a schema:duration for an event. /// /// diff --git a/OpenActive.NET/models/EventSeries.cs b/OpenActive.NET/models/EventSeries.cs index 6f01257..8bc8d02 100644 --- a/OpenActive.NET/models/EventSeries.cs +++ b/OpenActive.NET/models/EventSeries.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://pending.schema.org/EventSeries. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "EventSeries"; - + [Obsolete("This property is disinherited in this type, and must not be used.", true)] public override SingleValues StartDate { get; set; } diff --git a/OpenActive.NET/models/FacilityUse.cs b/OpenActive.NET/models/FacilityUse.cs index ffca61f..f09593d 100644 --- a/OpenActive.NET/models/FacilityUse.cs +++ b/OpenActive.NET/models/FacilityUse.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Product, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "FacilityUse"; - + /// /// A local non-URI identifier for the resource /// diff --git a/OpenActive.NET/models/GeoCoordinates.cs b/OpenActive.NET/models/GeoCoordinates.cs index fe2cffb..f5ad5b9 100644 --- a/OpenActive.NET/models/GeoCoordinates.cs +++ b/OpenActive.NET/models/GeoCoordinates.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/GeoCoordinates, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "GeoCoordinates"; - + /// /// The latitude of a location. For example 51.522338 (WGS 84). /// diff --git a/OpenActive.NET/models/GoneError.cs b/OpenActive.NET/models/GoneError.cs index 254a392..71bdaa4 100644 --- a/OpenActive.NET/models/GoneError.cs +++ b/OpenActive.NET/models/GoneError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "GoneError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "An 'Order' has been soft-deleted by an Order Deletion request."; + /// /// Must always be present and set to /// "statusCode": 410 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 410; diff --git a/OpenActive.NET/models/HeadlineEvent.cs b/OpenActive.NET/models/HeadlineEvent.cs index 04e863a..d33118f 100644 --- a/OpenActive.NET/models/HeadlineEvent.cs +++ b/OpenActive.NET/models/HeadlineEvent.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Event, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,6 +45,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "HeadlineEvent"; - } } diff --git a/OpenActive.NET/models/ImageObject.cs b/OpenActive.NET/models/ImageObject.cs index 232c0b1..f6259d1 100644 --- a/OpenActive.NET/models/ImageObject.cs +++ b/OpenActive.NET/models/ImageObject.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/ImageObject, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "ImageObject"; - + [Obsolete("This property is disinherited in this type, and must not be used.", true)] public override Uri ContentUrl { get; set; } diff --git a/OpenActive.NET/models/IncompleteAttendeeDetailsError.cs b/OpenActive.NET/models/IncompleteAttendeeDetailsError.cs index 5c5753c..e34d877 100644 --- a/OpenActive.NET/models/IncompleteAttendeeDetailsError.cs +++ b/OpenActive.NET/models/IncompleteAttendeeDetailsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "IncompleteAttendeeDetailsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'attendeeDetailsRequired' properties of the 'attendee' are not supplied within a 'Person' object."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/IncompleteBrokerDetailsError.cs b/OpenActive.NET/models/IncompleteBrokerDetailsError.cs index ec1a8bc..64b7173 100644 --- a/OpenActive.NET/models/IncompleteBrokerDetailsError.cs +++ b/OpenActive.NET/models/IncompleteBrokerDetailsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "IncompleteBrokerDetailsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'name' property is not supplied within the 'Organisation' object describing the Broker; or the 'broker' property supplied is not a valid 'Organisation' object."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/IncompleteCustomerDetailsError.cs b/OpenActive.NET/models/IncompleteCustomerDetailsError.cs index 4c5dd66..f7b673c 100644 --- a/OpenActive.NET/models/IncompleteCustomerDetailsError.cs +++ b/OpenActive.NET/models/IncompleteCustomerDetailsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "IncompleteCustomerDetailsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'email' address of the Customer is not supplied within a 'Person' object; or the 'customer' property supplied is not a valid 'Person' or 'Organization' object."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/IncompleteIntakeFormError.cs b/OpenActive.NET/models/IncompleteIntakeFormError.cs index 90e1974..276adbb 100644 --- a/OpenActive.NET/models/IncompleteIntakeFormError.cs +++ b/OpenActive.NET/models/IncompleteIntakeFormError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "IncompleteIntakeFormError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'orderItemIntakeFormResponse' is missing fields that are specified as 'valueRequired' within the 'orderItemIntakeForm'."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/IncompleteOrderItemError.cs b/OpenActive.NET/models/IncompleteOrderItemError.cs index b033754..c959bdc 100644 --- a/OpenActive.NET/models/IncompleteOrderItemError.cs +++ b/OpenActive.NET/models/IncompleteOrderItemError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "IncompleteOrderItemError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "There is a missing 'acceptedOffer' or 'orderedItem' property on the 'OrderItem'."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/IncompletePaymentDetailsError.cs b/OpenActive.NET/models/IncompletePaymentDetailsError.cs index ab93ac2..e407933 100644 --- a/OpenActive.NET/models/IncompletePaymentDetailsError.cs +++ b/OpenActive.NET/models/IncompletePaymentDetailsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "IncompletePaymentDetailsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'payment' property of the 'Order' does not include 'identifier'."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/IndicativeOffer.cs b/OpenActive.NET/models/IndicativeOffer.cs index 080f119..312a7b4 100644 --- a/OpenActive.NET/models/IndicativeOffer.cs +++ b/OpenActive.NET/models/IndicativeOffer.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "beta:IndicativeOffer"; - } } diff --git a/OpenActive.NET/models/IndividualFacilityUse.cs b/OpenActive.NET/models/IndividualFacilityUse.cs index ba36615..2576099 100644 --- a/OpenActive.NET/models/IndividualFacilityUse.cs +++ b/OpenActive.NET/models/IndividualFacilityUse.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Product, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "IndividualFacilityUse"; - + /// /// Inverse of the oa:individualFacilityUse property. Relates an oa:IndividualFacilityUse (e.g. an opportunity to play tennis on a specific court) to a oa:FacilityUse (e.g. an opportunity to play tennis at a specific location). /// diff --git a/OpenActive.NET/models/InternalApplicationError.cs b/OpenActive.NET/models/InternalApplicationError.cs index 0b989a2..58f6987 100644 --- a/OpenActive.NET/models/InternalApplicationError.cs +++ b/OpenActive.NET/models/InternalApplicationError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InternalApplicationError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "An unexpected exception has been thrown by the application."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/InternalLibraryConfigurationError.cs b/OpenActive.NET/models/InternalLibraryConfigurationError.cs index 40f95ec..3bfadfc 100644 --- a/OpenActive.NET/models/InternalLibraryConfigurationError.cs +++ b/OpenActive.NET/models/InternalLibraryConfigurationError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InternalLibraryConfigurationError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "An exception has been thrown due to the misconfiguration of an OpenActive SDK library or component."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/InternalLibraryError.cs b/OpenActive.NET/models/InternalLibraryError.cs index 4c54632..67fe328 100644 --- a/OpenActive.NET/models/InternalLibraryError.cs +++ b/OpenActive.NET/models/InternalLibraryError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InternalLibraryError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "An unexpected exception has been thrown by an OpenActive SDK library or component."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/InternalOpenBookingError.cs b/OpenActive.NET/models/InternalOpenBookingError.cs index 95f8c48..8ec6f7d 100644 --- a/OpenActive.NET/models/InternalOpenBookingError.cs +++ b/OpenActive.NET/models/InternalOpenBookingError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InternalOpenBookingError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "A generic internal error type, which is not intended to be used directly."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/InvalidAPITokenError.cs b/OpenActive.NET/models/InvalidAPITokenError.cs index b94c986..37a8980 100644 --- a/OpenActive.NET/models/InvalidAPITokenError.cs +++ b/OpenActive.NET/models/InvalidAPITokenError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InvalidAPITokenError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Broker supplied an invalid API key, either malformed or expired."; + /// /// Must always be present and set to /// "statusCode": 401 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 401; diff --git a/OpenActive.NET/models/InvalidAuthorizationDetailsError.cs b/OpenActive.NET/models/InvalidAuthorizationDetailsError.cs index 9b1161f..3312cd6 100644 --- a/OpenActive.NET/models/InvalidAuthorizationDetailsError.cs +++ b/OpenActive.NET/models/InvalidAuthorizationDetailsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InvalidAuthorizationDetailsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Broker supplied an invalid set of authorization details, either malformed or expired."; + /// /// Must always be present and set to /// "statusCode": 401 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 401; diff --git a/OpenActive.NET/models/InvalidIntakeFormError.cs b/OpenActive.NET/models/InvalidIntakeFormError.cs index 8c230f5..5af5ea7 100644 --- a/OpenActive.NET/models/InvalidIntakeFormError.cs +++ b/OpenActive.NET/models/InvalidIntakeFormError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InvalidIntakeFormError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'orderItemIntakeFormResponse' contains invalid fields that do not match those specified by the 'orderItemIntakeForm'."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/InvalidOpportunityOrOfferIdError.cs b/OpenActive.NET/models/InvalidOpportunityOrOfferIdError.cs index c7e2fc2..fb708fb 100644 --- a/OpenActive.NET/models/InvalidOpportunityOrOfferIdError.cs +++ b/OpenActive.NET/models/InvalidOpportunityOrOfferIdError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InvalidOpportunityOrOfferIdError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The '@id' provided for the 'orderedItem' or 'acceptedOffer' does not match a recognised URL format within the Booking System."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/InvalidPaymentDetailsError.cs b/OpenActive.NET/models/InvalidPaymentDetailsError.cs index 10dc6f8..bd19976 100644 --- a/OpenActive.NET/models/InvalidPaymentDetailsError.cs +++ b/OpenActive.NET/models/InvalidPaymentDetailsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "InvalidPaymentDetailsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'payment' property of the 'OrderQuote' or 'Order' contains data that is not accepted by the Booking System for reconciliation, e.g. an invalid 'accountId'."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/Lease.cs b/OpenActive.NET/models/Lease.cs index 3fdcd75..78a261f 100644 --- a/OpenActive.NET/models/Lease.cs +++ b/OpenActive.NET/models/Lease.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Thing, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Lease"; - + /// /// Optional identifier of the Lease if useful for audit or debugging purposes. /// diff --git a/OpenActive.NET/models/LocationFeatureSpecification.cs b/OpenActive.NET/models/LocationFeatureSpecification.cs index b90009d..e4713ff 100644 --- a/OpenActive.NET/models/LocationFeatureSpecification.cs +++ b/OpenActive.NET/models/LocationFeatureSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "LocationFeatureSpecification"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/Lockers.cs b/OpenActive.NET/models/Lockers.cs index 91ac877..4c28261 100644 --- a/OpenActive.NET/models/Lockers.cs +++ b/OpenActive.NET/models/Lockers.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Lockers"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/MediaObject.cs b/OpenActive.NET/models/MediaObject.cs index 98eb427..eb580ac 100644 --- a/OpenActive.NET/models/MediaObject.cs +++ b/OpenActive.NET/models/MediaObject.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/MediaObject, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "MediaObject"; - + /// /// Actual bytes of the media object, for example the image file or video file. /// diff --git a/OpenActive.NET/models/MethodNotAllowedError.cs b/OpenActive.NET/models/MethodNotAllowedError.cs index 6cb378a..720ead9 100644 --- a/OpenActive.NET/models/MethodNotAllowedError.cs +++ b/OpenActive.NET/models/MethodNotAllowedError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "MethodNotAllowedError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System does not recognise the specific HTTP verb used for the endpoint requested."; + /// /// Must always be present and set to /// "statusCode": 405 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 405; diff --git a/OpenActive.NET/models/MissingPaymentDetailsError.cs b/OpenActive.NET/models/MissingPaymentDetailsError.cs index 2996066..df104f0 100644 --- a/OpenActive.NET/models/MissingPaymentDetailsError.cs +++ b/OpenActive.NET/models/MissingPaymentDetailsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "MissingPaymentDetailsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'payment' property of the 'Order' is absent when it is expected to be provided."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/NoAPITokenError.cs b/OpenActive.NET/models/NoAPITokenError.cs index d375ddc..1240b7c 100644 --- a/OpenActive.NET/models/NoAPITokenError.cs +++ b/OpenActive.NET/models/NoAPITokenError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "NoAPITokenError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Broker did not supply an API key."; + /// /// Must always be present and set to /// "statusCode": 403 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 403; diff --git a/OpenActive.NET/models/NotFoundError.cs b/OpenActive.NET/models/NotFoundError.cs index 0037ee6..6632d90 100644 --- a/OpenActive.NET/models/NotFoundError.cs +++ b/OpenActive.NET/models/NotFoundError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "NotFoundError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System does not have the generic resource specified."; + /// /// Must always be present and set to /// "statusCode": 404 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 404; diff --git a/OpenActive.NET/models/Offer.cs b/OpenActive.NET/models/Offer.cs index 184907b..46f00f8 100644 --- a/OpenActive.NET/models/Offer.cs +++ b/OpenActive.NET/models/Offer.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Offer, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Offer"; - + /// /// A local non-URI identifier for the resource /// @@ -188,9 +187,9 @@ public override string ToString() /// - /// The offer price of the activity. - /// This price should be specified without currency symbols and as a floating point number with two decimal places. - /// The currency of the price should be expressed in the priceCurrency field. + /// The offer price of the activity. + /// This price should be specified without currency symbols and as a floating point number with two decimal places. + /// The currency of the price should be expressed in the priceCurrency field. /// Includes or excludes tax depending on the taxMode of the seller. /// /// diff --git a/OpenActive.NET/models/OfferOverride.cs b/OpenActive.NET/models/OfferOverride.cs index 9a68bb9..d2b8653 100644 --- a/OpenActive.NET/models/OfferOverride.cs +++ b/OpenActive.NET/models/OfferOverride.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Offer, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OfferOverride"; - + [Obsolete("This property is disinherited in this type, and must not be used.", true)] public override RequiredStatusType? AdvanceBooking { get; set; } diff --git a/OpenActive.NET/models/OnDemandEvent.cs b/OpenActive.NET/models/OnDemandEvent.cs index 6b9d8c8..36c57ad 100644 --- a/OpenActive.NET/models/OnDemandEvent.cs +++ b/OpenActive.NET/models/OnDemandEvent.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/OnDemandEvent, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OnDemandEvent"; - + [Obsolete("This property is disinherited in this type, and must not be used.", true)] public override EventAttendanceModeEnumeration? EventAttendanceMode { get; set; } diff --git a/OpenActive.NET/models/OpenBookingError.cs b/OpenActive.NET/models/OpenBookingError.cs index dd4a1b1..593888f 100644 --- a/OpenActive.NET/models/OpenBookingError.cs +++ b/OpenActive.NET/models/OpenBookingError.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Thing, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OpenBookingError"; - + /// /// 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. /// diff --git a/OpenActive.NET/models/OpenBookingSimulateAction.cs b/OpenActive.NET/models/OpenBookingSimulateAction.cs index 27f05a4..8837cd5 100644 --- a/OpenActive.NET/models/OpenBookingSimulateAction.cs +++ b/OpenActive.NET/models/OpenBookingSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:OpenBookingSimulateAction"; - } } diff --git a/OpenActive.NET/models/OpeningHoursSpecification.cs b/OpenActive.NET/models/OpeningHoursSpecification.cs index e6c05a6..fd41c80 100644 --- a/OpenActive.NET/models/OpeningHoursSpecification.cs +++ b/OpenActive.NET/models/OpeningHoursSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/OpeningHoursSpecification, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OpeningHoursSpecification"; - + /// /// The closing time. Set "00:00" for the value of `opens` and `closes` to indicated the `Place` is closed on the specified days. /// diff --git a/OpenActive.NET/models/OpportunityAttendanceUpdateSimulateAction.cs b/OpenActive.NET/models/OpportunityAttendanceUpdateSimulateAction.cs index 3d8e5d9..a00894d 100644 --- a/OpenActive.NET/models/OpportunityAttendanceUpdateSimulateAction.cs +++ b/OpenActive.NET/models/OpportunityAttendanceUpdateSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:OpportunityAttendanceUpdateSimulateAction"; - } } diff --git a/OpenActive.NET/models/OpportunityCapacityIsReservedByLeaseError.cs b/OpenActive.NET/models/OpportunityCapacityIsReservedByLeaseError.cs index 209a300..7904780 100644 --- a/OpenActive.NET/models/OpportunityCapacityIsReservedByLeaseError.cs +++ b/OpenActive.NET/models/OpportunityCapacityIsReservedByLeaseError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OpportunityCapacityIsReservedByLeaseError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The available capacity required to book a specific Opportunity is reserved by a lease held by another Customer."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/OpportunityHasInsufficientCapacityError.cs b/OpenActive.NET/models/OpportunityHasInsufficientCapacityError.cs index 1d823d8..22e48d5 100644 --- a/OpenActive.NET/models/OpportunityHasInsufficientCapacityError.cs +++ b/OpenActive.NET/models/OpportunityHasInsufficientCapacityError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OpportunityHasInsufficientCapacityError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "There are not enough available spaces in the Opportunity contained in the 'orderedItem' property of the 'OrderItem' to fulfil the number of repeated 'OrderItem's."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/OpportunityIntractableError.cs b/OpenActive.NET/models/OpportunityIntractableError.cs index 61069b8..152c6c9 100644 --- a/OpenActive.NET/models/OpportunityIntractableError.cs +++ b/OpenActive.NET/models/OpportunityIntractableError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OpportunityIntractableError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'orderedItem' and 'acceptedOffer' combination specified currently cannot be booked due to an inconsistent state within the Booking System."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/OpportunityIsFullError.cs b/OpenActive.NET/models/OpportunityIsFullError.cs index 4bdf223..3fca74c 100644 --- a/OpenActive.NET/models/OpportunityIsFullError.cs +++ b/OpenActive.NET/models/OpportunityIsFullError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OpportunityIsFullError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "There are no available spaces for the Opportunity contained in the 'orderedItem' property."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/OpportunityIsInConflictError.cs b/OpenActive.NET/models/OpportunityIsInConflictError.cs index b8e20bb..30acd40 100644 --- a/OpenActive.NET/models/OpportunityIsInConflictError.cs +++ b/OpenActive.NET/models/OpportunityIsInConflictError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OpportunityIsInConflictError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The specific 'OrderItem's against which this error is emitted are not able to be booked together."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/OpportunityOfferPairNotBookableError.cs b/OpenActive.NET/models/OpportunityOfferPairNotBookableError.cs index 1877dd6..50c2c5a 100644 --- a/OpenActive.NET/models/OpportunityOfferPairNotBookableError.cs +++ b/OpenActive.NET/models/OpportunityOfferPairNotBookableError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OpportunityOfferPairNotBookableError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'orderedItem' and 'acceptedOffer' combination specified are not \"bookable\", as defined in the Open Booking API specification."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/Order.cs b/OpenActive.NET/models/Order.cs index 5aacda0..7928421 100644 --- a/OpenActive.NET/models/Order.cs +++ b/OpenActive.NET/models/Order.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Order, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Order"; - + /// /// A local non-URI identifier for the resource /// @@ -148,9 +147,6 @@ public override string ToString() public virtual bool? TaxCalculationExcluded { get; set; } - /// - /// - /// [DataMember(Name = "totalPaymentDue", EmitDefaultValue = false, Order = 19)] [JsonConverter(typeof(ValuesConverter))] public new virtual PriceSpecification TotalPaymentDue { get; set; } diff --git a/OpenActive.NET/models/OrderAlreadyExistsError.cs b/OpenActive.NET/models/OrderAlreadyExistsError.cs index 024e798..608b9ec 100644 --- a/OpenActive.NET/models/OrderAlreadyExistsError.cs +++ b/OpenActive.NET/models/OrderAlreadyExistsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OrderAlreadyExistsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Order UUID used for an 'OrderQuote' already represents a completed 'Order' with a different set of 'OrderItem's to those specified (note call to B is idempotent for the case where 'OrderItem's match). This happens in the rare event of a Order UUID clash."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/OrderCreationFailedError.cs b/OpenActive.NET/models/OrderCreationFailedError.cs index 936b976..a615f21 100644 --- a/OpenActive.NET/models/OrderCreationFailedError.cs +++ b/OpenActive.NET/models/OrderCreationFailedError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OrderCreationFailedError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "B failed for a reason not specified by a defined type of error in the Open Booking API specification."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/OrderItem.cs b/OpenActive.NET/models/OrderItem.cs index f02a989..fe71cae 100644 --- a/OpenActive.NET/models/OrderItem.cs +++ b/OpenActive.NET/models/OrderItem.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/OrderItem, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OrderItem"; - + /// /// The offer from the associated orderedItem that has been selected by the Customer. The price of this includes or excludes tax depending on the taxMode of the Order. /// @@ -143,9 +142,6 @@ public override string ToString() public virtual List OrderItemIntakeFormResponse { get; set; } - /// - /// - /// [DataMember(Name = "orderItemStatus", EmitDefaultValue = false, Order = 19)] [JsonConverter(typeof(ValuesConverter))] public new virtual OrderItemStatus? OrderItemStatus { get; set; } diff --git a/OpenActive.NET/models/OrderItemIdInvalidError.cs b/OpenActive.NET/models/OrderItemIdInvalidError.cs index 4637f03..8a64fa4 100644 --- a/OpenActive.NET/models/OrderItemIdInvalidError.cs +++ b/OpenActive.NET/models/OrderItemIdInvalidError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OrderItemIdInvalidError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The '@id' of at least one of the provided 'OrderItem's is invalid."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/OrderItemNotWithinOrderError.cs b/OpenActive.NET/models/OrderItemNotWithinOrderError.cs index 76dc004..fbf3079 100644 --- a/OpenActive.NET/models/OrderItemNotWithinOrderError.cs +++ b/OpenActive.NET/models/OrderItemNotWithinOrderError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OrderItemNotWithinOrderError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Order UUID for at least one provided 'OrderItem' does not match the Order UUID of the 'Order' being PATCHed."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/OrderProposal.cs b/OpenActive.NET/models/OrderProposal.cs index 58eb682..aec96c0 100644 --- a/OpenActive.NET/models/OrderProposal.cs +++ b/OpenActive.NET/models/OrderProposal.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Order, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,18 +45,12 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OrderProposal"; - - /// - /// - /// + [DataMember(Name = "orderCustomerNote", EmitDefaultValue = false, Order = 7)] [JsonConverter(typeof(ValuesConverter))] public virtual string OrderCustomerNote { get; set; } - /// - /// - /// [DataMember(Name = "orderProposalStatus", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public virtual OrderProposalStatus? OrderProposalStatus { get; set; } @@ -67,9 +60,6 @@ public override string ToString() public override bool? OrderRequiresApproval { get; set; } - /// - /// - /// [DataMember(Name = "orderSellerNote", EmitDefaultValue = false, Order = 10)] [JsonConverter(typeof(ValuesConverter))] public virtual string OrderSellerNote { get; set; } diff --git a/OpenActive.NET/models/OrderProposalVersionOutdatedError.cs b/OpenActive.NET/models/OrderProposalVersionOutdatedError.cs index 9b88d85..2271bb3 100644 --- a/OpenActive.NET/models/OrderProposalVersionOutdatedError.cs +++ b/OpenActive.NET/models/OrderProposalVersionOutdatedError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OrderProposalVersionOutdatedError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "B failed due to a newer version of the 'OrderProposal' existing than that specified by the Broker in 'orderProposalVersion'."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/OrderQuote.cs b/OpenActive.NET/models/OrderQuote.cs index 6dd8ad2..b01627a 100644 --- a/OpenActive.NET/models/OrderQuote.cs +++ b/OpenActive.NET/models/OrderQuote.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Order, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "OrderQuote"; - + /// /// The Lease on the OrderItems which lasts for the duration specified by the Booking System. /// diff --git a/OpenActive.NET/models/Organization.cs b/OpenActive.NET/models/Organization.cs index 9ea3d05..8074ccb 100644 --- a/OpenActive.NET/models/Organization.cs +++ b/OpenActive.NET/models/Organization.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Organization, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Organization"; - + /// /// A local non-URI identifier for the resource /// diff --git a/OpenActive.NET/models/ParagraphFormFieldSpecification.cs b/OpenActive.NET/models/ParagraphFormFieldSpecification.cs index 1046b2a..1aa8309 100644 --- a/OpenActive.NET/models/ParagraphFormFieldSpecification.cs +++ b/OpenActive.NET/models/ParagraphFormFieldSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,6 +45,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "ParagraphFormFieldSpecification"; - } } diff --git a/OpenActive.NET/models/Parking.cs b/OpenActive.NET/models/Parking.cs index 16c5aca..7ee64bb 100644 --- a/OpenActive.NET/models/Parking.cs +++ b/OpenActive.NET/models/Parking.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Parking"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/PartialSchedule.cs b/OpenActive.NET/models/PartialSchedule.cs index 619c352..3f9ad09 100644 --- a/OpenActive.NET/models/PartialSchedule.cs +++ b/OpenActive.NET/models/PartialSchedule.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://pending.schema.org/Schedule. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "PartialSchedule"; - + [Obsolete("This property is disinherited in this type, and must not be used.", true)] public override string IdTemplate { get; set; } diff --git a/OpenActive.NET/models/PatchContainsExcessivePropertiesError.cs b/OpenActive.NET/models/PatchContainsExcessivePropertiesError.cs index f5c3949..a42723f 100644 --- a/OpenActive.NET/models/PatchContainsExcessivePropertiesError.cs +++ b/OpenActive.NET/models/PatchContainsExcessivePropertiesError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "PatchContainsExcessivePropertiesError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System recognises a PATCH request but the request object contains properties that the Broker is not permitted to update. Custom namespace properties are always excluded from consideration."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/PatchNotAllowedOnPropertyError.cs b/OpenActive.NET/models/PatchNotAllowedOnPropertyError.cs index f284806..fe960ec 100644 --- a/OpenActive.NET/models/PatchNotAllowedOnPropertyError.cs +++ b/OpenActive.NET/models/PatchNotAllowedOnPropertyError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "PatchNotAllowedOnPropertyError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System recognises a PATCH request but the request object contains one or many properties that the Broker is not permitted to update to the requested value."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/Payment.cs b/OpenActive.NET/models/Payment.cs index ffd7697..bc129a4 100644 --- a/OpenActive.NET/models/Payment.cs +++ b/OpenActive.NET/models/Payment.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Thing, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Payment"; - + /// /// The identifier of the payment held by the Broker and/or Payment Provider. /// diff --git a/OpenActive.NET/models/Person.cs b/OpenActive.NET/models/Person.cs index 8d173bc..dfa9895 100644 --- a/OpenActive.NET/models/Person.cs +++ b/OpenActive.NET/models/Person.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Person, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Person"; - + /// /// A local non-URI identifier for the resource /// @@ -61,7 +60,7 @@ public override string ToString() /// - /// A full name for the person. + /// A full name for the person. /// This person must have given permission for their personal information to be shared as part of the open data. /// /// @@ -96,7 +95,7 @@ public override string ToString() /// - /// The e-mail address of the person. + /// The e-mail address of the person. /// This person must have given permission for their personal information to be shared as part of the open data. /// /// @@ -110,7 +109,7 @@ public override string ToString() /// - /// A last name for the person. + /// A last name for the person. /// This person must have given permission for their personal information to be shared as part of the open data. /// /// @@ -137,7 +136,7 @@ public override string ToString() /// - /// A first name for the person. + /// A first name for the person. /// This person must have given permission for their personal information to be shared as part of the open data. /// /// @@ -151,7 +150,7 @@ public override string ToString() /// - /// The job title of a person + /// The job title of a person /// This person must have given permission for their personal information to be shared as part of the open data. /// /// @@ -215,7 +214,7 @@ public override string ToString() /// - /// The telephone number of the person + /// The telephone number of the person /// This person must have given permission for their personal information to be shared as part of the open data. /// /// diff --git a/OpenActive.NET/models/Place.cs b/OpenActive.NET/models/Place.cs index 73c6703..d129f4a 100644 --- a/OpenActive.NET/models/Place.cs +++ b/OpenActive.NET/models/Place.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Place, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Place"; - + /// /// A local non-URI identifier for the resource /// @@ -87,7 +86,7 @@ public override string ToString() /// - /// A structured PostalAddress object for the Place. + /// A structured PostalAddress object for the Place. /// Ideally the address should be provided using the PostalAddress structured format. Google Reserve requires https://schema.org/PostalAddress and will not accept plain text addresses. /// /// diff --git a/OpenActive.NET/models/PostalAddress.cs b/OpenActive.NET/models/PostalAddress.cs index 1d07e2d..1a21f10 100644 --- a/OpenActive.NET/models/PostalAddress.cs +++ b/OpenActive.NET/models/PostalAddress.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/PostalAddress, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "PostalAddress"; - + /// /// The country, expressed as a two-letter ISO 3166-1 alpha-2 country code. /// diff --git a/OpenActive.NET/models/PriceSpecification.cs b/OpenActive.NET/models/PriceSpecification.cs index 42fda02..cc3da6a 100644 --- a/OpenActive.NET/models/PriceSpecification.cs +++ b/OpenActive.NET/models/PriceSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/PriceSpecification, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "PriceSpecification"; - + /// /// Indicates if proceeding with booking requires a Customer to pay in advance, pay when attending, or have the option to do either. Values must be one of https://openactive.io/Required, https://openactive.io/Optional or https://openactive.io/Unavailable. /// diff --git a/OpenActive.NET/models/PrivacyPolicy.cs b/OpenActive.NET/models/PrivacyPolicy.cs index 73516d6..e25274b 100644 --- a/OpenActive.NET/models/PrivacyPolicy.cs +++ b/OpenActive.NET/models/PrivacyPolicy.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/DigitalDocument, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,6 +45,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "PrivacyPolicy"; - } } diff --git a/OpenActive.NET/models/PropertyValue.cs b/OpenActive.NET/models/PropertyValue.cs index f7180d5..f43244a 100644 --- a/OpenActive.NET/models/PropertyValue.cs +++ b/OpenActive.NET/models/PropertyValue.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/PropertyValue, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "PropertyValue"; - + /// /// The name of this PropertyValue /// @@ -73,7 +72,7 @@ public override string ToString() /// /// /// - /// "propertyID": "ActivePlaces" + /// "propertyID": "https://example.com/photoconsent" /// /// [DataMember(Name = "propertyID", EmitDefaultValue = false, Order = 9)] diff --git a/OpenActive.NET/models/PropertyValueSpecification.cs b/OpenActive.NET/models/PropertyValueSpecification.cs index 68cf38f..dbcb7a8 100644 --- a/OpenActive.NET/models/PropertyValueSpecification.cs +++ b/OpenActive.NET/models/PropertyValueSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "PropertyValueSpecification"; - + /// /// Display label for the field. /// diff --git a/OpenActive.NET/models/QuantitativeValue.cs b/OpenActive.NET/models/QuantitativeValue.cs index 599ac40..b8e5696 100644 --- a/OpenActive.NET/models/QuantitativeValue.cs +++ b/OpenActive.NET/models/QuantitativeValue.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/QuantitativeValue, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "QuantitativeValue"; - + /// /// The maximum value. /// diff --git a/OpenActive.NET/models/ReplacementSimulateAction.cs b/OpenActive.NET/models/ReplacementSimulateAction.cs index f8b39b3..ac2d463 100644 --- a/OpenActive.NET/models/ReplacementSimulateAction.cs +++ b/OpenActive.NET/models/ReplacementSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:ReplacementSimulateAction"; - } } diff --git a/OpenActive.NET/models/Schedule.cs b/OpenActive.NET/models/Schedule.cs index 56d3a4a..5eb0376 100644 --- a/OpenActive.NET/models/Schedule.cs +++ b/OpenActive.NET/models/Schedule.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://pending.schema.org/Schedule. /// [DataContract] @@ -46,9 +45,9 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Schedule"; - + /// - /// Defines the day of the week upon which the Event takes place. + /// Defines the day of the week upon which the Event takes place. /// When using string values, this MUST conform to iCal BYDAY rule. /// /// diff --git a/OpenActive.NET/models/ScheduledSession.cs b/OpenActive.NET/models/ScheduledSession.cs index d153ca6..25a2fdc 100644 --- a/OpenActive.NET/models/ScheduledSession.cs +++ b/OpenActive.NET/models/ScheduledSession.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Event, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "ScheduledSession"; - + [Obsolete("This property is disinherited in this type, and must not be used.", true)] public override List SubEvent { get; set; } diff --git a/OpenActive.NET/models/SellerAcceptOrderProposalSimulateAction.cs b/OpenActive.NET/models/SellerAcceptOrderProposalSimulateAction.cs index 9a761e8..20dc384 100644 --- a/OpenActive.NET/models/SellerAcceptOrderProposalSimulateAction.cs +++ b/OpenActive.NET/models/SellerAcceptOrderProposalSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:SellerAcceptOrderProposalSimulateAction"; - } } diff --git a/OpenActive.NET/models/SellerMismatchError.cs b/OpenActive.NET/models/SellerMismatchError.cs index 1d3ed3d..5b1c2f5 100644 --- a/OpenActive.NET/models/SellerMismatchError.cs +++ b/OpenActive.NET/models/SellerMismatchError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "SellerMismatchError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "At least one of the 'OrderItem's did not match the specified 'seller'."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/SellerNotFoundError.cs b/OpenActive.NET/models/SellerNotFoundError.cs index 20f7244..87e7650 100644 --- a/OpenActive.NET/models/SellerNotFoundError.cs +++ b/OpenActive.NET/models/SellerNotFoundError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "SellerNotFoundError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The '@id' of the 'seller' included in the request was not found within the Booking System."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/SellerRejectOrderProposalSimulateAction.cs b/OpenActive.NET/models/SellerRejectOrderProposalSimulateAction.cs index f27dd62..98a52c5 100644 --- a/OpenActive.NET/models/SellerRejectOrderProposalSimulateAction.cs +++ b/OpenActive.NET/models/SellerRejectOrderProposalSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:SellerRejectOrderProposalSimulateAction"; - } } diff --git a/OpenActive.NET/models/SellerRequestedCancellationSimulateAction.cs b/OpenActive.NET/models/SellerRequestedCancellationSimulateAction.cs index b4899b2..395378c 100644 --- a/OpenActive.NET/models/SellerRequestedCancellationSimulateAction.cs +++ b/OpenActive.NET/models/SellerRequestedCancellationSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:SellerRequestedCancellationSimulateAction"; - } } diff --git a/OpenActive.NET/models/SellerRequestedCancellationWithMessageSimulateAction.cs b/OpenActive.NET/models/SellerRequestedCancellationWithMessageSimulateAction.cs index 5188cf8..6eeef66 100644 --- a/OpenActive.NET/models/SellerRequestedCancellationWithMessageSimulateAction.cs +++ b/OpenActive.NET/models/SellerRequestedCancellationWithMessageSimulateAction.cs @@ -46,6 +46,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "test:SellerRequestedCancellationWithMessageSimulateAction"; - } } diff --git a/OpenActive.NET/models/SessionSeries.cs b/OpenActive.NET/models/SessionSeries.cs index b386050..b51721f 100644 --- a/OpenActive.NET/models/SessionSeries.cs +++ b/OpenActive.NET/models/SessionSeries.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Event, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "SessionSeries"; - + /// /// A an array of oa:Schedule or oa:PartialSchedule, which represents a recurrence pattern. /// diff --git a/OpenActive.NET/models/ShortAnswerFormFieldSpecification.cs b/OpenActive.NET/models/ShortAnswerFormFieldSpecification.cs index c6a5812..85cecc5 100644 --- a/OpenActive.NET/models/ShortAnswerFormFieldSpecification.cs +++ b/OpenActive.NET/models/ShortAnswerFormFieldSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,6 +45,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "ShortAnswerFormFieldSpecification"; - } } diff --git a/OpenActive.NET/models/Showers.cs b/OpenActive.NET/models/Showers.cs index 3174aff..a80bea6 100644 --- a/OpenActive.NET/models/Showers.cs +++ b/OpenActive.NET/models/Showers.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Showers"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/Slot.cs b/OpenActive.NET/models/Slot.cs index 31ff2a0..9aa906b 100644 --- a/OpenActive.NET/models/Slot.cs +++ b/OpenActive.NET/models/Slot.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/Event, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Slot"; - + /// /// A local non-URI identifier for the resource /// @@ -250,7 +249,7 @@ public override string ToString() /// - /// The end date and time of the slot. Can be specified as a schema:Date or schema:DateTime + /// The end date and time of the slot. Can be specified as a schema:Date or schema:DateTime /// It is recommended that publishers provide either an schema:endDate or a schema:duration for an slot. /// /// diff --git a/OpenActive.NET/models/TaxChargeSpecification.cs b/OpenActive.NET/models/TaxChargeSpecification.cs index c1c4e19..40b5086 100644 --- a/OpenActive.NET/models/TaxChargeSpecification.cs +++ b/OpenActive.NET/models/TaxChargeSpecification.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/PriceSpecification, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "TaxChargeSpecification"; - + /// /// A local non-URI identifier for the resource /// diff --git a/OpenActive.NET/models/TemporarilyUnableToCreateOrderError.cs b/OpenActive.NET/models/TemporarilyUnableToCreateOrderError.cs index 679d1cc..e956ec6 100644 --- a/OpenActive.NET/models/TemporarilyUnableToCreateOrderError.cs +++ b/OpenActive.NET/models/TemporarilyUnableToCreateOrderError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "TemporarilyUnableToCreateOrderError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System is unable for technical reasons to create an 'Order' where the data provided to it is sufficient to allow it to do so."; + /// /// Must always be present and set to /// "statusCode": 503 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 503; diff --git a/OpenActive.NET/models/TemporarilyUnableToDeleteOrderError.cs b/OpenActive.NET/models/TemporarilyUnableToDeleteOrderError.cs index 3659ce8..5aac6db 100644 --- a/OpenActive.NET/models/TemporarilyUnableToDeleteOrderError.cs +++ b/OpenActive.NET/models/TemporarilyUnableToDeleteOrderError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "TemporarilyUnableToDeleteOrderError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System is unable for technical reasons to delete an 'Order' where the data provided to it is sufficient to allow it to do so."; + /// /// Must always be present and set to /// "statusCode": 503 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 503; diff --git a/OpenActive.NET/models/TemporarilyUnableToProduceOrderQuoteError.cs b/OpenActive.NET/models/TemporarilyUnableToProduceOrderQuoteError.cs index 2a9aa02..7e011e6 100644 --- a/OpenActive.NET/models/TemporarilyUnableToProduceOrderQuoteError.cs +++ b/OpenActive.NET/models/TemporarilyUnableToProduceOrderQuoteError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "TemporarilyUnableToProduceOrderQuoteError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System is unable for technical reasons to produce an 'OrderQuote' where the data provided to it is sufficient to allow it to do so."; + /// /// Must always be present and set to /// "statusCode": 503 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 503; diff --git a/OpenActive.NET/models/TemporarilyUnableToUpdateOrderError.cs b/OpenActive.NET/models/TemporarilyUnableToUpdateOrderError.cs index 9fd57f6..265f14c 100644 --- a/OpenActive.NET/models/TemporarilyUnableToUpdateOrderError.cs +++ b/OpenActive.NET/models/TemporarilyUnableToUpdateOrderError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "TemporarilyUnableToUpdateOrderError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System is unable for technical reasons to update an 'Order' (which includes processing the PATCH for cancellation) where the data provided to it is sufficient to allow it to do so."; + /// /// Must always be present and set to /// "statusCode": 503 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 503; diff --git a/OpenActive.NET/models/Terms.cs b/OpenActive.NET/models/Terms.cs index 6d9a66d..c6f01f1 100644 --- a/OpenActive.NET/models/Terms.cs +++ b/OpenActive.NET/models/Terms.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/DigitalDocument, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Terms"; - + /// /// The name of the terms. The name must distinguish this from other terms fields provided, e.g. 'Terms and Conditions' or 'Privacy Policy'. /// @@ -68,9 +67,6 @@ public override string ToString() public new virtual DateTimeOffset? DateModified { get; set; } - /// - /// - /// [DataMember(Name = "requiresExplicitConsent", EmitDefaultValue = false, Order = 9)] [JsonConverter(typeof(ValuesConverter))] public virtual bool? RequiresExplicitConsent { get; set; } diff --git a/OpenActive.NET/models/TermsOfUse.cs b/OpenActive.NET/models/TermsOfUse.cs index 644b6cc..a648519 100644 --- a/OpenActive.NET/models/TermsOfUse.cs +++ b/OpenActive.NET/models/TermsOfUse.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/DigitalDocument, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,6 +45,5 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "TermsOfUse"; - } } diff --git a/OpenActive.NET/models/Toilets.cs b/OpenActive.NET/models/Toilets.cs index 244b241..bb29b45 100644 --- a/OpenActive.NET/models/Toilets.cs +++ b/OpenActive.NET/models/Toilets.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Toilets"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/TooManyRequestsError.cs b/OpenActive.NET/models/TooManyRequestsError.cs index 75ef28d..d0dca89 100644 --- a/OpenActive.NET/models/TooManyRequestsError.cs +++ b/OpenActive.NET/models/TooManyRequestsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "TooManyRequestsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System is rate-limiting the Broker."; + /// /// Must always be present and set to /// "statusCode": 429 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 429; diff --git a/OpenActive.NET/models/TotalPaymentDueMismatchError.cs b/OpenActive.NET/models/TotalPaymentDueMismatchError.cs index da2950e..2d1a7a2 100644 --- a/OpenActive.NET/models/TotalPaymentDueMismatchError.cs +++ b/OpenActive.NET/models/TotalPaymentDueMismatchError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "TotalPaymentDueMismatchError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'totalPaymentDue' property of the submitted 'Order' or 'OrderProposal' does not match the value calculated for that 'Order' or 'OrderProposal' by the Booking System."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/Towels.cs b/OpenActive.NET/models/Towels.cs index 1edfc82..483d686 100644 --- a/OpenActive.NET/models/Towels.cs +++ b/OpenActive.NET/models/Towels.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// 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. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "Towels"; - + /// /// A string, suitable for presentation in user interfaces. /// diff --git a/OpenActive.NET/models/TrustCertification.cs b/OpenActive.NET/models/TrustCertification.cs index 5eaaccf..bb2bdff 100644 --- a/OpenActive.NET/models/TrustCertification.cs +++ b/OpenActive.NET/models/TrustCertification.cs @@ -46,7 +46,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "beta:TrustCertification"; - + /// /// [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.] /// Property containing an array of CertificationLevels diff --git a/OpenActive.NET/models/UnableToProcessOrderItemError.cs b/OpenActive.NET/models/UnableToProcessOrderItemError.cs index d181f36..11fec22 100644 --- a/OpenActive.NET/models/UnableToProcessOrderItemError.cs +++ b/OpenActive.NET/models/UnableToProcessOrderItemError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnableToProcessOrderItemError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "'OrderItem' errors would have been generated at C2 given the same set of 'OrderItem's. The Broker is expected to retry C2 to retrieve such errors."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/UnacceptableOfferError.cs b/OpenActive.NET/models/UnacceptableOfferError.cs index 26dc307..99a78f9 100644 --- a/OpenActive.NET/models/UnacceptableOfferError.cs +++ b/OpenActive.NET/models/UnacceptableOfferError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnacceptableOfferError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The '@id' provided for the 'acceptedOffer' is not a URL which corresponds to an applicable 'Offer' for the Opportunity."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/UnauthenticatedError.cs b/OpenActive.NET/models/UnauthenticatedError.cs index b398686..661595e 100644 --- a/OpenActive.NET/models/UnauthenticatedError.cs +++ b/OpenActive.NET/models/UnauthenticatedError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnauthenticatedError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Broker did not supply any form of authentication."; + /// /// Must always be present and set to /// "statusCode": 403 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 403; diff --git a/OpenActive.NET/models/UnexpectedOrderTypeError.cs b/OpenActive.NET/models/UnexpectedOrderTypeError.cs index 66458ac..774a505 100644 --- a/OpenActive.NET/models/UnexpectedOrderTypeError.cs +++ b/OpenActive.NET/models/UnexpectedOrderTypeError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnexpectedOrderTypeError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The '@type' of the JSON-LD object submitted to the endpoint did not match the expected '@type', as defined in the Open Booking API specification."; + /// /// Must always be present and set to /// "statusCode": 500 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 500; diff --git a/OpenActive.NET/models/UnknownOfferError.cs b/OpenActive.NET/models/UnknownOfferError.cs index 16fc2c9..12fac72 100644 --- a/OpenActive.NET/models/UnknownOfferError.cs +++ b/OpenActive.NET/models/UnknownOfferError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnknownOfferError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The '@id' provided for the 'acceptedOffer' is not a URL which corresponds to an 'Offer' within the Booking System."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/UnknownOpportunityError.cs b/OpenActive.NET/models/UnknownOpportunityError.cs index 7399f26..74ba966 100644 --- a/OpenActive.NET/models/UnknownOpportunityError.cs +++ b/OpenActive.NET/models/UnknownOpportunityError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnknownOpportunityError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The '@id' provided for the 'orderedItem' is not a URL which corresponds to an Opportunity within the Booking System."; + /// /// Must always be present and set to /// "statusCode": 409 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 409; diff --git a/OpenActive.NET/models/UnknownOrIncorrectEndpointError.cs b/OpenActive.NET/models/UnknownOrIncorrectEndpointError.cs index 2cc62a8..60c631c 100644 --- a/OpenActive.NET/models/UnknownOrIncorrectEndpointError.cs +++ b/OpenActive.NET/models/UnknownOrIncorrectEndpointError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnknownOrIncorrectEndpointError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System has no endpoint matching the one requested."; + /// /// Must always be present and set to /// "statusCode": 404 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 404; diff --git a/OpenActive.NET/models/UnknownOrderError.cs b/OpenActive.NET/models/UnknownOrderError.cs index 11d8cdd..357ed10 100644 --- a/OpenActive.NET/models/UnknownOrderError.cs +++ b/OpenActive.NET/models/UnknownOrderError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnknownOrderError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The Booking System has no 'Order' matching the one requested."; + /// /// Must always be present and set to /// "statusCode": 404 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 404; diff --git a/OpenActive.NET/models/UnnecessaryPaymentDetailsError.cs b/OpenActive.NET/models/UnnecessaryPaymentDetailsError.cs index 111ee8f..93e4334 100644 --- a/OpenActive.NET/models/UnnecessaryPaymentDetailsError.cs +++ b/OpenActive.NET/models/UnnecessaryPaymentDetailsError.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "UnnecessaryPaymentDetailsError"; - + /// /// 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. /// @@ -62,9 +62,11 @@ public override string ToString() public override string Name { get; set; } = "The 'payment' property of the 'Order' is provided when it is expected to be absent."; + /// /// Must always be present and set to /// "statusCode": 400 /// + /// [DataMember(Name = "statusCode", EmitDefaultValue = false, Order = 8)] [JsonConverter(typeof(ValuesConverter))] public override long? StatusCode { get; set; } = 400; diff --git a/OpenActive.NET/models/VideoObject.cs b/OpenActive.NET/models/VideoObject.cs index 054c094..1c4c718 100644 --- a/OpenActive.NET/models/VideoObject.cs +++ b/OpenActive.NET/models/VideoObject.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://schema.org/VideoObject, which means that any of this type's properties within schema.org may also be used. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "VideoObject"; - + /// /// The URL for a thumbnail image for the video. /// diff --git a/OpenActive.NET/models/VirtualLocation.cs b/OpenActive.NET/models/VirtualLocation.cs index b7849eb..eac5c31 100644 --- a/OpenActive.NET/models/VirtualLocation.cs +++ b/OpenActive.NET/models/VirtualLocation.cs @@ -7,7 +7,6 @@ namespace OpenActive.NET { /// - /// /// This type is derived from https://pending.schema.org/VirtualLocation. /// [DataContract] @@ -46,7 +45,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "VirtualLocation"; - + /// /// The name of the service that is providing remote access to the Opportunity. /// diff --git a/OpenActive.NET/models/WebAPI.cs b/OpenActive.NET/models/WebAPI.cs index f763ce8..37b24b5 100644 --- a/OpenActive.NET/models/WebAPI.cs +++ b/OpenActive.NET/models/WebAPI.cs @@ -48,7 +48,7 @@ public override string ToString() [DataMember(Name = "@type", Order = 1)] public override string Type => "WebAPI"; - + /// /// The name of the WebAPI ///