pay.collections.payable
¶
Module Contents¶
Classes¶
Provides a collection of all payable models. This collection is |
Attributes¶
- class pay.collections.payable.PayableCollection(session: sqlalchemy.orm.Session, cls: type[_P], page: int = 0)[source]¶
- class pay.collections.payable.PayableCollection(session: sqlalchemy.orm.Session, cls: Literal[*] = '*', page: int = 0)
Bases:
onegov.core.collection.Pagination
[_P
]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.
- query() QueryChain[_P] [source]¶
- __eq__(other: object) bool [source]¶
Returns True if the current and the other Pagination instance are equal. Used to find the current page in a list of pages.
- subset() QueryChain[_P] [source]¶
Returns an SQLAlchemy query containing all records that should be considered for pagination.