All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.products.queries.ProductVariantQueryModel Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.products.queries;

import io.sphere.sdk.queries.*;

import javax.annotation.Nullable;
import java.util.function.Function;

public class ProductVariantQueryModel extends QueryModelImpl {

    ProductVariantQueryModel(@Nullable final QueryModel parent, @Nullable final String pathSegment) {
        super(parent, pathSegment);
    }

    public StringQueryModel sku() {
        return stringModel("sku");
    }

    public QueryPredicate where(final QueryPredicate embeddedPredicate) {
        return embedPredicate(embeddedPredicate);
    }

    public QueryPredicate where(final Function> embeddedPredicate) {
        return where(embeddedPredicate.apply(PartialProductVariantQueryModel.of()));
    }

    public PriceCollectionQueryModel prices() {
        return new PriceCollectionQueryModel<>(this, "prices");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy