61 lines
2.8 KiB
C#
61 lines
2.8 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 CaptureObject
|
|
{
|
|
/// <summary>
|
|
/// The captured amount in minor units.
|
|
/// </summary>
|
|
/// <value>The captured amount in minor units.</value>
|
|
[Required]
|
|
[Range(0, 100000000)]
|
|
[JsonProperty("captured_amount")]
|
|
public long? CapturedAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// Description of the capture shown to the customer. Maximum 255 characters.
|
|
/// </summary>
|
|
/// <value>Description of the capture shown to the customer. Maximum 255 characters.</value>
|
|
[StringLength(255, MinimumLength = 0)]
|
|
[JsonProperty("description")]
|
|
public string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// Internal reference to the capture. This will be included in the settlement files. Max length is 255 characters.
|
|
/// </summary>
|
|
/// <value>Internal reference to the capture. 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 this capture. Maximum 1000 items.
|
|
/// </summary>
|
|
/// <value>Order lines for this capture. Maximum 1000 items.</value>
|
|
[JsonProperty("order_lines")]
|
|
public List<OrderLine> OrderLines { get; set; }
|
|
|
|
/// <summary>
|
|
/// Shipping information for this capture. Maximum 500 items.
|
|
/// </summary>
|
|
/// <value>Shipping information for this capture. Maximum 500 items.</value>
|
|
[JsonProperty("shipping_info")]
|
|
public List<ShippingInfo> ShippingInfo { get; set; }
|
|
|
|
/// <summary>
|
|
/// Delay before the order will be shipped. Use for improving the customer experience regarding payments. This field is currently not returned when reading the order. Minimum: 0. Please note: to be able to submit values larger than 0, this has to be enabled in your merchant account. Please contact Klarna for further information.
|
|
/// </summary>
|
|
/// <value>Delay before the order will be shipped. Use for improving the customer experience regarding payments. This field is currently not returned when reading the order. Minimum: 0. Please note: to be able to submit values larger than 0, this has to be enabled in your merchant account. Please contact Klarna for further information.</value>
|
|
[JsonProperty("shipping_delay")]
|
|
public long? ShippingDelay { get; set; }
|
|
}
|
|
}
|