Package com.adyen.service.management
Class AccountMerchantLevel
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.ApiKeyAuthenticatedService
-
- com.adyen.service.management.AccountMerchantLevel
-
public class AccountMerchantLevel extends ApiKeyAuthenticatedService
-
-
Constructor Summary
Constructors Constructor Description AccountMerchantLevel(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateMerchantResponsecreateMerchantAccount(CreateMerchantRequest createMerchantRequest)Create a merchant accountMerchantgetMerchantAccount(String merchantId)Get a merchant accountListMerchantResponselistMerchantAccounts(Map<String,String> queryParams)Get a list of merchant accountsRequestActivationResponserequestToActivateMerchantAccount(String merchantId)Request to activate a merchant account-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
AccountMerchantLevel
public AccountMerchantLevel(Client client)
-
-
Method Detail
-
listMerchantAccounts
public ListMerchantResponse listMerchantAccounts(Map<String,String> queryParams) throws ApiException, IOException
Get a list of merchant accounts- Parameters:
queryParams- (optional) pageNumber: The number of the page to fetch. (optional) pageSize: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional)- Returns:
- ListMerchantResponse
- Throws:
ApiException- if fails to make API callIOException
-
getMerchantAccount
public Merchant getMerchantAccount(String merchantId) throws ApiException, IOException
Get a merchant account- Parameters:
merchantId- The unique identifier of the merchant account. (required)- Returns:
- Merchant
- Throws:
ApiException- if fails to make API callIOException
-
createMerchantAccount
public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest) throws ApiException, IOException
Create a merchant account- Parameters:
createMerchantRequest- (optional)- Returns:
- CreateMerchantResponse
- Throws:
ApiException- if fails to make API callIOException
-
requestToActivateMerchantAccount
public RequestActivationResponse requestToActivateMerchantAccount(String merchantId) throws ApiException, IOException
Request to activate a merchant account- Parameters:
merchantId- The unique identifier of the merchant account. (required)- Returns:
- RequestActivationResponse
- Throws:
ApiException- if fails to make API callIOException
-
-