You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Total quantity in decimal format, returned as string to preserve precision. NOTE: This field will be removed in future versions and `totalQuantity` will become a decimal. ",
Copy file name to clipboardExpand all lines: services/cost/src/stackit/cost/models/report_data.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@
23
23
Field,
24
24
StrictFloat,
25
25
StrictInt,
26
+
StrictStr,
26
27
)
27
28
frompydantic_coreimportto_jsonable_python
28
29
fromtyping_extensionsimportSelf
@@ -38,8 +39,12 @@ class ReportData(BaseModel):
38
39
charge: Union[StrictFloat, StrictInt] =Field(description="Charge, value in cents")
39
40
discount: Union[StrictFloat, StrictInt] =Field(description="Discount, value in cents")
40
41
quantity: StrictInt=Field(description="Quantity")
42
+
quantity_decimal: StrictStr=Field(
43
+
description="Quantity in decimal format, returned as string to preserve precision. NOTE: This field will be removed in future versions and `totalQuantity` will become a decimal. ",
0 commit comments