From d9006ddf3b9dd76ebb3f069b9a878f7367fc1604 Mon Sep 17 00:00:00 2001 From: Renan Butkeraites Date: Thu, 17 Oct 2024 18:40:25 -0300 Subject: [PATCH] Add bank summary as a report stream (#28) --- tap_xero/schemas/reports_bank_summary.json | 35 ++++++++++++++++++++++ tap_xero/streams.py | 1 + 2 files changed, 36 insertions(+) create mode 100644 tap_xero/schemas/reports_bank_summary.json diff --git a/tap_xero/schemas/reports_bank_summary.json b/tap_xero/schemas/reports_bank_summary.json new file mode 100644 index 0000000..813994e --- /dev/null +++ b/tap_xero/schemas/reports_bank_summary.json @@ -0,0 +1,35 @@ +{ + "type": [ + "null", + "object" + ], + "properties": { + "from_date": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "to_date": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "account": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false +} \ No newline at end of file diff --git a/tap_xero/streams.py b/tap_xero/streams.py index 0ef4573..d2edacb 100644 --- a/tap_xero/streams.py +++ b/tap_xero/streams.py @@ -354,5 +354,6 @@ def sync(self, ctx): ReportStream("reports_profit_and_loss", ["from_date"], bookmark_key="to_date"), ReportStream("reports_balance_sheet", ["from_date"], bookmark_key="to_date"), ReportStream("budgets", ["from_date"], bookmark_key="to_date") + ReportStream("reports_bank_summary", ["from_date"], bookmark_key="to_date"), ] all_stream_ids = [s.tap_stream_id for s in all_streams]