Interface QueryPrice

All Superinterfaces:
Customizable<QueryPrice>

public interface QueryPrice extends Customizable<QueryPrice>
QueryPrice
Example to create an instance using the builder pattern

     QueryPrice queryPrice = QueryPrice.builder()
             .value(valueBuilder -> valueBuilder)
             .build()
 
  • Method Details

    • getId

      String getId()

      Unique identifier of the given Price.

      Returns:
      id
    • getValue

      @NotNull @Valid @NotNull @Valid Money getValue()

      Money value of the given Price.

      Returns:
      value
    • getCountry

      String getCountry()

      Country for which the given Price is valid.

      Returns:
      country
    • getCustomerGroup

      @Valid @Valid CustomerGroupReference getCustomerGroup()

      CustomerGroup for which the given Price is valid.

      Returns:
      customerGroup
    • getChannel

      @Valid @Valid ChannelReference getChannel()

      ProductDistribution Channel for which the given Price is valid.

      Returns:
      channel
    • getValidFrom

      ZonedDateTime getValidFrom()

      Date from which the given Price is valid.

      Returns:
      validFrom
    • getValidUntil

      ZonedDateTime getValidUntil()

      Date until which the given Price is valid.

      Returns:
      validUntil
    • getDiscounted

      @Valid @Valid DiscountedPriceDraft getDiscounted()

      DiscountedPrice you specify for the given Price.

      Returns:
      discounted
    • getCustom

      @Valid @Valid CustomFields getCustom()

      Custom Fields for the Price.

      Specified by:
      getCustom in interface Customizable<QueryPrice>
      Returns:
      custom
    • getTiers

      @Valid @Valid List<PriceTierDraft> getTiers()

      Price tier applied when the minimum quantity for the LineItem of a ProductVariant with the related Price is reached in a Cart.

      If discounted is specified, the tiered Price is ignored for a Product Variant.

      Returns:
      tiers
    • setId

      void setId(String id)

      Unique identifier of the given Price.

      Parameters:
      id - value to be set
    • setValue

      void setValue(Money value)

      Money value of the given Price.

      Parameters:
      value - value to be set
    • setCountry

      void setCountry(String country)

      Country for which the given Price is valid.

      Parameters:
      country - value to be set
    • setCustomerGroup

      void setCustomerGroup(CustomerGroupReference customerGroup)

      CustomerGroup for which the given Price is valid.

      Parameters:
      customerGroup - value to be set
    • setChannel

      void setChannel(ChannelReference channel)

      ProductDistribution Channel for which the given Price is valid.

      Parameters:
      channel - value to be set
    • setValidFrom

      void setValidFrom(ZonedDateTime validFrom)

      Date from which the given Price is valid.

      Parameters:
      validFrom - value to be set
    • setValidUntil

      void setValidUntil(ZonedDateTime validUntil)

      Date until which the given Price is valid.

      Parameters:
      validUntil - value to be set
    • setDiscounted

      void setDiscounted(DiscountedPriceDraft discounted)

      DiscountedPrice you specify for the given Price.

      Parameters:
      discounted - value to be set
    • setCustom

      void setCustom(CustomFields custom)

      Custom Fields for the Price.

      Specified by:
      setCustom in interface Customizable<QueryPrice>
      Parameters:
      custom - value to be set
    • setTiers

      void setTiers(PriceTierDraft... tiers)

      Price tier applied when the minimum quantity for the LineItem of a ProductVariant with the related Price is reached in a Cart.

      If discounted is specified, the tiered Price is ignored for a Product Variant.

      Parameters:
      tiers - values to be set
    • setTiers

      void setTiers(List<PriceTierDraft> tiers)

      Price tier applied when the minimum quantity for the LineItem of a ProductVariant with the related Price is reached in a Cart.

      If discounted is specified, the tiered Price is ignored for a Product Variant.

      Parameters:
      tiers - values to be set
    • of

      static QueryPrice of()
      factory method
      Returns:
      instance of QueryPrice
    • of

      static QueryPrice of(QueryPrice template)
      factory method to create a shallow copy QueryPrice
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static QueryPrice deepCopy(@Nullable QueryPrice template)
      factory method to create a deep copy of QueryPrice
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static QueryPriceBuilder builder()
      builder factory method for QueryPrice
      Returns:
      builder
    • builder

      static QueryPriceBuilder builder(QueryPrice template)
      create builder for QueryPrice instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withQueryPrice

      default <T> T withQueryPrice(Function<QueryPrice,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<QueryPrice> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference