Init
This commit is contained in:
6
Prefab.Catalog/Domain/Events/AttributeEvents.cs
Normal file
6
Prefab.Catalog/Domain/Events/AttributeEvents.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
using Prefab.Catalog.Domain.Entities;
|
||||
using Prefab.Domain.Common;
|
||||
|
||||
namespace Prefab.Catalog.Domain.Events;
|
||||
|
||||
public sealed record AttributeDefinitionCreated(Guid AttributeDefinitionId, string Name, AttributeDataType DataType) : Event;
|
||||
7
Prefab.Catalog/Domain/Events/CategoryEvents.cs
Normal file
7
Prefab.Catalog/Domain/Events/CategoryEvents.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Prefab.Domain.Common;
|
||||
|
||||
namespace Prefab.Catalog.Domain.Events;
|
||||
|
||||
public sealed record CategoryCreated(Guid CategoryId, string Name) : Event;
|
||||
|
||||
public sealed record CategoryRenamed(Guid CategoryId, string OldName, string NewName) : Event;
|
||||
34
Prefab.Catalog/Domain/Events/OptionEvents.cs
Normal file
34
Prefab.Catalog/Domain/Events/OptionEvents.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Prefab.Catalog.Domain.Entities;
|
||||
using Prefab.Domain.Common;
|
||||
|
||||
namespace Prefab.Catalog.Domain.Events;
|
||||
|
||||
public sealed record OptionDefinitionCreated(
|
||||
Guid ProductId,
|
||||
Guid OptionDefinitionId,
|
||||
string Code,
|
||||
string Name,
|
||||
string DataType,
|
||||
bool IsVariantAxis) : Event;
|
||||
|
||||
public sealed record OptionValueAdded(
|
||||
Guid OptionDefinitionId,
|
||||
Guid OptionValueId,
|
||||
string Code,
|
||||
string Label,
|
||||
decimal? PriceDelta,
|
||||
PriceDeltaKind Kind) : Event;
|
||||
|
||||
public sealed record OptionValueChanged(Guid OptionDefinitionId, Guid OptionValueId) : Event;
|
||||
|
||||
public sealed record OptionValueRemoved(Guid OptionDefinitionId, Guid OptionValueId) : Event;
|
||||
|
||||
public sealed record OptionTierAdded(
|
||||
Guid OptionDefinitionId,
|
||||
Guid OptionTierId,
|
||||
decimal FromInclusive,
|
||||
decimal? ToInclusive) : Event;
|
||||
|
||||
public sealed record OptionTierChanged(Guid OptionDefinitionId, Guid OptionTierId) : Event;
|
||||
|
||||
public sealed record OptionTierRemoved(Guid OptionDefinitionId, Guid OptionTierId) : Event;
|
||||
19
Prefab.Catalog/Domain/Events/ProductEvents.cs
Normal file
19
Prefab.Catalog/Domain/Events/ProductEvents.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Prefab.Domain.Common;
|
||||
|
||||
namespace Prefab.Catalog.Domain.Events;
|
||||
|
||||
public sealed record ProductCreated(Guid ProductId, string Kind, string Name, string? Slug) : Event;
|
||||
|
||||
public sealed record ProductVariantCreated(Guid ProductId, Guid ParentProductId, string Sku, string Name, decimal Price) : Event;
|
||||
|
||||
public sealed record ProductPriceChanged(Guid ProductId, decimal? OldPrice, decimal? NewPrice) : Event;
|
||||
|
||||
public sealed record ProductRenamed(Guid ProductId, string OldName, string NewName) : Event;
|
||||
|
||||
public sealed record ProductVariantAttached(Guid ParentProductId, Guid VariantProductId) : Event;
|
||||
|
||||
public sealed record ProductAttributeValueUpserted(Guid ProductId, Guid AttributeDefinitionId) : Event;
|
||||
|
||||
public sealed record ProductCategoryAssigned(Guid ProductId, Guid CategoryId, bool IsPrimary) : Event;
|
||||
|
||||
public sealed record ProductCategoryUnassigned(Guid ProductId, Guid CategoryId) : Event;
|
||||
Reference in New Issue
Block a user