Skip to content

Commit b2503ea

Browse files
GROW-880: Adding send_email flag. (#60)
1 parent 6f2121c commit b2503ea

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

setup.py

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

33
setup(
44
name='VacasaConnect',
5-
version='1.0.13',
5+
version='1.0.14',
66
description='A Python 3.6+ SDK for the connect.vacasa.com API.',
77
packages=['vacasa.connect'],
88
url='https://github.com/Vacasa/python-vacasa-connect-sdk',

vacasa/connect/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ def create_contact(self,
11541154
language_id: int = None,
11551155
created_by: int = None,
11561156
tax_entity_name: str = None,
1157+
send_email: bool = False
11571158
):
11581159
"""
11591160
https://vacasa.docs.stoplight.io/contacts/postv1contacts
@@ -1173,6 +1174,7 @@ def create_contact(self,
11731174
language_id: Foreign key to table languages
11741175
created_by: ID of logged in user
11751176
tax_entity_name: If the contact is a business, put the business name here
1177+
send_email: Whether or not to send an email with account/login info
11761178
11771179
Returns: dict
11781180
Created Contact
@@ -1194,6 +1196,7 @@ def create_contact(self,
11941196
"language_id": language_id,
11951197
"created_by": created_by,
11961198
"tax_entity_name": tax_entity_name,
1199+
"send_email": send_email,
11971200
}
11981201

11991202
url = f"{self.endpoint}/v1/contacts"

0 commit comments

Comments
 (0)