Class AddItemFailure
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.AddItemFailure
-
public class AddItemFailure extends Object
Represents anAddItemRequestthat 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 Modifier and Type Class Description static classAddItemFailure.AddItemFailureType
-
Constructor Summary
Constructors Constructor Description AddItemFailure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)AddItemRequestgetAddItemRequest()The add item request that failedcom.broadleafcommerce.cart.client.domain.CartItemgetInvalidCartItem()IftypeisAddItemFailure.AddItemFailureType.VALIDATION, this object represents the invalidCartItemthat was built based on the providedaddItemRequestStringgetType()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 providedaddItemRequestvoidsetType(String type)The type of failure that this request encountered.StringtoString()
-
-
-
Method Detail
-
getAddItemRequest
public AddItemRequest getAddItemRequest()
The add item request that failed
-
getType
public String getType()
The type of failure that this request encountered.- See Also:
AddItemFailure.AddItemFailureType
-
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
public void setAddItemRequest(AddItemRequest addItemRequest)
The add item request that failed
-
setType
public void setType(String type)
The type of failure that this request encountered.- See Also:
AddItemFailure.AddItemFailureType
-
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
-
canEqual
protected boolean canEqual(Object other)
-
-