Class ProductVariantImportDraftImpl
- All Implemented Interfaces:
ProductVariantImportDraft
,io.vrap.rmf.base.client.Draft<ProductVariantImportDraft>
,io.vrap.rmf.base.client.ModelBase
Contains the Product Variant to be used in the LineItemImportDraft.
-
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 Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.getId()
Theid
of the ProductVariant.The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.getSku()
Thesku
of the ProductVariant.int
hashCode()
void
setAttributes
(Attribute... attributes) The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.void
setAttributes
(List<Attribute> attributes) The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.void
Theid
of the ProductVariant.void
The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.void
The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.void
setPrices
(PriceDraft... prices) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.void
setPrices
(List<PriceDraft> prices) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.void
Thesku
of the ProductVariant.toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.order.ProductVariantImportDraft
withProductVariantImportDraft
-
Constructor Details
-
ProductVariantImportDraftImpl
public ProductVariantImportDraftImpl()create empty instance
-
-
Method Details
-
getId
The
id
of the ProductVariant. Required if you do not set a value forsku
. If set, you must specify aproductId
in the LineItemImportDraft also.- Specified by:
getId
in interfaceProductVariantImportDraft
- Returns:
- id
-
getSku
The
sku
of the ProductVariant. Required if you do not set a value forid
.- Specified by:
getSku
in interfaceProductVariantImportDraft
- Returns:
- sku
-
getPrices
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Specified by:
getPrices
in interfaceProductVariantImportDraft
- Returns:
- prices
-
getAttributes
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Specified by:
getAttributes
in interfaceProductVariantImportDraft
- Returns:
- attributes
-
getImages
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Specified by:
getImages
in interfaceProductVariantImportDraft
- Returns:
- images
-
setId
Description copied from interface:ProductVariantImportDraft
The
id
of the ProductVariant. Required if you do not set a value forsku
. If set, you must specify aproductId
in the LineItemImportDraft also.- Specified by:
setId
in interfaceProductVariantImportDraft
- Parameters:
id
- value to be set
-
setSku
Description copied from interface:ProductVariantImportDraft
The
sku
of the ProductVariant. Required if you do not set a value forid
.- Specified by:
setSku
in interfaceProductVariantImportDraft
- Parameters:
sku
- value to be set
-
setPrices
Description copied from interface:ProductVariantImportDraft
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Specified by:
setPrices
in interfaceProductVariantImportDraft
- Parameters:
prices
- values to be set
-
setPrices
Description copied from interface:ProductVariantImportDraft
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Specified by:
setPrices
in interfaceProductVariantImportDraft
- Parameters:
prices
- values to be set
-
setAttributes
Description copied from interface:ProductVariantImportDraft
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Specified by:
setAttributes
in interfaceProductVariantImportDraft
- Parameters:
attributes
- values to be set
-
setAttributes
Description copied from interface:ProductVariantImportDraft
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Specified by:
setAttributes
in interfaceProductVariantImportDraft
- Parameters:
attributes
- values to be set
-
setImages
Description copied from interface:ProductVariantImportDraft
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Specified by:
setImages
in interfaceProductVariantImportDraft
- Parameters:
images
- values to be set
-
setImages
Description copied from interface:ProductVariantImportDraft
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Specified by:
setImages
in interfaceProductVariantImportDraft
- Parameters:
images
- values to be set
-
equals
-
hashCode
public int hashCode() -
toString
-