diff --git a/tap_intacct/streams.py b/tap_intacct/streams.py index 5b435b7..7df004d 100644 --- a/tap_intacct/streams.py +++ b/tap_intacct/streams.py @@ -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" diff --git a/tap_intacct/tap.py b/tap_intacct/tap.py index 00c816e..b1c4ae8 100644 --- a/tap_intacct/tap.py +++ b/tap_intacct/tap.py @@ -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