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
ConstructorsConstructorDescriptionCartCreationRequest(AddItemRequest addItemRequest) CartCreationRequest(String name, String type, Instant expirationDate, AddItemRequest addItemRequest, List<AddItemRequest> addItemRequests, PriceCartRequest priceCartRequest) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe initialAddItemRequestto populate the cart.The initialAddItemRequeststo populate the cart.DefaultCartTypes.QUOTEcarts can have an expiration date.getName()Allows optionally setting a cart name.The initialPriceCartRequestto price the cart.getType()Allows optionally setting the type of cart to be created.inthashCode()voidsetAddItemRequest(AddItemRequest addItemRequest) The initialAddItemRequestto populate the cart.voidsetAddItemRequests(List<AddItemRequest> addItemRequests) The initialAddItemRequeststo populate the cart.voidsetExpirationDate(Instant expirationDate) DefaultCartTypes.QUOTEcarts can have an expiration date.voidAllows optionally setting a cart name.voidsetPriceCartRequest(PriceCartRequest priceCartRequest) The initialPriceCartRequestto price the cart.voidAllows 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:
-
DefaultCartTypesQuoteFunctionalitiesAspect
-
getExpirationDate
DefaultCartTypes.QUOTEcarts can have an expiration date. -
getAddItemRequest
The initialAddItemRequestto populate the cart. -
getAddItemRequests
The initialAddItemRequeststo populate the cart.If
addItemRequestis provided, this will not be used. -
getPriceCartRequest
The initialPriceCartRequestto 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:
-
DefaultCartTypesQuoteFunctionalitiesAspect
-
setExpirationDate
DefaultCartTypes.QUOTEcarts can have an expiration date. -
setAddItemRequest
The initialAddItemRequestto populate the cart. -
setAddItemRequests
The initialAddItemRequeststo populate the cart.If
addItemRequestis provided, this will not be used. -
setPriceCartRequest
The initialPriceCartRequestto price the cart. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-