io.sphere.sdk.carts.queries.CartLikeQueryModelImpl Maven / Gradle / Ivy
package io.sphere.sdk.carts.queries;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.queries.*;
import io.sphere.sdk.types.queries.CustomResourceQueryModelImpl;
/**
* Base class to create predicates for {@link io.sphere.sdk.carts.CartLike} resources.
* @param query context
*/
public abstract class CartLikeQueryModelImpl extends CustomResourceQueryModelImpl implements CartLikeQueryModel {
protected CartLikeQueryModelImpl(QueryModel parent, String pathSegment) {
super(parent, pathSegment);
}
@Override
public StringQuerySortingModel customerId() {
return stringModel("customerId");
}
@Override
public StringQuerySortingModel customerEmail() {
return stringModel("customerEmail");
}
@Override
public MoneyQueryModel totalPrice() {
return moneyModel("totalPrice");
}
@Override
public TaxedPriceOptionalQueryModel taxedPrice() {
return new TaxedPriceOptionalQueryModelImpl<>(this, "taxedPrice");
}
@Override
public CountryQueryModel country() {
return countryQueryModel("country");
}
@Override
public ReferenceOptionalQueryModel customerGroup() {
return referenceOptionalModel("customerGroup");
}
@Override
public LineItemCollectionQueryModel lineItems() {
return new LineItemLikeCollectionQueryModelImpl<>(this, "lineItems");
}
@Override
public CustomLineItemCollectionQueryModel customLineItems() {
return new LineItemLikeCollectionQueryModelImpl<>(this, "customLineItems");
}
@Override
public AddressQueryModel shippingAddress() {
return addressModel("shippingAddress");
}
@Override
public AddressQueryModel billingAddress() {
return addressModel("billingAddress");
}
@Override
public CartShippingInfoQueryModel shippingInfo() {
return new CartShippingInfoQueryModelImpl<>(this, "shippingInfo");
}
@Override
public DiscountCodeInfoCollectionQueryModel discountCodes() {
return new DiscountCodeInfoCollectionQueryModelImpl<>(this, "discountCodes");
}
@Override
public PaymentInfoQueryModel paymentInfo() {
return new PaymentInfoQueryModelImpl<>(this, "paymentInfo");
}
@Override
public ShippingRateInputQueryModel shippingRateInput() {
return new ShippingRateInputQueryModelImpl<>(this,"shippingRateInput");
}
@Override
public StringQuerySortingModel anonymousId() {
return stringModel("anonymousId");
}
@Override
public LocaleQueryModel locale() {
return localeQuerySortingModel("locale");
}
@Override
public AddressCollectionQueryModel itemShippingAddresses() {
return addressCollectionQueryModel("itemShippingAddresses");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy