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

io.sphere.sdk.carts.queries.LineItemLikeCollectionQueryModelImpl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
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;

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 StringQueryModel productId() {
        return stringModel("productId");
    }

    @Override
    public LongQuerySortingModel quantity() {
        return longModel("quantity");
    }

    @Override
    public LocalizedStringQueryModel name() {
        return localizedStringQuerySortingModel("name");
    }

    @Override
    public ProductVariantQueryModel variant() {
        return ProductVariantQueryModel.of(this, "variant");
    }

    @Override
    public PriceQueryModel price() {
        return PriceCollectionQueryModel.of(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 CustomQueryModel.of(this, "custom");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy