@Service public class OnfleetClient extends Object
| Constructor and Description |
|---|
OnfleetClient() |
| Modifier and Type | Method and Description |
|---|---|
OnfleetDestination |
createDestination(OnfleetDestination destination)
Creates a Destination (the location details for a Task)
|
OnfleetRecipient |
createRecipient(OnfleetRecipient recipient)
Creates a Recipient (an organization’s customer and a target for a task, that is, whom the task is being delivered to.)
|
OnfleetTask |
createTask(OnfleetTask task) |
OnfleetDestination |
getDestination(String id)
Gets a Destination by ID
|
OnfleetOrganization |
getMyOrganization()
Loads the organization of the caller from OnFleet.
|
OnfleetRecipient |
getRecipient(String id)
Gets a Destination by ID
|
OnfleetAuthTestResponse |
testAuth() |
List<OnfleetTask> |
uploadTasksBatch(List<OnfleetTask> tasks) |
public OnfleetDestination createDestination(OnfleetDestination destination) throws FailedDependencyException
http://docs.onfleet.com/docs/destinations
FailedDependencyExceptionpublic OnfleetDestination getDestination(String id) throws FailedDependencyException
http://docs.onfleet.com/docs/destinations
FailedDependencyExceptionpublic OnfleetOrganization getMyOrganization() throws FailedDependencyException
http://docs.onfleet.com/docs/organizations
FailedDependencyExceptionpublic OnfleetRecipient createRecipient(OnfleetRecipient recipient) throws FailedDependencyException
http://docs.onfleet.com/docs/recipients
FailedDependencyExceptionpublic OnfleetRecipient getRecipient(String id) throws FailedDependencyException
http://docs.onfleet.com/docs/destinations
FailedDependencyExceptionpublic OnfleetTask createTask(@NonNull OnfleetTask task) throws FailedDependencyException
FailedDependencyExceptionpublic List<OnfleetTask> uploadTasksBatch(@NonNull List<OnfleetTask> tasks) throws FailedDependencyException
FailedDependencyExceptionpublic OnfleetAuthTestResponse testAuth() throws FailedDependencyException
FailedDependencyExceptionCopyright © 2019. All rights reserved.