46 lines
2.8 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace gehGassi.Klarna.OrderManagement
{
public class ProductIdentifiers
{
/// <summary>
/// The product&#39;s category path as used in the merchant&#39;s webshop. Include the full and most detailed category and separate the segments with &#39; &gt; &#39;. Maximum 750 characters. Example: Electronics Store &gt; Computers &amp; Tablets &gt; Desktops
/// </summary>
/// <value>The product&#39;s category path as used in the merchant&#39;s webshop. Include the full and most detailed category and separate the segments with &#39; &gt; &#39;. Maximum 750 characters. Example: Electronics Store &gt; Computers &amp; Tablets &gt; Desktops</value>
[StringLength(750, MinimumLength = 0)]
[JsonProperty("category_path")]
public string CategoryPath { get; set; }
/// <summary>
/// The product&#39;s Global Trade Item Number (GTIN). Common types of GTIN are EAN, ISBN or UPC. Exclude dashes and spaces, where possible. Maximum 50 characters. Example: 735858293167
/// </summary>
/// <value>The product&#39;s Global Trade Item Number (GTIN). Common types of GTIN are EAN, ISBN or UPC. Exclude dashes and spaces, where possible. Maximum 50 characters. Example: 735858293167</value>
[StringLength(50, MinimumLength = 0)]
[JsonProperty("global_trade_item_number")]
public string GlobalTradeItemNumber { get; set; }
/// <summary>
/// The product&#39;s Manufacturer Part Number (MPN), which - together with the brand - uniquely identifies a product. Only submit MPNs assigned by a manufacturer and use the most specific MPN possible. Maximum 70 characters. Example: BOXNUC5CPYH
/// </summary>
/// <value>The product&#39;s Manufacturer Part Number (MPN), which - together with the brand - uniquely identifies a product. Only submit MPNs assigned by a manufacturer and use the most specific MPN possible. Maximum 70 characters. Example: BOXNUC5CPYH</value>
[StringLength(70, MinimumLength = 0)]
[JsonProperty("manufacturer_part_number")]
public string ManufacturerPartNumber { get; set; }
/// <summary>
/// The product&#39;s brand name as generally recognized by consumers. If no brand is available for a product, do not supply any value. Maximum 70 characters. Example: Intel
/// </summary>
/// <value>The product&#39;s brand name as generally recognized by consumers. If no brand is available for a product, do not supply any value. Maximum 70 characters. Example: Intel</value>
[StringLength(70, MinimumLength = 0)]
[JsonProperty("brand")]
public string Brand { get; set; }
}
}