Class StagedOrderSetShippingAddressAndShippingMethodActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetShippingAddressAndShippingMethodActionImpl
- All Implemented Interfaces:
StagedOrderSetShippingAddressAndShippingMethodAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderSetShippingAddressAndShippingMethodActionImpl
extends Object
implements StagedOrderSetShippingAddressAndShippingMethodAction, io.vrap.rmf.base.client.ModelBase
Sets the shipping address and Shipping Method together to prevent an inconsistent state.
-
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.StagedOrderSetShippingAddressAndShippingMethodAction
SET_SHIPPING_ADDRESS_AND_SHIPPING_METHOD
-
Constructor Summary
ConstructorDescriptioncreate empty instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set forshippingAddress
.An external Tax Rate can be set if the Cart has theExternal
TaxMode.Value to set.int
hashCode()
void
setAddress
(BaseAddress address) Value to set forshippingAddress
.void
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) An external Tax Rate can be set if the Cart has theExternal
TaxMode.void
setShippingMethod
(ShippingMethodResourceIdentifier shippingMethod) Value to set.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.StagedOrderSetShippingAddressAndShippingMethodAction
withStagedOrderSetShippingAddressAndShippingMethodAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderSetShippingAddressAndShippingMethodActionImpl
public StagedOrderSetShippingAddressAndShippingMethodActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getAddress
Value to set for
shippingAddress
.- Specified by:
getAddress
in interfaceStagedOrderSetShippingAddressAndShippingMethodAction
- Returns:
- address
-
getShippingMethod
Value to set.
- Specified by:
getShippingMethod
in interfaceStagedOrderSetShippingAddressAndShippingMethodAction
- Returns:
- shippingMethod
-
getExternalTaxRate
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Specified by:
getExternalTaxRate
in interfaceStagedOrderSetShippingAddressAndShippingMethodAction
- Returns:
- externalTaxRate
-
setAddress
Description copied from interface:StagedOrderSetShippingAddressAndShippingMethodAction
Value to set for
shippingAddress
.- Specified by:
setAddress
in interfaceStagedOrderSetShippingAddressAndShippingMethodAction
- Parameters:
address
- value to be set
-
setShippingMethod
Description copied from interface:StagedOrderSetShippingAddressAndShippingMethodAction
Value to set.
- Specified by:
setShippingMethod
in interfaceStagedOrderSetShippingAddressAndShippingMethodAction
- Parameters:
shippingMethod
- value to be set
-
setExternalTaxRate
Description copied from interface:StagedOrderSetShippingAddressAndShippingMethodAction
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Specified by:
setExternalTaxRate
in interfaceStagedOrderSetShippingAddressAndShippingMethodAction
- Parameters:
externalTaxRate
- value to be set
-
equals
-
hashCode
public int hashCode()
-