Given the mode of Product Selection, this assignment refers to, it may contain:

- `variantSelection` field for a Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
- `variantExclusion` field for a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).

Properties

Reference to a Product that is assigned to the ProductSelection.

productSelection: ProductSelectionReference

Reference to the Product Selection that this assignment is part of.

variantExclusion?: ProductVariantExclusion

Defines which particular Variants of the Product are excluded from the Product Selection. If undefined all Variants of the referenced Product are excluded.

This field is only available for assignments to a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.
variantSelection?: ProductVariantSelection

Defines which particular Variants of the Product are included in the Product Selection. If undefined all Variants of the referenced Product are included.

This field is only available for assignments to a Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.