Skip to content

Commit 3b27446

Browse files
committed
Add leases and domains to contiguity class
1 parent 7312269 commit 3b27446

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/contiguity/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from ._client import ApiClient
2+
from .domains import Domains
23
from .email import Email
34
from .imessage import IMessage
5+
from .leases import Leases
46
from .otp import OTP
57
from .text import Text
68
from .whatsapp import WhatsApp
@@ -32,13 +34,17 @@ def __init__(
3234
self.otp = OTP(client=self.client)
3335
self.imessage = IMessage(client=self.client)
3436
self.whatsapp = WhatsApp(client=self.client)
37+
self.leases = Leases(client=self.client)
38+
self.domains = Domains(client=self.client)
3539

3640

3741
__all__ = (
3842
"OTP",
3943
"Contiguity",
44+
"Domains",
4045
"Email",
4146
"IMessage",
47+
"Leases",
4248
"Text",
4349
"WhatsApp",
4450
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class TerminateLeaseResponse(Struct):
7979
terminated_at: int
8080

8181

82-
class Lease(BaseProduct):
82+
class Leases(BaseProduct):
8383
def get_available_numbers(self) -> list[NumberDetails]:
8484
response = self._client.get("/leases")
8585
self._client.handle_error(response, fail_message="failed to get available numbers")

0 commit comments

Comments
 (0)