Class StagedOrderSetCountryActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetCountryActionImpl
- All Implemented Interfaces:
StagedOrderSetCountryAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderSetCountryActionImpl
extends Object
implements StagedOrderSetCountryAction, io.vrap.rmf.base.client.ModelBase
Setting the country can lead to changes in the LineItem prices.
-
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.StagedOrderSetCountryAction
SET_COUNTRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.int
hashCode()
void
setCountry
(String country) 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.StagedOrderSetCountryAction
withStagedOrderSetCountryAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderSetCountryActionImpl
public StagedOrderSetCountryActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getCountry
Value to set. If empty, any existing value is removed.
If the Cart is bound to a
store
, the provided value must be included in the Store'scountries
. Otherwise a CountryNotConfiguredInStore error is returned.- Specified by:
getCountry
in interfaceStagedOrderSetCountryAction
- Returns:
- country
-
setCountry
Description copied from interface:StagedOrderSetCountryAction
Value to set. If empty, any existing value is removed.
If the Cart is bound to a
store
, the provided value must be included in the Store'scountries
. Otherwise a CountryNotConfiguredInStore error is returned.- Specified by:
setCountry
in interfaceStagedOrderSetCountryAction
- Parameters:
country
- value to be set
-
equals
-
hashCode
public int hashCode()
-