
io.sphere.sdk.products.ProductVariant Maven / Gradle / Ivy
package io.sphere.sdk.products;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import javax.annotation.Nullable;
import java.util.List;
@JsonDeserialize(as = ProductVariantImpl.class)
public interface ProductVariant extends AttributeContainer {
Integer getId();
@Nullable
String getSku();
List getPrices();
List getImages();
/**
* The availability is set if the variant is tracked by the inventory. The field might not contain the latest
* inventory state (it is eventually consistent) and can be used as an optimization to reduce calls to the inventory service.
*
* @return availability
*/
@Nullable
ProductVariantAvailability getAvailability();
/**
* Gets the id of the product and the variant. This operation may not be available.
* It will be available if this {@link ProductVariant} has been created
* by loading a {@link Product} or a {@link ProductProjection} from JSON.
* @return identifier for this variant
* @throws UnsupportedOperationException if the operation is not available
*/
VariantIdentifier getIdentifier();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy