Interface MethodTaxedPrice


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

     MethodTaxedPrice methodTaxedPrice = MethodTaxedPrice.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
    • getTaxedPrice

      @Valid @Valid TaxedItemPrice getTaxedPrice()

      Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

      Returns:
      taxedPrice
    • 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
    • setTaxedPrice

      void setTaxedPrice(TaxedItemPrice taxedPrice)

      Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

      Parameters:
      taxedPrice - value to be set
    • of

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

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

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

      static MethodTaxedPriceBuilder builder()
      builder factory method for MethodTaxedPrice
      Returns:
      builder
    • builder

      static MethodTaxedPriceBuilder builder(MethodTaxedPrice template)
      create builder for MethodTaxedPrice instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMethodTaxedPrice

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