Skip to content

Commit

Permalink
fix: Fix org_id parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Dec 9, 2024
1 parent 6b1b76a commit a2338e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/squonk2/as_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def get_organisation_charges(
cls,
access_token: str,
*,
organisation_id: str,
org_id: str,
from_: Optional[date] = None,
until: Optional[date] = None,
pbp: Optional[int] = None,
Expand All @@ -662,14 +662,14 @@ def get_organisation_charges(
You will need admin rights on the Account Server to use this method.
:param access_token: A valid AS API access token
:param organisation_id: The UUID of the Organisation
:param org_id: The UUID of the Organisation
:param from_: An optional date where charges are to start (inclusive)
:param until: An optional date where charges are to end (exclusive)
:param pbp: An optional prior billing period
:param timeout_s: The underlying request timeout
"""
assert access_token
assert organisation_id
assert org_id

params: Dict[str, Any] = {}
if from_:
Expand All @@ -681,7 +681,7 @@ def get_organisation_charges(

return AsApi.__request(
"GET",
f"/charges/organisation/{organisation_id}",
f"/charges/organisation/{org_id}",
access_token=access_token,
params=params,
error_message="Failed getting product",
Expand Down

0 comments on commit a2338e8

Please sign in to comment.