Class AsyncTaskGroupsClient
- java.lang.Object
-
- com.chrt.api.resources.taskgroups.AsyncTaskGroupsClient
-
public class AsyncTaskGroupsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<AsyncExpandedClient>expandedClientprotected java.util.function.Supplier<AsyncExpandedListClient>expandedListClient
-
Constructor Summary
Constructors Constructor Description AsyncTaskGroupsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncExpandedClientexpanded()AsyncExpandedListClientexpandedList()java.util.concurrent.CompletableFuture<java.lang.Boolean>startV1(java.lang.String taskGroupId)Starts a task group by changing its status to in-progress and updating the order status.java.util.concurrent.CompletableFuture<java.lang.Boolean>startV1(java.lang.String taskGroupId, RequestOptions requestOptions)Starts a task group by changing its status to in-progress and updating the order status.java.util.concurrent.CompletableFuture<java.lang.Boolean>togglePauseV1(java.lang.String id, SetTaskGroupPauseReq request)Toggles the pause status of an in-progress task group.java.util.concurrent.CompletableFuture<java.lang.Boolean>togglePauseV1(java.lang.String id, SetTaskGroupPauseReq request, RequestOptions requestOptions)Toggles the pause status of an in-progress task group.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(UpdateTaskGroupReq request)Updates task group driver assignments by adding or removing drivers.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(UpdateTaskGroupReq request, RequestOptions requestOptions)Updates task group driver assignments by adding or removing drivers.AsyncRawTaskGroupsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
expandedClient
protected final java.util.function.Supplier<AsyncExpandedClient> expandedClient
-
expandedListClient
protected final java.util.function.Supplier<AsyncExpandedListClient> expandedListClient
-
-
Constructor Detail
-
AsyncTaskGroupsClient
public AsyncTaskGroupsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawTaskGroupsClient withRawResponse()
Get responses with HTTP metadata like headers
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(UpdateTaskGroupReq request)
Updates task group driver assignments by adding or removing drivers.
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(UpdateTaskGroupReq request, RequestOptions requestOptions)
Updates task group driver assignments by adding or removing drivers.
-
startV1
public java.util.concurrent.CompletableFuture<java.lang.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 java.util.concurrent.CompletableFuture<java.lang.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 java.util.concurrent.CompletableFuture<java.lang.Boolean> togglePauseV1(java.lang.String id, SetTaskGroupPauseReq request)Toggles the pause status of an in-progress task group.
-
togglePauseV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> togglePauseV1(java.lang.String id, SetTaskGroupPauseReq request, RequestOptions requestOptions)Toggles the pause status of an in-progress task group.
-
expanded
public AsyncExpandedClient expanded()
-
expandedList
public AsyncExpandedListClient expandedList()
-
-