Skip to content

Commit

Permalink
Merge pull request #793 from nturini-cascinanet/master
Browse files Browse the repository at this point in the history
Update Product.cs
  • Loading branch information
XiaoFaye authored Jan 28, 2025
2 parents e004090 + a907846 commit c36a620
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions WooCommerce/v3/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,12 @@ public class Product : JsonObject
/// </summary>
[DataMember(EmitDefaultValue = false)]
public ProductError error { get; set; }

/// <summary>
/// Product GTIN, UPC, EAN o ISBN
/// </summary>
[DataMember(EmitDefaultValue = false)]
public string global_unique_id { get; set; }
}

[DataContract]
Expand Down
6 changes: 6 additions & 0 deletions WooCommerce/v3/Variation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ public class Variation : JsonObject
[DataMember(EmitDefaultValue = false)]
public string sku { get; set; }

/// <summary>
/// Variation GTIN, UPC, EAN o ISBN
/// </summary>
[DataMember(EmitDefaultValue = false)]
public string global_unique_id { get; set; }

[DataMember(EmitDefaultValue = false, Name = "price")]
protected object priceValue { get; set; }
/// <summary>
Expand Down

0 comments on commit c36a620

Please sign in to comment.