Package com.commercetools.api.models.me
Class MyCartSetCountryActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCartSetCountryActionImpl
- All Implemented Interfaces:
MyCartSetCountryAction
,MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCartSetCountryActionImpl
extends Object
implements MyCartSetCountryAction, 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.me.MyCartSetCountryAction
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.me.MyCartSetCountryAction
withMyCartSetCountryAction
Methods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCartSetCountryActionImpl
public MyCartSetCountryActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCartUpdateAction>
- 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 interfaceMyCartSetCountryAction
- Returns:
- country
-
setCountry
Description copied from interface:MyCartSetCountryAction
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 interfaceMyCartSetCountryAction
- Parameters:
country
- value to be set
-
equals
-
hashCode
public int hashCode()
-