Skip to content

Commit

Permalink
feat: Add simulation types client
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgrayston-paddle committed Dec 20, 2024
1 parent 0ccff21 commit 4130df3
Show file tree
Hide file tree
Showing 5 changed files with 594 additions and 1 deletion.
2 changes: 2 additions & 0 deletions paddle_billing/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from paddle_billing.Resources.Simulations.SimulationsClient import SimulationsClient
from paddle_billing.Resources.SimulationRuns.SimulationRunsClient import SimulationRunsClient
from paddle_billing.Resources.SimulationRunEvents.SimulationRunEventsClient import SimulationRunEventsClient
from paddle_billing.Resources.SimulationTypes.SimulationTypesClient import SimulationTypesClient
from paddle_billing.Resources.Subscriptions.SubscriptionsClient import SubscriptionsClient
from paddle_billing.Resources.Transactions.TransactionsClient import TransactionsClient

Expand Down Expand Up @@ -84,6 +85,7 @@ def __init__(
self.simulations = SimulationsClient(self)
self.simulation_runs = SimulationRunsClient(self)
self.simulation_run_events = SimulationRunEventsClient(self)
self.simulation_types = SimulationTypesClient(self)
self.subscriptions = SubscriptionsClient(self)
self.transactions = TransactionsClient(self)
self.ip_addresses = IPAddressesClient(self)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, client: "Client"):
self.response = None

def list(self) -> SimulationTypeCollection:
self.response = self.client.get_raw("/simulations-types")
self.response = self.client.get_raw("/simulation-types")
parser = ResponseParser(self.response)

return SimulationTypeCollection.from_list(parser.get_data())
Empty file.
Loading

0 comments on commit 4130df3

Please sign in to comment.