public final class DefaultApplePayApi extends BaseApi implements ApplePayApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultApplePayApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultApplePayApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
RegisterDomainResponse |
registerDomain(RegisterDomainRequest body)
Activates a domain for use with Apple Pay on the Web and Square.
|
CompletableFuture<RegisterDomainResponse> |
registerDomainAsync(RegisterDomainRequest body)
Activates a domain for use with Apple Pay on the Web and Square.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultApplePayApi(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 DefaultApplePayApi(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 RegisterDomainResponse registerDomain(RegisterDomainRequest body) throws ApiException, IOException
registerDomain in interface ApplePayApibody - 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<RegisterDomainResponse> registerDomainAsync(RegisterDomainRequest body)
registerDomainAsync in interface ApplePayApibody - 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.