Represents a product category.

Static methods

staticget(id:String):Category

Returns:

The Category with the given id, or null if it was not found.

staticlist(filters:Query):Collection<Category>

Lists all Categories that match the given filters. Supported filters are:

  • family.id
  • parent.id

Returns:

A Collection of Categories.

Constructor

new()

Variables

children:Collection<Category>

Collection of children categories.

family:Family

Product family.

name:String

Category name.

parent:Category

Reference to parent category.

Inherited Variables

Defined by IdModel

id:String

Id of the model.

Inherited Methods

Defined by Model

toObject():Dynamic

Returns:

A Haxe dynamic object with a shallow copy of this model's properties.

toString():String

Returns:

A String with the JSON representation of this Model.