Releases: XeroAPI/Xero-Java
2.2.3
Update constructor on client API classes to take Custom JsonConfig class as arg.
2.2.2
- Fixed FileUpload to support mulit-part form data uploads
- Added "OFFICE" to phone type enums to prevent errors when doing a GET on contacts for the Demo Company. - This enum value is not a valid phone type when performing a PUT or POST.
- Changed where the "Content-Type" header is set. Previously, it was set in the XeroHttpContext class on the httpclient, but this caused error for multipart-formdata. Setting the Content-Type header on the HttpPost or HttpPut objects solved the problem.
- Completed example calls for all Files and Folder endpoints in example/RequestResourceServlet class
- Refined the Files API Models using the OAS
- Fixed date issue with BankFeed Unit Tests
- Merged PR #111
- Addressed some ENUM issues from issue #112
2.2.1
2.2.0
Quite a few changes to Accounting API models needed to be made to address that dates had been turned into strings while building the Java SDK using the OpenAPI code generator. The issue is around Xero's historical use of MS JSON date format. CustomDateDeserializers have been implemented so the following libraries could be used for dates
org.threeten.bp.LocalDate;
org.threeten.bp.OffsetDateTime;
We also were alerted that nested objects where not being parsed with accounting models but instead returned as generic objects. We addressed that which exposed additional data type issues that we addressed.
Added format: date to 20 properties
Added format: datetime to 22 properties
Updated eNum list for 12 properties
Updated string to integer for 3 properties
Removed "allOf" from 26 objects so parsing will map to model class and not generic object.
Replace BankAccount model class with Account class
Cleaned up a lot of descriptions
We will circle back to address baseCurrency and countryCode on the Organisation endpoint in our OpenAPI spec soon and update the SDK.
Early work on Files API included, but should not be considered stable.
2.1.2
Add propertyClass to Organisation model
Fix link in README
2.1.1
change schema dependency from github repo to maven central
add error types to bank feed statements
2.1.0
Some major changes to prepare for Maven Central
Proper annotation across library
Updated BankFeed and AssetsAPIs to pass each param as an argument instead of a HashMap of parameters.
Updated Accounting number datatype to format as integer or float.
Going forward jars managed in Maven Central for dependency management systems.
2.0.2
2.0.1 - minor bug fixes
Fix timeframe parameter passed to ReportProfitAndLoss method.
Changed from BigDecimal to String
2.0.0
Major update to the SDK
Full JSON support for Requests and Responses
New Models generated in the com.xero.models package
New Endpoints
- History
- Batch Payments