Modifier and Type | Field and Description |
---|---|
protected Money |
totalPrice |
Modifier | Constructor and Description |
---|---|
protected |
LineItemContainer() |
protected |
LineItemContainer(java.lang.String id,
int version) |
Modifier and Type | Method and Description |
---|---|
Address |
getBillingAddress()
The billing address.
|
com.neovisionaries.i18n.CountryCode |
getCountry()
The country used for price calculations.
|
org.joda.time.DateTime |
getCreatedAt()
The date and time when this object was created.
|
java.util.Currency |
getCurrency()
The currency.
|
java.lang.String |
getCustomerEmail()
The email of the anonymous customer to who this Cart or Order belongs.
|
Reference<CustomerGroup> |
getCustomerGroup()
The customer group of the customer, used for price calculations.
|
java.lang.String |
getCustomerId()
The customer to who this Cart or Order belongs.
|
com.google.common.base.Optional<CustomLineItem> |
getCustomLineItemById(java.lang.String id) |
java.util.List<CustomLineItem> |
getCustomLineItems()
The custom items in this cart or order.
|
java.util.List<DiscountCodeWithState> |
getDiscountCodes()
The references to the discount codes applied to this cart.
|
java.lang.String |
getId()
The unique id.
|
VersionedId |
getIdAndVersion()
The
id with version at which this object was fetched. |
org.joda.time.DateTime |
getLastModifiedAt()
The date and time when this object was last modified.
|
com.google.common.base.Optional<LineItem> |
getLineItemById(java.lang.String id) |
java.util.List<LineItem> |
getLineItems()
The items in this cart or order.
|
Money |
getLineItemTotalPrice()
Calculates the total of all line items (without the custom line items).
|
Address |
getShippingAddress()
The shipping address.
|
ShippingInfo |
getShippingInfo()
The shipping information.
|
TaxedPrice |
getTaxedPrice()
The taxed total price, defined only when the shipping address is set.
|
Money |
getTotalPrice()
The sum of prices of all line items (including custom line items) plus the shipping rate.
|
int |
getTotalQuantity()
The sum of quantities of line items.
|
java.lang.String |
toString() |
@Nonnull protected Money totalPrice
protected LineItemContainer()
protected LineItemContainer(java.lang.String id, int version)
public int getTotalQuantity()
@Nonnull public Money getLineItemTotalPrice()
public com.google.common.base.Optional<LineItem> getLineItemById(java.lang.String id)
public com.google.common.base.Optional<CustomLineItem> getCustomLineItemById(java.lang.String id)
@Nonnull public java.lang.String getId()
@Nonnull public VersionedId getIdAndVersion()
id
with version at which this object was fetched.@Nonnull public java.util.List<LineItem> getLineItems()
@Nonnull public java.util.List<CustomLineItem> getCustomLineItems()
@Nonnull public org.joda.time.DateTime getLastModifiedAt()
@Nonnull public org.joda.time.DateTime getCreatedAt()
public Address getShippingAddress()
public Address getBillingAddress()
public java.lang.String getCustomerId()
public java.lang.String getCustomerEmail()
@Nonnull public Reference<CustomerGroup> getCustomerGroup()
@Nonnull public Money getTotalPrice()
public java.util.Currency getCurrency()
public TaxedPrice getTaxedPrice()
public com.neovisionaries.i18n.CountryCode getCountry()
public ShippingInfo getShippingInfo()
public java.util.List<DiscountCodeWithState> getDiscountCodes()
public java.lang.String toString()
toString
in class java.lang.Object