Skip to content

2.2.0

Compare
Choose a tag to compare
@SidneyAllen SidneyAllen released this 07 Dec 00:54
· 545 commits to master since this release

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.