paddle-python-sdk 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ from paddle_billing.ResponseParser import ResponseParser
2
+
3
+ from paddle_billing.Entities.IPAddresses import IPAddresses
4
+
5
+ from typing import TYPE_CHECKING
6
+
7
+ if TYPE_CHECKING:
8
+ from paddle_billing.Client import Client
9
+
10
+
11
+ class IPAddressesClient:
12
+ def __init__(self, client: "Client"):
13
+ self.client = client
14
+ self.response = None
15
+
16
+ def get_ip_addresses(self) -> IPAddresses:
17
+ self.response = self.client.get_raw("/ips")
18
+ parser = ResponseParser(self.response)
19
+
20
+ return IPAddresses.from_dict(parser.get_data())
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: paddle-python-sdk
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Paddle's Python SDK for Paddle Billing
5
5
  Home-page: https://developer.paddle.com/api-reference/overview
6
6
  Author: Paddle and contributors
@@ -399,6 +399,8 @@ paddle_billing/Resources/Events/EventsClient.py,sha256=yX3gbcGIg_OG2At0RodwWDeBV
399
399
  paddle_billing/Resources/Events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
400
400
  paddle_billing/Resources/Events/Operations/ListEvents.py,sha256=BNsj9KdAr686OkvYHs3Z2WZNXKXrGKqkvyGonbwSvtM,335
401
401
  paddle_billing/Resources/Events/Operations/__init__.py,sha256=Nfec716BOJ20W54RBd3DGLB0tzhjrCHY2t_Ym_LcO58,77
402
+ paddle_billing/Resources/IPAddresses/IPAddressesClient.py,sha256=DgtD578xAJjuAA1BO1PZzRTgMXJJayY4PfNnL-gnl_M,547
403
+ paddle_billing/Resources/IPAddresses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
402
404
  paddle_billing/Resources/NotificationLogs/NotificationLogsClient.py,sha256=nQcUkwNq4Z6GDnH6vRadpPnmbjseUCuYIP_aH8-a2f0,978
403
405
  paddle_billing/Resources/NotificationLogs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
404
406
  paddle_billing/Resources/NotificationLogs/Operations/ListNotificationLogs.py,sha256=_otOrgC5jcK8VgmfHX6JDSmqvolw8_BZmvc0l4FoPlA,337
@@ -551,8 +553,8 @@ tests/Utils/ReadsFixture.py,sha256=M3Ot3xHXp_C7vwttna9deLPHBAO8ml2Jb4thhHOJJ38,1
551
553
  tests/Utils/TestClient.py,sha256=-wc7hJMuR6WC-ukw0c7I59b5-8hj_-nzq__-2M81elg,1453
552
554
  tests/Utils/TestLogger.py,sha256=pFO9x711buRmg-8DAqpzIJP_hr21JPty1_ZQRcwoGKk,554
553
555
  tests/Utils/__init__.py,sha256=JtqJNPKqbNZ9exlpXlF3yj_9cfylPGlvopjQYi7yYTA,37
554
- paddle_python_sdk-0.3.0.dist-info/LICENSE,sha256=e5Sn9mzCdpjnqCLxXpGHNKdYB6JlRSTLhN_CD4WSO6w,10770
555
- paddle_python_sdk-0.3.0.dist-info/METADATA,sha256=qQVihH2sa4UrRBh0E-d3Oqe-MXKSa_X4veSt3k2CvPI,7392
556
- paddle_python_sdk-0.3.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
557
- paddle_python_sdk-0.3.0.dist-info/top_level.txt,sha256=9a07VPng7o5wK8VAXkl6NC30xrNbW9zff_02jHyHi4c,30
558
- paddle_python_sdk-0.3.0.dist-info/RECORD,,
556
+ paddle_python_sdk-0.3.1.dist-info/LICENSE,sha256=e5Sn9mzCdpjnqCLxXpGHNKdYB6JlRSTLhN_CD4WSO6w,10770
557
+ paddle_python_sdk-0.3.1.dist-info/METADATA,sha256=v9DnoXPlhE0CFUGwVPHFpQfOz2ENzsS-iU6GNJ8hMnc,7392
558
+ paddle_python_sdk-0.3.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
559
+ paddle_python_sdk-0.3.1.dist-info/top_level.txt,sha256=9a07VPng7o5wK8VAXkl6NC30xrNbW9zff_02jHyHi4c,30
560
+ paddle_python_sdk-0.3.1.dist-info/RECORD,,