public interface LineItem extends LineItemLike
A line item is a snapshot of a product variant at the time it was added to the cart.
A LineItem can have custom fields
.
String getProductId()
LocalizedString getName()
ProductVariant getVariant()
Price getPrice()
Set<ItemState> getState()
getState
in interface LineItemLike
@Nullable ZonedDateTime getAddedAt()
@Nullable LocalizedString getProductSlug()
String getId()
getId
in interface LineItemLike
Long getQuantity()
getQuantity
in interface LineItemLike
CustomFields getCustom()
javax.money.MonetaryAmount getTotalPrice()
getTotalPrice
in interface LineItemLike
List<DiscountedLineItemPriceForQuantity> getDiscountedPricePerQuantity()
LineItemLike
getDiscountedPricePerQuantity
in interface LineItemLike
@Nullable TaxedItemPrice getTaxedPrice()
getTaxedPrice
in interface LineItemLike
LineItemPriceMode getPriceMode()
@Nullable Reference<ProductType> getProductType()
LineItemMode getLineItemMode()
@Nullable ItemShippingDetails getShippingDetails()
@Nullable ZonedDateTime getLastModifiedAt()
static String resourceTypeId()
CustomFields
.TypeDraft.getResourceTypeIds()
,
Custom