最上位の税関連プロパティを、Invoice、Invoice Line Item、Credit Note Line Item の新しい税金モデルに置き換えます互換性に関わる変更
新規情報
We’re introducing a new taxes concept on Invoice Line Items and Credit Note Line Items that contains tax-related data and unifies the structure of tax objects in preparation for adding new types of tax objects. This replaces the top-level tax-related properties on the Invoice Line Item and Credit Note Line Item objects.
We’re also introducing a new total_taxes property on the Invoice and Credit Note objects for aggregated tax information.
この変更により互換性が失われる理由
tax_とrates tax_は、Invoice Line Item オブジェクトと Credit Note Line Item オブジェクトで使用できなくなりました。amounts total_は Invoice オブジェクトで使用できなくなりました。tax_ amounts
影響
Invoice Line Item と Credit Note Line Item の税率 ID が新しい taxes プロパティに含まれるようになりました。
line_をitem. tax_ rates[0] line_に置き換えます (item. taxes[0]. tax_ rate_ details. tax_ rate line_がitem. taxes[0]. type tax_であることを確認した後)rate_ details line_をitem. tax_ amounts[0]. amount line_に置き換えますitem. taxes[0]. amount
Invoice と Credit Note の税額合計が total_ に保存されるようになりました。
invoice.をtotal_ tax_ amounts[0]. amount invoice.に置き換えます (total_ taxes[0]. amount invoice.がtotal_ taxes[0]. type tax_であることを確認した後)rate_ details