Interface AgentQuoteRequestCreationFailedError
- All Superinterfaces:
ErrorObject
Returned by a /responses request when the underlying Cart was created but the QuoteRequest could not be created from it, for example because the Cart has no verified Customer.
Example to create an instance using the builder pattern
AgentQuoteRequestCreationFailedError agentQuoteRequestCreationFailedError = AgentQuoteRequestCreationFailedError.builder()
.message("{message}")
.cartId("{cartId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentQuoteRequestCreationFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentQuoteRequestCreationFailedErrorbuilder(AgentQuoteRequestCreationFailedError template) create builder for AgentQuoteRequestCreationFailedError instancecopyDeep()deepCopy(AgentQuoteRequestCreationFailedError template) factory method to create a deep copy of AgentQuoteRequestCreationFailedError@NotNull Stringidof the orphaned Cart, for retry or cleanup.@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.of()factory methodof(AgentQuoteRequestCreationFailedError template) factory method to create a shallow copy AgentQuoteRequestCreationFailedErrorvoididof the orphaned Cart, for retry or cleanup.voidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentQuoteRequestCreationFailedError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
QUOTE_REQUEST_CREATION_FAILED
discriminator value for AgentQuoteRequestCreationFailedError- 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
-
getCartId
idof the orphaned Cart, for retry or cleanup.- Returns:
- cartId
-
setMessage
Plain text description of the error.
- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
setCartId
idof the orphaned Cart, for retry or cleanup.- Parameters:
cartId- value to be set
-
of
factory method- Returns:
- instance of AgentQuoteRequestCreationFailedError
-
of
factory method to create a shallow copy AgentQuoteRequestCreationFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentQuoteRequestCreationFailedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static AgentQuoteRequestCreationFailedError deepCopy(@Nullable AgentQuoteRequestCreationFailedError template) factory method to create a deep copy of AgentQuoteRequestCreationFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentQuoteRequestCreationFailedError- Returns:
- builder
-
builder
static AgentQuoteRequestCreationFailedErrorBuilder builder(AgentQuoteRequestCreationFailedError template) create builder for AgentQuoteRequestCreationFailedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentQuoteRequestCreationFailedError
default <T> T withAgentQuoteRequestCreationFailedError(Function<AgentQuoteRequestCreationFailedError, T> helper) 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
-