diff --git a/README.md b/README.md index 9103568..a6569cd 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ We extract the following entities with its respective method * MonthlyRecurringRevenue -> static * Charge -> dynamically * CustomRecordGpyChangeOrderClassific -> dynamically +* BilligAccount -> dynamically ### SDK Dev Guide diff --git a/tap_suiteql/streams.py b/tap_suiteql/streams.py index 3b2c9dc..3f97268 100644 --- a/tap_suiteql/streams.py +++ b/tap_suiteql/streams.py @@ -67,6 +67,9 @@ class SubscriptionPriceIntervalStream(suiteqlStream): th.Property("startoffsetvalue", th.StringType), th.Property("status", th.StringType), th.Property("subscription", th.StringType), + th.Property("discount", th.StringType), + th.Property("discountamount", th.StringType), + th.Property("discountpercent", th.StringType), ).to_dict() @@ -293,3 +296,12 @@ class CustomRecordGpyChangeOrderClassificStream(suiteqlStream): primary_keys = ["id"] skip_attributes = ["links"] replication_key = "lastmodified" + + +class BilligAccountStream(suiteqlStream): + name = "billingaccount" + path = "/query/v1/suiteql" + metadata_path = "/record/v1/metadata-catalog/billingaccount" + primary_keys = ["id"] + skip_attributes = ["links"] + replication_key = "lastmodifieddate" diff --git a/tap_suiteql/tap.py b/tap_suiteql/tap.py index 1245b99..caa1a9b 100644 --- a/tap_suiteql/tap.py +++ b/tap_suiteql/tap.py @@ -9,6 +9,7 @@ from tap_suiteql.query_builder import QueryBuilder # JSON schema typing helpers from tap_suiteql.schema_builder import SchemaBuilder from tap_suiteql.streams import ( + BilligAccountStream, ChangeOrderLineStream, ChargeStream, CustomerPaymentStream, @@ -44,6 +45,7 @@ "SubscriptionChangeOrder": SubscriptionChangeOrderStream, "Item": ItemStream, "MonthlyRecurringRevenue": MonthlyRecurringRevenueStream, + "BilligAccount": BilligAccountStream, }