//------------------------------------------------------------------------------
// The contents of this file are subject to the nopCommerce Public License Version 1.0 ("License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.nopCommerce.com/License.aspx.
//
// Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
// See the License for the specific language governing rights and limitations under the License.
//
// The Original Code is nopCommerce.
// The Initial Developer of the Original Code is NopSolutions.
// All Rights Reserved.
//
// Contributor(s): _______.
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using NopSolutions.NopCommerce.BusinessLogic.Categories;
using NopSolutions.NopCommerce.BusinessLogic.CustomerManagement;
using NopSolutions.NopCommerce.BusinessLogic.Media;
using NopSolutions.NopCommerce.BusinessLogic.Products.Attributes;
using NopSolutions.NopCommerce.BusinessLogic.Promo.Discounts;
using NopSolutions.NopCommerce.BusinessLogic.Tax;
using NopSolutions.NopCommerce.BusinessLogic.Warehouses;
namespace NopSolutions.NopCommerce.BusinessLogic.Products{
/// <summary>
/// Represents a tier price
/// </summary>
public partial class TierPrice : BaseEntity
{
#region Ctor
/// <summary>
/// Creates a new instance of the TierPrice class
/// </summary>
public TierPrice()
{
}
#endregion
#region Properties
/// <summary>
/// Gets or sets the tier price identifier
/// </summary>
public int TierPriceId { get; set; }
/// <summary>
/// Gets or sets the product variant identifier
/// </summary>
public int ProductVariantId { get; set; }
/// <summary>
/// Gets or sets the quantity
/// </summary>
public int Quantity { get; set; }
/// <summary>
/// Gets or sets the price
/// </summary>
public decimal Price { get; set; }
#endregion
#region Custom Properties
/// <summary>
/// Gets the product variant
/// </summary>
public ProductVariant ProductVariant
{
get
{
return ProductManager.GetProductVariantById(this.ProductVariantId);
}
}
#endregion
}
}
|