Coverage for polar/payout/sorting.py: 100%
12 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 12:42 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 12:42 +0000
1from enum import StrEnum
2from typing import Annotated
4from fastapi import Depends
6from polar.kit.sorting import Sorting, SortingGetter
9class PayoutSortProperty(StrEnum):
10 created_at = "created_at"
11 amount = "amount"
12 fees_amount = "fees_amount"
13 status = "status"
14 paid_at = "paid_at"
15 account_id = "account_id"
18ListSorting = Annotated[
19 list[Sorting[PayoutSortProperty]],
20 Depends(SortingGetter(PayoutSortProperty, ["-created_at"])),
21]