Package com.adyen.service.management
Class AccountStoreLevel
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.ApiKeyAuthenticatedService
-
- com.adyen.service.management.AccountStoreLevel
-
public class AccountStoreLevel extends ApiKeyAuthenticatedService
-
-
Constructor Summary
Constructors Constructor Description AccountStoreLevel(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorecreateStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest)Create a storeStorecreateStore(String merchantId, StoreCreationRequest storeCreationRequest)Create a storeStoregetStore(String storeId)Get a storeStoregetStore(String merchantId, String storeId)Get a storeListStoresResponselistStores(String merchantId, Map<String,String> queryParams)Get a list of storesListStoresResponselistStores(Map<String,String> queryParams)Get a list of storesStoreupdateStore(String storeId, UpdateStoreRequest updateStoreRequest)Update a storeStoreupdateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest)Update a store-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
AccountStoreLevel
public AccountStoreLevel(Client client)
-
-
Method Detail
-
listStores
public ListStoresResponse listStores(String merchantId, Map<String,String> queryParams) throws ApiException, IOException
Get a list of stores- Parameters:
merchantId- The unique identifier of the merchant account. (required)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) reference: The reference of the store. (optional)- Returns:
- ListStoresResponse
- Throws:
ApiException- if fails to make API callIOException
-
getStore
public Store getStore(String merchantId, String storeId) throws ApiException, IOException
Get a store- Parameters:
merchantId- The unique identifier of the merchant account. (required)storeId- The unique identifier of the store. (required)- Returns:
- Store
- Throws:
ApiException- if fails to make API callIOException
-
listStores
public ListStoresResponse listStores(Map<String,String> queryParams) throws ApiException, IOException
Get a list of stores- 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) reference: The reference of the store. (optional) merchantId: The unique identifier of the merchant account. (optional)- Returns:
- ListStoresResponse
- Throws:
ApiException- if fails to make API callIOException
-
getStore
public Store getStore(String storeId) throws ApiException, IOException
Get a store- Parameters:
storeId- The unique identifier of the store. (required)- Returns:
- Store
- Throws:
ApiException- if fails to make API callIOException
-
updateStore
public Store updateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest) throws ApiException, IOException
Update a store- Parameters:
merchantId- The unique identifier of the merchant account. (required)storeId- The unique identifier of the store. (required)updateStoreRequest- (optional)- Returns:
- Store
- Throws:
ApiException- if fails to make API callIOException
-
updateStore
public Store updateStore(String storeId, UpdateStoreRequest updateStoreRequest) throws ApiException, IOException
Update a store- Parameters:
storeId- The unique identifier of the store. (required)updateStoreRequest- (optional)- Returns:
- Store
- Throws:
ApiException- if fails to make API callIOException
-
createStore
public Store createStore(String merchantId, StoreCreationRequest storeCreationRequest) throws ApiException, IOException
Create a store- Parameters:
merchantId- The unique identifier of the merchant account. (required)storeCreationRequest- (optional)- Returns:
- Store
- Throws:
ApiException- if fails to make API callIOException
-
createStore
public Store createStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest) throws ApiException, IOException
Create a store- Parameters:
storeCreationWithMerchantCodeRequest- (optional)- Returns:
- Store
- Throws:
ApiException- if fails to make API callIOException
-
-