Class CartSetCountryActionImpl

java.lang.Object
com.commercetools.api.models.cart.CartSetCountryActionImpl
All Implemented Interfaces:
CartSetCountryAction, CartUpdateAction, ResourceUpdateAction<CartUpdateAction>, io.vrap.rmf.base.client.ModelBase

public class CartSetCountryActionImpl extends Object implements CartSetCountryAction, io.vrap.rmf.base.client.ModelBase

Setting the country can lead to changes in the LineItem prices.

  • Constructor Details

    • CartSetCountryActionImpl

      public CartSetCountryActionImpl()
      create empty instance
  • Method Details

    • getAction

      public String getAction()
      Specified by:
      getAction in interface CartUpdateAction
      Specified by:
      getAction in interface ResourceUpdateAction<CartUpdateAction>
      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 CartSetCountryAction
      Returns:
      country
    • setCountry

      public void setCountry(String country)
      Description copied from interface: CartSetCountryAction

      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 CartSetCountryAction
      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