-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for General Ledger Accounts #667
Adding support for General Ledger Accounts #667
Conversation
475b575
to
ee661f9
Compare
tests/test_resources.py
Outdated
def test_list_general_ledger_accounts(self): | ||
with self.mock_request('general_ledger_accounts/list.xml'): | ||
general_ledger_accounts = GeneralLedgerAccount.all()[0] | ||
|
||
self.assertEqual(general_ledger_accounts.id, 'u90r5deeaxix') | ||
self.assertEqual(general_ledger_accounts.code, 'code1') | ||
self.assertEqual(general_ledger_accounts.account_type, 'revenue') | ||
self.assertEqual(general_ledger_accounts.description, 'Some Description') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for an index endpoint, we want to test if we got many objects in return, also would be nice to have a test using the filter by account_type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated test to check for count instead 👍
e32e454
to
544b0eb
Compare
[Full Changelog](2.10.10...2.10.11) **Merged Pull Requests** - Adding RevRec Support for Purchases [#680](#680) ([8eth](https://github.com/8eth)) - Adding RevRec Support for Add Ons [#679](#679) ([8eth](https://github.com/8eth)) - Adding RevRec Support for Gift Cards and Items [#676](#676) ([8eth](https://github.com/8eth)) - Adding RevRec Support for Shipping Methods [#675](#675) ([8eth](https://github.com/8eth)) - Adding RevRec Support for Plans [#673](#673) ([8eth](https://github.com/8eth)) - Adding RevRec Support for Business Entities [#672](#672) ([8eth](https://github.com/8eth)) - Adding support for Performance Obligations [#671](#671) ([8eth](https://github.com/8eth)) - [DO NOT MERGE] Add RevRec Features to Python [#670](#670) ([8eth](https://github.com/8eth)) - Adding support for General Ledger Accounts [#667](#667) ([8eth](https://github.com/8eth))
This change creates the
GeneralLedgerAccount
entity for the V2 client, the primary entity concerning the new (and upcoming) RevRec API features.