Coverage for polar/currency/schemas.py: 0%

5 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-12-05 17:15 +0000

1from pydantic import Field 

2 

3from polar.kit.schemas import Schema 

4 

5 

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 )