Class StagedOrderSetLineItemTaxRateActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetLineItemTaxRateActionImpl
- All Implemented Interfaces:
StagedOrderSetLineItemTaxRateAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderSetLineItemTaxRateActionImpl
extends Object
implements StagedOrderSetLineItemTaxRateAction, io.vrap.rmf.base.client.ModelBase
Can be used if the Cart has the External
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.StagedOrderSetLineItemTaxRateAction
SET_LINE_ITEM_TAX_RATE
-
Constructor Summary
Constructors -
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
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) 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.StagedOrderSetLineItemTaxRateAction
withStagedOrderSetLineItemTaxRateAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderSetLineItemTaxRateActionImpl
public StagedOrderSetLineItemTaxRateActionImpl()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 interfaceStagedOrderSetLineItemTaxRateAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceStagedOrderSetLineItemTaxRateAction
- Returns:
- lineItemKey
-
getExternalTaxRate
Value to set. If empty, any existing value will be removed.
- Specified by:
getExternalTaxRate
in interfaceStagedOrderSetLineItemTaxRateAction
- Returns:
- externalTaxRate
-
getShippingKey
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Specified by:
getShippingKey
in interfaceStagedOrderSetLineItemTaxRateAction
- Returns:
- shippingKey
-
setLineItemId
Description copied from interface:StagedOrderSetLineItemTaxRateAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceStagedOrderSetLineItemTaxRateAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:StagedOrderSetLineItemTaxRateAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceStagedOrderSetLineItemTaxRateAction
- Parameters:
lineItemKey
- value to be set
-
setExternalTaxRate
Description copied from interface:StagedOrderSetLineItemTaxRateAction
Value to set. If empty, any existing value will be removed.
- Specified by:
setExternalTaxRate
in interfaceStagedOrderSetLineItemTaxRateAction
- Parameters:
externalTaxRate
- value to be set
-
setShippingKey
Description copied from interface:StagedOrderSetLineItemTaxRateAction
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Specified by:
setShippingKey
in interfaceStagedOrderSetLineItemTaxRateAction
- Parameters:
shippingKey
- value to be set
-
equals
-
hashCode
public int hashCode()
-