pay.collections.payable
Classes
Provides a collection of all payable models. This collection is |
Module Contents
- class pay.collections.payable.PayableCollection[PayableT: sqlalchemy.orm.DeclarativeBase](session: sqlalchemy.orm.Session, cls: type[PayableT], page: int = 0)[source]
- class pay.collections.payable.PayableCollection(session: sqlalchemy.orm.Session, cls: Literal['*'] = '*', page: int = 0)
Bases:
onegov.core.collection.Pagination[PayableT]Provides a collection of all payable models. This collection is meant to be read-only, so there’s no add/delete methods.
To add payments to payable models just use the payment property and directly assign a new or an existing payment.