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

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

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

import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.queries.*;

/**
 * Base class to create predicates for {@link io.sphere.sdk.carts.CartLike} resources.
 * @param  query context
 */
public abstract class CartLikeQueryModel extends ResourceQueryModelImpl {
    protected CartLikeQueryModel(QueryModel parent, String pathSegment) {
        super(parent, pathSegment);
    }

    public StringQuerySortingModel customerId() {
        return stringModel("customerId");
    }

    public StringQuerySortingModel customerEmail() {
        return stringModel("customerEmail");
    }

    public MoneyQueryModel totalPrice() {
        return moneyModel("totalPrice");
    }

    public TaxedPriceOptionalQueryModel taxedPrice() {
        return new TaxedPriceOptionalQueryModelImpl<>(this, "taxedPrice");
    }

    public CountryQueryModel country() {
        return countryQueryModel("country");
    }

    public ReferenceOptionalQueryModel customerGroup() {
        return referenceOptionalModel("customerGroup");
    }

    public LineItemCollectionQueryModel lineItems() {
        return new LineItemCollectionQueryModelImpl<>(this, "lineItems");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy