public interface LocationsApi
| Modifier and Type | Method and Description |
|---|---|
CreateLocationResponse |
createLocation(CreateLocationRequest body)
Creates a [location](https://developer.squareup.com/docs/locations-api).
|
CompletableFuture<CreateLocationResponse> |
createLocationAsync(CreateLocationRequest body)
Creates a [location](https://developer.squareup.com/docs/locations-api).
|
ListLocationsResponse |
listLocations()
Provides details about all of the seller's
[locations](https://developer.squareup.com/docs/locations-api), including those with an
inactive status.
|
CompletableFuture<ListLocationsResponse> |
listLocationsAsync()
Provides details about all of the seller's
[locations](https://developer.squareup.com/docs/locations-api), including those with an
inactive status.
|
RetrieveLocationResponse |
retrieveLocation(String locationId)
Retrieves details of a single location.
|
CompletableFuture<RetrieveLocationResponse> |
retrieveLocationAsync(String locationId)
Retrieves details of a single location.
|
UpdateLocationResponse |
updateLocation(String locationId,
UpdateLocationRequest body)
Updates a [location](https://developer.squareup.com/docs/locations-api).
|
CompletableFuture<UpdateLocationResponse> |
updateLocationAsync(String locationId,
UpdateLocationRequest body)
Updates a [location](https://developer.squareup.com/docs/locations-api).
|
ListLocationsResponse listLocations() throws ApiException, IOException
ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListLocationsResponse> listLocationsAsync()
CreateLocationResponse createLocation(CreateLocationRequest body) throws ApiException, IOException
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CreateLocationResponse> createLocationAsync(CreateLocationRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.RetrieveLocationResponse retrieveLocation(String locationId) throws ApiException, IOException
locationId - Required parameter: The ID of the location to retrieve. Specify the
string "main" to return the main location.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveLocationResponse> retrieveLocationAsync(String locationId)
locationId - Required parameter: The ID of the location to retrieve. Specify the
string "main" to return the main location.UpdateLocationResponse updateLocation(String locationId, UpdateLocationRequest body) throws ApiException, IOException
locationId - Required parameter: The ID of the location to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<UpdateLocationResponse> updateLocationAsync(String locationId, UpdateLocationRequest body)
locationId - Required parameter: The ID of the location to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.Copyright © 2022. All rights reserved.