getInvoiceAsPdf endpoint does not set PDF headers as default

オープン
#451 コメント 5 件 リアクション 6 件 担当者 2 名 GitHub で見る

@sangeet-joy-tw がすでに取り組んでいます。

2024年2月12日 から。

評価

この issue はまだ評価されていません。

説明

Priority: Low Type: Enhancement Version: 4.x
  • Version 4.7.6

Describe the bug
Similar problem to one reported in Issue #422 whereby the invoice is returned as a Buffer in JSON format rather than a PDF.

Expected behavior
We expected an endpoint entitled getInvoiceAsPdf to return a PDF as default.
The workaround is xero.accountingApi.getInvoiceAsPdf(activeTenantId, invoiceId, {headers: {Accept: 'application/pdf'}})

主要言語
TypeScript
スター
264
フォーク
177
平均マージ
10時間 5分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

XeroAPI/xero-node のほかの issue

XeroAPI/xero-node の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。