Interface CartSetLocaleAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>

public interface CartSetLocaleAction extends CartUpdateAction
CartSetLocaleAction
Example to create an instance using the builder pattern

     CartSetLocaleAction cartSetLocaleAction = CartSetLocaleAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getLocale

      String getLocale()

      Value to set. Must be one of the Project's languages. If empty, any existing value will be removed.

      Returns:
      locale
    • setLocale

      void setLocale(String locale)

      Value to set. Must be one of the Project's languages. If empty, any existing value will be removed.

      Parameters:
      locale - value to be set
    • of

      static CartSetLocaleAction of()
      factory method
      Returns:
      instance of CartSetLocaleAction
    • of

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

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

      static CartSetLocaleActionBuilder builder()
      builder factory method for CartSetLocaleAction
      Returns:
      builder
    • builder

      create builder for CartSetLocaleAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartSetLocaleAction

      default <T> T withCartSetLocaleAction(Function<CartSetLocaleAction,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<CartSetLocaleAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference