gehgassi_backend/gehGassi.Klarna/Checkout/ProductIdentifiers.cs

46 lines
2.6 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.Checkout
{
public class ProductIdentifiers
{
/// <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.
/// </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.</value>
[StringLength(70, MinimumLength = 0)]
[JsonProperty("brand")]
public string Brand { get; set; }
/// <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;. (max 750 characters) Example: \&quot;Electronics Store &gt; Computers &amp; Tablets &gt; Desktops\&quot;
/// </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;. (max 750 characters) Example: \&quot;Electronics Store &gt; Computers &amp; Tablets &gt; Desktops\&quot;</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
/// </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</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
/// </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</value>
[StringLength(70, MinimumLength = 0)]
[JsonProperty("manufacturer_part_number")]
public string ManufacturerPartNumber { get; set; }
}
}