io.sphere.sdk.products.ProductDraft Maven / Gradle / Ivy
package io.sphere.sdk.products;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.categories.Category;
import io.sphere.sdk.models.*;
import io.sphere.sdk.producttypes.ProductType;
import io.sphere.sdk.search.SearchKeywords;
import io.sphere.sdk.states.State;
import io.sphere.sdk.taxcategories.TaxCategory;
import javax.annotation.Nullable;
import java.util.List;
import java.util.Set;
/**
A template for a new {@link io.sphere.sdk.products.Product}.
@see ProductDraftBuilder
@see io.sphere.sdk.products.commands.ProductCreateCommand
*/
@JsonDeserialize(as = ProductDraftImpl.class)
public interface ProductDraft extends WithLocalizedSlug, MetaAttributes {
LocalizedString getName();
ResourceIdentifier getProductType();
LocalizedString getSlug();
@Nullable
LocalizedString getDescription();
Set> getCategories();
@Nullable
@Override
LocalizedString getMetaTitle();
@Nullable
@Override
LocalizedString getMetaDescription();
@Nullable
@Override
LocalizedString getMetaKeywords();
ProductVariantDraft getMasterVariant();
List getVariants();
@Nullable
Reference getTaxCategory();
SearchKeywords getSearchKeywords();
@Nullable
CategoryOrderHints getCategoryOrderHints();
@Nullable
Reference getState();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy