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

io.sphere.sdk.carts.queries.CartShippingInfoQueryModelImpl 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.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");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy