using CoreConnect.Commerce.Core;
using HotChocolate.Types;
namespace CoreConnect.Commerce.Catalog;
public class Category : Node
/// The ID of the Category.
public required string Id { get; set; }
/// The Key of the Category.
public string? Key { get; set; }
/// The Name of the Category.
public required string Name { get; set; }
/// The Slug of the Category.
public required string Slug { get; set; }
/// The Path of the Category.
public required string Path { get; set; }
/// The Description of the Category.
public required string Description { get; set; }
/// The SEO of the Category.
public required Seo Seo { get; set; }
public IEnumerable<Breadcrumbs>? Breadcrumbs { get; set; }
/// The Sub Categories of the Category.
public required IEnumerable<Category> Children { get; set; }
public Category? Parent { get; set; }
[GraphQLType(typeof(AnyType))]
public Dictionary<string, object>? LocalizedPaths { get; set; }
[GraphQLType(typeof(AnyType))]
public Dictionary<string, object>? LocalizedSlugs { get; set; }
/// The Assets of the Category.
public IEnumerable<Asset>? Assets { get; set; }
public int? ProductCount { get; set; }
/// Gets or sets the version.
public long Version { get; set; }
/// Decimal value between 0 and 1.
/// Client apps can use this value for ordering Categories
/// within the same level in the category tree.
public string? OrderHint { get; set; }
public required string Id { get; set; }
public required string Key { set; get; }
public IEnumerable<AssetSource>? Sources { get; set; }
public required string Uri { get; set; }
public required string Key { get; set; }