Interface CustomerSetStoresAction

All Superinterfaces:
CustomerUpdateAction, ResourceUpdateAction<CustomerUpdateAction>

public interface CustomerSetStoresAction extends CustomerUpdateAction

Sets the Stores the Customer account is associated with. If no Stores are specified, the Customer becomes a global Customer.


Example to create an instance using the builder pattern

     CustomerSetStoresAction customerSetStoresAction = CustomerSetStoresAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getStores

      @Valid @Valid List<StoreResourceIdentifier> getStores()

      ResourceIdentifier of the Stores to set.

      Returns:
      stores
    • setStores

      void setStores(StoreResourceIdentifier... stores)

      ResourceIdentifier of the Stores to set.

      Parameters:
      stores - values to be set
    • setStores

      void setStores(List<StoreResourceIdentifier> stores)

      ResourceIdentifier of the Stores to set.

      Parameters:
      stores - values to be set
    • of

      factory method
      Returns:
      instance of CustomerSetStoresAction
    • of

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

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

      builder factory method for CustomerSetStoresAction
      Returns:
      builder
    • builder

      create builder for CustomerSetStoresAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerSetStoresAction

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