Package com.adyen.service.management
Class AccountMerchantLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.AccountMerchantLevelApi
-
public class AccountMerchantLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description AccountMerchantLevelApi(Client client)Account - merchant level constructor inpackage.AccountMerchantLevelApi(Client client, String baseURL)Account - merchant level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateMerchantResponsecreateMerchantAccount(CreateMerchantRequest createMerchantRequest)Create a merchant accountCreateMerchantResponsecreateMerchantAccount(CreateMerchantRequest createMerchantRequest, RequestOptions requestOptions)Create a merchant accountMerchantgetMerchantAccount(String merchantId)Get a merchant accountMerchantgetMerchantAccount(String merchantId, RequestOptions requestOptions)Get a merchant accountListMerchantResponselistMerchantAccounts()Get a list of merchant accountsListMerchantResponselistMerchantAccounts(Integer pageNumber, Integer pageSize, RequestOptions requestOptions)Get a list of merchant accountsRequestActivationResponserequestToActivateMerchantAccount(String merchantId)Request to activate a merchant accountRequestActivationResponserequestToActivateMerchantAccount(String merchantId, RequestOptions requestOptions)Request to activate a merchant account-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
AccountMerchantLevelApi
public AccountMerchantLevelApi(Client client)
Account - merchant level constructor inpackage.- Parameters:
client-Client(required)
-
AccountMerchantLevelApi
public AccountMerchantLevelApi(Client client, String baseURL)
Account - merchant level constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
createMerchantAccount
public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest) throws ApiException, IOException
Create a merchant account- Parameters:
createMerchantRequest-CreateMerchantRequest(required)- Returns:
CreateMerchantResponse- Throws:
ApiException- if fails to make API callIOException
-
createMerchantAccount
public CreateMerchantResponse createMerchantAccount(CreateMerchantRequest createMerchantRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a merchant account- Parameters:
createMerchantRequest-CreateMerchantRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
CreateMerchantResponse- Throws:
ApiException- if fails to make API callIOException
-
getMerchantAccount
public Merchant getMerchantAccount(String merchantId) throws ApiException, IOException
Get a merchant account- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)- Returns:
Merchant- Throws:
ApiException- if fails to make API callIOException
-
getMerchantAccount
public Merchant getMerchantAccount(String merchantId, RequestOptions requestOptions) throws ApiException, IOException
Get a merchant account- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Merchant- Throws:
ApiException- if fails to make API callIOException
-
listMerchantAccounts
public ListMerchantResponse listMerchantAccounts() throws ApiException, IOException
Get a list of merchant accounts- Returns:
ListMerchantResponse- Throws:
ApiException- if fails to make API callIOException
-
listMerchantAccounts
public ListMerchantResponse listMerchantAccounts(Integer pageNumber, Integer pageSize, RequestOptions requestOptions) throws ApiException, IOException
Get a list of merchant accounts- Parameters:
pageNumber-IntegerQuery: The number of the page to fetch. (optional)pageSize-IntegerQuery: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ListMerchantResponse- 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-StringThe unique identifier of the merchant account. (required)- Returns:
RequestActivationResponse- Throws:
ApiException- if fails to make API callIOException
-
requestToActivateMerchantAccount
public RequestActivationResponse requestToActivateMerchantAccount(String merchantId, RequestOptions requestOptions) throws ApiException, IOException
Request to activate a merchant account- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
RequestActivationResponse- Throws:
ApiException- if fails to make API callIOException
-
-