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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for EditPreviewFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for EditPreviewFailedErrorbuilder(EditPreviewFailedError template) create builder for EditPreviewFailedError instancecopyDeep()static EditPreviewFailedErrordeepCopy(EditPreviewFailedError template) factory method to create a deep copy of EditPreviewFailedError@NotNull StringgetCode()Error identifier.@NotNull String"Error while applying staged actions.@NotNull @Valid OrderEditPreviewFailureState of the OrderEdit where thestagedActionscannot be applied to the Order.static EditPreviewFailedErrorof()factory methodstatic EditPreviewFailedErrorof(EditPreviewFailedError template) factory method to create a shallow copy EditPreviewFailedErrorvoidsetMessage(String message) "Error while applying staged actions.voidsetResult(OrderEditPreviewFailure result) State of the OrderEdit where thestagedActionscannot be applied to the Order.static com.fasterxml.jackson.core.type.TypeReference<EditPreviewFailedError>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
-
EDIT_PREVIEW_FAILED
discriminator value for EditPreviewFailedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"Error while applying staged actions. ShippingMethods could not be determined."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
getResult
State of the OrderEdit where the
stagedActionscannot be applied to the Order.- Returns:
- result
-
setMessage
"Error while applying staged actions. ShippingMethods could not be determined."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
setResult
State of the OrderEdit where the
stagedActionscannot 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
-
copyDeep
EditPreviewFailedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-