46 lines
2.8 KiB
C#
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's category path as used in the merchant's webshop. Include the full and most detailed category and separate the segments with ' > '. Maximum 750 characters. Example: Electronics Store > Computers & Tablets > Desktops
|
|
/// </summary>
|
|
/// <value>The product's category path as used in the merchant's webshop. Include the full and most detailed category and separate the segments with ' > '. Maximum 750 characters. Example: Electronics Store > Computers & Tablets > Desktops</value>
|
|
[StringLength(750, MinimumLength = 0)]
|
|
[JsonProperty("category_path")]
|
|
public string CategoryPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// The product'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'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'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'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'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'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; }
|
|
}
|
|
}
|