Interface ProductVariantAvailability


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

     ProductVariantAvailability productVariantAvailability = ProductVariantAvailability.builder()
             .isOnStock(true)
             .restockableInDays(1)
             .availableQuantity(1)
             .channels(channelsBuilder -> channelsBuilder)
             .build()
 
  • Method Details

    • getIsOnStock

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

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

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

      @NotNull @Valid @NotNull @Valid ProductVariantChannelAvailabilityMap getChannels()
      Returns:
      channels
    • 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
    • setChannels

      void setChannels(ProductVariantChannelAvailabilityMap channels)
      set channels
      Parameters:
      channels - value to be set
    • of

      factory method
      Returns:
      instance of ProductVariantAvailability
    • of

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

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

      builder factory method for ProductVariantAvailability
      Returns:
      builder
    • builder

      create builder for ProductVariantAvailability instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductVariantAvailability

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