Skip to content

Commit bf8a981

Browse files
committed
Rename messages folder to outbound for clarity
1 parent eefa380 commit bf8a981

14 files changed

Lines changed: 13 additions & 13 deletions

examples/outbound_messages/send_outbound_bulk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dotenv import load_dotenv
55

66
import postmark
7-
from postmark.models.messages import BulkEmail, BulkRecipient
7+
from postmark.models.outbound import BulkEmail, BulkRecipient
88

99
load_dotenv()
1010
client = postmark.ServerClient(os.environ["POSTMARK_SERVER_TOKEN"])

examples/outbound_messages/send_outbound_simple_with_attachment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from dotenv import load_dotenv
1515

1616
import postmark
17-
from postmark.models.messages import Attachment, Email
17+
from postmark.models.outbound import Attachment, Email
1818

1919
load_dotenv()
2020
client = postmark.ServerClient(os.environ["POSTMARK_SERVER_TOKEN"])

examples/outbound_messages/send_outbound_simple_with_custom_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from dotenv import load_dotenv
1515

1616
import postmark
17-
from postmark.models.messages import Email, Header
17+
from postmark.models.outbound import Email, Header
1818

1919
load_dotenv()
2020
client = postmark.ServerClient(os.environ["POSTMARK_SERVER_TOKEN"])

postmark/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
TimeoutException,
1313
ValidationException,
1414
)
15-
from .models import messages
16-
from .models.messages import Attachment, Email, Header, Message, SendResponse
15+
from .models import outbound
16+
from .models.outbound import Attachment, Email, Header, Message, SendResponse
1717
from .models.page import Page
1818
from .utils import server_utils
1919

@@ -29,7 +29,7 @@
2929
"SendResponse",
3030
"Attachment",
3131
"Header",
32-
"messages",
32+
"outbound",
3333
"PostmarkException",
3434
"PostmarkAPIException",
3535
"InvalidAPIKeyException",

postmark/clients/server_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from postmark.models.bounces import BounceManager
88
from postmark.models.inbound import InboundManager
99
from postmark.models.inbound_rules import InboundRuleManager
10-
from postmark.models.messages import OutboundManager
10+
from postmark.models.outbound import OutboundManager
1111
from postmark.models.servers import ServerManager
1212
from postmark.models.stats import StatsManager
1313
from postmark.models.streams import StreamManager

postmark/models/inbound/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pydantic import BaseModel, ConfigDict, Field
44

5-
from postmark.models.messages.schemas import EmailAddress, Header
5+
from postmark.models.outbound.schemas import EmailAddress, Header
66

77

88
class InboundAttachment(BaseModel):

0 commit comments

Comments
 (0)