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.
| Property | Type | Description | Required |
|---|---|---|---|
| name | string | The ID of the attribute | Yes |
| value | string | The value of the attribute | Yes |