Skip to content

Commit ed3bc96

Browse files
committed
Updated BusinessHours class
1 parent 9eb7248 commit ed3bc96

File tree

5 files changed

+51
-6
lines changed

5 files changed

+51
-6
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ License
3131

3232
- Python SDK improved to support the following new APIs
3333

34-
- [Share Emails API]()
35-
- [Calls Preference API]()
36-
- [Data Sharing Settings API]()
37-
- [Fetch Full Data API]()
34+
- [Get Related Records Count of a Record]()
35+
- [Calls Preference]()
36+
- [Record-Level Sharing of Emails]()
37+
- [Data Sharing Rules API]()
38+
- [Get Rich Text Fields API]()
3839

3940

4041
For older versions, please [refer](https://github.com/zoho/zohocrm-python-sdk-8.0/releases).

versions/1.0.0/zohocrmsdk/src/com/zoho/crm/api/business_hours/business_hours.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def __init__(self):
1717
self.__same_as_everyday = None
1818
self.__daily_timing = None
1919
self.__custom_timing = None
20+
self.__timezone = None
2021
self.__key_modified = dict()
2122

2223
def get_week_starts_on(self):
@@ -187,6 +188,27 @@ def set_custom_timing(self, custom_timing):
187188
self.__custom_timing = custom_timing
188189
self.__key_modified['custom_timing'] = 1
189190

191+
def get_timezone(self):
192+
"""
193+
The method to get the timezone
194+
195+
Returns:
196+
string: A string representing the timezone
197+
"""
198+
199+
return self.__timezone
200+
201+
def set_timezone(self, timezone):
202+
"""
203+
The method to set the value to timezone
204+
205+
Parameters:
206+
timezone (string) : A string representing the timezone
207+
"""
208+
209+
self.__timezone = timezone
210+
self.__key_modified['timezone'] = 1
211+
190212
def is_key_modified(self, key):
191213
"""
192214
The method to check if the user has modified the given key

versions/1.0.0/zohocrmsdk/src/json_details.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

zohocrmsdk/src/com/zoho/crm/api/business_hours/business_hours.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def __init__(self):
1717
self.__same_as_everyday = None
1818
self.__daily_timing = None
1919
self.__custom_timing = None
20+
self.__timezone = None
2021
self.__key_modified = dict()
2122

2223
def get_week_starts_on(self):
@@ -187,6 +188,27 @@ def set_custom_timing(self, custom_timing):
187188
self.__custom_timing = custom_timing
188189
self.__key_modified['custom_timing'] = 1
189190

191+
def get_timezone(self):
192+
"""
193+
The method to get the timezone
194+
195+
Returns:
196+
string: A string representing the timezone
197+
"""
198+
199+
return self.__timezone
200+
201+
def set_timezone(self, timezone):
202+
"""
203+
The method to set the value to timezone
204+
205+
Parameters:
206+
timezone (string) : A string representing the timezone
207+
"""
208+
209+
self.__timezone = timezone
210+
self.__key_modified['timezone'] = 1
211+
190212
def is_key_modified(self, key):
191213
"""
192214
The method to check if the user has modified the given key

zohocrmsdk/src/json_details.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)