Package com.chrt.api.resources.drivers
Class AsyncRawDriversClient
- java.lang.Object
-
- com.chrt.api.resources.drivers.AsyncRawDriversClient
-
public class AsyncRawDriversClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncRawDriversClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>>createV1(DriverCreateReq request)Creates a new driver profile for an organization member with optional vehicle type assignments.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>>createV1(DriverCreateReq request, RequestOptions requestOptions)Creates a new driver profile for an organization member with optional vehicle type assignments.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>deleteV1(java.lang.String driverId)Deletes a driver from the organization and removes them from associated rate sheets.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>deleteV1(java.lang.String driverId, RequestOptions requestOptions)Deletes a driver from the organization and removes them from associated rate sheets.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<Driver1>>getByDriverIdV1(java.lang.String driverId)Retrieves detailed driver information by driver ID within the organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<Driver1>>getByDriverIdV1(java.lang.String driverId, RequestOptions requestOptions)Retrieves detailed driver information by driver ID within the organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<Driver1>>getV1()Retrieves driver information for the authenticated user within their organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<Driver1>>getV1(RequestOptions requestOptions)Retrieves driver information for the authenticated user within their organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>lastSeenClearV1()Clears the driver's last known location and timestamp.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>lastSeenClearV1(RequestOptions requestOptions)Clears the driver's last known location and timestamp.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>lastSeenV1(DriverLastSeenReq request)Updates the driver's last known location and timestamp for tracking purposes.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>lastSeenV1(DriverLastSeenReq request, RequestOptions requestOptions)Updates the driver's last known location and timestamp for tracking purposes.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<OrgMembersAndDrivers>>>listOrgMembersAndDriversV1()Lists all organization members paired with their driver information if they are drivers.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<OrgMembersAndDrivers>>>listOrgMembersAndDriversV1(RequestOptions requestOptions)Lists all organization members paired with their driver information if they are drivers.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<Driver1>>>listV1()Lists all drivers belonging to the authenticated organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<Driver1>>>listV1(RequestOptions requestOptions)Lists all drivers belonging to the authenticated organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>setActivationV1(SetDriverActivationReq request)Sets the activation status of a driver (active/inactive) within the organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>setActivationV1(SetDriverActivationReq request, RequestOptions requestOptions)Sets the activation status of a driver (active/inactive) within the organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>updateDriverV1(UpdateDriverDetailsReq request)Updates driver contact details and vehicle type assignments within the organization.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>>updateDriverV1(UpdateDriverDetailsReq request, RequestOptions requestOptions)Updates driver contact details and vehicle type assignments within the organization.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncRawDriversClient
public AsyncRawDriversClient(ClientOptions clientOptions)
-
-
Method Detail
-
listOrgMembersAndDriversV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<OrgMembersAndDrivers>>> listOrgMembersAndDriversV1()
Lists all organization members paired with their driver information if they are drivers.
-
listOrgMembersAndDriversV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<OrgMembersAndDrivers>>> listOrgMembersAndDriversV1(RequestOptions requestOptions)
Lists all organization members paired with their driver information if they are drivers.
-
listV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<Driver1>>> listV1()
Lists all drivers belonging to the authenticated organization.
-
listV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<Driver1>>> listV1(RequestOptions requestOptions)
Lists all drivers belonging to the authenticated organization.
-
createV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>> createV1(DriverCreateReq request)
Creates a new driver profile for an organization member with optional vehicle type assignments.
-
createV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.String>> createV1(DriverCreateReq request, RequestOptions requestOptions)
Creates a new driver profile for an organization member with optional vehicle type assignments.
-
getV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<Driver1>> getV1()
Retrieves driver information for the authenticated user within their organization.
-
getV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<Driver1>> getV1(RequestOptions requestOptions)
Retrieves driver information for the authenticated user within their organization.
-
getByDriverIdV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<Driver1>> getByDriverIdV1(java.lang.String driverId)
Retrieves detailed driver information by driver ID within the organization.
-
getByDriverIdV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<Driver1>> getByDriverIdV1(java.lang.String driverId, RequestOptions requestOptions)
Retrieves detailed driver information by driver ID within the organization.
-
deleteV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> deleteV1(java.lang.String driverId)
Deletes a driver from the organization and removes them from associated rate sheets.
-
deleteV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> deleteV1(java.lang.String driverId, RequestOptions requestOptions)
Deletes a driver from the organization and removes them from associated rate sheets.
-
setActivationV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> setActivationV1(SetDriverActivationReq request)
Sets the activation status of a driver (active/inactive) within the organization.
-
setActivationV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> setActivationV1(SetDriverActivationReq request, RequestOptions requestOptions)
Sets the activation status of a driver (active/inactive) within the organization.
-
lastSeenV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> lastSeenV1(DriverLastSeenReq request)
Updates the driver's last known location and timestamp for tracking purposes.
-
lastSeenV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> lastSeenV1(DriverLastSeenReq request, RequestOptions requestOptions)
Updates the driver's last known location and timestamp for tracking purposes.
-
lastSeenClearV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> lastSeenClearV1()
Clears the driver's last known location and timestamp.
-
lastSeenClearV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> lastSeenClearV1(RequestOptions requestOptions)
Clears the driver's last known location and timestamp.
-
updateDriverV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> updateDriverV1(UpdateDriverDetailsReq request)
Updates driver contact details and vehicle type assignments within the organization.
-
updateDriverV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Boolean>> updateDriverV1(UpdateDriverDetailsReq request, RequestOptions requestOptions)
Updates driver contact details and vehicle type assignments within the organization.
-
-