Class ProductVariantImportDraftImpl
- All Implemented Interfaces:
ProductVariantImportDraft
,io.vrap.rmf.base.client.Draft<ProductVariantImportDraft>
,io.vrap.rmf.base.client.ModelBase
-
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
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.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.The Embedded Prices of the variant.getSku()
The SKU of the existing variant.int
hashCode()
void
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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
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 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.
- Specified by:
getId
in interfaceProductVariantImportDraft
- Returns:
- id
-
getSku
The SKU of the existing variant.
- Specified by:
getSku
in interfaceProductVariantImportDraft
- 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.- Specified by:
getPrices
in interfaceProductVariantImportDraft
- 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.- Specified by:
getAttributes
in interfaceProductVariantImportDraft
- 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.- Specified by:
getImages
in interfaceProductVariantImportDraft
- Returns:
- images
-
setId
Description copied from interface:ProductVariantImportDraft
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.
- Specified by:
setId
in interfaceProductVariantImportDraft
- Parameters:
id
- value to be set
-
setSku
Description copied from interface:ProductVariantImportDraft
The SKU of the existing variant.
- Specified by:
setSku
in interfaceProductVariantImportDraft
- Parameters:
sku
- value to be set
-
setPrices
Description copied from interface:ProductVariantImportDraft
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.- Specified by:
setPrices
in interfaceProductVariantImportDraft
- Parameters:
prices
- values to be set
-
setPrices
Description copied from interface:ProductVariantImportDraft
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.- Specified by:
setPrices
in interfaceProductVariantImportDraft
- Parameters:
prices
- values to be set
-
setAttributes
Description copied from interface:ProductVariantImportDraft
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.- Specified by:
setAttributes
in interfaceProductVariantImportDraft
- Parameters:
attributes
- values to be set
-
setAttributes
Description copied from interface:ProductVariantImportDraft
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.- Specified by:
setAttributes
in interfaceProductVariantImportDraft
- Parameters:
attributes
- values to be set
-
setImages
Description copied from interface:ProductVariantImportDraft
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.- Specified by:
setImages
in interfaceProductVariantImportDraft
- Parameters:
images
- values to be set
-
setImages
Description copied from interface:ProductVariantImportDraft
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.- Specified by:
setImages
in interfaceProductVariantImportDraft
- Parameters:
images
- values to be set
-
equals
-
hashCode
-