WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

add Transaction.balance_entry #87

@matin

Description

@matin

Applies to all transaction resources like CardTransaction

Rough version of the code:

class Transaction:
    @property
    def balance_entries(self) -> Generator[BalanceEntry, None, None]:
        return BalanceEntry.all(related_transaction_uri=f'/{self._resource}/{self.id}')

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions