Interface CartScoreType

All Superinterfaces:
ShippingRateInputType

public interface CartScoreType extends ShippingRateInputType

Used when the ShippingRate maps to an abstract Cart categorization expressed by integers (such as shipping scores or weight ranges).


Example to create an instance using the builder pattern

     CartScoreType cartScoreType = CartScoreType.builder()
             .build()
 
  • Field Details

  • Method Details

    • of

      static CartScoreType of()
      factory method
      Returns:
      instance of CartScoreType
    • of

      static CartScoreType of(CartScoreType template)
      factory method to create a shallow copy CartScoreType
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static CartScoreType deepCopy(@Nullable CartScoreType template)
      factory method to create a deep copy of CartScoreType
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CartScoreTypeBuilder builder()
      builder factory method for CartScoreType
      Returns:
      builder
    • builder

      static CartScoreTypeBuilder builder(CartScoreType template)
      create builder for CartScoreType instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartScoreType

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