public final class DefaultCashDrawersApi extends BaseApi implements CashDrawersApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultCashDrawersApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultCashDrawersApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
ListCashDrawerShiftEventsResponse |
listCashDrawerShiftEvents(String locationId,
String shiftId,
Integer limit,
String cursor)
Provides a paginated list of events for a single cash drawer shift.
|
CompletableFuture<ListCashDrawerShiftEventsResponse> |
listCashDrawerShiftEventsAsync(String locationId,
String shiftId,
Integer limit,
String cursor)
Provides a paginated list of events for a single cash drawer shift.
|
ListCashDrawerShiftsResponse |
listCashDrawerShifts(String locationId,
String sortOrder,
String beginTime,
String endTime,
Integer limit,
String cursor)
Provides the details for all of the cash drawer shifts for a location in a date range.
|
CompletableFuture<ListCashDrawerShiftsResponse> |
listCashDrawerShiftsAsync(String locationId,
String sortOrder,
String beginTime,
String endTime,
Integer limit,
String cursor)
Provides the details for all of the cash drawer shifts for a location in a date range.
|
RetrieveCashDrawerShiftResponse |
retrieveCashDrawerShift(String locationId,
String shiftId)
Provides the summary details for a single cash drawer shift.
|
CompletableFuture<RetrieveCashDrawerShiftResponse> |
retrieveCashDrawerShiftAsync(String locationId,
String shiftId)
Provides the summary details for a single cash drawer shift.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultCashDrawersApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.public DefaultCashDrawersApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers, HttpCallback httpCallback)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.httpCallback - Callback to be called before and after the HTTP call.public ListCashDrawerShiftsResponse listCashDrawerShifts(String locationId, String sortOrder, String beginTime, String endTime, Integer limit, String cursor) throws ApiException, IOException
listCashDrawerShifts in interface CashDrawersApilocationId - Required parameter: The ID of the location to query for a list of cash
drawer shifts.sortOrder - Optional parameter: The order in which cash drawer shifts are listed in
the response, based on their opened_at field. Default value: ASCbeginTime - Optional parameter: The inclusive start time of the query on opened_at, in
ISO 8601 format.endTime - Optional parameter: The exclusive end date of the query on opened_at, in ISO
8601 format.limit - Optional parameter: Number of cash drawer shift events in a page of results
(200 by default, 1000 max).cursor - Optional parameter: Opaque cursor for fetching the next page of results.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListCashDrawerShiftsResponse> listCashDrawerShiftsAsync(String locationId, String sortOrder, String beginTime, String endTime, Integer limit, String cursor)
listCashDrawerShiftsAsync in interface CashDrawersApilocationId - Required parameter: The ID of the location to query for a list of cash
drawer shifts.sortOrder - Optional parameter: The order in which cash drawer shifts are listed in
the response, based on their opened_at field. Default value: ASCbeginTime - Optional parameter: The inclusive start time of the query on opened_at, in
ISO 8601 format.endTime - Optional parameter: The exclusive end date of the query on opened_at, in ISO
8601 format.limit - Optional parameter: Number of cash drawer shift events in a page of results
(200 by default, 1000 max).cursor - Optional parameter: Opaque cursor for fetching the next page of results.public RetrieveCashDrawerShiftResponse retrieveCashDrawerShift(String locationId, String shiftId) throws ApiException, IOException
retrieveCashDrawerShift in interface CashDrawersApilocationId - Required parameter: The ID of the location to retrieve cash drawer shifts
from.shiftId - Required parameter: The shift ID.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveCashDrawerShiftResponse> retrieveCashDrawerShiftAsync(String locationId, String shiftId)
retrieveCashDrawerShiftAsync in interface CashDrawersApilocationId - Required parameter: The ID of the location to retrieve cash drawer shifts
from.shiftId - Required parameter: The shift ID.public ListCashDrawerShiftEventsResponse listCashDrawerShiftEvents(String locationId, String shiftId, Integer limit, String cursor) throws ApiException, IOException
listCashDrawerShiftEvents in interface CashDrawersApilocationId - Required parameter: The ID of the location to list cash drawer shifts
for.shiftId - Required parameter: The shift ID.limit - Optional parameter: Number of resources to be returned in a page of results
(200 by default, 1000 max).cursor - Optional parameter: Opaque cursor for fetching the next page of results.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListCashDrawerShiftEventsResponse> listCashDrawerShiftEventsAsync(String locationId, String shiftId, Integer limit, String cursor)
listCashDrawerShiftEventsAsync in interface CashDrawersApilocationId - Required parameter: The ID of the location to list cash drawer shifts
for.shiftId - Required parameter: The shift ID.limit - Optional parameter: Number of resources to be returned in a page of results
(200 by default, 1000 max).cursor - Optional parameter: Opaque cursor for fetching the next page of results.Copyright © 2022. All rights reserved.