Class CartCreationRequest
java.lang.Object
com.broadleafcommerce.cartoperation.domain.CartCreationRequest
- All Implemented Interfaces:
Serializable
A request DTO used to create a new
Cart
.- Author:
- Nick Crum (ncrum)
- See Also:
-
Constructor Summary
ConstructorDescriptionCartCreationRequest
(AddItemRequest addItemRequest) CartCreationRequest
(String name, String type, Instant expirationDate, AddItemRequest addItemRequest, List<AddItemRequest> addItemRequests, PriceCartRequest priceCartRequest) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The initialAddItemRequest
to populate the cart.The initialAddItemRequests
to populate the cart.DefaultCartTypes.QUOTE
carts can have an expiration date.getName()
Allows optionally setting a cart name.The initialPriceCartRequest
to price the cart.getType()
Allows optionally setting the type of cart to be created.int
hashCode()
void
setAddItemRequest
(AddItemRequest addItemRequest) The initialAddItemRequest
to populate the cart.void
setAddItemRequests
(List<AddItemRequest> addItemRequests) The initialAddItemRequests
to populate the cart.void
setExpirationDate
(Instant expirationDate) DefaultCartTypes.QUOTE
carts can have an expiration date.void
Allows optionally setting a cart name.void
setPriceCartRequest
(PriceCartRequest priceCartRequest) The initialPriceCartRequest
to price the cart.void
Allows optionally setting the type of cart to be created.toString()
-
Constructor Details
-
CartCreationRequest
-
CartCreationRequest
public CartCreationRequest(String name, String type, Instant expirationDate, AddItemRequest addItemRequest, List<AddItemRequest> addItemRequests, PriceCartRequest priceCartRequest) -
CartCreationRequest
public CartCreationRequest()
-
-
Method Details
-
getName
Allows optionally setting a cart name. This is typically blank for standard, in-process carts, and may be set when creating a Quote or Named cart directly. -
getType
Allows optionally setting the type of cart to be created. Default isDefaultCartTypes.STANDARD
.- See Also:
-
DefaultCartTypes
QuoteFunctionalitiesAspect
-
getExpirationDate
DefaultCartTypes.QUOTE
carts can have an expiration date. -
getAddItemRequest
The initialAddItemRequest
to populate the cart. -
getAddItemRequests
The initialAddItemRequests
to populate the cart.If
addItemRequest
is provided, this will not be used. -
getPriceCartRequest
The initialPriceCartRequest
to price the cart. -
setName
Allows optionally setting a cart name. This is typically blank for standard, in-process carts, and may be set when creating a Quote or Named cart directly. -
setType
Allows optionally setting the type of cart to be created. Default isDefaultCartTypes.STANDARD
.- See Also:
-
DefaultCartTypes
QuoteFunctionalitiesAspect
-
setExpirationDate
DefaultCartTypes.QUOTE
carts can have an expiration date. -
setAddItemRequest
The initialAddItemRequest
to populate the cart. -
setAddItemRequests
The initialAddItemRequests
to populate the cart.If
addItemRequest
is provided, this will not be used. -
setPriceCartRequest
The initialPriceCartRequest
to price the cart. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-