io.sphere.sdk.carts.queries.CartShippingInfoQueryModelImpl Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.carts.queries;
import io.sphere.sdk.queries.*;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.taxcategories.queries.TaxRateQueryModel;
final class CartShippingInfoQueryModelImpl extends QueryModelImpl implements CartShippingInfoQueryModel {
public CartShippingInfoQueryModelImpl(final QueryModel parent, final String pathSegment) {
super(parent, pathSegment);
}
@Override
public DiscountedLineItemPriceQueryModel discountedPrice() {
return new DiscountedLineItemPriceQueryModelImpl<>(this, "discountedPrice");
}
@Override
public StringQueryModel shippingMethodName() {
return stringModel("shippingMethodName");
}
@Override
public MoneyQueryModel price() {
return moneyModel("price");
}
@Override
public TaxRateQueryModel taxRate() {
return new TaxRateQueryModelImpl<>(this, "taxRate");
}
@Override
public ReferenceOptionalQueryModel shippingMethod() {
return referenceOptionalModel("shippingMethod");
}
}