diff --git a/services/merchant-service-net/src/MerchantService.API/Application/Commands/Shops/CreateShopCommandHandler.cs b/services/merchant-service-net/src/MerchantService.API/Application/Commands/Shops/CreateShopCommandHandler.cs index 6bc99f44..22b52999 100644 --- a/services/merchant-service-net/src/MerchantService.API/Application/Commands/Shops/CreateShopCommandHandler.cs +++ b/services/merchant-service-net/src/MerchantService.API/Application/Commands/Shops/CreateShopCommandHandler.cs @@ -78,13 +78,19 @@ public class CreateShopCommandHandler : IRequestHandler BusinessCategory.FoodBeverage, + "cafe" or "café" or "coffee" => BusinessCategory.Cafe, + "restaurant" or "nhà hàng" or "bar" => BusinessCategory.Restaurant, + "karaoke" => BusinessCategory.Karaoke, + "spa" or "massage" or "wellness" => BusinessCategory.Spa, "fashion" => BusinessCategory.Fashion, "electronics" => BusinessCategory.Electronics, "healthcare" => BusinessCategory.Healthcare, - "beauty" => BusinessCategory.Beauty, + "beauty" or "salon" or "thẩm mỹ" => BusinessCategory.Beauty, "education" => BusinessCategory.Education, "entertainment" => BusinessCategory.Entertainment, "services" => BusinessCategory.Services, diff --git a/services/merchant-service-net/src/MerchantService.Domain/AggregatesModel/ShopAggregate/BusinessCategory.cs b/services/merchant-service-net/src/MerchantService.Domain/AggregatesModel/ShopAggregate/BusinessCategory.cs index a6f96b47..99a0ab37 100644 --- a/services/merchant-service-net/src/MerchantService.Domain/AggregatesModel/ShopAggregate/BusinessCategory.cs +++ b/services/merchant-service-net/src/MerchantService.Domain/AggregatesModel/ShopAggregate/BusinessCategory.cs @@ -77,6 +77,32 @@ public class BusinessCategory : Enumeration /// public static readonly BusinessCategory Other = new(99, nameof(Other)); + // ─── Vertical-specific categories (for multi-vertical POS) ─── + + /// + /// EN: Café — coffee shops, tea houses, bubble tea. + /// VI: Quán cà phê, trà sữa. + /// + public static readonly BusinessCategory Cafe = new(11, nameof(Cafe)); + + /// + /// EN: Restaurant — restaurants, bars, eateries. + /// VI: Nhà hàng, quán ăn, bar. + /// + public static readonly BusinessCategory Restaurant = new(12, nameof(Restaurant)); + + /// + /// EN: Karaoke — karaoke bars, entertainment venues. + /// VI: Karaoke, các địa điểm giải trí. + /// + public static readonly BusinessCategory Karaoke = new(13, nameof(Karaoke)); + + /// + /// EN: Spa — spa, massage, wellness centers. + /// VI: Spa, massage, trung tâm sức khỏe. + /// + public static readonly BusinessCategory Spa = new(14, nameof(Spa)); + public BusinessCategory(int id, string name) : base(id, name) { } diff --git a/services/merchant-service-net/src/MerchantService.Infrastructure/EntityConfigurations/ShopEntityTypeConfiguration.cs b/services/merchant-service-net/src/MerchantService.Infrastructure/EntityConfigurations/ShopEntityTypeConfiguration.cs index 99324db2..7107ce7c 100644 --- a/services/merchant-service-net/src/MerchantService.Infrastructure/EntityConfigurations/ShopEntityTypeConfiguration.cs +++ b/services/merchant-service-net/src/MerchantService.Infrastructure/EntityConfigurations/ShopEntityTypeConfiguration.cs @@ -368,7 +368,12 @@ public class BusinessCategoryEntityTypeConfiguration : IEntityTypeConfiguration< BusinessCategory.Services, BusinessCategory.Grocery, BusinessCategory.HomeFurniture, - BusinessCategory.Other + BusinessCategory.Other, + // Vertical-specific categories + BusinessCategory.Cafe, + BusinessCategory.Restaurant, + BusinessCategory.Karaoke, + BusinessCategory.Spa ); } }