Coverage for polar/currency/schemas.py: 0%
5 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 15:52 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 15:52 +0000
1from pydantic import Field
3from polar.kit.schemas import Schema
6# Public API
7class CurrencyAmount(Schema):
8 currency: str = Field(description="Three letter currency code (eg: USD)")
9 amount: int = Field(
10 description="Amount in the currencies smallest unit (cents if currency is USD)"
11 )