io.sphere.sdk.products.expansion.ProductProjectionExpansionModel Maven / Gradle / Ivy
package io.sphere.sdk.products.expansion;
import io.sphere.sdk.categories.expansion.CategoryExpansionModel;
import io.sphere.sdk.products.ProductProjection;
import io.sphere.sdk.expansion.ExpansionModel;
import io.sphere.sdk.expansion.ExpansionPath;
public final class ProductProjectionExpansionModel extends ExpansionModel {
private ProductProjectionExpansionModel() {
}
public ExpansionPath productType() {
return expansionPath("productType");
}
public ExpansionPath taxCategory() {
return expansionPath("taxCategory");
}
public CategoryExpansionModel categories(final int index) {
return new CategoryExpansionModel<>(pathExpression(), "categories[" + index + "]");
}
public CategoryExpansionModel categories() {
return new CategoryExpansionModel<>(pathExpression(), "categories[*]");
}
public ProductVariantExpansionModel masterVariant() {
return new ProductVariantExpansionModel<>(pathExpression(), "masterVariant");
}
public ProductVariantExpansionModel variants() {
return new ProductVariantExpansionModel<>(pathExpression(), "variants[*]");
}
public static ProductProjectionExpansionModel of() {
return new ProductProjectionExpansionModel<>();
}
}