public final class Cart
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BillingAddress |
billingAddress
email is mandatory
|
private GUID |
cartId |
private java.net.URI |
checkoutUrl |
private LineItemContainer |
lineItemContainer |
private Price |
minCartValue |
private Address |
shippingAddress |
Constructor and Description |
---|
Cart() |
Modifier and Type | Method and Description |
---|---|
BillingAddress |
getBillingAddress()
Billing address for the current cart
|
GUID |
getCartId()
Unique identifier of the cart.
|
java.net.URI |
getCheckoutUrl()
URL of cart to redirect the browser to in order to complete the checkout.
|
LineItemContainer |
getLineItemContainer()
A container for all the items in the cart
|
Price |
getMinCartValue()
Minimum value of cart before checkout is possible.
|
Address |
getShippingAddress()
Shipping address for the current cart
|
void |
setBillingAddress(BillingAddress billingAddress) |
void |
setCartId(GUID cartId) |
void |
setCheckoutUrl(java.net.URI checkoutUrl) |
void |
setLineItemContainer(LineItemContainer lineItemContainer) |
void |
setMinCartValue(Price minCartValue) |
void |
setShippingAddress(Address shippingAddress) |
private GUID cartId
private BillingAddress billingAddress
private Address shippingAddress
private LineItemContainer lineItemContainer
private Price minCartValue
private java.net.URI checkoutUrl
public GUID getCartId()
public void setCartId(GUID cartId)
public BillingAddress getBillingAddress()
public void setBillingAddress(BillingAddress billingAddress)
public Address getShippingAddress()
public void setShippingAddress(Address shippingAddress)
public LineItemContainer getLineItemContainer()
public void setLineItemContainer(LineItemContainer lineItemContainer)
public Price getMinCartValue()
public void setMinCartValue(Price minCartValue)
public java.net.URI getCheckoutUrl()
public void setCheckoutUrl(java.net.URI checkoutUrl)