Interface ProductVariantChannelAvailability


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

     ProductVariantChannelAvailability productVariantChannelAvailability = ProductVariantChannelAvailability.builder()
             .isOnStock(true)
             .restockableInDays(1)
             .availableQuantity(1)
             .build()
 
  • Method Details

    • getIsOnStock

      @NotNull @NotNull Boolean getIsOnStock()
      Returns:
      isOnStock
    • getRestockableInDays

      @NotNull @NotNull Integer getRestockableInDays()
      Returns:
      restockableInDays
    • getAvailableQuantity

      @NotNull @NotNull Integer getAvailableQuantity()
      Returns:
      availableQuantity
    • setIsOnStock

      void setIsOnStock(Boolean isOnStock)
      set isOnStock
      Parameters:
      isOnStock - value to be set
    • setRestockableInDays

      void setRestockableInDays(Integer restockableInDays)
      set restockableInDays
      Parameters:
      restockableInDays - value to be set
    • setAvailableQuantity

      void setAvailableQuantity(Integer availableQuantity)
      set availableQuantity
      Parameters:
      availableQuantity - 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