From ecff7bde61c551d23988cfee0ea376d621690021 Mon Sep 17 00:00:00 2001 From: Keyna Rafael <95432445+keyn4@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:00:05 -0500 Subject: [PATCH] fix subscription and plans expand param (#3) --- tap_stripe/streams.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tap_stripe/streams.py b/tap_stripe/streams.py index b2a2844..444a093 100644 --- a/tap_stripe/streams.py +++ b/tap_stripe/streams.py @@ -240,11 +240,12 @@ class Subscriptions(stripeStream): def path(self): return "events" if self.get_from_events else "subscriptions" + @property def expand(self): if self.get_from_events: - return "discounts" + return ["discounts"] else: - return "data.discounts" + return ["data.discounts"] schema = th.PropertiesList( th.Property("id", th.StringType), @@ -362,11 +363,12 @@ class Plans(stripeStream): event_filter = "plan.*" object = "plan" + @property def expand(self): if self.get_from_events: - return "tiers" + return ["tiers"] else: - return "data.tiers" + return ["data.tiers"] @property def path(self):