Class StagedOrderSetShippingAddressAndCustomShippingMethodActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetShippingAddressAndCustomShippingMethodActionImpl
- All Implemented Interfaces:
StagedOrderSetShippingAddressAndCustomShippingMethodAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderSetShippingAddressAndCustomShippingMethodActionImpl
extends Object
implements StagedOrderSetShippingAddressAndCustomShippingMethodAction, io.vrap.rmf.base.client.ModelBase
Sets the shipping address and a custom 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.StagedOrderSetShippingAddressAndCustomShippingMethodAction
SET_SHIPPING_ADDRESS_AND_CUSTOM_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.Value to set.Used to select a Tax Rate when the Order has thePlatform
TaxMode.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
setShippingMethodName
(String shippingMethodName) Value to set.void
setShippingRate
(ShippingRateDraft shippingRate) Value to set.void
setTaxCategory
(TaxCategoryResourceIdentifier taxCategory) Used to select a Tax Rate when the Order has thePlatform
TaxMode.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.StagedOrderSetShippingAddressAndCustomShippingMethodAction
withStagedOrderSetShippingAddressAndCustomShippingMethodAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderSetShippingAddressAndCustomShippingMethodActionImpl
public StagedOrderSetShippingAddressAndCustomShippingMethodActionImpl()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 interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Returns:
- address
-
getShippingMethodName
Value to set.
- Specified by:
getShippingMethodName
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Returns:
- shippingMethodName
-
getShippingRate
Value to set.
- Specified by:
getShippingRate
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Returns:
- shippingRate
-
getTaxCategory
Used to select a Tax Rate when the Order has the
Platform
TaxMode.- Specified by:
getTaxCategory
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Returns:
- taxCategory
-
getExternalTaxRate
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Specified by:
getExternalTaxRate
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Returns:
- externalTaxRate
-
setAddress
Description copied from interface:StagedOrderSetShippingAddressAndCustomShippingMethodAction
Value to set for
shippingAddress
.- Specified by:
setAddress
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Parameters:
address
- value to be set
-
setShippingMethodName
Description copied from interface:StagedOrderSetShippingAddressAndCustomShippingMethodAction
Value to set.
- Specified by:
setShippingMethodName
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Parameters:
shippingMethodName
- value to be set
-
setShippingRate
Description copied from interface:StagedOrderSetShippingAddressAndCustomShippingMethodAction
Value to set.
- Specified by:
setShippingRate
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Parameters:
shippingRate
- value to be set
-
setTaxCategory
Description copied from interface:StagedOrderSetShippingAddressAndCustomShippingMethodAction
Used to select a Tax Rate when the Order has the
Platform
TaxMode.- Specified by:
setTaxCategory
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Parameters:
taxCategory
- value to be set
-
setExternalTaxRate
Description copied from interface:StagedOrderSetShippingAddressAndCustomShippingMethodAction
An external Tax Rate can be set if the Cart has the
External
TaxMode.- Specified by:
setExternalTaxRate
in interfaceStagedOrderSetShippingAddressAndCustomShippingMethodAction
- Parameters:
externalTaxRate
- value to be set
-
equals
-
hashCode
public int hashCode()
-