Attach PDF to emailed invoices from API

未关闭
#536 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
nodejs, typescript
领域
api

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
264
派生
177
平均合并
10 小时 5 分钟
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

XeroAPI/xero-node 的其他 Issue

查看 XeroAPI/xero-node 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。