Try your search with a different keyword or use * as a wildcard.
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Nop.Core.Domain.Catalog;
namespace Nop.Services.Installation.SampleData;
///
/// Represents a sample products
///
public partial class SampleProducts
{
///
/// Gets or sets products
///
public List Products { get; set; } = new();
///
/// Gets or sets related products
///
public List RelatedProducts { get; set; } = new();
#region Nested classes
///
/// Represents a sample download
///
public partial class SampleDownload
{
///
/// The mime-type of the download
///
public string ContentType { get; set; }
///
/// The filename of the download
///
public string Filename { get; set; }
///
/// Gets or sets the extension
///
public string Extension { get; set; }
///
/// Gets or sets a value indicating whether the download is new
///
public bool IsNew { get; set; }
///
/// Gets or sets a download file name
///
public string DownloadFileName { get; set; }
}
///
/// Represents a related product
///
public partial class SampleRelatedProduct
{
///
/// Gets or sets the first product identifier
///
public string FirstProductSku { get; set; }
///
/// Gets or sets the second product identifier
///
public string SecondProductSku { get; set; }
}
///
/// Represents a sample product
///
public partial class SampleProduct
{
///
/// Gets or sets the values indicating whether this product is visible in catalog or search results.
/// It's used when this product is associated to some "grouped" one
/// This way associated products could be accessed/added/etc only from a grouped product details page
///
public bool VisibleIndividually { get; set; }
///
/// Gets or sets the name
///
public string Name { get; set; }
///
/// Gets or sets the short description
///
public string ShortDescription { get; set; }
///
/// Gets or sets the full description
///
public string FullDescription { get; set; }
///
/// Gets or sets a value indicating whether to show the product on home page
///
public bool ShowOnHomepage { get; set; }
///
/// Gets or sets a value indicating whether the product allows customer reviews
///
public bool AllowCustomerReviews { get; set; }
///
/// Gets or sets the SKU
///
public string Sku { get; set; }
///
/// Gets or sets a value indicating whether the product is gift card
///
public bool IsGiftCard { get; set; }
///
/// Gets or sets a value indicating whether the product is downloaded
///
public bool IsDownload { get; set; }
///
/// Gets or sets the download identifier
///
public SampleDownload Download { get; set; }
///
/// Gets or sets a value indicating whether this downloadable product can be downloaded unlimited number of times
///
public bool UnlimitedDownloads { get; set; }
///
/// Gets or sets the sample download identifier
///
public SampleDownload SampleDownload { get; set; }
///
/// Gets or sets a value indicating whether the product has user agreement
///
public bool HasUserAgreement { get; set; }
///
/// Gets or sets a value indicating whether the product is recurring
///
public bool IsRecurring { get; set; }
///
/// Gets or sets the cycle length
///
public int RecurringCycleLength { get; set; }
///
/// Gets or sets the total cycles
///
public int RecurringTotalCycles { get; set; }
///
/// Gets or sets a value indicating whether the product is rental
///
public bool IsRental { get; set; }
///
/// Gets or sets the rental length for some period (price for this period)
///
public int RentalPriceLength { get; set; }
///
/// Gets or sets a value indicating whether the entity is ship enabled
///
public bool IsShipEnabled { get; set; }
///
/// Gets or sets a value indicating whether the entity is free shipping
///
public bool IsFreeShipping { get; set; }
///
/// Gets or sets a delivery date identifier
///
public string DeliveryDate { get; set; }
///
/// Gets or sets the tax category name
///
public string TaxCategoryName { get; set; }
///
/// Gets or sets a product availability range identifier
///
public string ProductAvailabilityRange { get; set; }
///
/// Gets or sets the stock quantity
///
public int StockQuantity { get; set; }
///
/// Gets or sets a value indicating whether to display stock availability
///
public bool DisplayStockAvailability { get; set; }
///
/// Gets or sets the quantity when admin should be notified
///
public int NotifyAdminForQuantityBelow { get; set; }
///
/// Gets or sets a value indicating whether to back in stock subscriptions are allowed
///
public bool AllowBackInStockSubscriptions { get; set; }
///
/// Gets or sets the order minimum quantity
///
public int OrderMinimumQuantity { get; set; }
///
/// Gets or sets the order maximum quantity
///
public int OrderMaximumQuantity { get; set; }
///
/// Gets or sets the price
///
public decimal Price { get; set; }
///
/// Gets or sets the old price
///
public decimal OldPrice { get; set; }
///
/// Gets or sets a value indicating whether a customer enters price
///
public bool CustomerEntersPrice { get; set; }
///
/// Gets or sets the minimum price entered by a customer
///
public decimal MinimumCustomerEnteredPrice { get; set; }
///
/// Gets or sets the maximum price entered by a customer
///
public decimal MaximumCustomerEnteredPrice { get; set; }
///
/// Gets or sets a value indicating whether this product is marked as new
///
public bool MarkAsNew { get; set; }
///
/// Gets or sets the weight
///
public decimal Weight { get; set; }
///
/// Gets or sets the length
///
public decimal Length { get; set; }
///
/// Gets or sets the width
///
public decimal Width { get; set; }
///
/// Gets or sets the height
///
public decimal Height { get; set; }
///
/// Gets or sets a value indicating whether the entity is published
///
public bool Published { get; set; }
///
/// Gets or sets the product type
///
[JsonConverter(typeof(StringEnumConverter))]
public ProductType ProductType { get; set; }
///
/// Gets or sets the backorder mode
///
[JsonConverter(typeof(StringEnumConverter))]
public BackorderMode BackorderMode { get; set; }
///
/// Gets or sets the download activation type
///
[JsonConverter(typeof(StringEnumConverter))]
public DownloadActivationType DownloadActivationType { get; set; }
///
/// Gets or sets the gift card type
///
[JsonConverter(typeof(StringEnumConverter))]
public GiftCardType GiftCardType { get; set; }
///
/// Gets or sets the low stock activity
///
[JsonConverter(typeof(StringEnumConverter))]
public LowStockActivity LowStockActivity { get; set; }
///
/// Gets or sets the value indicating how to manage inventory
///
[JsonConverter(typeof(StringEnumConverter))]
public ManageInventoryMethod ManageInventoryMethod { get; set; }
///
/// Gets or sets the cycle period for recurring products
///
[JsonConverter(typeof(StringEnumConverter))]
public RecurringProductCyclePeriod RecurringCyclePeriod { get; set; }
///
/// Gets or sets the period for rental products
///
[JsonConverter(typeof(StringEnumConverter))]
public RentalPricePeriod RentalPricePeriod { get; set; }
///
/// Gets or sets a value of used product template name
///
public string ProductTemplateName { get; set; }
///
/// Gets or sets a category name
///
public string CategoryName { get; set; }
///
/// Gets or sets a list of product pictures
///
public List ProductPictures { get; set; } = new();
///
/// Gets or sets product attribute mappings
///
public List ProductAttributeMapping { get; set; } = new();
///
/// Gets or sets a list of product tags
///
public List ProductTags { get; set; } = new();
///
/// Gets or sets a manufacturer name
///
public string ManufacturerName { get; set; }
///
/// Gets or sets a list of product specification attributes
///
public List ProductSpecificationAttribute { get; set; } = new();
///
/// Gets or sets the list of grouped products
///
public List GroupedProducts { get; set; } = new();
///
/// Gets or sets the e tier prices
///
public List TierPrices { get; set; } = new();
}
///
/// Represents a sample tier price
///
public partial class SampleTierPrice
{
///
/// Gets or sets the quantity
///
public int Quantity { get; set; }
///
/// Gets or sets the price
///
public decimal Price { get; set; }
}
///
/// Represents a sample product specification attribute
///
public partial class SampleProductSpecificationAttribute
{
///
/// Gets or sets whether the attribute can be filtered by
///
public bool AllowFiltering { get; set; }
///
/// Gets or sets whether the attribute will be shown on the product page
///
public bool ShowOnProductPage { get; set; }
///
/// Gets or sets the display order
///
public int DisplayOrder { get; set; }
///
/// Gets or sets the spec attribute name
///
public string SpecAttributeName { get; set; }
///
/// Gets or sets the spec attribute option name
///
public string SpecAttributeOptionName { get; set; }
}
///
/// Represents a sample product attribute mapping
///
public partial class SampleProductAttributeMapping
{
///
/// Gets or sets a product attribute name
///
public string ProductAttributeName { get; set; }
///
/// Gets the attribute control type
///
[JsonConverter(typeof(StringEnumConverter))]
public AttributeControlType AttributeControlType { get; set; }
///
/// Gets or sets a value a text prompt
///
public string TextPrompt { get; set; }
///
/// Gets or sets a value indicating whether the entity is required
///
public bool IsRequired { get; set; }
///
/// Gets or sets an attribute values
///
public List AttributeValues { get; set; } = new();
}
///
/// Represents a product attribute value
///
public partial class SampleProductAttributeValue
{
///
/// Gets or sets the product attribute name
///
public string Name { get; set; }
///
/// Gets or sets the color RGB value (used with "Color squares" attribute type)
///
public string ColorSquaresRgb { get; set; }
///
/// Gets or sets the picture ID for image square (used with "Image squares" attribute type)
///
public string ImageSquaresPictureName { get; set; }
///
/// Gets or sets the price adjustment (used only with AttributeValueType.Simple)
///
public decimal PriceAdjustment { get; set; }
///
/// Gets or sets a value indicating whether the value is pre-selected
///
public bool IsPreSelected { get; set; }
///
/// Gets or sets the display order
///
public int DisplayOrder { get; set; }
///
/// Gets or sets the attribute value type
///
[JsonConverter(typeof(StringEnumConverter))]
public AttributeValueType AttributeValueType { get; set; } = AttributeValueType.Simple;
public List AttributeValuePictures { get; set; } = new();
}
#endregion
}