Interface MethodExternalTaxRateDraft

All Superinterfaces:
Draft<MethodExternalTaxRateDraft>

public interface MethodExternalTaxRateDraft extends Draft<MethodExternalTaxRateDraft>
MethodExternalTaxRateDraft
Example to create an instance using the builder pattern

     MethodExternalTaxRateDraft methodExternalTaxRateDraft = MethodExternalTaxRateDraft.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 ExternalTaxRateDraft getTaxRate()

      External Tax Rate for the Shipping Method, if the Cart has External TaxMode.

      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(ExternalTaxRateDraft taxRate)

      External Tax Rate for the Shipping Method, if the Cart has External TaxMode.

      Parameters:
      taxRate - value to be set
    • of

      factory method
      Returns:
      instance of MethodExternalTaxRateDraft
    • of

      factory method to create a shallow copy MethodExternalTaxRateDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      builder factory method for MethodExternalTaxRateDraft
      Returns:
      builder
    • builder

      create builder for MethodExternalTaxRateDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMethodExternalTaxRateDraft

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