From 07ea0152192f3686eaaf085a400f86dccc7f8f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9lanie=20Vistry?= Date: Fri, 30 Jan 2026 14:30:38 +0100 Subject: [PATCH] New schemas --- .../invoiced/v1/invoiced-v1-tables.yml | 12 -- .../invoiced/v1/json/credit_notes.json | 119 +++++++----- .../schemas/invoiced/v1/json/customers.json | 120 ++++++++++--- .../schemas/invoiced/v1/json/estimates.json | 136 ++++++++------ .../schemas/invoiced/v1/json/invoices.json | 148 +++++++++------ .../invoiced/v1/json/subscriptions.json | 170 +++++++++++------- 6 files changed, 439 insertions(+), 266 deletions(-) diff --git a/_data/taps/schemas/invoiced/v1/invoiced-v1-tables.yml b/_data/taps/schemas/invoiced/v1/invoiced-v1-tables.yml index ef62938c0..8f73302f4 100644 --- a/_data/taps/schemas/invoiced/v1/invoiced-v1-tables.yml +++ b/_data/taps/schemas/invoiced/v1/invoiced-v1-tables.yml @@ -65,18 +65,6 @@ tables: replication-method: Key-based Incremental primary-key: id replication-key: updated_at -- name: transactions - description: 'The `{{ table.name }}` table contains info about the transactions - in your {{ integration.display_name }} account. - - ' - links: - singer-schema: https://github.com/singer-io/tap-invoiced/blob/master/tap_invoiced/schemas/transactions.json - api-method: https://developer.invoiced.com/api/#list-all-transactions - table-details: - replication-method: Key-based Incremental - primary-key: id - replication-key: updated_at - name: estimates description: 'The `{{ table.name }}` table contains info about the estimates in your {{ integration.display_name }} account. diff --git a/_data/taps/schemas/invoiced/v1/json/credit_notes.json b/_data/taps/schemas/invoiced/v1/json/credit_notes.json index 4d0687d35..0f9270dd6 100644 --- a/_data/taps/schemas/invoiced/v1/json/credit_notes.json +++ b/_data/taps/schemas/invoiced/v1/json/credit_notes.json @@ -1,21 +1,25 @@ { + "type": [ + "null", + "object" + ], "properties": { - "balance": { + "id": { "type": [ "null", - "number" + "integer" ] }, - "closed": { + "balance": { "type": [ "null", - "boolean" + "number" ] }, - "created_at": { + "closed": { "type": [ "null", - "date-time" + "boolean" ] }, "currency": { @@ -33,21 +37,22 @@ "date": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "discounts": { + "type": [ + "null", + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, - "type": [ - "null", - "array" - ] + ], + "properties": {} + } }, "draft": { "type": [ @@ -55,37 +60,31 @@ "boolean" ] }, - "id": { - "type": [ - "null", - "integer" - ] - }, - "invoice": { + "items": { "type": [ "null", - "integer" - ] - }, - "items": { + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, + ], + "properties": {} + } + }, + "invoice": { "type": [ "null", - "array" + "integer" ] }, "metadata": { - "properties": {}, "type": [ "null", "object" - ] + ], + "properties": {} }, "name": { "type": [ @@ -124,17 +123,17 @@ ] }, "taxes": { + "type": [ + "null", + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, - "type": [ - "null", - "array" - ] + ], + "properties": {} + } }, "total": { "type": [ @@ -142,15 +141,43 @@ "number" ] }, + "created_at": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, "updated_at": { "type": [ "null", - "date-time" + "string" + ], + "format": "date-time" + }, + "purchase_order": { + "type": [ + "null", + "string" + ] + }, + "url": { + "type": [ + "null", + "string" + ] + }, + "pdf_url": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" ] } - }, - "type": [ - "null", - "object" - ] -} \ No newline at end of file + } +} diff --git a/_data/taps/schemas/invoiced/v1/json/customers.json b/_data/taps/schemas/invoiced/v1/json/customers.json index e55ef841e..a8088fe1b 100644 --- a/_data/taps/schemas/invoiced/v1/json/customers.json +++ b/_data/taps/schemas/invoiced/v1/json/customers.json @@ -1,5 +1,15 @@ { + "type": [ + "null", + "object" + ], "properties": { + "id": { + "type": [ + "null", + "integer" + ] + }, "address1": { "type": [ "null", @@ -48,12 +58,6 @@ "string" ] }, - "created_at": { - "type": [ - "null", - "date-time" - ] - }, "credit_hold": { "type": [ "null", @@ -72,12 +76,6 @@ "string" ] }, - "id": { - "type": [ - "null", - "integer" - ] - }, "language": { "type": [ "null", @@ -85,11 +83,11 @@ ] }, "metadata": { - "properties": {}, "type": [ "null", "object" - ] + ], + "properties": {} }, "name": { "type": [ @@ -122,11 +120,11 @@ ] }, "payment_source": { - "properties": {}, "type": [ "null", "object" - ] + ], + "properties": {} }, "payment_terms": { "type": [ @@ -171,33 +169,97 @@ ] }, "taxes": { + "type": [ + "null", + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, + ], + "properties": {} + } + }, + "type": { "type": [ "null", - "array" + "string" ] }, - "type": { + "created_at": { "type": [ "null", "string" - ] + ], + "format": "date-time" }, "updated_at": { "type": [ "null", - "date-time" + "string" + ], + "format": "date-time" + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "owner": { + "type": [ + "null", + "integer" + ] + }, + "avalara_entity_use_code": { + "type": [ + "null", + "string" + ] + }, + "avalara_exemption_number": { + "type": [ + "null", + "string" + ] + }, + "sign_up_url": { + "type": [ + "null", + "string" + ] + }, + "statement_pdf_url": { + "type": [ + "null", + "string" + ] + }, + "ach_gateway": { + "type": [ + "null", + "integer" + ] + }, + "cc_gateway": { + "type": [ + "null", + "integer" + ] + }, + "autopay_delay_days": { + "type": [ + "null", + "integer" + ] + }, + "object": { + "type": [ + "null", + "string" ] } - }, - "type": [ - "null", - "object" - ] -} \ No newline at end of file + } +} diff --git a/_data/taps/schemas/invoiced/v1/json/estimates.json b/_data/taps/schemas/invoiced/v1/json/estimates.json index 43f179b1f..900d857e2 100644 --- a/_data/taps/schemas/invoiced/v1/json/estimates.json +++ b/_data/taps/schemas/invoiced/v1/json/estimates.json @@ -1,10 +1,13 @@ { + "type": [ + "null", + "object" + ], "properties": { - "approval": { - "properties": {}, + "id": { "type": [ "null", - "object" + "integer" ] }, "approved": { @@ -25,12 +28,6 @@ "boolean" ] }, - "created_at": { - "type": [ - "null", - "date-time" - ] - }, "currency": { "type": [ "null", @@ -46,8 +43,9 @@ "date": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "deposit": { "type": [ @@ -62,17 +60,17 @@ ] }, "discounts": { + "type": [ + "null", + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, - "type": [ - "null", - "array" - ] + ], + "properties": {} + } }, "draft": { "type": [ @@ -83,40 +81,35 @@ "expiration_date": { "type": [ "null", - "date-time" - ] - }, - "id": { - "type": [ - "null", - "integer" - ] + "string" + ], + "format": "date-time" }, - "invoice": { + "items": { "type": [ "null", - "integer" - ] - }, - "items": { + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, + ], + "properties": {} + } + }, + "invoice": { "type": [ "null", - "array" + "integer" ] }, "metadata": { - "properties": {}, "type": [ "null", "object" - ] + ], + "properties": {} }, "name": { "type": [ @@ -136,12 +129,6 @@ "string" ] }, - "paid": { - "type": [ - "null", - "boolean" - ] - }, "payment_terms": { "type": [ "null", @@ -161,17 +148,17 @@ ] }, "taxes": { + "type": [ + "null", + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, - "type": [ - "null", - "array" - ] + ], + "properties": {} + } }, "total": { "type": [ @@ -179,15 +166,50 @@ "number" ] }, + "created_at": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, "updated_at": { "type": [ "null", - "date-time" + "string" + ], + "format": "date-time" + }, + "purchase_order": { + "type": [ + "null", + "string" + ] + }, + "ship_to": { + "type": [ + "null", + "object" + ], + "properties": {} + }, + "url": { + "type": [ + "null", + "string" + ] + }, + "pdf_url": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" ] } - }, - "type": [ - "null", - "object" - ] -} \ No newline at end of file + } +} diff --git a/_data/taps/schemas/invoiced/v1/json/invoices.json b/_data/taps/schemas/invoiced/v1/json/invoices.json index 015b365ab..59de9aa78 100644 --- a/_data/taps/schemas/invoiced/v1/json/invoices.json +++ b/_data/taps/schemas/invoiced/v1/json/invoices.json @@ -1,5 +1,15 @@ { + "type": [ + "null", + "object" + ], "properties": { + "id": { + "type": [ + "null", + "integer" + ] + }, "attempt_count": { "type": [ "null", @@ -24,12 +34,6 @@ "boolean" ] }, - "created_at": { - "type": [ - "null", - "date-time" - ] - }, "currency": { "type": [ "null", @@ -45,21 +49,22 @@ "date": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "discounts": { + "type": [ + "null", + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, - "type": [ - "null", - "array" - ] + ], + "properties": {} + } }, "draft": { "type": [ @@ -70,34 +75,29 @@ "due_date": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, - "id": { + "items": { "type": [ "null", - "integer" - ] - }, - "items": { + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, - "type": [ - "null", - "array" - ] + ], + "properties": {} + } }, "metadata": { - "properties": {}, "type": [ "null", "object" - ] + ], + "properties": {} }, "name": { "type": [ @@ -105,17 +105,12 @@ "string" ] }, - "needs_attention": { - "type": [ - "null", - "boolean" - ] - }, "next_payment_attempt": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "notes": { "type": [ @@ -160,17 +155,17 @@ ] }, "taxes": { + "type": [ + "null", + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, - "type": [ - "null", - "array" - ] + ], + "properties": {} + } }, "total": { "type": [ @@ -178,15 +173,62 @@ "number" ] }, + "created_at": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, "updated_at": { "type": [ "null", - "date-time" + "string" + ], + "format": "date-time" + }, + "purchase_order": { + "type": [ + "null", + "string" + ] + }, + "ship_to": { + "type": [ + "null", + "object" + ], + "properties": {} + }, + "payment_plan": { + "type": [ + "null", + "integer" + ] + }, + "url": { + "type": [ + "null", + "string" + ] + }, + "payment_url": { + "type": [ + "null", + "string" + ] + }, + "pdf_url": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" ] } - }, - "type": [ - "null", - "object" - ] -} \ No newline at end of file + } +} diff --git a/_data/taps/schemas/invoiced/v1/json/subscriptions.json b/_data/taps/schemas/invoiced/v1/json/subscriptions.json index 22e843307..91a578a23 100644 --- a/_data/taps/schemas/invoiced/v1/json/subscriptions.json +++ b/_data/taps/schemas/invoiced/v1/json/subscriptions.json @@ -1,24 +1,27 @@ { + "type": [ + "null", + "object" + ], "properties": { - "addons": { - "items": { - "properties": {}, - "type": [ - "null", - "object" - ] - }, + "id": { "type": [ "null", - "array" + "integer" ] }, - "approval": { - "properties": {}, + "addons": { "type": [ "null", - "object" - ] + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": {} + } }, "cancel_at_period_end": { "type": [ @@ -29,20 +32,23 @@ "canceled_at": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "contract_period_end": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "contract_period_start": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "contract_renewal_cycles": { "type": [ @@ -56,12 +62,6 @@ "string" ] }, - "created_at": { - "type": [ - "null", - "date-time" - ] - }, "customer": { "type": [ "null", @@ -75,30 +75,24 @@ ] }, "discounts": { + "type": [ + "null", + "array" + ], "items": { - "properties": {}, "type": [ "null", "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "id": { - "type": [ - "null", - "integer" - ] + ], + "properties": {} + } }, "metadata": { - "properties": {}, "type": [ "null", "object" - ] + ], + "properties": {} }, "mrr": { "type": [ @@ -109,14 +103,16 @@ "period_end": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "period_start": { "type": [ "null", - "date-time" - ] + "string" + ], + "format": "date-time" }, "plan": { "type": [ @@ -127,7 +123,7 @@ "quantity": { "type": [ "null", - "number" + "integer" ] }, "recurring_total": { @@ -136,52 +132,88 @@ "number" ] }, - "renewed_last": { + "start_date": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "taxes": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": {} + } + }, + "created_at": { "type": [ "null", - "date-time" + "string" + ], + "format": "date-time" + }, + "updated_at": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + + "amount": { + "type": [ + "null", + "string" ] }, - "renews_next": { + "bill_in": { "type": [ "null", - "date-time" + "string" ] }, - "start_date": { + "bill_in_advance_days": { "type": [ "null", - "date-time" + "integer" ] }, - "status": { + "paused": { + "type": [ + "null", + "boolean" + ] + }, + "url": { "type": [ "null", "string" ] }, - "taxes": { - "items": { - "properties": {}, - "type": [ - "null", - "object" - ] - }, + "object": { "type": [ "null", - "array" + "string" ] }, - "updated_at": { + "ship_to": { "type": [ "null", - "date-time" + "object" ] } - }, - "type": [ - "null", - "object" - ] -} \ No newline at end of file + } +}