Invoice field `date` and `dueDate` not matching typescript definition

オープン
#487 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
nodejs, typescript
領域
api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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):
image

To Reproduce
Steps to reproduce the behavior:

  1. Do a getInvoice or createInvoices call

Expected behavior

  • date field to be a string
主要言語
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 を短くまとめたダイジェスト。