Class AsyncDriversClient
- java.lang.Object
-
- com.chrt.api.resources.shipping.drivers.AsyncDriversClient
-
public class AsyncDriversClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<AsyncComplianceDocumentsClient>complianceDocumentsClient
-
Constructor Summary
Constructors Constructor Description AsyncDriversClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>clearLastSeenV1()Clears the driver's last known location and timestamp.java.util.concurrent.CompletableFuture<java.lang.Boolean>clearLastSeenV1(RequestOptions requestOptions)Clears the driver's last known location and timestamp.AsyncComplianceDocumentsClientcomplianceDocuments()java.util.concurrent.CompletableFuture<java.lang.String>createV1(DriverClientCreate1 request)Creates a new driver profile for the target user (defaults to caller).java.util.concurrent.CompletableFuture<java.lang.String>createV1(DriverClientCreate1 request, RequestOptions requestOptions)Creates a new driver profile for the target user (defaults to caller).java.util.concurrent.CompletableFuture<Driver1>getByDriverIdV1(java.lang.String driverId)Retrieves detailed driver information by driver ID within the organization.java.util.concurrent.CompletableFuture<Driver1>getByDriverIdV1(java.lang.String driverId, RequestOptions requestOptions)Retrieves detailed driver information by driver ID within the organization.java.util.concurrent.CompletableFuture<Driver1>getForCallerV1()Retrieves driver information for the caller within their organization.java.util.concurrent.CompletableFuture<Driver1>getForCallerV1(RequestOptions requestOptions)Retrieves driver information for the caller within their organization.java.util.concurrent.CompletableFuture<DriverStatsRes>getStatsV1(java.lang.String driverId, DriverStatsReq request)Retrieves driver stats (hours worked + observed mileage) with overlap-corrected duration.java.util.concurrent.CompletableFuture<DriverStatsRes>getStatsV1(java.lang.String driverId, DriverStatsReq request, RequestOptions requestOptions)Retrieves driver stats (hours worked + observed mileage) with overlap-corrected duration.java.util.concurrent.CompletableFuture<OrgMembersAndDriversListRes>listOrgMembersAndDriversV1()Lists all organization members paired with their driver information if they are drivers.java.util.concurrent.CompletableFuture<OrgMembersAndDriversListRes>listOrgMembersAndDriversV1(DriversListOrgMembersAndDriversV1Request request)Lists all organization members paired with their driver information if they are drivers.java.util.concurrent.CompletableFuture<OrgMembersAndDriversListRes>listOrgMembersAndDriversV1(DriversListOrgMembersAndDriversV1Request request, RequestOptions requestOptions)Lists all organization members paired with their driver information if they are drivers.java.util.concurrent.CompletableFuture<DriverListRes>listV1()Lists all drivers belonging to the caller's organization with filtering, sorting, pagination, and optional full-text search.java.util.concurrent.CompletableFuture<DriverListRes>listV1(DriversListV1Request request)Lists all drivers belonging to the caller's organization with filtering, sorting, pagination, and optional full-text search.java.util.concurrent.CompletableFuture<DriverListRes>listV1(DriversListV1Request request, RequestOptions requestOptions)Lists all drivers belonging to the caller's organization with filtering, sorting, pagination, and optional full-text search.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateAutoAssignV1(java.lang.String driverId, DriverUpdateAutoAssignReq request)Toggles a driver'sauto_assign_enabledflag — opt-in for direct (non-bidding) task-group assignment.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateAutoAssignV1(java.lang.String driverId, DriverUpdateAutoAssignReq request, RequestOptions requestOptions)Toggles a driver'sauto_assign_enabledflag — opt-in for direct (non-bidding) task-group assignment.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateAvailabilityAccordingToDriverV1(DriverUpdateAvailabilityReq request)Updates the caller's driver availability status.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateAvailabilityAccordingToDriverV1(DriverUpdateAvailabilityReq request, RequestOptions requestOptions)Updates the caller's driver availability status.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateAvailabilityAccordingToOperatorsV1(java.lang.String driverId, DriverUpdateAvailabilityReq request)Updates a driver's availability status.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateAvailabilityAccordingToOperatorsV1(java.lang.String driverId, DriverUpdateAvailabilityReq request, RequestOptions requestOptions)Updates a driver's availability status.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(java.lang.String driverId)Updates driver contact details and vehicle type assignments.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(java.lang.String driverId, DriverClientUpdate1 request)Updates driver contact details and vehicle type assignments.java.util.concurrent.CompletableFuture<java.lang.Boolean>updateV1(java.lang.String driverId, DriverClientUpdate1 request, RequestOptions requestOptions)Updates driver contact details and vehicle type assignments.AsyncRawDriversClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
complianceDocumentsClient
protected final java.util.function.Supplier<AsyncComplianceDocumentsClient> complianceDocumentsClient
-
-
Constructor Detail
-
AsyncDriversClient
public AsyncDriversClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawDriversClient withRawResponse()
Get responses with HTTP metadata like headers
-
getStatsV1
public java.util.concurrent.CompletableFuture<DriverStatsRes> getStatsV1(java.lang.String driverId, DriverStatsReq request)
Retrieves driver stats (hours worked + observed mileage) with overlap-corrected duration. | authz: allowed_org_types=[provider], min_org_role=operator | (DriverStatsReq) -> (DriverStatsRes)
-
getStatsV1
public java.util.concurrent.CompletableFuture<DriverStatsRes> getStatsV1(java.lang.String driverId, DriverStatsReq request, RequestOptions requestOptions)
Retrieves driver stats (hours worked + observed mileage) with overlap-corrected duration. | authz: allowed_org_types=[provider], min_org_role=operator | (DriverStatsReq) -> (DriverStatsRes)
-
getForCallerV1
public java.util.concurrent.CompletableFuture<Driver1> getForCallerV1()
Retrieves driver information for the caller within their organization. | () -> (Driver1)
-
getForCallerV1
public java.util.concurrent.CompletableFuture<Driver1> getForCallerV1(RequestOptions requestOptions)
Retrieves driver information for the caller within their organization. | () -> (Driver1)
-
getByDriverIdV1
public java.util.concurrent.CompletableFuture<Driver1> getByDriverIdV1(java.lang.String driverId)
Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
-
getByDriverIdV1
public java.util.concurrent.CompletableFuture<Driver1> getByDriverIdV1(java.lang.String driverId, RequestOptions requestOptions)
Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
-
listOrgMembersAndDriversV1
public java.util.concurrent.CompletableFuture<OrgMembersAndDriversListRes> listOrgMembersAndDriversV1()
Lists all organization members paired with their driver information if they are drivers. Supports search by name, filtering, sorting, and pagination. | () -> (OrgMembersAndDriversListRes)
-
listOrgMembersAndDriversV1
public java.util.concurrent.CompletableFuture<OrgMembersAndDriversListRes> listOrgMembersAndDriversV1(DriversListOrgMembersAndDriversV1Request request)
Lists all organization members paired with their driver information if they are drivers. Supports search by name, filtering, sorting, and pagination. | () -> (OrgMembersAndDriversListRes)
-
listOrgMembersAndDriversV1
public java.util.concurrent.CompletableFuture<OrgMembersAndDriversListRes> listOrgMembersAndDriversV1(DriversListOrgMembersAndDriversV1Request request, RequestOptions requestOptions)
Lists all organization members paired with their driver information if they are drivers. Supports search by name, filtering, sorting, and pagination. | () -> (OrgMembersAndDriversListRes)
-
listV1
public java.util.concurrent.CompletableFuture<DriverListRes> listV1()
Lists all drivers belonging to the caller's organization with filtering, sorting, pagination, and optional full-text search. | () -> (DriverListRes)
-
listV1
public java.util.concurrent.CompletableFuture<DriverListRes> listV1(DriversListV1Request request)
Lists all drivers belonging to the caller's organization with filtering, sorting, pagination, and optional full-text search. | () -> (DriverListRes)
-
listV1
public java.util.concurrent.CompletableFuture<DriverListRes> listV1(DriversListV1Request request, RequestOptions requestOptions)
Lists all drivers belonging to the caller's organization with filtering, sorting, pagination, and optional full-text search. | () -> (DriverListRes)
-
createV1
public java.util.concurrent.CompletableFuture<java.lang.String> createV1(DriverClientCreate1 request)
Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Provider orgs only. | (DriverClientCreate1) -> (PydanticObjectId)
-
createV1
public java.util.concurrent.CompletableFuture<java.lang.String> createV1(DriverClientCreate1 request, RequestOptions requestOptions)
Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Provider orgs only. | (DriverClientCreate1) -> (PydanticObjectId)
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(java.lang.String driverId)
Updates driver contact details and vehicle type assignments. Provider orgs only; caller must be the driver (self) or an operator+. | (DriverClientUpdate1) -> (bool)
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(java.lang.String driverId, DriverClientUpdate1 request)Updates driver contact details and vehicle type assignments. Provider orgs only; caller must be the driver (self) or an operator+. | (DriverClientUpdate1) -> (bool)
-
updateV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1(java.lang.String driverId, DriverClientUpdate1 request, RequestOptions requestOptions)Updates driver contact details and vehicle type assignments. Provider orgs only; caller must be the driver (self) or an operator+. | (DriverClientUpdate1) -> (bool)
-
clearLastSeenV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> clearLastSeenV1()
Clears the driver's last known location and timestamp. | () -> (bool)
-
clearLastSeenV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> clearLastSeenV1(RequestOptions requestOptions)
Clears the driver's last known location and timestamp. | () -> (bool)
-
updateAvailabilityAccordingToDriverV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateAvailabilityAccordingToDriverV1(DriverUpdateAvailabilityReq request)
Updates the caller's driver availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Provider orgs only. | (DriverUpdateAvailabilityReq) -> (bool)
-
updateAvailabilityAccordingToDriverV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateAvailabilityAccordingToDriverV1(DriverUpdateAvailabilityReq request, RequestOptions requestOptions)
Updates the caller's driver availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Provider orgs only. | (DriverUpdateAvailabilityReq) -> (bool)
-
updateAvailabilityAccordingToOperatorsV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateAvailabilityAccordingToOperatorsV1(java.lang.String driverId, DriverUpdateAvailabilityReq request)Updates a driver's availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Provider orgs only, min role: operator. | (DriverUpdateAvailabilityReq) -> (bool)
-
updateAvailabilityAccordingToOperatorsV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateAvailabilityAccordingToOperatorsV1(java.lang.String driverId, DriverUpdateAvailabilityReq request, RequestOptions requestOptions)Updates a driver's availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Provider orgs only, min role: operator. | (DriverUpdateAvailabilityReq) -> (bool)
-
updateAutoAssignV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateAutoAssignV1(java.lang.String driverId, DriverUpdateAutoAssignReq request)Toggles a driver'sauto_assign_enabledflag — opt-in for direct (non-bidding) task-group assignment. Authorized: the driver themselves OR an operator+ in the driver's org (operators may override the driver's setting). Provider orgs only. | (DriverUpdateAutoAssignReq) -> (bool)
-
updateAutoAssignV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateAutoAssignV1(java.lang.String driverId, DriverUpdateAutoAssignReq request, RequestOptions requestOptions)Toggles a driver'sauto_assign_enabledflag — opt-in for direct (non-bidding) task-group assignment. Authorized: the driver themselves OR an operator+ in the driver's org (operators may override the driver's setting). Provider orgs only. | (DriverUpdateAutoAssignReq) -> (bool)
-
complianceDocuments
public AsyncComplianceDocumentsClient complianceDocuments()
-
-