Class GraphQLMatchingPriceNotFoundErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundErrorImpl
- All Implemented Interfaces:
GraphQLErrorObject
,GraphQLMatchingPriceNotFoundError
,io.vrap.rmf.base.client.ModelBase
public class GraphQLMatchingPriceNotFoundErrorImpl
extends Object
implements GraphQLMatchingPriceNotFoundError, 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.GraphQLMatchingPriceNotFoundError
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.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
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.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundError
withGraphQLMatchingPriceNotFoundError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLMatchingPriceNotFoundErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Specified by:
getCode
in interfaceGraphQLMatchingPriceNotFoundError
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getProductId
Unique identifier of a Product.
- Specified by:
getProductId
in interfaceGraphQLMatchingPriceNotFoundError
- Returns:
- productId
-
getVariantId
Unique identifier of a ProductVariant in the Product.
- Specified by:
getVariantId
in interfaceGraphQLMatchingPriceNotFoundError
- Returns:
- variantId
-
getCurrency
Currency code of the country.
- Specified by:
getCurrency
in interfaceGraphQLMatchingPriceNotFoundError
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Specified by:
getCountry
in interfaceGraphQLMatchingPriceNotFoundError
- Returns:
- country
-
getCustomerGroup
Customer Group associated with the Price.
- Specified by:
getCustomerGroup
in interfaceGraphQLMatchingPriceNotFoundError
- Returns:
- customerGroup
-
getChannel
Channel associated with the Price.
- Specified by:
getChannel
in interfaceGraphQLMatchingPriceNotFoundError
- Returns:
- channel
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setProductId
Description copied from interface:GraphQLMatchingPriceNotFoundError
Unique identifier of a Product.
- Specified by:
setProductId
in interfaceGraphQLMatchingPriceNotFoundError
- Parameters:
productId
- value to be set
-
setVariantId
Description copied from interface:GraphQLMatchingPriceNotFoundError
Unique identifier of a ProductVariant in the Product.
- Specified by:
setVariantId
in interfaceGraphQLMatchingPriceNotFoundError
- Parameters:
variantId
- value to be set
-
setCurrency
Description copied from interface:GraphQLMatchingPriceNotFoundError
Currency code of the country.
- Specified by:
setCurrency
in interfaceGraphQLMatchingPriceNotFoundError
- Parameters:
currency
- value to be set
-
setCountry
Description copied from interface:GraphQLMatchingPriceNotFoundError
Country code of the geographic location.
- Specified by:
setCountry
in interfaceGraphQLMatchingPriceNotFoundError
- Parameters:
country
- value to be set
-
setCustomerGroup
Description copied from interface:GraphQLMatchingPriceNotFoundError
Customer Group associated with the Price.
- Specified by:
setCustomerGroup
in interfaceGraphQLMatchingPriceNotFoundError
- Parameters:
customerGroup
- value to be set
-
setChannel
Description copied from interface:GraphQLMatchingPriceNotFoundError
Channel associated with the Price.
- Specified by:
setChannel
in interfaceGraphQLMatchingPriceNotFoundError
- Parameters:
channel
- value to be set
-
equals
-
hashCode
-