Class StagedOrderSetLineItemTaxAmountActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetLineItemTaxAmountActionImpl
- All Implemented Interfaces:
StagedOrderSetLineItemTaxAmountAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderSetLineItemTaxAmountActionImpl
extends Object
implements StagedOrderSetLineItemTaxAmountAction, io.vrap.rmf.base.client.ModelBase
Can be used if the Cart has the ExternalAmount
TaxMode.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.order_edit.StagedOrderSetLineItemTaxAmountAction
SET_LINE_ITEM_TAX_AMOUNT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.id
of the LineItem to update.key
of the LineItem to update.key
of the ShippingMethod used for this Line Item.int
hashCode()
void
setExternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.void
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
setShippingKey
(String shippingKey) key
of the ShippingMethod used for this Line Item.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrderSetLineItemTaxAmountAction
withStagedOrderSetLineItemTaxAmountAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderSetLineItemTaxAmountActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceStagedOrderSetLineItemTaxAmountAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceStagedOrderSetLineItemTaxAmountAction
- Returns:
- lineItemKey
-
getExternalTaxAmount
Value to set. If empty, any existing value will be removed.
- Specified by:
getExternalTaxAmount
in interfaceStagedOrderSetLineItemTaxAmountAction
- Returns:
- externalTaxAmount
-
getShippingKey
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Specified by:
getShippingKey
in interfaceStagedOrderSetLineItemTaxAmountAction
- Returns:
- shippingKey
-
setLineItemId
Description copied from interface:StagedOrderSetLineItemTaxAmountAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceStagedOrderSetLineItemTaxAmountAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:StagedOrderSetLineItemTaxAmountAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceStagedOrderSetLineItemTaxAmountAction
- Parameters:
lineItemKey
- value to be set
-
setExternalTaxAmount
Description copied from interface:StagedOrderSetLineItemTaxAmountAction
Value to set. If empty, any existing value will be removed.
- Specified by:
setExternalTaxAmount
in interfaceStagedOrderSetLineItemTaxAmountAction
- Parameters:
externalTaxAmount
- value to be set
-
setShippingKey
Description copied from interface:StagedOrderSetLineItemTaxAmountAction
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Specified by:
setShippingKey
in interfaceStagedOrderSetLineItemTaxAmountAction
- Parameters:
shippingKey
- value to be set
-
equals
-
hashCode
-