Package com.adyen.service.management
Class AccountStoreLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.AccountStoreLevelApi
-
public class AccountStoreLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description AccountStoreLevelApi(Client client)Account - store level constructor inpackage.AccountStoreLevelApi(Client client, String baseURL)Account - store level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorecreateStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest)Create a storeStorecreateStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest, RequestOptions requestOptions)Create a storeStorecreateStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest)Create a storeStorecreateStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest, RequestOptions requestOptions)Create a storeStoregetStore(String merchantId, String storeId)Get a storeStoregetStore(String merchantId, String storeId, RequestOptions requestOptions)Get a storeStoregetStoreById(String storeId)Get a storeStoregetStoreById(String storeId, RequestOptions requestOptions)Get a storeListStoresResponselistStores()Get a list of storesListStoresResponselistStores(Integer pageNumber, Integer pageSize, String reference, String merchantId, RequestOptions requestOptions)Get a list of storesListStoresResponselistStoresByMerchantId(String merchantId)Get a list of storesListStoresResponselistStoresByMerchantId(String merchantId, Integer pageNumber, Integer pageSize, String reference, RequestOptions requestOptions)Get a list of storesStoreupdateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest)Update a storeStoreupdateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions)Update a storeStoreupdateStoreById(String storeId, UpdateStoreRequest updateStoreRequest)Update a storeStoreupdateStoreById(String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions)Update a store-
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
-
AccountStoreLevelApi
public AccountStoreLevelApi(Client client)
Account - store level constructor inpackage.- Parameters:
client-Client(required)
-
AccountStoreLevelApi
public AccountStoreLevelApi(Client client, String baseURL)
Account - store 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
-
createStore
public Store createStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest) throws ApiException, IOException
Create a store- Parameters:
storeCreationWithMerchantCodeRequest-StoreCreationWithMerchantCodeRequest(required)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
createStore
public Store createStore(StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a store- Parameters:
storeCreationWithMerchantCodeRequest-StoreCreationWithMerchantCodeRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
createStoreByMerchantId
public Store createStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest) throws ApiException, IOException
Create a store- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)storeCreationRequest-StoreCreationRequest(required)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
createStoreByMerchantId
public Store createStoreByMerchantId(String merchantId, StoreCreationRequest storeCreationRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a store- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)storeCreationRequest-StoreCreationRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
getStore
public Store getStore(String merchantId, String storeId) throws ApiException, IOException
Get a store- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)storeId-StringThe unique identifier of the store. (required)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
getStore
public Store getStore(String merchantId, String storeId, RequestOptions requestOptions) throws ApiException, IOException
Get a store- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)storeId-StringThe unique identifier of the store. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
getStoreById
public Store getStoreById(String storeId) throws ApiException, IOException
Get a store- Parameters:
storeId-StringThe unique identifier of the store. (required)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
getStoreById
public Store getStoreById(String storeId, RequestOptions requestOptions) throws ApiException, IOException
Get a store- Parameters:
storeId-StringThe unique identifier of the store. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
listStores
public ListStoresResponse listStores() throws ApiException, IOException
Get a list of stores- Returns:
ListStoresResponse- Throws:
ApiException- if fails to make API callIOException
-
listStores
public ListStoresResponse listStores(Integer pageNumber, Integer pageSize, String reference, String merchantId, RequestOptions requestOptions) throws ApiException, IOException
Get a list of stores- 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)reference-StringQuery: The reference of the store. (optional)merchantId-StringQuery: The unique identifier of the merchant account. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ListStoresResponse- Throws:
ApiException- if fails to make API callIOException
-
listStoresByMerchantId
public ListStoresResponse listStoresByMerchantId(String merchantId) throws ApiException, IOException
Get a list of stores- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)- Returns:
ListStoresResponse- Throws:
ApiException- if fails to make API callIOException
-
listStoresByMerchantId
public ListStoresResponse listStoresByMerchantId(String merchantId, Integer pageNumber, Integer pageSize, String reference, RequestOptions requestOptions) throws ApiException, IOException
Get a list of stores- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)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)reference-StringQuery: The reference of the store. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ListStoresResponse- 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-StringThe unique identifier of the merchant account. (required)storeId-StringThe unique identifier of the store. (required)updateStoreRequest-UpdateStoreRequest(required)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
updateStore
public Store updateStore(String merchantId, String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions) throws ApiException, IOException
Update a store- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)storeId-StringThe unique identifier of the store. (required)updateStoreRequest-UpdateStoreRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
updateStoreById
public Store updateStoreById(String storeId, UpdateStoreRequest updateStoreRequest) throws ApiException, IOException
Update a store- Parameters:
storeId-StringThe unique identifier of the store. (required)updateStoreRequest-UpdateStoreRequest(required)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
updateStoreById
public Store updateStoreById(String storeId, UpdateStoreRequest updateStoreRequest, RequestOptions requestOptions) throws ApiException, IOException
Update a store- Parameters:
storeId-StringThe unique identifier of the store. (required)updateStoreRequest-UpdateStoreRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
Store- Throws:
ApiException- if fails to make API callIOException
-
-