From 71f8481bb2b94cb00e8ce58d7c5a918fafa87414 Mon Sep 17 00:00:00 2001 From: Davin Chia Date: Sun, 30 May 2021 16:46:48 +0800 Subject: [PATCH] Fix Stripe Schema. (#3744) * Fingerprint should be string instead of integer. * Invoice resource should also have a created field at the top level. * Bump stripe version. --- .../e094cb9a-26de-4645-8761-65c0c425d1de.json | 2 +- .../init/src/main/resources/seed/source_definitions.yaml | 2 +- airbyte-integrations/connectors/source-stripe/Dockerfile | 2 +- .../source-stripe/source_stripe/schemas/bank_accounts.json | 2 +- .../source-stripe/source_stripe/schemas/invoices.json | 7 +++++-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e094cb9a-26de-4645-8761-65c0c425d1de.json b/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e094cb9a-26de-4645-8761-65c0c425d1de.json index c6dae810f8ac..7675b75378ba 100644 --- a/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e094cb9a-26de-4645-8761-65c0c425d1de.json +++ b/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e094cb9a-26de-4645-8761-65c0c425d1de.json @@ -2,7 +2,7 @@ "sourceDefinitionId": "e094cb9a-26de-4645-8761-65c0c425d1de", "name": "Stripe", "dockerRepository": "airbyte/source-stripe", - "dockerImageTag": "0.1.10", + "dockerImageTag": "0.1.11", "documentationUrl": "https://hub.docker.com/r/airbyte/source-stripe", "icon": "stripe.svg" } diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index 53492858d49f..991b4199e03e 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -78,7 +78,7 @@ - sourceDefinitionId: e094cb9a-26de-4645-8761-65c0c425d1de name: Stripe dockerRepository: airbyte/source-stripe - dockerImageTag: 0.1.10 + dockerImageTag: 0.1.11 documentationUrl: https://hub.docker.com/r/airbyte/source-stripe icon: stripe.svg - sourceDefinitionId: b03a9f3e-22a5-11eb-adc1-0242ac120002 diff --git a/airbyte-integrations/connectors/source-stripe/Dockerfile b/airbyte-integrations/connectors/source-stripe/Dockerfile index 3c9cd081a37a..6b662415f421 100644 --- a/airbyte-integrations/connectors/source-stripe/Dockerfile +++ b/airbyte-integrations/connectors/source-stripe/Dockerfile @@ -11,5 +11,5 @@ RUN pip install . ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.1.10 +LABEL io.airbyte.version=0.1.11 LABEL io.airbyte.name=airbyte/source-stripe diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/bank_accounts.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/bank_accounts.json index 17ba003aefd8..8f44bb792566 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/bank_accounts.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/bank_accounts.json @@ -26,7 +26,7 @@ "type": ["null", "string"] }, "fingerprint": { - "type": ["null", "integer"] + "type": ["null", "string"] }, "last4": { "type": ["null", "string"] diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoices.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoices.json index bb181afd2d05..f90d7f0913b7 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoices.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoices.json @@ -4,6 +4,9 @@ "date": { "type": ["null", "integer"] }, + "created": { + "type": ["null", "integer"] + }, "next_payment_attempt": { "type": ["null", "string"], "format": "date-time" @@ -69,7 +72,7 @@ "paid": { "type": ["null", "boolean"] }, - "discount": { + "discounts": { "type": ["null", "object"], "properties": { "end": { @@ -127,7 +130,7 @@ "type": ["null", "number"] }, "created": { - "type": ["null", "number"] + "type": ["null", "integer"] } } },