Skip to main content

Selected Attribute

Class name: SelectedAttribute

Used to represent the selected attribute of a product variation. Here, we decided to use the names and value of the attributes as the IDs, which allows us to have a more readable and understandable structure, and due to the provision to allow vendors add their own options where they desired option is not available.

PropertyTypeDescriptionRequired
namestringThe ID of the attributeYes
valuestringThe value of the attributeYes