Class QueryPriceImpl

java.lang.Object
com.commercetools.api.models.common.QueryPriceImpl
All Implemented Interfaces:
QueryPrice, Customizable<QueryPrice>, io.vrap.rmf.base.client.ModelBase

public class QueryPriceImpl extends Object implements QueryPrice, io.vrap.rmf.base.client.ModelBase
QueryPrice
  • Constructor Details

    • QueryPriceImpl

      public QueryPriceImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the given Price.

      Specified by:
      getId in interface QueryPrice
      Returns:
      id
    • getValue

      public Money getValue()

      Money value of the given Price.

      Specified by:
      getValue in interface QueryPrice
      Returns:
      value
    • getCountry

      public String getCountry()

      Country for which the given Price is valid.

      Specified by:
      getCountry in interface QueryPrice
      Returns:
      country
    • getCustomerGroup

      public CustomerGroupReference getCustomerGroup()

      CustomerGroup for which the given Price is valid.

      Specified by:
      getCustomerGroup in interface QueryPrice
      Returns:
      customerGroup
    • getChannel

      public ChannelReference getChannel()

      ProductDistribution Channel for which the given Price is valid.

      Specified by:
      getChannel in interface QueryPrice
      Returns:
      channel
    • getValidFrom

      public ZonedDateTime getValidFrom()

      Date from which the given Price is valid.

      Specified by:
      getValidFrom in interface QueryPrice
      Returns:
      validFrom
    • getValidUntil

      public ZonedDateTime getValidUntil()

      Date until which the given Price is valid.

      Specified by:
      getValidUntil in interface QueryPrice
      Returns:
      validUntil
    • getDiscounted

      public DiscountedPriceDraft getDiscounted()

      DiscountedPrice you specify for the given Price.

      Specified by:
      getDiscounted in interface QueryPrice
      Returns:
      discounted
    • getCustom

      public CustomFields getCustom()

      Custom Fields for the Price.

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

      public 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.

      Specified by:
      getTiers in interface QueryPrice
      Returns:
      tiers
    • setId

      public void setId(String id)
      Description copied from interface: QueryPrice

      Unique identifier of the given Price.

      Specified by:
      setId in interface QueryPrice
      Parameters:
      id - value to be set
    • setValue

      public void setValue(Money value)
      Description copied from interface: QueryPrice

      Money value of the given Price.

      Specified by:
      setValue in interface QueryPrice
      Parameters:
      value - value to be set
    • setCountry

      public void setCountry(String country)
      Description copied from interface: QueryPrice

      Country for which the given Price is valid.

      Specified by:
      setCountry in interface QueryPrice
      Parameters:
      country - value to be set
    • setCustomerGroup

      public void setCustomerGroup(CustomerGroupReference customerGroup)
      Description copied from interface: QueryPrice

      CustomerGroup for which the given Price is valid.

      Specified by:
      setCustomerGroup in interface QueryPrice
      Parameters:
      customerGroup - value to be set
    • setChannel

      public void setChannel(ChannelReference channel)
      Description copied from interface: QueryPrice

      ProductDistribution Channel for which the given Price is valid.

      Specified by:
      setChannel in interface QueryPrice
      Parameters:
      channel - value to be set
    • setValidFrom

      public void setValidFrom(ZonedDateTime validFrom)
      Description copied from interface: QueryPrice

      Date from which the given Price is valid.

      Specified by:
      setValidFrom in interface QueryPrice
      Parameters:
      validFrom - value to be set
    • setValidUntil

      public void setValidUntil(ZonedDateTime validUntil)
      Description copied from interface: QueryPrice

      Date until which the given Price is valid.

      Specified by:
      setValidUntil in interface QueryPrice
      Parameters:
      validUntil - value to be set
    • setDiscounted

      public void setDiscounted(DiscountedPriceDraft discounted)
      Description copied from interface: QueryPrice

      DiscountedPrice you specify for the given Price.

      Specified by:
      setDiscounted in interface QueryPrice
      Parameters:
      discounted - value to be set
    • setCustom

      public void setCustom(CustomFields custom)
      Description copied from interface: QueryPrice

      Custom Fields for the Price.

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

      public void setTiers(PriceTierDraft... tiers)
      Description copied from interface: QueryPrice

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

      Specified by:
      setTiers in interface QueryPrice
      Parameters:
      tiers - values to be set
    • setTiers

      public void setTiers(List<PriceTierDraft> tiers)
      Description copied from interface: QueryPrice

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

      Specified by:
      setTiers in interface QueryPrice
      Parameters:
      tiers - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object