Class CreateCartRequest
java.lang.Object
com.broadleafcommerce.subscriptionoperation.web.domain.CreateCartRequest
- All Implemented Interfaces:
Serializable
A request DTO used to create a new
Cart.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe initialAddItemRequeststo populate the cart.Miscellaneous attributes that should be copied toCart.getAttributes()Miscellaneous internal attributes for this item.The customer's timezone, which gets stored inCart.getInternalAttributes()to be used by downstream services.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()voidsetAddItemRequests(List<AddItemRequest> addItemRequests) The initialAddItemRequeststo populate the cart.voidsetCartAttributes(Map<String, Object> cartAttributes) Miscellaneous attributes that should be copied toCart.getAttributes()voidsetCartInternalAttributes(Map<String, Object> cartInternalAttributes) Miscellaneous internal attributes for this item.voidsetCustomerTimezone(String customerTimezone) The customer's timezone, which gets stored inCart.getInternalAttributes()to be used by downstream services.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
-
CreateCartRequest
public CreateCartRequest()
-
-
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
-
getExpirationDate
DefaultCartTypes.QUOTEcarts can have an expiration date. -
getAddItemRequests
The initialAddItemRequeststo populate the cart. -
getPriceCartRequest
The initialPriceCartRequestto price the cart. -
getCustomerTimezone
The customer's timezone, which gets stored inCart.getInternalAttributes()to be used by downstream services.If this is present in subscription scenarios, then it will be used to adjust subscription dates to describe the beginning/end of days relative to the customer's timezone.
- See Also:
-
getCartInternalAttributes
Miscellaneous internal attributes for this item. It is used for attributes that assist in the internal working of Broadleaf MicroServices. For example, attributes to help with processing the cart's checkout. -
getCartAttributes
Miscellaneous attributes that should be copied toCart.getAttributes() -
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
-
setExpirationDate
DefaultCartTypes.QUOTEcarts can have an expiration date. -
setAddItemRequests
The initialAddItemRequeststo populate the cart. -
setPriceCartRequest
The initialPriceCartRequestto price the cart. -
setCustomerTimezone
The customer's timezone, which gets stored inCart.getInternalAttributes()to be used by downstream services.If this is present in subscription scenarios, then it will be used to adjust subscription dates to describe the beginning/end of days relative to the customer's timezone.
- See Also:
-
setCartInternalAttributes
Miscellaneous internal attributes for this item. It is used for attributes that assist in the internal working of Broadleaf MicroServices. For example, attributes to help with processing the cart's checkout. -
setCartAttributes
Miscellaneous attributes that should be copied toCart.getAttributes() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-