55 lines
2.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace gehGassi.Klarna.OrderManagement
{
public class Refund
{
/// <summary>
/// The refund id. Generated when the refund is created.
/// </summary>
/// <value>The refund id. Generated when the refund is created.</value>
[JsonProperty("refund_id")]
public string RefundId { get; set; }
/// <summary>
/// Refunded amount in minor units.
/// </summary>
/// <value>Refunded amount in minor units.</value>
[JsonProperty("refunded_amount")]
public long? RefundedAmount { get; set; }
/// <summary>
/// The time of the refund. ISO 8601.
/// </summary>
/// <value>The time of the refund. ISO 8601.</value>
[JsonProperty("refunded_at")]
public DateTime? RefundedAt { 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>
[JsonProperty("description")]
public string Description { 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; }
/// <summary>
/// Only relevant for B2B Orders. If the flag is set to true for an order with B2B_invoice as payment method, the customer will receive the refund as a credit invoice.
/// </summary>
/// <value>Only relevant for B2B Orders. If the flag is set to true for an order with B2B_invoice as payment method, the customer will receive the refund as a credit invoice.</value>
[JsonProperty("credit_invoice")]
public bool? CreditInvoice { get; set; }
}
}