70 lines
3.3 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 ShippingInfo
{
/// <summary>
/// Name of the shipping company (as specific as possible). Maximum 100 characters. Example: &#39;DHL US&#39; and not only &#39;DHL&#39;
/// </summary>
/// <value>Name of the shipping company (as specific as possible). Maximum 100 characters. Example: &#39;DHL US&#39; and not only &#39;DHL&#39;</value>
[StringLength(100, MinimumLength = 0)]
[JsonProperty("shipping_company")]
public string ShippingCompany { get; set; }
/// <summary>
/// Shipping method. Allowed values matches (PickUpStore|Home|BoxReg|BoxUnreg|PickUpPoint|Own|Postal|DHLPackstation|Digital|Undefined)
/// </summary>
/// <value>Shipping method. Allowed values matches (PickUpStore|Home|BoxReg|BoxUnreg|PickUpPoint|Own|Postal|DHLPackstation|Digital|Undefined)</value>
[RegularExpression("/(PickUpStore|Home|BoxReg|BoxUnreg|PickUpPoint|Own|Postal|DHLPackstation|Digital|Undefined)/")]
[JsonProperty("shipping_method")]
public string ShippingMethod { get; set; }
/// <summary>
/// Tracking number for the shipment. Maximum 100 characters.
/// </summary>
/// <value>Tracking number for the shipment. Maximum 100 characters.</value>
[StringLength(100, MinimumLength = 0)]
[JsonProperty("tracking_number")]
public string TrackingNumber { get; set; }
/// <summary>
/// URI where the customer can track their shipment. Maximum 1024 characters.
/// </summary>
/// <value>URI where the customer can track their shipment. Maximum 1024 characters.</value>
[StringLength(1024, MinimumLength = 0)]
[JsonProperty("tracking_uri")]
public string TrackingUri { get; set; }
/// <summary>
/// Name of the shipping company for the return shipment (as specific as possible). Maximum 100 characters. Example: &#39;DHL US&#39; and not only &#39;DHL&#39;
/// </summary>
/// <value>Name of the shipping company for the return shipment (as specific as possible). Maximum 100 characters. Example: &#39;DHL US&#39; and not only &#39;DHL&#39;</value>
[StringLength(100, MinimumLength = 0)]
[JsonProperty("return_shipping_company")]
public string ReturnShippingCompany { get; set; }
/// <summary>
/// Tracking number for the return shipment. Maximum 100 characters.
/// </summary>
/// <value>Tracking number for the return shipment. Maximum 100 characters.</value>
[StringLength(100, MinimumLength = 0)]
[JsonProperty("return_tracking_number")]
public string ReturnTrackingNumber { get; set; }
/// <summary>
/// URL where the customer can track the return shipment. Maximum 1024 characters.
/// </summary>
/// <value>URL where the customer can track the return shipment. Maximum 1024 characters.</value>
[StringLength(1024, MinimumLength = 0)]
[JsonProperty("return_tracking_uri")]
public string ReturnTrackingUri { get; set; }
}
}