Skip to content

Instantly share code, notes, and snippets.

@yuka1984
Created April 15, 2019 01:13
Show Gist options
  • Save yuka1984/ccf8ffb4b2abc04d7277942a4ad40461 to your computer and use it in GitHub Desktop.
Save yuka1984/ccf8ffb4b2abc04d7277942a4ad40461 to your computer and use it in GitHub Desktop.
public class ProductCreateRequest
{
/// <summary>
/// Sku
/// </summary>
[MaxLength(32)]
[Required]
[JsonProperty("sku")]
public string Sku { get; set; }
/// <summary>
/// Product Name
/// </summary>
[MaxLength(100)]
[Required]
[JsonProperty("name")]
public string Name { get; set; }
/// <summary>
/// Product Amount
/// </summary>
[Required]
[JsonProperty("amount")]
public int? Amount { get; set; }
/// <summary>
/// Stock
/// </summary>
[JsonProperty("stock")]
public int? Stock { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment