Interface ProductVariantChannelAvailability


public interface ProductVariantChannelAvailability
ProductVariantChannelAvailability
Example to create an instance using the builder pattern

     ProductVariantChannelAvailability productVariantChannelAvailability = ProductVariantChannelAvailability.builder()
             .id("{id}")
             .version(0.3)
             .build()
 
  • Method Details

    • getIsOnStock

      Boolean getIsOnStock()

      Indicates whether a Product Variant is in stock in a specified Channel.

      Returns:
      isOnStock
    • getRestockableInDays

      Long getRestockableInDays()

      Number of days to restock a Product Variant once it is out of stock in a specified Channel.

      Returns:
      restockableInDays
    • getAvailableQuantity

      Long getAvailableQuantity()

      Number of items of this Product Variant that are in stock in a specified Channel.

      Returns:
      availableQuantity
    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the InventoryEntry.

      Returns:
      id
    • getVersion

      @NotNull @NotNull Long getVersion()

      Current version of the InventoryEntry.

      Returns:
      version
    • setIsOnStock

      void setIsOnStock(Boolean isOnStock)

      Indicates whether a Product Variant is in stock in a specified Channel.

      Parameters:
      isOnStock - value to be set
    • setRestockableInDays

      void setRestockableInDays(Long restockableInDays)

      Number of days to restock a Product Variant once it is out of stock in a specified Channel.

      Parameters:
      restockableInDays - value to be set
    • setAvailableQuantity

      void setAvailableQuantity(Long availableQuantity)

      Number of items of this Product Variant that are in stock in a specified Channel.

      Parameters:
      availableQuantity - value to be set
    • setId

      void setId(String id)

      Unique identifier of the InventoryEntry.

      Parameters:
      id - value to be set
    • setVersion

      void setVersion(Long version)

      Current version of the InventoryEntry.

      Parameters:
      version - value to be set
    • of

      factory method
      Returns:
      instance of ProductVariantChannelAvailability
    • of

      factory method to create a shallow copy ProductVariantChannelAvailability
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ProductVariantChannelAvailability
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ProductVariantChannelAvailability
      Returns:
      builder
    • builder

      create builder for ProductVariantChannelAvailability instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductVariantChannelAvailability

      default <T> T withProductVariantChannelAvailability(Function<ProductVariantChannelAvailability,T> helper)
      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<ProductVariantChannelAvailability> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference