Interface CustomerGroupAssignment


public interface CustomerGroupAssignment

Represents an individual Customer Group assignment as a Reference to a CustomerGroup.


Example to create an instance using the builder pattern

     CustomerGroupAssignment customerGroupAssignment = CustomerGroupAssignment.builder()
             .customerGroup(customerGroupBuilder -> customerGroupBuilder)
             .build()
 
  • Method Details

    • getCustomerGroup

      @NotNull @Valid @NotNull @Valid CustomerGroupReference getCustomerGroup()

      Reference to a Customer Group.

      Returns:
      customerGroup
    • setCustomerGroup

      void setCustomerGroup(CustomerGroupReference customerGroup)

      Reference to a Customer Group.

      Parameters:
      customerGroup - value to be set
    • of

      factory method
      Returns:
      instance of CustomerGroupAssignment
    • of

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

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

      builder factory method for CustomerGroupAssignment
      Returns:
      builder
    • builder

      create builder for CustomerGroupAssignment instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerGroupAssignment

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