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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe add item request that failedcom.broadleafcommerce.cart.client.domain.CartItemIftypeisAddItemFailure.AddItemFailureType.VALIDATION, this object represents the invalidCartItemthat was built based on the providedaddItemRequestgetType()The type of failure that this request encountered.inthashCode()voidsetAddItemRequest(AddItemRequest addItemRequest) The add item request that failedvoidsetInvalidCartItem(com.broadleafcommerce.cart.client.domain.CartItem invalidCartItem) IftypeisAddItemFailure.AddItemFailureType.VALIDATION, this object represents the invalidCartItemthat was built based on the providedaddItemRequestvoidThe 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()IftypeisAddItemFailure.AddItemFailureType.VALIDATION, this object represents the invalidCartItemthat 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) IftypeisAddItemFailure.AddItemFailureType.VALIDATION, this object represents the invalidCartItemthat 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
-