public LineItem ( string title, double price, int quantityPurchased, string productId = null, string sku = null, string condition = null, bool requiresShipping = null, Riskified.SDK.Model.OrderElements.Seller seller = null, DeliveredToType deliveredTo = null, System.DateTime delivered_at = null, ProductType productType = null, string brand = null, string category = null, string subCategory = null ) : System | ||
title | string | A title describing the product |
price | double | The product price in the currency matching the one used in the whole order and set in the "Currency" field |
quantityPurchased | int | Quantity purchased of the item |
productId | string | The Product ID number (optional) |
sku | string | The stock keeping unit of the product (optional) |
condition | string | |
requiresShipping | bool | |
seller | Riskified.SDK.Model.OrderElements.Seller | |
deliveredTo | DeliveredToType | |
delivered_at | System.DateTime | |
productType | ProductType | |
brand | string | |
category | string | |
subCategory | string | |
return | System |
public LineItem(string title,
double price,
int quantityPurchased,
//optional
string productId = null,
string sku = null,
string condition = null,
bool? requiresShipping = null,
Seller seller = null,
DeliveredToType? deliveredTo = null,
DateTime? delivered_at = null,
ProductType? productType = null,
string brand = null,
string category = null,
string subCategory = null)
{
Title = title;
Price = price;
QuantityPurchased = quantityPurchased;
// optional
ProductId = productId;
Sku = sku;
Condition = condition;
RequiresShipping = requiresShipping;
Seller = seller;
DeliveredTo = deliveredTo;
ProductType = productType;
Category = category;
SubCategory = subCategory;
DeliveredAt = delivered_at;
Brand = brand;
}