Skip to content

Releases: smartcar/java-sdk

Improving Batch Error Handling + Permission Caching

07 Nov 17:42
a45203c
Compare
Choose a tag to compare

Batch

  • If you call a batch method (e.g. BatchResponse.tirePressure()) and you never passed the corresponding path (i.e. /tires/pressure) into the .batch() method, BatchResponse.tirePressure() will throw a BatchResponseMissingException.
  • If there is a permission error on a /batch request (i.e. if /charge is not allowed), the request will return a permission error object just for that endpoint within the batch response. Previously, batch requests containing just one permission error would return a permission error for the whole response.

Caching

  • .permissions() and .hasPermissions() now cache their calls to the permissions endpoint

Vehicle hasPermission(s)

10 Jul 20:09
1fd0dad
Compare
Choose a tag to compare

2.0.7 (2019-07-10)

Features

  • Vehicle has permission function (1fd0dad)