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 RefundObject { /// /// Refunded amount in minor units. /// /// Refunded amount in minor units. [Required] [Range(0, 100000000)] [JsonProperty("refunded_amount")] public long? RefundedAmount { get; set; } /// /// Description of the refund shown to the customer. Max length is 255 characters. /// /// Description of the refund shown to the customer. Max length is 255 characters. [StringLength(255, MinimumLength = 0)] [JsonProperty("description")] public string Description { get; set; } /// /// Internal reference to the refund. This will be included in the settlement files. Max length is 255 characters. /// /// Internal reference to the refund. This will be included in the settlement files. Max length is 255 characters. [StringLength(255, MinimumLength = 0)] [JsonProperty("reference")] public string Reference { get; set; } /// /// Order lines for the refund shown to the customer. Optional but increases the customer experience. Maximum 1000 order lines. /// /// Order lines for the refund shown to the customer. Optional but increases the customer experience. Maximum 1000 order lines. [JsonProperty("order_lines")] public List OrderLines { get; set; } } }