io.sphere.sdk.carts.queries.LineItemLikeCollectionQueryModelImpl Maven / Gradle / Ivy
package io.sphere.sdk.carts.queries;
import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.products.queries.PriceCollectionQueryModel;
import io.sphere.sdk.products.queries.PriceQueryModel;
import io.sphere.sdk.products.queries.ProductVariantQueryModel;
import io.sphere.sdk.queries.*;
import io.sphere.sdk.types.queries.CustomQueryModel;
import io.sphere.sdk.types.queries.CustomQueryModelImpl;
final class LineItemLikeCollectionQueryModelImpl extends QueryModelImpl implements LineItemCollectionQueryModel, CustomLineItemCollectionQueryModel {
public LineItemLikeCollectionQueryModelImpl(final QueryModel parent, final String pathSegment) {
super(parent, pathSegment);
}
@Override
public ReferenceOptionalQueryModel distributionChannel() {
return referenceOptionalModel("distributionChannel");
}
@Override
public ReferenceOptionalQueryModel supplyChannel() {
return referenceOptionalModel("supplyChannel");
}
@Override
public QueryPredicate isEmpty() {
return isEmptyCollectionQueryPredicate();
}
@Override
public QueryPredicate isNotEmpty() {
return isNotEmptyCollectionQueryPredicate();
}
@Override
public StringQueryModel id() {
return stringModel("id");
}
@Override
public LongQuerySortingModel quantity() {
return longModel("quantity");
}
@Override
public LocalizedStringQueryModel name() {
return localizedStringQuerySortingModel("name");
}
@Override
public ProductVariantQueryModel variant() {
return new ProductVariantQueryModel<>(this, "variant");
}
@Override
public PriceQueryModel price() {
return new PriceCollectionQueryModel<>(this, "price");
}
@Override
public ItemStateCollectionQueryModel state() {
return new ItemStateCollectionQueryModelImpl<>(this, "state");
}
@Override
public DiscountedLineItemPriceForQuantityQueryModel discountedPricePerQuantity() {
return new DiscountedLineItemPriceForQuantityQueryModelImpl<>(this, "discountedPricePerQuantity");
}
@Override
public MoneyQueryModel money() {
return moneyModel("money");
}
@Override
public StringQueryModel slug() {
return stringModel("slug");
}
@Override
public CustomQueryModel custom() {
return new CustomQueryModelImpl<>(this, "custom");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy