Class AddItemFailure
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.AddItemFailure
-
public class AddItemFailure extends Object
Represents anAddItemRequest
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 Modifier and Type Class Description static class
AddItemFailure.AddItemFailureType
-
Constructor Summary
Constructors Constructor Description AddItemFailure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
AddItemRequest
getAddItemRequest()
The add item request that failedcom.broadleafcommerce.cart.client.domain.CartItem
getInvalidCartItem()
Iftype
isAddItemFailure.AddItemFailureType.VALIDATION
, this object represents the invalidCartItem
that was built based on the providedaddItemRequest
String
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
setType(String type)
The type of failure that this request encountered.String
toString()
-
-
-
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()
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
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)
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
-
canEqual
protected boolean canEqual(Object other)
-
-