Skip to content

Commit

Permalink
fix: adds api version in stripe request header
Browse files Browse the repository at this point in the history
  • Loading branch information
a-rampalli committed May 12, 2023
1 parent ff33d57 commit 82f7145
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {}

Expand Down

0 comments on commit 82f7145

Please sign in to comment.