public final class DefaultMobileAuthorizationApi extends BaseApi implements MobileAuthorizationApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultMobileAuthorizationApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultMobileAuthorizationApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
CreateMobileAuthorizationCodeResponse |
createMobileAuthorizationCode(CreateMobileAuthorizationCodeRequest body)
Generates code to authorize a mobile application to connect to a Square card reader.
|
CompletableFuture<CreateMobileAuthorizationCodeResponse> |
createMobileAuthorizationCodeAsync(CreateMobileAuthorizationCodeRequest body)
Generates code to authorize a mobile application to connect to a Square card reader.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultMobileAuthorizationApi(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 DefaultMobileAuthorizationApi(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 CreateMobileAuthorizationCodeResponse createMobileAuthorizationCode(CreateMobileAuthorizationCodeRequest body) throws ApiException, IOException
createMobileAuthorizationCode in interface MobileAuthorizationApibody - 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<CreateMobileAuthorizationCodeResponse> createMobileAuthorizationCodeAsync(CreateMobileAuthorizationCodeRequest body)
createMobileAuthorizationCodeAsync in interface MobileAuthorizationApibody - 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.