38 lines
1.1 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 UpdateAuthorization
{
/// <summary>
/// The new total order amount. Minor units.
/// </summary>
/// <value>The new total order amount. Minor units.</value>
[Required]
[Range(0, 100000000)]
[JsonProperty("order_amount")]
public long? OrderAmount { get; set; }
/// <summary>
/// Description of the change.
/// </summary>
/// <value>Description of the change.</value>
[StringLength(255, MinimumLength = 0)]
[JsonProperty("description")]
public string Description { get; set; }
/// <summary>
/// New set of order lines for the order.
/// </summary>
/// <value>New set of order lines for the order.</value>
[JsonProperty("order_lines")]
public List<OrderLine> OrderLines { get; set; }
}
}