Skip to content

Commit

Permalink
feat(tap-suiteql): Create new stream SubscriptionLineRevision
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos314 committed Aug 2, 2023
1 parent 33da92b commit a7ccb8d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ We extract the following entities with its respective method
* Charge -> dynamically
* CustomRecordGpyChangeOrderClassific -> dynamically
* BillingAccount -> dynamically
* SubscriptionLineRevision -> static

### SDK Dev Guide

Expand Down
27 changes: 27 additions & 0 deletions tap_suiteql/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,30 @@ class BillingAccountStream(suiteqlStream):
primary_keys = ["id"]
skip_attributes = ["links"]
replication_key = "lastmodifieddate"


class SubscriptionLineRevisionStream(suiteqlStream):
name = "SubscriptionLineRevision"
path = "/query/v1/suiteql"
primary_keys = ["id"]
schema = th.PropertiesList(
th.Property("id", th.StringType),
th.Property("appliedtochangeorder", th.StringType),
th.Property("changeorder", th.StringType),
th.Property("changeordereffectivedate", th.StringType),
th.Property("createdby", th.StringType),
th.Property("createdfromvoid", th.StringType),
th.Property("datecreated", th.DateTimeType),
th.Property("dateend", th.DateTimeType),
th.Property("deltaamount", th.StringType),
th.Property("deltaquantity", th.StringType),
th.Property("lastmodifieddate", th.DateTimeType),
th.Property("priceplan", th.StringType),
th.Property("quantity", th.StringType),
th.Property("recurringamount", th.StringType),
th.Property("subscription", th.StringType),
th.Property("subscriptionline", th.StringType),
th.Property("subscriptionrevision", th.StringType),
th.Property("subsidiary", th.StringType),
th.Property("totalcontractvalue", th.StringType),
).to_dict()
2 changes: 2 additions & 0 deletions tap_suiteql/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
SubscriptionPlanStream,
SubscriptionPriceIntervalStream,
SubscriptionStream,
SubscriptionLineRevisionStream,
)

STREAM_TYPES = {
Expand All @@ -46,6 +47,7 @@
"Item": ItemStream,
"MonthlyRecurringRevenue": MonthlyRecurringRevenueStream,
"BillingAccount": BillingAccountStream,
"SubscriptionLineRevision": SubscriptionLineRevisionStream,
}


Expand Down

0 comments on commit a7ccb8d

Please sign in to comment.