SDK you're using (please complete the following information):
Describe the bug
The Invoice model in TypeScript is not matching the actual invoice entities returned by the SDK.
In the typescript definition:
/**
* Date invoice was issued – YYYY-MM-DD. If the Date element is not specified it will default to the current date based on the timezone setting of the organisation
*/
'date'?: string;
/**
* Date invoice is due – YYYY-MM-DD
*/
'dueDate'?: string;
If you look to the result of createInvoices (Date instance):

To Reproduce
Steps to reproduce the behavior:
- Do a
getInvoice or createInvoices call
Expected behavior
date field to be a string