Interface ShippingRateInput

All Known Subinterfaces:
ClassificationShippingRateInput, ScoreShippingRateInput

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

     ShippingRateInput shippingRateInput = ShippingRateInput.classificationBuilder()
             key("{key}")
             label(labelBuilder -> labelBuilder)
             .build()
 
  • Method Details

    • getType

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

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

      static ClassificationShippingRateInputBuilder classificationBuilder()
      builder for classification subtype
      Returns:
      builder
    • scoreBuilder

      static ScoreShippingRateInputBuilder scoreBuilder()
      builder for score subtype
      Returns:
      builder
    • withShippingRateInput

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