Class QueryPriceImpl
- All Implemented Interfaces:
QueryPrice
,Customizable<QueryPrice>
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ProductDistribution
Channel for which the given Price is valid.Country for which the given Price is valid.Custom Fields for the Price.CustomerGroup for which the given Price is valid.DiscountedPrice you specify for the given Price.getId()
Unique identifier of the given Price.getTiers()
Price tier applied when the minimum quantity for the LineItem of a ProductVariant with the related Price is reached in a Cart.Date from which the given Price is valid.Date until which the given Price is valid.getValue()
Money value of the given Price.int
hashCode()
void
setChannel
(ChannelReference channel) ProductDistribution
Channel for which the given Price is valid.void
setCountry
(String country) Country for which the given Price is valid.void
setCustom
(CustomFields custom) Custom Fields for the Price.void
setCustomerGroup
(CustomerGroupReference customerGroup) CustomerGroup for which the given Price is valid.void
setDiscounted
(DiscountedPriceDraft discounted) DiscountedPrice you specify for the given Price.void
Unique identifier of the given Price.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.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.void
setValidFrom
(ZonedDateTime validFrom) Date from which the given Price is valid.void
setValidUntil
(ZonedDateTime validUntil) Date until which the given Price is valid.void
Money value of the given Price.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.common.QueryPrice
withQueryPrice
-
Constructor Details
-
QueryPriceImpl
public QueryPriceImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the given Price.
- Specified by:
getId
in interfaceQueryPrice
- Returns:
- id
-
getValue
Money value of the given Price.
- Specified by:
getValue
in interfaceQueryPrice
- Returns:
- value
-
getCountry
Country for which the given Price is valid.
- Specified by:
getCountry
in interfaceQueryPrice
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the given Price is valid.
- Specified by:
getCustomerGroup
in interfaceQueryPrice
- Returns:
- customerGroup
-
getChannel
ProductDistribution
Channel for which the given Price is valid.- Specified by:
getChannel
in interfaceQueryPrice
- Returns:
- channel
-
getValidFrom
Date from which the given Price is valid.
- Specified by:
getValidFrom
in interfaceQueryPrice
- Returns:
- validFrom
-
getValidUntil
Date until which the given Price is valid.
- Specified by:
getValidUntil
in interfaceQueryPrice
- Returns:
- validUntil
-
getDiscounted
DiscountedPrice you specify for the given Price.
- Specified by:
getDiscounted
in interfaceQueryPrice
- Returns:
- discounted
-
getCustom
Custom Fields for the Price.
- Specified by:
getCustom
in interfaceCustomizable<QueryPrice>
- Specified by:
getCustom
in interfaceQueryPrice
- Returns:
- custom
-
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 interfaceQueryPrice
- Returns:
- tiers
-
setId
Description copied from interface:QueryPrice
Unique identifier of the given Price.
- Specified by:
setId
in interfaceQueryPrice
- Parameters:
id
- value to be set
-
setValue
Description copied from interface:QueryPrice
Money value of the given Price.
- Specified by:
setValue
in interfaceQueryPrice
- Parameters:
value
- value to be set
-
setCountry
Description copied from interface:QueryPrice
Country for which the given Price is valid.
- Specified by:
setCountry
in interfaceQueryPrice
- Parameters:
country
- value to be set
-
setCustomerGroup
Description copied from interface:QueryPrice
CustomerGroup for which the given Price is valid.
- Specified by:
setCustomerGroup
in interfaceQueryPrice
- Parameters:
customerGroup
- value to be set
-
setChannel
Description copied from interface:QueryPrice
ProductDistribution
Channel for which the given Price is valid.- Specified by:
setChannel
in interfaceQueryPrice
- Parameters:
channel
- value to be set
-
setValidFrom
Description copied from interface:QueryPrice
Date from which the given Price is valid.
- Specified by:
setValidFrom
in interfaceQueryPrice
- Parameters:
validFrom
- value to be set
-
setValidUntil
Description copied from interface:QueryPrice
Date until which the given Price is valid.
- Specified by:
setValidUntil
in interfaceQueryPrice
- Parameters:
validUntil
- value to be set
-
setDiscounted
Description copied from interface:QueryPrice
DiscountedPrice you specify for the given Price.
- Specified by:
setDiscounted
in interfaceQueryPrice
- Parameters:
discounted
- value to be set
-
setCustom
Description copied from interface:QueryPrice
Custom Fields for the Price.
- Specified by:
setCustom
in interfaceCustomizable<QueryPrice>
- Specified by:
setCustom
in interfaceQueryPrice
- Parameters:
custom
- value to be set
-
setTiers
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 interfaceQueryPrice
- Parameters:
tiers
- values to be set
-
setTiers
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 interfaceQueryPrice
- Parameters:
tiers
- values to be set
-
equals
-
hashCode
-