public final class DefaultTerminalApi extends BaseApi implements TerminalApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultTerminalApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultTerminalApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
CancelTerminalActionResponse |
cancelTerminalAction(String actionId)
Cancels a Terminal action request if the status of the request permits it.
|
CompletableFuture<CancelTerminalActionResponse> |
cancelTerminalActionAsync(String actionId)
Cancels a Terminal action request if the status of the request permits it.
|
CancelTerminalCheckoutResponse |
cancelTerminalCheckout(String checkoutId)
Cancels a Terminal checkout request if the status of the request permits it.
|
CompletableFuture<CancelTerminalCheckoutResponse> |
cancelTerminalCheckoutAsync(String checkoutId)
Cancels a Terminal checkout request if the status of the request permits it.
|
CancelTerminalRefundResponse |
cancelTerminalRefund(String terminalRefundId)
Cancels an Interac Terminal refund request by refund request ID if the status of the request
permits it.
|
CompletableFuture<CancelTerminalRefundResponse> |
cancelTerminalRefundAsync(String terminalRefundId)
Cancels an Interac Terminal refund request by refund request ID if the status of the request
permits it.
|
CreateTerminalActionResponse |
createTerminalAction(CreateTerminalActionRequest body)
Creates a Terminal action request and sends it to the specified device to take a payment for
the requested amount.
|
CompletableFuture<CreateTerminalActionResponse> |
createTerminalActionAsync(CreateTerminalActionRequest body)
Creates a Terminal action request and sends it to the specified device to take a payment for
the requested amount.
|
CreateTerminalCheckoutResponse |
createTerminalCheckout(CreateTerminalCheckoutRequest body)
Creates a Terminal checkout request and sends it to the specified device to take a payment
for the requested amount.
|
CompletableFuture<CreateTerminalCheckoutResponse> |
createTerminalCheckoutAsync(CreateTerminalCheckoutRequest body)
Creates a Terminal checkout request and sends it to the specified device to take a payment
for the requested amount.
|
CreateTerminalRefundResponse |
createTerminalRefund(CreateTerminalRefundRequest body)
Creates a request to refund an Interac payment completed on a Square Terminal.
|
CompletableFuture<CreateTerminalRefundResponse> |
createTerminalRefundAsync(CreateTerminalRefundRequest body)
Creates a request to refund an Interac payment completed on a Square Terminal.
|
GetTerminalActionResponse |
getTerminalAction(String actionId)
Retrieves a Terminal action request by `action_id`.
|
CompletableFuture<GetTerminalActionResponse> |
getTerminalActionAsync(String actionId)
Retrieves a Terminal action request by `action_id`.
|
GetTerminalCheckoutResponse |
getTerminalCheckout(String checkoutId)
Retrieves a Terminal checkout request by `checkout_id`.
|
CompletableFuture<GetTerminalCheckoutResponse> |
getTerminalCheckoutAsync(String checkoutId)
Retrieves a Terminal checkout request by `checkout_id`.
|
GetTerminalRefundResponse |
getTerminalRefund(String terminalRefundId)
Retrieves an Interac Terminal refund object by ID.
|
CompletableFuture<GetTerminalRefundResponse> |
getTerminalRefundAsync(String terminalRefundId)
Retrieves an Interac Terminal refund object by ID.
|
SearchTerminalActionsResponse |
searchTerminalActions(SearchTerminalActionsRequest body)
Retrieves a filtered list of Terminal action requests created by the account making the
request.
|
CompletableFuture<SearchTerminalActionsResponse> |
searchTerminalActionsAsync(SearchTerminalActionsRequest body)
Retrieves a filtered list of Terminal action requests created by the account making the
request.
|
SearchTerminalCheckoutsResponse |
searchTerminalCheckouts(SearchTerminalCheckoutsRequest body)
Returns a filtered list of Terminal checkout requests created by the application making the
request.
|
CompletableFuture<SearchTerminalCheckoutsResponse> |
searchTerminalCheckoutsAsync(SearchTerminalCheckoutsRequest body)
Returns a filtered list of Terminal checkout requests created by the application making the
request.
|
SearchTerminalRefundsResponse |
searchTerminalRefunds(SearchTerminalRefundsRequest body)
Retrieves a filtered list of Interac Terminal refund requests created by the seller making
the request.
|
CompletableFuture<SearchTerminalRefundsResponse> |
searchTerminalRefundsAsync(SearchTerminalRefundsRequest body)
Retrieves a filtered list of Interac Terminal refund requests created by the seller making
the request.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultTerminalApi(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 DefaultTerminalApi(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 CreateTerminalActionResponse createTerminalAction(CreateTerminalActionRequest body) throws ApiException, IOException
createTerminalAction in interface TerminalApibody - 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.public CompletableFuture<CreateTerminalActionResponse> createTerminalActionAsync(CreateTerminalActionRequest body)
createTerminalActionAsync in interface TerminalApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public SearchTerminalActionsResponse searchTerminalActions(SearchTerminalActionsRequest body) throws ApiException, IOException
searchTerminalActions in interface TerminalApibody - 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.public CompletableFuture<SearchTerminalActionsResponse> searchTerminalActionsAsync(SearchTerminalActionsRequest body)
searchTerminalActionsAsync in interface TerminalApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public GetTerminalActionResponse getTerminalAction(String actionId) throws ApiException, IOException
getTerminalAction in interface TerminalApiactionId - Required parameter: Unique ID for the desired `TerminalAction`ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<GetTerminalActionResponse> getTerminalActionAsync(String actionId)
getTerminalActionAsync in interface TerminalApiactionId - Required parameter: Unique ID for the desired `TerminalAction`public CancelTerminalActionResponse cancelTerminalAction(String actionId) throws ApiException, IOException
cancelTerminalAction in interface TerminalApiactionId - Required parameter: Unique ID for the desired `TerminalAction`ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<CancelTerminalActionResponse> cancelTerminalActionAsync(String actionId)
cancelTerminalActionAsync in interface TerminalApiactionId - Required parameter: Unique ID for the desired `TerminalAction`public CreateTerminalCheckoutResponse createTerminalCheckout(CreateTerminalCheckoutRequest body) throws ApiException, IOException
createTerminalCheckout in interface TerminalApibody - 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.public CompletableFuture<CreateTerminalCheckoutResponse> createTerminalCheckoutAsync(CreateTerminalCheckoutRequest body)
createTerminalCheckoutAsync in interface TerminalApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public SearchTerminalCheckoutsResponse searchTerminalCheckouts(SearchTerminalCheckoutsRequest body) throws ApiException, IOException
searchTerminalCheckouts in interface TerminalApibody - 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.public CompletableFuture<SearchTerminalCheckoutsResponse> searchTerminalCheckoutsAsync(SearchTerminalCheckoutsRequest body)
searchTerminalCheckoutsAsync in interface TerminalApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public GetTerminalCheckoutResponse getTerminalCheckout(String checkoutId) throws ApiException, IOException
getTerminalCheckout in interface TerminalApicheckoutId - Required parameter: The unique ID for the desired `TerminalCheckout`.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<GetTerminalCheckoutResponse> getTerminalCheckoutAsync(String checkoutId)
getTerminalCheckoutAsync in interface TerminalApicheckoutId - Required parameter: The unique ID for the desired `TerminalCheckout`.public CancelTerminalCheckoutResponse cancelTerminalCheckout(String checkoutId) throws ApiException, IOException
cancelTerminalCheckout in interface TerminalApicheckoutId - Required parameter: The unique ID for the desired `TerminalCheckout`.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<CancelTerminalCheckoutResponse> cancelTerminalCheckoutAsync(String checkoutId)
cancelTerminalCheckoutAsync in interface TerminalApicheckoutId - Required parameter: The unique ID for the desired `TerminalCheckout`.public CreateTerminalRefundResponse createTerminalRefund(CreateTerminalRefundRequest body) throws ApiException, IOException
createTerminalRefund in interface TerminalApibody - 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.public CompletableFuture<CreateTerminalRefundResponse> createTerminalRefundAsync(CreateTerminalRefundRequest body)
createTerminalRefundAsync in interface TerminalApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public SearchTerminalRefundsResponse searchTerminalRefunds(SearchTerminalRefundsRequest body) throws ApiException, IOException
searchTerminalRefunds in interface TerminalApibody - 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.public CompletableFuture<SearchTerminalRefundsResponse> searchTerminalRefundsAsync(SearchTerminalRefundsRequest body)
searchTerminalRefundsAsync in interface TerminalApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public GetTerminalRefundResponse getTerminalRefund(String terminalRefundId) throws ApiException, IOException
getTerminalRefund in interface TerminalApiterminalRefundId - Required parameter: The unique ID for the desired `TerminalRefund`.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<GetTerminalRefundResponse> getTerminalRefundAsync(String terminalRefundId)
getTerminalRefundAsync in interface TerminalApiterminalRefundId - Required parameter: The unique ID for the desired `TerminalRefund`.public CancelTerminalRefundResponse cancelTerminalRefund(String terminalRefundId) throws ApiException, IOException
cancelTerminalRefund in interface TerminalApiterminalRefundId - Required parameter: The unique ID for the desired `TerminalRefund`.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<CancelTerminalRefundResponse> cancelTerminalRefundAsync(String terminalRefundId)
cancelTerminalRefundAsync in interface TerminalApiterminalRefundId - Required parameter: The unique ID for the desired `TerminalRefund`.Copyright © 2022. All rights reserved.