Class ProductVariantImportDraftImpl

java.lang.Object
com.commercetools.api.models.order.ProductVariantImportDraftImpl
All Implemented Interfaces:
ProductVariantImportDraft, io.vrap.rmf.base.client.Draft<ProductVariantImportDraft>, io.vrap.rmf.base.client.ModelBase

public class ProductVariantImportDraftImpl extends Object implements 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

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The Attributes of the Product Variant if you want to override the attributes property in the referenced ProductVariant.
    The id of the ProductVariant.
    The Images of the Product Variant if you want to override the images property in the referenced ProductVariant.
    The Prices of the Product Variant if you want to override the prices property in the referenced ProductVariant.
    The sku of the ProductVariant.
    int
     
    void
    setAttributes(Attribute... attributes)
    The Attributes of the Product Variant if you want to override the attributes property in the referenced ProductVariant.
    void
    The Attributes of the Product Variant if you want to override the attributes property in the referenced ProductVariant.
    void
    setId(Long id)
    The id of the ProductVariant.
    void
    setImages(Image... images)
    The Images of the Product Variant if you want to override the images property in the referenced ProductVariant.
    void
    setImages(List<Image> images)
    The Images of the Product Variant if you want to override the images property in the referenced ProductVariant.
    void
    setPrices(PriceDraft... prices)
    The Prices of the Product Variant if you want to override the prices property in the referenced ProductVariant.
    void
    The Prices of the Product Variant if you want to override the prices property in the referenced ProductVariant.
    void
    The sku of the ProductVariant.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, 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

      public Long getId()

      The id of the ProductVariant. Required if you do not set a value for sku. If set, you must specify a productId in the LineItemImportDraft also.

      Specified by:
      getId in interface ProductVariantImportDraft
      Returns:
      id
    • getSku

      public String getSku()

      The sku of the ProductVariant. Required if you do not set a value for id.

      Specified by:
      getSku in interface ProductVariantImportDraft
      Returns:
      sku
    • getPrices

      public List<PriceDraft> getPrices()

      The Prices of the Product Variant if you want to override the prices property in the referenced ProductVariant. If not set, the prices from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (same value.currencyCode, country, customerGroup, channel, validFrom and validUntil).

      Specified by:
      getPrices in interface ProductVariantImportDraft
      Returns:
      prices
    • getAttributes

      public List<Attribute> getAttributes()

      The Attributes of the Product Variant if you want to override the attributes property in the referenced ProductVariant. If not set, the attributes from the referenced ProductVariant are copied to the resulting Order.

      Specified by:
      getAttributes in interface ProductVariantImportDraft
      Returns:
      attributes
    • getImages

      public List<Image> getImages()

      The Images of the Product Variant if you want to override the images property in the referenced ProductVariant. If not set, the images from the referenced ProductVariant are copied to the resulting Order.

      Specified by:
      getImages in interface ProductVariantImportDraft
      Returns:
      images
    • setId

      public void setId(Long id)
      Description copied from interface: ProductVariantImportDraft

      The id of the ProductVariant. Required if you do not set a value for sku. If set, you must specify a productId in the LineItemImportDraft also.

      Specified by:
      setId in interface ProductVariantImportDraft
      Parameters:
      id - value to be set
    • setSku

      public void setSku(String sku)
      Description copied from interface: ProductVariantImportDraft

      The sku of the ProductVariant. Required if you do not set a value for id.

      Specified by:
      setSku in interface ProductVariantImportDraft
      Parameters:
      sku - value to be set
    • setPrices

      public void setPrices(PriceDraft... prices)
      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, the prices from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (same value.currencyCode, country, customerGroup, channel, validFrom and validUntil).

      Specified by:
      setPrices in interface ProductVariantImportDraft
      Parameters:
      prices - values to be set
    • setPrices

      public void setPrices(List<PriceDraft> prices)
      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, the prices from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (same value.currencyCode, country, customerGroup, channel, validFrom and validUntil).

      Specified by:
      setPrices in interface ProductVariantImportDraft
      Parameters:
      prices - values to be set
    • setAttributes

      public void setAttributes(Attribute... attributes)
      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, the attributes from the referenced ProductVariant are copied to the resulting Order.

      Specified by:
      setAttributes in interface ProductVariantImportDraft
      Parameters:
      attributes - values to be set
    • setAttributes

      public void setAttributes(List<Attribute> attributes)
      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, the attributes from the referenced ProductVariant are copied to the resulting Order.

      Specified by:
      setAttributes in interface ProductVariantImportDraft
      Parameters:
      attributes - values to be set
    • setImages

      public void setImages(Image... images)
      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, the images from the referenced ProductVariant are copied to the resulting Order.

      Specified by:
      setImages in interface ProductVariantImportDraft
      Parameters:
      images - values to be set
    • setImages

      public void setImages(List<Image> images)
      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, the images from the referenced ProductVariant are copied to the resulting Order.

      Specified by:
      setImages in interface ProductVariantImportDraft
      Parameters:
      images - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object