Class PriceImportImpl
- All Implemented Interfaces:
ImportResource
,PriceImport
,io.vrap.rmf.base.client.ModelBase
The data representation for a price to be imported that is persisted as a Price in the Project.
-
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
The Reference to the Channel with which the Price is associated.Maps toPrice.county
.The custom fields for this price.The Reference to the CustomerGroup with which the Price is associated.Sets a discounted price from an external service.getKey()
User-defined unique identifier for the Embedded Price.The Product in which the Product Variant containing this Embedded Price is contained.The ProductVariant in which this Embedded Price is contained.Only the Embedded Price updates will be published tostaged
andcurrent
projection.getTiers()
The tiered prices for this price.Maps toPrice.validFrom
.Maps toPrice.validUntil
.getValue()
Maps toPrice.value
.int
hashCode()
void
setChannel
(ChannelKeyReference channel) The Reference to the Channel with which the Price is associated.void
setCountry
(String country) Maps toPrice.county
.void
The custom fields for this price.void
setCustomerGroup
(CustomerGroupKeyReference customerGroup) The Reference to the CustomerGroup with which the Price is associated.void
setDiscounted
(DiscountedPrice discounted) Sets a discounted price from an external service.void
User-defined unique identifier for the Embedded Price.void
setProduct
(ProductKeyReference product) The Product in which the Product Variant containing this Embedded Price is contained.void
setProductVariant
(ProductVariantKeyReference productVariant) The ProductVariant in which this Embedded Price is contained.void
setPublish
(Boolean publish) Only the Embedded Price updates will be published tostaged
andcurrent
projection.void
The tiered prices for this price.void
The tiered prices for this price.void
setValidFrom
(ZonedDateTime validFrom) Maps toPrice.validFrom
.void
setValidUntil
(ZonedDateTime validUntil) Maps toPrice.validUntil
.void
setValue
(TypedMoney value) Maps toPrice.value
.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.importapi.models.common.ImportResource
withImportResource
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.importapi.models.prices.PriceImport
withPriceImport
-
Constructor Details
-
PriceImportImpl
public PriceImportImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier for the Embedded Price.
- Specified by:
getKey
in interfaceImportResource
- Specified by:
getKey
in interfacePriceImport
- Returns:
- key
-
getValue
Maps to
Price.value
.- Specified by:
getValue
in interfacePriceImport
- Returns:
- value
-
getCountry
Maps to
Price.county
.- Specified by:
getCountry
in interfacePriceImport
- Returns:
- country
-
getValidFrom
Maps to
Price.validFrom
.- Specified by:
getValidFrom
in interfacePriceImport
- Returns:
- validFrom
-
getValidUntil
Maps to
Price.validUntil
.- Specified by:
getValidUntil
in interfacePriceImport
- Returns:
- validUntil
-
getCustomerGroup
The Reference to the CustomerGroup with which the Price is associated. If referenced CustomerGroup does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary CustomerGroup is created.- Specified by:
getCustomerGroup
in interfacePriceImport
- Returns:
- customerGroup
-
getChannel
The Reference to the Channel with which the Price is associated. If referenced Channel does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary Channel is created.- Specified by:
getChannel
in interfacePriceImport
- Returns:
- channel
-
getDiscounted
Sets a discounted price from an external service.
- Specified by:
getDiscounted
in interfacePriceImport
- Returns:
- discounted
-
getPublish
Only the Embedded Price updates will be published to
staged
andcurrent
projection.- Specified by:
getPublish
in interfacePriceImport
- Returns:
- publish
-
getTiers
The tiered prices for this price.
- Specified by:
getTiers
in interfacePriceImport
- Returns:
- tiers
-
getCustom
The custom fields for this price.
- Specified by:
getCustom
in interfacePriceImport
- Returns:
- custom
-
getProductVariant
The ProductVariant in which this Embedded Price is contained. The Reference to the ProductVariant with which the Price is associated. If referenced ProductVariant does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary ProductVariant is created.- Specified by:
getProductVariant
in interfacePriceImport
- Returns:
- productVariant
-
getProduct
The Product in which the Product Variant containing this Embedded Price is contained. Maps to
ProductVariant.product
. The Reference to the Product with which the Price is associated. If referenced Product does not exist, thestate
of the ImportOperation will be set tounresolved
until the necessary Product is created.- Specified by:
getProduct
in interfacePriceImport
- Returns:
- product
-
setKey
Description copied from interface:PriceImport
User-defined unique identifier for the Embedded Price.
- Specified by:
setKey
in interfaceImportResource
- Specified by:
setKey
in interfacePriceImport
- Parameters:
key
- value to be set
-
setValue
Description copied from interface:PriceImport
Maps to
Price.value
.- Specified by:
setValue
in interfacePriceImport
- Parameters:
value
- value to be set
-
setCountry
Description copied from interface:PriceImport
Maps to
Price.county
.- Specified by:
setCountry
in interfacePriceImport
- Parameters:
country
- value to be set
-
setValidFrom
Description copied from interface:PriceImport
Maps to
Price.validFrom
.- Specified by:
setValidFrom
in interfacePriceImport
- Parameters:
validFrom
- value to be set
-
setValidUntil
Description copied from interface:PriceImport
Maps to
Price.validUntil
.- Specified by:
setValidUntil
in interfacePriceImport
- Parameters:
validUntil
- value to be set
-
setCustomerGroup
Description copied from interface:PriceImport
The Reference to the CustomerGroup with which the Price is associated. If referenced CustomerGroup does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary CustomerGroup is created.- Specified by:
setCustomerGroup
in interfacePriceImport
- Parameters:
customerGroup
- value to be set
-
setChannel
Description copied from interface:PriceImport
The Reference to the Channel with which the Price is associated. If referenced Channel does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary Channel is created.- Specified by:
setChannel
in interfacePriceImport
- Parameters:
channel
- value to be set
-
setDiscounted
Description copied from interface:PriceImport
Sets a discounted price from an external service.
- Specified by:
setDiscounted
in interfacePriceImport
- Parameters:
discounted
- value to be set
-
setPublish
Description copied from interface:PriceImport
Only the Embedded Price updates will be published to
staged
andcurrent
projection.- Specified by:
setPublish
in interfacePriceImport
- Parameters:
publish
- value to be set
-
setTiers
Description copied from interface:PriceImport
The tiered prices for this price.
- Specified by:
setTiers
in interfacePriceImport
- Parameters:
tiers
- values to be set
-
setTiers
Description copied from interface:PriceImport
The tiered prices for this price.
- Specified by:
setTiers
in interfacePriceImport
- Parameters:
tiers
- values to be set
-
setCustom
Description copied from interface:PriceImport
The custom fields for this price.
- Specified by:
setCustom
in interfacePriceImport
- Parameters:
custom
- value to be set
-
setProductVariant
Description copied from interface:PriceImport
The ProductVariant in which this Embedded Price is contained. The Reference to the ProductVariant with which the Price is associated. If referenced ProductVariant does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary ProductVariant is created.- Specified by:
setProductVariant
in interfacePriceImport
- Parameters:
productVariant
- value to be set
-
setProduct
Description copied from interface:PriceImport
The Product in which the Product Variant containing this Embedded Price is contained. Maps to
ProductVariant.product
. The Reference to the Product with which the Price is associated. If referenced Product does not exist, thestate
of the ImportOperation will be set tounresolved
until the necessary Product is created.- Specified by:
setProduct
in interfacePriceImport
- Parameters:
product
- value to be set
-
equals
-
hashCode
public int hashCode()
-