Skip to content
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

Merged

Conversation

8eth
Copy link
Contributor

@8eth 8eth commented Jan 22, 2024

This change creates the GeneralLedgerAccount entity for the V2 client, the primary entity concerning the new (and upcoming) RevRec API features.

@8eth 8eth added the V2 V2 Client label Jan 22, 2024
@8eth 8eth force-pushed the add-general-ledger-accounts branch from 475b575 to ee661f9 Compare January 24, 2024 00:39
@8eth 8eth marked this pull request as ready for review January 25, 2024 22:02
Comment on lines 3396 to 3403
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')

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.

Copy link
Contributor Author

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 👍

@8eth 8eth force-pushed the add-general-ledger-accounts branch from e32e454 to 544b0eb Compare January 26, 2024 22:49
@faiberrec faiberrec merged commit 2c85d45 into add-revrec-features-to-python Jan 29, 2024
7 checks passed
@faiberrec faiberrec deleted the add-general-ledger-accounts branch January 29, 2024 17:01
recurly-integrations pushed a commit that referenced this pull request Mar 13, 2024
[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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants