Skip to content

Commit

Permalink
Added [JsonIgnore] on Restock property because of refund error (#443)
Browse files Browse the repository at this point in the history
Added [JsonIgnore] on Restock property because of refund error
  • Loading branch information
nozzlegear authored Jan 30, 2020
2 parents 8ef7f6e + 4ed6ec2 commit 14b18a7
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 14b18a7

Please sign in to comment.