Add payment method field

This commit is contained in:
norohind 2025-04-11 17:23:14 +00:00
parent fee7b98bc5
commit dfde6bb505
Signed by: norohind
SSH Key Fingerprint: SHA256:SnI4bWnejM2/YEQ5hpH58TUohiQpnjoKN6tXUQlobE0
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "taxgovme"
version = "0.0.1"
version = "0.1.1"
description = "A toolset to parse invoices from mapr.tax.gov.me"
requires-python = ">=3.10"
dependencies = ["requests", "pydantic"]

View File

@ -35,6 +35,7 @@ class Invoice(BaseModel):
total_price: Decimal = Field(alias='totalPrice')
timestamp: datetime.datetime = Field(alias='dateTimeCreated')
seller_name: str | None = Field(validation_alias=AliasPath('seller', 'name'))
payment_method: list[dict] = Field(alias='paymentMethod')
items: list[Item]
@computed_field(return_type=Decimal)