2024-07-28 15:21:51 -07:00
|
|
|
from typing import Dict, Optional
|
2022-06-11 17:26:20 -07:00
|
|
|
|
2024-07-28 15:21:51 -07:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2022-06-11 17:26:20 -07:00
|
|
|
|
|
|
|
from ..models.currency import Currency
|
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class InvoiceLineItem(BaseModel):
|
|
|
|
"""An invoice line item."""
|
2022-06-11 17:26:20 -07:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
amount: float = 0.0
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
currency: Currency = "usd"
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
description: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
id: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
invoice_item: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
metadata: Dict[str, str] = {}
|
2024-01-06 18:32:21 -08:00
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|