Skip to content

Commit 853ccb3

Browse files
authored
feat(billing): add consumer_id to v2beta1.ListConsumptions (#1335)
1 parent b313ef7 commit 853ccb3

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

scaleway-async/scaleway_async/billing/v2beta1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ def unmarshal_ListConsumptionsResponseConsumption(
326326
else:
327327
args["billed_quantity"] = None
328328

329+
field = data.get("consumer_id", None)
330+
if field is not None:
331+
args["consumer_id"] = field
332+
else:
333+
args["consumer_id"] = None
334+
329335
field = data.get("value", None)
330336
if field is not None:
331337
args["value"] = unmarshal_Money(field)

scaleway-async/scaleway_async/billing/v2beta1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ class ListConsumptionsResponseConsumption:
196196
Consumed quantity.
197197
"""
198198

199+
consumer_id: str
200+
"""
201+
Organization ID of the consumer for this consumption.
202+
"""
203+
199204
value: Optional[Money] = None
200205
"""
201206
Monetary value of the consumption.

scaleway/scaleway/billing/v2beta1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ def unmarshal_ListConsumptionsResponseConsumption(
326326
else:
327327
args["billed_quantity"] = None
328328

329+
field = data.get("consumer_id", None)
330+
if field is not None:
331+
args["consumer_id"] = field
332+
else:
333+
args["consumer_id"] = None
334+
329335
field = data.get("value", None)
330336
if field is not None:
331337
args["value"] = unmarshal_Money(field)

scaleway/scaleway/billing/v2beta1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ class ListConsumptionsResponseConsumption:
196196
Consumed quantity.
197197
"""
198198

199+
consumer_id: str
200+
"""
201+
Organization ID of the consumer for this consumption.
202+
"""
203+
199204
value: Optional[Money] = None
200205
"""
201206
Monetary value of the consumption.

0 commit comments

Comments
 (0)