Skip to content

Releases: XeroAPI/Xero-Java

2.2.3

10 Jan 23:35
Compare
Choose a tag to compare

Update constructor on client API classes to take Custom JsonConfig class as arg.

2.2.2

09 Jan 23:23
Compare
Choose a tag to compare
  • 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

10 Dec 19:26
Compare
Choose a tag to compare

The focus of this release is missing Enums (#110 )

  • Added CountryCode, CurrencyCode and Timezone, PaymentTermType components
  • Updated 37 string properties with appropriate Enums
  • Added Allocations and History for Prepayments

2.2.0

07 Dec 00:54
Compare
Choose a tag to compare

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

30 Nov 15:05
Compare
Choose a tag to compare

Add propertyClass to Organisation model
Fix link in README

2.1.1

24 Nov 03:03
Compare
Choose a tag to compare

change schema dependency from github repo to maven central
add error types to bank feed statements

2.1.0

21 Nov 01:42
Compare
Choose a tag to compare

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

15 Nov 17:07
Compare
Choose a tag to compare

Merge PR #101 and fixed issue with mixing proxy setting for binary file endpoints reported in #103

2.0.1 - minor bug fixes

15 Nov 14:37
Compare
Choose a tag to compare

Fix timeframe parameter passed to ReportProfitAndLoss method.
Changed from BigDecimal to String

2.0.0

15 Nov 00:52
Compare
Choose a tag to compare

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