V1LocationsApi v1LocationsApi = client.getV1LocationsApi();
V1LocationsApi
Get the general information for a business.
CompletableFuture<V1Merchant> retrieveBusinessAsync()
v1LocationsApi.retrieveBusinessAsync().thenAccept(result -> {
// TODO success callback handler
}).exceptionally(exception -> {
// TODO failure callback handler
return null;
});
Provides details for all business locations associated with a Square account, including the Square-assigned object ID for the location.
CompletableFuture<List<V1Merchant>> listLocationsAsync()
v1LocationsApi.listLocationsAsync().thenAccept(result -> {
// TODO success callback handler
}).exceptionally(exception -> {
// TODO failure callback handler
return null;
});