Invoice field `date` and `dueDate` not matching typescript definition
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- nodejs, typescript
- Área
- api
Línea de trabajo
The mismatch is between the Invoice model's date and dueDate properties, typed as string, and the Date instances that getInvoice and createInvoices return at runtime. Start from the Invoice model declaration and from where the SDK deserializes API responses, then compare what each call actually returns. Done means the declared types and the runtime values agree, with a test covering both calls. The thread has gone unanswered for about 300 days, so confirm the maintainers' preferred direction before you start.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
SDK you're using (please complete the following information):
- Version: 4.9.1
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
getInvoiceorcreateInvoicescall
Expected behavior
datefield to be a string
- Lenguaje dominante
- TypeScript
- Estrellas
- 264
- Forks
- 177
- Merge medio
- 10 h 5 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de XeroAPI/xero-node
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameterAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 3/5 Medio día Aptitud para principiantes 55/100
-
TrackingOptionId value missing from accountingApi.getInvoices()Posiblemente ocupada @miachillgood la tomó hace 152 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 18/100
-
BankTransaction type is missing the batchPayment object.Posiblemente ocupada @miachillgood la tomó hace 171 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 22/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
Todos los issues de XeroAPI/xero-node
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
super-productivity/super-productivity#12128 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at oncePosiblemente ocupada @2389400626lh-ops la tomó hoy. AbiertoArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
justyns/silverbullet-ai#199 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
spartan-ng/spartan#1931 ·
Los mantenedores suelen responder en 2 días