public final class DefaultTransactionsApi extends BaseApi implements TransactionsApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultTransactionsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultTransactionsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultTransactionsApi(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 DefaultTransactionsApi(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.@Deprecated public ListTransactionsResponse listTransactions(String locationId, String beginTime, String endTime, String sortOrder, String cursor) throws ApiException, IOException
listTransactions in interface TransactionsApilocationId - Required parameter: The ID of the location to list transactions for.beginTime - Optional parameter: The beginning of the requested reporting period, in
RFC 3339 format. See [Date
ranges](https://developer.squareup.com/docs/build-basics/working-with-dates) for
details on date inclusivity/exclusivity. Default value: The current time minus one
year.endTime - Optional parameter: The end of the requested reporting period, in RFC 3339
format. See [Date
ranges](https://developer.squareup.com/docs/build-basics/working-with-dates) for
details on date inclusivity/exclusivity. Default value: The current time.sortOrder - Optional parameter: The order in which results are listed in the response
(`ASC` for oldest first, `DESC` for newest first). Default value: `DESC`cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this to retrieve the next set of results for your original query.
See [Paginating
results](https://developer.squareup.com/docs/working-with-apis/pagination) for more
information.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<ListTransactionsResponse> listTransactionsAsync(String locationId, String beginTime, String endTime, String sortOrder, String cursor)
listTransactionsAsync in interface TransactionsApilocationId - Required parameter: The ID of the location to list transactions for.beginTime - Optional parameter: The beginning of the requested reporting period, in
RFC 3339 format. See [Date
ranges](https://developer.squareup.com/docs/build-basics/working-with-dates) for
details on date inclusivity/exclusivity. Default value: The current time minus one
year.endTime - Optional parameter: The end of the requested reporting period, in RFC 3339
format. See [Date
ranges](https://developer.squareup.com/docs/build-basics/working-with-dates) for
details on date inclusivity/exclusivity. Default value: The current time.sortOrder - Optional parameter: The order in which results are listed in the response
(`ASC` for oldest first, `DESC` for newest first). Default value: `DESC`cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this to retrieve the next set of results for your original query.
See [Paginating
results](https://developer.squareup.com/docs/working-with-apis/pagination) for more
information.@Deprecated public RetrieveTransactionResponse retrieveTransaction(String locationId, String transactionId) throws ApiException, IOException
retrieveTransaction in interface TransactionsApilocationId - Required parameter: The ID of the transaction's associated location.transactionId - Required parameter: The ID of the transaction to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<RetrieveTransactionResponse> retrieveTransactionAsync(String locationId, String transactionId)
retrieveTransactionAsync in interface TransactionsApilocationId - Required parameter: The ID of the transaction's associated location.transactionId - Required parameter: The ID of the transaction to retrieve.@Deprecated public CaptureTransactionResponse captureTransaction(String locationId, String transactionId) throws ApiException, IOException
captureTransaction in interface TransactionsApilocationId - Required parameter: Example:transactionId - Required parameter: Example:ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<CaptureTransactionResponse> captureTransactionAsync(String locationId, String transactionId)
captureTransactionAsync in interface TransactionsApilocationId - Required parameter: Example:transactionId - Required parameter: Example:@Deprecated public VoidTransactionResponse voidTransaction(String locationId, String transactionId) throws ApiException, IOException
voidTransaction in interface TransactionsApilocationId - Required parameter: Example:transactionId - Required parameter: Example:ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<VoidTransactionResponse> voidTransactionAsync(String locationId, String transactionId)
voidTransactionAsync in interface TransactionsApilocationId - Required parameter: Example:transactionId - Required parameter: Example:Copyright © 2022. All rights reserved.