Interface GraphQLMatchingPriceNotFoundError
- All Superinterfaces:
GraphQLErrorObject
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 can be returned as a failed response to all update actions on Carts and Staged Orders.
The error is also returned as a failed response to:
- Authenticate (sign in) Customer and Authenticate (sign in) Customer in Store requests and Set CustomerGroup update action on Customers.
- Authenticate (sign in) Customer and Authenticate (sign in) Customer in Store requests on My Customer Profile.
- Create Cart, Create Cart in Store, Replicate Cart, and Replicate Cart in Store requests on Carts.
- Create Cart and Create Cart in Store and Replicate My Cart requests on My Carts.
- Create Cart in BusinessUnit and Replicate Cart in Business Unit requests on Associate Carts.
- 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.
- Create Order from Cart in BusinessUnit request on Associate Orders.
Example to create an instance using the builder pattern
GraphQLMatchingPriceNotFoundError graphQLMatchingPriceNotFoundError = GraphQLMatchingPriceNotFoundError.builder()
.productId("{productId}")
.variantId(1)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLMatchingPriceNotFoundError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLMatchingPriceNotFoundErrorbuilder
(GraphQLMatchingPriceNotFoundError template) create builder for GraphQLMatchingPriceNotFoundError instancedeepCopy
(GraphQLMatchingPriceNotFoundError template) factory method to create a deep copy of GraphQLMatchingPriceNotFoundError@Valid ChannelReference
Channel associated with the Price.@NotNull String
getCode()
One of the error codes that is listed on the Errors page.Country code of the geographic location.Currency code of the country.@Valid CustomerGroupReference
Customer Group associated with the Price.@NotNull String
Unique identifier of a Product.@NotNull Integer
Unique identifier of a ProductVariant in the Product.of()
factory methodof
(GraphQLMatchingPriceNotFoundError template) factory method to create a shallow copy GraphQLMatchingPriceNotFoundErrorvoid
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
setVariantId
(Integer variantId) Unique identifier of a ProductVariant in the Product.static com.fasterxml.jackson.core.type.TypeReference<GraphQLMatchingPriceNotFoundError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
MATCHING_PRICE_NOT_FOUND
discriminator value for GraphQLMatchingPriceNotFoundError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getProductId
Unique identifier of a Product.
- Returns:
- productId
-
getVariantId
Unique identifier of a ProductVariant in the Product.
- Returns:
- variantId
-
getCurrency
String getCurrency()Currency code of the country.
- Returns:
- currency
-
getCountry
String getCountry()Country code of the geographic location.
- Returns:
- country
-
getCustomerGroup
Customer Group associated with the Price.
- Returns:
- customerGroup
-
getChannel
Channel associated with the Price.
- Returns:
- channel
-
setProductId
Unique identifier of a Product.
- Parameters:
productId
- value to be set
-
setVariantId
Unique identifier of a ProductVariant in the Product.
- Parameters:
variantId
- value to be set
-
setCurrency
Currency code of the country.
- Parameters:
currency
- value to be set
-
setCountry
Country code of the geographic location.
- Parameters:
country
- value to be set
-
setCustomerGroup
Customer Group associated with the Price.
- Parameters:
customerGroup
- value to be set
-
setChannel
Channel associated with the Price.
- Parameters:
channel
- value to be set
-
of
factory method- Returns:
- instance of GraphQLMatchingPriceNotFoundError
-
of
factory method to create a shallow copy GraphQLMatchingPriceNotFoundError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLMatchingPriceNotFoundError deepCopy(@Nullable GraphQLMatchingPriceNotFoundError template) factory method to create a deep copy of GraphQLMatchingPriceNotFoundError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLMatchingPriceNotFoundError- Returns:
- builder
-
builder
create builder for GraphQLMatchingPriceNotFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLMatchingPriceNotFoundError
default <T> T withGraphQLMatchingPriceNotFoundError(Function<GraphQLMatchingPriceNotFoundError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLMatchingPriceNotFoundError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-