Add payment method field
This commit is contained in:
parent
fee7b98bc5
commit
dfde6bb505
@ -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"]
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user