44 lines
1.2 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 Addon
{
/// <summary>
/// The type of the add-on, e.g. sms or entry-code
/// </summary>
/// <value>The type of the add-on, e.g. sms or entry-code</value>
[Required]
[JsonProperty("type")]
public string Type { get; set; }
/// <summary>
/// The price of the add-on
/// </summary>
/// <value>The price of the add-on</value>
[Required]
[JsonProperty("price")]
public long? Price { get; set; }
/// <summary>
/// The ID provided by the TMS
/// </summary>
/// <value>The ID provided by the TMS</value>
[JsonProperty("external_id")]
public string ExternalId { get; set; }
/// <summary>
/// The text provided by the user
/// </summary>
/// <value>The text provided by the user</value>
[JsonProperty("user_input")]
public string UserInput { get; set; }
}
}