Class TaskGroupsClient
- java.lang.Object
-
- com.chrt.api.resources.taskgroups.TaskGroupsClient
-
public class TaskGroupsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<ExpandedClient>expandedClientprotected java.util.function.Supplier<ExpandedListClient>expandedListClient
-
Constructor Summary
Constructors Constructor Description TaskGroupsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpandedClientexpanded()ExpandedListClientexpandedList()booleanstartV1(java.lang.String taskGroupId)Starts a task group by changing its status to in-progress and updating the order status.booleanstartV1(java.lang.String taskGroupId, RequestOptions requestOptions)Starts a task group by changing its status to in-progress and updating the order status.booleantogglePauseV1(java.lang.String id, SetTaskGroupPauseReq request)Toggles the pause status of an in-progress task group.booleantogglePauseV1(java.lang.String id, SetTaskGroupPauseReq request, RequestOptions requestOptions)Toggles the pause status of an in-progress task group.booleanupdateV1(UpdateTaskGroupReq request)Updates task group driver assignments by adding or removing drivers.booleanupdateV1(UpdateTaskGroupReq request, RequestOptions requestOptions)Updates task group driver assignments by adding or removing drivers.RawTaskGroupsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
expandedClient
protected final java.util.function.Supplier<ExpandedClient> expandedClient
-
expandedListClient
protected final java.util.function.Supplier<ExpandedListClient> expandedListClient
-
-
Constructor Detail
-
TaskGroupsClient
public TaskGroupsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawTaskGroupsClient withRawResponse()
Get responses with HTTP metadata like headers
-
updateV1
public boolean updateV1(UpdateTaskGroupReq request)
Updates task group driver assignments by adding or removing drivers.
-
updateV1
public boolean updateV1(UpdateTaskGroupReq request, RequestOptions requestOptions)
Updates task group driver assignments by adding or removing drivers.
-
startV1
public boolean startV1(java.lang.String taskGroupId)
Starts a task group by changing its status to in-progress and updating the order status. Only authorized personas (task_group_driver or task_group_courier_org_administrator) can start a task group.
-
startV1
public boolean startV1(java.lang.String taskGroupId, RequestOptions requestOptions)Starts a task group by changing its status to in-progress and updating the order status. Only authorized personas (task_group_driver or task_group_courier_org_administrator) can start a task group.
-
togglePauseV1
public boolean togglePauseV1(java.lang.String id, SetTaskGroupPauseReq request)Toggles the pause status of an in-progress task group.
-
togglePauseV1
public boolean togglePauseV1(java.lang.String id, SetTaskGroupPauseReq request, RequestOptions requestOptions)Toggles the pause status of an in-progress task group.
-
expanded
public ExpandedClient expanded()
-
expandedList
public ExpandedListClient expandedList()
-
-