// EN: Domain events for Shop aggregate.
// VI: Domain events cho Shop aggregate.

using MediatR;
using MerchantService.Domain.AggregatesModel.ShopAggregate;

namespace MerchantService.Domain.Events;

/// <summary>
/// EN: Raised when a new shop is created.
/// VI: Được phát ra khi shop mới được tạo.
/// </summary>
public record ShopCreatedDomainEvent(Shop Shop) : INotification;

/// <summary>
/// EN: Raised when a shop is published (made visible to customers).
/// VI: Được phát ra khi shop được công khai (hiển thị với khách hàng).
/// </summary>
public record ShopPublishedDomainEvent(Shop Shop) : INotification;

/// <summary>
/// EN: Raised when a shop is permanently closed.
/// VI: Được phát ra khi shop đóng cửa vĩnh viễn.
/// </summary>
public record ShopClosedDomainEvent(Shop Shop) : INotification;

/// <summary>
/// EN: Raised when a new branch is added to a shop.
/// VI: Được phát ra khi chi nhánh mới được thêm vào shop.
/// </summary>
public record ShopBranchAddedDomainEvent(Shop Shop, ShopBranch Branch) : INotification;
