Class TaskGroupsClient


  • public class TaskGroupsClient
    extends java.lang.Object
    • Field Detail

      • taskGroupIdClient

        protected final java.util.function.Supplier<TaskGroupIdClient> taskGroupIdClient
      • s3ObjectClient

        protected final java.util.function.Supplier<S3ObjectClient> s3ObjectClient
      • expandedClient

        protected final java.util.function.Supplier<ExpandedClient> expandedClient
    • Constructor Detail

      • TaskGroupsClient

        public TaskGroupsClient​(ClientOptions clientOptions)
    • Method Detail

      • withRawResponse

        public RawTaskGroupsClient withRawResponse()
        Get responses with HTTP metadata like headers
      • startV1

        public boolean startV1​(java.lang.String taskGroupId)
        Starts a task group by transitioning it from STAGED to IN_PROGRESS and syncing related order state. | authz_personas=[courier_driver, lig_owner_operators] | () -> (bool)
      • startV1

        public boolean startV1​(java.lang.String taskGroupId,
                               RequestOptions requestOptions)
        Starts a task group by transitioning it from STAGED to IN_PROGRESS and syncing related order state. | authz_personas=[courier_driver, lig_owner_operators] | () -> (bool)
      • setTaskOrderingV1

        public boolean setTaskOrderingV1​(java.lang.String taskGroupId,
                                         SetTaskOrderingReq request)
        Sets the ordering of tasks within a task group. Requires complete list of task IDs in desired order. Completed tasks must be before staged tasks. | authz_personas=[lig_owner_operators] | (SetTaskOrderingReq) -> (bool)
      • setTaskOrderingV1

        public boolean setTaskOrderingV1​(java.lang.String taskGroupId,
                                         SetTaskOrderingReq request,
                                         RequestOptions requestOptions)
        Sets the ordering of tasks within a task group. Requires complete list of task IDs in desired order. Completed tasks must be before staged tasks. | authz_personas=[lig_owner_operators] | (SetTaskOrderingReq) -> (bool)
      • updateDriverV1

        public boolean updateDriverV1​(java.lang.String taskGroupId,
                                      UpdateDriverReq request)
        Updates the driver assigned to a task group. | authz_personas=[courier_org_operators] | (UpdateDriverReq) -> (bool)
      • updateDriverV1

        public boolean updateDriverV1​(java.lang.String taskGroupId,
                                      UpdateDriverReq request,
                                      RequestOptions requestOptions)
        Updates the driver assigned to a task group. | authz_personas=[courier_org_operators] | (UpdateDriverReq) -> (bool)
      • removeDriverV1

        public boolean removeDriverV1​(java.lang.String taskGroupId)
        Removes the driver from a task group (sets driver_id to null). Allowed when STAGED or IN_PROGRESS (if no tasks have reached a terminal status). | authz_personas=[courier_org_operators, courier_driver] | () -> (bool)
      • removeDriverV1

        public boolean removeDriverV1​(java.lang.String taskGroupId,
                                      RequestOptions requestOptions)
        Removes the driver from a task group (sets driver_id to null). Allowed when STAGED or IN_PROGRESS (if no tasks have reached a terminal status). | authz_personas=[courier_org_operators, courier_driver] | () -> (bool)
      • updateCourierOrgV1

        public boolean updateCourierOrgV1​(java.lang.String taskGroupId,
                                          UpdateCourierOrgReq request)
        Updates the courier organization assigned to a task group. | authz_personas=[forwarder_org_operators] | (UpdateCourierOrgReq) -> (bool)
      • updateCourierOrgV1

        public boolean updateCourierOrgV1​(java.lang.String taskGroupId,
                                          UpdateCourierOrgReq request,
                                          RequestOptions requestOptions)
        Updates the courier organization assigned to a task group. | authz_personas=[forwarder_org_operators] | (UpdateCourierOrgReq) -> (bool)
      • assignRateSheetV1

        public boolean assignRateSheetV1​(java.lang.String rateSheetId,
                                         java.lang.String taskGroupId)
        Assigns a rate sheet to a task group. Can also hot-swap an existing rate sheet for a new one. Syncs the corresponding LineItemGroup and recalculates LineItems. | authz_personas=[lig_owner_operators] | () -> (bool)
      • assignRateSheetV1

        public boolean assignRateSheetV1​(java.lang.String rateSheetId,
                                         java.lang.String taskGroupId,
                                         RequestOptions requestOptions)
        Assigns a rate sheet to a task group. Can also hot-swap an existing rate sheet for a new one. Syncs the corresponding LineItemGroup and recalculates LineItems. | authz_personas=[lig_owner_operators] | () -> (bool)
      • setFlightInfoV1

        public boolean setFlightInfoV1​(java.lang.String taskGroupId)
        Sets the flight number and/or fa_flight_ids on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
      • setFlightInfoV1

        public boolean setFlightInfoV1​(java.lang.String taskGroupId,
                                       SetFlightInfoReq request)
        Sets the flight number and/or fa_flight_ids on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
      • setFlightInfoV1

        public boolean setFlightInfoV1​(java.lang.String taskGroupId,
                                       SetFlightInfoReq request,
                                       RequestOptions requestOptions)
        Sets the flight number and/or fa_flight_ids on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
      • addMessageV1

        public boolean addMessageV1​(java.lang.String taskGroupId,
                                    AddMessageReq request)
        Adds a message to a task group's message log. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)
      • addMessageV1

        public boolean addMessageV1​(java.lang.String taskGroupId,
                                    AddMessageReq request,
                                    RequestOptions requestOptions)
        Adds a message to a task group's message log. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)