Skip to content

Commit

Permalink
add currencies exchange rates stream (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Jan 22, 2024
1 parent b146be6 commit 5f21b35
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
21 changes: 21 additions & 0 deletions tap_hubspot_beta/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,3 +1410,24 @@ class AssociationQuotesDealsStream(AssociationDealsStream):

name = "associations_quotes_deals"
path = "crm/v4/associations/deals/quotes/batch/read"


class CurrenciesStream(hubspotV3SearchStream):
"""Owners Stream"""

rest_method = "GET"
name = "currencies_exchange_rate"
path = "settings/v3/currencies/exchange-rates"
primary_keys = ["id"]
replication_key_filter = "updatedAt"

schema = th.PropertiesList(
th.Property("createdAt", th.DateTimeType),
th.Property("toCurrencyCode", th.StringType),
th.Property("visibleInUI", th.BooleanType),
th.Property("effectiveAt", th.DateTimeType),
th.Property("id", th.StringType),
th.Property("conversionRate", th.NumberType),
th.Property("fromCurrencyCode", th.StringType),
th.Property("updatedAt", th.DateTimeType),
).to_dict()
6 changes: 4 additions & 2 deletions tap_hubspot_beta/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
ListSearchV3Stream,
ArchivedCompaniesStream,
ArchivedDealsStream,
DealsAssociationParent
DealsAssociationParent,
CurrenciesStream
)

STREAM_TYPES = [
Expand Down Expand Up @@ -90,7 +91,8 @@
ListSearchV3Stream,
ArchivedCompaniesStream,
ArchivedDealsStream,
DealsAssociationParent
DealsAssociationParent,
CurrenciesStream
]


Expand Down

0 comments on commit 5f21b35

Please sign in to comment.