Class OrderLine
Inheritance
Inherited Members
Namespace: Klarna.Rest.Core.Model
Assembly: Klarna.Rest.Core.dll
Syntax
public class OrderLine
Properties
| Improve this Doc View SourceImageUrl
URL to an image that can be later embedded in communications between Klarna and the customer. (max 1024 characters)
Declaration
[JsonProperty(PropertyName = "image_url")]
public string ImageUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MerchantData
Pass through field. (max 255 characters)
Declaration
[JsonProperty(PropertyName = "merchant_data")]
public string MerchantData { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Descriptive item name.
Declaration
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Required
ProductIdentifiers
Additional information identifying an item
Declaration
[JsonProperty(PropertyName = "product_identifiers")]
public ProductIdentifiers ProductIdentifiers { get; set; }
Property Value
Type | Description |
---|---|
ProductIdentifiers |
ProductUrl
URL to the product page that can be later embedded in communications between Klarna and the customer. (max 1024 characters)
Declaration
[JsonProperty(PropertyName = "product_url")]
public string ProductUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Quantity
Non-negative. The item quantity.
Declaration
[JsonProperty(PropertyName = "quantity")]
public int Quantity { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Required
QuantityUnit
Unit used to describe the quantity, e.g. kg, pcs... If defined has to be 1-8 characters
Declaration
[JsonProperty(PropertyName = "quantity_unit")]
public string QuantityUnit { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Reference
Article number, SKU or similar.
Declaration
[JsonProperty(PropertyName = "reference")]
public string Reference { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ShippingAttributes
Shipping attributes of an item
Declaration
[JsonProperty(PropertyName = "shipping_attributes")]
public ShippingAttributes ShippingAttributes { get; set; }
Property Value
Type | Description |
---|---|
ShippingAttributes | Shipping attributes of an item |
TaxRate
Non-negative. In percent, two implicit decimals. I.e 2500 = 25%. (max value: 10000)
Declaration
[JsonProperty(PropertyName = "tax_rate")]
public int TaxRate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Required
TotalAmount
Includes tax and discount. Must match (quantity * unit_price) - total_discount_amount within ±quantity. (max value: 100000000)
Declaration
[JsonProperty(PropertyName = "total_amount")]
public int TotalAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Required
TotalDiscountAmount
Non-negative minor units. Includes tax.
Declaration
[JsonProperty(PropertyName = "total_discount_amount")]
public int TotalDiscountAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TotalTaxAmount
Must be within ±1 of total_amount - total_amount * 10000 / (10000 + tax_rate). Negative when type is discount.
Declaration
[JsonProperty(PropertyName = "total_tax_amount")]
public int TotalTaxAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Required
Type
Order line type.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty(PropertyName = "type")]
public OrderLineType Type { get; set; }
Property Value
Type | Description |
---|---|
OrderLineType |
UnitPrice
Minor units. Includes tax, excludes discount. (max value: 100000000)
Declaration
[JsonProperty(PropertyName = "unit_price")]
public int UnitPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Required