public final class DefaultMerchantsApi extends BaseApi implements MerchantsApi
AUTHENTICATION_KEY, GLOBAL_ERROR_CASES| Constructor and Description |
|---|
DefaultMerchantsApi(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
| 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, getGlobalConfiguration, getHttpCallbackpublic DefaultMerchantsApi(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.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 © 2023. All rights reserved.