SDK you're using (please complete the following information):
Describe the bug
When making a paged request for Invoices, the "date" property on returned invoices has a TypeScript type of "string" but is in fact a "Date". I think string is preferable since there can be timezone ambiguity with Date - for example, was the date string parsed in the context of the server timezone (using standard Date() constructor) or was it parsed using Date.UTC(). Also, thee same thing seems to be happening with the "dueDate" as well as the date on payments.
To Reproduce
Steps to reproduce the behavior:
- Fetch a paged list of invoices
- See that Invoice.date is actually a date - but it should be a string
Expected behavior
The date property should be a string