Package com.adyen.model.management
Class CreateMerchantUserRequest
- java.lang.Object
-
- com.adyen.model.management.CreateMerchantUserRequest
-
public class CreateMerchantUserRequest extends Object
CreateMerchantUserRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_GROUPSstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_ROLESstatic StringJSON_PROPERTY_TIME_ZONE_CODEstatic StringJSON_PROPERTY_USERNAME
-
Constructor Summary
Constructors Constructor Description CreateMerchantUserRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateMerchantUserRequestaccountGroups(List<String> accountGroups)CreateMerchantUserRequestaddAccountGroupsItem(String accountGroupsItem)CreateMerchantUserRequestaddRolesItem(String rolesItem)CreateMerchantUserRequestemail(String email)booleanequals(Object o)Return true if this CreateMerchantUserRequest object is equal to o.static CreateMerchantUserRequestfromJson(String jsonString)Create an instance of CreateMerchantUserRequest given an JSON stringList<String>getAccountGroups()The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.StringgetEmail()The email address of the user.NamegetName()Get nameList<String>getRoles()The list of [roles](https://docs.adyen.com/account/user-roles) for this user.StringgetTimeZoneCode()The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user.StringgetUsername()The user's email address that will be their username.inthashCode()CreateMerchantUserRequestname(Name name)CreateMerchantUserRequestroles(List<String> roles)voidsetAccountGroups(List<String> accountGroups)The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.voidsetEmail(String email)The email address of the user.voidsetName(Name name)namevoidsetRoles(List<String> roles)The list of [roles](https://docs.adyen.com/account/user-roles) for this user.voidsetTimeZoneCode(String timeZoneCode)The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user.voidsetUsername(String username)The user's email address that will be their username.CreateMerchantUserRequesttimeZoneCode(String timeZoneCode)StringtoJson()Convert an instance of CreateMerchantUserRequest to an JSON stringStringtoString()CreateMerchantUserRequestusername(String username)
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_GROUPS
public static final String JSON_PROPERTY_ACCOUNT_GROUPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EMAIL
public static final String JSON_PROPERTY_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLES
public static final String JSON_PROPERTY_ROLES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIME_ZONE_CODE
public static final String JSON_PROPERTY_TIME_ZONE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USERNAME
public static final String JSON_PROPERTY_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountGroups
public CreateMerchantUserRequest accountGroups(List<String> accountGroups)
-
addAccountGroupsItem
public CreateMerchantUserRequest addAccountGroupsItem(String accountGroupsItem)
-
getAccountGroups
public List<String> getAccountGroups()
The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.- Returns:
- accountGroups
-
setAccountGroups
public void setAccountGroups(List<String> accountGroups)
The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.- Parameters:
accountGroups-
-
email
public CreateMerchantUserRequest email(String email)
-
getEmail
public String getEmail()
The email address of the user.- Returns:
-
setEmail
public void setEmail(String email)
The email address of the user.- Parameters:
email-
-
name
public CreateMerchantUserRequest name(Name name)
-
getName
public Name getName()
Get name- Returns:
- name
-
setName
public void setName(Name name)
name- Parameters:
name-
-
roles
public CreateMerchantUserRequest roles(List<String> roles)
-
addRolesItem
public CreateMerchantUserRequest addRolesItem(String rolesItem)
-
getRoles
public List<String> getRoles()
The list of [roles](https://docs.adyen.com/account/user-roles) for this user.- Returns:
- roles
-
setRoles
public void setRoles(List<String> roles)
The list of [roles](https://docs.adyen.com/account/user-roles) for this user.- Parameters:
roles-
-
timeZoneCode
public CreateMerchantUserRequest timeZoneCode(String timeZoneCode)
-
getTimeZoneCode
public String getTimeZoneCode()
The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.- Returns:
- timeZoneCode
-
setTimeZoneCode
public void setTimeZoneCode(String timeZoneCode)
The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.- Parameters:
timeZoneCode-
-
username
public CreateMerchantUserRequest username(String username)
-
getUsername
public String getUsername()
The user's email address that will be their username. Must be the same as the one in the `email` field.- Returns:
- username
-
setUsername
public void setUsername(String username)
The user's email address that will be their username. Must be the same as the one in the `email` field.- Parameters:
username-
-
equals
public boolean equals(Object o)
Return true if this CreateMerchantUserRequest object is equal to o.
-
fromJson
public static CreateMerchantUserRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateMerchantUserRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateMerchantUserRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateMerchantUserRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateMerchantUserRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-