111 lines
3.8 KiB
C#
111 lines
3.8 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 SelectedShippingOptionDto
|
|
{
|
|
/// <summary>
|
|
/// The id of the selected shipping option as provided by the TMS
|
|
/// </summary>
|
|
/// <value>The id of the selected shipping option as provided by the TMS</value>
|
|
[JsonProperty("id")]
|
|
public string Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// The display name of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The display name of the selected shipping option</value>
|
|
[JsonProperty("name")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// The shipment_id provided by the TMS
|
|
/// </summary>
|
|
/// <value>The shipment_id provided by the TMS</value>
|
|
[JsonProperty("tms_reference")]
|
|
public string TmsReference { get; set; }
|
|
|
|
/// <summary>
|
|
/// The carrier for the selected shipping option
|
|
/// </summary>
|
|
/// <value>The carrier for the selected shipping option</value>
|
|
[JsonProperty("carrier")]
|
|
public string Carrier { get; set; }
|
|
|
|
/// <summary>
|
|
/// The type of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The type of the selected shipping option</value>
|
|
[JsonProperty("type")]
|
|
public string Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// The method of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The method of the selected shipping option</value>
|
|
[JsonProperty("method")]
|
|
public string Method { get; set; }
|
|
|
|
/// <summary>
|
|
/// The price of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The price of the selected shipping option</value>
|
|
[JsonProperty("price")]
|
|
public long? Price { get; set; }
|
|
|
|
/// <summary>
|
|
/// The tax amount of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The tax amount of the selected shipping option</value>
|
|
[JsonProperty("tax_amount")]
|
|
public long? TaxAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// The tax rate of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The tax rate of the selected shipping option</value>
|
|
[JsonProperty("tax_rate")]
|
|
public long? TaxRate { get; set; }
|
|
|
|
/// <summary>
|
|
/// The location of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The location of the selected shipping option</value>
|
|
[JsonProperty("location")]
|
|
public Location Location { get; set; }
|
|
|
|
/// <summary>
|
|
/// The chosen timeslot of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The chosen timeslot of the selected shipping option</value>
|
|
[JsonProperty("timeslot")]
|
|
public Timeslot Timeslot { get; set; }
|
|
|
|
/// <summary>
|
|
/// The chosen timeslot of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The chosen timeslot of the selected shipping option</value>
|
|
[JsonProperty("carrier_product")]
|
|
public CarrierProduct CarrierProduct { get; set; }
|
|
|
|
/// <summary>
|
|
/// Array consisting of add-ons selected by the consumer, may be empty
|
|
/// </summary>
|
|
/// <value>Array consisting of add-ons selected by the consumer, may be empty</value>
|
|
[JsonProperty("selected_addons")]
|
|
public List<Addon> SelectedAddons { get; set; }
|
|
|
|
/// <summary>
|
|
/// The class of the selected shipping option
|
|
/// </summary>
|
|
/// <value>The class of the selected shipping option</value>
|
|
[JsonProperty("class")]
|
|
public string Class { get; set; }
|
|
}
|
|
}
|