feat: added endpoint DeleteProduct

- fix: adapters package updated
- fix: status property renamed
This commit is contained in:
2025-08-05 22:14:27 -06:00
parent ab3863943d
commit b529d905b1
13 changed files with 133 additions and 8 deletions

View File

@@ -129,6 +129,9 @@ namespace Core.Inventory.External.Clients
[Delete("/api/v1/Product/{productId}/tags/{tagId}")]
Task<ProductAdapter> RemoveTagFromProductAsync([FromRoute] string productId, [FromRoute] string tagId, CancellationToken cancellationToken = default);
[Delete("/api/v1/Product/{id}")]
Task<bool> DeleteProductAsync([FromRoute] string id, CancellationToken cancellationToken = default);
#endregion
}
}

View File

@@ -5,7 +5,7 @@ namespace Core.Inventory.External.Clients.Requests
public string TenantId { get; set; } = null!;
public string ProductName { get; set; } = null!;
public string Description { get; set; } = null!;
public string Status { get; set; } = null!;
public string ProductStatus { get; set; } = null!;
public List<string> TagIds { get; set; } = new List<string>();
}
}

View File

@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Adapters.Lib" Version="1.0.11" />
<PackageReference Include="Adapters.Lib" Version="1.0.13" />
<PackageReference Include="BuildingBlocks.Library" Version="1.0.0" />
<PackageReference Include="Refit" Version="8.0.0" />
</ItemGroup>