Interface GraphQLMatchingPriceNotFoundError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLMatchingPriceNotFoundError extends 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 Details

    • MATCHING_PRICE_NOT_FOUND

      static final String MATCHING_PRICE_NOT_FOUND
      discriminator value for GraphQLMatchingPriceNotFoundError
      See Also:
  • Method Details

    • getCode

      @NotNull @NotNull String getCode()
      Description copied from interface: GraphQLErrorObject

      Error identifier.

      Specified by:
      getCode in interface GraphQLErrorObject
      Returns:
      code
    • getProductId

      @NotNull @NotNull String getProductId()

      Unique identifier of a Product.

      Returns:
      productId
    • getVariantId

      @NotNull @NotNull Integer 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

      @Valid @Valid CustomerGroupReference getCustomerGroup()

      Customer Group associated with the Price.

      Returns:
      customerGroup
    • getChannel

      @Valid @Valid ChannelReference getChannel()

      Channel associated with the Price.

      Returns:
      channel
    • setProductId

      void setProductId(String productId)

      Unique identifier of a Product.

      Parameters:
      productId - value to be set
    • setVariantId

      void setVariantId(Integer variantId)

      Unique identifier of a ProductVariant in the Product.

      Parameters:
      variantId - value to be set
    • setCurrency

      void setCurrency(String currency)

      Currency code of the country.

      Parameters:
      currency - value to be set
    • setCountry

      void setCountry(String country)

      Country code of the geographic location.

      Parameters:
      country - value to be set
    • setCustomerGroup

      void setCustomerGroup(CustomerGroupReference customerGroup)

      Customer Group associated with the Price.

      Parameters:
      customerGroup - value to be set
    • setChannel

      void setChannel(ChannelReference channel)

      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

      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