Class TaskGroupClient
- java.lang.Object
-
- com.chrt.api.resources.orderdrafts.taskgroup.TaskGroupClient
-
public class TaskGroupClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description TaskGroupClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddV1(OrderDraftAddTaskGroupReq request)Adds a task group to an existing order draft.java.lang.StringaddV1(OrderDraftAddTaskGroupReq request, RequestOptions requestOptions)Adds a task group to an existing order draft.booleandeleteV1(java.lang.String taskGroupId)Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata).booleandeleteV1(java.lang.String taskGroupId, RequestOptions requestOptions)Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata).booleanupdateV1(java.lang.String taskGroupId)Sets or removes courier org.booleanupdateV1(java.lang.String taskGroupId, UpdateTaskGroupDraftReq request)Sets or removes courier org.booleanupdateV1(java.lang.String taskGroupId, UpdateTaskGroupDraftReq request, RequestOptions requestOptions)Sets or removes courier org.RawTaskGroupClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
TaskGroupClient
public TaskGroupClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawTaskGroupClient withRawResponse()
Get responses with HTTP metadata like headers
-
addV1
public java.lang.String addV1(OrderDraftAddTaskGroupReq request)
Adds a task group to an existing order draft. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddTaskGroupReq) -> (PydanticObjectId)
-
addV1
public java.lang.String addV1(OrderDraftAddTaskGroupReq request, RequestOptions requestOptions)
Adds a task group to an existing order draft. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddTaskGroupReq) -> (PydanticObjectId)
-
updateV1
public boolean updateV1(java.lang.String taskGroupId)
Sets or removes courier org. Sets task ordering (must provide all task ids). | (UpdateTaskGroupDraftReq) -> (bool)
-
updateV1
public boolean updateV1(java.lang.String taskGroupId, UpdateTaskGroupDraftReq request)Sets or removes courier org. Sets task ordering (must provide all task ids). | (UpdateTaskGroupDraftReq) -> (bool)
-
updateV1
public boolean updateV1(java.lang.String taskGroupId, UpdateTaskGroupDraftReq request, RequestOptions requestOptions)Sets or removes courier org. Sets task ordering (must provide all task ids). | (UpdateTaskGroupDraftReq) -> (bool)
-
deleteV1
public boolean deleteV1(java.lang.String taskGroupId)
Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order. | () -> (bool)
-
deleteV1
public boolean deleteV1(java.lang.String taskGroupId, RequestOptions requestOptions)Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order. | () -> (bool)
-
-