Skip to content

Releases: XeroAPI/Xero-Java

4.1.4

29 Jul 21:08
d3d30c1

Choose a tag to compare

AU Payroll
EarningRate - change accrueLeave from boolean to Double

ACCOUNTING
add accountID to ManualJournalLine

Overload all create and update attachment methods to accept a byte[] and mimeType.

4.1.3

24 Jul 22:56
926d530

Choose a tag to compare

Build from version 2.2.9
https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.2.9

ACCOUNTING
Uncommenting History and Notes specs reverse PR #245
Add RepeatingInvoiceID to the get invoices endpoint
Fix typo in report name/path for TenNinetyNineContact

Adding the 'BatchPayment' object to the response of:


GET /Payments
GET /Payments/{PaymentID}

GET /BankTransactions

GET /BankTransactions/{BankTransactionID}

This will be returned only when a payment/transaction is part of a batch.

AU PAYROLL
Employee object
Remove HomeAddress as required property
Add Account Type enum WAGESPAYABLELIABILITY

4.1.2

06 Jul 18:56
457c668

Choose a tag to compare

ASSETS
Remove AssetTypeId from req. property list

ACCOUNTING
Remove style:simple property from Statuses Filter
Change getQuoteAsPDF method to use QuoteID is path not QuotesID

AU PAYROLL
EarningsRate
• AccrueLeave change from number to boolean
LeaveType
• NormalEntitlement change from Int to Double

4.1.1

23 Jun 18:19
8579504

Choose a tag to compare

Build from OpenAPI spec 2.2.1 to 2.2.4
https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.2.4

ACCOUNTING
Add summarizeError to CreditNote Allocation

Quote add missing properties
StatusAttributeString
ValidationErrors

Add proposed ReportTaxType enums for South Africa

Allocation
add Prepayment, Overpayment, CreditNote
add StatusAttributeString and ValidationErrors array

Schedule
add missing enums

Organisation
add EmployerIdentificationNumber

BANKFEEDS
Pagination - add missing type:object

AU PAYROLL
Add vendorExtension x-isObjectArray: true

IDENTITY
fix the casing of createdDateUTC to be createdDateUtc

4.1.0

03 Jun 22:15
5f243a0

Choose a tag to compare

Built with OpenAPI Generator 4.2.3 - all tests passed
UK Payroll Unit exit beta as all unit test complete and object/methods fixes

Release built from

https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.1.6
https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.1.7
https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.2.0

4.0.2

20 May 23:54
aaea61c

Choose a tag to compare

Built from OpenAPI Spec version 2.1.5 and 2.1.4
https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.1.5

ACCOUNTING
Add getContactByContactNumber method
Remove erroneous method getPrepaymentAsPdf removed.
BankTransfer amount changed from String to Number format: float

AU PAYROLL
UpdatePayslips response changed to Payslips
Example response for UpdatePayslips added

Data-type fix
ACCOUNTING
LineItem Quantity change from float to double
LineItem UnitAmount change from float to double
BankTransfer Amound change from float to double
Item QuantityOnHand change from float to double
PurchaseOrder UnitPrice change from float to double

ASSETS, PAYROLL AU and PAYROLL UK
All numbers with format float changed to double

4.0.1

15 May 20:55

Choose a tag to compare

See README for more information on breaking changes between 3.x and 4.x

ACCOUNTING (and all other APIs)
XeroApiException class deprecated in favor or error code specific exceptions

400 XeroBadRequestException
401| XeroUnauthorizedException
403 XeroForbiddenException
404 XeroNotFoundException
405 XeroMethodNotAllowedException
429 XeroRateLimitException
500 XeroServerErrorException

Refactor XeroApiExceptionHander to process unique exceptions
Update methods to throw unique 400 and 405 errors with validation data compatiable to that API set

Change date and datetime for Accounting to string with new method "AsDate" to converstion of MS Datetimeformat in the models and not during deserialization
Fix StringUtil to convert date to milliseconds using UTC timezone

LOGGING
Log4J replaced with logging facade,
Started added some "debug" level logging mesages
Note: open to suggestions for where you'd like to see logging

AU PAYROLL

  • New model Payslips
  • method updatePayslip response type changed to Payslips

UK PAYROLL
Unit tests added
EmployeeLeaveBalances
EmployeeLeavePeriods
EmployeeLeave
EmployeeLeaveTypes
EmployeeOpeningBalances
EmployeeStatutoryLeaveBalances
EmployeeStatutoryLeavesSummary
EmployeeStatutorySickLeave
EmployeeTax
Employee
Employment

Models and Methods modified to support Unit tests

3.6.0

21 Apr 18:36
0208db2

Choose a tag to compare

Build from OAS 2.1.0 https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.1.0

UK Payroll initial commit - beta

  • PayrollUkApi class with all methods for interacting with UK Payroll API
  • Models for all UK Payroll objects
  • TODO: unit tests for all models

ACCOUNTING
IncludeOnline boolean fixed to be a query Param for creditNote and invoice Attachments

ASSETS
assetTypeId property added to Asset object

IDENTITY
tenantName property added to the Connection object

AU PAYROLL

  • allowanceType added with enum values
  • earningsType added some missing enum values

ErrorHandler

  • Look for Status code 401 and pass code and message in XeroApiException object

3.5.2

08 Apr 00:11
8e3dd44

Choose a tag to compare

Built from OAS 2.0.8
https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.0.8

ACCOUNTING
Add getPurchaseOrderAsPdf method

ASSETS
Add Error objects and Validation arrays

GET Assets requires a Status in ALL Caps otherwise you'll recieve a 403 Forbidden.

CREATE or GET Assets deserializes JSON responses into the Assets object where the Status is Init Caps.

For this reason the same component in our OpenAPI spec will not support both use cases without throwing an error for missing enums due to case sensitivity.

3.5.1

03 Apr 23:42
619a928

Choose a tag to compare

Built off version 2.0.7 of Xero-OpenAPI
https://github.com/XeroAPI/Xero-OpenAPI/releases/tag/2.0.7

2.0.7
AU PAYROLL
Add enums for LeaveLineCalculation Type

ACCOUNTING
All date add

All date-time add
example
-readOnly=true

All HasAttachments add
default: "false"
example: "false"

CreditNote
Add property StatusAttributeString

2.0.6
ACCOUNTING

updateEmployee singular not supported by API - removed
Add getQuotesAsPDF
ASSETS

enums capitalized for assets status
AssetStatus component added