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