Attach PDF to emailed invoices from API

Abierto
#536 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
nodejs, typescript
Área
api

Línea de trabajo

The request is for the emailInvoice call to attach the invoice PDF the way the web interface does. The SDK code is generated from the OpenAPI spec in XeroAPI/Xero-OpenAPI, so the first step is checking whether the spec exposes an attachment option on the invoice email endpoint. The issue gives no file to edit and no test to run, and the fix probably belongs upstream in the spec rather than in this repository. Done would mean the attachment behaviour is available through the SDK, which needs a maintainer decision first.

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..11.0

Is your feature request related to a problem? Please describe.
Attaching PDF to "emailInvoice" API endpoint. We have customers that use automated systems such as Hubdoc which automatically import the PDF from email, but if the invoice was generated via the API, I am unable to attach the PDF to the email, so they have to manually process our invoices, which they are grumpy about.

Describe the solution you'd like
Able to set "Attach PDF" on the API call, and it attach the same PDF as the web interface.

Describe alternatives you've considered
We are looking at generating the PDF manually to just look like the one Xero generates, and attach that document to an email that we generate, but we would have to be really careful to make sure that all the data is identical. And it seems like a lot of work for a feature that should be included.

We considered using the "download PDF" option via the API, but the API version of PDFs don't include custom fonts from the template. When the web version does include our fonts. So we would be forced to use our own PDF generation servers. The custom font is 3of9 for barcodes.

Lenguaje dominante
TypeScript
Estrellas
264
Forks
177
Merge medio
10 h 5 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de XeroAPI/xero-node

Todos los issues de XeroAPI/xero-node

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.