io.sphere.sdk.carts.expansion.ShippingInfoExpansionModelImpl Maven / Gradle / Ivy
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