Skip to content

Commit

Permalink
Added [JsonIgnore] on Restock property because of refund error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayak committed Jan 24, 2020
1 parent 8ef7f6e commit 4ed6ec2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ShopifySharp/Entities/Refund.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace ShopifySharp
public class Refund : ShopifyObject
{
/// <summary>
/// The date and time when the refund was created.
/// The date and time when the refund was created.
/// </summary>
[JsonProperty("created_at")]
public DateTimeOffset? CreatedAt { get; set; }
Expand Down Expand Up @@ -63,7 +63,8 @@ public class Refund : ShopifyObject
/// <summary>
/// Whether or not the line items were added back to the store inventory.
/// </summary>
[JsonProperty("restock")]
[JsonIgnore]
[Obsolete("The Restock property is now obsolete and will be removed in a future release. Attempting to use this property when creating or updating a Refund will result in the Shopify API returning an error. You must use the RestockType property instead.")]
public bool? Restock { get; set; }

/// <summary>
Expand Down

0 comments on commit 4ed6ec2

Please sign in to comment.