From 82f7145a631cc678bcb710572ddf93f9f7ba924c Mon Sep 17 00:00:00 2001 From: a-rampalli Date: Fri, 12 May 2023 11:55:17 +0530 Subject: [PATCH 1/2] fix: adds api version in stripe request header --- .../connectors/source-stripe/source_stripe/streams.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py b/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py index 1bfc1906233bb..4f8f1a48ecd60 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py @@ -24,6 +24,7 @@ class StripeStream(HttpStream, ABC): url_base = "https://api.stripe.com/v1/" + api_version = "2022-08-01" primary_key = "id" DEFAULT_SLICE_RANGE = 365 NOW_TIMESTAMP = pendulum.now().int_timestamp @@ -60,7 +61,7 @@ def request_params( def request_headers(self, **kwargs) -> Mapping[str, Any]: if self.account_id: - return {"Stripe-Account": self.account_id} + return {"Stripe-Account": self.account_id, "Stripe-Version": self.api_version} return {} From 08c686f4c57eb5c1222b8f052d5b73639d1190b6 Mon Sep 17 00:00:00 2001 From: a-rampalli Date: Fri, 12 May 2023 14:29:22 +0530 Subject: [PATCH 2/2] chore: updates stripe api to latest version --- .../connectors/source-stripe/source_stripe/streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py b/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py index 4f8f1a48ecd60..3dbb966786525 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py @@ -24,7 +24,7 @@ class StripeStream(HttpStream, ABC): url_base = "https://api.stripe.com/v1/" - api_version = "2022-08-01" + api_version = "2022-11-15" primary_key = "id" DEFAULT_SLICE_RANGE = 365 NOW_TIMESTAMP = pendulum.now().int_timestamp