Interface CartSetLineItemTaxRateAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

public interface CartSetLineItemTaxRateAction extends CartUpdateAction

Can be used if the Cart has the External TaxMode.


Example to create an instance using the builder pattern

     CartSetLineItemTaxRateAction cartSetLineItemTaxRateAction = CartSetLineItemTaxRateAction.builder()
             .build()
 
  • Field Details

    • SET_LINE_ITEM_TAX_RATE

      static final String SET_LINE_ITEM_TAX_RATE
      discriminator value for CartSetLineItemTaxRateAction
      See Also:
  • Method Details

    • getLineItemId

      String getLineItemId()

      id of the LineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      lineItemId
    • getLineItemKey

      String getLineItemKey()

      key of the LineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      lineItemKey
    • getExternalTaxRate

      @Valid @Valid ExternalTaxRateDraft getExternalTaxRate()

      Value to set. If empty, any existing value is removed.

      Returns:
      externalTaxRate
    • getShippingKey

      String getShippingKey()

      key of the ShippingMethod used for this Line Item. This is required for Carts with Multiple ShippingMode.

      Returns:
      shippingKey
    • setLineItemId

      void setLineItemId(String lineItemId)

      id of the LineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      lineItemId - value to be set
    • setLineItemKey

      void setLineItemKey(String lineItemKey)

      key of the LineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      lineItemKey - value to be set
    • setExternalTaxRate

      void setExternalTaxRate(ExternalTaxRateDraft externalTaxRate)

      Value to set. If empty, any existing value is removed.

      Parameters:
      externalTaxRate - value to be set
    • setShippingKey

      void setShippingKey(String shippingKey)

      key of the ShippingMethod used for this Line Item. This is required for Carts with Multiple ShippingMode.

      Parameters:
      shippingKey - value to be set
    • of

      factory method
      Returns:
      instance of CartSetLineItemTaxRateAction
    • of

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

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

      builder factory method for CartSetLineItemTaxRateAction
      Returns:
      builder
    • builder

      create builder for CartSetLineItemTaxRateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartSetLineItemTaxRateAction

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