Skip to content

Commit

Permalink
Deprecate ageRange for ageRestriction (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
openactive-bot authored Mar 2, 2021
1 parent f39d508 commit 967f655
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenActive.NET/models/Offer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ public override string ToString()


/// <summary>
/// [DEPRECATED: Use `ageRestriction` instead of `ageRange` within the `Offer` for cases where the `Offer` is age restricted.]
/// Indicates that an Offer is only applicable to a specific age range.
/// </summary>
[DataMember(Name = "ageRange", EmitDefaultValue = false, Order = 12)]
[JsonConverter(typeof(ValuesConverter))]
[Obsolete("Use `ageRestriction` instead of `ageRange` within the `Offer` for cases where the `Offer` is age restricted.", false)]
public virtual QuantitativeValue AgeRange { get; set; }


Expand Down

0 comments on commit 967f655

Please sign in to comment.