From ce290fbab5aeacf2ed2163ad1c55ee04e0b95eb4 Mon Sep 17 00:00:00 2001 From: Hassan Syyid Date: Thu, 23 May 2024 23:41:58 -0400 Subject: [PATCH] Fix issue with lines not paginating properly --- tap_stripe/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_stripe/client.py b/tap_stripe/client.py index 50aa68f..9b81524 100644 --- a/tap_stripe/client.py +++ b/tap_stripe/client.py @@ -209,8 +209,8 @@ def parse_response(self, response: requests.Response) -> Iterable[dict]: lines_response = decorated_request( self.prepare_request_lines(url, params), {} ) - next_page_token = self.get_next_page_token_lines(lines_response) response_obj = lines_response.json() + next_page_token = self.get_next_page_token_lines(response_obj) response_data = response_obj.get("data", []) lines.extend(response_data) record["lines"]["data"] = lines