Class AddItemFailure
java.lang.Object
com.broadleafcommerce.cartoperation.service.AddItemFailure
Represents an
AddItemRequest
that failed due to either an inability to identify the
Product that is being added to cart or the request does not specify all required attributes for
the Product- Author:
- Chris Kittrell (ckittrell)
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The add item request that failedcom.broadleafcommerce.cart.client.domain.CartItem
Iftype
isAddItemFailure.AddItemFailureType.VALIDATION
, this object represents the invalidCartItem
that was built based on the providedaddItemRequest
getType()
The type of failure that this request encountered.int
hashCode()
void
setAddItemRequest
(AddItemRequest addItemRequest) The add item request that failedvoid
setInvalidCartItem
(com.broadleafcommerce.cart.client.domain.CartItem invalidCartItem) Iftype
isAddItemFailure.AddItemFailureType.VALIDATION
, this object represents the invalidCartItem
that was built based on the providedaddItemRequest
void
The type of failure that this request encountered.toString()
-
Constructor Details
-
AddItemFailure
public AddItemFailure()
-
-
Method Details
-
getAddItemRequest
The add item request that failed -
getType
The type of failure that this request encountered.- See Also:
-
getInvalidCartItem
public com.broadleafcommerce.cart.client.domain.CartItem getInvalidCartItem()Iftype
isAddItemFailure.AddItemFailureType.VALIDATION
, this object represents the invalidCartItem
that was built based on the providedaddItemRequest
- Returns:
- The invalid cart item that was build based on the addItemRequest
-
setAddItemRequest
The add item request that failed -
setType
The type of failure that this request encountered.- See Also:
-
setInvalidCartItem
public void setInvalidCartItem(com.broadleafcommerce.cart.client.domain.CartItem invalidCartItem) Iftype
isAddItemFailure.AddItemFailureType.VALIDATION
, this object represents the invalidCartItem
that was built based on the providedaddItemRequest
- Parameters:
invalidCartItem
- The invalid cart item that was build based on the addItemRequest
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-