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 instancecopyDeep()static ProductVariantImportDraftdeepCopy(ProductVariantImportDraft template) factory method to create a deep copy of ProductVariantImportDraftThe Attributes of the Product Variant if you want to override theattributesproperty in the referenced ProductVariant.getId()Theidof the ProductVariant.The Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.@Valid List<PriceDraft>The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.getSku()Theskuof the ProductVariant.static ProductVariantImportDraftof()factory methodstatic ProductVariantImportDraftof(ProductVariantImportDraft template) factory method to create a shallow copy ProductVariantImportDraftvoidsetAttributes(Attribute... attributes) The Attributes of the Product Variant if you want to override theattributesproperty in the referenced ProductVariant.voidsetAttributes(List<Attribute> attributes) The Attributes of the Product Variant if you want to override theattributesproperty in the referenced ProductVariant.voidTheidof the ProductVariant.voidThe Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.voidThe Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.voidsetPrices(PriceDraft... prices) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.voidsetPrices(List<PriceDraft> prices) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.voidTheskuof the ProductVariant.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantImportDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
Long getId()The
idof the ProductVariant. Required if you do not set a value forsku. If set, you must specify aproductIdin the LineItemImportDraft also.- Returns:
- id
-
getSku
String getSku()The
skuof 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
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Returns:
- prices
-
getAttributes
The Attributes of the Product Variant if you want to override the
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom the referenced ProductVariant are copied to the resulting Order.- Returns:
- attributes
-
getImages
The Images of the Product Variant if you want to override the
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom the referenced ProductVariant are copied to the resulting Order.- Returns:
- images
-
setId
The
idof the ProductVariant. Required if you do not set a value forsku. If set, you must specify aproductIdin the LineItemImportDraft also.- Parameters:
id- value to be set
-
setSku
The
skuof 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
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Parameters:
prices- values to be set
-
setPrices
The Prices of the Product Variant if you want to override the
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Parameters:
prices- values to be set
-
setAttributes
The Attributes of the Product Variant if you want to override the
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom 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
-
copyDeep
ProductVariantImportDraft copyDeep() -
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
-