Class ProductVariant
java.lang.Object
com.commercetools.graphql.api.types.ProductVariant
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProductVariant(Integer id, String key, String sku, List<ProductPrice> prices, ProductPrice price, List<Image> images, List<Asset> assets, ProductVariantAvailabilityWithChannels availability, List<RawProductAttribute> attributesRaw) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis field contains raw attributes datagetId()getKey()getPrice()Returns a single price based on the price selection rules.getSku()inthashCode()static ProductVariant.BuildervoidvoidsetAttributesRaw(List<RawProductAttribute> attributesRaw) voidsetAvailability(ProductVariantAvailabilityWithChannels availability) voidvoidvoidvoidsetPrice(ProductPrice price) voidsetPrices(List<ProductPrice> prices) voidtoString()
-
Constructor Details
-
ProductVariant
public ProductVariant() -
ProductVariant
public ProductVariant(Integer id, String key, String sku, List<ProductPrice> prices, ProductPrice price, List<Image> images, List<Asset> assets, ProductVariantAvailabilityWithChannels availability, List<RawProductAttribute> attributesRaw)
-
-
Method Details
-
getId
-
setId
-
getKey
-
setKey
-
getSku
-
setSku
-
getPrices
-
setPrices
-
getPrice
Returns a single price based on the price selection rules. -
setPrice
-
getImages
-
setImages
-
getAssets
-
setAssets
-
getAvailability
-
setAvailability
-
getAttributesRaw
This field contains raw attributes data -
setAttributesRaw
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-