public final class DefaultMerchantsApi extends BaseApi implements MerchantsApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultMerchantsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultMerchantsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
ListMerchantsResponse |
listMerchants(Integer cursor)
Provides details about the merchant associated with a given access token.
|
CompletableFuture<ListMerchantsResponse> |
listMerchantsAsync(Integer cursor)
Provides details about the merchant associated with a given access token.
|
RetrieveMerchantResponse |
retrieveMerchant(String merchantId)
Retrieves the `Merchant` object for the given `merchant_id`.
|
CompletableFuture<RetrieveMerchantResponse> |
retrieveMerchantAsync(String merchantId)
Retrieves the `Merchant` object for the given `merchant_id`.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultMerchantsApi(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 DefaultMerchantsApi(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 ListMerchantsResponse listMerchants(Integer cursor) throws ApiException, IOException
listMerchants in interface MerchantsApicursor - Optional parameter: The cursor generated by the previous response.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListMerchantsResponse> listMerchantsAsync(Integer cursor)
listMerchantsAsync in interface MerchantsApicursor - Optional parameter: The cursor generated by the previous response.public RetrieveMerchantResponse retrieveMerchant(String merchantId) throws ApiException, IOException
retrieveMerchant in interface MerchantsApimerchantId - Required parameter: The ID of the merchant to retrieve. If the string
"me" is supplied as the ID, then retrieve the merchant that is currently accessible
to this call.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveMerchantResponse> retrieveMerchantAsync(String merchantId)
retrieveMerchantAsync in interface MerchantsApimerchantId - Required parameter: The ID of the merchant to retrieve. If the string
"me" is supplied as the ID, then retrieve the merchant that is currently accessible
to this call.Copyright © 2022. All rights reserved.