Interface AgentOutOfScopeError
- All Superinterfaces:
ErrorObject
Returned by a /responses request when the input does not contain enough information to create a Cart or a Quote Request: no products, no customer email address, and no shipping country could be determined.
Example to create an instance using the builder pattern
AgentOutOfScopeError agentOutOfScopeError = AgentOutOfScopeError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentOutOfScopeError -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentOutOfScopeErrorBuilderbuilder()builder factory method for AgentOutOfScopeErrorstatic AgentOutOfScopeErrorBuilderbuilder(AgentOutOfScopeError template) create builder for AgentOutOfScopeError instancecopyDeep()static AgentOutOfScopeErrordeepCopy(AgentOutOfScopeError template) factory method to create a deep copy of AgentOutOfScopeError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.static AgentOutOfScopeErrorof()factory methodstatic AgentOutOfScopeErrorof(AgentOutOfScopeError template) factory method to create a shallow copy AgentOutOfScopeErrorvoidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentOutOfScopeError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAgentOutOfScopeError(Function<AgentOutOfScopeError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
OUT_OF_SCOPE
discriminator value for AgentOutOfScopeError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
Plain text description of the error.
- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
Plain text description of the error.
- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of AgentOutOfScopeError
-
of
factory method to create a shallow copy AgentOutOfScopeError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentOutOfScopeError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of AgentOutOfScopeError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentOutOfScopeError- Returns:
- builder
-
builder
create builder for AgentOutOfScopeError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentOutOfScopeError
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-