Package com.adyen.service.management
Class UsersMerchantLevel
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.ApiKeyAuthenticatedService
-
- com.adyen.service.management.UsersMerchantLevel
-
public class UsersMerchantLevel extends ApiKeyAuthenticatedService
-
-
Constructor Summary
Constructors Constructor Description UsersMerchantLevel(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateUserResponsecreateNewUser(String merchantId, CreateMerchantUserRequest createMerchantUserRequest)Create a new userUsergetUserDetails(String merchantId, String userId)Get user detailsListMerchantUsersResponselistUsers(String merchantId, Map<String,String> queryParams)Get a list of usersUserupdateUser(String merchantId, String userId, UpdateMerchantUserRequest updateMerchantUserRequest)Update a user-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
UsersMerchantLevel
public UsersMerchantLevel(Client client)
-
-
Method Detail
-
listUsers
public ListMerchantUsersResponse listUsers(String merchantId, Map<String,String> queryParams) throws ApiException, IOException
Get a list of users- Parameters:
merchantId- Unique identifier of the merchant. (required)queryParams- (optional) pageNumber: The number of the page to fetch. (optional) pageSize: The number of items to have on a page. Maximum value is **100**. The default is **10** items on a page. (optional)- Returns:
- ListMerchantUsersResponse
- Throws:
ApiException- if fails to make API callIOException
-
getUserDetails
public User getUserDetails(String merchantId, String userId) throws ApiException, IOException
Get user details- Parameters:
merchantId- Unique identifier of the merchant. (required)userId- Unique identifier of the user. (required)- Returns:
- User
- Throws:
ApiException- if fails to make API callIOException
-
updateUser
public User updateUser(String merchantId, String userId, UpdateMerchantUserRequest updateMerchantUserRequest) throws ApiException, IOException
Update a user- Parameters:
merchantId- Unique identifier of the merchant. (required)userId- Unique identifier of the user. (required)updateMerchantUserRequest- (optional)- Returns:
- User
- Throws:
ApiException- if fails to make API callIOException
-
createNewUser
public CreateUserResponse createNewUser(String merchantId, CreateMerchantUserRequest createMerchantUserRequest) throws ApiException, IOException
Create a new user- Parameters:
merchantId- Unique identifier of the merchant. (required)createMerchantUserRequest- (optional)- Returns:
- CreateUserResponse
- Throws:
ApiException- if fails to make API callIOException
-
-