protected ResponseType put(String endPoint, Object object) {
OAuthRequest request = new OAuthRequest(Verb.PUT, BASE_URL + endPoint);
String contents = marshallRequest(object);
request.addPayload(contents);
service.signRequest(token, request);
Response response = request.send();
if (response.getCode() != 200) {
ApiException exception = unmarshallResponse(response, ApiException.class);
throw new XeroApiException(response.getCode(), "Error number "
+ exception.getErrorNumber() + ". " + exception.getMessage());
}
return unmarshallResponse(response, ResponseType.class);
}