Class ProductBase
Namespace: Restaurant.Domain.Base
Assembly: Restaurant.Domain.dll
Inheritance
object ← Entity ← ProductBase
Derived
Implements
Inherited Members
Entity.Id, Entity.CreatedAt, Entity.UpdatedAt, Entity.DomainEvents, Entity.EmitDomainEvent\(IDomainEvent\)), object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Properties
CategoryId
Id of the parent Restaurant.Domain.Aggregates.CategoryAggregate.Category.
Property Value
Guid?
Description
Description of the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
Discriminator
Discriminator that state the type of the inheritor.
Property Value
DisplayImageUrl
URL of the Restaurant.Domain.Aggregates.ProductAggregate.Product image.
Property Value
ExternalPaymentId
Id of the product for catalog on payment provider.
Property Value
IsAvailable
Is the Restaurant.Domain.Aggregates.ProductAggregate.Product available.
Property Value
Name
Name of the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
RestaurantId
Id of the restaurant where the product is served.
Property Value
SortingIndex
Position of the Restaurant.Domain.Aggregates.ProductAggregate.Product in it's Restaurant.Domain.Aggregates.CategoryAggregate.Category.
Property Value
UnitPrice
UnitPrice of the Restaurant.Domain.Aggregates.ProductAggregate.Product.
Property Value
Methods
DeleteExternalPaymentId\(\)
Delete the Restaurant.Domain.Base.ProductBase.ExternalPaymentId of a Restaurant.Domain.Aggregates.ProductAggregate.Product.
SendProductBaseAvailabilityChangedEvent\(\)
UpdateAvailability\(bool\)
Parameters
isAvailable bool
UpdateBasicInfos\(string, string, string, double\)
Update the Restaurant.Domain.Aggregates.ProductAggregate.Product infos.
Parameters
name string
description string
displayImageUrl string
unitPrice double
UpdateExternalPaymentId\(string\)
Update the Restaurant.Domain.Base.ProductBase.ExternalPaymentId of a Restaurant.Domain.Aggregates.ProductAggregate.Product.
Parameters
externalPaymentId string
UpdateImageUrl\(string\)
Update the Restaurant.Domain.Aggregates.ProductAggregate.Product image url.
Parameters
productImageUrl string
UpdateSortingIndex\(int\)
Update the position of the Restaurant.Domain.Base.ProductBase in its Restaurant.Domain.Aggregates.CategoryAggregate.Category.
Parameters
newSortingIndex int
New position.