Skip to content

Commit 8f34866

Browse files
committed
chore: regenerate the models for statement-row units
1 parent c275ef0 commit 8f34866

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

‎robosystems_client/models/analytical_statement_fact_row.py‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class AnalyticalStatementFactRow:
2020
name (str):
2121
canonical_concept (None | str | Unset):
2222
value (float | None | Unset):
23+
unit (None | str | Unset): The fact's unit, e.g. `USD` or `USD/shares`. A line a filer reports in two units (its
24+
own currency and a US-dollar translation) comes back once per unit.
2325
start_date (None | str | Unset):
2426
end_date (None | str | Unset):
2527
period_type (None | str | Unset):
@@ -30,6 +32,7 @@ class AnalyticalStatementFactRow:
3032
name: str
3133
canonical_concept: None | str | Unset = UNSET
3234
value: float | None | Unset = UNSET
35+
unit: None | str | Unset = UNSET
3336
start_date: None | str | Unset = UNSET
3437
end_date: None | str | Unset = UNSET
3538
period_type: None | str | Unset = UNSET
@@ -53,6 +56,12 @@ def to_dict(self) -> dict[str, Any]:
5356
else:
5457
value = self.value
5558

59+
unit: None | str | Unset
60+
if isinstance(self.unit, Unset):
61+
unit = UNSET
62+
else:
63+
unit = self.unit
64+
5665
start_date: None | str | Unset
5766
if isinstance(self.start_date, Unset):
5867
start_date = UNSET
@@ -89,6 +98,8 @@ def to_dict(self) -> dict[str, Any]:
8998
field_dict["canonical_concept"] = canonical_concept
9099
if value is not UNSET:
91100
field_dict["value"] = value
101+
if unit is not UNSET:
102+
field_dict["unit"] = unit
92103
if start_date is not UNSET:
93104
field_dict["start_date"] = start_date
94105
if end_date is not UNSET:
@@ -125,6 +136,15 @@ def _parse_value(data: object) -> float | None | Unset:
125136

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

139+
def _parse_unit(data: object) -> None | str | Unset:
140+
if data is None:
141+
return data
142+
if isinstance(data, Unset):
143+
return data
144+
return cast(None | str | Unset, data)
145+
146+
unit = _parse_unit(d.pop("unit", UNSET))
147+
128148
def _parse_start_date(data: object) -> None | str | Unset:
129149
if data is None:
130150
return data
@@ -166,6 +186,7 @@ def _parse_duration_type(data: object) -> None | str | Unset:
166186
name=name,
167187
canonical_concept=canonical_concept,
168188
value=value,
189+
unit=unit,
169190
start_date=start_date,
170191
end_date=end_date,
171192
period_type=period_type,

‎robosystems_client/models/create_view_request.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class CreateViewRequest:
3030
fiscal_period (None | str | Unset): Filter by fiscal period (e.g., 'FY', 'Q1', 'Q2', 'Q3'). Shared repositories
3131
only.
3232
period_type (None | str | Unset): Filter by period type: 'annual', 'quarterly', or 'instant'
33-
include_summary (bool | Unset): Include summary statistics per element Default: False.
33+
include_summary (bool | Unset): Include summary statistics per element. An element reported in more than one
34+
unit has none. Default: False.
3435
limit (int | Unset): Maximum facts to return. Applied after deduplication and sorting, so truncation keeps the
3536
most recent periods. Check `metadata.truncated` to see whether more facts matched. Default: 250.
3637
view_config (ViewConfig | Unset):

0 commit comments

Comments
 (0)