Interface ShippingRatePriceTier

All Known Subinterfaces:
CartClassificationTier

public interface ShippingRatePriceTier
ShippingRatePriceTier
Example to create a subtype instance using the builder pattern

     ShippingRatePriceTier shippingRatePriceTier = ShippingRatePriceTier.cartClassificationBuilder()
             value("{value}")
             price(priceBuilder -> priceBuilder)
             plusTiers(tiersBuilder -> tiersBuilder)
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull ShippingRateTierType getType()
      Returns:
      type
    • deepCopy

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

      static CartClassificationTierBuilder cartClassificationBuilder()
      builder for cartClassification subtype
      Returns:
      builder
    • withShippingRatePriceTier

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