Interface MethodTaxRate


public interface MethodTaxRate
MethodTaxRate
Example to create an instance using the builder pattern

     MethodTaxRate methodTaxRate = MethodTaxRate.builder()
             .shippingMethodKey("{shippingMethodKey}")
             .build()
 
  • Method Details

    • getShippingMethodKey

      @NotNull @NotNull String getShippingMethodKey()

      User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

      Returns:
      shippingMethodKey
    • getTaxRate

      @Valid @Valid TaxRate getTaxRate()

      Tax Rate for the Shipping Method.

      Returns:
      taxRate
    • setShippingMethodKey

      void setShippingMethodKey(String shippingMethodKey)

      User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

      Parameters:
      shippingMethodKey - value to be set
    • setTaxRate

      void setTaxRate(TaxRate taxRate)

      Tax Rate for the Shipping Method.

      Parameters:
      taxRate - value to be set
    • of

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

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

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

      static MethodTaxRateBuilder builder()
      builder factory method for MethodTaxRate
      Returns:
      builder
    • builder

      static MethodTaxRateBuilder builder(MethodTaxRate template)
      create builder for MethodTaxRate instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMethodTaxRate

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