Interface ProductVariantImportDraft
- All Superinterfaces:
io.vrap.rmf.base.client.Draft<ProductVariantImportDraft>
- All Known Implementing Classes:
ProductVariantImportDraftImpl
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 ProductVariantImportDraftIf this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.getId()
The sequential ID of the variant within the product.If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.@Valid List<PriceDraft>
The Embedded Prices of the variant.getSku()
The SKU of the existing variant.static ProductVariantImportDraft
of()
factory methodstatic ProductVariantImportDraft
of
(ProductVariantImportDraft template) factory method to create a shallow copy ProductVariantImportDraftvoid
setAttributes
(Attribute... attributes) If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.void
setAttributes
(List<Attribute> attributes) If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.void
The sequential ID of the variant within the product.void
If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.void
If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.void
setPrices
(PriceDraft... prices) The Embedded Prices of the variant.void
setPrices
(List<PriceDraft> prices) The Embedded Prices of the variant.void
The SKU of the existing variant.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantImportDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getId
The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.
- Returns:
- id
-
getSku
The SKU of the existing variant.
- Returns:
- sku
-
getPrices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Returns:
- prices
-
getAttributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Returns:
- attributes
-
getImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Returns:
- images
-
setId
The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.
- Parameters:
id
- value to be set
-
setSku
The SKU of the existing variant.
- Parameters:
sku
- value to be set
-
setPrices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
prices
- values to be set
-
setPrices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
prices
- values to be set
-
setAttributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
attributes
- values to be set
-
setAttributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
attributes
- values to be set
-
setImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Parameters:
images
- values to be set
-
setImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in 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
-