diff --git a/robosystems_client/models/analytical_statement_fact_row.py b/robosystems_client/models/analytical_statement_fact_row.py index 3214c04..26e4f49 100644 --- a/robosystems_client/models/analytical_statement_fact_row.py +++ b/robosystems_client/models/analytical_statement_fact_row.py @@ -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): @@ -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 @@ -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 @@ -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: @@ -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 @@ -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, diff --git a/robosystems_client/models/create_view_request.py b/robosystems_client/models/create_view_request.py index 112ef2b..ce69305 100644 --- a/robosystems_client/models/create_view_request.py +++ b/robosystems_client/models/create_view_request.py @@ -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):