
io.sphere.internal.request.ProductQueryRequest Maven / Gradle / Ivy
package io.sphere.internal.request;
import io.sphere.client.QueryRequest;
import io.sphere.client.model.products.BackendProductProjection;
import io.sphere.client.shop.CategoryTree;
import io.sphere.client.shop.model.Product;
import io.sphere.internal.ProductConversion;
public class ProductQueryRequest extends QueryRequestMapping {
private final CategoryTree categoryTree;
protected ProductQueryRequest(QueryRequest delegate, CategoryTree categoryTree) {
super(delegate);
this.categoryTree = categoryTree;
}
@Override
protected Product convert(BackendProductProjection backendProduct) {
return ProductConversion.fromBackendProductProjection(backendProduct, categoryTree);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy