Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sms/src/vonage_sms/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class SmsMessage(BaseModel):
requirements when sending an SMS to specific countries.
content_id (str, Optional): A string parameter that satisfies regulatory
requirements when sending an SMS to specific countries.
trusted_sender (bool, Optional): overrides, on a per-message basis, any
protections set up via Fraud Defender
"""

to: str
Expand All @@ -67,6 +69,7 @@ class SmsMessage(BaseModel):
account_ref: Optional[str] = Field(None, serialization_alias='account-ref')
entity_id: Optional[str] = Field(None, serialization_alias='entity-id')
content_id: Optional[str] = Field(None, serialization_alias='content-id')
trusted_sender: Optional[bool] = Field(None, serialization_alias="trusted_sender")

@field_validator('body', 'udh')
@classmethod
Expand Down
1 change: 1 addition & 0 deletions sms/tests/test_sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def test_create_valid_SmsMessage():
'client_ref': 'ref123',
'type': 'binary',
'ttl': 3000000,
'trusted_sender': True,
'status_report_req': True,
'callback': 'https://example.com/callback',
'message_class': 0,
Expand Down
Loading