AccountingApi().GetAccountsAsync method doesn't work if Chart Of Accounts contains Account with Currency LVL
SDK you're using (please complete the following information):
- Version [e.g. 3.18.1]
Describe the bug If create a Bank Account with Currency LVL at the Xero - it doesn't return accounts on GetAccountsAsync call. it was difficult to find the error message but it's because CurrencyCode enum doesn't contain LVL value. Error message is here "Error converting value "LVL" to type 'Xero.NetStandard.OAuth2.Model.Accounting.CurrencyCode'. Path 'Accounts[6].CurrencyCode', line 126, position 27."
To Reproduce Steps to reproduce the behavior:
- Go to 'Xero -> Chart of Account'
- Add Bank Account with Currenct LVL
- Do GetAccountsAsync call to return list of Accounts
- Response doesn't have any accounts
Hi @Solnake Apologies for the delay but we have investigated and the currency code is now deprecated. The issue has been escalated to the relevant team and we will let you know when there is an update.