Skip to content

add Transaction.balance_entry #87

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}')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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