* @throws BssException
*/
public JsonEntity entitleSubscriber(String subscriberId, String subscriptionId, boolean acceptTOU) throws BssException {
try {
String serviceUrl = BssUrls.API_RESOURCE_ENTITLE_SUBSCRIBER.format(this,
new NamedUrlPart("subscriberId", subscriberId),
new NamedUrlPart("subscriptionId", subscriptionId),
new NamedUrlPart("acceptTOU", acceptTOU ? "true" : "false"));
Response response = createData(serviceUrl, null, EntitleSubscriberHeader, (Object)null);
return getJsonFeedHandler().createEntity(response);
} catch (Exception e) {
throw new BssException(e, "Error entitling subscriber {0} to {1} with {2} caused by {3}", subscriberId, subscriptionId, acceptTOU, e.getMessage());
}