io.sphere.sdk.carts.LineItemLikeImpl Maven / Gradle / Ivy
package io.sphere.sdk.carts;
import io.sphere.sdk.cartdiscounts.DiscountedLineItemPrice;
import io.sphere.sdk.models.Base;
import javax.annotation.Nullable;
import java.util.Set;
abstract class LineItemLikeImpl extends Base implements LineItemLike {
private final String id;
private final Set state;
private final Long quantity;
@Nullable
private final DiscountedLineItemPrice discountedPrice;
public LineItemLikeImpl(final String id, final Set state, final Long quantity, final DiscountedLineItemPrice discountedPrice) {
this.discountedPrice = discountedPrice;
this.id = id;
this.state = state;
this.quantity = quantity;
}
/**
*
* @deprecated use {@link #getDiscountedPricePerQuantity()} instead
*/
@Nullable
@Deprecated
public DiscountedLineItemPrice getDiscountedPrice() {
return discountedPrice;
}
public String getId() {
return id;
}
public Long getQuantity() {
return quantity;
}
public Set getState() {
return state;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy