From f9a65d0264a3f2619fcd0afcaabc1792544743ef Mon Sep 17 00:00:00 2001 From: Renan Butkeraites Date: Tue, 17 Sep 2024 15:16:23 -0300 Subject: [PATCH] Add Item and AccountID to line items on invoice stream (#25) --- tap_xero/schemas/line_items.json | 49 ++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/tap_xero/schemas/line_items.json b/tap_xero/schemas/line_items.json index 90dae74..71722da 100644 --- a/tap_xero/schemas/line_items.json +++ b/tap_xero/schemas/line_items.json @@ -30,18 +30,51 @@ "exclusiveMinimum": true, "exclusiveMaximum": true }, + "ItemCode": { + "type": [ + "null", + "string" + ] + }, "AccountCode": { "type": [ "null", "string" ] }, - "ItemCode": { + "AccountID":{ "type": [ "null", "string" ] }, + "Item":{ + "type": [ + "null", + "object" + ], + "properties": { + "ItemID": { + "type": [ + "null", + "string" + ] + }, + "Name": { + "type": [ + "null", + "string" + ] + }, + "Code": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, "LineItemID": { "type": [ "string" @@ -53,7 +86,7 @@ "string" ] }, - "LineAmount": { + "TaxAmount": { "type": [ "null", "number" @@ -63,7 +96,7 @@ "exclusiveMinimum": true, "exclusiveMaximum": true }, - "TaxAmount": { + "LineAmount": { "type": [ "null", "number" @@ -83,6 +116,16 @@ "exclusiveMinimum": true, "exclusiveMaximum": true }, + "DiscountAmount": { + "type": [ + "null", + "number" + ], + "minimum": -1e+33, + "maximum": 1e+33, + "exclusiveMinimum": true, + "exclusiveMaximum": true + }, "Tracking": { "items": { "$ref": "tracking_categories"