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.

  • Constructor Details

    • MyCartSetCountryActionImpl

      public MyCartSetCountryActionImpl()
      create empty instance
  • Method Details

    • getAction

      public String getAction()
      Specified by:
      getAction in interface MyCartUpdateAction
      Specified by:
      getAction in interface ResourceUpdateAction<MyCartUpdateAction>
      Returns:
      action
    • getCountry

      public String 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's countries. Otherwise a CountryNotConfiguredInStore error is returned.

      Specified by:
      getCountry in interface MyCartSetCountryAction
      Returns:
      country
    • setCountry

      public void setCountry(String country)
      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's countries. Otherwise a CountryNotConfiguredInStore error is returned.

      Specified by:
      setCountry in interface MyCartSetCountryAction
      Parameters:
      country - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object