Class MatchingPriceNotFoundErrorImpl
- All Implemented Interfaces:
ErrorObject
,MatchingPriceNotFoundError
,io.vrap.rmf.base.client.ModelBase
Returned when the Product Variant does not have a Price according to the Product priceMode
value for a selected currency, country, Customer Group, or Channel.
The error is returned as a failed response to:
- Add LineItem, Add CustomLineItem, and Add DiscountCode update actions on Carts.
- Add LineItem, Add CustomLineItem, and Add DiscountCode update actions on Order Edits.
- Create Order from Cart and Create Order in Store from Cart requests on Orders.
- Create Order from Cart and Create Order in Store from Cart requests on My Orders.
-
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.MatchingPriceNotFoundError
MATCHING_PRICE_NOT_FOUND
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Channel associated with the Price.getCode()
Error identifier.Country code of the geographic location.Currency code of the country.Customer Group associated with the Price."The variant $variantId of product $productId does not contain a price for currency $currencyCode, $country, $customerGroup, $channel."
Unique identifier of a Product.Unique identifier of a ProductVariant in the Product.int
hashCode()
void
setChannel
(ChannelReference channel) Channel associated with the Price.void
setCountry
(String country) Country code of the geographic location.void
setCurrency
(String currency) Currency code of the country.void
setCustomerGroup
(CustomerGroupReference customerGroup) Customer Group associated with the Price.void
setMessage
(String message) "The variant $variantId of product $productId does not contain a price for currency $currencyCode, $country, $customerGroup, $channel."
void
setProductId
(String productId) Unique identifier of a Product.void
Error-specific additional fields.void
setVariantId
(Integer variantId) Unique identifier of a ProductVariant in the Product.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 com.commercetools.api.models.error.MatchingPriceNotFoundError
withMatchingPriceNotFoundError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
MatchingPriceNotFoundErrorImpl
public MatchingPriceNotFoundErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceMatchingPriceNotFoundError
- Returns:
- code
-
getMessage
"The variant $variantId of product $productId does not contain a price for currency $currencyCode, $country, $customerGroup, $channel."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceMatchingPriceNotFoundError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getProductId
Unique identifier of a Product.
- Specified by:
getProductId
in interfaceMatchingPriceNotFoundError
- Returns:
- productId
-
getVariantId
Unique identifier of a ProductVariant in the Product.
- Specified by:
getVariantId
in interfaceMatchingPriceNotFoundError
- Returns:
- variantId
-
getCurrency
Currency code of the country.
- Specified by:
getCurrency
in interfaceMatchingPriceNotFoundError
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Specified by:
getCountry
in interfaceMatchingPriceNotFoundError
- Returns:
- country
-
getCustomerGroup
Customer Group associated with the Price.
- Specified by:
getCustomerGroup
in interfaceMatchingPriceNotFoundError
- Returns:
- customerGroup
-
getChannel
Channel associated with the Price.
- Specified by:
getChannel
in interfaceMatchingPriceNotFoundError
- Returns:
- channel
-
setMessage
Description copied from interface:MatchingPriceNotFoundError
"The variant $variantId of product $productId does not contain a price for currency $currencyCode, $country, $customerGroup, $channel."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceMatchingPriceNotFoundError
- 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
-
setProductId
Description copied from interface:MatchingPriceNotFoundError
Unique identifier of a Product.
- Specified by:
setProductId
in interfaceMatchingPriceNotFoundError
- Parameters:
productId
- value to be set
-
setVariantId
Description copied from interface:MatchingPriceNotFoundError
Unique identifier of a ProductVariant in the Product.
- Specified by:
setVariantId
in interfaceMatchingPriceNotFoundError
- Parameters:
variantId
- value to be set
-
setCurrency
Description copied from interface:MatchingPriceNotFoundError
Currency code of the country.
- Specified by:
setCurrency
in interfaceMatchingPriceNotFoundError
- Parameters:
currency
- value to be set
-
setCountry
Description copied from interface:MatchingPriceNotFoundError
Country code of the geographic location.
- Specified by:
setCountry
in interfaceMatchingPriceNotFoundError
- Parameters:
country
- value to be set
-
setCustomerGroup
Description copied from interface:MatchingPriceNotFoundError
Customer Group associated with the Price.
- Specified by:
setCustomerGroup
in interfaceMatchingPriceNotFoundError
- Parameters:
customerGroup
- value to be set
-
setChannel
Description copied from interface:MatchingPriceNotFoundError
Channel associated with the Price.
- Specified by:
setChannel
in interfaceMatchingPriceNotFoundError
- Parameters:
channel
- value to be set
-
equals
-
hashCode
-