Skip to content

Commit

Permalink
fix logic in parse_response (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Jul 17, 2024
1 parent ff37f8d commit b14866c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_stripe/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def parse_response(self, response: requests.Response) -> Iterable[dict]:
if self.name == "plans":
url = base_url + f"/v1/prices/{record_id}"
# discounts is a synthetic stream, it uses data from invoices
if self.name == "discounts":
elif self.name == "discounts":
url = base_url + f"/v1/invoices/{record_id}"
else:
url = base_url + f"/v1/{self.name}/{record['id']}"
Expand Down

0 comments on commit b14866c

Please sign in to comment.