Final fixes for demo
This commit is contained in:
		| @@ -72,7 +72,7 @@ namespace Core.Inventory.BFF.API.Controllers | ||||
|  | ||||
|                 if (newFurniture == null) return BadRequest("Invalid furniture object"); | ||||
|  | ||||
|                 if (string.IsNullOrEmpty(newFurniture.Name)) return BadRequest("Invalid furniture name"); | ||||
|                 if (string.IsNullOrEmpty(newFurniture.ModelName)) return BadRequest("Invalid furniture name"); | ||||
|  | ||||
|                 if (string.IsNullOrEmpty(newFurniture.Material)) return BadRequest("Invalid furniture material"); | ||||
|  | ||||
| @@ -100,7 +100,7 @@ namespace Core.Inventory.BFF.API.Controllers | ||||
|  | ||||
|                 if (newFurniture == null) return BadRequest("Invalid furniture object"); | ||||
|  | ||||
|                 if (string.IsNullOrEmpty(newFurniture.Name)) return BadRequest("Invalid furniture name"); | ||||
|                 if (string.IsNullOrEmpty(newFurniture.ModelName)) return BadRequest("Invalid furniture model name"); | ||||
|  | ||||
|                 if (string.IsNullOrEmpty(newFurniture.Material)) return BadRequest("Invalid furniture material"); | ||||
|  | ||||
|   | ||||
| @@ -4,12 +4,12 @@ namespace Core.Inventory.External.Clients.Inventory.Requests.Base | ||||
| { | ||||
|     public class CreateFurnitureBaseRequest | ||||
|     { | ||||
|         public string Name { get; set; } = default!; | ||||
|         public string ModelName { get; set; } = default!; | ||||
|         public string Material { get; set; } = default!; | ||||
|         public string Condition { get; set; } = default!; | ||||
|         public string? Description { get; set; } | ||||
|         public string? BaseDescription { get; set; } | ||||
|         public string? Representation { get; set; } | ||||
|         public string? Notes { get; set; } | ||||
|         public string? MaintenanceNotes { get; set; } | ||||
|         public DimensionsRequest Dimensions { get; set; } = new(); | ||||
|         public List<string>? VariantIds { get; set; } | ||||
|     } | ||||
|   | ||||
| @@ -1,19 +1,18 @@ | ||||
| using Core.Blueprint.Mongo; | ||||
| using Core.Inventory.External.Clients.Inventory.Requests.Common; | ||||
| using Core.Inventory.External.Clients.Inventory.Requests.Common; | ||||
|  | ||||
| namespace Core.Inventory.External.Clients.Inventory.Requests.Base | ||||
| { | ||||
|     public class UpdateFurnitureBaseRequest | ||||
|     { | ||||
|         public string _Id { get; set; } = default!; | ||||
|         public string Id { get; set; } = default!; | ||||
|         public string Name { get; set; } = default!; | ||||
|         public string ModelName { get; set; } = default!; | ||||
|         public string Material { get; set; } = default!; | ||||
|         public string Condition { get; set; } = default!; | ||||
|         public string? Description { get; set; } | ||||
|         public string? BaseDescription { get; set; } | ||||
|         public string? Representation { get; set; } | ||||
|         public string? Notes { get; set; } | ||||
|         public string? MaintenanceNotes { get; set; } | ||||
|         public DimensionsRequest Dimensions { get; set; } = new(); | ||||
|         public List<string>? VariantIds { get; set; } | ||||
|         public StatusEnum Status { get; set; } | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -11,9 +11,9 @@ | ||||
|         public string Currency { get; set; } = "USD"; | ||||
|         public int Stock { get; set; } | ||||
|  | ||||
|         public Guid CategoryId { get; set; } | ||||
|         public Guid ProviderId { get; set; } | ||||
|         public string CategoryId { get; set; } = string.Empty; | ||||
|         public string ProviderId { get; set; } = string.Empty; | ||||
|  | ||||
|         public Dictionary<string, object> Attributes { get; set; } = []; | ||||
|         public Dictionary<string, string> Attributes { get; set; } = []; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -2,6 +2,7 @@ | ||||
| { | ||||
|     public class UpdateFurnitureVariantRequest | ||||
|     { | ||||
|         public string _Id { get; set; } = default!; | ||||
|         public string Id { get; set; } = default!; | ||||
|         public string ModelId { get; set; } = default!; | ||||
|         public string Name { get; set; } = default!; | ||||
| @@ -12,9 +13,9 @@ | ||||
|         public decimal Price { get; set; } | ||||
|         public string Currency { get; set; } = "USD"; | ||||
|  | ||||
|         public Guid CategoryId { get; set; } | ||||
|         public Guid ProviderId { get; set; } | ||||
|         public string CategoryId { get; set; } = string.Empty; | ||||
|         public string ProviderId { get; set; } = string.Empty; | ||||
|  | ||||
|         public Dictionary<string, object> Attributes { get; set; } = new(); | ||||
|         public Dictionary<string, string> Attributes { get; set; } = new(); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -7,7 +7,7 @@ | ||||
|   </PropertyGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <PackageReference Include="Adapters.Lib" Version="1.0.3" /> | ||||
|     <PackageReference Include="Adapters.Lib" Version="1.0.6" /> | ||||
|     <PackageReference Include="BuildingBlocks.Library" Version="1.0.0" /> | ||||
|     <PackageReference Include="Refit" Version="8.0.0" /> | ||||
|   </ItemGroup> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user