Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions robosystems_client/models/analytical_statement_fact_row.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class AnalyticalStatementFactRow:
name (str):
canonical_concept (None | str | Unset):
value (float | None | Unset):
unit (None | str | Unset): The fact's unit, e.g. `USD` or `USD/shares`. A line a filer reports in two units (its
own currency and a US-dollar translation) comes back once per unit.
start_date (None | str | Unset):
end_date (None | str | Unset):
period_type (None | str | Unset):
Expand All @@ -30,6 +32,7 @@ class AnalyticalStatementFactRow:
name: str
canonical_concept: None | str | Unset = UNSET
value: float | None | Unset = UNSET
unit: None | str | Unset = UNSET
start_date: None | str | Unset = UNSET
end_date: None | str | Unset = UNSET
period_type: None | str | Unset = UNSET
Expand All @@ -53,6 +56,12 @@ def to_dict(self) -> dict[str, Any]:
else:
value = self.value

unit: None | str | Unset
if isinstance(self.unit, Unset):
unit = UNSET
else:
unit = self.unit

start_date: None | str | Unset
if isinstance(self.start_date, Unset):
start_date = UNSET
Expand Down Expand Up @@ -89,6 +98,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["canonical_concept"] = canonical_concept
if value is not UNSET:
field_dict["value"] = value
if unit is not UNSET:
field_dict["unit"] = unit
if start_date is not UNSET:
field_dict["start_date"] = start_date
if end_date is not UNSET:
Expand Down Expand Up @@ -125,6 +136,15 @@ def _parse_value(data: object) -> float | None | Unset:

value = _parse_value(d.pop("value", UNSET))

def _parse_unit(data: object) -> None | str | Unset:
if data is None:
return data
if isinstance(data, Unset):
return data
return cast(None | str | Unset, data)

unit = _parse_unit(d.pop("unit", UNSET))

def _parse_start_date(data: object) -> None | str | Unset:
if data is None:
return data
Expand Down Expand Up @@ -166,6 +186,7 @@ def _parse_duration_type(data: object) -> None | str | Unset:
name=name,
canonical_concept=canonical_concept,
value=value,
unit=unit,
start_date=start_date,
end_date=end_date,
period_type=period_type,
Expand Down
3 changes: 2 additions & 1 deletion robosystems_client/models/create_view_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class CreateViewRequest:
fiscal_period (None | str | Unset): Filter by fiscal period (e.g., 'FY', 'Q1', 'Q2', 'Q3'). Shared repositories
only.
period_type (None | str | Unset): Filter by period type: 'annual', 'quarterly', or 'instant'
include_summary (bool | Unset): Include summary statistics per element Default: False.
include_summary (bool | Unset): Include summary statistics per element. An element reported in more than one
unit has none. Default: False.
limit (int | Unset): Maximum facts to return. Applied after deduplication and sorting, so truncation keeps the
most recent periods. Check `metadata.truncated` to see whether more facts matched. Default: 250.
view_config (ViewConfig | Unset):
Expand Down
Loading