Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scaleway-async/scaleway_async/billing/v2beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,24 @@ def unmarshal_Charge(data: Any) -> Charge:
else:
args["organization_id"] = None

field = data.get("organization_name", None)
if field is not None:
args["organization_name"] = field
else:
args["organization_name"] = None

field = data.get("project_id", None)
if field is not None:
args["project_id"] = field
else:
args["project_id"] = None

field = data.get("project_name", None)
if field is not None:
args["project_name"] = field
else:
args["project_name"] = None

field = data.get("sku", None)
if field is not None:
args["sku"] = field
Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/billing/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,21 @@ class Charge:
ID of the charged organization.
"""

organization_name: str
"""
Name of the charged organization.
"""

project_id: str
"""
ID of the charged project.
"""

project_name: str
"""
Name of the charged project.
"""

sku: str
"""
ID of the SKU the charge is priced with.
Expand Down
12 changes: 12 additions & 0 deletions scaleway/scaleway/billing/v2beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,24 @@ def unmarshal_Charge(data: Any) -> Charge:
else:
args["organization_id"] = None

field = data.get("organization_name", None)
if field is not None:
args["organization_name"] = field
else:
args["organization_name"] = None

field = data.get("project_id", None)
if field is not None:
args["project_id"] = field
else:
args["project_id"] = None

field = data.get("project_name", None)
if field is not None:
args["project_name"] = field
else:
args["project_name"] = None

field = data.get("sku", None)
if field is not None:
args["sku"] = field
Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/billing/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,21 @@ class Charge:
ID of the charged organization.
"""

organization_name: str
"""
Name of the charged organization.
"""

project_id: str
"""
ID of the charged project.
"""

project_name: str
"""
Name of the charged project.
"""

sku: str
"""
ID of the SKU the charge is priced with.
Expand Down
Loading