93 lines
3.4 KiB
C#
93 lines
3.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using gehGassi.Klarna.Checkout;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace gehGassi.Klarna.OrderManagement
|
|
{
|
|
public class Capture
|
|
{
|
|
/// <summary>
|
|
/// The capture id. Generated when the capture is created.
|
|
/// </summary>
|
|
/// <value>The capture id. Generated when the capture is created.</value>
|
|
[JsonProperty("capture_id")]
|
|
public string CaptureId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Internal reference to the capture which will be included in the settlement files. Max length is 255 characters.
|
|
/// </summary>
|
|
/// <value>Internal reference to the capture which 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>
|
|
/// Customer friendly reference id, used as a reference when communicating with the customer.
|
|
/// </summary>
|
|
/// <value>Customer friendly reference id, used as a reference when communicating with the customer.</value>
|
|
[JsonProperty("klarna_reference")]
|
|
public string KlarnaReference { get; set; }
|
|
|
|
/// <summary>
|
|
/// The captured amount in minor units.
|
|
/// </summary>
|
|
/// <value>The captured amount in minor units.</value>
|
|
[JsonProperty("captured_amount")]
|
|
public long? CapturedAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// The time of the capture. Specified in ISO 8601.
|
|
/// </summary>
|
|
/// <value>The time of the capture. Specified in ISO 8601.</value>
|
|
[JsonProperty("captured_at")]
|
|
public DateTime? CapturedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Description of the capture shown to the customer.
|
|
/// </summary>
|
|
/// <value>Description of the capture shown to the customer.</value>
|
|
[JsonProperty("description")]
|
|
public string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// List of order lines for the capture shown to the customer.
|
|
/// </summary>
|
|
/// <value>List of order lines for the capture shown to the customer.</value>
|
|
[JsonProperty("order_lines")]
|
|
public List<OrderLine> OrderLines { get; set; }
|
|
|
|
/// <summary>
|
|
/// Refunded amount for this capture in minor units.
|
|
/// </summary>
|
|
/// <value>Refunded amount for this capture in minor units.</value>
|
|
[JsonProperty("refunded_amount")]
|
|
public long? RefundedAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// Billing address for the capture.
|
|
/// </summary>
|
|
/// <value>Billing address for the capture.</value>
|
|
[JsonProperty("billing_address")]
|
|
public Address BillingAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// Shipping address for the capture
|
|
/// </summary>
|
|
/// <value>Shipping address for the capture</value>
|
|
[JsonProperty("shipping_address")]
|
|
public Address ShippingAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// Shipping information for this capture.
|
|
/// </summary>
|
|
/// <value>Shipping information for this capture.</value>
|
|
[JsonProperty("shipping_info")]
|
|
public List<ShippingInfo> ShippingInfo { get; set; }
|
|
}
|
|
}
|