Interface ProductVariantImportDraft
- All Superinterfaces:
Draft<ProductVariantImportDraft>
Contains the Product Variant to be used in the LineItemImportDraft.
Example to create an instance using the builder pattern
ProductVariantImportDraft productVariantImportDraft = ProductVariantImportDraft.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantImportDraftbuilder
(ProductVariantImportDraft template) create builder for ProductVariantImportDraft instancestatic ProductVariantImportDraft
deepCopy
(ProductVariantImportDraft template) factory method to create a deep copy of ProductVariantImportDraftThe 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.@Valid List<PriceDraft>
The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.getSku()
Thesku
of the ProductVariant.static ProductVariantImportDraft
of()
factory methodstatic ProductVariantImportDraft
of
(ProductVariantImportDraft template) factory method to create a shallow copy ProductVariantImportDraftvoid
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.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantImportDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getId
Long 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.- Returns:
- id
-
getSku
String getSku()The
sku
of the ProductVariant. Required if you do not set a value forid
.- 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
).- 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.- 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.- Returns:
- images
-
setId
The
id
of the ProductVariant. Required if you do not set a value forsku
. If set, you must specify aproductId
in the LineItemImportDraft also.- Parameters:
id
- value to be set
-
setSku
The
sku
of the ProductVariant. Required if you do not set a value forid
.- Parameters:
sku
- value to be set
-
setPrices
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
).- Parameters:
prices
- values to be set
-
setPrices
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
).- Parameters:
prices
- values to be set
-
setAttributes
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.- Parameters:
attributes
- values to be set
-
setAttributes
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.- Parameters:
attributes
- values to be set
-
setImages
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.- Parameters:
images
- values to be set
-
setImages
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.- Parameters:
images
- values to be set
-
of
factory method- Returns:
- instance of ProductVariantImportDraft
-
of
factory method to create a shallow copy ProductVariantImportDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductVariantImportDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantImportDraft- Returns:
- builder
-
builder
create builder for ProductVariantImportDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantImportDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-