Skip to content
Merged
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
8 changes: 8 additions & 0 deletions sendbee_api/contacts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ class Contact(Model):
_id = TextField(index='id', desc='UUID')
_name = TextField(index='name', desc='Name')
_phone = TextField(index='phone', desc='Phone number')
_whatsapp_user_id = TextField(
index='whatsapp_user_id',
desc='Business-scoped user ID (BSUID) of the ' \
'recipient, e.g. US.13491208655302741918. ' \
'Used instead of "to" when the phone number ' \
'is unknown. If both "to" and "recipient" ' \
'are provided, Meta gives precedence to "to".'
)
_created_at = DatetimeField(
index='created_at', desc='Name', format='%Y-%m-%d %H:%M:%'
)
Expand Down
5 changes: 5 additions & 0 deletions sendbee_api/contacts/query_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class UpdateContacts(QueryParams):

id = 'id', 'Contact ID'
phone = 'phone', 'Contact phone number'
whatsapp_user_id = 'whatsapp_user_id', 'Business-scoped user ID (BSUID) of the ' \
'recipient, e.g. US.13491208655302741918. ' \
'Used instead of "to" when the phone number ' \
'is unknown. If both "to" and "recipient" ' \
'are provided, Meta gives precedence to "to".'
tags = 'tags', 'Tag contact while subscribing it'
name = 'name', 'Subscriber name'
contact_fields = 'contact_fields', 'Contact data fields'
Expand Down
5 changes: 5 additions & 0 deletions sendbee_api/conversations/query_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ class SendTemplateMessage(QueryParams):
tags = 'tags', 'Template message tags'
button_tags = 'button_tags', 'Template button tags'
phone = 'phone', 'Contact\'s phone number'
whatsapp_user_id = 'whatsapp_user_id', 'Business-scoped user ID (BSUID) of the ' \
'recipient, e.g. US.13491208655302741918. ' \
'Used instead of "to" when the phone number ' \
'is unknown. If both "to" and "recipient" ' \
'are provided, Meta gives precedence to "to".'
language = 'language', 'Template message language'
template_keyword = 'template_keyword', 'Template message keyword'
prevent_bot_off = 'prevent_bot_off', 'Prevent turning-off chatbot'
Expand Down
Loading