Skip to content

Commit

Permalink
add division to primary keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiascadee committed Dec 13, 2023
1 parent ff9b69f commit 430c391
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tap_exact/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TransactionLinesStream(ExactSyncStream):

name = "transaction_lines"
path = "/sync/Financial/TransactionLines"
primary_keys: t.ClassVar[list[str]] = ["ID"]
primary_keys: t.ClassVar[list[str]] = ["ID", "Division"]
replication_key = "Timestamp"
schema = PropertiesList(
Property("Timestamp", IntegerType),
Expand Down Expand Up @@ -96,7 +96,7 @@ class GLAccountsStream(ExactSyncStream):

name = "gl_accounts"
path = "/sync/Financial/GLAccounts"
primary_keys: t.ClassVar[list[str]] = ["ID"]
primary_keys: t.ClassVar[list[str]] = ["ID", "Division"]
replication_key = "Timestamp"
schema = PropertiesList(
Property("Timestamp", IntegerType),
Expand Down Expand Up @@ -150,7 +150,7 @@ class GLClassificationsStream(ExactSyncStream):

name = "gl_classifications"
path = "/sync/Financial/GLClassifications"
primary_keys: t.ClassVar[list[str]] = ["ID"]
primary_keys: t.ClassVar[list[str]] = ["ID", "Division"]
replication_key = "Timestamp"
schema = PropertiesList(
Property("Timestamp", IntegerType),
Expand Down Expand Up @@ -182,7 +182,7 @@ class GLAccountClassificationMappingsStream(ExactStream):

name = "gl_account_classification_mappings"
path = "/Financial/GLAccountClassificationMappings"
primary_keys: t.ClassVar[list[str]] = ["ID"]
primary_keys: t.ClassVar[list[str]] = ["ID", "Division"]
schema = PropertiesList(
Property("ID", StringType),
Property("Classification", StringType),
Expand Down

0 comments on commit 430c391

Please sign in to comment.