Class Product
Namespace: Restaurant.Domain.Aggregates.ProductAggregate
Assembly: Restaurant.Domain.dll
Inheritance
object ← Entity ← ProductBase ← Product
Implements
Inherited Members
ProductBase.Name, ProductBase.Description, ProductBase.DisplayImageUrl, ProductBase.UnitPrice, ProductBase.SortingIndex, ProductBase.IsAvailable, ProductBase.CategoryId, ProductBase.RestaurantId, ProductBase.ExternalPaymentId, ProductBase.Discriminator, ProductBase.UpdateBasicInfos\(string, string, string, double\), ProductBase.UpdateImageUrl\(string\), ProductBase.UpdateSortingIndex\(int\), ProductBase.UpdateExternalPaymentId\(string\), ProductBase.UpdateAvailability\(bool\), ProductBase.DeleteExternalPaymentId\(\), Entity.Id, Entity.CreatedAt, Entity.UpdatedAt, Entity.DomainEvents, object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
Product\(\)
Properties
Allergens
The list of Restaurant.Domain.Aggregates.ProductAggregate.Allergen contained in the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
IEnumerable < Allergen \>
CategoryProductData
Shared data between Restaurant.Domain.Aggregates.ProductAggregate.Product and its Category.
Property Value
Discriminator
Discriminator that state the type of the inheritor.
Property Value
FoodLabels
The list of Restaurant.Domain.Aggregates.ProductAggregate.FoodLabel contained in the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
IEnumerable < FoodLabel \>
FormulaSections
All Restaurant.Domain.Aggregates.ProductAggregate.Product.FormulaSectionss to which is linked the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
List < FormulaSection \>
Ingredients
The list of Restaurant.Domain.Aggregates.ProductAggregate.Ingredient contained in the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
IEnumerable < Ingredient \>
IsOutOfStock
Property Value
IsStockManagementEnabled
Property Value
Personalizations
The list of Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization contained in the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
Stock
Current available stock of the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
uint?
VatRate
The VAT rate of the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
Methods
AddAllergen\(Allergen\)
Parameters
allergen Allergen
AddFoodLabel\(FoodLabel\)
Parameters
foodLabel FoodLabel
AddIngredient\(Ingredient\)
Parameters
ingredient Ingredient
AddPersonalization\(Personalization\)
Parameters
personalization Personalization
Clone\(\)
Returns
Product
Create\(string, CategoryProductData, string, string, double, VatRate, Guid\)
Parameters
name string
categoryProductData CategoryProductData
description string
displayImageUrl string
price double
vatRate VatRate
restaurantGuid Guid
Returns
Product
DecrementStock\(uint\)
Parameters
quantityToDecrement uint
Returns
HasExternalPaymentId\(\)
Returns
RemoveAllergen\(Allergen\)
Parameters
allergen Allergen
RemoveFoodLabel\(FoodLabel\)
Parameters
foodLabel FoodLabel
RemoveIngredient\(Ingredient\)
Parameters
ingredient Ingredient
UpdateCategoryName\(string\)
Parameters
newName string
UpdateStock\(uint?\)
Parameters
newStock uint?
UpdateVatRate\(VatRate\)
Parameters
vatRate VatRate