diff --git a/lago_python_client/models/billable_metric.py b/lago_python_client/models/billable_metric.py index 46bcbd3..fa64743 100644 --- a/lago_python_client/models/billable_metric.py +++ b/lago_python_client/models/billable_metric.py @@ -19,6 +19,8 @@ class BillableMetric(BaseModel): code: Optional[str] description: Optional[str] recurring: Optional[bool] + rounding_function: Optional[str] + rounding_precision: Optional[int] aggregation_type: Optional[str] weighted_interval: Optional[str] expression: Optional[str] @@ -32,6 +34,8 @@ class BillableMetricResponse(BaseResponseModel): code: str description: Optional[str] recurring: Optional[bool] + rounding_function: Optional[str] + rounding_precision: Optional[int] aggregation_type: Optional[str] weighted_interval: Optional[str] expression: Optional[str] diff --git a/tests/fixtures/billable_metric.json b/tests/fixtures/billable_metric.json index a7ab7c4..c37af8f 100644 --- a/tests/fixtures/billable_metric.json +++ b/tests/fixtures/billable_metric.json @@ -7,6 +7,8 @@ "aggregation_type": "sum_agg", "weighted_interval": null, "recurring": false, + "rounding_function": "round", + "rounding_precision": 2, "expression": "1 + 2", "field_name": "amount_sum", "created_at": "2022-04-29T08:59:51Z", diff --git a/tests/fixtures/billable_metric_index.json b/tests/fixtures/billable_metric_index.json index d17df3b..b9eb15f 100644 --- a/tests/fixtures/billable_metric_index.json +++ b/tests/fixtures/billable_metric_index.json @@ -8,6 +8,8 @@ "aggregation_type": "sum_agg", "weighted_interval": null, "recurring": false, + "rounding_function": "round", + "rounding_precision": 2, "expression": "1 + 2", "field_name": "amount_sum", "created_at": "2022-04-29T08:59:51Z", @@ -24,6 +26,8 @@ "aggregation_type": "sum_agg", "weighted_interval": null, "recurring": false, + "rounding_function": "round", + "rounding_precision": 2, "expression": "1 + 2", "field_name": "amount_sum", "created_at": "2022-04-30T08:59:51Z",