Skip to content

Commit 6bd721d

Browse files
authored
Merge pull request #179 from livechat/add-name-is-default-param-within-customer
Add flag name_is_default to update_customer in customer-api v3.6 and …
2 parents 0a18ff4 + 033bf07 commit 6bd721d

File tree

8 files changed

+24
-15
lines changed

8 files changed

+24
-15
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "pypi"
55

66
[packages]
77
websocket-client= "==1.9.0"
8-
urllib3 = "==2.6.2"
8+
urllib3 = "==2.6.3"
99
loguru = "==0.7.3"
1010
idna = "==3.10"
1111
anyio = "==4.5.2"

Pipfile.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
1111
- New methods in agent-api v3.6: `send_thinking_indicator`, `send_message_preview`.
1212
- New methods in configuration-api v3.7 for canned responses: `create_canned_response`, `update_canned_response`, `list_canned_responses`, `delete_canned_response`.
1313
- New method `request_thread_summary` in agent-api v3.6 and v3.7.
14+
- New flag `name_is_default` in method `update_customer` in customer-api v3.6 and v3.7.
1415

1516
### Changed
1617
- Udated python version from 3.8 to 3.13.0 (version 3.8 was unsupported since 2024-10-07).

livechat/customer/rtm/api/v36.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ def delete_event_properties(self,
439439

440440
def update_customer(self,
441441
name: str = None,
442+
name_is_default: bool = None,
442443
email: str = None,
443444
avatar: str = None,
444445
session_fields: list = None,
@@ -447,6 +448,7 @@ def update_customer(self,
447448
448449
Args:
449450
name (str): Customer`s name.
451+
name_is_default (bool): Flag which states if the name is default.
450452
email (str): Customer`s email.
451453
avatar (str): Customer`s avatar.
452454
session_fields (list): An array of custom object-enclosed key:value pairs.

livechat/customer/rtm/api/v37.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ def delete_event_properties(self,
439439

440440
def update_customer(self,
441441
name: str = None,
442+
name_is_default: bool = None,
442443
email: str = None,
443444
avatar: str = None,
444445
session_fields: list = None,
@@ -447,6 +448,7 @@ def update_customer(self,
447448
448449
Args:
449450
name (str): Customer`s name.
451+
name_is_default (bool): Flag which states if the name is default.
450452
email (str): Customer`s email.
451453
avatar (str): Customer`s avatar.
452454
session_fields (list): An array of custom object-enclosed key:value pairs.

livechat/customer/web/api/v36.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ def get_customer(self,
700700

701701
def update_customer(self,
702702
name: str = None,
703+
name_is_default: bool = None,
703704
email: str = None,
704705
avatar: str = None,
705706
session_fields: list = None,
@@ -709,6 +710,7 @@ def update_customer(self,
709710
710711
Args:
711712
name (str): Name of the customer.
713+
name_is_default (bool): Flag which states if the name is default.
712714
email (str): Email of the customer.
713715
avatar (str): The URL of the Customer's avatar.
714716
session_fields (list): An array of custom object-enclosed key:value pairs.

livechat/customer/web/api/v37.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ def get_customer(self,
700700

701701
def update_customer(self,
702702
name: str = None,
703+
name_is_default: bool = None,
703704
email: str = None,
704705
avatar: str = None,
705706
session_fields: list = None,
@@ -709,6 +710,7 @@ def update_customer(self,
709710
710711
Args:
711712
name (str): Name of the customer.
713+
name_is_default (bool): Flag which states if the name is default.
712714
email (str): Email of the customer.
713715
avatar (str): The URL of the Customer's avatar.
714716
session_fields (list): An array of custom object-enclosed key:value pairs.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ idna==3.10; python_version >= '3.6'
1212
loguru==0.7.3; python_version >= '3.5' and python_version < '4.0'
1313
sniffio==1.3.1; python_version >= '3.7'
1414
typing-extensions==4.12.2; python_version >= '3.8'
15-
urllib3==2.6.2; python_version >= '3.9'
15+
urllib3==2.6.3; python_version >= '3.9'
1616
websocket-client==1.9.0; python_version >= '3.9'

0 commit comments

Comments
 (0)