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

io.sphere.sdk.carts.expansion.ShippingInfoExpansionModelImpl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.carts.expansion;

import io.sphere.sdk.expansion.ExpansionModelImpl;
import io.sphere.sdk.shippingmethods.expansion.ShippingMethodExpansionModel;
import io.sphere.sdk.taxcategories.expansion.TaxCategoryExpansionModel;

import javax.annotation.Nullable;
import java.util.List;

final class ShippingInfoExpansionModelImpl extends ExpansionModelImpl implements ShippingInfoExpansionModel {
    public ShippingInfoExpansionModelImpl(final List parentPath, @Nullable final String path) {
        super(parentPath, path);
    }

    @Override
    public TaxCategoryExpansionModel taxCategory() {
        return TaxCategoryExpansionModel.of(buildPathExpression(), "taxCategory");
    }

    @Override
    public ShippingMethodExpansionModel shippingMethod() {
        return ShippingMethodExpansionModel.of(buildPathExpression(), "shippingMethod");
    }

    @Override
    public DiscountedLineItemPriceExpansionModel discountedPrice() {
        return new DiscountedLineItemPriceExpansionModelImpl<>(buildPathExpression(), "discountedPrice");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy