TrackingOptionId value missing from accountingApi.getInvoices()

Đang mở
#777 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

@miachillgood đang làm issue này rồi.

Từ ngày 30/6/2026.

  • #813 của @miachillgood — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

Start with the open pull request #813 linked to this issue, since it may already address the missing trackingOptionID. Reproduce by comparing the raw GET /Invoice/{invoiceID} response for an invoice with tracking options against what accountingApi.getInvoices() returns for the same line items. Done means trackingOptionID is populated in the SDK output and the mapping is covered by a test.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

SDK you're using:

  • Version 13.3.0

Describe the bug
The trackingOptionID field is present in the TS definition, but the value not getting properly populated/mapped. The other three fields are populated correctly; just the option ID is missing.

To Reproduce
Call GET https://api.xero.com/api.xro/2.0/Invoice/<<invoiceID>> using Postman or the API Explorer. Target an invoice which contain lines with tracking options selected.
Call accountingApi.getInvoices() with the same invoiceID, and notice trackingOptionID is undefined.

Ngôn ngữ chính
TypeScript
Star
264
Fork
177
Merge trung bình
10 giờ 5 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của XeroAPI/xero-node

Tất cả issue của XeroAPI/xero-node

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.