Interface ProductVariantImportDraft

All Superinterfaces:
io.vrap.rmf.base.client.Draft<ProductVariantImportDraft>
All Known Implementing Classes:
ProductVariantImportDraftImpl

public interface ProductVariantImportDraft extends io.vrap.rmf.base.client.Draft<ProductVariantImportDraft>
ProductVariantImportDraft
Example to create an instance using the builder pattern

     ProductVariantImportDraft productVariantImportDraft = ProductVariantImportDraft.builder()
             .build()
 
  • Method Summary

    Modifier and Type
    Method
    Description
    builder factory method for ProductVariantImportDraft
    create builder for ProductVariantImportDraft instance
    factory method to create a deep copy of ProductVariantImportDraft
    @Valid List<Attribute>
    If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.
    The sequential ID of the variant within the product.
    @Valid List<Image>
    If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.
    The Embedded Prices of the variant.
    The SKU of the existing variant.
    of()
    factory method
    factory method to create a shallow copy ProductVariantImportDraft
    void
    setAttributes(Attribute... attributes)
    If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.
    void
    If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.
    void
    setId(Long id)
    The sequential ID of the variant within the product.
    void
    setImages(Image... images)
    If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.
    void
    setImages(List<Image> images)
    If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.
    void
    setPrices(PriceDraft... prices)
    The Embedded Prices of the variant.
    void
    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 DataBind
    default <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

      @Valid @Valid List<PriceDraft> 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, otherwise prices property from the original product variant would be copied in the resulting order.

      Returns:
      prices
    • getAttributes

      @Valid @Valid List<Attribute> getAttributes()

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Returns:
      attributes
    • getImages

      @Valid @Valid List<Image> getImages()

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Returns:
      images
    • setId

      void setId(Long id)

      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

      void setSku(String sku)

      The SKU of the existing variant.

      Parameters:
      sku - value to be set
    • setPrices

      void setPrices(PriceDraft... prices)

      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, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      prices - values to be set
    • setPrices

      void setPrices(List<PriceDraft> prices)

      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, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      prices - values to be set
    • setAttributes

      void setAttributes(Attribute... attributes)

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      attributes - values to be set
    • setAttributes

      void setAttributes(List<Attribute> attributes)

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      attributes - values to be set
    • setImages

      void setImages(Image... images)

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Parameters:
      images - values to be set
    • setImages

      void setImages(List<Image> images)

      If this property is defined, then it will override the images property from the original product variant, otherwise images 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

      static com.fasterxml.jackson.core.type.TypeReference<ProductVariantImportDraft> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference