Interface EditPreviewFailedError
- All Superinterfaces:
ErrorObject
Returned when a preview to find an appropriate Shipping Method for an OrderEdit could not be generated.
The error is returned as a failed response to the Get Shipping Methods for an OrderEdit request.
Example to create an instance using the builder pattern
EditPreviewFailedError editPreviewFailedError = EditPreviewFailedError.builder()
.message("{message}")
.result(resultBuilder -> resultBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for EditPreviewFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for EditPreviewFailedErrorbuilder
(EditPreviewFailedError template) create builder for EditPreviewFailedError instancestatic EditPreviewFailedError
deepCopy
(EditPreviewFailedError template) factory method to create a deep copy of EditPreviewFailedError@NotNull String
getCode()
Error identifier.@NotNull String
"Error while applying staged actions.
@NotNull @Valid OrderEditPreviewFailure
State of the OrderEdit where thestagedActions
cannot be applied to the Order.static EditPreviewFailedError
of()
factory methodstatic EditPreviewFailedError
of
(EditPreviewFailedError template) factory method to create a shallow copy EditPreviewFailedErrorvoid
setMessage
(String message) "Error while applying staged actions.
void
setResult
(OrderEditPreviewFailure result) State of the OrderEdit where thestagedActions
cannot be applied to the Order.static com.fasterxml.jackson.core.type.TypeReference<EditPreviewFailedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
EDIT_PREVIEW_FAILED
discriminator value for EditPreviewFailedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Error while applying staged actions. ShippingMethods could not be determined."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getResult
State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Returns:
- result
-
setMessage
"Error while applying staged actions. ShippingMethods could not be determined."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setResult
State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Parameters:
result
- value to be set
-
of
factory method- Returns:
- instance of EditPreviewFailedError
-
of
factory method to create a shallow copy EditPreviewFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of EditPreviewFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for EditPreviewFailedError- Returns:
- builder
-
builder
create builder for EditPreviewFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withEditPreviewFailedError
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
-