70 lines
3.3 KiB
C#
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: 'DHL US' and not only 'DHL'
|
|
/// </summary>
|
|
/// <value>Name of the shipping company (as specific as possible). Maximum 100 characters. Example: 'DHL US' and not only 'DHL'</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: 'DHL US' and not only 'DHL'
|
|
/// </summary>
|
|
/// <value>Name of the shipping company for the return shipment (as specific as possible). Maximum 100 characters. Example: 'DHL US' and not only 'DHL'</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; }
|
|
}
|
|
}
|