Class NoMatchingProductDiscountFoundErrorImpl
java.lang.Object
com.commercetools.api.models.error.NoMatchingProductDiscountFoundErrorImpl
- All Implemented Interfaces:
ErrorObject
,NoMatchingProductDiscountFoundError
,io.vrap.rmf.base.client.ModelBase
public class NoMatchingProductDiscountFoundErrorImpl
extends Object
implements NoMatchingProductDiscountFoundError, io.vrap.rmf.base.client.ModelBase
Returned when a Product Discount could not be found that could be applied to the Price of a Product Variant.
The error is returned as a failed response to the Get Matching ProductDiscount request.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.NoMatchingProductDiscountFoundError
NO_MATCHING_PRODUCT_DISCOUNT_FOUND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier."Couldn't find a matching product discount for: productId=$productId, variantId=$variantId, price=$price."
int
hashCode()
void
setMessage
(String message) "Couldn't find a matching product discount for: productId=$productId, variantId=$variantId, price=$price."
void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.error.NoMatchingProductDiscountFoundError
withNoMatchingProductDiscountFoundError
-
Constructor Details
-
NoMatchingProductDiscountFoundErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceNoMatchingProductDiscountFoundError
- Returns:
- code
-
getMessage
"Couldn't find a matching product discount for: productId=$productId, variantId=$variantId, price=$price."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceNoMatchingProductDiscountFoundError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
setMessage
Description copied from interface:NoMatchingProductDiscountFoundError
"Couldn't find a matching product discount for: productId=$productId, variantId=$variantId, price=$price."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceNoMatchingProductDiscountFoundError
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
equals
-
hashCode
-