Skip to content

Commit 967f655

Browse files
Deprecate ageRange for ageRestriction (#21)
1 parent f39d508 commit 967f655

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

OpenActive.NET/models/Offer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ public override string ToString()
116116

117117

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

125127

0 commit comments

Comments
 (0)