From 4aef72a6aa314d679e5d4b6ffa08afb7fd92c65c Mon Sep 17 00:00:00 2001 From: Vinicius Mesel Date: Wed, 17 Jan 2024 18:45:47 -0300 Subject: [PATCH] Adds Stripe-Account header (#10) --- tap_stripe/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tap_stripe/client.py b/tap_stripe/client.py index de8ad36..e0fbd15 100644 --- a/tap_stripe/client.py +++ b/tap_stripe/client.py @@ -55,6 +55,8 @@ def http_headers(self) -> dict: """Return headers dict to be used for HTTP requests.""" result = self._http_headers result["Stripe-Version"] = "2022-11-15" + if self.config.get("account_id"): + result["Stripe-Account"] = self.config.get("account_id") return result def get_next_page_token(