Skip to content

Commit

Permalink
feat: New stream account_balances (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Dec 17, 2024
1 parent 68ec501 commit c58b24d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tap_intacct/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,3 +640,14 @@ class TrialBalancesStream(_BaseBalancesStream):
name = "trial_balances"
intacct_obj_name = "trialbalance"
function_name = "get_trialbalance"


class AccountBalancesStream(_BaseBalancesStream):
"""Account balances.
https://developer.intacct.com/api/general-ledger/account-balances/#list-account-balances-legacy
"""

name = "account_balances"
intacct_obj_name = "accountbalance"
function_name = "get_accountbalances"
1 change: 1 addition & 0 deletions tap_intacct/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def discover_streams(self) -> list[streams.IntacctStream]:
# discovered_streams.append(audit_stream)

discovered_streams.append(streams.TrialBalancesStream(tap=self))
discovered_streams.append(streams.AccountBalancesStream(tap=self))

return discovered_streams

Expand Down

0 comments on commit c58b24d

Please sign in to comment.