using System;
using Yavsc.Model.FrontOffice.Catalog.Billing;
namespace Yavsc.Model.FrontOffice.Catalog
{
/// <summary>
/// Physical product.
/// </summary>
public class PhysicalProduct : Product
/// Initializes a new instance of the <see cref="Yavsc.Model.FrontOffice.PhysicalProduct"/> class.
public PhysicalProduct ()
}
/// Gets or sets the unitary price.
/// <value>The unitary price.</value>
public Price UnitaryPrice { get; set; }
#region implemented abstract members of Product
/// Gets the sales conditions.
/// <returns>The sales conditions.</returns>
public override string[] GetSalesConditions ()
return new string [] { string.Format(
"Prix unitaire : {0} {1}",
UnitaryPrice.Quantity.ToString(),
UnitaryPrice.Unit.Name) };
#endregion
/// Returns a <see cref="System.String"/> that represents the current <see cref="Yavsc.Model.FrontOffice.PhysicalProduct"/>.
/// <returns>A <see cref="System.String"/> that represents the current <see cref="Yavsc.Model.FrontOffice.PhysicalProduct"/>.</returns>
public override string ToString ()
return string.Format ("[PhysicalProduct: Reference:{0} UnitaryPrice={1}]", Reference, UnitaryPrice);