BuyerGroupResponse Class
Contains constructors and methods to retrieve the buyer groups associated with a user.
The following are constructors for BuyerGroupResponse.
-
BuyerGroupResponse(buyerGroupIds)
Creates a new instance of the
CommerceBuyGrp.BuyerGroupResponseclass using the specifiedbuyerGroupIdspayload parameter. -
Creates a new instance of the
CommerceBuyGrp.BuyerGroupResponseclass.
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.
-
setBuyerGroupIds(buyerGroupIds)
Sets a list of evaluated buyer group IDs assigned to a user.
-
setError(errorMessage, localizedErrorMessage)
Sets the error message to be returned when the evaluation of buyer group IDs fails.
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