BuyerGroupResponse Class

Contains constructors and methods to retrieve the buyer groups associated with a user.

CommerceBuyGrp

The following are constructors for BuyerGroupResponse.

Creates a new instance of the CommerceBuyGrp.BuyerGroupResponse class using the specified buyerGroupIds payload parameter.

public BuyerGroupResponse(Set<String> buyerGroupIds)

  • buyerGroupIds:

    Type: Set<String>

    List of buyer group IDs for a user.

Creates a new instance of the CommerceBuyGrp.BuyerGroupResponse class.

public BuyerGroupResponse()

The following are methods for BuyerGroupResponse.

Retrieves a list of evaluated buyer group IDs assigned to a user.

public Set<String> getBuyerGroupIds()

Type: Set<String>

Sets a list of evaluated buyer group IDs assigned to a user.

public void setBuyerGroupIds(Set<String> buyerGroupIds)

  • buyerGroupIds:

    Type: Set<String>

Type: void

Sets the error message to be returned when the evaluation of buyer group IDs fails.

public void setError(String errorMessage, String localizedErrorMessage)

  • errorMessage:

    Type: String

    The message stating the reason for the error.

  • localizedErrorMessage:

    Type: String

    The translated error message.

Type: void