From 85deee8b2f0b50ff25195442da3fc021b88ebb89 Mon Sep 17 00:00:00 2001 From: Rostyslav Bohomaz Date: Fri, 8 Mar 2024 12:48:13 +0200 Subject: [PATCH] fix!: set `end_date` field in `Report` model optional --- liqpy/models/report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liqpy/models/report.py b/liqpy/models/report.py index e962394..05335fb 100644 --- a/liqpy/models/report.py +++ b/liqpy/models/report.py @@ -18,7 +18,7 @@ class Field(Enum): COMISSION_CREDIT = member(lambda x: Decimal(x) if x else None) CURRENCY_CREDIT = member(lambda x: Currency(x) if x else None) CREATE_DATE = member(lambda x: to_datetime(x)) - END_DATE = member(lambda x: to_datetime(x)) + END_DATE = member(lambda x: to_datetime(x) if x else None) TYPE = member(lambda x: Type(x)) STATUS = member(lambda x: Status(x)) STATUS_ERR_CODE = member(lambda x: Code(x) if x else None) @@ -216,7 +216,7 @@ class Report: agent_commission: Decimal create_date: datetime - end_date: datetime + end_date: datetime | None = None type: Type