Interface CustomerAddStoreAction

All Superinterfaces:
CustomerUpdateAction, ResourceUpdateAction<CustomerUpdateAction>

public interface CustomerAddStoreAction extends CustomerUpdateAction

Associates the Customer with a Store.


Example to create an instance using the builder pattern

     CustomerAddStoreAction customerAddStoreAction = CustomerAddStoreAction.builder()
             .store(storeBuilder -> storeBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getStore

      @NotNull @Valid @NotNull @Valid StoreResourceIdentifier getStore()

      ResourceIdentifier of the Store to add.

      Returns:
      store
    • setStore

      void setStore(StoreResourceIdentifier store)

      ResourceIdentifier of the Store to add.

      Parameters:
      store - value to be set
    • of

      factory method
      Returns:
      instance of CustomerAddStoreAction
    • of

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

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

      builder factory method for CustomerAddStoreAction
      Returns:
      builder
    • builder

      create builder for CustomerAddStoreAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerAddStoreAction

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