Interface MyCartSetCountryAction

All Superinterfaces:
MyCartUpdateAction, ResourceUpdateAction<MyCartUpdateAction>

public interface MyCartSetCountryAction extends MyCartUpdateAction

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


Example to create an instance using the builder pattern

     MyCartSetCountryAction myCartSetCountryAction = MyCartSetCountryAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getCountry

      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.

      Returns:
      country
    • setCountry

      void setCountry(String country)

      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.

      Parameters:
      country - value to be set
    • of

      factory method
      Returns:
      instance of MyCartSetCountryAction
    • of

      factory method to create a shallow copy MyCartSetCountryAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of MyCartSetCountryAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for MyCartSetCountryAction
      Returns:
      builder
    • builder

      create builder for MyCartSetCountryAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyCartSetCountryAction

      default <T> T withMyCartSetCountryAction(Function<MyCartSetCountryAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<MyCartSetCountryAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference