public class AddItemFailure extends Object
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 ProductModifier and Type | Class and Description |
---|---|
static class |
AddItemFailure.AddItemFailureType |
Constructor and Description |
---|
AddItemFailure() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
AddItemRequest |
getAddItemRequest()
The add item request that failed
|
com.broadleafcommerce.cart.client.domain.CartItem |
getInvalidCartItem()
If
type is AddItemFailure.AddItemFailureType.VALIDATION , this object represents the invalid
CartItem that was built based on the provided addItemRequest |
String |
getType()
The type of failure that this request encountered.
|
int |
hashCode() |
void |
setAddItemRequest(AddItemRequest addItemRequest)
The add item request that failed
|
void |
setInvalidCartItem(com.broadleafcommerce.cart.client.domain.CartItem invalidCartItem)
If
type is AddItemFailure.AddItemFailureType.VALIDATION , this object represents the invalid
CartItem that was built based on the provided addItemRequest |
void |
setType(String type)
The type of failure that this request encountered.
|
String |
toString() |
public AddItemRequest getAddItemRequest()
public String getType()
AddItemFailure.AddItemFailureType
public com.broadleafcommerce.cart.client.domain.CartItem getInvalidCartItem()
type
is AddItemFailure.AddItemFailureType.VALIDATION
, this object represents the invalid
CartItem
that was built based on the provided addItemRequest
public void setAddItemRequest(AddItemRequest addItemRequest)
public void setType(String type)
AddItemFailure.AddItemFailureType
public void setInvalidCartItem(com.broadleafcommerce.cart.client.domain.CartItem invalidCartItem)
type
is AddItemFailure.AddItemFailureType.VALIDATION
, this object represents the invalid
CartItem
that was built based on the provided addItemRequest
invalidCartItem
- The invalid cart item that was build based on the addItemRequestprotected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.