Interface CartClassificationTier

All Superinterfaces:
ShippingRatePriceTier

public interface CartClassificationTier extends ShippingRatePriceTier
CartClassificationTier
Example to create an instance using the builder pattern

     CartClassificationTier cartClassificationTier = CartClassificationTier.builder()
             .value("{value}")
             .price(priceBuilder -> priceBuilder)
             .plusTiers(tiersBuilder -> tiersBuilder)
             .build()
 
  • Field Details

    • CART_CLASSIFICATION

      static final String CART_CLASSIFICATION
      discriminator value for CartClassificationTier
      See Also:
  • Method Details

    • getValue

      @NotNull @NotNull String getValue()
      Returns:
      value
    • getPrice

      @NotNull @Valid @NotNull @Valid Money getPrice()
      Returns:
      price
    • getTiers

      @NotNull @Valid @NotNull @Valid List<ShippingRatePriceTier> getTiers()
      Returns:
      tiers
    • getIsMatching

      Boolean getIsMatching()
      Returns:
      isMatching
    • setValue

      void setValue(String value)
      set value
      Parameters:
      value - value to be set
    • setPrice

      void setPrice(Money price)
      set price
      Parameters:
      price - value to be set
    • setTiers

      void setTiers(ShippingRatePriceTier... tiers)
      set tiers
      Parameters:
      tiers - values to be set
    • setTiers

      void setTiers(List<ShippingRatePriceTier> tiers)
      set tiers
      Parameters:
      tiers - values to be set
    • setIsMatching

      void setIsMatching(Boolean isMatching)
      set isMatching
      Parameters:
      isMatching - value to be set
    • of

      factory method
      Returns:
      instance of CartClassificationTier
    • of

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

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

      builder factory method for CartClassificationTier
      Returns:
      builder
    • builder

      create builder for CartClassificationTier instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartClassificationTier

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