Closed Tim-Hodge closed 1 year ago
Hi @Tim-Hodge Thanks for raising this issue. I have been able to reproduce and am currently working on pushing out a fix for this.
Thanks again :)
Hi Tim! We've released the fix for this in version 3.29.1 so I'm marking this issue as resolved.
Have a great day 😄
SDK you're using (please complete the following information):
Describe the bug The
ALEUTIANSTANDARDTIME
timezone is not supported withinXero.NetStandard.OAuth2.Model.Accounting.TimeZone
. Any calls toGetOrganisationsAsync (/Organisation)
that return"Timezone": "ALEUTIANSTANDARDTIME"
will fail to deserialise.To Reproduce
/Setup/FinancialSettings.aspx
(UTC-10:00) Aleutian Islands
GetOrganisationsAsync (/Organisation)
with the client libraryError converting value “ALEUTIANSTANDARDTIME” to type ‘Xero.NetStandard.OAuth2.Model.Accounting.TimeZone’. Path ‘Organisations[0].Timezone’, line 30, position 40
Expected behavior Expect deserialised object with correct timezone to be returned. I would also expect an exception to be thrown in future cases, as opposed to a null return.