Company administration service methods: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,539: | Line 1,539: | ||
Mark notifications as readed | Mark notifications as readed | ||
---- | |||
=== setWorkDayInfo=== | |||
<code>setWorkDayInfo($info)</code> | |||
Parameters: | |||
* '''$info''' Array | |||
Returns true on success | |||
Set work day schedule for company|service|provider for week_day|date | |||
Example: | |||
<pre> | |||
{ | |||
"start_time":"10:00", | |||
"end_time":"18:00", | |||
"is_day_off":0, | |||
"breaktime":[{"start_time":"14:00","end_time":"15:00"}], | |||
"index":"1", | |||
"name":"Monday", | |||
"date":"", | |||
"unit_group_id":"", | |||
"event_id":"" | |||
} | |||
index is 1-7 for Monday - Sunday (used for weekly settings) | |||
date is used to set worktime for special date | |||
unit_group_id is provider id | |||
event_id is service id | |||
if unit_group_id and event_id not passed then it set data for company | |||
</pre> | |||
---- | |||
=== deleteSpecialDay=== | |||
<code>deleteSpecialDay($date, $params = null)</code> | |||
Parameters: | |||
* '''$date''' String | |||
* '''$params''' Array | |||
Returns true on success | |||
Delete special date if set | |||
Example: | |||
<pre> | |||
'2017-08-21', | |||
{ | |||
"unit_group_id":"", | |||
"event_id":"" | |||
} | |||
</pre> | |||
---- | ---- | ||
| Line 1,572: | Line 1,631: | ||
* -32070 Additional field values are wrong | * -32070 Additional field values are wrong | ||
* -32080 Appointemnt couldn't be found | * -32080 Appointemnt couldn't be found | ||
* -32081 Service can't be performed when company does not work | |||
* -32082 Service performer can't work when company does not work | |||
* -32085 Signature error | * -32085 Signature error | ||
* -32090 Confirmation with this key type is not available | * -32090 Confirmation with this key type is not available | ||