Interface ShippingRateInputDraft

All Known Subinterfaces:
ClassificationShippingRateInputDraft, ScoreShippingRateInputDraft

public interface ShippingRateInputDraft

Generic type holding specifc ShippingRateInputDraft types.


Example to create a subtype instance using the builder pattern

     ShippingRateInputDraft shippingRateInputDraft = ShippingRateInputDraft.classificationBuilder()
             key("{key}")
             .build()
 
  • Method Details

    • getType

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

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

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

      static ScoreShippingRateInputDraftBuilder scoreBuilder()
      builder for score subtype
      Returns:
      builder
    • withShippingRateInputDraft

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